/* =========================================================
   CuePilot — marketing site
   Identity: "On Air — Broadcast Studio"
   Fonts: Proxima Nova (display/UI), DIN Pro (timecodes)
   Palette lifted from ios/DesignSystem/CPColors.swift
   ========================================================= */

:root {
  /* Light is the DEFAULT scheme. Dark renders only when the visitor has
     explicitly chosen it (data-theme="dark", stored by the toggle); the OS
     preference never auto-switches the site to dark. */
  /* Stage & panels (light) */
  --stage:        #f4f2ee;
  --panel:        #ffffff;
  --panel-raised: #fbfaf7;
  --hairline:     #e2ddd2;

  /* Text (light) — text-3 darkened to #65676e for a 4.5:1+ AA ratio on the
     warm stage (the old #7a7c84 measured ~3.7:1). */
  --text:         #1b1c20;
  --text-2:       #4c4e56;
  --text-3:       #65676e;

  /* Signals (light) — amber stays a fill/border colour; amber-ink carries
     amber-toned TEXT at an AA-safe 4.6:1 on the stage. */
  --amber:        #c87f0a;
  --amber-ink:    #9a6106;
  --amber-soft:   rgba(200, 127, 10, 0.14);
  --red:          #c41f24;
  --red-soft:     rgba(196, 31, 36, 0.12);

  /* Reading surface */
  --paper:        #ffffff;
  --ink:          #1f1c17;
  --ink-2:        #57524a;

  --maxw: 1140px;
  --radius: 14px;
  --radius-sm: 10px;

  --font-display: "PP Neue Montreal", "PP Neue Montreal Text", ui-sans-serif, system-ui, sans-serif;
  --font-mono: "PP Neue Montreal Text", ui-sans-serif, system-ui, sans-serif;
}

/* Dark theme — the explicit stored choice only (see the theme script). */
:root[data-theme="dark"] {
  --stage:        #0b0c0f;
  --panel:        #16181d;
  --panel-raised: #1f2125;
  --hairline:     #383b41;
  --text:         #f4f4f7;
  --text-2:       #b3b6bf;
  --text-3:       #8d909a;
  --amber:        #ffb236;
  --amber-ink:    #ffb236;
  --amber-soft:   rgba(255, 178, 54, 0.16);
  --red:          #e8292e;
  --red-soft:     rgba(232, 41, 46, 0.16);
  --paper:        #f8f4eb;
  --ink:          #1f1c17;
  --ink-2:        #57524a;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--stage);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* faint cinematic stage vignette — not an aggressive gradient */
  background-image:
    radial-gradient(1200px 600px at 78% -8%, rgba(255, 178, 54, 0.06), transparent 60%),
    radial-gradient(900px 500px at 8% 4%, rgba(232, 41, 36, 0.05), transparent 55%);
  background-attachment: fixed;
}

/* Mobile web: fixed-attachment backgrounds repaint badly and blur on iOS
   Safari — let the vignette scroll with the page on small screens. */
@media (max-width: 900px) { body { background-attachment: scroll; } }

/* Touch: kill the legacy double-tap-zoom delay on controls without
   removing pinch zoom (viewport meta stays user-scalable). */
.btn, .theme-toggle, .nav-menu__btn, .nav-menu__panel a,
.footer__col a, .qa summary, .doc a { touch-action: manipulation; }

/* Weight discipline: Regular body, Medium controls/section headings; Bold is
   reserved for the single display hero (set in the page type system). */
h1, h2, h3, h4 { line-height: 1.08; margin: 0; text-wrap: balance; }
h2, h3, h4 { font-weight: 500; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -56px;
  background: var(--amber);
  color: #1a1206;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 500;
  z-index: 200;
  transition: top .18s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- shared layout ---------- */
section { padding: clamp(48px, 5vw, 76px) 24px; }
.section-head { max-width: 760px; margin: 0 auto clamp(32px, 4vw, 48px); text-align: center; }
.section-head h2 { font-size: clamp(1.375rem, 2.4vw, 1.625rem); letter-spacing: -0.015em; }
.section-head__sub { color: var(--text-2); margin-top: 12px; font-size: 1rem; }

/* Eyebrow labels: sentence case, Medium, no tracked uppercase, no mono —
   tracked all-caps + monospace labels are named template tells. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-2);
  margin: 0 0 14px;
}
.eyebrow__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.98rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .14s ease, background .18s ease, border-color .18s ease, color .18s ease;
}
.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1.04rem; }
.btn--block { width: 100%; }
.btn--primary {
  background: var(--amber);
  color: #1a1206;
  box-shadow: 0 8px 28px -10px rgba(255, 178, 54, 0.55);
}
.btn--primary:hover { background: #ffc15c; transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline);
}
.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }
@media (prefers-reduced-motion: reduce) { .btn:hover { transform: none; } }

/* ---------- wordmark ---------- */
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 500; letter-spacing: -0.01em; font-size: 1.0625rem;
  min-height: 44px; /* tap target */
  padding: 0 4px; margin-left: -4px;
}
.wordmark__tally {
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
  flex: none;
}

/* ============ NAV ============ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--stage) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__links {
  display: flex;
  gap: 26px;
  margin-left: auto;
  font-size: 0.95rem;
  color: var(--text-2);
}
.nav__links a { padding: 10px 2px; transition: color .15s ease; }
.nav__links a:hover { color: var(--text); }
.nav__cta { white-space: nowrap; }

/* ---------- mobile menu (<=860px) ---------- */
/* <details>-based: opens with zero JS (JS below only closes it on
   navigation / outside tap / Escape, so it degrades gracefully). */
.nav-menu { display: none; position: relative; }
.nav-menu__btn {
  list-style: none;
  width: 44px; height: 44px; padding: 0;
  display: inline-grid; place-items: center;
  border: 1px solid var(--hairline); border-radius: 999px;
  background: var(--panel-raised); color: var(--text);
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: border-color .15s ease;
}
.nav-menu__btn::-webkit-details-marker { display: none; }
.nav-menu__btn:hover { border-color: var(--amber); }
.nav-menu__bars,
.nav-menu__bars::before,
.nav-menu__bars::after {
  content: ""; display: block; position: relative;
  width: 16px; height: 2px; border-radius: 2px;
  background: currentColor;
}
.nav-menu__bars::before { position: absolute; top: -5px; }
.nav-menu__bars::after { position: absolute; top: 5px; }
.nav-menu[open] .nav-menu__bars { background: transparent; }
.nav-menu[open] .nav-menu__bars::before { top: 0; transform: rotate(45deg); }
.nav-menu[open] .nav-menu__bars::after { top: 0; transform: rotate(-45deg); }
.nav-menu__panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 32px));
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  box-shadow: 0 18px 48px rgba(16, 18, 27, 0.16);
  padding: 8px;
  display: grid;
  z-index: 120;
}
.nav-menu__panel a:not(.btn) {
  display: flex; align-items: center;
  min-height: 48px; padding: 0 14px;
  border-radius: 10px;
  color: var(--text-2); font-size: 1rem;
  transition: background .15s ease, color .15s ease;
}
.nav-menu__panel a:not(.btn):hover { background: var(--panel-raised); color: var(--text); }
.nav-menu__panel .btn { margin-top: 8px; }

@media (max-width: 860px) {
  .nav__inner { gap: 12px; }
  .nav__links { display: none; }
  .nav__cta { display: none; } /* the same CTA lives in the menu panel */
  .nav-menu { display: block; margin-left: auto; }
}

/* ============ HERO ============ */
/* Marketing preset: the ONE display headline, 36–44px, Bold — the only
   Bold element on the page. */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.hero__title {
  font-size: clamp(2.25rem, 4.2vw, 2.625rem);
  letter-spacing: -0.022em;
  margin-bottom: 18px;
}
.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: 52ch;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 14px; }
.hero__note { font-size: 0.8125rem; color: var(--text-3); }

/* ---------- PHONE (signature visual) ---------- */
.hero__device { display: flex; justify-content: center; }
.phone {
  position: relative;
  width: min(320px, 82vw);
  aspect-ratio: 9 / 19.2;
  margin: 0;
  background: #050507;
  border: 1.5px solid var(--hairline);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 40px 90px -30px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.03) inset;
}
.phone__notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 26px;
  background: #050507;
  border-radius: 0 0 16px 16px;
  z-index: 5;
}
.phone__screen {
  position: relative;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 50% 0%, #20232a 0%, #15171c 42%, #0c0d11 100%);
  display: flex;
  flex-direction: column;
  padding: 22px 16px 16px;
  /* The screen depicts the app's dark recording surface in BOTH themes:
     pin the dark-surface token values here so the light theme never
     renders dark-on-dark mockup text. */
  --text: #f4f4f7;
  --text-2: #b3b6bf;
  --text-3: #8d909a;
  --hairline: #383b41;
  --amber: #ffb236;
  --red: #e8292e;
  --red-soft: rgba(232, 41, 36, 0.16);
}
/* The generic elevation layer shadows every [class*="phone"] descendant;
     keep the inner screen clean (the frame itself carries the elevation). */
.phone .phone__screen { box-shadow: none; border-radius: 34px; }
.phone .phone__notch { box-shadow: none; }

/* camera reticle */
.reticle { position: absolute; inset: 14px; pointer-events: none; z-index: 2; }
.reticle__c { position: absolute; width: 26px; height: 26px; }
.reticle__c::before, .reticle__c::after {
  content: ""; position: absolute; background: var(--amber); opacity: 0.55; border-radius: 2px;
}
.reticle__c::before { width: 26px; height: 2px; }
.reticle__c::after  { width: 2px; height: 26px; }
.reticle__tl { top: 0; left: 0; }
.reticle__tr { top: 0; right: 0; }
.reticle__tr::before { right: 0; }
.reticle__tr::after  { right: 0; }
.reticle__bl { bottom: 0; left: 0; }
.reticle__bl::before { bottom: 0; }
.reticle__bl::after  { bottom: 0; }
.reticle__br { bottom: 0; right: 0; }
.reticle__br::before { bottom: 0; right: 0; }
.reticle__br::after  { bottom: 0; right: 0; }

.screen__top {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.screen__cam {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  letter-spacing: 0;
  color: var(--text-3);
}

/* ON-AIR tally */
.tally {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(22, 24, 29, 0.78);
  border: 1px solid var(--red-soft);
}
.tally__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 8px var(--red);
  animation: pulse 0.85s ease-in-out infinite alternate;
}
.tally__rec {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.6875rem; /* 11px — chip floor */
  letter-spacing: 0.14em;
  color: var(--red);
}
.tally__tc {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
@keyframes pulse {
  from { transform: scale(0.7); opacity: 0.5; }
  to   { transform: scale(1);   opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .tally__dot { animation: none; opacity: 1; }
}

/* eye-line beam */
.eyeline {
  position: relative; z-index: 2;
  height: 2px;
  margin: 18px 6px 14px;
  background: linear-gradient(90deg, transparent, rgba(255, 178, 54, 0.7), transparent);
  border-radius: 2px;
}

/* prompter (script on paper) */
.prompter {
  position: relative; z-index: 3;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 0 4px;
}
.prompter__line {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.18rem;
  line-height: 1.28;
  letter-spacing: -0.01em;
}
.prompter__line--past { color: var(--text-3); opacity: 0.55; font-size: 1rem; }
.prompter__line--cue {
  color: var(--paper);
  position: relative;
  padding-left: 12px;
}
.prompter__line--cue::before {
  content: ""; position: absolute; left: 0; top: 2px; bottom: 2px;
  width: 3px; border-radius: 3px; background: var(--amber);
}
.prompter__line--next { color: var(--text-2); opacity: 0.7; font-size: 1.02rem; }

.screen__bottom { position: relative; z-index: 3; margin-top: 14px; }
.progress {
  height: 4px; border-radius: 4px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden; margin-bottom: 16px;
}
.progress__fill { display: block; height: 100%; width: 38%; background: var(--amber); border-radius: 4px; }
.controls { display: flex; align-items: center; justify-content: space-between; }
.ctl {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--text-2);
  border: 1px solid var(--hairline); background: rgba(255, 255, 255, 0.03);
}
.ctl--rec { border-color: var(--red-soft); }
.ctl__square { width: 16px; height: 16px; border-radius: 4px; background: var(--red); }

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; text-align: center; }
  .hero__sub { max-width: none; margin-inline: auto; }
  .hero__actions { justify-content: center; }
  .hero__device { order: -1; margin-bottom: 12px; }
}

/* ============ VALUE BAND ============ */
.band {
  background: var(--panel);
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.band__lead {
  max-width: 880px; margin: 0 auto 36px; text-align: center;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500; letter-spacing: -0.01em; line-height: 1.3;
}
.band__row {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
}
.band__row li {
  background: var(--panel);
  padding: 26px 24px;
  display: flex; flex-direction: column; gap: 8px;
}
.band__k { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 500; color: var(--amber-ink); }
.band__v { color: var(--text-2); font-size: 0.9375rem; }
@media (max-width: 820px) { .band__row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .band__row { grid-template-columns: 1fr; } }

/* ============ FEATURES ============ */
.features { max-width: var(--maxw); margin: 0 auto; }

/* signature feature row */
.feature--hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 80px);
  padding: clamp(28px, 4vw, 48px);
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 20px;
}
.feature__tag {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.8125rem; letter-spacing: 0;
  padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}
.tag--amber { color: var(--amber-ink); background: var(--amber-soft); border: 1px solid var(--amber-soft); }
.feature__text h3 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -0.02em; margin-bottom: 16px; }
.feature__text p { color: var(--text-2); font-size: 1.05rem; max-width: 46ch; }
.checklist { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li {
  position: relative; padding-left: 28px; color: var(--text); font-size: 0.98rem;
}
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 14px; height: 9px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}

/* voice-follow art panel */
.feature__art { display: flex; justify-content: center; }
.vf-panel {
  width: 100%; max-width: 420px;
  background:
    radial-gradient(120% 90% at 50% 0%, #1c1e24, #111318 80%);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  padding: 26px 24px 30px;
  /* Art panel shows the app's dark voice-follow surface; pin the dark
     token values so light theme stays readable (text-2/text-3 were
     dark greys on a dark panel). */
  --text-2: #b3b6bf;
  --text-3: #8d909a;
  --red: #e8292e;
  --red-soft: rgba(232, 41, 36, 0.16);
  --amber: #ffb236;
}
.vf-panel__head { display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.vf-mic {
  width: 12px; height: 12px; border-radius: 50%; background: var(--red);
  box-shadow: 0 0 0 5px var(--red-soft);
}
.vf-label { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 500; color: var(--text-3); }
.vf-line { font-weight: 500; font-size: 1.18rem; line-height: 1.35; margin-bottom: 12px; }
.vf-line--done { color: var(--text-3); }
.vf-line--active { color: var(--paper); }
.vf-line--ahead { color: var(--text-2); opacity: 0.6; }
.vf-wave {
  display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 22px;
}
.vf-wave span {
  flex: 1; background: var(--amber); border-radius: 3px; opacity: 0.85;
  animation: wave 1.1s ease-in-out infinite;
}
.vf-wave span:nth-child(1){ animation-delay: 0s; }
.vf-wave span:nth-child(2){ animation-delay: .09s; }
.vf-wave span:nth-child(3){ animation-delay: .18s; }
.vf-wave span:nth-child(4){ animation-delay: .27s; }
.vf-wave span:nth-child(5){ animation-delay: .36s; }
.vf-wave span:nth-child(6){ animation-delay: .45s; }
.vf-wave span:nth-child(7){ animation-delay: .54s; }
.vf-wave span:nth-child(8){ animation-delay: .63s; }
.vf-wave span:nth-child(9){ animation-delay: .72s; }
.vf-wave span:nth-child(10){ animation-delay: .81s; }
@keyframes wave {
  0%, 100% { height: 22%; opacity: 0.45; }
  50%      { height: 100%; opacity: 0.95; }
}
@media (prefers-reduced-motion: reduce) {
  .vf-wave span { animation: none; height: 55%; }
}
@media (max-width: 820px) {
  .feature--hero { grid-template-columns: 1fr; }
  .feature__art { order: -1; }
}

/* feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 26px;
  transition: border-color .18s ease, transform .18s ease;
}
.feature-card:hover { border-color: rgba(255, 178, 54, 0.4); transform: translateY(-2px); }
.feature-card h3 { font-size: 1.22rem; letter-spacing: -0.01em; margin-bottom: 12px; }
.feature-card p { color: var(--text-2); font-size: 0.97rem; }
@media (prefers-reduced-motion: reduce) { .feature-card:hover { transform: none; } }
@media (max-width: 880px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }

/* ============ HOW IT WORKS ============ */
.how { background: var(--panel); border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.steps {
  list-style: none; margin: 0 auto; padding: 0;
  max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.step {
  background: var(--stage);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.step__n {
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--amber-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
  display: inline-block;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--hairline);
}
.step h3 { font-size: 1.3rem; margin-bottom: 12px; letter-spacing: -0.01em; }
.step p { color: var(--text-2); font-size: 0.98rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ============ PRICING ============ */
.pricing { max-width: var(--maxw); margin: 0 auto; }
.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}
.tier {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 34px 30px;
  display: flex; flex-direction: column;
}
.tier--featured {
  border-color: var(--amber);
  background:
    linear-gradient(180deg, rgba(200, 127, 10, 0.06), transparent 40%), var(--panel-raised);
  box-shadow: 0 24px 60px -34px rgba(200, 127, 10, 0.30);
}
.tier__badge {
  position: absolute; top: -13px; left: 30px;
  font-family: var(--font-display); font-size: 0.8125rem; letter-spacing: 0;
  background: var(--amber); color: #1a1206;
  padding: 5px 12px; border-radius: 999px; font-weight: 500;
}
.tier__name { font-size: 1.25rem; letter-spacing: -0.01em; margin-bottom: 10px; }
.tier__price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.tier__amt { font-size: 2rem; font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tier__per { color: var(--text-3); font-family: var(--font-display); font-size: 0.9375rem; }
.tier__alt { font-family: var(--font-display); font-size: 0.8125rem; color: var(--amber-ink); margin-bottom: 14px; }
.tier__desc { color: var(--text-2); font-size: 0.96rem; margin-bottom: 22px; }
.tier__list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 11px; flex: 1; }
.tier__list li {
  position: relative; padding-left: 26px; font-size: 0.96rem; color: var(--text);
}
.tier__list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 13px; height: 8px;
  border-left: 2px solid var(--amber); border-bottom: 2px solid var(--amber);
  transform: rotate(-45deg);
}
@media (max-width: 880px) { .tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============ FAQ ============ */
.faq { max-width: 820px; margin: 0 auto; }
.faq__list { display: grid; gap: 12px; }
.qa {
  background: var(--panel);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 4px 22px;
}
.qa summary {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 1.03125rem;
  padding: 18px 30px 18px 0;
  position: relative;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+";
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 400;
  color: var(--amber); font-size: 1.5rem; line-height: 1;
  transition: transform .2s ease;
}
.qa[open] summary::after { content: "\2212"; }
.qa p { color: var(--text-2); font-size: 0.98rem; padding: 0 0 20px; }
@media (prefers-reduced-motion: reduce) { .qa summary::after { transition: none; } }

/* ============ FINAL CTA ============ */
.cta {
  background:
    radial-gradient(900px 420px at 50% 120%, rgba(255, 178, 54, 0.1), transparent 60%),
    var(--panel);
  border-top: 1px solid var(--hairline);
}
.cta__inner { max-width: 680px; margin: 0 auto; text-align: center; }
.cta__inner h2 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -0.025em; margin: 24px 0 16px; }
.cta__inner p { color: var(--text-2); font-size: 1.1rem; margin-bottom: 32px; }
.tally--lg { padding: 9px 16px; }
.tally--lg .tally__tc { font-size: 1rem; }

/* ============ FOOTER ============ */
.footer {
  background: var(--stage);
  border-top: 1px solid var(--hairline);
  padding: 64px 24px 36px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
}
.footer__tag { color: var(--text-3); margin-top: 14px; font-size: 0.95rem; }
.footer__col h4 {
  font-family: var(--font-display); font-size: 0.8125rem; letter-spacing: 0;
  color: var(--text-3); margin-bottom: 16px; font-weight: 500;
}
.footer__col a {
  display: flex; align-items: center;
  min-height: 44px; /* touch target */
  padding: 4px 0;
  color: var(--text-2); font-size: 0.96rem;
  transition: color .15s ease;
}
.footer__col a:hover { color: var(--amber); }
.footer__base {
  max-width: var(--maxw); margin: 48px auto 0; padding-top: 28px;
  border-top: 1px solid var(--hairline);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between;
  color: var(--text-3); font-size: 0.85rem;
}
.footer__legal { font-family: var(--font-display); font-size: 0.8125rem; max-width: 50ch; }
@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) { .footer__inner { grid-template-columns: 1fr; } }


/* Theme toggle (added in audit) — 44px touch target */
.theme-toggle{width:44px;height:44px;min-width:44px;padding:0;display:inline-grid;place-items:center;
  border:1px solid var(--hairline);border-radius:999px;background:var(--panel-raised);
  color:var(--amber);cursor:pointer;transition:border-color .15s ease,transform .15s ease;
  -webkit-tap-highlight-color:transparent}
.theme-toggle:hover{border-color:var(--amber);transform:translateY(-1px)}
.theme-toggle__mark{width:14px;height:14px;border-radius:50%;border:2px solid currentColor;
  background:linear-gradient(90deg,currentColor 0 50%,transparent 50%)}
