/* ==========================================================================
   HearThai Academy, landing redesign 2026-10-22, round 8: the token system, iteration 2.
   Every value comes from _standard/SPEC.md (sections 1-7, Addenda A1-A6, revision 1.1)
   or the iteration-2 Addenda (A7) recorded for the critique01 fixes.
   Component rules use tokens only. The layout constants that belong to the constellation
   stage (site.js stage()) and three content boxes are grouped and marked as exceptions.
   Breakpoints (SPEC 3, vercel.com container queries): phone <=600, tablet 601-960 (@md),
   desktop >=961 (@lg); the header collapses at <=880.
   ========================================================================== */
:root{
  /* ---- 1a color: dark bands = neutral ink (round 26, SPEC A22; COLOR_SPEC.md: every premium page sits on neutral
     surfaces; blue is the action and links only, cream is the signature). Was the Stripe navy set (archive r26_before). ---- */
  --bg:#08090a;            /* linear.app page background (measured 65% of its page) */
  --bg-raised:#131316;     /* clerk.com dark band / raised surface */
  --bg-inset:#1f1f23;      /* clerk.com inset #212126 band, one step under it */
  --bg-inset-2:#2a2a2f;    /* one more neutral step (hover on inset fills) */
  --border:#1f1f23;        /* kept as a token; components use --edge since C08 */
  --border-hover:#2e2e33;  /* the hover-border step, neutral */
  --edge:rgba(255,255,255,.1);         /* card, panel, table borders: white hairline (COLOR_SPEC rule 1: .08; +.02 so a card edge stays visible on ink) */
  --edge-hover:rgba(255,255,255,.2);   /* the hover-border step */
  --rule:rgba(255,255,255,.08);        /* dividers: rgba(255,255,255,.08) (COLOR_SPEC rule 1, linear.app) */
  --text:#f7f8f8;          /* linear.app primary text */
  --text-2:#a1a4a5;        /* resend.com secondary (7.6:1 on --bg): body copy, eyebrows, captions */
  --text-3:#8a8f98;        /* linear.app secondary (6.1:1 on --bg, 5.6:1 on --bg-raised): fine print, numbers */
  --text-4:#62666d;        /* linear.app tertiary: disabled states and decoration only (not body text) */
  --action:#0071f2;        /* Geist blue-700 #0072f5, one step deeper so white button text clears AA (4.52:1; #0072f5 measured 4.44): the primary action (COLOR_SPEC rule 4) */
  --action-hover:#0062d1;  /* Geist blue-800 */
  --on-action:#ffffff;     /* Geist button text on a high-contrast fill */
  --link:#52a8ff;          /* Geist blue-900: inline links only (COLOR_SPEC rule 4); states use the cream ring */
  --focus:#52a8ff;         /* Geist --ds-focus-color: the keyboard focus ring (interaction, not decoration) */
  --header-line:rgba(255,255,255,.08); /* linear.app hairline */
  --hover-fill:rgba(255,255,255,.05);  /* notion.com / perplexity.ai .05 */

  /* ---- 1b color: the one light band (Lessons), Geist light ---- */
  --l-bg:#fafafa;          /* Geist light background-200 (vercel.com page bg; light header after scroll) */
  --l-raised:#ffffff;      /* Geist light background-100 */
  --l-border:#e6e6e6;      /* Geist light gray-300 (vercel.com card border) */
  --l-border-hover:#c9c9c9;/* Geist light gray-500 */
  --l-text:#171717;        /* Geist light gray-1000 */
  --l-text-2:#4d4d4d;      /* Geist light gray-900: secondary text, light-band metadata (C17) */
  --l-text-3:#8f8f8f;      /* Geist light gray-700: disabled states only (C17) */
  --l-action:#0071f2;      /* Geist light blue-700, AA with white text (round 26) */
  --l-action-hover:#0062d1;/* Geist light blue-800 */
  --l-link:#0072f5;        /* Geist light blue-700 */
  --l-focus:#0072f5;       /* Geist light focus (blue-700) */
  --l-inset:#ebebeb;       /* Geist light gray-200 (active tab fill) */
  --l-header-line:rgba(0,0,0,.08);      /* vercel.com light header after scroll: 0 1px 0 0 rgba(0,0,0,.08) (C06) */
  --l-hover-fill:rgba(0,0,0,.05);       /* Geist gray-alpha-100 light (vercel.com card hover, light) */
  --l-bg-white:#ffffff;    /* round 26 (A22): the white band (clerk.com #ffffff) */
  --l-bg-gray:#f5f5f7;     /* round 26 (A22): the gray band (apple.com #f5f5f7) */
  --l-text-3b:#6e6e73;     /* apple.com secondary gray: the subdued headline clause on light (4.7:1 on #f5f5f7) */

  /* ---- 1c brand constants (owner-owned, SPEC 0 + 1c + rev 1.1 #8) ---- */
  --cream:#ffe3a1;         /* text accent: hero line 2, the price numeral, the wordmark "Academy" */
  --cream-logo:#f6eedd;    /* the logo bubble: the constellation hub card only (cst.js) */
  --t-mid:#a7b7c8; --t-low:#7fb4ff; --t-high:#ff8a9c; --t-rise:#4fc894; --t-fall:#f0b95c;   /* the app's 5 tone information colors, tones only (C25) */

  /* ---- 2 typography: Geist (vercel.com), Leelawadee UI for Thai ---- */
  --font:"Geist", "Geist Fallback", "HTA Thai", "HTA Thai Fallback", system-ui, sans-serif;   /* Geist (OFL), then vercel.com's metric-matched Arial fallback (D12); Leelawadee catches the baht sign and untagged Thai (C16) */
  --font-mono:"Geist Mono", "HTA Thai", ui-monospace, monospace; /* Geist Mono, price unit only (text-label-14-mono) */
  --font-th:"HTA Thai", "HTA Thai Fallback", "HTA Sarabun", sans-serif;              /* Leelawadee UI 400/700 (brand constant) */
  --w-regular:400; --w-heading:450; --w-medium:500;             /* vercel.com: copy 400, [--font-weight-semibold:450] headings, labels/buttons 500 */
  --w-th:400; --w-th-bold:700;                                  /* Leelawadee UI real cuts only */
  /* role sizes: desktop >=961 (@lg); the @md / phone values are set in the media blocks below */
  --h1-fs:64px; --h1-lh:64px; --h1-ls:-3.84px;      /* text-heading-64 (vercel.com/ai-gateway h1, @md and up) */
  --h2-fs:56px; --h2-lh:56px; --h2-ls:-3.36px;      /* text-heading-56 (section h2 @lg; FAQ title too, rev 1.1 #5) */
  --ch-fs:48px; --ch-lh:56px; --ch-ls:-2.88px;      /* chapter titles = text-heading-48 (h2 secondary @lg, C05 ruling) */
  --h2s-fs:48px;                                    /* text-heading-48 size (h2 secondary): Thai word parts in the equation */
  --h3-fs:24px; --h3-lh:32px; --h3-ls:-0.96px;      /* text-heading-24 (card title @md and up) */
  --intro-fs:18px; --intro-lh:28px;                 /* text-copy-18 (section intro @lg) */
  --sub-fs:18px; --sub-lh:28px;                     /* hero subtitle 18/28 at every width (A5) */
  --body-fs:16px; --body-lh:24px;                   /* text-copy-16 */
  --small-fs:14px; --small-lh:20px;                 /* text-copy-14 / text-label-14 */
  --cap-fs:13px; --cap-lh:18px;                     /* text-copy-13 */
  --legal-fs:12px; --legal-lh:16px;                 /* text-label-12 (footer legal) */
  --badge-fs:11px; --badge-lh:20px; --badge-ls:0.2px;   /* Geist Badge sm ("Popular") */
  --btn-lg-fs:16px; --btn-lg-lh:24px;               /* Geist button-16 */
  --btn-fs:14px; --btn-lh:21px;                     /* Geist button-14 as rendered live (14/21) */
  --faq-fs:20px; --faq-lh:32px;                     /* text-label-20 (FAQ question and number) */
  --faq-a-lh:25.6px;                                /* FAQ answer 16/25.6 (A6, rev 1.1 #3) */
  --price-fs:56px; --price-lh:56px; --price-ls:-3.36px; /* vercel.com/pricing price @lg */
  --menu-fs:22px; --menu-lh:33px;                   /* vercel.com phone menu row 22/33 (A2) */
  --stat-fs:72px;                                   /* vercel.com/ai-gateway stat value 72 (the big Thai syllable) */
  /* Thai line heights from apple.com/th (A1); Thai letter-spacing is always 0 */
  --th-lh-display:1.339;  /* >=40px, Apple h2.section-header-headline 56/75 */
  --th-lh-title:1.393;    /* 20-39px, Apple headline 28/39 */
  --th-lh-body:1.353;     /* 15-19px, Apple body 17/23 */
  --th-lh-small:1.357;    /* 14px, Apple 14/19 */
  --th-lh-caption:1.333;  /* <=13px, Apple fine print 12/16 */
  /* text measure (vercel.com max-w-[..ch]) */
  --measure-intro:58ch; --measure-side:38ch; --measure-side-min:34ch; --measure-faq:14ch;

  /* ---- 3 layout and spacing (vercel.com) ---- */
  --page-w:1400px;          /* --ds-page-width */
  --gutter:24px;            /* --geist-page-margin, every width */
  --grid-gap:24px;          /* 12-column grid, column gap 24 */
  --grid-row-gap:40px;      /* feature grids, row gap 40 */
  --tile-gap:20px;          /* vercel.com home tiles gap 20 */
  --header-h:64px;          /* --header-height */
  --sec-pad:96px;           /* vercel.com/pricing pt-24 (@lg) */
  --head-gap:72px;          /* heading -> content gap-18 (@lg); also between method chapters (C09) */
  --hero-pt:72px; --hero-pb:120px;  /* vercel.com/ai-gateway hero @lg */
  --stack:16px;             /* eyebrow -> heading -> intro gap 16 (A5) */
  --hero-h1-gap:24px;       /* hero h1 -> subtitle 24 @lg, 16 below (A5) */
  --hero-cta-gap:32px;      /* hero subtitle -> buttons 32 (A5) */
  --btn-gap:16px;           /* hero button gap 16 (A5) */
  --cta-gap:12px;           /* header CTA gap 12 (A6) */
  --s-4:4px; --s-8:8px; --s-12:12px; --s-16:16px; --s-24:24px; --s-32:32px;  /* Geist spacing unit 4 and published gaps: --geist-space, -gap-quarter, -gap-half, -space-4x, -gap, -gap-section */
  --badge-py:2px;           /* Geist Badge sm padding 2 8 */
  --media-gap:80px;         /* apple.com headline -> media 80 desktop / 32 phone (SPEC 7) */
  --hud-b:48px;             /* hero caption cluster under the map: the 48 spacing step (vercel.com gap-12); site.js stage() reserves 178px below the map */
  --foot-py:40px;           /* vercel.com footer padding 40 / 24 */
  --foot-h-my:12px;         /* vercel.com footer heading margin 12 0 (A7) */
  --foot-li-py:2px;         /* vercel.com footer list item padding 2 0 (28 pitch) (A7) */
  --foot-legal-mt:32px;     /* vercel.com footer bottom row margin-top 32 (A7) */
  --cmp-head-h:72px;        /* vercel.com/pricing comparison header row h-[72px] (A7) */
  --cmp-cell-py:16px; --cmp-cell-px:2px;   /* vercel.com/pricing comparison cell py-4 px-0.5 (A3) */
  --cmp-cta-pt:32px; --cmp-cta-pb:16px;    /* vercel.com/pricing comparison CTA row pt-8 pb-4 (A7) */
  --finale-gap:40px;        /* linear.app closing section: h2 -> buttons gap 40 (A7) */
  --finale-btn-gap:12px;    /* linear.app closing buttons gap 12 (A7) */

  /* ---- 4 shape, borders, elevation: four radii (C41 ruling) ---- */
  --r-card:2px;             /* content cards (the plan card): vercel.com rounded-xs */
  --r-tile:6px;             /* tiles and controls: vercel.com home tile, Geist small/medium controls */
  --r-panel:12px;           /* panels, chat bubbles and ALL media: Geist Materials large (C41) */
  --r-pill:9999px;          /* buttons, badges: vercel.com hero CTAs */
  --card-pad:32px;          /* vercel.com promo card p-8 */
  --cell-pad:32px;          /* vercel.com/pricing plan cells (24 on phone) */
  --tile-pad:20px;          /* vercel.com home tile p-5 */
  --bubble-py:12px; --bubble-px:16px;   /* ai-sdk.dev message bubble (A4) */
  --ring:0 0 0 1px rgba(255,255,255,.145);   /* vercel.com home tile --ds-shadow-border-base dark #ffffff25 (C08) */
  --ring-hover:0 0 0 1px var(--edge-hover);
  --ring-inset:0 0 0 1px var(--edge-hover);  /* rev 1.1 #9: a ring on an inset fill takes the hover-border step */
  --ring-on:0 0 0 1px var(--cream);          /* C34: pressed / selected / playing; round 26 (A22): the cream signature, not blue */
  --focus-ring:0 0 0 2px var(--bg), 0 0 0 4px var(--focus);   /* Geist --ds-focus-ring */
  --l-ring:0 0 0 1px var(--l-border);
  --l-ring-hover:0 0 0 1px var(--l-border-hover);
  --l-focus-ring:0 0 0 2px #fff, 0 0 0 4px var(--l-focus);     /* SPEC 5b, light band */
  --focus-outline-w:2px; --focus-outline-offset:4px;            /* vercel.com links and cards: outline 2px solid focus color, offset 4 */
  --underline-offset:4px;   /* vercel.com inline link: underline offset 4px */

  /* ---- 5 control sizes ---- */
  --ctl-lg:40px;            /* --ds-size-large: hero CTA */
  --ctl-md:36px;            /* --ds-size-medium: pricing CTA, in-card actions, paddles (apple.com 36) */
  --ctl-sm:32px;            /* --ds-size-small: header buttons, tabs, logo badge */
  --ctl-touch:44px;         /* vercel.com phone menu button / rows 44; phone touch targets (C36) */
  --btn-px-lg:18px;         /* 0 12 + inner span 0 6 */
  --btn-px-sm:12px;         /* 0 6 + inner span 0 6 */
  --btn-px-menu:20px;       /* 0 14 + inner span 0 6 (A2) */
  --tab-py:6px; --tab-px:14px;          /* vercel.com sub-nav / segmented inner span 6/14 */
  --seg-pad:4px;            /* vercel.com/ai-gateway segmented track padding 4, gap 4 */
  --nav-px:12px;            /* vercel.com header nav span 6/12 (A6) */
  --icon:16px;              /* plan feature check 16 (A6), chevron area */
  --icon-24:24px;           /* vercel.com menu icon 24 */
  --chev:14px;              /* vercel.com FAQ chevron 14 */
  --play:56px;              /* apple.com play/pause control 56 */
  --play-glyph:32px;        /* glyph box: the 11x13 glyph of our 24-unit icon renders ~15x17, Apple's ratio (A6) */
  --dot:10px;               /* Geist status dot 10 (A6) */
  --paddle-gap:18px;        /* apple.com paddle nav gap 18 (A6) */
  --media-cap-gap:9px;      /* apple.com media -> caption 9 desktop / 8 phone (DONORS 5) */

  /* ---- component dimensions from the Addenda ---- */
  --brand-lh:20px;          /* wordmark 16/20 w500 (Geist label-16 + strong) */
  --th-hud-fs:20px;         /* Thai at the h3-phone / label-20 size (map caption, chat title, formula) */
  --th-word-fs:40px;        /* Thai word cards: text-heading-40 size */
  --th-h2-lh:var(--th-lh-display);  /* Thai set at the h2 size: 56 -> display ratio; 32 (<=960) -> title ratio */
  --tone-glyph-w:50px;      /* tone contour icon: 24 high x the asset's 100:48 aspect */
  /* the big tone contour fills its figure column at H.tonePaths' 100:48 aspect (critique02 D03): see .tonebig__svg */
  --hero-cta-w:226.19px;    /* min-width only (critique03 E12): the hero primary's Geist width, so a narrower fallback cannot move the secondary; longer copy still grows */
  --hud-word-w:22rem;       /* the map caption's word box: the 38ch measure of Geist 14px (352.7) as a font-independent box, so neither a new word nor the font swap resizes the cluster (D12, critique03 E12) */
  --tone-cap:560px;         /* the tone contour's cap below @lg (critique03 J6: about the 1280 desktop size) */
  --save-pad:12px;          /* wise.com/gb/compare: the saving strip padding 12 (A9) */
  --carousel-w:372px;       /* apple.com "Get to know iPhone" card at 1440: 372 (C30); 260 at <=960 */
  --bubble-gap:32px;        /* ai-sdk.dev conversation gap-8 (A4) */
  --bubble-max:95%;         /* ai-sdk.dev message max-w-[95%] (A4) */
  --price-gap:10px;         /* vercel.com/pricing price -> unit gap 10 (A3) */
  --plan-desc-max:352px;    /* vercel.com/pricing plan description max-width 352 (A3) */
  --feat-gap:10px;          /* vercel.com/pricing feature icon -> text gap 10 (A3/A6) */
  --faq-py:18px;            /* vercel.com/pricing .faq-hit py-4.5 */
  --faq-gap:24px;           /* number -> question gap 24 @lg (12 @md, stacked on phone) */
  --faq-n-w:2ch;            /* .faq-hit grid-cols-[2ch_1fr] */
  --faq-block:800px;        /* notion.com/pricing FAQ list max-width 800 (DONORS p4); the FAQ block's width at >=961 (iteration 9) */
  --faq-list-mt:-20px;      /* vercel.com/pricing FAQ list -mt-5 beside the h2 (A6) */
  --chev-mt:9px;            /* vercel.com/pricing chevron margin-top 9 */
  --num-w:2ch;              /* numbered lists reuse the FAQ number column */
  --time-w:4ch;             /* chapter times (m:ss) in the same tabular column pattern */
  --foot-link-p:2px;        /* vercel.com footer link padding 2 (24 tall) */
  --play-sm:28px;           /* apple.com phone gallery play control 28x28 (A6): the lesson player's caption-row control (critique02 D11) */
  --play-sm-glyph:16px;     /* --play : --play-glyph = 56 : 32, kept at 28 (glyph ~26% of the control; Apple ~29%, A6) */
  --mask-chips:24px;        /* chip-track edge fade, a mask (critique02 D14) */
  --mask-log:32px;          /* chat log bottom fade, a mask (critique02 C33) */
  --chat-h-lg:480px;        /* chat viewport at >=961 (critique02 D15); 620 at 601-960, 560 on phone */

  /* ---- 6 motion (vercel.com) ---- */
  --ease:cubic-bezier(.4,0,.2,1);   /* Tailwind default / --ease-in-out */
  --ease-out:cubic-bezier(0,0,.2,1);/* --ease-out (FAQ panel) */
  --t-ui:.15s;              /* buttons, cards, tabs, tiles, header surface */
  --t-link:.1s;             /* text links */
  --t-chev:.2s;             /* FAQ chevron, FAQ panel */
  --t-seg:.3s;              /* segmented indicator */

  /* ---- 6b the polish layer (round 21, SPEC A18; landing_polish_research_2026-10-25/POLISH_SPEC.md) ---- */
  --ease-out-expo:cubic-bezier(.16,1,.3,1);    /* A1 entrances: the same curve on stripe.com, openai.com, perplexity.ai, raycast.com, arc.net */
  --ease-spring:cubic-bezier(.34,1.56,.64,1);  /* A2 press release / pop: raycast.com, spotify.com */
  --ease-hover:cubic-bezier(.25,.46,.45,.94);  /* A3 hover: linear.app nav (measured 0.1s) */
  --t-hover:.1s;                               /* A3: linear.app 0.1s (vercel.com, perplexity.ai, notion.com 0.15s) */
  --t-hero:.7s; --hero-step:90ms; --hero-dy:8px; --hero-blur:6px;   /* B1 blur-in: linear.app hero, clerk.com letter-reveal, openai.com reveal, vercel.com letterReveal */
  --t-reveal:.6s; --rv-step:60ms; --rv-dy:16px;  /* B2 scroll reveal: resend.com translate-y-4 (16px), linear.app, openai.com */
  --t-overlay:.2s; --overlay-dy:8px;           /* B3 @starting-style: vercel.com fadeIn, resend.com starting:translate-y-2, apple.com */
  --nav-glass:rgba(8,9,10,.72);                /* C1: --bg at 72% (round 26: ink) */
  --l-nav-glass:rgba(250,250,250,.72);         /* C1 over the light band: --l-bg at 72% */
  --nav-blur:blur(20px) saturate(180%);        /* C1: linear.app header blur(20px); apple.com saturate(180%) */
  --grain-o:.035;                              /* C2 film grain 3-4%: linear.app .grain, openai.com feTurbulence noise */
  --hl-top:rgba(255,255,255,.24); --hl-bottom:rgba(255,255,255,.06);              /* C3 specular hairline: linear.app, resend.com */
  --hl-top-hover:rgba(255,255,255,.32); --hl-bottom-hover:rgba(255,255,255,.1);   /* D2: a card lifts its border tier, never its position */
  --gtext:linear-gradient(#fff 0%,#adadad 110%);   /* C4: vercel.com gradientText (dark) */
  --fade-x:6%;                                 /* C5 edge fade: raycast.com, vercel.com, openai.com --scrollable-edge-fade, clerk.com --tabs-fade */
  --glow-rgb:255,227,161; --glow-a:.1; --t-glow:.9s;   /* C6 chapter light; round 26 (A22): warm cream light on ink, never blue (COLOR_SPEC rule 7) */
  --press:.97; --t-press:.3s;                  /* D1: linear.app scale(.97), released on A2 */
  --nav-hover-fill:rgba(255,255,255,.08); --l-nav-hover-fill:rgba(0,0,0,.05);   /* D2: linear.app nav pill .08; notion.com / perplexity.ai .05 */
  --npb-w:2px; --npb-gap:2px; --npb-h:12px; --t-npb:.9s;   /* D3 now-playing bars: spotify.com equaliser, resend.com bars-bounce */
  --t-type:650ms; --t-line:450ms;              /* D4 self-playing chat: 0.65s typing + 0.45s line = ~1.1s a line (clerk.com, linear.app) */
  --t-acc:.3s;                                 /* D5 accordion: stripe.com / vercel.com interpolate-size */
  --pill-dot:8px; --pill-on:24px; --pill-gap:16px; --t-pill:.3s;   /* D6 pill pagination: apple.com/airpods "Get the highlights" */
  color-scheme:dark;
}
/* @md (601-960): vercel.com class logic; h1 and h3 already switch at @md, h2/intro/price at @lg */
@media (max-width:960px){
  :root{
    --h2-fs:32px; --h2-lh:40px; --h2-ls:-1.28px;     /* text-heading-32 */
    --ch-fs:24px; --ch-lh:32px; --ch-ls:-0.96px;     /* chapter titles step below the section h2 (C05: h1 > h2 > chapter); text-heading-24 */
    --h2s-fs:40px;                                   /* text-heading-40 (h2 secondary below @lg) */
    --intro-fs:16px; --intro-lh:24px;                /* text-copy-16 */
    --price-fs:32px; --price-lh:40px; --price-ls:-1.28px;
    --sec-pad:80px; --head-gap:64px;                 /* pt-20 / gap-16 (@md) */
    --hero-pt:64px; --hero-pb:96px;                  /* vercel.com/ai-gateway hero at 820 (A5) */
    --hero-h1-gap:16px;
    --media-gap:32px;
    --th-h2-lh:var(--th-lh-title);
    --faq-gap:12px;
    --carousel-w:260px;                              /* apple.com 390 card width (C30 keeps it below @lg) */
  }
}
/* phone (<=600) */
@media (max-width:600px){
  :root{
    --h1-fs:40px; --h1-lh:48px; --h1-ls:-2.4px;      /* text-heading-40 */
    --h3-fs:20px; --h3-lh:26px; --h3-ls:-0.4px;      /* text-heading-20 */
    --sec-pad:64px; --head-gap:48px;                 /* pt-16 / gap-12 */
    --hero-pt:48px; --hero-pb:72px;
    --cell-pad:24px;                                 /* pricing cells 24 on phone */
    --media-cap-gap:8px;
  }
}

/* ==========================================================================
   base
   ========================================================================== */
*,*::before,*::after{box-sizing:border-box}
html{font-synthesis:none;scroll-behavior:smooth;scroll-padding-top:var(--header-h);-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;background:var(--bg);color:var(--text);font:var(--w-regular) var(--body-fs)/var(--body-lh) var(--font);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow-x:hidden}
img{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
a{color:inherit}
h1,h2,h3,h4,p,figure,ol,ul{margin:0}
p{text-wrap:pretty}
/* vercel.com and linear.app balance their headings (C19) */
h1,h2,h3,h4,.display,.hero__title,.step__name,.cmp__plan b{text-wrap:balance}
.th,[lang="th"]{font-family:var(--font-th);letter-spacing:0;font-feature-settings:normal}
.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}
/* buttons whose accessible name starts with a screen-reader "Play" contain it, so it never escapes a scroller (WCAG 2.5.3 fix, round 11) */
.tonekey,.eqp,.eqc__whole,.eqc__parts button,.piece,.bub button,.sent__whole{position:relative}
.skip{position:fixed;left:var(--gutter);top:calc(var(--header-h) * -1);z-index:100;display:inline-flex;align-items:center;height:var(--ctl-sm);padding:0 var(--btn-px-sm);border-radius:var(--r-tile);background:var(--action);color:var(--on-action);font:var(--w-medium) var(--btn-fs)/var(--btn-lh) var(--font);text-decoration:none}
.skip:focus{top:var(--s-16)}
/* focus: rings on controls (Geist --ds-focus-ring); links and cards use the outline variant (vercel.com) */
:focus-visible{outline:var(--focus-outline-w) solid var(--focus);outline-offset:var(--focus-outline-offset)}
button:focus-visible,.btn:focus-visible,[role="tab"]:focus-visible,summary:focus-visible{outline:none;box-shadow:var(--focus-ring)}

/* the page container: --ds-page-width 1400 + 2 x 24 gutter */
.watch__in,.math__in,.school__in,.method__intro,.sounds__stage,.eartest,.words,.sent,.talk__grid,.moments__head,.faq,.close__in,.foot__in,.nav__in,.truth{width:100%;max-width:calc(var(--page-w) + var(--gutter) * 2);margin-inline:auto;padding-inline:var(--gutter)}

/* ==========================================================================
   type roles (SPEC 2 + rev 1.1)
   ========================================================================== */
.display{margin:0;font-family:var(--font);font-weight:var(--w-heading);color:var(--text)}
/* h2 section: text-heading-32 @lg:text-heading-56 (the FAQ title too, rev 1.1 #5) */
.truth__title,.watch__head .display,.method__intro .display,.school__head .display,.moments__head .display,.math__head .display,.close .display,.faq .display{font-size:var(--h2-fs);line-height:var(--h2-lh);letter-spacing:var(--h2-ls)}
/* chapter titles inside the method: text-heading-48 @lg, text-heading-24 below (C05) */
.sounds__text .display,.words__head .display,.sent__head .display,.talk__copy .display{font-size:var(--ch-fs);line-height:var(--ch-lh);letter-spacing:var(--ch-ls)}
/* two-tone headline: the subdued clause in --text-3 (Stripe HDS precedent, SPEC 1c); each clause is its own
   balanced block, so neither leaves a widow (critique02 D09) */
.truth__title span,.watch__head .display span,.close .display span{display:block;color:var(--text-3);text-wrap:balance}
.faq .display{max-width:var(--measure-faq)}
/* h3 card / group title: text-heading-20 @md:text-heading-24 */
.eartest__head .display,.anatomy__head .display,.practice__head .display,.road__k,.ld__t,.quiz__q,.pact__cols h3,.pact__will,.sent__en,.cmp__plan b,.games h4{font-family:var(--font);font-weight:var(--w-heading);font-size:var(--h3-fs);line-height:var(--h3-lh);letter-spacing:var(--h3-ls);color:var(--text)}
/* eyebrow: text-label-14 font-medium, Vercel's secondary tier (rev 1.1 #7) */
.eyebrow,.chap,.rail__t,.sent__plabel,.road b{font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-medium);letter-spacing:0;color:var(--text-2);text-transform:none}
/* section intro: text-copy-16 @lg:text-copy-18, max 58ch */
.math__head .body,.school__lede,.moments__head p,.sent__head .body{font-size:var(--intro-fs);line-height:var(--intro-lh);color:var(--text-2);max-width:var(--measure-intro)}
/* body beside a visual: text-copy-16, max 34-38ch */
.body,.truth__read,.eartest__head p,.practice__head p,.pact__cols p{font-size:var(--body-fs);line-height:var(--body-lh);font-weight:var(--w-regular);color:var(--text-2);max-width:var(--measure-side)}
.truth__read{font-size:var(--intro-fs);line-height:var(--intro-lh)}
/* body lead-in: "No markup on tokens." font-[450] in --text */
.school__lede strong,.pass__list b{font-weight:var(--w-heading);color:var(--text)}
/* caption: text-copy-13 in the secondary tier (rev 1.1 #7) */
.hud__label,.hud__tip,.words__map,.ld__k,.ld__more,.step__tier,.step__count,.chat__title small,.cmp__plan small,.watch__lbl small,.piece small,.player__bar{font-size:var(--cap-fs);line-height:var(--cap-lh);font-weight:var(--w-regular);letter-spacing:0;color:var(--text-2);text-transform:none}
/* fine print / disclaimers stay in --text-3 (rev 1.1 #7) */
.hero__fine,.road__fine,.pass__fine,.close__fine{font-size:var(--cap-fs);line-height:var(--cap-lh);font-weight:var(--w-regular);color:var(--text-3)}

/* ==========================================================================
   buttons (SPEC 5b): pill 40 / 36, header 32 r6, focus ring, no lift
   ========================================================================== */
.btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:var(--s-8);text-decoration:none;font-family:var(--font);font-weight:var(--w-medium);letter-spacing:0;white-space:nowrap;cursor:pointer;-webkit-tap-highlight-color:transparent;transition:all var(--t-ui) var(--ease)}
.btn svg{width:var(--icon);height:var(--icon);flex:none}
.btn--lg{height:var(--ctl-lg);padding:0 var(--btn-px-lg);border-radius:var(--r-pill);font-size:var(--btn-lg-fs);line-height:var(--btn-lg-lh)}
.btn--md{height:var(--ctl-md);padding:0 var(--btn-px-lg);border-radius:var(--r-pill);font-size:var(--btn-fs);line-height:var(--btn-lh)}
.btn--sm{height:var(--ctl-sm);padding:0 var(--btn-px-sm);border-radius:var(--r-tile);font-size:var(--btn-fs);line-height:var(--btn-lh)}
.btn--menu{width:100%;height:var(--ctl-lg);padding:0 var(--btn-px-menu);border-radius:var(--r-tile);font-size:var(--btn-lg-fs);line-height:var(--btn-lg-lh)}
.btn--primary{background:var(--action);color:var(--on-action)}
.btn--primary:hover{background:var(--action-hover)}
.btn--secondary{background:var(--bg-raised);color:var(--text);box-shadow:var(--ring)}
.btn--secondary:hover{background:var(--bg-inset);box-shadow:var(--ring-inset)}
.btn--secondary:focus-visible{box-shadow:var(--focus-ring)}
/* on-state = a class on the existing element (C34): the --link ring and --text label */
.btn--toggle[aria-pressed="true"],.btn.is-on{box-shadow:var(--ring-on);color:var(--text)}
/* two labels stacked in one cell: a button never changes width when its label changes */
.btn__lbls{display:inline-grid}
.btn__lbls>span{grid-area:1 / 1;text-align:center}
.btn__lbls>span+span,.btn.is-on .btn__lbls>span:first-child{visibility:hidden}
.btn.is-on .btn__lbls>span+span{visibility:visible}
.btn .i-pause,.btn.is-on .i-play{display:none}
.btn.is-on .i-pause{display:inline}
/* icon buttons: small 32 r6 square (Geist small), secondary fill */
.iconbtn,.hud__btn,.eq__arrow{display:inline-flex;align-items:center;justify-content:center;height:var(--ctl-sm);min-width:var(--ctl-sm);border-radius:var(--r-tile);background:var(--bg-raised);color:var(--text);box-shadow:var(--ring);font-size:var(--btn-fs);line-height:var(--btn-lh);font-weight:var(--w-medium);transition:all var(--t-ui) var(--ease)}
.iconbtn svg,.hud__btn svg,.eq__arrow svg{width:var(--icon);height:var(--icon)}
.iconbtn:hover:not(:disabled),.hud__btn:hover:not(:disabled),.eq__arrow:hover{background:var(--bg-inset);box-shadow:var(--ring-inset)}
.hud__btn--wide{padding:0 var(--btn-px-sm)}
#cstNext{min-width:112.58px}   /* D12 -> critique03 E12: a min-width (its Geist width), so a narrower fallback cannot move the row and longer copy still fits */
.hud__btn:disabled{visibility:hidden}
.iconbtn:focus-visible,.hud__btn:focus-visible,.eq__arrow:focus-visible{box-shadow:var(--focus-ring)}
/* media play control: apple.com 56x56 circle, fill = our action */
.playctl{display:grid;place-items:center;width:var(--play);height:var(--play);border-radius:var(--r-pill);background:var(--action);color:var(--on-action);transition:all var(--t-ui) var(--ease)}
.playctl svg{display:block;width:var(--play-glyph);height:var(--play-glyph)}
.playctl:hover,.watch__play:hover .playctl{background:var(--action-hover)}
.playctl:focus-visible,.watch__play:focus-visible .playctl{box-shadow:var(--focus-ring)}
/* small control: apple.com phone gallery 28x28 (A6), with a 44 hit area around it (C36) */
.playctl--sm{position:relative;width:var(--play-sm);height:var(--play-sm)}
.playctl--sm svg{width:var(--play-sm-glyph);height:var(--play-sm-glyph)}
.playctl--sm::before{content:"";position:absolute;inset:calc((var(--play-sm) - var(--ctl-touch)) / 2)}
/* carousel paddles: apple.com 36x36 round, our secondary fill */
.paddle{display:inline-flex;align-items:center;justify-content:center;width:var(--ctl-md);height:var(--ctl-md);border-radius:var(--r-pill);background:var(--bg-raised);color:var(--text);box-shadow:var(--ring);transition:all var(--t-ui) var(--ease)}
.paddle svg{width:var(--icon);height:var(--icon)}
.paddle:hover:not(:disabled){background:var(--bg-inset);box-shadow:var(--ring-inset)}
.paddle:disabled{color:var(--text-4);cursor:default}
/* text links */
.words__map a,.inline-link{color:inherit;text-decoration:underline;text-decoration-color:var(--text-4);text-underline-offset:var(--underline-offset);transition:all var(--t-link) var(--ease)}
.words__map a:hover,.inline-link:hover{color:var(--text);text-decoration-color:var(--text)}
/* badge: Geist Badge sm (sentence case for multi-word labels, C42) */
.badge{display:inline-flex;align-items:center;padding:var(--badge-py) var(--s-8);border-radius:var(--r-pill);background:var(--bg-inset);color:var(--text);font-size:var(--badge-fs);line-height:var(--badge-lh);font-weight:var(--w-medium);letter-spacing:var(--badge-ls)}
@media (max-width:600px){
  /* C36: 44px touch targets on phone (vercel.com phone rows 44; Apple HIG 44) */
  .paddle{width:var(--ctl-touch);height:var(--ctl-touch)}
  .words__map a{display:inline-block;padding-block:calc((var(--ctl-touch) - var(--cap-lh)) / 2);margin-block:calc((var(--cap-lh) - var(--ctl-touch)) / 2)}
  /* in-card actions: Hear the line, 0.7x, Play the conversation, the table CTA, the plan CTA (critique02 C36) */
  .sent__tools .btn,.talk__copy .btn,.cmp__cta .btn,.pass__cta{height:var(--ctl-touch)}
}
@media (max-width:960px){
  .hud__btn{height:var(--ctl-touch);min-width:var(--ctl-touch)}
}

/* ==========================================================================
   header (SPEC 5a): sticky 64, transparent at rest, --bg + 1px line after scroll;
   Geist light header over the light band (C06)
   ========================================================================== */
.nav{position:sticky;top:0;z-index:74;height:var(--header-h);margin-bottom:calc(var(--header-h) * -1);background:transparent;transition:background-color var(--t-ui) var(--ease),box-shadow var(--t-ui) var(--ease)}
.nav.is-scrolled{background:var(--bg);box-shadow:0 1px 0 0 var(--header-line)}
.nav__in{height:100%;display:flex;align-items:center;gap:var(--cta-gap)}
.brand{display:flex;align-items:center;gap:var(--s-16);text-decoration:none;color:var(--text)}
.brand__mark{width:var(--ctl-sm);height:var(--ctl-sm);flex:none}
.brand__name{font-size:var(--btn-lg-fs);line-height:var(--brand-lh);font-weight:var(--w-medium);letter-spacing:0;white-space:nowrap;transition:color var(--t-ui) var(--ease)}
.brand__name em,.foot__brand em{font-style:normal;color:var(--cream)}
.nav__links{display:flex}
.nav__links a{display:inline-flex;align-items:center;height:var(--ctl-sm);padding:0 var(--nav-px);border-radius:var(--r-tile);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2);text-decoration:none;transition:all var(--t-link) var(--ease)}
.nav__links a:hover{color:var(--text)}
/* D12: each header link keeps its measured Geist width (text + 2 x 12), so a late font swap moves none of them */
.nav__login{min-width:63.61px}.nav__cta .btn--primary{min-width:116.19px}   /* critique03 E12: min-widths (their Geist widths): a narrower fallback cannot move them, longer copy still grows */
.nav__links a:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.nav__cta{display:flex;align-items:center;gap:var(--cta-gap);margin-left:auto}
.nav__menu{display:none;align-items:center;justify-content:center;width:var(--ctl-touch);height:var(--ctl-touch);border-radius:var(--r-tile);color:var(--text)}
.nav__menu svg{width:var(--icon-24);height:var(--icon-24)}
.nav__menu .i-close,.nav__menu[aria-expanded="true"] .i-open{display:none}
.nav__menu[aria-expanded="true"] .i-close{display:inline}
/* over the light Lessons band: vercel.com light header (bg #fafafa, 0 1px 0 0 rgba(0,0,0,.08)), SPEC 1b text tiers */
.nav.is-light{background:var(--l-bg);box-shadow:0 1px 0 0 var(--l-header-line)}
.nav.is-light .brand{color:var(--l-text)}
.nav.is-light .brand__name em{color:var(--l-text-2)}
.nav.is-light .nav__links a{color:var(--l-text-2)}
.nav.is-light .nav__links a:hover{color:var(--l-text)}
.nav.is-light .nav__login{background:var(--l-raised);color:var(--l-text);box-shadow:var(--l-ring)}
.nav.is-light .nav__login:hover{background:var(--l-inset);box-shadow:var(--l-ring-hover)}
.nav.is-light .nav__menu{color:var(--l-text)}
.nav.is-light .btn:focus-visible,.nav.is-light .nav__links a:focus-visible,.nav.is-light .nav__menu:focus-visible{box-shadow:var(--l-focus-ring)}
/* the phone menu is dark, so an open menu keeps the dark header */
.nav.is-menu{background:var(--bg);box-shadow:0 1px 0 0 var(--header-line)}
.nav.is-menu .brand{color:var(--text)}
.nav.is-menu .nav__menu{color:var(--text)}
/* phone menu panel (A2): fixed under the header, raised fill, 24 padding, 44 rows, no open animation */
.menu{position:fixed;inset:0;top:var(--header-h);z-index:73;overflow-y:auto;background:var(--bg-raised);scrollbar-width:none}
.menu[hidden]{display:none}
.menu__in{padding:var(--s-24)}
.menu__rows{display:flex;flex-direction:column;margin:0 calc(var(--nav-px) * -1)}
.menu__rows a{display:flex;align-items:center;min-height:var(--ctl-touch);padding:0 var(--nav-px);border-radius:var(--r-tile);font-size:var(--menu-fs);line-height:var(--menu-lh);font-weight:var(--w-regular);color:var(--text-2);text-decoration:none;transition:all var(--t-ui) var(--ease)}
.menu__rows a:hover{color:var(--text)}
.menu__rows a:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.menu__cta{display:flex;flex-direction:column;gap:var(--s-16);margin-top:var(--s-32);padding-bottom:var(--s-24)}
@media (max-width:880px){
  .nav__links,.nav__trial{display:none}   /* round 25 (owner): no room for both on phones; the one top-bar button is Log in (the menu keeps both) */
  .nav__menu{display:inline-flex}
}
@media (min-width:881px){ .menu{display:none} }
/* phone: the mark alone, as vercel.com and apple.com show it at 390 (rev 1.1 #11); 44px hit area (C36) */
@media (max-width:600px){
  .nav .brand__name{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}
  .brand{padding:calc((var(--ctl-touch) - var(--ctl-sm)) / 2);margin-inline-start:calc((var(--ctl-sm) - var(--ctl-touch)) / 2)}   /* 44x44, the mark stays on the gutter (C36) */
}

/* ==========================================================================
   1 HERO: the Word Constellation. The copy is centred on the map's stage box (C04);
   the caption cluster sits under the map on the right container edge.
   ========================================================================== */
.hero{position:relative;height:100vh;height:100svh;overflow:hidden;background:var(--bg)}
.hero__sky{position:absolute;inset:0;width:100%;height:100%;display:block;touch-action:manipulation}
.hero__copy{position:absolute;left:max(var(--gutter), calc((100% - var(--page-w)) / 2));top:calc(var(--header-h) + var(--stage-top));bottom:var(--stage-bottom);z-index:2;display:flex;flex-direction:column;justify-content:center;align-items:flex-start;pointer-events:none}
.hero__copy a,.hero__copy button{pointer-events:auto}
.hero__title{margin-top:var(--stack);font-family:var(--font);font-weight:var(--w-heading);font-size:var(--h1-fs);line-height:var(--h1-lh);letter-spacing:var(--h1-ls);color:var(--text)}
.hero__title span{display:block}
.hero__title .l2{color:var(--cream)}
.hero__text{margin-top:var(--hero-h1-gap)}
.hero__sub{font-size:var(--sub-fs);line-height:var(--sub-lh);font-weight:var(--w-heading);color:var(--text);max-width:var(--measure-side)}
.hero__lede{font-size:var(--sub-fs);line-height:var(--sub-lh);color:var(--text-2);max-width:var(--measure-side)}
.hero__actions{margin-top:var(--hero-cta-gap);display:flex;flex-direction:column;align-items:flex-start;gap:var(--s-16)}
.hero__btns{display:flex;flex-wrap:wrap;gap:var(--btn-gap)}
@media (min-width:601px){ .hero__btns .btn--primary{min-width:var(--hero-cta-w)} }   /* D12 -> critique03 E12: a min-width, never a fixed width */
/* caption cluster for the map (right container edge) */
.hud{position:absolute;right:max(var(--gutter), calc((100% - var(--page-w)) / 2));bottom:var(--hud-b);z-index:3;display:flex;flex-direction:column;align-items:flex-end;gap:var(--s-12);text-align:right}
.hud__now{display:flex;flex-direction:column;min-width:0}
.hud__word{display:block;width:var(--hud-word-w);max-width:100%;height:calc(var(--th-hud-fs) * var(--th-lh-title));font-size:var(--small-fs);line-height:calc(var(--th-hud-fs) * var(--th-lh-title));color:var(--text-2);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}   /* fixed box: a new word never resizes the cluster (0px shift) */
.hud__word b{font-family:var(--font-th);font-size:var(--th-hud-fs);font-weight:var(--w-th-bold);color:var(--text);margin-right:var(--s-8)}
.hud__ctl{display:flex;gap:var(--s-8)}
.hud__tip{align-self:stretch}   /* full cluster width, text right-aligned: its box never depends on the font (D12) */
.hud__tip .mob{display:none}
@media (max-height:760px) and (min-width:601px){ .hud__tip{display:none} }
/* tablet portrait: the caption row directly under the map, then the copy (C35); site.js stage() ends the map 8px above this row */
@media (min-width:601px) and (max-width:960px) and (orientation:portrait){
  .hero{display:flex;flex-direction:column;justify-content:flex-end;padding:0 var(--gutter) var(--hero-pb)}
  .hero__copy{position:relative;left:auto;top:auto;bottom:auto;order:2}
  .hud{position:relative;right:auto;bottom:auto;order:1;margin-bottom:var(--s-24);flex-direction:row;align-items:center;justify-content:space-between;text-align:left}
  .hud__tip{display:none}
}
/* phone (round 16, owner: the map must stop the scroll). A full-bleed stage behind the header fills the first screen
   (100svh); the headline, the subline and the primary CTA sit at the bottom of that screen on a scrim (apple.com phone
   heroes: the copy over the image's lower edge, the CTA in thumb reach; linear.app / vercel.com: the product visual
   first). The word controls are one row just above the headline: the tip on the left, Back + "Another word" on the
   right. The caption is the hub card itself (the "Now playing" text stays for screen readers). The secondary button,
   the fine print and the lede follow below the first screen. --m-fold = title (2 lines) + gap + subline + gap + CTA +
   bottom padding, all fixed line boxes, so the first screen never depends on the font. */
@media (max-width:600px){
  :root{--m-cta-gap:24px;--m-fold-pb:24px;--m-ctl-gap:16px;--m-fold:calc(var(--h1-lh) * 2 + var(--hero-h1-gap) + var(--sub-lh) + var(--m-cta-gap) + var(--ctl-lg) + var(--m-fold-pb))}
  .hero{height:auto;display:flex;flex-direction:column;overflow:visible}
  .hero__sky{position:absolute;inset:0 0 auto 0;height:100svh;touch-action:pan-y}   /* pan-y: a horizontal swipe changes the word */
  .hero::after{content:"";position:absolute;left:0;right:0;top:calc(100svh - var(--m-fold) - var(--m-ctl-gap) - var(--ctl-touch) - 32px);height:calc(var(--m-fold) + var(--m-ctl-gap) + var(--ctl-touch) + 32px);background:linear-gradient(180deg,rgba(8,9,10,0) 0,rgba(8,9,10,.82) 42%,var(--bg) 64%);pointer-events:none;z-index:1}   /* the scrim, in --bg */
  .hero__copy{position:relative;left:auto;top:auto;bottom:auto;margin-top:calc(100svh - var(--m-fold));padding:0 var(--gutter) var(--hero-pb)}
  .hero__kicker{display:none}
  .hero__text{display:contents}
  .hero__title{order:2;margin-top:0}.hero__sub{order:3;margin-top:var(--hero-h1-gap)}.hero__actions{order:4;margin-top:var(--m-cta-gap)}.hero__lede{order:5;margin-top:var(--s-24)}
  .hero__actions,.hero__btns{align-self:stretch}
  .hero__btns{flex-direction:column}
  .hero__btns .btn{width:100%}
  .hud{top:calc(100svh - var(--m-fold) - var(--m-ctl-gap) - var(--ctl-touch));bottom:auto;left:var(--gutter);right:var(--gutter);flex-direction:row;align-items:center;justify-content:space-between;gap:var(--s-12);text-align:left}
  .hud__now{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap}
  .hud__word{width:max-content;max-width:none}   /* its natural width inside the screen-reader clip (no self-clipping) */
  .hud__tip{order:-1;flex:1 1 auto;min-width:0;align-self:center;text-align:left}
  .hud__tip .desk{display:none}.hud__tip .mob{display:inline}
  .hud__btn{border-radius:var(--r-pill)}
}
@media (max-width:600px) and (max-height:719px){ :root{--m-cta-gap:16px;--m-fold-pb:16px;--m-ctl-gap:12px} }
@media (max-width:600px) and (max-height:700px){ .hero__kicker{display:none} }
/* constellation stage geometry (exceptions: site.js stage() lays the map out from these boxes).
   Desktop: the stage runs from header + 22 to 178px (150px when the screen is <=760 tall) above the bottom;
   the hero copy is centred in the same box. Phone (round 16): the canvas is the first screen (100svh); stage() runs
   from the header to 10px above the controls row. */
:root{--stage-top:22px;--stage-bottom:178px}
@media (max-height:760px){ :root{--stage-bottom:150px} }
.hero{min-height:640px}
@media (max-width:600px){
  .hero{min-height:0}
}

/* ==========================================================================
   section rhythm (SPEC 3): padding 96 / 80 / 64, heading -> content 72 / 64 / 48
   ========================================================================== */
.truth,.watch,.school,.moments,.math,.faq,.close{padding-block:var(--sec-pad)}
/* dark-to-dark section boundaries carry a 1px rule on the container line (vercel.com/pricing full-width 1px
   gray-alpha-400 rules; critique01/02 C09) */
.watch,.method,.math,.faq,.close{position:relative}
.watch::before,.method::before,.math::before,.faq::before,.close::before{content:"";position:absolute;top:0;left:max(var(--gutter), calc((100% - var(--page-w)) / 2));right:max(var(--gutter), calc((100% - var(--page-w)) / 2));height:1px;background:var(--rule)}

/* ==========================================================================
   2 THE TRUTH: photo tile beside the two-tone headline, top-aligned (C27)
   ========================================================================== */
.truth{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);align-items:center}   /* copy centred against the photo (iteration 8) */
.truth__photo{grid-column:1 / span 6;border-radius:var(--r-panel);overflow:hidden;background:var(--bg-raised)}
.truth__photo img{width:100%;height:auto}
.truth__copy{grid-column:8 / span 5;display:flex;flex-direction:column;gap:var(--stack)}
@media (max-width:960px){
  .truth{row-gap:var(--media-gap)}
  .truth__photo,.truth__copy{grid-column:1 / -1}
}

/* ==========================================================================
   2b WATCH: the film at full container width (C10), r12 media (C41), the control at the
   bottom-left inset 24 (C20); the poster is a frameless 1x/2x still from the film itself (critique02 D07)
   ========================================================================== */
.watch__head{display:flex;flex-direction:column;gap:var(--stack);margin-bottom:var(--head-gap)}
.watch__grid{margin:0}
.watch__film{position:relative;aspect-ratio:16 / 9;border-radius:var(--r-panel);overflow:hidden;background:var(--bg-raised)}
.watch__film video{position:absolute;inset:0;width:100%;height:100%;display:block;object-fit:cover;background:var(--bg-raised)}
.watch__poster{position:absolute;inset:0;z-index:1;width:100%;height:100%;object-fit:cover;transition:opacity var(--t-ui) var(--ease),visibility 0s var(--t-ui)}
.watch__film.is-playing .watch__poster{visibility:hidden;opacity:0}
.watch__play{position:absolute;inset:0;z-index:2;display:flex;align-items:flex-end;justify-content:flex-start;padding:var(--s-24);transition:all var(--t-ui) var(--ease)}
.watch__play:focus-visible{box-shadow:none}
.watch__film.is-playing .watch__play{visibility:hidden;opacity:0;pointer-events:none}
.watch__lbl{margin-top:var(--media-cap-gap);display:flex;flex-direction:column}
.watch__lbl b{font-size:var(--cap-fs);line-height:var(--cap-lh);font-weight:var(--w-heading);color:var(--text)}

/* ==========================================================================
   3 METHOD: intro, chapter rail (vercel.com product sub-nav), four chapters as
   sub-sections separated by the heading -> content gap (C09)
   ========================================================================== */
.method{position:relative}
.method__intro{padding-top:var(--sec-pad)}
.method__intro .display{max-width:calc((100% + var(--grid-gap)) * 8 / 12 - var(--grid-gap))}
.method > section{padding-top:var(--head-gap);padding-bottom:0}
.method > section:last-child{padding-bottom:var(--sec-pad)}
@media (max-width:960px){ .method__intro .display{max-width:none} }
/* the chapter rail: shown only once it is stuck under the header (C07), tabs 32 / 6-14 / r6, sliding fill */
.rail{position:sticky;top:var(--header-h);z-index:20;height:0}
.rail .rail__in{display:flex;align-items:center;gap:var(--cta-gap);padding:var(--s-8) max(var(--gutter), calc((100% - var(--page-w)) / 2));background:var(--bg);box-shadow:0 1px 0 0 var(--header-line);opacity:0;pointer-events:none;transition:opacity var(--t-ui) var(--ease)}
.rail.is-on .rail__in{opacity:1}
.rail ol{position:relative;display:flex;gap:var(--s-4);list-style:none;padding:0}
.rail li{position:relative;z-index:1;display:flex;align-items:center;height:var(--ctl-sm);padding:var(--tab-py) var(--tab-px);border-radius:var(--r-tile);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2);white-space:nowrap;transition:color var(--t-ui) var(--ease)}
.rail li.on{color:var(--text)}
/* the sliding indicator shared by every segmented control (vercel.com/ai-gateway) */
/* critique05 G02: the indicator sits at left 0 / top 0 and moves by transform only (translate, plus a scale from the old
   box that settles to 1), compositor-only, 0.3s ease (SPEC 6); its width and height are set once per move */
.seg__ind{position:absolute;z-index:0;left:0;top:0;width:0;height:0;border-radius:var(--r-tile);background:var(--bg-inset);pointer-events:none;opacity:0;transform-origin:0 0;will-change:transform;transition:transform var(--t-seg) var(--ease),opacity var(--t-ui) var(--ease)}
.seg__ind.on{opacity:1}
@media (max-width:600px){ .rail{display:none} }

/* ---- tiles (SPEC 4): r6, ring, fill --bg-raised, padding 20, 0.15s, no lift ---- */
.tonekey,.eopt,.eqp,.piece,.eqc__parts button{border-radius:var(--r-tile);background:var(--bg-raised);box-shadow:var(--ring);color:var(--text);transition:all var(--t-ui) var(--ease)}
.bub button{border-radius:var(--r-panel);background:var(--bg-raised);box-shadow:var(--ring);color:var(--text);transition:all var(--t-ui) var(--ease)}
@media (pointer:fine){
  .tonekey:hover,.eopt:hover:not(:disabled),.eqp:hover,.piece:hover,.bub button:hover,.eqc__parts button:hover{background:var(--hover-fill);box-shadow:var(--ring-hover)}
}
/* playing / selected = the --link ring (C34) */
.tonekey.playing,.eqp.playing,.piece.playing,.bub.playing button,.eqc__parts button.playing,.eqc__whole.playing{box-shadow:var(--ring-on)}

/* ---- 3.1 Sounds ---- */
.sounds__stage{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--head-gap);align-items:center}   /* copy and figure centred against each other (iteration 8; apple.com/iphone centres its accordion beside the media (centre offset 4px, A13)) */
@media (min-width:961px){ .sounds__stage{row-gap:var(--grid-row-gap)} }   /* >=961 the keys follow the figure at the feature-grid row gap 40 (iteration 7) */
.sounds__text{grid-column:1 / span 5;display:flex;flex-direction:column;gap:var(--stack)}
/* the big tone figure: H.tonePaths at its own 100:48 aspect across the whole figure column, the syllable under it (C15, critique02 D03) */
.tonebig{grid-column:7 / -1;display:flex;flex-direction:column;align-items:center}
.tonebig__svg{display:block;width:100%;height:auto;aspect-ratio:100 / 40;overflow:visible}   /* the viewBox spans the contours' pitch range (y 8-48) and site.js sets every contour on its floor, so the contour sits 2 units (11px at 560) above the syllable: one figure (iteration 8) */
.tonebig__svg{max-width:var(--tone-cap);margin-inline:auto}   /* the 560 cap (critique03 J6) at every width, so the figure stays near the copy's height (iteration 7) */
.tonebig__path{fill:none;stroke:var(--tc,var(--t-mid));stroke-width:5;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;transition:stroke var(--t-ui) var(--ease)}
.tonebig__word{display:flex;flex-direction:column;align-items:center;width:100%;text-align:center}
.tonebig__thai{font-family:var(--font-th);font-weight:var(--w-th);font-size:var(--stat-fs);line-height:var(--th-lh-display);color:var(--text);border-radius:var(--r-tile);padding:0 var(--s-12);transition:color var(--t-ui) var(--ease)}
.tonebig__thai:hover{color:var(--tc)}
.tonebig__meta{display:flex;flex-direction:column;align-items:center;width:100%}
/* C38: the labels are full-width blocks, so a new tone repaints text without moving any box */
.tonebig__name{display:block;width:100%;font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-medium);color:var(--tc,var(--t-mid))}
.tonebig__en{display:block;width:100%;font-size:var(--intro-fs);line-height:var(--intro-lh);color:var(--text-2)}
.tonekeys{grid-column:1 / -1;list-style:none;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--tile-gap)}
.tonekey{width:100%;height:100%;display:grid;grid-template-columns:auto 1fr;column-gap:var(--s-12);align-items:center;padding:var(--tile-pad);text-align:left}
.tonekey svg{grid-row:1 / 3;width:var(--tone-glyph-w);height:var(--icon-24);overflow:visible}
.tonekey svg path,.eopt svg path{fill:none;stroke:var(--tc);stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.tonekey b{font-family:var(--font-th);font-weight:var(--w-th-bold);font-size:var(--h3-fs);line-height:var(--th-lh-title)}
.tonekey span{font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2)}
.tonekey.on{box-shadow:0 0 0 1px var(--tc)}
.tonekey.on span{color:var(--text)}
/* ear test: a standalone panel (r12, C41); play, dots and message in one row (C24) */
.eartest{margin-top:var(--head-gap)}
.eartest__card{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--s-24);align-items:start;padding:var(--card-pad);border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge)}
.eartest__head{grid-column:1 / span 4;grid-row:1 / 3;display:flex;flex-direction:column;gap:var(--stack)}
.eartest__play{grid-column:5 / -1;grid-row:1;display:flex;flex-direction:row;align-items:center;gap:var(--s-12)}
.eartest__opts{grid-column:5 / -1;grid-row:2;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:var(--s-8)}
.eartest__dots{flex:none;display:flex;gap:var(--s-8)}
.eartest__dots i{width:var(--dot);height:var(--dot);border-radius:var(--r-pill);background:var(--border-hover);transition:all var(--t-ui) var(--ease)}
.eartest__dots i.cur{background:var(--text)}
.eartest__dots i.ok{background:var(--cream)}
.eartest__dots i.no{background:var(--text-4)}
.eartest__msg{flex:1 1 0;min-width:0;display:flex;align-items:center;height:calc(var(--small-lh) * 3);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2);font-variant-numeric:tabular-nums}
.playorb{flex:none}
.playorb.playing{background:var(--action-hover)}
.eopt{display:flex;flex-direction:column;align-items:center;gap:var(--s-8);padding:var(--tile-pad) var(--s-8);font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-medium);color:var(--text-2)}
.eopt svg{width:100%;max-width:var(--tone-glyph-w);height:auto;aspect-ratio:100 / 48;overflow:visible}
.eopt:disabled{cursor:default}
/* right / wrong use status tokens, never tone colors (C25) */
.eopt.ok{box-shadow:var(--ring-on);color:var(--text)}
.eopt.no{box-shadow:0 0 0 1px var(--text-4);color:var(--text-3)}
@media (max-width:960px){
  .sounds__text,.tonebig{grid-column:1 / -1}
  .tonekey{grid-template-columns:1fr;justify-items:center;row-gap:var(--s-8);text-align:center}
  .tonekey svg{grid-row:auto}
  .eartest__head,.eartest__play,.eartest__opts{grid-column:1 / -1;grid-row:auto}
  .eartest__card{grid-template-columns:minmax(0,1fr)}   /* round 19: every child spans the row here; 12 columns with 11 gaps forced a 264px minimum and 1px of side-scroll at 320 */
}
/* 601-1399: every key label gets the same two-line box, so the five-across row stays even (critique02 D17; the
   mid-tone label also wraps at 1280, so the box runs up to @2xl, where all five fit on one line) */
@media (min-width:601px) and (max-width:1399px){ .tonekey span{min-height:calc(var(--small-lh) * 2)} }
/* short multi-line labels never end on a one-word line (critique03 E09); round 19 (PM review): pretty, not balance, so no line is cut short */
.road span,.pass__list li>span,.games li,.tonekey span,.cmp__save,.cmp__note,.ld__list li,.chapters li,.room figcaption b,.wl span,.wl small,.sent__eq,.quiz__x{text-wrap:pretty}   /* round 19 (PM review): pretty, not balance: no lone last word, but no line cut short either (balance left 60-112px at a row's end) */
@media (max-width:600px){
  .tonekeys{grid-template-columns:1fr;gap:var(--s-8)}
  .tonekey{grid-template-columns:auto auto 1fr;justify-items:stretch;column-gap:var(--s-16);text-align:left}
  .tonekey span{justify-self:end}
  .eartest__play{flex-wrap:wrap}
  .eartest__msg{flex-basis:100%;height:calc(var(--small-lh) * 4)}
  .eartest__opts{grid-template-columns:repeat(6,minmax(0,1fr))}
  .eopt{grid-column:span 2}
  .eopt:nth-child(4){grid-column:2 / span 2}
}

/* ---- 3.2 Words ---- */
.words{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--head-gap);align-items:center}   /* copy centred against the word panel (iteration 8) */
.words__head{grid-column:1 / span 5;display:flex;flex-direction:column;gap:var(--stack)}
.eq{grid-column:6 / -1;position:relative;padding:var(--card-pad);border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge)}
.eq__stage{display:flex;align-items:center;justify-content:center;height:calc(var(--tile-pad) * 2 + var(--h1-fs) * var(--th-lh-display) + var(--s-8) + var(--small-lh))}
.eqrow{display:flex;align-items:flex-end;justify-content:center;gap:var(--s-12);width:100%}
.eqp{display:flex;flex-direction:column;align-items:center;gap:var(--s-8);padding:var(--tile-pad);min-width:0}
.eqp b{font-family:var(--font-th);font-weight:var(--w-th);font-size:var(--h2s-fs);line-height:var(--th-lh-display);white-space:nowrap}
.eqp span{font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2);text-align:center}
.eqp--whole b{font-size:var(--h1-fs)}
.eqp--whole span{font-weight:var(--w-medium);color:var(--text)}
.eqop{align-self:center;font-size:var(--h3-fs);line-height:var(--h3-lh);color:var(--text-3)}
.eqrow .eqp,.eqrow .eqop{opacity:0;transition:opacity var(--t-ui) var(--ease)}
.eqrow.in .eqp,.eqrow.in .eqop{opacity:1}
.eqrow.out .eqp,.eqrow.out .eqop{opacity:0}
.eq__nav{display:flex;align-items:center;gap:var(--s-12);margin-top:var(--s-24)}
.eq__arrow{flex:none}
/* one-row chip track (C26): segmented track padding 4, gap 4, scrolls sideways */
.eq__chips{position:relative;flex:1;min-width:0;display:flex;flex-wrap:nowrap;gap:var(--seg-pad);padding:var(--seg-pad);overflow-x:auto;scrollbar-width:none}
.eq__chips::-webkit-scrollbar{display:none}
/* the track fades out (a mask, not a surface) on an edge with more chips behind it, so a half chip never rests
   against an arrow (critique02 D14; site.js sets the classes from the scroll position) */
.eq__chips.fade-r{-webkit-mask-image:linear-gradient(to right,#000 calc(100% - var(--mask-chips)),transparent);mask-image:linear-gradient(to right,#000 calc(100% - var(--mask-chips)),transparent)}
.eq__chips.fade-l{-webkit-mask-image:linear-gradient(to right,transparent,#000 var(--mask-chips));mask-image:linear-gradient(to right,transparent,#000 var(--mask-chips))}
.eq__chips.fade-l.fade-r{-webkit-mask-image:linear-gradient(to right,transparent,#000 var(--mask-chips),#000 calc(100% - var(--mask-chips)),transparent);mask-image:linear-gradient(to right,transparent,#000 var(--mask-chips),#000 calc(100% - var(--mask-chips)),transparent)}
.eq__chips button{position:relative;z-index:1;flex:none;display:inline-flex;align-items:center;height:var(--ctl-sm);padding:0 var(--tab-px);border-radius:var(--r-tile);font-family:var(--font-th);font-size:var(--small-fs);line-height:var(--th-lh-small);color:var(--text-2);transition:color var(--t-ui) var(--ease)}
.eq__chips button:hover,.eq__chips button[aria-selected="true"]{color:var(--text)}
.eq__time{display:none}
.eqm{display:none}
.words__map{margin-top:var(--s-24)}
@media (max-width:960px){
  .words__head,.eq{grid-column:1 / -1}
}
@media (max-width:600px){
  /* phone: the swipe cards replace the stage; the caption follows them */
  .eq{order:3;padding:0;border:0;background:none;border-radius:0}
  .eq__stage,.eq__nav{display:none}
  .words__map{margin-top:0}
  /* apple.com scroll-snap carousel, gap 20, snap edge = the 24 gutter, cards r12 (C41) */
  .eqm{order:2;grid-column:1 / -1;display:flex;gap:var(--tile-gap);overflow-x:auto;scroll-snap-type:x mandatory;margin-inline:calc(var(--gutter) * -1);padding-inline:var(--gutter);scroll-padding-inline:var(--gutter);scrollbar-width:none;-webkit-overflow-scrolling:touch}
  .eqm::-webkit-scrollbar{display:none}
  .eqc{flex:none;width:var(--carousel-w);scroll-snap-align:start;display:flex;flex-direction:column;gap:var(--stack);padding:var(--tile-pad);border-radius:var(--r-panel);background:var(--bg-raised);box-shadow:var(--ring)}
  .eqc__whole{display:flex;flex-direction:column;align-items:center;border-radius:var(--r-tile);transition:all var(--t-ui) var(--ease)}
  .eqc__whole b{font-family:var(--font-th);font-weight:var(--w-th);font-size:var(--h1-fs);line-height:var(--th-lh-display);color:var(--text)}
  .eqc__whole span{font-size:var(--body-fs);line-height:var(--body-lh);font-weight:var(--w-medium);color:var(--text)}
  .eqc__parts{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:var(--s-8);padding-top:var(--stack);border-top:1px solid var(--edge)}
  .eqc__parts button{display:flex;flex-direction:column;align-items:center;padding:var(--bubble-py) var(--bubble-px)}
  .eqc__parts b{font-family:var(--font-th);font-weight:var(--w-th-bold);font-size:var(--h3-fs);line-height:var(--th-lh-title)}
  .eqc__parts span{font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2)}
  .eqc__parts i{font-style:normal;font-size:var(--h3-fs);line-height:var(--h3-lh);color:var(--text-3)}
}

/* ---- 3.3 Sentences: the panel (r12, C41) with the pieces spread across six columns (C10) ---- */
.sent{display:flex;flex-direction:column;gap:var(--head-gap)}
.sent__head{display:flex;flex-direction:column;gap:var(--stack)}
.sent__panel{display:flex;flex-direction:column;gap:var(--s-32);padding:var(--card-pad);border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge)}
.sent__whole{font-family:var(--font-th);font-weight:var(--w-th);font-size:var(--h2-fs);line-height:var(--th-h2-lh);color:var(--text);text-align:left;border-radius:var(--r-tile);transition:color var(--t-ui) var(--ease)}
.sent__whole .k{transition:color var(--t-ui) var(--ease)}
.sent__whole .k.lit,.sent__whole:hover{color:var(--cream)}
.sent__en{margin-top:var(--s-8)}
.sent__en span{display:block;margin-top:var(--s-4);font-size:var(--cap-fs);line-height:var(--cap-lh);font-weight:var(--w-regular);letter-spacing:0;color:var(--text-2)}
.sent__pieces{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:var(--tile-gap)}
.piece{display:flex;flex-direction:column;align-items:flex-start;gap:var(--s-4);padding:var(--tile-pad);text-align:left}
.piece b{font-family:var(--font-th);font-weight:var(--w-th-bold);font-size:var(--h3-fs);line-height:var(--th-lh-title)}
.piece span{font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2)}
.piece.k-key{background:var(--bg-inset);box-shadow:var(--ring-inset)}
.sent__tools{display:flex;flex-wrap:wrap;gap:var(--btn-gap)}
.sent__pattern{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-12) var(--s-24);padding-top:var(--s-32);border-top:1px solid var(--edge)}
.sent__formula{display:flex;flex-wrap:wrap;align-items:center;gap:var(--s-12);font-size:var(--body-fs);line-height:var(--body-lh);color:var(--text-2)}
.sent__formula b{font-family:var(--font-th);font-weight:var(--w-th-bold);font-size:var(--th-hud-fs);line-height:var(--th-lh-title);color:var(--text)}
.sent__formula i{font-style:normal;color:var(--text-3)}
.sent__eq{white-space:nowrap}
@media (max-width:960px){ .sent__pieces{grid-template-columns:repeat(3,minmax(0,1fr))} }
@media (max-width:600px){
  .sent__pieces{display:flex;flex-direction:column;gap:var(--s-8)}
  .piece{flex-direction:row;justify-content:space-between;align-items:center}
  .piece span{text-align:right;flex:1;padding-left:var(--s-12)}
  .piece small{display:none}
  .sent__pattern{flex-direction:column;align-items:flex-start}
  .sent__eq{white-space:normal;flex-basis:100%}
}

/* ---- 3.4 Conversations: chat panel (r12) + the 100 rooms (apple.com carousel) ---- */
.talk__grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--head-gap);align-items:start}
.talk__copy{grid-column:1 / span 5;display:flex;flex-direction:column;align-items:flex-start;gap:var(--stack)}
.talk__copy .btn{margin-top:calc(var(--hero-cta-gap) - var(--stack))}
@media (min-width:961px){ .talk__grid{align-items:center} }   /* the copy block, grouped (paragraph -> CTA 32), centred against the chat (iteration 8; apple.com/iphone centres its accordion beside the media (centre offset 4px, A13)) */
.chat{grid-column:7 / -1;position:relative;display:flex;flex-direction:column;overflow:hidden;border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge)}
.chat__top{flex:none;display:flex;flex-direction:column}
.chat__top img{width:100%;object-fit:cover}
.chat__title{display:flex;align-items:baseline;flex-wrap:wrap;gap:var(--s-12);padding:var(--tile-pad);border-bottom:1px solid var(--edge)}
.chat__title .th{font-size:var(--th-hud-fs);line-height:var(--th-lh-title);font-weight:var(--w-th-bold)}
.chat__title b{font-size:var(--body-fs);line-height:var(--body-lh);font-weight:var(--w-medium)}
.chat__log{list-style:none;padding:var(--tile-pad) var(--tile-pad) var(--mask-log);-webkit-mask-image:linear-gradient(#000 calc(100% - var(--mask-log)),transparent);mask-image:linear-gradient(#000 calc(100% - var(--mask-log)),transparent);display:flex;flex-direction:column;gap:var(--bubble-gap);overflow-y:auto;scroll-behavior:smooth;scroll-padding-block:var(--tile-pad);scrollbar-width:thin;scrollbar-color:var(--edge-hover) transparent}
.bub{max-width:var(--bubble-max);align-self:flex-start}
.bub.me{align-self:flex-end}
.bub button{display:block;text-align:left;padding:var(--bubble-py) var(--bubble-px)}
.bub.me button{background:var(--bg-inset);box-shadow:var(--ring-inset)}
.bub small{display:block;font-size:var(--cap-fs);line-height:var(--cap-lh);color:var(--text-2)}
.bub b{display:block;font-family:var(--font-th);font-weight:var(--w-th);font-size:var(--body-fs);line-height:var(--th-lh-body)}
.bub span{display:block;font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2);text-wrap:pretty}
.rooms{margin-top:var(--head-gap)}
.rooms__row{display:flex;gap:var(--tile-gap);overflow-x:auto;scroll-snap-type:x mandatory;padding-inline:max(var(--gutter), calc((100% - var(--page-w)) / 2));scroll-padding-inline:max(var(--gutter), calc((100% - var(--page-w)) / 2));scrollbar-width:none;-webkit-overflow-scrolling:touch}
.rooms__row::-webkit-scrollbar{display:none}
.rooms__row[hidden]{display:none}
.room{flex:none;width:var(--carousel-w);margin:0;scroll-snap-align:start;display:flex;flex-direction:column}
.room img{width:100%;height:auto;border-radius:var(--r-panel);background:var(--bg-raised);object-fit:cover}
.room figcaption{margin-top:var(--media-cap-gap);display:flex;flex-direction:column}
.room figcaption b{font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-medium);color:var(--text)}
.room figcaption span{font-family:var(--font-th);font-size:var(--cap-fs);line-height:var(--th-lh-caption);color:var(--text-2)}
.rooms__nav{display:flex;justify-content:flex-end;gap:var(--paddle-gap);margin-top:var(--s-24);padding-inline:max(var(--gutter), calc((100% - var(--page-w)) / 2))}
@media (max-width:960px){
  .talk__copy,.chat{grid-column:1 / -1}
}
/* component content boxes (exceptions, kept from round 6): chat viewport 620 (560 phone), its scene band 120;
   at >=961 the panel is 480, about the copy column's height, and still scrolls (critique02 D15) */
.chat{height:620px}
.chat__top img{height:120px}
@media (min-width:961px){ .chat{height:var(--chat-h-lg)} .chat__top img{display:none} }   /* critique03 E07: the 100-room carousel below shows the rooms, so the log gets the panel */
@media (max-width:600px){ .chat{height:560px} }
/* round 20 (PM review): 768-960 (@md to @lg) composes the desktop way, the copy beside the chat and centred against it
   (iteration 8, A13: apple.com/iphone centres the short column against the tall one). Stacked, the 408px copy left a
   312-504 x 312 empty region beside it at 768-960 (dead-space audit). Below 768 the stack stays (no empty region). */
@media (min-width:768px) and (max-width:960px){
  .talk__grid{align-items:center}
  .talk__copy{grid-column:1 / span 5}
  .chat{grid-column:6 / -1;height:var(--chat-h-lg)}
  .chat__top img{display:none}   /* as at >=961 (critique03 E07): the 100-room carousel right below shows the rooms, so the log gets the panel */
}

/* ==========================================================================
   4 THE SCHOOL: the one light band (Geist light, SPEC 1b). The dark tokens are re-pointed
   to their light roles here; metadata uses --l-text-2, gray-700 is for disabled only (C17).
   ========================================================================== */
.school{--text:var(--l-text);--text-2:var(--l-text-2);--text-3:var(--l-text-2);--text-4:var(--l-text-3);--bg-raised:var(--l-raised);--bg-inset:var(--l-inset);--border:var(--l-border);--border-hover:var(--l-border-hover);--edge:var(--l-border);--edge-hover:var(--l-border-hover);--action:var(--l-action);--action-hover:var(--l-action-hover);--link:var(--l-link);--focus:var(--l-focus);--hover-fill:var(--l-hover-fill);--ring:var(--l-ring);--ring-hover:var(--l-ring-hover);--ring-inset:var(--l-ring-hover);--ring-on:0 0 0 1px var(--l-text);--focus-ring:var(--l-focus-ring);--npb-c:var(--l-text);
  position:relative;background:var(--l-bg);color:var(--text);color-scheme:light}
.school__in{display:flex;flex-direction:column}
.school__head{display:flex;flex-direction:column;gap:var(--stack);margin-bottom:var(--head-gap)}
.school__head .display{max-width:calc((100% + var(--grid-gap)) * 8 / 12 - var(--grid-gap))}
.step,.wl button,.quiz__opts button,.games__col{border-radius:var(--r-tile);background:var(--bg-raised);box-shadow:var(--ring);color:var(--text);transition:all var(--t-ui) var(--ease)}
@media (pointer:fine){
  .step:hover,.wl button:hover,.quiz__opts button:hover{background:var(--hover-fill);box-shadow:var(--ring-hover)}
}
/* levels: the level list beside the open level at every desktop width (iteration 8; the staircase is retired). Rows
   keep their natural height (the FAQ hit area 18 12, A6), 8 apart; the list is centred against the detail panel, as
   apple.com/iphone centres its accordion beside the media (centre offset 4px, A13). <=960: the accordion (C14). */
.levels{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--grid-row-gap);align-items:center}
.levels__stair{grid-column:1 / span 5;display:flex;flex-direction:column;align-items:stretch;gap:var(--s-8)}
.step{position:relative;display:flex;flex-direction:row;align-items:center;gap:var(--s-16);padding:var(--faq-py) var(--s-12);text-align:left}
.step__n{width:var(--num-w);flex:none;font-size:var(--h3-fs);line-height:var(--h3-lh);letter-spacing:var(--h3-ls);font-weight:var(--w-heading);font-variant-numeric:tabular-nums}
.step__mid{display:flex;flex-direction:column;flex:1}
.step__name{font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-medium);hyphens:none;text-wrap:wrap}   /* round 19 (PM review): a level name fills its row before the chevron (balance left 48-79px at 320) */
/* selected = the --l-border-hover ring and --l-text labels (C34); a click opens a level (critique03 E01) */
.step[aria-selected="true"]{box-shadow:var(--l-ring-hover)}
.step[aria-selected="true"] .step__tier,.step[aria-selected="true"] .step__count{color:var(--l-text)}
.levels__detail{grid-column:6 / -1;display:grid;overflow:hidden;border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge)}
.step-wrap{display:none}
.ld{grid-area:1 / 1;visibility:hidden;opacity:0;transition:opacity var(--t-ui) var(--ease),visibility 0s var(--t-ui)}
.ld.on{visibility:visible;opacity:1;transition:opacity var(--t-ui) var(--ease),visibility 0s}
.ld__poster{aspect-ratio:16 / 9;overflow:hidden;background:var(--bg-inset)}
.ld__poster img{width:100%;height:100%;object-fit:cover}
.ld__body{display:flex;flex-direction:column;gap:var(--stack);padding:var(--card-pad)}
.ld__list{list-style:none;padding:0;display:grid;gap:var(--s-8)}
.ld__list li{display:grid;grid-template-columns:var(--num-w) minmax(0,1fr);column-gap:var(--s-12);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2)}
.ld__list li span{font-size:var(--cap-fs);line-height:var(--small-lh);color:var(--text-2);font-variant-numeric:tabular-nums}
/* inside a lesson: the header row, then the segmented tabs, then one shared cell; every pane keeps its natural
   height, top-aligned, so no card is stretched (C10, C44 -> critique02 D05) */
.anatomy{margin-top:var(--sec-pad);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--s-24)}
.anatomy__head{grid-column:1 / -1;display:flex;flex-direction:column;gap:var(--stack)}
.anatomy__head em{font-style:normal}
.anatomy__tabs{grid-column:1 / -1;position:relative;display:inline-flex;gap:var(--seg-pad);padding:var(--seg-pad);width:max-content}
.anatomy__tabs button{position:relative;z-index:1;height:var(--ctl-sm);padding:var(--tab-py) var(--tab-px);border-radius:var(--r-tile);font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-regular);color:var(--text-2);transition:color var(--t-ui) var(--ease)}
.anatomy__tabs button:hover,.anatomy__tabs button[aria-selected="true"]{color:var(--text)}
.anatomy__panes{grid-column:1 / -1;position:relative;display:grid}
.pane{grid-area:1 / 1;align-self:start;visibility:hidden;opacity:0;transition:opacity var(--t-ui) var(--ease),visibility 0s var(--t-ui)}
.pane.is-on{visibility:visible;opacity:1;transition:opacity var(--t-ui) var(--ease),visibility 0s}
.pane[data-pane="watch"]{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:var(--grid-gap);align-items:center}   /* the chapter list (natural rows) centred against the player, apple.com/iphone centres its accordion beside the media (centre offset 4px, A13) (iteration 8) */
/* the lesson player: the real poster unobstructed, then a caption row with the 28 control (it opens the app) and
   the duration (C21, critique02 D11) */
.player{display:flex;flex-direction:column;overflow:hidden;border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge)}
.player img{width:100%}
.player__bar{display:flex;align-items:center;gap:var(--s-12);padding:var(--s-12) var(--s-16);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2);font-variant-numeric:tabular-nums}
.chapters{list-style:none;padding:0}   /* rows at the FAQ hit-area padding 18 (A6): 57px, inside the vercel.com table-row range 44-58 (iteration 8) */
.chapters li{display:grid;grid-template-columns:var(--time-w) minmax(0,1fr);column-gap:var(--s-12);padding:var(--faq-py) 0;border-bottom:1px solid var(--edge);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text)}
.chapters li span{font-size:var(--cap-fs);line-height:var(--small-lh);color:var(--text-2);font-variant-numeric:tabular-nums}
.page,.quiz{padding:var(--card-pad);border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge)}
.page h4{font-size:var(--body-fs);line-height:var(--body-lh);font-weight:var(--w-heading);color:var(--text);margin-bottom:var(--s-8)}
.page h4+ul{margin-bottom:var(--s-24)}
.page ul{padding-left:var(--s-24);font-size:var(--body-fs);line-height:var(--body-lh);color:var(--text-2)}
.page p{font-size:var(--body-fs);line-height:var(--body-lh);color:var(--text-2)}
.page .th{font-weight:var(--w-th-bold);color:var(--text)}
.wl{list-style:none;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--tile-gap)}
.wl button{width:100%;height:100%;display:flex;flex-direction:column;gap:var(--s-4);padding:var(--tile-pad);text-align:left}
.wl b{font-family:var(--font-th);font-weight:var(--w-th-bold);font-size:var(--th-word-fs);line-height:var(--th-lh-display);color:var(--text)}
.wl span{font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-medium);color:var(--text)}
.wl small{font-size:var(--cap-fs);line-height:var(--cap-lh);color:var(--text-2)}
.wl button.playing,.quiz__opts button.playing{box-shadow:var(--ring-on)}
.quiz__q{margin-bottom:var(--s-24)}
.quiz__opts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--tile-gap)}
.quiz__opts button{padding:var(--tile-pad)}
.quiz__opts button b{font-family:var(--font-th);font-weight:var(--w-th-bold);font-size:var(--th-word-fs);line-height:var(--th-lh-display);color:var(--text)}
/* right / wrong: status tokens, not tone colors (C25) */
.quiz__opts button.ok{box-shadow:var(--ring-on)}
.quiz__opts button.no{box-shadow:0 0 0 1px var(--l-text-3)}
.quiz__opts button.no b{color:var(--l-text-2)}
.quiz__x{margin-top:var(--s-16);height:calc(var(--small-lh) * 3);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2)}
/* then play: four skill groups as tiles, r6 / p20 / gap 20 (C22) */
.practice{margin-top:var(--sec-pad);display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--grid-row-gap);align-items:center}   /* copy centred against the game tiles (iteration 8) */
.practice__head{grid-column:1 / span 4;display:flex;flex-direction:column;gap:var(--stack)}
.games{grid-column:5 / -1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--tile-gap)}
.games__col{padding:var(--tile-pad)}
.games h4{margin-bottom:var(--s-12)}
.games ul{list-style:none;padding:0;display:grid;gap:var(--s-4)}
.games li{font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2)}
@media (max-width:960px){
  .school__head .display{max-width:none}
  .practice__head,.games{grid-column:1 / -1}
  .games{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:601px) and (max-width:960px){ .games ul{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:var(--s-12)} }   /* round 19 (PM review): a 383px card lists its games in two columns, so it isn't three-quarters empty */
/* every level row carries the 14px chevron of the page's other disclosures, turned 180 degrees on the open level (A6; critique03 E10) */
.step .chev{align-self:center;margin-top:0}
.step[aria-selected="true"] .chev{transform:rotate(180deg);color:var(--text)}
/* <=960: the accordion (C14) */
@media (max-width:960px){
  .levels{row-gap:0}
  .step{padding:var(--tile-pad)}
  .levels__stair,.levels__detail{grid-column:1 / -1}
  .levels__detail{display:none}
  .step-wrap{display:grid;grid-template-rows:0fr;transition:grid-template-rows var(--t-chev) var(--ease-out),margin var(--t-chev) var(--ease-out)}
  .step-wrap.open{grid-template-rows:1fr;margin-bottom:var(--s-8)}
  .step-wrap>.step-detail{min-height:0;overflow:hidden;border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge);visibility:hidden;transition:visibility 0s var(--t-chev)}
  .step-wrap.open>.step-detail{visibility:visible;transition:visibility 0s}
  .step-wrap:not(.open)>.step-detail{border-color:transparent}
}
@media (max-width:600px){
  .anatomy__tabs{width:100%}
  .anatomy__tabs button{flex:1;height:var(--ctl-touch)}
  .pane[data-pane="watch"]{grid-template-columns:1fr;row-gap:var(--s-16)}
  .wl{grid-template-columns:1fr}
}

/* ==========================================================================
   5 MOMENTS: the accordion and its photo inside one panel, both top-aligned (apple.com/iphone "Significant
   others"; critique02 D06); 601-960 the same panel shows one photo at a time (D16); phone a static stack
   ========================================================================== */
.moments__head{display:flex;flex-direction:column;gap:var(--stack);margin-bottom:var(--head-gap)}
.moments__head .display{max-width:calc((100% + var(--grid-gap)) * 8 / 12 - var(--grid-gap))}
.moments__row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-template-rows:1fr repeat(3,auto) 1fr;column-gap:var(--grid-gap);max-width:var(--page-w);margin-inline:max(var(--gutter), calc((100% - var(--page-w)) / 2));padding:var(--card-pad);border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge)}
.mom{display:contents}
.mom img{grid-column:6 / -1;grid-row:1 / -1;width:100%;height:auto;border-radius:var(--r-panel);opacity:0;transition:opacity var(--t-ui) var(--ease)}
.mom.on img{opacity:1}
.mom:nth-child(1) figcaption{grid-row:2}.mom:nth-child(2) figcaption{grid-row:3}.mom:nth-child(3) figcaption{grid-row:4}   /* the three rows centred against the photo inside the panel (iteration 8; apple.com/iphone centres its accordion beside the media (centre offset 4px, A13)) */
.mom figcaption{grid-column:1 / span 4;margin-inline:calc(var(--s-12) * -1);display:grid;grid-template-rows:auto 0fr;transition:grid-template-rows var(--t-chev) var(--ease-out)}
.mom.on figcaption{grid-template-rows:auto 1fr}
.mom__btn{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--s-24);width:100%;padding:var(--faq-py) var(--s-12);border-radius:var(--r-tile);text-align:left;font-size:var(--faq-fs);line-height:var(--faq-lh);font-weight:var(--w-regular);color:var(--text-2);transition:all var(--t-ui) var(--ease)}
.mom__btn:hover,.mom.on .mom__btn{color:var(--text)}
@media (pointer:fine){ .mom:not(.on) .mom__btn:hover{background:var(--hover-fill)} }
.mom__t{display:block;min-height:0;overflow:hidden;padding:0 var(--s-12);font-size:var(--intro-fs);line-height:var(--intro-lh);color:var(--text-2)}   /* the section-intro role, 18/28 at >=961 (SPEC 2; critique04 F04) */
@media (min-width:961px){ .mom img{aspect-ratio:16 / 9;object-fit:cover} }   /* apple.com media 16:9 (critique04 F04) */
.mom__t em{font-style:normal;color:var(--text)}
.chev{flex:none;width:var(--chev);height:var(--chev);margin-top:var(--chev-mt);color:var(--text-2);transition:transform var(--t-chev) var(--ease),color var(--t-chev) var(--ease)}
.mom.on .chev,details[open] .chev{transform:rotate(180deg);color:var(--text)}
@media (max-width:960px){
  .moments__head .display{max-width:none}
}
/* 601-960: the panel stays an accordion; the open row's title and text, then its one photo, then the closed rows (critique02 D16) */
@media (min-width:601px) and (max-width:960px){
  .moments__row{display:flex;flex-direction:column}
  .mom{display:flex;flex-direction:column}
  .mom figcaption{order:-1}
  .mom img{display:none;opacity:1}
  .mom.on img{display:block;margin:var(--s-16) 0 var(--s-8)}
}
@media (max-width:600px){
  .moments__row{display:flex;flex-direction:column;gap:var(--s-32);margin-inline:0;padding:0 var(--gutter);border:0;border-radius:0;background:none}
  .mom{display:block;margin:0}
  .mom img{opacity:1}
  .mom figcaption{display:block;margin:var(--media-cap-gap) 0 0}
  .mom__btn{padding:0;color:var(--text);pointer-events:none}
  .mom__btn .chev{display:none}
  .mom__t{padding:0}
}

/* ==========================================================================
   6 THE PRICE: the plan card beside the comparison (C12), the comparison unframed like
   vercel.com/pricing (rev 1.1 #6) with a CTA row, the road as a 4-step timeline (C29)
   ========================================================================== */
.math__head{display:flex;flex-direction:column;gap:var(--stack);margin-bottom:var(--head-gap)}
.math__head .display{max-width:calc((100% + var(--grid-gap)) * 8 / 12 - var(--grid-gap))}
.math__skip{color:var(--text-3);text-decoration:line-through;white-space:nowrap}
.math__price{color:inherit;white-space:nowrap}
.offer{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--grid-row-gap);align-items:start}
.offer__cmp{grid-column:1 / span 7}
.pass{grid-column:8 / -1}
/* comparison: plans as columns; a 1px rule under the 72px header row and above the CTA row, no frame,
   no row rules; the featured column takes the --bg-inset fill and the primary CTA (Vercel featured plan).
   Three columns again; the 2-month row shows the crossover (critique03 J1) */
.cmp{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));font-variant-numeric:tabular-nums}
.cmp__row{display:contents}
.cmp__row>span{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:var(--cmp-cell-py) var(--cmp-cell-px);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text);text-align:center}
.cmp__row--head>span{min-height:var(--cmp-head-h);border-bottom:1px solid var(--rule)}
.cmp__row>.cmp__label{align-items:flex-start;text-align:left;color:var(--text-2)}
.cmp__row>.cmp__us{background:var(--bg-inset)}
.cmp__plan small{display:block}
/* the saving, stated once under the table in wise.com/gb/compare's placement: one strip in the featured fill, padding
   12, r12 (A9). Type is the page's own: copy-14 (14/20) with the amount in the lead-in weight 450 (critique04 F08) */
.cmp__save{margin-top:var(--s-16);padding:var(--save-pad);border-radius:var(--r-panel);background:var(--bg-inset);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text)}
.cmp__save b{font-weight:var(--w-heading);color:var(--text);white-space:nowrap}
.cmp__note{margin-top:var(--s-12);font-size:var(--cap-fs);line-height:var(--cap-lh);color:var(--text-3)}
/* below @lg the comparison closes with one CTA after the saving line and its caption, 32 below (A5 text -> buttons),
   with the page's one CTA label; >=961 the plan card beside the table is the CTA (critique02 D10, critique04 F01) */
.cmp__cta{margin-top:var(--hero-cta-gap)}
@media (min-width:961px){ .cmp__cta{display:none} }
/* the plan card (r2, 1px --edge, raised fill) */
.pass{padding:var(--cell-pad);border-radius:var(--r-card);background:var(--bg-raised);border:1px solid var(--edge)}
.pass__top{display:flex;align-items:center;gap:var(--s-8)}
.pass__name{font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-medium);color:var(--text)}
.pass__price{margin-top:var(--s-16);display:flex;align-items:baseline;gap:var(--price-gap)}
.pass__price span{font-size:var(--price-fs);line-height:var(--price-lh);letter-spacing:var(--price-ls);font-weight:var(--w-heading);color:var(--cream);font-variant-numeric:tabular-nums}
.pass__price small{font-family:var(--font-mono);font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-regular);color:var(--text-3)}
.pass__note{margin-top:var(--s-16);max-width:var(--plan-desc-max);font-size:var(--body-fs);line-height:var(--body-lh);color:var(--text-2)}
.pass__rule{margin:var(--s-24) 0;border:0;border-top:1px solid var(--edge)}
.pass__list{list-style:none;padding:0;display:flex;flex-direction:column;gap:var(--s-12)}
.pass__list li{display:flex;align-items:flex-start;gap:var(--feat-gap);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2)}
.ico16{flex:none;width:var(--icon);height:var(--icon);margin-top:calc((var(--small-lh) - var(--icon)) / 2);color:var(--text)}
.pass__cta-wrap{padding-top:var(--s-32)}
.pass__fine{margin-top:var(--s-16)}
/* the road: in the table column under its caption, 40 below (critique02 D10); a 4-step timeline under a 1px
   rule (>=961), ruled rows below (C29) */
.road__wrap{margin-top:var(--grid-row-gap);display:flex;flex-direction:column;gap:var(--stack)}
.road{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--grid-gap)}
.road li{display:flex;flex-direction:column;gap:var(--s-4);padding-top:var(--s-12);border-top:1px solid var(--rule)}
.road span{font-size:var(--body-fs);line-height:var(--body-lh);color:var(--text)}
@media (max-width:960px){
  .math__head .display{max-width:none}
  .offer__cmp,.pass{grid-column:1 / -1}
  .pass{order:-1}
  .road{grid-template-columns:1fr;gap:0}
  .road li{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,2fr);column-gap:var(--s-12);padding:var(--s-12) 0}
}
/* phone comparison (C01, C13, D04 -> critique03 J3): three equal columns (114), the plan names in the plan-name
   role 14/20 w500 without their sub-lines (the plan card above says "once", the rows give the totals), the labels
   on the 24 gutter (padding 16 12 16 0), value cells 16 / 2. The closing CTA is full width, 44 tall, like the hero
   CTAs on phone (vercel.com at 390; C36) */
@media (max-width:600px){
  .cmp__row--head>span{min-height:0}
  .cmp__row--head>.cmp__corner{border-bottom-color:transparent}
  .cmp__plan b{font-size:var(--small-fs);line-height:var(--small-lh);letter-spacing:0;font-weight:var(--w-medium)}
  .cmp__plan small{display:none}
  .cmp__row>.cmp__label{padding:var(--cmp-cell-py) var(--s-12) var(--cmp-cell-py) 0}
  .cmp__cta .btn{width:100%}
}

/* ==========================================================================
   8 FAQ: vercel.com/pricing numbered rows, chevron, 0.2s ease-out height (site.js)
   ========================================================================== */
.faq{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--grid-row-gap);align-items:start}
.faq .display{grid-column:1 / -1}
.faq__list{grid-column:1 / -1}   /* title above, list below (A6 stacked, iteration 7) */
/* >=961: the whole block (title + list) centred in the container at the 800 measure, chevrons on its right edge, title
   centred (dropbox.com/plans FAQ: centred h2, list 780 wide centred at 1440; apple.com/apple-one "Questions? Answers.":
   centred h2 and list; measured live 2026-10-23, SPEC A14) */
@media (min-width:961px){
  .faq{grid-template-columns:minmax(0,1fr) minmax(0,var(--faq-block)) minmax(0,1fr);column-gap:0}
  .faq .display,.faq__list{grid-column:2}
  .faq .display{max-width:none;text-align:center}
}
.faq__list summary{display:block;list-style:none;cursor:pointer;border-radius:var(--r-tile)}
.faq__list summary::-webkit-details-marker{display:none}
.faq__list summary:focus-visible{box-shadow:none}
.faq__list summary:focus-visible .faq__hit{box-shadow:var(--focus-ring)}
.faq__hit{display:grid;grid-template-columns:var(--faq-n-w) minmax(0,1fr);column-gap:var(--faq-gap);padding:var(--faq-py) 0;border-radius:var(--r-tile);font-size:var(--faq-fs);line-height:var(--faq-lh);transition:all var(--t-ui) var(--ease)}
.faq__n{color:var(--text-3);font-variant-numeric:tabular-nums}
.faq__q{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--s-24);font-weight:var(--w-regular);color:var(--text)}
.faq__q>span{text-wrap:wrap}   /* round 19 (PM review): a question fills the row before it wraps. balance halved two-line questions (100-170px empty before the chevron at 390); pretty still moved a word down */
.faq__a{display:grid;grid-template-columns:var(--faq-n-w) minmax(0,1fr);column-gap:var(--faq-gap);overflow:hidden;font-size:var(--faq-fs)}
.faq__a p{grid-column:2;padding-bottom:var(--s-16);font-size:var(--body-fs);line-height:var(--faq-a-lh);color:var(--text-2)}
@media (pointer:fine){
  .faq__hit,.faq__a{padding-inline:var(--s-12)}
  .faq__list details:not([open]) .faq__hit:hover{background:var(--hover-fill)}
}
@media (max-width:960px){
  .faq__list{grid-column:1 / -1}
}
@media (max-width:600px){
  .faq__hit{display:flex;flex-direction:column}
  .faq__a{display:block}
}

/* ==========================================================================
   9 CLOSE: a centred finale (linear.app: centred h2, 40 to the next block, 12 between buttons),
   the pact card 8/12 centred, the tone lines full-bleed behind everything (C11)
   ========================================================================== */
.close{position:relative;overflow:hidden}
.close__wave{position:absolute;inset:0;width:100%;height:100%}
.close__in{position:relative;display:flex;flex-direction:column;align-items:center;gap:var(--stack);text-align:center}
.pact{width:100%;max-width:calc((100% + var(--grid-gap)) * 8 / 12 - var(--grid-gap));margin-top:calc(var(--finale-gap) - var(--stack));overflow:hidden;border-radius:var(--r-panel);background:var(--bg-raised);border:1px solid var(--edge);text-align:left}
.pact__cols{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.pact__cols>div{display:flex;flex-direction:column;gap:var(--stack);padding:var(--card-pad)}
.pact__cols>div+div{border-left:1px solid var(--edge)}
.pact__will{display:flex;flex-wrap:wrap;column-gap:var(--s-8);padding:var(--card-pad);border-top:1px solid var(--edge)}
.pact__door{margin-top:calc(var(--finale-gap) - var(--stack));display:flex;flex-direction:column;align-items:center;gap:var(--s-16)}
.pact__door .btns{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--finale-btn-gap)}
@media (max-width:960px){ .pact{max-width:none} }
@media (max-width:600px){
  .pact__cols{grid-template-columns:1fr}
  .pact__cols>div+div{border-left:0;border-top:1px solid var(--edge)}
  .pact__door{align-self:stretch}
  .pact__door .btns{flex-direction:column}
  .pact__door .btn{width:100%}
}

/* ==========================================================================
   footer (vercel.com): a 12-column grid, two labeled columns (C43), links 14/20 in 28px rows,
   the legal row 32 below, in --text-3
   ========================================================================== */
.foot{border-top:1px solid var(--edge)}
.foot__in{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);align-items:start;padding-block:var(--foot-py)}
.foot__brand{grid-column:1 / span 4;display:flex;align-items:center;gap:var(--s-16);margin-block:var(--foot-h-my);text-decoration:none;color:var(--text);font-size:var(--btn-lg-fs);line-height:var(--brand-lh);font-weight:var(--w-medium)}
.foot__brand img{width:var(--ctl-sm);height:var(--ctl-sm)}
.foot__cols{grid-column:9 / -1;grid-row:1 / span 2;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));column-gap:var(--grid-gap)}   /* columns 9-10 and 11-12, a right-aligned group (vercel.com footer columns span 2, A7; critique04 F07) */
.foot__col{grid-column:span 2}
.foot__h{margin-block:var(--foot-h-my);font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-medium);color:var(--text)}
.foot__col ul{list-style:none;padding:0}
.foot__col li{padding-block:var(--foot-li-py)}
.foot__col a{display:inline-block;padding:var(--foot-link-p);margin-left:calc(var(--foot-link-p) * -1);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2);text-decoration:none;transition:all var(--t-link) var(--ease)}
.foot__col a:hover{color:var(--text)}
.foot__fine{grid-column:1 / span 8;grid-row:2;align-self:end;margin-top:var(--foot-legal-mt);font-size:var(--legal-fs);line-height:var(--legal-lh);color:var(--text-3)}
@media (max-width:960px){
  .foot__brand,.foot__cols,.foot__fine{grid-column:1 / -1;grid-row:auto}
  .foot__cols{grid-template-columns:repeat(4,minmax(0,1fr))}
}
/* round 23: the nav (74) and phone menu (73) sit above Codex's plan section (.cx, z 71), which sits above the film grain (70).
   round 22: with the Meet Ploy link the Academy list is six rows, and stacked at 768-960 it left a 328x200 empty block beside
   it (dead-space audit, 834). @md to @lg composes the desktop way, as the Conversations section does there (A13 round 20):
   brand and legal line in columns 1-4, the link columns in 5-12 */
@media (min-width:768px) and (max-width:960px){
  .foot__brand{grid-column:1 / span 4;grid-row:1}
  .foot__cols{grid-column:5 / -1;grid-row:1 / span 2}
  .foot__fine{grid-column:1 / span 4;grid-row:2}
}
@media (max-width:600px){
  .foot__col a{padding-block:calc((var(--ctl-touch) - var(--small-lh)) / 2);margin-block:calc((var(--small-lh) - var(--ctl-touch)) / 2 + var(--foot-link-p))}
}

/* ==========================================================================
   POLISH LAYER (round 21, SPEC A18; source of every item: output/landing_polish_research_2026-10-25/POLISH_SPEC.md).
   Opt-in hooks, so any section (Meet Ploy, Membership) can take them on merge:
     [data-rv]          the block rises in once (B2)          [data-rv-stagger]  its visible children rise in, 60ms apart (B2)
     [data-hero] --hi   the hero's blur-in, step --hi (B1)     [data-glow]        a soft light that turns on with the reveal (C6)
     .hairline          the specular 1px border, opaque fill (C3); .hairline--mask for a translucent card; .hairline--hover (D2)
     .gt                display gradient text (C4)             .fade-x            edge fade on a sideways scroller (C5)
     .npbars            "now playing" bars, live while an ancestor has .playing / .is-playing (D3)
     .pills             carousel pagination (D6, site.js)
   A4: every animation sits behind prefers-reduced-motion: no-preference. The hidden start states also need html.rv-on,
   which <head> sets only when motion is allowed (a 4s failsafe removes it if site.js never runs), so the page is
   complete without JS. Only transform, opacity and filter animate (the FAQ height through interpolate-size, D5).
   ========================================================================== */

/* ---- B1 hero blur-in: line 1, line 2, subtitle, intro, buttons, the map caption; 90ms apart. It starts with the
   constellation (cst.js onStart), whose hub arrives 120ms in, with line 2 ---- */
.hero__kicker,.hero__title .l1{--hi:0}.hero__title .l2{--hi:1}.hero__sub{--hi:2}.hero__lede{--hi:3}.hero__actions{--hi:4}.hud{--hi:5}
@media (max-width:600px){ .hero__actions{--hi:3}.hero__lede{--hi:5}.hud{--hi:4} }   /* phone order: title, subline, CTA, then the lede below the fold */
@keyframes pl-hero{from{opacity:0;filter:blur(var(--hero-blur));transform:translateY(var(--hero-dy))}}
@media (prefers-reduced-motion:no-preference){
  html.rv-on .hero:not(.is-go) [data-hero]{opacity:0}
  .hero.is-go [data-hero]{animation:pl-hero var(--t-hero) var(--ease-out-expo) calc(var(--hi,0) * var(--hero-step)) backwards}
}

/* ---- B2 scroll reveal, once ---- */
@keyframes pl-rise{from{opacity:0;transform:translateY(var(--rv-dy))}}
@media (prefers-reduced-motion:no-preference){
  html.rv-on [data-rv]:not(.is-in),html.rv-on [data-rv-stagger]:not(.is-in)>:nth-child(-n+12){opacity:0}
  [data-rv].is-in,[data-rv-stagger].is-in>:nth-child(-n+12){animation:pl-rise var(--t-reveal) var(--ease-out-expo) var(--rv-d,0ms) backwards}
}

/* ---- B3 overlays: the phone menu fades in and slides 8px down from under the header ---- */
@media (prefers-reduced-motion:no-preference){
  .menu{transition:opacity var(--t-overlay) var(--ease-out-expo),transform var(--t-overlay) var(--ease-out-expo),display var(--t-overlay) allow-discrete}
  .menu[hidden]{opacity:0;transform:translateY(calc(var(--overlay-dy) * -1))}
  @starting-style{ .menu{opacity:0;transform:translateY(calc(var(--overlay-dy) * -1))} }
}

/* ---- C1 frosted header: after the first scroll the bar is --bg at 72% with blur(20) saturate(180%); its 1px line
   fades in over the first 64px of scroll (scroll-driven; the .is-scrolled class is the fallback). The chapter rail
   under it is the same glass. Over the light band: --l-bg at 72%, its own rgba(0,0,0,.08) line (C06) ---- */
.nav{transition:background-color var(--t-ui) var(--ease),box-shadow var(--t-ui) var(--ease)}
.nav.is-scrolled{background:var(--nav-glass);-webkit-backdrop-filter:var(--nav-blur);backdrop-filter:var(--nav-blur);box-shadow:none}
.nav::after{content:"";position:absolute;left:0;right:0;bottom:-1px;height:1px;background:var(--header-line);opacity:0;pointer-events:none}
.nav.is-scrolled::after{opacity:1}
.nav.is-light{background:var(--l-nav-glass);-webkit-backdrop-filter:var(--nav-blur);backdrop-filter:var(--nav-blur);box-shadow:0 1px 0 0 var(--l-header-line)}
.nav.is-menu{background:var(--bg);-webkit-backdrop-filter:none;backdrop-filter:none;box-shadow:0 1px 0 0 var(--header-line)}   /* an open phone menu keeps the solid dark bar */
.nav.is-light::after,.nav.is-menu::after{display:none}
.rail .rail__in{background:var(--nav-glass);-webkit-backdrop-filter:var(--nav-blur);backdrop-filter:var(--nav-blur)}
@keyframes pl-fade{from{opacity:0}to{opacity:1}}
@supports (animation-timeline:scroll()){
  @media (prefers-reduced-motion:no-preference){
    .nav::after{animation:pl-fade linear both;animation-timeline:scroll(root block);animation-range:0 var(--header-h)}
  }
}

/* ---- C2 film grain: one fixed layer over the whole page, never repainted on scroll ---- */
body::after{content:"";position:fixed;inset:0;z-index:70;pointer-events:none;opacity:var(--grain-o);will-change:transform;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E") 0 0 / 160px 160px repeat}

/* ---- C3 specular hairline: the 1px border as a gradient, white 24% at the top edge to 6% at the bottom.
   .hairline paints it as a border-box layer under a padding-box fill (opaque cards; it survives overflow:hidden);
   .hairline--mask is the mask-composite ring (linear.app, resend.com) for a translucent card that doesn't clip ---- */
@property --hl-top{syntax:"<color>";inherits:true;initial-value:rgba(255,255,255,.24)}
@property --hl-bottom{syntax:"<color>";inherits:true;initial-value:rgba(255,255,255,.06)}
.hairline{border-color:transparent;background-image:linear-gradient(var(--bg-raised),var(--bg-raised)),linear-gradient(180deg,var(--hl-top),var(--hl-bottom));background-origin:border-box;background-clip:padding-box,border-box}
.hairline--mask{position:relative;border-color:transparent}
.hairline--mask::before{content:"";position:absolute;inset:-1px;z-index:0;border-radius:inherit;padding:1px;background:linear-gradient(180deg,var(--hl-top),var(--hl-bottom));-webkit-mask:linear-gradient(#000,#000) content-box,linear-gradient(#000,#000);-webkit-mask-composite:xor;mask:linear-gradient(#000,#000) content-box exclude,linear-gradient(#000,#000);pointer-events:none}
.hairline--hover{transition:--hl-top var(--t-hover) var(--ease-hover),--hl-bottom var(--t-hover) var(--ease-hover)}
@media (hover:hover){ .hairline--hover:hover{--hl-top:var(--hl-top-hover);--hl-bottom:var(--hl-bottom-hover)} }
@media (max-width:600px){ .eq.hairline,.moments__row.hairline{background-image:none} }   /* no panel there on phone */

/* ---- C4 display gradient text: the white clause of every display heading (h1, section h2, chapter titles) on the
   dark page; never the gray clause, body copy or Thai. The block is padded by the ink overshoot (and pulled back by
   the same margin, so nothing moves) so ascenders and descenders stay inside the clipped background ---- */
.gt{background-image:var(--gtext);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding-block:.15em .25em;margin-block:-.15em -.25em}
.display span.gt{color:var(--text)}
.gt .math__skip{-webkit-text-fill-color:currentColor}

/* ---- C5 edge fade on sideways scrollers, each side only while there is more to scroll that way ---- */
@property --fx-l{syntax:"<percentage>";inherits:false;initial-value:0%}
@property --fx-r{syntax:"<percentage>";inherits:false;initial-value:0%}
.fade-x{-webkit-mask-image:linear-gradient(90deg,transparent,#000 var(--fx-l),#000 calc(100% - var(--fx-r)),transparent);mask-image:linear-gradient(90deg,transparent,#000 var(--fx-l),#000 calc(100% - var(--fx-r)),transparent)}
.fade-x.fx-l{--fx-l:var(--fade-x)}.fade-x.fx-r{--fx-r:var(--fade-x)}   /* site.js fallback */
@keyframes pl-fx{0%{--fx-l:0%;--fx-r:var(--fade-x)}6%{--fx-l:var(--fade-x)}94%{--fx-r:var(--fade-x)}100%{--fx-l:var(--fade-x);--fx-r:0%}}
@supports (animation-timeline:scroll()){
  @media (prefers-reduced-motion:no-preference){ .fade-x{animation:pl-fx linear both;animation-timeline:scroll(self inline)} }
}

/* ---- C6 chapter light: a soft --link glow behind each chapter's title block, on with its reveal (900ms), then held ---- */
[data-glow]{position:relative;isolation:isolate}
[data-glow]::before{content:"";position:absolute;inset:-25% 0;z-index:-1;pointer-events:none;background:radial-gradient(55% 45% at 40% 42%,rgba(var(--glow-rgb),var(--glow-a)),rgba(var(--glow-rgb),calc(var(--glow-a) * .4)) 55%,rgba(var(--glow-rgb),0) 100%)}
@media (prefers-reduced-motion:no-preference){
  [data-glow]::before{transition:opacity var(--t-glow) var(--ease-out-expo)}
  html.rv-on [data-glow]:not(.is-in)::before{opacity:0}
}

/* ---- D1 press: buttons, chips, tiles, play controls go to .97 at once and spring back (A2) ---- */
@media (prefers-reduced-motion:no-preference){
  .btn,.iconbtn,.hud__btn,.eq__arrow,.playctl,.paddle,.nav__menu,.tonekey,.eopt,.eqp,.piece,.eqc__parts button,.eqc__whole,.bub button,.wl button,.quiz__opts button{transition:all var(--t-ui) var(--ease),scale var(--t-press) var(--ease-spring)}
  .eq__chips button,.tonebig__thai,.sent__whole,.anatomy__tabs button{transition:color var(--t-ui) var(--ease),scale var(--t-press) var(--ease-spring)}
  :is(.btn,.iconbtn,.hud__btn,.eq__arrow,.playctl,.paddle,.nav__menu,.tonekey,.eopt,.eqp,.piece,.eqc__parts button,.eqc__whole,.bub button,.wl button,.quiz__opts button,.eq__chips button,.tonebig__thai,.sent__whole,.anatomy__tabs button):active:not(:disabled),.watch__play:active .playctl{scale:var(--press);transition-duration:var(--t-ui),var(--t-hover);transition-timing-function:var(--ease),var(--ease-out)}
}

/* ---- D2 hover: the nav link takes a pill fill and --text in 100ms (A3); cards lift their border tier (.hairline--hover) ---- */
.nav__links a{transition:all var(--t-hover) var(--ease-hover)}
@media (hover:hover){
  .nav__links a:hover{background:var(--nav-hover-fill);color:var(--text)}
  .nav.is-light .nav__links a:hover{background:var(--l-nav-hover-fill);color:var(--l-text)}
}

/* ---- D3 now-playing bars: three 2px bars on a 0.9s loop (0.3 -> 1), staggered, only while the audio plays; static
   under reduced motion. Inline in a label, in a tile's corner (.npbars--corner), or in place of the play glyph ---- */
span.npbars.npbars{display:inline-flex;align-items:flex-end;gap:var(--npb-gap);width:calc(var(--npb-w) * 3 + var(--npb-gap) * 2);height:var(--npb-h);padding:0;flex:none;vertical-align:-1px;opacity:0;pointer-events:none;transition:opacity var(--t-ui) var(--ease)}
.npbars i{display:block;flex:none;width:var(--npb-w);height:100%;border-radius:1px;background:var(--npb-c,var(--cream));transform-origin:50% 100%;transform:scaleY(.6)}
.playing span.npbars.npbars,.is-playing span.npbars.npbars{opacity:1}   /* round 22: was .playing .npbars (0,2,0), which never beat span.npbars.npbars{opacity:0} (0,2,1), so no bar ever showed */
.npbars--corner{position:absolute;top:var(--s-8);right:var(--s-8)}
.eqc__whole .npbars--corner{top:0;right:0}
.wl button,.playorb{position:relative}
.hud__label .npbars{margin:0 6px 0 calc((var(--npb-w) * 3 + var(--npb-gap) * 2 + 6px) * -1)}   /* hangs before the label: takes no width, so nothing moves when it shows */
.bub small .npbars{margin-left:6px}
.playorb .npbars{position:absolute;inset:0;margin:auto;--npb-h:16px;--npb-c:var(--on-action)}
.playorb svg{transition:opacity var(--t-ui) var(--ease)}
.playorb.playing svg{opacity:0}
@keyframes pl-bars{0%,100%{transform:scaleY(.3)}50%{transform:scaleY(1)}}
@media (prefers-reduced-motion:no-preference){
  .playing .npbars i,.is-playing .npbars i{animation:pl-bars var(--t-npb) ease-in-out infinite}
  .npbars i:nth-child(2){animation-delay:calc(var(--t-npb) / -3)}
  .npbars i:nth-child(3){animation-delay:calc(var(--t-npb) / -1.5)}
}

/* ---- D4 the chat plays itself: a typing bubble (three dots), then the line; site.js runs it once, silently ---- */
.chat__log{position:relative}
.typing{position:absolute;left:var(--tile-pad);display:flex;align-items:center;gap:4px;padding:var(--bubble-py) var(--bubble-px);border-radius:var(--r-panel);background:var(--bg-raised);box-shadow:var(--ring);opacity:0;pointer-events:none}
.typing.me{left:auto;right:var(--tile-pad);background:var(--bg-inset);box-shadow:var(--ring-inset)}
.typing.on{opacity:1}
.typing i{width:6px;height:6px;border-radius:var(--r-pill);background:var(--text-3)}
@keyframes pl-dot{0%,60%,100%{opacity:.35;transform:none}30%{opacity:1;transform:translateY(-2px)}}
@keyframes pl-line{from{opacity:0;transform:translateY(8px)}}
@media (prefers-reduced-motion:no-preference){
  .typing{transition:opacity var(--t-ui) var(--ease)}
  .typing.on i{animation:pl-dot 1s ease-in-out infinite}
  .typing i:nth-child(2){animation-delay:.15s}.typing i:nth-child(3){animation-delay:.3s}
  .chat.is-demo .bub:not(.is-shown){opacity:0}
  .chat.is-demo .bub.is-shown{animation:pl-line .4s var(--ease-out-expo) backwards}
}

/* ---- D5 smooth accordion: the FAQ answer's height runs 0 <-> auto in 300ms (interpolate-size); the chevron turns
   180 degrees on the same timing. Level rows and the moments list are the same disclosure class: same 300ms A1 ---- */
@supports (interpolate-size:allow-keywords) and selector(::details-content){
  @media (prefers-reduced-motion:no-preference){
    .faq__list details{interpolate-size:allow-keywords}
    .faq__list details::details-content{block-size:0;overflow-y:clip;transition:block-size var(--t-acc) var(--ease-out-expo),content-visibility var(--t-acc) allow-discrete}
    .faq__list details[open]::details-content{block-size:auto}
  }
}
.chev{transition:transform var(--t-acc) var(--ease-out-expo),color var(--t-acc) var(--ease-out-expo)}
.mom figcaption{transition:grid-template-rows var(--t-acc) var(--ease-out-expo)}
@media (max-width:960px){
  .step-wrap{transition:grid-template-rows var(--t-acc) var(--ease-out-expo),margin var(--t-acc) var(--ease-out-expo)}
  .step-wrap>.step-detail{transition:visibility 0s var(--t-acc)}
  .step-wrap.open>.step-detail{transition:visibility 0s}
}

/* ---- D6 pill pagination beside the room paddles: dots, the active one stretches into a 24px pill (transform only) ---- */
.rooms__nav{align-items:center}
.pills{position:relative;display:flex;align-items:center;gap:var(--pill-gap);height:var(--ctl-md);padding-inline:calc((var(--pill-on) - var(--pill-dot)) / 2)}
.pills[hidden]{display:none}
.pills i{flex:none;width:var(--pill-dot);height:var(--pill-dot);border-radius:var(--r-pill);background:var(--edge-hover)}
.pills b{position:absolute;left:0;top:50%;width:var(--pill-on);height:var(--pill-dot);margin-top:calc(var(--pill-dot) / -2);border-radius:var(--r-pill);background:var(--text);will-change:transform}

/* ==========================================================================
   COLOR BANDS (round 26, SPEC A22; COLOR_SPEC.md rule 3): light and dark bands alternate. Hero ink -> Truth white ->
   Codex plans #f8fafb (as built) -> Method intro, Sounds, Words ink -> Sentences white -> Conversations ink ->
   Lessons #fafafa -> Ploy ink -> Moments #f5f5f7 -> FAQ white -> Close ink -> footer #f5f5f7. Sounds stays ink: the
   five tone colours are drawn for a dark ground (product colour, rule 6). A light band re-points the page tokens to their
   light roles, exactly as the Lessons band does (SPEC 1b).
   ========================================================================== */
.truth,.moments,.faq{--text:var(--l-text);--text-2:var(--l-text-2);--text-3:var(--l-text-3b);--text-4:var(--l-text-3);--bg-raised:var(--l-raised);--bg-inset:var(--l-inset);--bg-inset-2:var(--l-border);--border:var(--l-border);--border-hover:var(--l-border-hover);--edge:var(--l-border);--edge-hover:var(--l-border-hover);--rule:var(--l-border);--link:var(--l-link);--focus:var(--l-focus);--hover-fill:var(--l-hover-fill);--ring:var(--l-ring);--ring-hover:var(--l-ring-hover);--ring-inset:var(--l-ring-hover);--ring-on:0 0 0 1px var(--l-text);--focus-ring:var(--l-focus-ring);--npb-c:var(--l-text);
  color:var(--text);color-scheme:light}
.truth,.faq{background:var(--l-bg-white)}
.faq{box-shadow:0 0 0 100vmax var(--l-bg-white);clip-path:inset(0 -100vmax)}   /* 10-30 owner: the FAQ band runs edge to edge (it is also the max-width container, so its own background stopped at 1336px) */
.moments{background:var(--l-bg-gray)}
/* Sentences is a contained chapter: its white band runs full-bleed behind it, with the section padding of a band */
.method>.sent{padding-top:var(--sec-pad);padding-bottom:var(--sec-pad);}   /* the band's own background, run full-bleed (box-shadow + clip-path) */
.method>.sent+.talk{padding-top:var(--sec-pad)}
.truth .display,.moments .display,.faq .display{color:var(--text)}
/* the display gradient on light runs ink to gray (vercel.com's light gradientText direction) */
.truth .gt,.moments .gt,.faq .gt{background-image:linear-gradient(#171717 0%,#4d4d4d 110%)}
/* a light card takes the light border, not the white specular edge; no warm chapter light on white */
.moments .hairline{background-image:none;border-color:var(--l-border)}

/* the lit piece of the line: the cream signature, deepened to gold so it reads on white (5.4:1) */


/* the chapter rail turns light over the light chapter (site.js .is-light) */
.rail.is-light .rail__in{background:var(--l-nav-glass);box-shadow:0 1px 0 0 var(--l-header-line)}
.rail.is-light .rail__t,.rail.is-light li{color:var(--l-text-2)}
.rail.is-light li.on{color:var(--l-text)}
.rail.is-light .seg__ind{background:var(--l-inset)}
/* every boundary is now a change of surface, so the 1px boundary rules (critique01/02 C09) are no longer needed */
.method::before,.faq::before,.close::before{display:none}
.foot{border-top:0}

/* ==========================================================================
   motion: prefers-reduced-motion turns every duration to 0 (SPEC 6)
   ========================================================================== */
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation-duration:0s!important;animation-iteration-count:1!important;transition-duration:0s!important;scroll-behavior:auto!important}
}

/* ==========================================================================
   Round 36 (owner 2026-10-30): the textbooks are their own section, a dark band between School and FAQ (light-raised in the
   light colour options). Each book is a typeset cover: real text on paper, Codex's cover illustration, a spine and a page block.
   Desktop: Core Thai 4 x 2 beside Reading and writing 2 x 2. Tablet: the two series stacked, 4 across. Phone: each series is one
   swipeable row. Chapters only, never page counts (owner).
   ========================================================================== */
.books{padding-block:var(--sec-pad)}
.books__in{width:100%;max-width:calc(var(--page-w) + var(--gutter) * 2);margin-inline:auto;padding-inline:var(--gutter);display:flex;flex-direction:column;gap:var(--head-gap)}
.books__head{display:flex;flex-direction:column;gap:var(--stack);max-width:calc((100% + var(--grid-gap)) * 8 / 12 - var(--grid-gap))}
.books__head .display{font-size:var(--h2-fs);line-height:var(--h2-lh);letter-spacing:var(--h2-ls);color:var(--text);text-wrap:balance}
.books__head .body{margin:0}
.books__stats{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:var(--s-8) var(--s-24);font-size:var(--small-fs);line-height:var(--small-lh);color:var(--text-2)}
.books__stats b{font-weight:var(--w-heading);color:var(--text)}
.books__shelves{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:var(--grid-gap);row-gap:var(--head-gap)}
.books__series{display:flex;flex-direction:column;gap:var(--s-24);min-width:0}
.books__series--core{grid-column:1 / span 8}
.books__series--rw{grid-column:9 / -1}
.books__label{margin:0;padding-bottom:var(--s-12);border-bottom:1px solid var(--border);font-size:var(--small-fs);line-height:var(--small-lh);font-weight:var(--w-medium);color:var(--text)}
.books__label span{margin-left:var(--s-8);font-weight:var(--w-regular);color:var(--text-2)}
.books__row{list-style:none;margin:0;padding:0;display:grid;gap:var(--s-32) var(--tile-gap)}
.books__series--core .books__row{grid-template-columns:repeat(4,minmax(0,1fr))}
.books__series--rw .books__row{grid-template-columns:repeat(2,minmax(0,1fr))}
.bk{position:relative;display:flex;flex-direction:column;gap:var(--s-12);min-width:0}   /* relative: holds its .sr-only label inside the phone scroller (else it widens the page) */
/* the book: a paper cover with the hinge shading of a spine on the left, the page block on the right, lifted off the shelf by two shadows */
.bk__book{position:relative;container-type:inline-size;aspect-ratio:440 / 623;display:flex;flex-direction:column;padding:12% 9% 8% 13%;
  background:linear-gradient(90deg,#e8e1d3 0,#f5efe3 3.2%,#fffdf8 6.5%);border-radius:2px 5px 5px 2px;
  box-shadow:0 1px 1px rgba(0,0,0,.14),0 10px 18px -8px rgba(0,0,0,.38),0 28px 42px -26px rgba(0,0,0,.6);
  transform-origin:0 50%;transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .45s cubic-bezier(.2,.7,.2,1)}
.bk__book::before{content:"";position:absolute;left:0;top:0;bottom:0;width:6.5%;border-radius:2px 0 0 2px;
  background:linear-gradient(90deg,rgba(0,0,0,.16),rgba(0,0,0,0) 72%),linear-gradient(90deg,transparent 80%,rgba(255,255,255,.6) 84%,transparent 90%)}
.bk__book::after{content:"";position:absolute;right:-3px;top:2%;bottom:2%;width:3px;border-radius:0 2px 2px 0;background:repeating-linear-gradient(180deg,#f4efe4 0 1px,#d9d1c1 1px 2px)}
.bk__pub{font-size:4.6cqw;line-height:1.3;font-weight:600;color:#3f6f9f}
.bk__title{margin-top:8cqw;font-size:10.5cqw;line-height:1.08;font-weight:600;letter-spacing:-.02em;color:#2f6496;text-wrap:balance}
.bk__series{margin-top:3cqw;font-size:5.4cqw;line-height:1.3;color:#b8714a}
.bk__art{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:900 / 650;margin-top:auto}
.bk__foot{margin-top:5cqw;font-size:3.9cqw;line-height:1.3;color:#7f98ab}
@media (hover:hover){
  .bk:hover .bk__book{transform:perspective(900px) rotateY(-12deg) translateY(-4px);box-shadow:0 1px 1px rgba(0,0,0,.14),14px 16px 26px -10px rgba(0,0,0,.42),26px 36px 52px -26px rgba(0,0,0,.6)}
}
.bk__meta{margin:0;display:flex;justify-content:space-between;gap:var(--s-8);font-size:var(--small-fs);line-height:var(--small-lh)}
.bk__n{font-weight:var(--w-medium);color:var(--text)}
.bk__m{color:var(--text-2)}
@media (min-width:601px) and (max-width:960px){
  .books__head{max-width:none}
  .books__series--core,.books__series--rw{grid-column:1 / -1}
  .books__series--rw .books__row{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (max-width:600px){
  .books__head{max-width:none}
  .books__shelves{display:flex;flex-direction:column;gap:var(--s-32)}
  .books__series .books__row{display:flex;gap:var(--s-16);overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;
    margin-inline:calc(var(--gutter) * -1);padding:var(--s-4) var(--gutter) var(--s-24);scroll-padding-inline:var(--gutter);scrollbar-width:none}
  .books__row::-webkit-scrollbar{display:none}
  .bk{flex:0 0 44%;scroll-snap-align:start}
}
