/* ==========================================================================
   SORREL  |  styles
   1  Brand settings       change these first
   2  Base and type
   3  Page furniture       canvas, nav, buttons
   4  Plain layout         what shows when the silk scene is off
   5  Live layout          the silk and the phone are behind the page
   6  Sections
   7  Footer
   8  Tall screens
   9  Reduced motion
   ========================================================================== */

/* 1 ---------------------------------------------------------------------- */
/* BRAND SETTINGS
   Change these first. The silk colours (dusk, night, dawn) live in js/live.js (LOOKS);
   the app screens on the phone are drawn in js/screens.js (C). */
:root {
  --night: #0b0a24;        /* page background, deepest colour */
  --plum: #241a62;         /* deep indigo, panels and the middle of the night */
  --sorrel: #e8553a;       /* the warm red of the brand */
  --coral: #ff8f6b;        /* buttons, highlights, small labels */
  --peach: #ffd2b4;        /* dawn, italic words, soft highlights */
  --text: #f4effc;         /* text on dark */
  --muted: #cfc8ec;        /* secondary text on dark */
  --line: rgba(244, 239, 252, .16);
  --glass: rgba(14, 10, 46, .58);

  --font-display: 'Cormorant', 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Fonts (SIL Open Font License, files in /fonts) */
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: normal; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 500; font-display: swap; src: url('../fonts/cormorant-latin-500-italic.woff2') format('woff2'); }
@font-face { font-family: 'Cormorant'; font-style: italic; font-weight: 600; font-display: swap; src: url('../fonts/cormorant-latin-600-italic.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/inter-latin-wght-normal.woff2') format('woff2'); }

/* 2 ---------------------------------------------------------------------- */
:root {
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --gutter: clamp(20px, 5vw, 72px);
  --max: 1280px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--night); }
html.live { background: radial-gradient(90% 70% at 70% 40%, #2a1c66 0%, #150f3d 55%, #0b0a24 100%) fixed; }
html:not(.live):not(.reduced) { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  color: var(--text); background: var(--night);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
::selection { background: var(--coral); color: #2a0f1f; }
:focus-visible { outline: 2px solid var(--peach); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--peach); color: #2a0f1f; padding: 10px 16px; border-radius: 10px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 14px; }
.wrap { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

h1, h2, h3, .big, .amount, .wordmark { font-family: var(--font-display); font-weight: 500; letter-spacing: -.012em; }
h1 em, h2 em, h3 em { color: var(--peach); font-weight: 500; }
.label { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--coral); display: flex; align-items: center; gap: 14px; }
.label::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.lead { font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); max-width: 52ch; }
.lead a { color: var(--peach); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.stars { color: var(--coral); letter-spacing: .12em; }
.note-small { font-size: 13px; color: var(--muted); }

/* 3 ---------------------------------------------------------------------- */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: none; pointer-events: none; }
html.live #stage { display: block; opacity: 0; transition: opacity .45s ease; }
html.live.ready #stage { opacity: 1; }

.nav {
  position: fixed; z-index: 50; top: 0; left: 0; right: 0; height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--gutter);
  transition: background .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav::before { content: ''; position: absolute; inset: 0 0 -26px 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(8, 6, 28, .6), rgba(8, 6, 28, 0)); transition: opacity .4s; }
.nav.solid::before { opacity: 0; }
.nav.solid { background: rgba(11, 10, 36, .66); -webkit-backdrop-filter: blur(16px) saturate(1.3); backdrop-filter: blur(16px) saturate(1.3); border-bottom-color: var(--line); }
.nav-brand { display: flex; align-items: center; gap: 9px; font-family: var(--font-display); font-size: 29px; font-weight: 600; letter-spacing: -.01em; color: var(--text); }
.nav-brand svg { color: var(--coral); }
.nav-links { display: flex; gap: clamp(18px, 2.6vw, 38px); font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a { position: relative; padding: 6px 0; transition: color .25s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--coral); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after { transform: scaleX(1); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px;
  font: 600 16px/1 var(--font-body); letter-spacing: .005em; white-space: nowrap; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .35s var(--ease), box-shadow .35s, background .3s, border-color .3s;
}
.btn svg { flex: none; }
.btn-primary { background: linear-gradient(135deg, #ffb092, #ff7d58); color: #2a0f1f; box-shadow: 0 10px 30px -10px rgba(255, 125, 88, .65), inset 0 1px 0 rgba(255, 255, 255, .4); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -10px rgba(255, 125, 88, .85), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-ghost { color: var(--text); border-color: rgba(244, 239, 252, .38); background: rgba(244, 239, 252, .06); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--peach); background: rgba(244, 239, 252, .12); }
.btn-nav { min-height: 42px; padding: 0 20px; font-size: 14.5px; background: var(--text); color: #1a1040; }
.btn-nav:hover { transform: translateY(-1px); background: var(--peach); }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* 4 ---------------------------------------------------------------------- */
/* Plain layout: no WebGL, reduced motion, or a short window. Real sections with a picture of the scene. */
.scene { position: relative; z-index: 1; }
.plain-visual, .plain-shot { display: none; }
.scroll-cue { display: none; }
html.plain .plain-visual, html.reduced .plain-visual { display: block; }
html.plain .plain-shot, html.reduced .plain-shot { display: block; }
html.plain, html.reduced { background: var(--night); }

html.plain .hero, html.reduced .hero { background: radial-gradient(120% 90% at 70% 10%, #4a2a74 0%, #2a1a5a 38%, #120d36 100%); }
html.plain .night, html.reduced .night { background: linear-gradient(#120d36, #0e0b2e); }
html.plain .measures, html.reduced .measures { background: #0e0b2e; }
html.plain .ratings, html.reduced .ratings { background: #0c0a28; }
html.plain .plans, html.reduced .plans { background: linear-gradient(#0c0a28, #0b0a24); }
html.plain .questions, html.reduced .questions { background: linear-gradient(#0b0a24, #1b1446); }
html.plain .final, html.reduced .final { background: linear-gradient(#1b1446 0%, #4a2a66 55%, #b75d5b 100%); }

html.plain .hero .stage, html.reduced .hero .stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; min-height: 100vh; padding-top: 110px; padding-bottom: 70px; }
html.plain .plain-visual img, html.reduced .plain-visual img { width: 100%; height: auto; border-radius: 32px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .7), 0 0 0 1px var(--line); }
html.plain .night .stage, html.reduced .night .stage { padding-top: 110px; padding-bottom: 60px; }
html.plain .chapters, html.reduced .chapters { display: grid; gap: clamp(60px, 9vw, 120px); margin-top: 48px; }
html.plain .chapter, html.reduced .chapter { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 8px 56px; align-items: start; }
html.plain .chapter > *:not(.plain-shot), html.reduced .chapter > *:not(.plain-shot) { grid-column: 1; }
html.plain .chapter .plain-shot, html.reduced .chapter .plain-shot { grid-column: 2; grid-row: 1 / span 4; width: 270px; height: auto; border-radius: 28px; }
html.plain .measures-copy .plain-shot, html.reduced .measures-copy .plain-shot { width: 240px; height: auto; margin-top: 32px; border-radius: 26px; }
html.plain .final-copy .plain-shot, html.reduced .final-copy .plain-shot { width: 240px; height: auto; margin-top: 40px; border-radius: 26px; }
html.plain .rail-wrap, html.reduced .rail-wrap { display: none; }
html.plain .night-head, html.reduced .night-head { position: static; padding: 0; }

/* 5 ---------------------------------------------------------------------- */
/* Live layout: sections are see-through, the silk is behind. A soft shadow behind the words keeps them readable. */
html.live .scene { background: none; }

html.live .hero .stage, html.live .night .stage {
  height: 100vh; height: 100svh; display: grid; align-items: center; position: relative; overflow: hidden;
}
/* A fixed veil between the silk and the words. Which layer shows depends on the section in view (js/live.js sets html[data-scene]). */
.veil { display: none; }
html.live .veil { display: block; position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.veil i { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.veil .v-left { background: linear-gradient(90deg, rgba(8, 6, 28, .78) 0%, rgba(8, 6, 28, .6) 40%, rgba(8, 6, 28, 0) 70%); }
.veil .v-right { background: linear-gradient(270deg, rgba(8, 6, 28, .78) 0%, rgba(8, 6, 28, .5) 42%, rgba(8, 6, 28, .1) 80%); }
.veil .v-all { background: rgba(8, 6, 28, .5); }
.veil .v-bottom { background: linear-gradient(0deg, rgba(8, 6, 28, .92) 0%, rgba(8, 6, 28, .8) 40%, rgba(8, 6, 28, 0) 66%); }
html[data-scene="hero"] .veil .v-left, html[data-scene="night"] .veil .v-left, html[data-scene="last"] .veil .v-left { opacity: 1; }
html[data-scene="measures"] .veil .v-right { opacity: 1; }
html[data-scene="ratings"] .veil .v-all, html[data-scene="plans"] .veil .v-all, html[data-scene="questions"] .veil .v-all { opacity: 1; }
html[data-scene="hero"] .veil .v-left { opacity: .7; }

/* hero copy */
.hero-copy { max-width: 800px; padding-top: 40px; position: relative; z-index: 1; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--coral); margin-bottom: 26px; display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.hero h1 { font-size: clamp(50px, 6.6vw, 104px); line-height: .98; margin-bottom: 30px; }
.ln { display: block; overflow: hidden; padding-bottom: .12em; margin-bottom: -.12em; }
.ln > span { display: block; animation: rise 1.25s var(--ease) both; animation-delay: var(--d, 0s); }
.ln-in { animation: fadeup 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes rise { from { transform: translateY(108%); } to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lede { font-size: clamp(17px, 1.45vw, 20px); color: #e4def6; max-width: 50ch; margin-bottom: 34px; }
.proof { margin-top: 26px; font-size: 14.5px; color: var(--muted); }
.scroll-cue { position: absolute; left: var(--gutter); bottom: 28px; align-items: center; gap: 14px; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); opacity: calc(1 - var(--hp, 0) * 14); }
.scroll-cue span { width: 1px; height: 38px; background: linear-gradient(var(--coral), transparent); transform-origin: top; animation: cue 2.2s var(--ease-io) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 55% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
html.live .scroll-cue { display: flex; }

/* night: four chapters in one pinned stage */
.night-head { position: absolute; z-index: 2; top: 104px; left: var(--gutter); right: var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 24px; max-width: var(--max); margin: 0 auto; }
.rail-wrap { display: flex; align-items: center; gap: 18px; }
.count { font-size: 13px; font-weight: 600; letter-spacing: .16em; color: var(--muted); font-variant-numeric: tabular-nums; }
.rail { display: flex; gap: 8px; }
.rail li { width: 38px; height: 3px; border-radius: 2px; background: rgba(244, 239, 252, .22); transition: background .5s var(--ease); }
.rail li.on { background: var(--coral); }
html.live .chapters { position: relative; width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); height: 100%; }
html.live .chapter {
  position: absolute; left: var(--gutter); top: 50%; width: min(560px, 46%); transform: translateY(-46%);
  opacity: 0; pointer-events: none; visibility: hidden;
  transition: opacity .7s var(--ease), transform .9s var(--ease), visibility 0s .7s;
}
html.live .chapter.is-on { opacity: 1; transform: translateY(-50%); pointer-events: auto; visibility: visible; transition-delay: .12s, .12s, 0s; }
html.live .chapter.is-past { transform: translateY(-56%); }
.num { font-size: 13px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.num span { font-family: var(--font-display); font-size: 44px; font-weight: 500; letter-spacing: 0; color: var(--peach); line-height: .8; }
.chapter h3 { font-size: clamp(36px, 4.5vw, 66px); line-height: 1.02; margin-bottom: 22px; }
.chapter > p:not(.num) { font-size: clamp(16px, 1.3vw, 18.5px); color: #e4def6; max-width: 46ch; margin-bottom: 28px; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid var(--line); padding-top: 20px; max-width: 520px; }
.facts li { font-size: 14px; line-height: 1.35; color: var(--muted); }
.facts strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 25px; line-height: 1.1; color: var(--text); margin-bottom: 4px; letter-spacing: -.005em; }

/* 6 ---------------------------------------------------------------------- */
.measures, .ratings, .plans, .questions, .final { padding: clamp(90px, 14vh, 170px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2, .measures-copy h2, .final h2 { font-size: clamp(42px, 5.6vw, 84px); line-height: 1; margin: 22px 0 22px; }

html.live .measures, html.live .ratings, html.live .plans, html.live .questions, html.live .final { position: relative; }

/* measures */
.measures-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.35fr); column-gap: clamp(30px, 5vw, 80px); }
.measures-grid > * { grid-column: 2; }
.measures-copy .lead { margin-bottom: 8px; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 36px; }
.metric { padding: 26px 26px 28px; border-radius: 24px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); transition: transform .5s var(--ease), border-color .4s, background .4s; }
.metric:hover { transform: translateY(-4px); border-color: rgba(255, 143, 107, .55); background: rgba(24, 16, 70, .7); }
.metric svg { width: 64px; height: 40px; color: var(--coral); margin-bottom: 18px; }
.metric h3 { font-size: 29px; line-height: 1.1; margin-bottom: 8px; }
.metric p { font-size: 15px; color: var(--muted); line-height: 1.55; }

/* ratings */
.ratings .wrap { display: grid; gap: clamp(36px, 5vw, 64px); }
.ratings-head { display: grid; gap: 18px; justify-items: start; }
.score { display: flex; align-items: center; gap: 28px; }
.score .big { font-size: clamp(110px, 16vw, 220px); line-height: .78; color: var(--text); background: linear-gradient(180deg, #fff 10%, var(--peach) 60%, var(--coral)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .06em; }
.score-meta { display: grid; gap: 6px; font-size: 16px; color: var(--muted); }
.score-meta .stars { font-size: 26px; }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.quote { display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 32px 30px; border-radius: 26px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.quote blockquote { font-family: var(--font-display); font-size: clamp(23px, 2vw, 29px); line-height: 1.22; font-weight: 500; color: var(--text); }
.quote figcaption { font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 16px; }
.quote figcaption strong { display: block; color: var(--text); font-weight: 600; }

/* plans */
.plans .section-head { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 48px; }
.plans .section-head > div, .plans .section-head > p { flex: none; }
.plans .section-head .label { width: 100%; }
.plans .section-head h2 { max-width: 17ch; margin: 0; }
.billing { display: inline-flex; padding: 5px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.billing button { appearance: none; border: 0; background: none; color: var(--muted); font: 600 15px/1 var(--font-body); padding: 13px 22px; border-radius: 999px; cursor: pointer; transition: background .3s, color .3s; display: inline-flex; align-items: center; gap: 10px; }
.billing button[aria-pressed="true"] { background: var(--text); color: #1a1040; }
.billing button span { font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255, 143, 107, .22); color: var(--coral); }
.billing button[aria-pressed="true"] span { background: var(--coral); color: #2a0f1f; }
.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 18px; padding: clamp(28px, 3vw, 44px); border-radius: 30px; background: var(--glass); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.plan h3 { font-size: 40px; line-height: 1; }
.plan .price { display: flex; align-items: baseline; gap: 10px; min-height: 76px; }
.plan .amount { font-size: clamp(64px, 6.5vw, 96px); line-height: .9; letter-spacing: -.02em; }
.plan .per { font-size: 16px; color: var(--muted); }
.plan-line { color: var(--muted); font-size: 16px; min-height: 52px; }
.ticks { display: grid; gap: 12px; margin: 6px 0 14px; flex: 1; align-content: start; }
.ticks li { position: relative; padding-left: 32px; font-size: 16px; color: #e8e2f8; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: rgba(255, 143, 107, .2); }
.ticks li::after { content: ''; position: absolute; left: 6px; top: 8px; width: 6px; height: 10px; border: solid var(--coral); border-width: 0 2px 2px 0; transform: rotate(40deg) scale(.8); transform-origin: center; margin-top: -3px; }
.plan .btn { align-self: flex-start; }
.plan.plus { background: linear-gradient(160deg, rgba(60, 38, 120, .72), rgba(30, 20, 84, .72)); border-color: rgba(255, 143, 107, .55); box-shadow: 0 30px 80px -30px rgba(255, 125, 88, .45); }
.plan.plus::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 50% at 85% 0%, rgba(255, 143, 107, .22), transparent 70%); }
.tag { position: absolute; top: 28px; right: 28px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #2a0f1f; background: var(--coral); padding: 7px 14px; border-radius: 999px; }
.plan.plus .when { display: none; }
.plan.plus[data-billing="monthly"] .when.monthly, .plan.plus[data-billing="yearly"] .when.yearly { display: inline; }
.plan.plus .price .when { display: none; }
.plan.plus[data-billing="monthly"] .price .when.monthly, .plan.plus[data-billing="yearly"] .price .when.yearly { display: flex; align-items: baseline; gap: 10px; animation: swap .5s var(--ease); }
@keyframes swap { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* questions */
.qa-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 90px); align-items: start; }
.questions .section-head { position: sticky; top: 120px; margin-bottom: 0; }
.qa { border-top: 1px solid var(--line); }
.qa details { border-bottom: 1px solid var(--line); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 26px 4px; font-family: var(--font-display); font-weight: 500; font-size: clamp(25px, 2.5vw, 34px); line-height: 1.15; transition: color .3s; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--peach); }
.qa summary::after { content: ''; flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: linear-gradient(var(--coral), var(--coral)) center / 14px 1.5px no-repeat, linear-gradient(var(--coral), var(--coral)) center / 1.5px 14px no-repeat; transition: transform .5s var(--ease), background-color .3s, border-color .3s; }
.qa details[open] summary::after { transform: rotate(135deg); border-color: var(--coral); }
.answer { padding: 0 64px 28px 4px; color: var(--muted); font-size: 17px; max-width: 60ch; animation: open .6s var(--ease); }
@keyframes open { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* final */
.final { padding-bottom: 0; }
.final-grid { min-height: 78vh; display: flex; align-items: center; }
.final-copy { max-width: 700px; }
.final h2 { font-size: clamp(60px, 9.4vw, 150px); line-height: .94; margin-bottom: 30px; }
.final .lead { color: #f0e6f6; margin-bottom: 36px; }
html.live .final-copy { position: relative; }
html.live .final-copy::before { content: ''; position: absolute; z-index: -1; inset: -12% -22% -12% -30%; background: radial-gradient(closest-side, rgba(14, 8, 40, .62), rgba(14, 8, 40, 0)); pointer-events: none; }

/* 7 ---------------------------------------------------------------------- */
.footer { position: relative; padding-top: 40px; padding-bottom: 36px; overflow: hidden; }
html.live .footer::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 10, 44, 0), rgba(20, 10, 44, .78) 70%); pointer-events: none; }
.wordmark { font-style: italic; font-size: clamp(120px, 27vw, 420px); line-height: .8; letter-spacing: -.03em; text-align: center; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 233, 214, .5); margin-bottom: 18px; padding-top: .06em; user-select: none; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 40px; padding-top: 24px; border-top: 1px solid rgba(255, 233, 214, .28); font-size: 14px; color: #ecdff2; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 8px 26px; }
.footer-row a { transition: color .25s; text-decoration: underline; text-decoration-color: rgba(255, 233, 214, .35); text-underline-offset: 4px; }
.footer-row a:hover { color: #fff; text-decoration-color: var(--coral); }

/* things that rise in as they arrive (js/scroll.js adds .reveal, then .in) */
html.live .reveal { opacity: 0; transform: translateY(34px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
html.live .reveal.in { opacity: 1; transform: none; }
html.live .metrics .metric:nth-child(2n).reveal { transition-delay: .1s; }
html.live .quotes .quote:nth-child(2).reveal { transition-delay: .1s; }
html.live .quotes .quote:nth-child(3).reveal { transition-delay: .2s; }
html.live .plan-grid .plan:nth-child(2).reveal { transition-delay: .12s; }

/* 8 ---------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .nav-links { display: none; }
  .quotes { grid-template-columns: 1fr; }
  .qa-wrap { grid-template-columns: 1fr; }
  .questions .section-head { position: static; }
}
@media (max-width: 900px) {
  .measures-grid { grid-template-columns: 1fr; }
  .measures-grid > * { grid-column: 1; }
  .plan-grid { grid-template-columns: 1fr; }
  html.plain .hero .stage, html.reduced .hero .stage { grid-template-columns: 1fr; }
  html.plain .chapter, html.reduced .chapter { grid-template-columns: 1fr; }
  html.plain .chapter .plain-shot, html.reduced .chapter .plain-shot { grid-column: 1; grid-row: auto; margin-top: 28px; width: 240px; }
}
@media (max-width: 760px), (max-aspect-ratio: 9/10) {
  body { font-size: 16px; }
  .nav { height: 60px; }
  .nav-brand { font-size: 26px; }
  .hide-s { display: none; }
  .btn { min-height: 52px; padding: 0 20px; font-size: 15.5px; }

  /* hero: the phone sits in the top half, the words in the bottom half */
  html.live .hero .stage { align-items: end; padding-bottom: 28px; }
  html[data-scene="hero"] .veil .v-left, html[data-scene="night"] .veil .v-left, html[data-scene="last"] .veil .v-left, html[data-scene="measures"] .veil .v-right { opacity: 0; }
  html[data-scene="hero"] .veil .v-bottom, html[data-scene="night"] .veil .v-bottom, html[data-scene="last"] .veil .v-bottom { opacity: 1; }
  html[data-scene="measures"] .veil .v-all { opacity: 1; }
  .hero-copy { padding-top: 0; max-width: none; opacity: max(0, min(1, calc(1 - (var(--hp, 0) - 0.8) * 7))); }
  .eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: .13em; gap: 10px; }
  .hero .eyebrow { color: #ffd2bd; text-shadow: 0 1px 12px rgba(20, 10, 40, .7); }
  .eyebrow::before { width: 22px; }
  .hero h1 { font-size: clamp(42px, 12.4vw, 56px); margin-bottom: 16px; }
  .lede { font-size: 15.5px; line-height: 1.5; margin-bottom: 20px; }
  .actions { gap: 10px; flex-wrap: nowrap; }
  .hero .actions .btn { flex: 1; padding: 0 14px; }
  .proof { margin-top: 16px; font-size: 13px; }
  .scroll-cue { display: none !important; }

  /* chapters */
  .night-head { top: 78px; }
  .night-head .label { display: none; }
  .night-head { justify-content: flex-end; }
  html.live .chapters { padding: 0; }
  html.live .chapter { left: 20px; right: 20px; width: auto; top: auto; bottom: 22px; transform: translateY(14px); }
  html.live .chapter.is-on { transform: none; }
  html.live .chapter.is-past { transform: translateY(-14px); }
  .num { margin-bottom: 10px; font-size: 11.5px; }
  .num span { font-size: 34px; }
  .chapter h3 { font-size: 31px; margin-bottom: 12px; }
  .chapter > p:not(.num) { font-size: 14.5px; line-height: 1.5; margin-bottom: 16px; }
  .facts { gap: 12px; padding-top: 14px; }
  .facts li { font-size: 11.5px; }
  .facts strong { font-size: 19px; }

  .measures, .ratings, .plans, .questions { padding: 84px 0; }
  .section-head h2, .measures-copy h2 { font-size: clamp(38px, 11vw, 50px); }
  .metrics { grid-template-columns: 1fr; gap: 12px; }
  .metric { padding: 22px; }
  .score { gap: 18px; }
  .score .big { font-size: 108px; }
  .score-meta .stars { font-size: 20px; }
  .quote { padding: 26px 24px; }
  .plans .section-head { display: block; }
  .plans .section-head h2 { margin-bottom: 24px; max-width: none; }
  .plan { padding: 28px 24px; }
  .plan h3 { font-size: 36px; }
  .tag { top: 24px; right: 24px; }
  .qa summary { font-size: 24px; padding: 22px 0; }
  .answer { padding-right: 0; font-size: 16px; }
  .final-grid { min-height: 62vh; }
  .final h2 { font-size: clamp(54px, 16vw, 78px); }
  html.live .final-copy::before { inset: -10% -10% -10% -10%; }
  .wordmark { font-size: 30vw; -webkit-text-stroke-width: 1px; }
  .footer-row { font-size: 13px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 40px; }
  .facts li { font-size: 11px; }
}

/* 9 ---------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .ln > span, .ln-in, .scroll-cue span, .answer, .plan.plus .price .when { animation: none !important; }
  * { transition-duration: .01ms !important; }
}
html.reduced .ln > span, html.reduced .ln-in, html.reduced .scroll-cue span, html.reduced .answer { animation: none !important; }
html.reduced * { transition-duration: .01ms !important; }
html.still-mode body > *:not(#stage) { display: none !important; }
html.still-mode, html.still-mode body { background: transparent !important; }
html.still-mode[data-still="hero"], html.still-mode[data-still="hero"] body { background: radial-gradient(90% 80% at 50% 40%, #2a1c66 0%, #150f3d 60%, #0b0a24 100%) !important; }
html.still-mode #stage { display: block; position: fixed; opacity: 1 !important; }
