/* Hero — split layout */
.band-hero {
  padding: 72px 0 56px;
  overflow: hidden;
  position: relative;
  background: var(--chrome-bg);
  border-bottom: 1px solid var(--chrome-border);
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-waveform {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 55%;
  opacity: 0.35;
  mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
}

.band-hero .shell { position: relative; z-index: 1; }

.hero-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
}

.hero-eyebrow .pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--chrome-border);
  background: var(--chrome-hover);
  color: var(--chrome-text);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.band-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.98;
  margin: 0 0 24px;
  color: var(--chrome-text);
  max-width: 100%;
}

.hero-word-rotator {
  position: relative;
  display: inline-block;
  height: 1.05em;
  overflow: hidden;
  vertical-align: top;
}

.hero-word-rotator .word {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  font-style: italic;
  font-weight: 800;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: 0;
  transform: translateY(35%);
  transition: opacity 0.5s cubic-bezier(.22,.68,0,1.01), transform 0.5s cubic-bezier(.22,.68,0,1.01);
  pointer-events: none;
}

.hero-word-rotator .word.is-active {
  opacity: 1;
  transform: translateY(0);
}

.hero-word-rotator .word.is-leaving {
  opacity: 0;
  transform: translateY(-35%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.hero-lead {
  font-size: 1.2rem;
  color: var(--chrome-muted);
  line-height: 1.6;
  margin: 0 auto 12px;
  max-width: 900px;
}

.hero-lead:last-of-type { margin-bottom: 32px; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-actions .btn {
  font-size: 1.2rem;
}

.hero-actions .btn-primary {
  background: linear-gradient(100deg, #ff6b8b, #d946ef);
  color: #fff;
  border-color: transparent;
}

.hero-actions .btn-primary:hover {
  background: linear-gradient(100deg, #ff5277, #c72be0);
  border-color: transparent;
}

.hero-actions .btn-ghost {
  background: transparent;
  color: var(--chrome-text);
  border-color: var(--chrome-border);
}

.hero-actions .btn-ghost:hover {
  background: var(--chrome-hover);
  border-color: var(--chrome-text);
}

.hero-waveform svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-phones {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 16px 0 56px;
}

.hero-phone-slot {
  width: min(100%, 340px);
  position: relative;
}

.hero-phone-slot .phone {
  border: 1px solid var(--chrome-border);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.hero-phone-slot .phone video {
  object-fit: cover;
}

.hero-phone-a { z-index: 1; transform: rotate(-8deg) translate(30px, 24px); margin-right: -70px; }
.hero-phone-b { z-index: 2; }
.hero-phone-c { z-index: 1; transform: rotate(8deg) translate(-30px, 24px); margin-left: -70px; }

.hero-phone-a, .hero-phone-c { width: min(100%, 300px); }

@media (max-width: 900px) {
  .hero-stack { max-width: none; }
}

@media (max-width: 640px) {
  .band-hero h1 { font-size: clamp(2.4rem, 11vw, 3.2rem); }
  .hero-phones { padding-top: 8px; width: min(100%, 420px); }
  .hero-phone-a, .hero-phone-c { width: min(100%, 150px); }
  .hero-phone-b { width: min(100%, 180px); }
  .hero-phone-a { transform: rotate(-8deg) translate(14px, 10px); margin-right: -32px; }
  .hero-phone-c { transform: rotate(8deg) translate(-14px, 10px); margin-left: -32px; }
}

.hero-phone-slot .phone { position: relative; }

.hero-phone-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 14px 10px 12px;
  pointer-events: none;
  color: #fff;
}

.hero-phone-actions {
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.hero-phone-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40px;
  gap: 3px;
  font-size: 0.68rem;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

.hero-phone-action svg {
  width: 20px;
  height: 20px;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5));
}

.hero-phone-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 78%;
}

.hero-phone-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
}

.hero-phone-avatar {
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  background-size: cover;
  background-position: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.hero-phone-handle {
  font-size: 0.72rem;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-phone-follow {
  flex: none;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 700;
  cursor: pointer;
}

.hero-phone-caption-text {
  font-size: 0.7rem;
  line-height: 1.4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-phone-more {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 600;
}

/* Platform ticker */
.ticker-wrap {
  width: 100%;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  overflow: hidden;
  padding: 16px 0;
}

.ticker {
  display: flex;
  width: max-content;
  animation: ticker 32s linear infinite;
  gap: 48px;
}

.ticker span {
  font-family: "Pixelify Sans", monospace;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
}

.ticker-logo {
  display: inline-flex;
  align-items: center;
  height: 20px;
}

.ticker-logo img {
  display: block;
  height: 32px;
  width: auto;
  max-width: 88px;
  object-fit: contain;
  opacity: 0.85;
}

.ticker span.dot { color: var(--muted); }

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  margin-top: 48px;
}

.stat {
  background: var(--surface);
  padding: 28px 24px;
  text-align: left;
}

.stat strong {
  display: block;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.stat span {
  font-size: 0.95rem;
  color: var(--muted);
  line-height: 1.5;
  display: block;
}

@media (max-width: 640px) {
  .stats-row { grid-template-columns: 1fr; }
  .stat { text-align: center; }
}

/* Phone / video frames */
.phone {
  aspect-ratio: 9 / 16;
  border-radius: 8px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: #1a1918;
  position: relative;
  box-shadow: var(--shadow);
}

.phone.ratio-square { aspect-ratio: 1 / 1; }

.phone video,
.phone img.phone-shot,
.phone .phone-shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #1a1918;
}

.media-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 20px;
  text-align: center;
  background: var(--preview-bg);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  pointer-events: none;
  transition: opacity 0.25s;
}

.media-placeholder.hidden { opacity: 0; }

.media-placeholder.has-poster {
  background-size: cover;
  background-position: center;
}

.media-placeholder code {
  font-size: 0.78rem;
  color: var(--muted);
  word-break: break-all;
}

.media-placeholder-text { display: none; }
.media-placeholder.has-poster .media-placeholder-text { display: none; }
.media-placeholder:not(.is-loading):not(.has-poster) .media-placeholder-text { display: block; }

.media-spinner {
  display: none;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(0, 0, 0, 0.12);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: media-spin 0.8s linear infinite;
}

.media-placeholder.is-loading .media-spinner { display: inline-block; }

@keyframes media-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .media-spinner { animation: none; }
}

/* Compare */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  max-width: 780px;
  margin: 0 auto;
}

.compare-card .phone {
  height: 600px;
  width: 337.5px;
  max-width: 100%;
  aspect-ratio: unset;
  margin: 0 auto;
}

.compare-divider {
  font-family: "Pixelify Sans", monospace;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  color: var(--muted);
  text-transform: uppercase;
}

.compare-card { display: grid; gap: 14px; }

.compare-label {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-label.after { color: var(--text); }

.compare-caption {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 800px) {
  .compare-grid {
    grid-template-columns: 1fr;
    max-width: min(337.5px, 100%);
  }

  .compare-card .phone {
    height: min(600px, 72vh);
    width: min(337.5px, 100%, calc(min(600px, 72vh) * 9 / 16));
  }

  .compare-divider { text-align: center; }
}

/* Demo */
.demo-wrap { max-width: 880px; margin: 0 auto; }

.demo-frame {
  aspect-ratio: 16 / 9;
  border-radius: 8px;
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background: #1a1918;
  position: relative;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
}

.demo-frame video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.demo-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* Examples */
.examples-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) { .examples-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .examples-grid { grid-template-columns: 1fr; max-width: 300px; margin: 0 auto; }
}

.example-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}

.example-card:hover {
  border-color: var(--border-strong);
  background: var(--surface-hover);
}

.example-meta h3 {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.example-tag {
  display: inline-block;
  font-family: "Pixelify Sans", monospace;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.example-meta p {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.video-controls-hint {
  text-align: center;
  font-size: 0.76rem;
  color: var(--muted);
  margin-top: 20px;
}

/* Cards grid */
.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 720px) { .card-grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px 28px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}

.card-num {
  font-family: "Pixelify Sans", monospace;
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 14px;
}

.card h3 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}

.card p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Audience statement */
.statement {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.statement .logo {
  font-size: 1.75rem;
  justify-content: center;
  margin-bottom: 16px;
}

.statement p {
  font-size: clamp(1.1rem, 2.5vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
  color: var(--text);
}

.statement .sub {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

/* Features — 2 col on large */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) { .features-grid { grid-template-columns: 1fr; } }

.feature-row {
  display: flex;
  gap: 18px;
  padding: 24px 26px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color 0.2s, background 0.2s;
}

.feature-row:hover {
  border-color: var(--border-strong);
  background: var(--hover-bg);
}

.feature-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  background: var(--bg);
}

.feature-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  opacity: 0.88;
}

.feature-row h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.feature-row p {
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.5;
}

/* Quotes */
.quotes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 640px) { .quotes { grid-template-columns: 1fr; } }

.quote {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 28px;
  position: relative;
}

.quote::before {
  content: "\201C";
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--border-strong);
  font-family: Georgia, serif;
}

.quote blockquote {
  font-size: 0.95rem;
  line-height: 1.55;
  margin-bottom: 16px;
  padding-top: 8px;
  color: var(--text);
}

.quote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--muted);
}

.quote cite strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.quote.placeholder blockquote { color: var(--muted); font-style: italic; }

/* FAQ accordion */
.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}

.faq-details[open] {
  border-color: var(--border-strong);
  background: var(--hover-bg);
}

.faq-details summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 56px 22px 26px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  position: relative;
  user-select: none;
}

.faq-details summary::-webkit-details-marker { display: none; }

.faq-details summary::after {
  content: "+";
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  font-family: "Pixelify Sans", monospace;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--muted);
  transition: color 0.2s;
}

.faq-details[open] summary::after {
  content: "−";
  color: var(--text);
}

.faq-details summary:hover { color: var(--text); }

.faq-answer {
  padding: 0 24px 20px;
  border-top: 1px solid var(--border);
}

.faq-answer p {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.6;
  padding-top: 16px;
}

.faq-answer a {
  text-decoration: underline;
  text-underline-offset: 2px;
  color: var(--text);
}

.faq-answer a:hover { color: var(--muted); }

/* CTA band */
.cta-panel {
  text-align: center;
  padding: 72px 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}

.cta-panel p {
  color: var(--muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.platform-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.platform-pill {
  font-family: "Pixelify Sans", monospace;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--bg);
}

/* Styles / starter designs grid */
.styles-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 36px;
}

.style-card {
  display: block;
  flex: 0 1 calc(25% - 11px);
  text-decoration: none;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.style-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.style-card-img {
  aspect-ratio: 9 / 16;
  overflow: hidden;
  position: relative;
}

.style-card-img video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.style-card-img video.playing { opacity: 1; }

.style-card-play[hidden] { display: none; }

.style-card-play {
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 1;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: none;
  background: rgba(10, 10, 10, 0.4);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s ease, background 0.15s ease;
}

.style-card:hover .style-card-play,
.style-card-play:focus-visible,
.style-card-play.is-playing {
  opacity: 1;
}

.style-card-play:hover { background: rgba(10, 10, 10, 0.55); }

.style-card-play svg { grid-area: 1 / 1; width: 28px; height: 28px; }

/* Hide the play/pause glyph while the spinner (below) covers the buffering wait */
.style-card-play.is-loading svg { visibility: hidden; }

.style-card-spinner {
  /* Visibility here is controlled by DOM presence (added/removed in JS), not a
     state class like .media-placeholder's spinner — override the base
     display:none so it's visible as soon as it's mounted. */
  display: inline-block;
  position: absolute;
  inset: 0;
  margin: auto;
  z-index: 2;
  width: 32px;
  height: 32px;
}

/* The `hidden` attribute is unreliable on inline SVG in some browsers — use an explicit class instead. */
.style-card-play .icon-pause { display: none; }
.style-card-play.is-playing .icon-play { display: none; }
.style-card-play.is-playing .icon-pause { display: block; }

.style-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.style-card:hover .style-card-img img {
  transform: scale(1.03);
}

.style-card-name {
  display: block;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  border-top: 1px solid var(--border);
}

.styles-cta {
  text-align: center;
  padding-top: 8px;
}

.styles-cta .btn-primary {
  background: linear-gradient(100deg, #ff6b8b, #d946ef);
  color: #fff;
  border-color: transparent;
}

.styles-cta .btn-primary:hover {
  background: linear-gradient(100deg, #ff5277, #c72be0);
  border-color: transparent;
}

@media (max-width: 1000px) { .style-card { flex-basis: calc(33.333% - 9.4px); } }
@media (max-width: 700px) { .styles-grid { gap: 10px; } .style-card { flex-basis: calc(50% - 5px); } }
@media (max-width: 480px) { .styles-grid { gap: 10px; } .style-card { flex-basis: calc(50% - 5px); } }

/* App showcase — screenshot bleeds flush to the section's bottom edge */
.band-showcase {
  padding-top: 72px;
  padding-bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.band-showcase .section-head { margin-bottom: 40px; }

.showcase-frame {
  width: min(100%, 1180px);
  margin: 0 auto;
  background: var(--chrome-bg);
  border-radius: 16px 16px 0 0;
  padding: 20px 20px 0;
  box-shadow: 0 -1px 0 var(--chrome-border) inset;
}

.showcase-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
}

@media (max-width: 720px) {
  .showcase-frame { padding: 12px 12px 0; border-radius: 12px 12px 0 0; }
  .showcase-img { border-radius: 8px 8px 0 0; }
}
