/* ============================================================
   The Podcast App – Marketing Site CSS
   Mobile-first. Comprehensive overhaul March 2026.
   ============================================================ */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(103, 166, 255, 0.22), transparent 30%),
    radial-gradient(circle at 85% 14%, rgba(255, 156, 67, 0.16), transparent 22%),
    linear-gradient(180deg, #07111F 0%, #0A1730 36%, #08131F 100%);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.page-light {
  color: var(--text-body);
  background:
    radial-gradient(circle at top left, rgba(103, 166, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #FAF7F0 0%, #F4EFE4 100%);
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--accent-cool);
  outline-offset: 3px;
}

/* ── Accessibility ────────────────────────────────────────── */
.skip-link {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 500;
  padding: 10px 14px;
  border-radius: var(--r-full);
  background: var(--paper);
  color: var(--text-body);
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Layout shell ─────────────────────────────────────────── */
.site-shell {
  position: relative;
  overflow-x: clip;
}

.shell-inner {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(7, 17, 31, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-light .site-header {
  background: rgba(250, 247, 240, 0.92);
  border-bottom-color: rgba(15, 27, 46, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  min-height: var(--header-height);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.02em;
  flex-shrink: 0;
  min-width: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(10, 23, 48, 0.28);
  flex-shrink: 0;
}

.brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.brand-title {
  font-size: 0.97rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.brand-tagline {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.page-light .brand-tagline {
  color: var(--text-body-muted);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 20px;
}

.nav-links a {
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: #FFFFFF;
}

body.page-light .nav-links a {
  color: var(--text-body-muted);
}

body.page-light .nav-links a:hover,
body.page-light .nav-links a[aria-current="page"] {
  color: var(--text-body);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  transition: background var(--transition-fast);
}

.nav-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.page-light .nav-toggle {
  color: var(--text-body);
  border-color: rgba(15, 27, 46, 0.12);
  background: rgba(15, 27, 46, 0.03);
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.mobile-nav {
  display: grid;
  gap: 4px;
  padding: 0 0 16px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity var(--transition-base), max-height 0.35s ease;
}

.mobile-nav.is-open {
  opacity: 1;
  max-height: 360px;
  pointer-events: auto;
}

.mobile-nav a {
  display: block;
  padding: 10px 4px;
  color: var(--text-soft);
  font-weight: var(--font-weight-medium);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: color var(--transition-fast);
}

.mobile-nav a:last-child {
  border-bottom: none;
}

.mobile-nav a:hover {
  color: var(--text);
}

body.page-light .mobile-nav a {
  color: var(--text-body-muted);
  border-bottom-color: rgba(15, 27, 46, 0.06);
}

.mobile-nav-cta {
  margin-top: 8px;
  padding: 12px 4px !important;
  text-align: center;
  font-weight: var(--font-weight-semibold) !important;
  color: #FFFFFF !important;
  background: var(--accent-cool);
  border-radius: 10px;
  border-bottom: none !important;
}

body.page-light .mobile-nav-cta {
  color: #FFFFFF !important;
  background: var(--accent-cool);
}

/* ── Legacy header-nav (older page template) ─────────────── */
.header-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.header-nav a {
  color: var(--text-soft);
  font-size: 0.93rem;
  font-weight: var(--font-weight-medium);
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.header-nav a:hover {
  color: #FFFFFF;
}

.header-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

@media (max-width: 720px) {
  .header-nav {
    display: none;
  }
}

/* ── Buttons ──────────────────────────────────────────────── */
.button,
.button-secondary,
.button-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: var(--r-full);
  border: 1px solid transparent;
  font-size: 0.97rem;
  font-weight: var(--font-weight-semibold);
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast),
    background-color var(--transition-fast),
    border-color var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.button {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: #091220;
  box-shadow: 0 10px 28px rgba(255, 122, 0, 0.28);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(255, 122, 0, 0.36);
}

.button:active {
  transform: translateY(0);
}

.button-secondary {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.07);
}

.button-secondary:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.11);
}

.button-ghost {
  color: var(--text-body);
  border-color: rgba(15, 27, 46, 0.14);
  background: rgba(15, 27, 46, 0.04);
}

.button-ghost:hover {
  transform: translateY(-1px);
}

body.page-light .button-secondary {
  color: var(--text-body);
  border-color: rgba(15, 27, 46, 0.14);
  background: rgba(15, 27, 46, 0.04);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 34px 0 calc(var(--space-5xl) - 8px);
  overflow: clip;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  filter: blur(18px);
}

.hero::before {
  top: 84px;
  left: -80px;
  width: 320px;
  height: 320px;
  border-radius: 40px;
  background: radial-gradient(circle, rgba(255, 156, 67, 0.16) 0%, rgba(255, 156, 67, 0.03) 62%, transparent 76%);
}

.hero::after {
  top: 52px;
  right: 10%;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 230, 255, 0.16) 0%, rgba(103, 230, 255, 0.03) 64%, transparent 76%);
}

.hero-grid {
  display: grid;
  gap: 38px;
  align-items: start;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
}

.eyebrow strong {
  color: var(--accent-cool);
}

body.page-light .eyebrow {
  border-color: rgba(15, 27, 46, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-body-muted);
}

.display-title,
.section-title,
.page-title,
.legal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.045em;
  line-height: 0.96;
}

.display-title {
  margin-top: 16px;
  font-size: clamp(2.8rem, 5.5vw, 4rem);
  max-width: 18ch;
}

.lede,
.section-copy,
.page-subtitle {
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-copy .lede {
  margin-top: 16px;
  max-width: 52ch;
}

.hero-copy {
  position: relative;
  max-width: 640px;
}

.hero-copy .eyebrow {
  background: linear-gradient(135deg, rgba(103, 230, 255, 0.12), rgba(255, 255, 255, 0.04));
  border-color: rgba(103, 230, 255, 0.18);
}

.hero-action-panel {
  display: grid;
  gap: 16px;
  margin-top: 24px;
  padding: 18px 18px 20px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03)),
    rgba(9, 18, 32, 0.66);
  box-shadow: 0 18px 44px rgba(4, 12, 24, 0.18);
}

.hero-action-panel .cta-row,
.hero-action-panel .store-row,
.hero-action-panel .hero-meta {
  margin-top: 0;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.store-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  transition: transform var(--transition-fast), opacity var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}

.store-link:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.store-link img {
  height: 50px;
  width: auto;
}

.pill-row,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hero-meta {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-width: 580px;
}

.hero-meta .pill {
  min-height: 70px;
  padding: 14px 16px;
  border-radius: 20px;
  border-color: rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(135deg, rgba(103, 166, 255, 0.12), rgba(255, 156, 67, 0.08)),
    rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 4px;
  line-height: 1.35;
}

.hero-meta .pill strong {
  display: block;
}

.pill,
.signal-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.87rem;
}

body.page-light .pill,
body.page-light .signal-chip {
  color: var(--text-body-muted);
  border-color: rgba(15, 27, 46, 0.09);
  background: rgba(255, 255, 255, 0.8);
}

.pill strong,
.signal-chip strong {
  color: #FFFFFF;
}

body.page-light .pill strong,
body.page-light .signal-chip strong {
  color: var(--text-body);
}

.hero-note {
  margin-top: 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  max-width: 50ch;
  line-height: 1.7;
}

/* ── Trust bar (homepage) ────────────────────────────────── */
.trust-bar {
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 18px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 16px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.trust-item strong {
  color: #FFFFFF;
}

.trust-stars {
  color: var(--accent);
  letter-spacing: 1px;
  font-size: 0.9rem;
}

.trust-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.8rem;
}

/* ── Hero stage / device ──────────────────────────────────── */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 10px 0 30px 36px;
  overflow: visible;
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: 18px 10px 84px 96px;
  border-radius: 44px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(103, 166, 255, 0.12), rgba(255, 156, 67, 0.08));
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  z-index: 0;
}

.hero-stage::after {
  content: "";
  position: absolute;
  right: 24px;
  top: 64px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 230, 255, 0.12) 0%, transparent 72%);
  filter: blur(14px);
  z-index: 0;
}

.stage-device {
  position: relative;
  width: min(100%, 388px);
  margin-left: auto;
  padding: 14px;
  border-radius: 40px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.02)),
    rgba(8, 15, 28, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
  z-index: 1;
}

.stage-device img {
  position: relative;
  z-index: 1;
  border-radius: 26px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-height: 700px;
  object-fit: cover;
  object-position: top;
}

/* ── Floating cards ───────────────────────────────────────── */
.floating-card {
  position: absolute;
  width: min(284px, 66vw);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2;
}

.answer-card {
  top: 22px;
  left: -54px;
  padding: 16px 16px 14px;
  background: rgba(10, 22, 40, 0.92);
  z-index: 4;
}

.answer-card::before,
.radio-card::before,
.memory-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(103, 230, 255, 0.52), rgba(255, 156, 67, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.card-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-cool);
  font-size: 0.76rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
}

.card-question,
.card-title {
  margin: 8px 0 6px;
  font-size: 0.98rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

.card-copy {
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.65;
}

.citation-list {
  display: grid;
  gap: 7px;
  margin-top: 12px;
}

.citation {
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.citation strong {
  color: #FFFFFF;
}

.radio-card {
  right: -18px;
  bottom: 150px;
  padding: 16px 16px 14px;
  background:
    linear-gradient(135deg, rgba(255, 156, 67, 0.22), rgba(103, 230, 255, 0.16)),
    rgba(12, 21, 38, 0.92);
  z-index: 2;
}

.waveform {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
  margin-top: 14px;
}

.wave-bar {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(103, 230, 255, 0.95), rgba(255, 156, 67, 0.6));
  animation: waveMotion 1.9s ease-in-out infinite;
}

.wave-bar:nth-child(1) { height: 18px; animation-delay: -0.2s; }
.wave-bar:nth-child(2) { height: 34px; animation-delay: -0.5s; }
.wave-bar:nth-child(3) { height: 24px; animation-delay: -1.2s; }
.wave-bar:nth-child(4) { height: 42px; animation-delay: -0.9s; }
.wave-bar:nth-child(5) { height: 30px; animation-delay: -0.4s; }
.wave-bar:nth-child(6) { height: 48px; animation-delay: -1.5s; }
.wave-bar:nth-child(7) { height: 21px; animation-delay: -0.8s; }
.wave-bar:nth-child(8) { height: 38px; animation-delay: -0.1s; }

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mini-tags span {
  padding: 6px 10px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.76rem;
}

.memory-card {
  left: -18px;
  bottom: 56px;
  padding: 16px 16px 14px;
  background: rgba(11, 21, 38, 0.94);
  z-index: 3;
}

.memory-rows {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.memory-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.memory-row strong {
  color: #FFFFFF;
  font-size: 0.78rem;
}

/* ── Signal bar ───────────────────────────────────────────── */
.signal-bar {
  margin-top: 32px;
  padding: 12px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.signal-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  align-items: center;
}

.signal-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 0.88rem;
}

.signal-item strong {
  color: #FFFFFF;
}

/* ── Social proof bar ─────────────────────────────────────── */
.social-proof-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 32px;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 32px;
}

.proof-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.proof-item strong {
  color: var(--text);
  font-size: 1.1rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: -0.02em;
}

.proof-stars {
  color: var(--accent);
  font-size: 0.9rem;
  letter-spacing: 1px;
}

/* ── Sections ─────────────────────────────────────────────── */
.section {
  padding: var(--space-5xl) 0;
}

.section.alt {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01)),
    rgba(4, 10, 20, 0.28);
}

body.page-light .section.alt {
  background: rgba(255, 255, 255, 0.45);
}

.section-head {
  display: grid;
  gap: 12px;
  max-width: 720px;
  margin-bottom: 36px;
}

.section-kicker {
  color: var(--accent-cool);
  font-size: 0.8rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
}

body.page-light .section-kicker {
  color: var(--primary-dark);
}

.section-title {
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.section-copy {
  margin: 0;
}

/* ── Mode board (tabs) ────────────────────────────────────── */
.mode-board {
  display: grid;
  gap: 18px;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mode-tab {
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-weight: var(--font-weight-medium);
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.mode-tab.is-active {
  background: linear-gradient(135deg, rgba(103, 166, 255, 0.2), rgba(255, 156, 67, 0.18));
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.18);
}

body.page-light .mode-tab {
  color: var(--text-body);
  border-color: rgba(15, 27, 46, 0.09);
  background: rgba(255, 255, 255, 0.85);
}

body.page-light .mode-tab.is-active {
  background: linear-gradient(135deg, rgba(103, 166, 255, 0.14), rgba(255, 156, 67, 0.14));
}

.mode-panel {
  display: none;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  padding: 28px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-sm);
}

.mode-panel.is-active {
  display: grid;
}

body.page-light .mode-panel {
  border-color: rgba(15, 27, 46, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

/* ── Copy blocks ──────────────────────────────────────────── */
.panel-copy h3,
.story-copy h3,
.support-card h3,
.pricing-card h3,
.legal-content h2,
.legal-content h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.panel-copy p,
.story-copy p,
.support-card p,
.pricing-card p,
.legal-content p,
.legal-content li {
  color: var(--text-soft);
}

body.page-light .panel-copy p,
body.page-light .story-copy p,
body.page-light .support-card p,
body.page-light .pricing-card p {
  color: var(--text-body-muted);
}

.feature-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 16px 0 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--accent-cool), var(--accent));
  flex: 0 0 auto;
}

body.page-light .feature-list li {
  color: var(--text-body-muted);
}

/* ── Guide sections ───────────────────────────────────────── */
.guide-section {
  color: var(--text-body);
}

.guide-section h2,
.guide-section h3,
.guide-section h4 {
  color: var(--text-body);
}

.guide-section p,
.guide-section li {
  color: var(--text-body-muted);
}

.guide-section ul,
.guide-section ol {
  padding-left: 1.2rem;
}

.guide-section a {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.guide-section .guide-content,
.guide-section:not([id]) {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 36px);
  border-radius: 24px;
  background: rgba(248, 249, 252, 0.98);
  border: 1px solid rgba(15, 27, 46, 0.08);
  box-shadow: var(--shadow-sm);
}

.guide-section:not([id]) {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

body.page-light .guide-section .guide-content,
body.page-light .guide-section:not([id]) {
  background: rgba(255, 255, 255, 0.96);
}

/* ── Panel / story visuals ────────────────────────────────── */
.panel-visual,
.story-visual {
  position: relative;
  align-self: start;
  padding: 20px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02)),
    rgba(8, 17, 31, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

body.page-light .panel-visual,
body.page-light .story-visual {
  background:
    linear-gradient(180deg, rgba(103, 166, 255, 0.08), rgba(255, 255, 255, 0.78)),
    rgba(255, 255, 255, 0.94);
  border-color: rgba(15, 27, 46, 0.08);
}

/* Screenshot inside story/panel visual */
.visual-screenshot {
  width: 100%;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.visual-stack {
  display: grid;
  gap: 12px;
}

/* ── Mini cards ───────────────────────────────────────────── */
.mini-card,
.metric-card,
.step-card,
.highlight-card,
.support-card,
.pricing-card,
.resource-card,
.cta-panel,
.legal-card,
.install-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-sm);
}

body.page-light .mini-card,
body.page-light .metric-card,
body.page-light .step-card,
body.page-light .highlight-card,
body.page-light .support-card,
body.page-light .pricing-card,
body.page-light .resource-card,
body.page-light .cta-panel,
body.page-light .legal-card,
body.page-light .install-card {
  border-color: rgba(15, 27, 46, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.mini-card h4,
.metric-card h4,
.step-card h3,
.highlight-card h3 {
  margin: 0 0 8px;
  font-size: 0.97rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

.mini-card p,
.metric-card p,
.step-card p,
.highlight-card p,
.resource-card p,
.cta-panel p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

body.page-light .mini-card p,
body.page-light .metric-card p,
body.page-light .step-card p,
body.page-light .highlight-card p,
body.page-light .resource-card p,
body.page-light .cta-panel p {
  color: var(--text-body-muted);
}

/* ── Grids ────────────────────────────────────────────────── */
.story-grid,
.highlights-grid,
.steps-grid,
.pricing-grid,
.resource-grid,
.support-grid,
.footer-grid {
  display: grid;
  gap: 18px;
}

.story-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.highlights-grid,
.steps-grid,
.support-grid,
.resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.story-card {
  display: grid;
  gap: 16px;
  align-items: stretch;
  padding: 26px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.story-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

body.page-light .story-card {
  border-color: rgba(15, 27, 46, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.story-card.featured {
  background:
    linear-gradient(135deg, rgba(103, 166, 255, 0.16), rgba(255, 156, 67, 0.16)),
    rgba(255, 255, 255, 0.04);
}

/* ── Story card icons ────────────────────────────────────── */
.story-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--primary);
  flex-shrink: 0;
}
.story-icon svg {
  width: 24px;
  height: 24px;
}
body.page-light .story-icon {
  background: rgba(15, 27, 46, 0.04);
  border-color: rgba(15, 27, 46, 0.08);
}

/* ── Podcast website link (listen-to pages) ──────────────── */
.podcast-website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(62, 231, 255, 0.08);
  border: 1px solid rgba(62, 231, 255, 0.2);
  text-decoration: none;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.podcast-website-link:hover {
  background: rgba(62, 231, 255, 0.14);
  border-color: rgba(62, 231, 255, 0.35);
}

/* ── Query / radio / timeline frames ─────────────────────── */
.query-frame,
.radio-frame,
.timeline-frame {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

body.page-light .query-frame,
body.page-light .radio-frame,
body.page-light .timeline-frame {
  background: rgba(15, 27, 46, 0.04);
  border-color: rgba(15, 27, 46, 0.08);
}

.query-prompt {
  display: inline-flex;
  padding: 9px 12px;
  border-radius: 14px;
  background: rgba(103, 166, 255, 0.14);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.5;
}

body.page-light .query-prompt {
  color: var(--text-body);
}

.query-answer {
  margin-top: 12px;
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.65;
}

.query-sources {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.query-sources span,
.timeline-frame span {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.82rem;
}

body.page-light .query-sources span,
body.page-light .timeline-frame span {
  background: rgba(15, 27, 46, 0.04);
  color: var(--text-body-muted);
}

.timeline-frame {
  display: grid;
  gap: 9px;
}

/* ── Step numbers ─────────────────────────────────────────── */
.step-number {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(103, 166, 255, 0.28), rgba(255, 156, 67, 0.28));
  color: #FFFFFF;
  font-weight: var(--font-weight-semibold);
  font-size: 0.9rem;
}

body.page-light .step-number {
  color: var(--text-body);
}

/* ── Pricing ──────────────────────────────────────────────── */
.pricing-card {
  display: grid;
  gap: 14px;
}

.pricing-card.highlight {
  background:
    linear-gradient(145deg, rgba(103, 166, 255, 0.2), rgba(255, 156, 67, 0.14)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(103, 166, 255, 0.24);
}

.pricing-kicker {
  color: var(--accent-cool);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: var(--font-weight-semibold);
}

body.page-light .pricing-kicker {
  color: var(--primary-dark);
}

.price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-line strong {
  font-size: 2.4rem;
  letter-spacing: -0.04em;
}

.price-line span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.pricing-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-full);
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #091220;
  font-size: 0.76rem;
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ── CTA panel ────────────────────────────────────────────── */
.cta-panel {
  display: grid;
  gap: 14px;
  align-content: start;
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list {
  display: grid;
  gap: 10px;
  max-width: 760px;
}

.faq-item {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

body.page-light .faq-item {
  border-color: rgba(15, 27, 46, 0.08);
  background: rgba(255, 255, 255, 0.88);
}

.faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: none;
  background: transparent;
  color: inherit;
  text-align: left;
  font-size: 0.97rem;
  font-weight: var(--font-weight-semibold);
  line-height: 1.4;
}

.faq-icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform var(--transition-fast), background var(--transition-fast);
}

body.page-light .faq-icon {
  border-color: rgba(15, 27, 46, 0.1);
}

.faq-item.is-open .faq-icon {
  transform: rotate(45deg);
  background: rgba(103, 166, 255, 0.14);
  color: var(--accent-cool);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.faq-panel-inner {
  padding: 0 20px 20px;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

body.page-light .faq-panel-inner {
  color: var(--text-body-muted);
}

/* ── Also support <details> FAQ variant ──────────────────── */
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  font-size: 0.97rem;
  font-weight: var(--font-weight-medium);
  cursor: pointer;
  list-style: none;
  color: var(--text);
  line-height: 1.4;
}

body.page-light .faq-q {
  color: var(--text-body);
}

.faq-q::-webkit-details-marker { display: none; }

.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  font-weight: 300;
  flex-shrink: 0;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

details[open] .faq-q::after {
  transform: rotate(45deg);
}

.faq-a {
  padding: 0 20px 18px;
}

.faq-a p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.65;
}

body.page-light .faq-a p {
  color: var(--text-body-muted);
}

/* ── Page hero (inner pages) ──────────────────────────────── */
.page-hero,
.legal-hero {
  padding: 52px 0 38px;
}

.page-hero-grid,
.support-layout,
.install-layout {
  display: grid;
  gap: 22px;
}

.page-title,
.legal-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.08;
}

.page-subtitle {
  max-width: 62ch;
  font-size: 1.04rem;
  line-height: 1.7;
}

.last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.meta-item {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: var(--r-full);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: var(--font-weight-medium);
}

body.page-light .meta-item {
  border-color: rgba(15, 27, 46, 0.1);
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-body-muted);
}


/* ── Panel visual (inner pages) ──────────────────────────── */
.panel-visual .query-frame {
  align-self: start;
}

/* ── Legal ────────────────────────────────────────────────── */
.legal-card {
  margin-bottom: var(--space-3xl);
}

.legal-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  border-radius: var(--r-full);
  background: rgba(15, 27, 46, 0.05);
  color: var(--text-body-muted);
  font-size: 0.9rem;
}

.legal-content h2 {
  margin-top: 28px;
  color: var(--text-body);
}

.legal-content h3 {
  margin-top: 18px;
  color: var(--text-body);
}

.legal-content p,
.legal-content li {
  color: var(--text-body-muted);
}

.legal-content ul {
  padding-left: 20px;
}

/* ── Resources ────────────────────────────────────────────── */
.resource-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.resource-list li {
  display: flex;
  gap: 12px;
  color: var(--text-body-muted);
}

.resource-list li::before {
  content: '';
  width: 9px;
  height: 9px;
  margin-top: 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  flex: 0 0 auto;
}

/* ── Install card ─────────────────────────────────────────── */
.install-card {
  max-width: 640px;
  margin: 0 auto var(--space-4xl);
  text-align: center;
}

.button-stack {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.page-cta {
  margin-top: 22px;
}

/* ── Reviews ──────────────────────────────────────────────── */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.review-card {
  position: relative;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

body.page-light .review-card {
  border-color: rgba(15, 27, 46, 0.08);
  background: rgba(255, 255, 255, 0.92);
}

.review-stars {
  color: var(--accent);
  font-size: 1rem;
  letter-spacing: 2px;
}

.review-body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-soft);
  font-style: normal;
  flex: 1;
}

body.page-light .review-body {
  color: var(--text-body-muted);
}

.review-meta {
  margin-top: auto;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
}

/* ── Comparison table ─────────────────────────────────────── */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin-top: 8px;
}

.comparison-table th,
.comparison-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.comparison-table th {
  color: var(--text-muted);
  font-weight: var(--font-weight-medium);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table td:first-child {
  color: var(--text-soft);
}

.comparison-table td.yes {
  color: var(--success);
  font-weight: var(--font-weight-semibold);
}

.comparison-table td.no {
  color: var(--text-muted);
}

.comparison-table tr.highlight-row td {
  color: var(--text);
  font-weight: var(--font-weight-semibold);
}

body.page-light .comparison-table th,
body.page-light .comparison-table td {
  border-bottom-color: rgba(15, 27, 46, 0.07);
}

body.page-light .comparison-table td:first-child {
  color: var(--text-body-muted);
}

/* ── Final CTA band ───────────────────────────────────────── */
.final-band {
  padding: var(--space-5xl) 0;
}

.final-band .cta-panel {
  padding: 36px;
  border-radius: 32px;
  background:
    radial-gradient(circle at top right, rgba(255, 156, 67, 0.24), transparent 38%),
    linear-gradient(135deg, rgba(103, 166, 255, 0.2), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.04);
  border-color: rgba(103, 166, 255, 0.14);
}

body.page-light .final-band .cta-panel {
  background:
    radial-gradient(circle at top right, rgba(255, 156, 67, 0.14), transparent 36%),
    linear-gradient(135deg, rgba(103, 166, 255, 0.12), rgba(255, 255, 255, 0.88)),
    rgba(255, 255, 255, 0.92);
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--text-muted);
}

body.page-light .site-footer {
  border-top-color: rgba(15, 27, 46, 0.08);
  color: var(--text-body-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 28px;
  align-items: start;
  margin-bottom: 28px;
}

.footer-brand-col {
  display: grid;
  gap: 12px;
}

.footer-nav-col h4 {
  margin: 0 0 14px;
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: var(--font-weight-semibold);
}

.footer-nav-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-nav-col a:hover {
  color: var(--text);
}

body.page-light .footer-nav-col a:hover {
  color: var(--text-body);
}

/* Legacy footer-nav for pages that use the old single-column layout */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px 18px;
}

.footer-nav a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-nav a:hover {
  color: var(--text);
}

body.page-light .footer-nav a:hover {
  color: var(--text-body);
}

.footer-small {
  font-size: 0.88rem;
  color: inherit;
  line-height: 1.6;
}

/* ── Inline links ─────────────────────────────────────────── */
.legal-content a,
.faq-panel-inner a,
.support-card a,
.metric-card a,
.footer-small a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* ── Reveal animation ─────────────────────────────────────── */
[data-reveal] {
  opacity: 1;
  transform: none;
}

[data-reveal].reveal-pending {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

[data-reveal].reveal-pending.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Animations ───────────────────────────────────────────── */
@keyframes waveMotion {
  0%, 100% { transform: scaleY(0.72); }
  50% { transform: scaleY(1.05); }
}

/* ── Responsive: Desktop ≥ 900px ──────────────────────────── */
@media (min-width: 900px) {
  .nav-links {
    display: inline-flex;
  }

  .nav-toggle {
    display: none;
  }

  .hero-grid,
  .page-hero-grid,
  .support-layout,
  .install-layout {
    grid-template-columns: 1.05fr 0.95fr;
  }

  /* Content pages: center the panel visual against the hero copy */
  .page-hero-grid {
    align-items: center;
  }

  /* Homepage hero: keep top-aligned for the device mockup */
  .hero-grid {
    align-items: start;
    grid-template-columns: 1.03fr 0.97fr;
  }

  .hero-stage {
    padding-left: 52px;
  }
}

/* ── Responsive: Tablet 720–1080px ───────────────────────── */
@media (max-width: 1080px) {
  .story-grid,
  .highlights-grid,
  .steps-grid,
  .support-grid,
  .resource-grid,
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand-col {
    grid-column: 1 / -1;
  }
}

/* ── Responsive: Mobile ≤ 899px ───────────────────────────── */
@media (max-width: 899px) {
  .hero {
    padding-top: 24px;
  }

  .hero-stage {
    min-height: 450px;
    padding-left: 26px;
    padding-bottom: 10px;
    overflow: visible;
  }

  .hero-stage::before {
    inset: 18px 0 54px 46px;
  }

  .stage-device {
    margin: 0 auto;
    width: min(100%, 344px);
  }

  .answer-card {
    top: 12px;
    left: -18px;
  }

  .radio-card {
    right: -4px;
    bottom: 106px;
  }

  .memory-card {
    left: 0;
    bottom: 18px;
  }

  .mode-panel {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-nav {
    justify-content: flex-start;
  }
}

/* ── Mobile brain preview (shown only on mobile, replaces floating cards) ── */
.hero-brain-preview {
  display: none; /* hidden on desktop; shown on mobile via media query */
  margin-top: 16px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(103, 230, 255, 0.22);
  background: rgba(10, 22, 40, 0.92);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.hero-brain-preview .card-label {
  margin-bottom: 8px;
}

.hero-brain-preview .card-question {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.hero-brain-preview .card-copy {
  color: var(--text-soft);
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0 0 12px;
}

.hero-brain-preview .citation-list {
  display: grid;
  gap: 7px;
}

/* ── RTL overrides ───────────────────────────────────────── */
html[dir="rtl"] body {
  direction: rtl;
}

html[dir="rtl"] .skip-link {
  left: auto;
  right: 16px;
}

html[dir="rtl"] .faq-trigger,
html[dir="rtl"] .comparison-table th,
html[dir="rtl"] .comparison-table td,
html[dir="rtl"] .table-wrap,
html[dir="rtl"] .footer-small {
  text-align: right;
}

html[dir="rtl"] .hero-stage {
  padding: 10px 36px 30px 0;
}

html[dir="rtl"] .hero-stage::before {
  inset: 18px 96px 84px 10px;
}

html[dir="rtl"] .answer-card {
  left: auto;
  right: -54px;
}

html[dir="rtl"] .radio-card {
  right: auto;
  left: -18px;
}

html[dir="rtl"] .memory-card {
  left: auto;
  right: -18px;
}

html[dir="rtl"] .hero-meta .pill {
  align-items: flex-end;
  text-align: right;
}

html[dir="rtl"] .footer-nav {
  justify-content: flex-start;
}

@media (max-width: 899px) {
  html[dir="rtl"] .hero-stage {
    padding-right: 26px;
    padding-left: 0;
  }

  html[dir="rtl"] .hero-stage::before {
    inset: 18px 46px 54px 0;
  }

  html[dir="rtl"] .answer-card {
    right: -18px;
    left: auto;
  }

  html[dir="rtl"] .radio-card {
    left: -4px;
    right: auto;
  }

  html[dir="rtl"] .memory-card {
    right: 0;
    left: auto;
  }
}

.hero-brain-preview .citation {
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  font-size: 0.82rem;
}

.hero-brain-preview .citation strong {
  color: #FFFFFF;
}

/* ── Responsive: Mobile ≤ 720px ────────────────────────────── */
@media (max-width: 720px) {
  .shell-inner {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .header-inner {
    gap: 8px;
  }

  .brand {
    gap: 8px;
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }

  .brand-copy {
    min-width: 0;
  }

  .header-actions {
    gap: 8px;
    flex: 0 0 auto;
  }

  body[data-page="home"] .header-actions .button {
    display: none;
  }

  .site-header .button,
  .site-header .button-ghost {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.92rem;
  }

  /* Shorten "Download free" → "Download" in header on mobile */
  .header-actions .cta-free {
    display: none;
  }

  .display-title {
    font-size: clamp(2.05rem, 9.4vw, 3.15rem);
    max-width: 11ch;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }

  .section-title,
  .page-title,
  .legal-title {
    font-size: clamp(1.9rem, 9vw, 3.4rem);
  }

  /* Collapse hero to single column on mobile */
  .hero-grid {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .hero-copy {
    overflow: visible;
    min-width: 0;
    width: 100%;
    max-width: none;
  }

  .hero-action-panel {
    gap: 14px;
    padding: 16px;
    border-radius: 24px;
  }

  .hero-action-panel .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-action-panel .cta-row .button,
  .hero-action-panel .cta-row .button-secondary {
    justify-content: center;
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .hero-stage {
    min-height: unset;
    padding: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .stage-device {
    padding: 12px;
    width: min(100%, 250px);
    margin-left: auto;
    margin-right: auto;
  }

  .stage-device img {
    max-height: 400px;
    object-fit: cover;
    object-position: top;
  }

  /* Hide all floating cards on mobile — they overlap the device frame */
  .floating-card {
    display: none !important;
  }

  /* Show the in-flow brain preview card instead */
  .hero-brain-preview {
    display: block;
    width: min(100%, 320px);
    margin: 12px auto 0;
  }

  .hero-meta {
    grid-template-columns: 1fr 1fr;
    max-width: none;
  }

  .hero-meta .pill {
    min-height: 62px;
    padding: 12px 14px;
  }

  .story-grid,
  .highlights-grid,
  .steps-grid,
  .support-grid,
  .resource-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .story-card,
  .mode-panel,
  .mini-card,
  .metric-card,
  .step-card,
  .highlight-card,
  .support-card,
  .pricing-card,
  .resource-card,
  .cta-panel,
  .legal-card,
  .install-card {
    padding: 18px;
  }

  .section,
  .final-band {
    padding: 64px 0;
  }

  .final-band .cta-panel {
    padding: 24px;
    border-radius: 24px;
  }

  .social-proof-bar {
    gap: 14px 20px;
  }

  .comparison-table {
    font-size: 0.84rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
}

/* ── Responsive: Small mobile ≤ 480px ────────────────────── */
@media (max-width: 480px) {
  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-title {
    font-size: 0.88rem;
    max-width: none;
  }

  .brand-tagline {
    display: none;
  }

  /* Compact the CTA button on very small screens to give brand more room */
  .site-header .button,
  .site-header .button-ghost {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .hero-stage {
    /* keep unset from 720px breakpoint */
  }

  .stage-device {
    width: min(100%, 280px);
    padding: 10px;
  }

  .hero-brain-preview {
    width: min(100%, 280px);
  }

  .hero-action-panel .cta-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-action-panel .cta-row .button,
  .hero-action-panel .cta-row .button-secondary {
    justify-content: center;
    width: 100%;
    min-width: 0;
    white-space: normal;
    text-align: center;
  }

  .store-row {
    gap: 10px;
  }
}

/* ── Responsive: Extra-small mobile ≤ 360px ─────────────── */
@media (max-width: 360px) {
  /* Keep the header Download button visible — text is short enough now */
  .header-actions .button {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.78rem;
  }

  /* Ensure hamburger stays visible */
  .header-actions {
    gap: 0;
  }

  /* Brand can now use more space */
  .brand-title {
    font-size: 0.9rem;
  }
}

@media (max-width: 420px) {
  body[data-page="home"] .header-actions .button {
    display: none;
  }

  .header-actions {
    gap: 0;
  }
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .wave-bar {
    animation: none;
  }
}


/* ── Related Pages (Internal Linking) ────────────────────── */
.related-pages {
  padding: 64px 0;
}

.related-pages .section-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: 32px;
}

.related-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.related-link {
  display: inline-flex;
  align-items: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  color: var(--text-muted, rgba(255, 255, 255, 0.7));
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  white-space: nowrap;
}

.related-link:hover {
  background: rgba(255, 156, 67, 0.12);
  border-color: rgba(255, 156, 67, 0.4);
  color: var(--accent, #FF9C43);
}

@media (max-width: 720px) {
  .related-pages {
    padding: 40px 0;
  }

  .related-grid {
    gap: 8px;
  }

  .related-link {
    padding: 8px 14px;
    font-size: 0.82rem;
  }
}

/* ── Comparison Table ────────────────────────────────────────────── */

.table-wrap {
  overflow-x: auto;
  margin-top: 24px;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  overflow: hidden;
  font-size: 0.95rem;
}

.comparison-table thead tr {
  background: rgba(99, 102, 241, 0.15);
}

.comparison-table th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: #e2e8f0;
}

.comparison-table th.col-tpa {
  color: #34d399;
}

.comparison-table th.col-competitor {
  color: #94a3b8;
}

.comparison-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  font-weight: 600;
}

.comparison-table td.col-tpa {
  color: #34d399;
  font-weight: 400;
}

.comparison-table td.col-competitor {
  color: #94a3b8;
  font-weight: 400;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

/* Competitor intro paragraph */
.competitor-intro {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #e2e8f0;
  margin-bottom: 16px;
}

@media (max-width: 720px) {
  .comparison-table {
    font-size: 0.85rem;
  }

  .comparison-table th,
  .comparison-table td {
    padding: 10px 12px;
  }
}
