/* ==========================================================================
   Aircaster official site — R1 "Evolution" marketing theme
   Ported from the R1 canon (design/…/colors_and_type-r1.css) and the
   WEB1-home marketing board: amber #F4B860 accent, cooler near-black surface
   ramp, Fraunces editorial display + Hanken Grotesk body. Fonts are
   SELF-HOSTED woff2 (assets/fonts) — no runtime Google Fonts, nothing phones
   home; consistent with the app's no-tracking stance.
   ========================================================================== */

/* ── Self-hosted variable faces (latin subset) ──────────────────────────── */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("fonts/hanken-grotesk-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: normal;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ── Cooler near-black surface ramp (R1 canon) ── */
  --bg: #08080c;
  --surface: #0e0e14;
  --surface-high: #16161f;
  --surface-bright: #1e1e29;
  --outline: rgba(240, 238, 246, 0.12);
  --outline-soft: rgba(240, 238, 246, 0.06);

  /* ── Ink ── */
  --text: #f0eef6;
  --on-surface: rgba(240, 238, 246, 0.82);
  --muted: rgba(240, 238, 246, 0.55);
  --muted-dim: rgba(240, 238, 246, 0.4);

  /* ── Amber accent leads (focus, CTA, links, accents) ── */
  --primary: #f4b860;
  --primary-bright: #f4b860;   /* amber reads bright on near-black */
  --primary-deep: #c9974a;     /* amber-dim: gradients / pressed */
  --on-primary: #2a1c00;       /* amber-ink — CANONICAL text/icon on amber */
  --amber-cont: #3a2a0f;       /* low-emphasis amber surface */
  --amber-12: rgba(244, 184, 96, 0.12);
  --amber-30: rgba(244, 184, 96, 0.3);

  /* ── Status (single R1 set) ── */
  --live: #e94545;
  --ok: #34c759;
  --warn: #ff9f0a;
  --info: #6daeff;

  /* Radii / spacing */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 999px;

  --maxw: 1080px;
  --gap: clamp(16px, 4vw, 28px);

  /* ── Type: Fraunces display + Hanken body (self-hosted) ── */
  --font: "Hanken Grotesk", "Noto Sans SC", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  --font-display: "Fraunces", "Noto Serif SC", Georgia, "Times New Roman",
    serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
}

/* ---------- Reset / base -------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* offset for the sticky header when jumping to anchors */
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  /* cinematic amber wash keyed to the top of the page (R1 marketing board) */
  background:
    radial-gradient(ellipse 60% 42% at 82% -2%, rgba(244, 184, 96, 0.09) 0%, transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--on-surface);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3 {
  color: var(--text);
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.16;
  margin: 0 0 0.5em;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* Editorial amber emphasis on headings. The self-hosted Fraunces face is
   roman-only (no italic outlines), so keep <em> upright to avoid faux-italic. */
h1 em,
h2 em,
h3 em,
.hero-emph {
  font-style: normal;
  color: var(--primary);
}

p {
  margin: 0 0 1em;
}

a {
  color: var(--primary-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

/* Visible focus for keyboard users */
:focus-visible {
  outline: 3px solid var(--primary-bright);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--primary);
  color: var(--on-primary);
  padding: 10px 16px;
  border-radius: 0 0 var(--r-sm) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Layout helpers ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 32px);
}

section {
  padding-block: clamp(48px, 8vw, 88px);
}

.section-head {
  max-width: 56ch;
  margin-bottom: clamp(24px, 4vw, 40px);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-bright);
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 60ch;
}

/* ---------- Header / nav -------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--outline-soft);
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 900;
  color: var(--text);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  text-decoration: none;
}

.brand .logo-dot {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  /* Logo E / V1 "Tension" tile: amber air-sweep on the near-black floor. */
  background: var(--bg);
  box-shadow: 0 0 0 1px rgba(244, 184, 96, 0.4),
    0 6px 18px -6px rgba(244, 184, 96, 0.7);
  display: inline-grid;
  place-items: center;
  color: var(--primary);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  list-style: none;
  padding: 0;
}

.nav-links a {
  color: var(--on-surface);
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.95rem;
  font-weight: 500;
}

.nav-links a:hover {
  background: var(--surface-high);
  text-decoration: none;
  color: var(--text);
}

.nav-cta {
  margin-left: 6px;
}

/* The nav CTA is a solid amber pill — keep the dark amber-ink label and stay
   amber on hover (out-specifies the generic .nav-links a link colors above so
   the amber background never gets light-on-light text). */
.nav-links a.btn-primary {
  color: var(--on-primary);
}

.nav-links a.btn-primary:hover {
  color: var(--on-primary);
  background: #f7c67e;
}

/* mobile nav toggle */
.nav-toggle {
  margin-left: auto;
  display: none;
  background: var(--surface-high);
  border: 1px solid var(--outline);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---------- Buttons ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 650;
  font-size: 0.98rem;
  padding: 12px 20px;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease;
  text-align: center;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 24px -10px rgba(244, 184, 96, 0.8);
}

.btn-primary:hover {
  background: #f7c67e;
}

.btn-ghost {
  background: var(--surface-high);
  color: var(--text);
  border-color: var(--outline);
}

.btn-ghost:hover {
  background: var(--surface-bright);
}

.btn-lg {
  font-size: 1.05rem;
  padding: 15px 26px;
}

.btn-block {
  width: 100%;
}

/* ---------- Cards / surfaces --------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 28px);
}

.card-bright {
  background: var(--surface-high);
  border-color: var(--outline);
}

/* ---------- Hero ---------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 104px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      46% 62% at 76% 22%,
      rgba(244, 184, 96, 0.18),
      transparent 62%
    ),
    radial-gradient(300px at 90% 4%, rgba(244, 184, 96, 0.1), transparent 70%),
    radial-gradient(90% 70% at 0% 100%, rgba(244, 184, 96, 0.06), transparent 55%);
  pointer-events: none;
}

.hero > .wrap {
  position: relative;
}

.hero h1 {
  max-width: 16ch;
}

.hero .hero-sub {
  font-size: 1.18rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

/* Cast method matrix (Other TVs → non-Android cast list). */
.cast-matrix {
  margin: 4px 0 10px;
  padding-left: 18px;
}

.cast-matrix li {
  margin-bottom: 6px;
}

/* trust strip */
.trust-strip {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}

.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.trust-strip ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.trust-strip .dot {
  color: var(--ok);
}

/* ---------- How it works -------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  counter-reset: step;
}

.step {
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  border-radius: var(--r-md);
  padding: 24px;
  position: relative;
}

.step .num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
  margin-bottom: 14px;
}

.step h3 {
  margin-bottom: 6px;
}

.step p {
  color: var(--muted);
  margin: 0;
  font-size: 0.96rem;
}

/* ---------- Download tracks ----------------------------------------------- */
.download-tracks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.track {
  display: flex;
  flex-direction: column;
}

.track .track-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.track .platform-ic {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--amber-12);
  border: 1px solid var(--amber-30);
  font-size: 20px;
}

.meta-line {
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--outline-soft);
  border-radius: var(--r-sm);
  padding: 10px 12px;
  margin: 14px 0;
  word-break: break-word;
}

.meta-line .pending {
  color: var(--warn);
}

.fineprint {
  color: var(--muted-dim);
  font-size: 0.85rem;
  margin-top: 12px;
}

/* ---------- Accordion (details/summary) ----------------------------------- */
details {
  border: 1px solid var(--outline-soft);
  border-radius: var(--r-md);
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}

details[open] {
  border-color: var(--outline);
}

summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

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

summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-bright);
  line-height: 1;
  transition: transform 0.15s ease;
}

details[open] summary::after {
  content: "\2212"; /* minus */
}

.details-body {
  padding: 0 20px 18px;
  color: var(--muted);
}

.details-body ol,
.details-body ul {
  margin: 0;
  padding-left: 1.2em;
}

.details-body li {
  margin-bottom: 8px;
}

/* ---------- Callout boxes ------------------------------------------------- */
.callout {
  border-radius: var(--r-md);
  padding: 20px 22px;
  border: 1px solid var(--outline);
  background: var(--surface-high);
  margin: 18px 0;
}

.callout-primary {
  border-color: var(--amber-30);
  background: linear-gradient(
    180deg,
    rgba(244, 184, 96, 0.14),
    rgba(244, 184, 96, 0.04)
  );
}

.callout-warn {
  border-color: rgba(255, 159, 10, 0.5);
  background: linear-gradient(
    180deg,
    rgba(255, 159, 10, 0.12),
    rgba(255, 159, 10, 0.04)
  );
}

.callout h3 {
  margin-bottom: 8px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.enter-this {
  font-family: var(--mono);
  font-size: clamp(1.1rem, 3.5vw, 1.6rem);
  font-weight: 700;
  color: var(--text);
  background: var(--bg);
  border: 1px dashed var(--primary);
  border-radius: var(--r-sm);
  padding: 12px 16px;
  display: inline-block;
  margin: 6px 0 4px;
  word-break: break-all;
}

.warn-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--warn);
}

/* ---------- In-app-browser escape hint (B2) ------------------------------
   Injected by attribution.js only inside Meta/Android in-app WebViews. When it
   lands inside a flex CTA row (.cta-row), flex-basis:100% drops it onto its own
   full-width line; inside a plain block container it is a normal block. */
.aircaster-escape-hint {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  flex-basis: 100%;
  width: 100%;
  margin: 14px 0 0;
  padding: 11px 14px;
  border-radius: var(--r-md);
  border: 1px solid var(--amber-30);
  background: linear-gradient(
    180deg,
    rgba(244, 184, 96, 0.14),
    rgba(244, 184, 96, 0.04)
  );
  font-size: 13.5px;
  line-height: 1.4;
}

.aircaster-escape-hint .eh-text {
  flex: 1 1 12ch;
  color: var(--on-surface);
}

.aircaster-escape-hint .eh-open {
  flex: 0 0 auto;
  font-weight: 650;
  font-size: 0.92rem;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  border: 1px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}

.aircaster-escape-hint .eh-open:hover {
  background: #f7c67e;
  text-decoration: none;
}

.aircaster-escape-hint .eh-dismiss {
  flex: 0 0 auto;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
  padding: 2px 6px;
  cursor: pointer;
}

.aircaster-escape-hint .eh-dismiss:hover {
  color: var(--text);
}

/* ---------- Post-CTA install guide (B3) ----------------------------------
   Pre-rendered hidden in the markup; site.js drops the [hidden] attribute on
   any download-CTA click (the download itself still fires). */
.install-guide[hidden] {
  display: none;
}

.install-guide {
  margin: 16px 0 0;
  padding: clamp(16px, 3vw, 22px);
  border-radius: var(--r-md);
  border: 1px solid var(--outline);
  background: var(--surface-high);
}

.install-guide h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.install-guide ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: ig;
}

.install-guide li {
  position: relative;
  padding: 0 0 14px 40px;
  counter-increment: ig;
}

.install-guide li:last-child {
  padding-bottom: 0;
}

.install-guide li::before {
  content: counter(ig);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: var(--amber-12);
  color: var(--primary);
  border: 1px solid var(--amber-30);
  font-weight: 700;
  font-size: 0.9rem;
}

.install-guide li b {
  color: var(--text);
}

.install-guide .ig-p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- Fire TV numbered steps + screenshot slots --------------------- */
.tv-steps {
  list-style: none;
  counter-reset: tvstep;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 16px;
}

.tv-steps > li {
  counter-increment: tvstep;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--outline-soft);
  border-radius: var(--r-md);
  padding: 18px;
}

.tv-steps > li::before {
  content: counter(tvstep);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 800;
}

.tv-step-body h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.tv-step-body p {
  color: var(--muted);
  margin: 0 0 12px;
  font-size: 0.96rem;
}

.tv-step-body p:last-child {
  margin-bottom: 0;
}

/* Honest Fire TV guide illustrations. The figure structure stays compatible
   with future real-device WebP replacements. */
.shot {
  width: 100%;
  max-width: 640px;
  margin: 16px 0 0;
  overflow: hidden;
  border-radius: var(--r-sm);
  border: 1px solid var(--outline-soft);
  background: var(--surface-high);
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.shot figcaption {
  margin: 0;
  padding: 9px 12px 10px;
  border-top: 1px solid var(--outline-soft);
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.4;
}

.shot figcaption strong {
  color: var(--primary);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---------- TV installation route map ------------------------------------ */
.install-route-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.install-route-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--outline-soft);
  border-radius: var(--r-md);
  background: var(--surface);
}

.install-route-card h3 {
  margin-bottom: 12px;
  font-size: 1.02rem;
}

.install-route-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.install-route-flow li {
  max-width: 100%;
}

.install-route-node {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--outline);
  border-radius: var(--r-pill);
  background: var(--surface-high);
  color: var(--text);
  font-size: 0.84rem;
  font-weight: 700;
}

.install-route-node.store {
  border-color: color-mix(in srgb, var(--primary) 58%, var(--outline));
  color: var(--primary);
}

.install-route-arrow {
  color: var(--muted-dim);
  font-size: 1rem;
  font-weight: 800;
}

.install-route-explainer {
  margin-top: 16px;
  padding: 14px 16px;
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: color-mix(in srgb, var(--primary) 6%, var(--surface));
  color: var(--muted);
}

.install-route-explainer p {
  margin: 0;
}

.install-route-explainer p + p {
  margin-top: 8px;
}

.route-fallback {
  margin-top: 14px;
}

.route-fallback summary {
  color: var(--text);
}

@media (max-width: 700px) {
  .install-route-grid {
    grid-template-columns: 1fr;
  }
}

kbd {
  background: var(--surface-bright);
  border: 1px solid var(--outline);
  border-bottom-width: 2px;
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 0.85em;
  color: var(--text);
}

/* ---------- Two-up generic ------------------------------------------------ */
.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

/* ---------- Footer -------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--outline-soft);
  background: var(--surface);
  padding-block: 48px 36px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 28px;
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 2px;
}

.footer-grid a {
  color: var(--on-surface);
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--text);
}

.footer-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--outline-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  justify-content: space-between;
  color: var(--muted-dim);
  font-size: 0.88rem;
}

.footer-bottom .mono {
  color: var(--muted);
}

.foot-echo b {
  color: var(--muted);
  font-weight: 600;
}

/* ---------- R1 marketing additions ---------------------------------------- */
/* Hero fineprint: sideload + trial + "plan in the app" — no price, no urgency. */
.hero-fineprint {
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 52ch;
}

.hero-fineprint b {
  color: var(--on-surface);
  font-weight: 600;
}

/* ==========================================================================
   R2 home rebuild — poster hero (single primary CTA), hero art, feature list
   without icon boxes, larger touch targets. Added 2026-07-09.
   ========================================================================== */

/* Hero poster grid: copy left, art right. One composition, one CTA group. */
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(24px, 5vw, 56px);
  align-items: center;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

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

/* Entrance motion: copy rises in, the air-sweep draws itself, the cast node
   lands last. All gated on prefers-reduced-motion below.
   NOTE: the hidden start state lives ONLY in the keyframe `from` (with
   fill-mode both) — never in the base rule — so content stays visible when
   animations don't run at all. */
.hero-copy > * {
  animation: rise 0.55s ease-out both;
}

.hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
.hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.2s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.28s; }
.hero-copy > *:nth-child(5) { animation-delay: 0.36s; }
.hero-copy > *:nth-child(6) { animation-delay: 0.44s; }

.hero-art .sweep {
  stroke-dasharray: 620;
  animation: sweep-in 1s ease-out 0.35s both;
}

.hero-art .node {
  animation: node-in 0.35s ease-out 1.2s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sweep-in {
  from {
    stroke-dashoffset: 620;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes node-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .hero-art .sweep,
  .hero-art .node {
    animation: none;
  }
}

/* Feature list: editorial rows, no icon-in-a-box chrome. */
.feature-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(20px, 3vw, 32px) clamp(20px, 3.5vw, 40px);
}

.feature-item {
  border-top: 1px solid var(--outline-soft);
  padding-top: 18px;
}

.feature-item .glyph {
  display: inline-flex;
  margin-bottom: 12px;
}

.feature-item h3 {
  margin-bottom: 6px;
}

.feature-item p {
  color: var(--muted);
  font-size: 0.96rem;
  margin: 0;
}

/* Touch targets: keep nav + footer links comfortably tappable. */
.nav-links a {
  padding-block: 11px;
}

.footer-grid a {
  display: inline-block;
  padding-block: 10px;
}

/* ---------- Responsive ---------------------------------------------------- */
@media (max-width: 760px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    max-width: 420px;
    margin-top: 8px;
    margin-inline: auto;
  }

  .cta-row .btn {
    flex: 1 1 100%;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: var(--surface);
    border-bottom: 1px solid var(--outline);
    padding: 10px 18px 16px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px;
  }

  .nav-links .nav-cta {
    margin-left: 0;
    margin-top: 6px;
  }

  .nav-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

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

  .tv-steps > li {
    grid-template-columns: 1fr;
  }
}

/* ═══════════ v2 home (WEB-5 parity conversion, 2026-07-11) ═══════════ */
.v2-hero-grid { display: grid; grid-template-columns: 1fr 400px; gap: 48px; align-items: center; }
@media (max-width: 900px) { .v2-hero-grid { grid-template-columns: 1fr; } }
.v2-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.v2-chip { font-family: var(--mono, monospace); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--outline); color: var(--muted); }
.v2-chip-live { border-color: rgba(233, 69, 69, 0.5); color: #e94545; }
.v2-proofline { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.v2-proofline b { color: var(--text); }
.v2-shotframe { border: 1.5px solid rgba(240, 238, 246, 0.16); border-radius: 20px;
  overflow: hidden; background: var(--surface); }
.v2-shotframe img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.v2-hero-shot { max-height: 560px; aspect-ratio: 44 / 68; justify-self: end; width: 100%; max-width: 400px; }
@media (max-width: 900px) { .v2-hero-shot { max-height: 420px; justify-self: center; } }
.v2-proofstrip { border-top: 1px solid var(--outline-soft); border-bottom: 1px solid var(--outline-soft); }
.v2-proofgrid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 760px) { .v2-proofgrid { grid-template-columns: repeat(2, 1fr); } }
.v2-fact { padding: 22px 18px; border-right: 1px solid var(--outline-soft); }
.v2-fact:last-child { border-right: none; }
@media (max-width: 760px) { .v2-fact:nth-child(2) { border-right: none; } }
.v2-fact .v { font-family: var(--font-display, Georgia, serif); font-weight: 900;
  font-size: 26px; color: var(--primary); }
.v2-fact .l { margin-top: 4px; font-size: 12.5px; color: var(--muted); }
.v2-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 980px) { .v2-rail { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .v2-rail { grid-template-columns: 1fr; } }
.v2-rail figure { margin: 0; }
.v2-rail .v2-shotframe { aspect-ratio: 44 / 76; }
.v2-railcap-h { font-family: var(--font-display, Georgia, serif); font-weight: 600;
  font-size: 16.5px; margin-top: 12px; color: var(--text); }
.v2-rail figcaption p { margin: 4px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.v2-cmp { border: 1px solid var(--outline); border-radius: 16px; overflow: hidden; margin-top: 8px; }
.v2-cmp-row { display: grid; grid-template-columns: 1.2fr 1fr; border-top: 1px solid var(--outline-soft); }
.v2-cmp-row:first-child { border-top: none; background: var(--surface); }
.v2-cmp-row > div { padding: 15px 20px; font-size: 14.5px; }
.v2-cmp-head > div { font-family: var(--mono, monospace); font-size: 11.5px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-dim); }
.v2-cmp .yes { color: var(--text); }
.v2-cmp .yes::before { content: "✓  "; color: var(--primary); font-weight: 700; }
.v2-cmp .no { color: var(--muted-dim); }
.v2-cmp .no::before { content: "✕  "; color: #e94545; }
@media (max-width: 560px) { .v2-cmp-row { grid-template-columns: 1fr; }
  .v2-cmp-row .no { padding-top: 0; } }
.v2-steps .v2-stepshot { height: 170px; border-radius: 12px; overflow: hidden;
  border: 1px solid var(--outline-soft); margin-bottom: 16px; background: var(--surface); }
.v2-stepshot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
@media (max-width: 760px) { .v2-plans { grid-template-columns: 1fr; } }
.v2-plan { position: relative; background: var(--surface); border: 1px solid var(--outline);
  border-radius: 16px; padding: 26px; }
.v2-plan-reco { border-color: var(--primary);
  background: linear-gradient(180deg, var(--amber-12), var(--surface) 45%); }
.v2-plan .flag { position: absolute; top: -11px; left: 22px; background: var(--primary);
  color: var(--on-primary); font-family: var(--mono, monospace); font-size: 10px;
  letter-spacing: 0.1em; padding: 4px 10px; border-radius: 999px; font-weight: 700; }
.v2-plan .nm { font-family: var(--mono, monospace); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-dim); }
.v2-plan .pr { font-family: var(--font-display, Georgia, serif); font-weight: 900;
  font-size: 32px; margin: 10px 0 2px; color: var(--text); }
.v2-plan .pr span { font-size: 14px; color: var(--muted-dim); font-family: inherit; font-weight: 400; }
.v2-plan .eq { font-size: 12.5px; color: var(--muted); }
.v2-plan ul { list-style: none; margin: 14px 0 0; padding: 0; }
.v2-plan li { font-size: 13px; color: var(--muted); padding: 4px 0; }
.v2-plan li::before { content: "·  "; color: var(--primary); }
.v2-pricenote { margin-top: 18px; font-size: 13.5px; color: var(--muted-dim); }
.v2-ctaband { text-align: center; padding: 56px 0;
  background: radial-gradient(600px 260px at 50% 0%, var(--amber-12), transparent); }
.v2-ctaband h2 { font-family: var(--font-display, Georgia, serif); font-weight: 900;
  font-size: 30px; margin: 0 0 20px; }
.v2-ctaband-sub { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.v2-sticky-cta { display: none; }
@media (max-width: 720px) {
  .v2-sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    gap: 12px; align-items: center; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(8, 8, 12, 0.94); border-top: 1px solid var(--outline);
    transform: translateY(110%); transition: transform 200ms ease; }
  .v2-sticky-cta.on { transform: none; }
  .v2-sticky-cta .btn { flex: 1; }
  .v2-sticky-cta .p { font-size: 11px; color: var(--muted-dim); white-space: nowrap; }
  @media (prefers-reduced-motion: reduce) { .v2-sticky-cta { transition: none; } }
}

/* ═══════════ v2 pricing page (WEB-6, 2026-07-11) ═══════════ */
/* Standalone pricing page (pricing.html). The at-a-glance tier row reuses the
   home .v2-plans / .v2-plan cards; this block only adds the detailed comparison
   table and the payment prose. Uses ONLY the shared design tokens
   (--bg, --surface, --outline, --text, --muted, --primary, --on-primary,
   --font-display, --mono). */
.v2-pricetable-wrap { overflow-x: auto; margin-top: 8px;
  border: 1px solid var(--outline); border-radius: 16px; }
.v2-pricetable { width: 100%; min-width: 620px; border-collapse: collapse;
  font-size: 14.5px; }
.v2-pricetable caption { text-align: left; padding: 16px 20px 4px;
  color: var(--muted); font-size: 13px; line-height: 1.5; }
.v2-pricetable th, .v2-pricetable td { padding: 14px 18px; text-align: left;
  vertical-align: top; border-top: 1px solid var(--outline); }
.v2-pricetable thead th { border-top: none; background: var(--surface);
  color: var(--text); font-family: var(--font-display); font-weight: 700;
  font-size: 16px; }
.v2-pricetable thead th .sub { display: block; font-family: var(--mono);
  font-weight: 400; font-size: 10.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.v2-pricetable thead th.reco { color: var(--primary); }
.v2-pricetable tbody th[scope="row"] { font-family: var(--mono);
  font-weight: 400; font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.v2-pricetable tbody td { color: var(--text); }
.v2-pricetable .col-reco { background: var(--surface); }
.v2-pricetable .amt { font-family: var(--font-display); font-weight: 900;
  font-size: 19px; color: var(--text); }
.v2-paynote { margin-top: 18px; font-size: 13.5px; color: var(--muted); max-width: 60ch; }
.v2-payfee { font-family: var(--mono); color: var(--text); }
/* v2 QR (download / TV track) */
.v2-qr { margin: 14px 0; display: flex; gap: 14px; align-items: center; }
.v2-qr img { border-radius: 8px; background: var(--surface); padding: 8px; border: 1px solid var(--outline); }
.v2-qr figcaption { font-size: 12.5px; color: var(--muted); }

/* v2 catalog preview (WEB-7 channels.html) */
.cat-grid { list-style: none; margin: 8px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cat-tile { display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--outline); border-radius: 12px;
  padding: 16px 18px; }
.cat-name { font-family: var(--font-display, Georgia, serif); font-weight: 600; font-size: 16px; color: var(--text); }
.cat-count { font-family: var(--mono, monospace); font-size: 12.5px; color: var(--primary); white-space: nowrap; }
