/* ==========================================================================
   site.css — "Dusk in a Bengaluru flat"
   Marigold light · aubergine / dusk-indigo night · cream paper.
   Dark is the brand default for everyone; light is opt-in (the toggle).
   System fonts only (0 font bytes).
   Terracotta is NOT a UI colour: it only appears inside mascot renders.
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  --bg: #1A0F1F;            /* night */
  --surface: #3B1E3F;       /* aubergine */
  --surface-2: #232046;     /* dusk indigo */
  --text: #FFF4E0;          /* cream */
  --text-muted: #D4C3D6;
  --accent: #F2A20C;        /* marigold */
  --accent-fill: #F2A20C;
  --on-accent: #1A0F1F;
  --accent-2: #3CC2B0;      /* peacock teal */
  --line: #A88BAC;
  --line-soft: #5A2E5F;
  --focus: #F2A20C;
  --ph: #F2A20C;
  --header-bg: rgb(26 15 31 / .94);
  --card: #2A1630;
  --code-bg: #140B19;
  --code-text: #FFE9C2;
  --win-lit: #F2A20C;
  --win-op: .09;
  --frame: #FFF4E0;
  --glow: 0 0 0 1px var(--line-soft), 0 18px 48px -20px rgb(242 162 12 / .28);
  color-scheme: dark;

  --font-display: "Avenir Next", Avenir, ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --font-deva: "Kohinoor Devanagari", "Noto Sans Devanagari", "Nirmala UI", Mangal, sans-serif;

  --fs-xs: .8125rem; --fs-sm: .9375rem; --fs-base: 1.0625rem; --fs-lg: 1.25rem;
  --fs-xl: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
  --fs-2xl: clamp(1.75rem, 1.3rem + 1.8vw, 2.5rem);
  --fs-3xl: clamp(2rem, 1.3rem + 3.6vw, 4rem);

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px;
  --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}
@media (min-width: 600px) { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* Light theme: only when the visitor picks it (no automatic switch from the OS setting).
   The window frame becomes dark wood on cream. */
:root[data-theme="light"] {
  --bg: #FFF4E0; --surface: #FBEBD0; --surface-2: #FFFFFF; --text: #3B1E3F; --text-muted: #5E4361;
  --accent: #7A4A00; --accent-fill: #F2A20C; --on-accent: #3B1E3F; --accent-2: #136660;
  --line: #8C7048; --line-soft: #E8D3B0; --focus: #3B1E3F; --ph: #9A5B00;
  --header-bg: rgb(255 244 224 / .94); --card: #FFFAF0; --code-bg: #2A1630; --code-text: #FFE9C2;
  --win-lit: #E0950B; --win-op: .13; --frame: #3B1E3F;
  --glow: 0 0 0 1px var(--line-soft), 0 18px 40px -22px rgb(122 74 0 / .35);
  color-scheme: light;
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 var(--fs-base)/1.6 var(--font-body);
  overflow-x: hidden;
}
img, video, svg { max-width: 100%; height: auto; }
img, video { display: block; }
a { color: var(--accent); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 var(--s-4); font-weight: 800; letter-spacing: -.01em; text-wrap: balance; }
h1 { font-size: var(--fs-3xl); letter-spacing: -.02em; }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); font-weight: 700; }
h4 { font-size: var(--fs-base); font-weight: 700; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0 0 var(--s-4); padding-left: 1.25em; }
li { margin-bottom: var(--s-2); }
code, kbd, .mono { font-family: var(--font-mono); font-size: .9em; }
code { background: color-mix(in srgb, var(--surface) 70%, transparent); padding: .1em .35em; border-radius: 6px; overflow-wrap: anywhere; }
strong { font-weight: 700; }
hr { border: 0; border-top: 1px solid var(--line-soft); margin: var(--s-7) 0; }
[lang="hi"] { font-family: var(--font-deva); }
/* Android has no Avenir Next: its heavy Roboto fallback reads cold, so soften it there.
   Before launch: self-host an OFL rounded face with Devanagari (e.g. Baloo 2) — PLAN §5.3. */
@supports not (font: -apple-system-body) {
  h1, h2, h3, .price .amt, .stat b { font-weight: 700; letter-spacing: -.005em; }
}
::selection { background: var(--accent-fill); color: var(--on-accent); }

.nowrap { white-space: nowrap; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: -100px; z-index: 100; background: var(--accent-fill); color: var(--on-accent); padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: var(--s-3); }

.wrap { width: min(1120px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.wrap-narrow { width: min(760px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.measure { max-width: 760px; }
.section { padding-block: var(--s-7); position: relative; }
@media (min-width: 900px) { .section { padding-block: var(--s-9); } }
.section-alt { background: var(--surface-2); }
:root[data-theme="light"] .section-alt { background: var(--surface); }
.section-head { max-width: 62ch; margin-bottom: var(--s-6); }
.section-head p { color: var(--text-muted); font-size: var(--fs-lg); }
.eyebrow { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--accent); letter-spacing: .02em; margin-bottom: var(--s-3); display: block; }
.lead { font-size: var(--fs-lg); color: var(--text-muted); max-width: 62ch; }
.muted { color: var(--text-muted); }
.small { font-size: var(--fs-sm); }
.xsmall { font-size: var(--fs-xs); }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--fs-xl); margin-top: var(--s-7); }
.prose h3 { margin-top: var(--s-6); }
.center { text-align: center; }
.stack > * + * { margin-top: var(--s-4); }
.grid-2 { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: var(--s-5); }
/* Grid items default to min-width:auto, so a wide table or terminal would widen the whole page. */
.grid-2 > *, .grid-3 > *, .tool > *, .watch > *, .course-top > *, .supporter > *, .fit > *, .module-body > *, .is-isnt > *,
.cast > *, .creator > *, .offers > *, .ladder > *, .mini-grid > *, .ep-grid > *, .steps > *, .diffs > *, .foot-grid > * { min-width: 0; }
@media (min-width: 700px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.ext::after { content: " ↗"; font-size: .85em; }

/* ---------- 3. Draft strip ---------- */
.draft-strip { background: var(--surface-2); color: var(--text); font-size: var(--fs-xs); text-align: center; padding: 6px var(--gutter); border-bottom: 1px dashed var(--ph); }
.draft-strip strong { color: var(--accent); }

/* ---------- 4. Header / nav ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); border-bottom: 1px solid var(--line-soft); }
.header-row { display: flex; align-items: center; gap: var(--s-4); min-height: 64px; }
.wordmark { display: inline-flex; align-items: baseline; gap: .38em; text-decoration: none; color: var(--text); white-space: nowrap; font-size: 1.15rem; padding: 6px 2px; }
.wordmark .wm-prompt { font-family: var(--font-mono); color: var(--accent); font-weight: 700; }
.wordmark .wm-a { font-family: var(--font-mono); font-weight: 600; }
.wordmark .wm-b { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; }
.wordmark .wm-flame { width: .62em; height: .9em; align-self: center; margin-left: -.1em; color: var(--accent-fill); }
.nav-main { display: none; margin-inline: auto; }
.nav-main ul { list-style: none; display: flex; gap: var(--s-1); margin: 0; padding: 0; }
.nav-main li { margin: 0; }
.nav-main a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); color: var(--text); text-decoration: none; font-weight: 600; font-size: var(--fs-sm); border-radius: var(--r-sm); position: relative; }
.nav-main a:hover { color: var(--accent); }
.nav-main a[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: 6px; height: 3px; border-radius: 3px; background: var(--accent-fill); }
.header-actions { display: flex; align-items: center; gap: var(--s-2); margin-left: auto; }
.theme-toggle { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-pill); border: 1.5px solid var(--line-soft); background: transparent; color: var(--text); cursor: pointer; padding: 0; }
.theme-toggle:hover { border-color: var(--line); }
.theme-toggle svg { width: 20px; height: 20px; max-width: none; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: block; }
:root[data-theme="light"] .theme-toggle .i-moon { display: none; }
html:not(.js) .theme-toggle { display: none; }             /* needs JavaScript; dark applies without it */
.theme-toggle-row { display: flex; width: 100%; height: auto; min-height: 44px; gap: 10px; justify-content: flex-start; padding: 0 var(--s-3); margin-top: var(--s-3); border-radius: var(--r-sm); font: 600 var(--fs-sm)/1 var(--font-body); }
/* "Buy the course" stays in the header at every width from 360 px ("Buy" under 600 px). */
.header-cta { white-space: nowrap; }
.wordmark .wm-flame { flex-shrink: 0; }
@media (max-width: 389px) { .header-cta.cta-short { padding-inline: .8em; } }   /* "Buy" stays on one line at 360 px */
.header-cta.cta-long { display: none; }
@media (min-width: 600px) { .header-cta.cta-short { display: none; } .header-cta.cta-long { display: inline-flex; } }
.menu { position: relative; }
.menu > summary { list-style: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; min-width: 44px; padding: 0 14px; border-radius: var(--r-pill); border: 1.5px solid var(--line); cursor: pointer; font-weight: 700; font-size: var(--fs-sm); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary .bars { width: 16px; height: 12px; position: relative; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; }
.menu > summary .bars::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
.menu[open] > summary { background: var(--surface); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(320px, calc(100vw - 2 * var(--gutter))); background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s-3); box-shadow: 0 24px 60px -20px rgb(0 0 0 / .55); }
.menu-panel ul { list-style: none; margin: 0 0 var(--s-3); padding: 0; }
.menu-panel li { margin: 0; }
.menu-panel a:not(.btn) { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s-3); color: var(--text); text-decoration: none; font-weight: 600; border-radius: var(--r-sm); }
.menu-panel a:not(.btn):hover { background: var(--bg); }
.menu-panel a[aria-current="page"] { color: var(--accent); box-shadow: inset 3px 0 0 var(--accent-fill); }
.menu-panel .btn { width: 100%; }
@media (max-width: 959px) {
  .theme-toggle-bar { display: none; }                      /* lives in the menu on phones and tablets */
  /* The menu opens as a sheet under the header, with the page dimmed behind it. */
  .site-header .menu { position: static; }
  .menu-panel { position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + var(--s-2)); width: auto; max-height: calc(100vh - 96px); max-height: calc(100dvh - 96px); overflow-y: auto; overscroll-behavior: contain; box-shadow: 0 24px 60px -20px rgb(0 0 0 / .55), 0 0 0 100vmax rgb(16 8 20 / .62); clip-path: inset(calc(-1 * var(--s-2)) -100vmax -100vmax -100vmax); }
  body:has(.menu[open]) { overflow: hidden; }
}
@media (max-width: 479px) {
  .menu > summary { padding: 0; width: 44px; }
  .menu > summary .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 359px) {
  .header-row { gap: var(--s-2); }
  .wordmark { font-size: 1rem; }
  .header-cta.cta-short { display: none; }                  /* still in the menu */
}
@media (min-width: 960px) {
  .nav-main { display: block; }
  .header-cta.cta-long { display: inline-flex; }
  .menu { display: none; }
  .header-actions { margin-left: 0; }
}

/* ---------- 5. Buttons, badges, chips ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: .7em 1.35em; border-radius: var(--r-pill); font: 700 var(--fs-base)/1.2 var(--font-body); text-decoration: none; cursor: pointer; border: 1.5px solid transparent; transition: transform .2s var(--ease), background-color .2s var(--ease); text-align: center; }
.btn:hover { transform: translateY(-2px); text-decoration: none; }
.btn-primary { background: var(--accent-fill); color: var(--on-accent); }
.btn-primary:hover { background: #FFB52E; }
.btn-secondary { background: transparent; color: var(--text); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--text); }
.btn-sm { min-height: 44px; padding: .5em 1.1em; font-size: var(--fs-sm); }
.btn[aria-disabled="true"] { opacity: .75; cursor: not-allowed; background: transparent; color: var(--text-muted); border: 1.5px dashed var(--line); }
.btn[aria-disabled="true"]:hover { transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }

.badge { display: inline-flex; align-items: center; gap: 6px; font: 700 var(--fs-xs)/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase; padding: 6px 10px; border-radius: var(--r-pill); border: 1.5px solid currentColor; white-space: nowrap; }
.b-live { background: var(--accent-2); border-color: var(--accent-2); color: var(--bg); }
.b-soon { color: var(--text-muted); border-style: dashed; }
.b-beta { color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; padding: 5px 10px; border-radius: var(--r-pill); background: color-mix(in srgb, var(--accent-2) 14%, transparent); color: var(--text); border: 1px solid color-mix(in srgb, var(--accent-2) 55%, transparent); }
.chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-bottom: var(--s-4); }
.ph { display: inline; font-family: var(--font-mono); font-size: .86em; padding: .05em .45em; border: 1.5px dashed var(--ph); border-radius: 6px; color: var(--text); background: color-mix(in srgb, var(--ph) 10%, transparent); overflow-wrap: anywhere; }

/* ---------- 6. Toran + decorative backdrops ---------- */
.toran { height: 46px; background: url("../img/toran.svg") repeat-x 0 0 / auto 46px; pointer-events: none; }
.toran-top { position: absolute; left: 0; right: 0; top: 0; }
.hero { position: relative; overflow: hidden; padding-block: calc(46px + var(--s-6)) var(--s-7); isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: radial-gradient(60% 70% at 78% 40%, color-mix(in srgb, var(--accent-fill) 18%, transparent), transparent 70%), linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 70%); }
.hero::after { content: ""; position: absolute; z-index: -1; right: -40px; top: 40px; width: min(720px, 70%); bottom: 0; background: url("../img/windows.svg") repeat 0 0 / 250px auto; opacity: var(--win-op); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
:root[data-theme="light"] .hero::before { background: radial-gradient(60% 70% at 78% 40%, rgb(242 162 12 / .22), transparent 70%), linear-gradient(180deg, #FBE5C2 0%, var(--bg) 75%); }
@media (max-width: 899px) { .hero::after { display: none; } }   /* the window grid read as noise behind body text */
.page-hero { position: relative; padding-block: calc(46px + var(--s-6)) var(--s-6); background: linear-gradient(180deg, var(--surface-2), var(--bg)); overflow: hidden; }
:root[data-theme="light"] .page-hero { background: linear-gradient(180deg, #FBE5C2, var(--bg)); }
.page-hero .lead { margin-bottom: var(--s-4); }
.page-hero .lead:last-child { margin-bottom: 0; }
.page-hero h1 { max-width: 20ch; }

/* ---------- 7. Hero ---------- */
.hero-grid { display: grid; gap: var(--s-7); align-items: center; }
.hero-grid > * { min-width: 0; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 55fr 45fr; gap: var(--s-6); } }
.hero h1 { max-width: 18ch; font-size: clamp(2rem, 1.2rem + 3.2vw, 3.5rem); }
/* One colour; a marigold brush stroke under one phrase (never a two-tone headline). */
.hero h1 .accent { color: inherit; text-decoration: underline; text-decoration-color: var(--accent-fill); text-decoration-thickness: .12em; text-underline-offset: .14em; text-decoration-skip-ink: auto; }
.prompt-eyebrow { font-family: var(--font-mono); font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s-3); display: block; letter-spacing: 0; }
.prompt-eyebrow .p { color: var(--accent); font-weight: 700; }
.prompt-eyebrow .flag { color: var(--accent-2); }
.hero-sub { font-size: var(--fs-lg); color: var(--text-muted); max-width: 58ch; }
.trust { list-style: none; padding: 0; margin: var(--s-5) 0 0; display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-4); font-size: var(--fs-sm); color: var(--text-muted); }
.trust li { margin: 0; display: inline-flex; align-items: center; gap: 8px; }
.trust li::before { content: ""; width: 12px; height: 12px; flex: 0 0 auto; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5c1.6 2 2.3 3.4 2.3 4.6A2.3 2.3 0 0 1 8 8.4a2.3 2.3 0 0 1-2.3-2.3C5.7 4.9 6.4 3.5 8 1.5z' fill='%23F2A20C'/%3E%3Cpath d='M1.5 9.2h13c-.5 3-3.2 5-6.5 5s-6-2-6.5-5z' fill='%23E0950B'/%3E%3C/svg%3E") no-repeat center / contain; }
.hero-media { margin: 0; display: flex; flex-direction: column; align-items: center; }

/* The jharokha: an arched Indian window frame with a marigold keystone, a 9:16 video inside,
   and a sill with a diya at its end. Cream wood at night; dark wood on the light theme. */
.window-frame { position: relative; width: min(340px, 82vw); padding: 14px 12px 12px; background: var(--frame); border-radius: 50% 50% 10px 10px / 16% 16% 10px 10px; box-shadow: 0 0 0 1px rgb(0 0 0 / .2), 0 0 70px -6px rgb(242 162 12 / .5), 0 30px 60px -30px rgb(0 0 0 / .7); }
.window-frame::after { content: ""; position: absolute; left: 50%; top: -9px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: radial-gradient(circle, #FFD27A 0 26%, #F7B12E 28% 58%, #E0880A 60%); box-shadow: 0 0 12px rgb(242 162 12 / .7); }
.window-frame video, .window-frame img { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 48% 48% 4px 4px / 14% 14% 4px 4px; background: #120a16; max-height: min(64vh, 620px); }
@media (min-width: 900px) { .window-frame { width: min(360px, 100%); } }
.sill { position: relative; width: calc(min(340px, 82vw) + 44px); max-width: 100%; height: 16px; background: var(--frame); border-radius: 4px; margin-top: -2px; box-shadow: 0 10px 24px -10px rgb(0 0 0 / .6); }
@media (min-width: 900px) { .sill { width: calc(min(360px, 100%) + 44px); } }
.sill .diya { position: absolute; right: -6px; bottom: 12px; width: 40px; height: 35px; filter: drop-shadow(0 0 8px rgb(242 162 12 / .7)); }
.twinkle { display: none; }

/* Phones and small tablets: the animated window comes straight after the headline, before the
   paragraph (a first-time visitor from Instagram sees the characters on the first screen). */
@media (max-width: 899px) {
  .hero-grid { gap: var(--s-4); }
  .hero-copy { display: contents; }
  .hero-copy > .prompt-eyebrow { order: 1; margin-bottom: 0; }
  .hero-copy > h1 { order: 2; margin-bottom: 0; }
  .hero-media { order: 3; margin-block: var(--s-2); }
  .hero-sub { order: 4; margin-bottom: 0; }
  .hero-copy > .btn-row { order: 5; }
  .trust { order: 6; margin-top: var(--s-2); }
  .hero .window-frame { width: min(250px, 64vw); padding: 11px 9px 9px; }
  .hero .window-frame video, .hero .window-frame img { aspect-ratio: 4 / 5; object-position: 50% 38%; max-height: 46vh; }
  .hero .sill { width: calc(min(250px, 64vw) + 32px); }
}
@media (min-width: 720px) and (max-width: 899px) {
  .hero-grid { grid-template-columns: 1fr 260px; gap: var(--s-6); }
  .hero-copy { display: block; }
  .hero-copy > h1 { margin-bottom: var(--s-4); }
  .hero-copy > .prompt-eyebrow { margin-bottom: var(--s-3); }
  .hero-sub { margin-bottom: var(--s-4); }
  .trust { margin-top: var(--s-5); }
}

/* Two small, quiet hero animations — the diya flame and a few windows lighting up behind it.
   Never for reduced motion (site.js also adds .is-paused if reduced motion is switched on later). */
@media (prefers-reduced-motion: no-preference) {
  @keyframes flicker { 0%, 100% { transform: scale(1, 1); } 30% { transform: scale(.94, 1.05); } 60% { transform: scale(1.03, .96); } }
  .diya .flame { transform-box: fill-box; transform-origin: 50% 95%; animation: flicker 1.8s ease-in-out infinite; }
  /* Sits exactly over the backdrop's window grid (same box and 250 px tile as .hero::after), so a few
     of its dark windows slowly light up and go dark again. */
  @media (min-width: 1100px) {
    @keyframes lamp { 0%, 22% { opacity: 0; } 34%, 78% { opacity: 1; } 90%, 100% { opacity: 0; } }
    .twinkle { display: block; position: absolute; z-index: -1; right: -40px; top: 40px; width: 720px; height: auto; opacity: .3; pointer-events: none; }
    .twinkle rect { opacity: 0; animation: lamp 9s ease-in-out infinite; }
    .twinkle rect:nth-child(2) { animation-delay: -2.2s; animation-duration: 8s; }
    .twinkle rect:nth-child(3) { animation-delay: -4.6s; animation-duration: 10s; }
    .twinkle rect:nth-child(4) { animation-delay: -6.4s; animation-duration: 7s; }
    .twinkle rect:nth-child(5) { animation-delay: -1.1s; animation-duration: 11s; }
  }
  .hero.is-paused .diya .flame, .hero.is-paused .twinkle rect { animation-play-state: paused; }
}

/* ---------- 8. Cards ---------- */
.card { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--glow); }
.card h3 { margin-bottom: var(--s-2); }
.callout { border-left: 4px solid var(--accent-fill); background: var(--surface); padding: var(--s-4) var(--s-5); border-radius: 0 var(--r-md) var(--r-md) 0; margin: var(--s-5) 0; }
.callout > :last-child { margin-bottom: 0; }
.callout-teal { border-left-color: var(--accent-2); }
.note-draft { border: 1.5px dashed var(--ph); border-radius: var(--r-md); padding: var(--s-3) var(--s-4); font-size: var(--fs-sm); background: color-mix(in srgb, var(--ph) 8%, transparent); }
.note-draft > :last-child { margin-bottom: 0; }

/* Episode cards */
.ep-grid { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .ep-grid { grid-template-columns: 1fr 1fr; } }
.ep-card { position: relative; display: grid; grid-template-columns: minmax(120px, 38%) 1fr; gap: var(--s-4); align-items: center; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s-3); box-shadow: var(--glow); transition: transform .2s var(--ease); }
.ep-card:hover { transform: translateY(-2px); }
.ep-card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.ep-card img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-md); background: #120a16; }
.ep-card h3 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.ep-card h3 a { color: var(--text); text-decoration: none; }
.ep-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--r-lg); }
.ep-card h3 a:focus-visible { outline: none; }
.ep-card p { color: var(--text-muted); font-size: var(--fs-sm); }
.ep-meta { display: flex; flex-wrap: wrap; gap: var(--s-2); align-items: center; margin-bottom: var(--s-3); font-size: var(--fs-xs); color: var(--text-muted); }
.ep-watch { font-weight: 700; color: var(--accent); font-size: var(--fs-sm); }

/* Pipeline steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { margin: 0; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s-5); display: flex; flex-direction: column; gap: var(--s-2); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step .icon { width: 40px; height: 40px; color: var(--accent-fill); }
:root[data-theme="light"] .step .icon { color: var(--accent); }
.step-num { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); }
.step h3 { margin: var(--s-2) 0 0; font-size: var(--fs-xl); }
.step p { color: var(--text-muted); margin: 0; flex: 1; }
.step-links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); font-size: var(--fs-sm); margin-top: var(--s-2); }
.step-links a { display: inline-flex; align-items: center; min-height: 32px; }

/* Terminal illustration (generic — not a copy of any product UI) */
.terminal { background: var(--code-bg); color: var(--code-text); border-radius: var(--r-md); border: 1px solid #3a2340; font: 500 .84rem/1.65 var(--font-mono); overflow: hidden; box-shadow: 0 20px 50px -30px rgb(0 0 0 / .8); }
.terminal-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #24132a; border-bottom: 1px solid #3a2340; font-size: .72rem; color: #CDB8CF; }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: #5A2E5F; display: inline-block; }
.terminal-bar span { margin-left: 8px; }
/* A terminal never wraps mid-column: lines are written short enough to fit at 360 px. */
.terminal pre { margin: 0; padding: 14px 16px; white-space: pre; overflow-x: auto; overscroll-behavior-x: contain; font: inherit; }
@media (max-width: 599px) { .terminal { font-size: .68rem; } .terminal pre { padding: 12px; } .tool { padding: var(--s-4); } }
@media (max-width: 399px) { .terminal { font-size: .62rem; } }
.terminal .p { color: #F2A20C; }
.terminal .ok { color: #3CC2B0; }
.terminal .dim { color: #A893AB; }
figure.illus { margin: 0; }
figure.illus figcaption { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--s-2); font-style: italic; }

/* Offer cards */
.offers { display: grid; gap: var(--s-5); align-items: stretch; }
@media (min-width: 900px) { .offers { grid-template-columns: repeat(3, 1fr); } }
.offer { position: relative; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--glow); }
.offer.everything { border: 2px solid var(--accent-fill); }
.offer-label { position: absolute; top: -13px; left: var(--s-5); background: var(--accent-fill); color: var(--on-accent); font: 800 var(--fs-xs)/1 var(--font-body); padding: 7px 12px; border-radius: var(--r-pill); letter-spacing: .03em; }
.offer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-2); }
.offer > .offer-head { flex-direction: column-reverse; align-items: flex-start; gap: var(--s-2); }   /* badge above the title */
.offer h3 { font-size: var(--fs-xl); margin: 0; }
.offer .job { color: var(--text-muted); margin-bottom: var(--s-4); }
.price { --amt-size: var(--fs-2xl); display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-bottom: var(--s-2); }
.price .amt { font: 800 var(--amt-size)/1 var(--font-display); letter-spacing: -.02em; }
.price .alt { color: var(--text-muted); font-weight: 600; }
/* Visitors in India see ₹ as the big price and $ alongside (html[data-cur] is set before first paint). */
:root[data-cur="inr"] .price.dual { flex-direction: row-reverse; justify-content: flex-end; }
:root[data-cur="inr"] .price.dual > .amt { font: 600 var(--fs-base)/1.3 var(--font-body); color: var(--text-muted); letter-spacing: 0; }
:root[data-cur="inr"] .price.dual > .alt { font: 800 var(--amt-size)/1 var(--font-display); color: var(--text); letter-spacing: -.02em; }
.fp > span { white-space: nowrap; }
:root[data-cur="inr"] .fp { display: inline-flex; flex-direction: row-reverse; flex-wrap: wrap; justify-content: flex-end; column-gap: .3em; }
.cur-scope .fp-sep { display: none; }
.saving { font-size: var(--fs-sm); color: var(--text-muted); margin: calc(-1 * var(--s-2)) 0 var(--s-4); }
.saving strong { color: var(--text); }
.founding { font-size: var(--fs-sm); color: var(--text); background: color-mix(in srgb, var(--accent-fill) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent-fill) 45%, transparent); border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: var(--s-4); }
.offer .ticks { flex: 1; }
.offer .btn { width: 100%; margin-top: var(--s-4); }
/* Licence line: plain small text with a tick, not a pill. */
.licence-line { display: block; font-size: var(--fs-xs); font-weight: 600; color: var(--text-muted); line-height: 1.4; margin: 0; }
.licence-line::before { content: "✓ "; color: var(--accent-2); font-weight: 800; }

/* Diya bullets */
.ticks { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 1.5c1.6 2 2.3 3.4 2.3 4.6A2.3 2.3 0 0 1 8 8.4a2.3 2.3 0 0 1-2.3-2.3C5.7 4.9 6.4 3.5 8 1.5z' fill='%23F2A20C'/%3E%3Cpath d='M1.5 9.2h13c-.5 3-3.2 5-6.5 5s-6-2-6.5-5z' fill='%23E0950B'/%3E%3C/svg%3E") no-repeat center / contain; }
.crosses { list-style: none; padding: 0; margin: 0 0 var(--s-4); }
.crosses li { position: relative; padding-left: 26px; }
.crosses li::before { content: "×"; position: absolute; left: 3px; top: -.08em; font-weight: 800; font-size: 1.2em; color: var(--text-muted); }

/* Differences */
.diffs { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s-4); }
@media (min-width: 700px) { .diffs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .diffs { grid-template-columns: repeat(3, 1fr); } }
.diffs li { margin: 0; padding: var(--s-4) var(--s-5); border-radius: var(--r-md); border: 1px solid var(--line-soft); background: var(--card); }
.diffs strong { display: block; font-family: var(--font-display); font-size: var(--fs-lg); margin-bottom: 4px; }
.diffs li > span { color: var(--text-muted); font-size: var(--fs-sm); }

/* Stats */
.stats { display: grid; gap: var(--s-5); grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.stat { border-top: 3px solid var(--accent-fill); padding-top: var(--s-4); }
.stat b { display: block; font: 800 clamp(1.6rem, 1.2rem + 1.1vw, 2.1rem)/1.1 var(--font-display); color: var(--accent); letter-spacing: -.02em; margin-bottom: var(--s-2); white-space: nowrap; }
.stat > span { color: var(--text-muted); font-size: var(--fs-sm); }

/* Placeholder testimonial */
.placeholder-testimonial { border: 2px dashed var(--ph); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); text-align: center; color: var(--text-muted); background: color-mix(in srgb, var(--ph) 6%, transparent); }
.placeholder-testimonial strong { color: var(--text); display: block; font-family: var(--font-mono); margin-bottom: var(--s-2); }

/* Supporter strip */
.supporter { display: grid; gap: var(--s-5); align-items: center; background: linear-gradient(120deg, var(--surface), var(--surface-2)); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s-6) var(--s-5); }
@media (min-width: 860px) { .supporter { grid-template-columns: 1.6fr 1fr; padding: var(--s-7); } }
.supporter h2 { font-size: var(--fs-xl); }
.supporter .btn-row { flex-direction: column; align-items: stretch; }
:root[data-theme="light"] .supporter { background: linear-gradient(120deg, #FBE5C2, #FFFFFF); }

/* "What you need" line (Pricing, Course, Tools, FAQ, Home): one honest sentence, never hidden costs */
.need { margin: var(--s-4) 0 0; padding: var(--s-3) var(--s-4); max-width: 70ch; border-left: 3px solid var(--accent-fill); border-radius: var(--r-sm); background: var(--card); font-size: var(--fs-sm); }
.need strong { color: var(--accent); }
.offer .got { margin: var(--s-2) 0 var(--s-2); font: 700 var(--fs-xs)/1.3 var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }

/* Fine print */
.fine { font-size: var(--fs-xs); color: var(--text-muted); margin: var(--s-3) 0 0; }

/* Details / accordions */
details.qa, details.module { border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--card); margin-bottom: var(--s-3); }
details.qa > summary, details.module > summary { cursor: pointer; list-style: none; padding: var(--s-4) var(--s-5); padding-right: 52px; font-weight: 700; position: relative; min-height: 48px; }
details.qa > summary::-webkit-details-marker, details.module > summary::-webkit-details-marker { display: none; }
details.qa > summary::after, details.module > summary::after { content: "+"; position: absolute; right: var(--s-5); top: 50%; transform: translateY(-50%); font: 700 1.4rem/1 var(--font-mono); color: var(--accent); }
details[open].qa > summary::after, details[open].module > summary::after { content: "−"; }
details.qa > div, details.module > div { padding: 0 var(--s-5) var(--s-4); }
details.qa > div > :last-child, details.module > div > :last-child { margin-bottom: 0; }
.module-sum { display: grid; grid-template-columns: auto 1fr; gap: 2px var(--s-4); align-items: baseline; }
.module-num { font: 700 var(--fs-sm)/1 var(--font-mono); color: var(--accent); grid-row: span 2; padding-top: 4px; }
.module-title { font-family: var(--font-display); font-size: var(--fs-lg); }
.module-meta { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-weight: 500; font-size: var(--fs-xs); color: var(--text-muted); }
.module-body { display: grid; gap: var(--s-4); }
@media (min-width: 800px) { .module-body { grid-template-columns: 1.3fr 1fr; } }
.module-body h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: var(--s-2); }

/* Two-column for/not-for */
.fit { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .fit { grid-template-columns: 1fr 1fr; } }

/* Course price card */
.course-top { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 960px) { .course-top { grid-template-columns: 1.4fr 1fr; } }
.price-card { position: relative; }
.price-card .btn { width: 100%; }
.still-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-3); max-width: 420px; margin: var(--s-6) 0 0; }
.still-strip img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--r-md); border: 4px solid var(--frame); background: #120a16; }
.still-strip figcaption { grid-column: 1 / -1; font-size: var(--fs-xs); color: var(--text-muted); font-family: var(--font-mono); }
.prose figure { margin: var(--s-5) 0; max-width: 300px; }
.prose figure img { width: 100%; height: auto; border-radius: var(--r-md); border: 6px solid var(--frame); }
.prose figure figcaption { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--s-2); }

/* Tool cards */
.tools { display: grid; gap: var(--s-6); }
.tool { display: grid; gap: var(--s-5); background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: var(--s-5); box-shadow: var(--glow); }
@media (min-width: 960px) { .tool { grid-template-columns: 1.25fr 1fr; padding: var(--s-6); } }
.tool-head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); margin-bottom: var(--s-2); }
.tool-head h2, .tool-head h3 { margin: 0; font-size: var(--fs-xl); }
.tool .job { font-size: var(--fs-lg); color: var(--text-muted); }
.is-isnt { display: grid; gap: var(--s-4); margin-bottom: var(--s-4); }
@media (min-width: 640px) { .is-isnt { grid-template-columns: 1fr 1fr; } }
.is-isnt h4 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: var(--s-2); }
.is-isnt p, .is-isnt ul { font-size: var(--fs-sm); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s-4); font-size: var(--fs-sm); margin: 0 0 var(--s-4); }
.kv dt { color: var(--text-muted); font-weight: 600; }
.kv dd { margin: 0; }
.tool-price { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); padding-top: var(--s-4); border-top: 1px solid var(--line-soft); }
.tool-price .amt { font: 800 var(--fs-xl)/1 var(--font-display); }
.tool-price .price { --amt-size: var(--fs-xl); margin: 0; }

/* Tables */
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--r-md); }
.prose .table-wrap { margin-bottom: var(--s-5); }   /* breathing room before the paragraph after a legal table */
table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
thead th { background: var(--surface); font-family: var(--font-display); font-weight: 800; }
tbody th { font-weight: 600; }
tr:last-child > * { border-bottom: 0; }
td.y { color: var(--accent-2); font-weight: 700; }
td.n { color: var(--text-muted); }
td.y .mark, td.n .mark { font-size: 1.15em; }
/* Comparison tables keep their columns on phones and scroll sideways inside their own box,
   with the row labels pinned. The region is focusable so keyboard users can scroll it. */
.table-scroll { position: relative; overscroll-behavior-x: contain; }   /* relative: keeps visually-hidden cells and captions inside the scroller */
.table-scroll:focus-visible { outline-offset: 2px; }
.compare { min-width: 640px; }
.compare tbody th, .compare thead th:first-child { position: sticky; left: 0; z-index: 1; background: var(--card); }
.compare thead th:first-child { background: var(--surface); }
.compare .col-pick { background: color-mix(in srgb, var(--accent-fill) 9%, transparent); }
.compare tbody th, .compare thead th:first-child { width: 150px; }
.scroll-hint { font-size: var(--fs-xs); color: var(--text-muted); margin: var(--s-2) 0 0; }
@media (min-width: 760px) { .scroll-hint { display: none; } }

/* Currency switch (works without JS: radio inputs + :has) */
.cur-switch { border: 0; padding: 0; margin: 0 0 var(--s-5); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.cur-switch legend { float: left; margin-right: var(--s-3); font-weight: 700; padding: 0; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: var(--r-pill); padding: 3px; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label { min-height: 40px; display: inline-flex; align-items: center; padding: 0 18px; border-radius: var(--r-pill); cursor: pointer; font-weight: 700; }
html:not(.js) .seg input:checked + label,
:root.js[data-cur="usd"] .seg label[for="cur-usd"], :root.js[data-cur="inr"] .seg label[for="cur-inr"] { background: var(--accent-fill); color: var(--on-accent); }

/* No INR checkout yet (config checkout.inr.enabled false → html[data-inr="off"]): show USD only.
   Every ₹ figure, the "Show prices in" switch and ₹-only notes are hidden, so the site never shows a rupee price
   that differs from the Merchant of Record's own ₹ total at checkout. */
:root[data-inr="off"] .p-inr, :root[data-inr="off"] .cur-switch, :root[data-inr="off"] .fp-inr, :root[data-inr="off"] .fp-sep,
:root[data-inr="off"] .price.dual > .alt, :root[data-inr="off"] .inr-only { display: none !important; }
/* Public "Opening soon" draft: internal lawyer/CA notes stay in the HTML for review but aren't shown to visitors. */
:root[data-review-notes="off"] [data-lawyer-note] { display: none !important; }
.seg input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 2px; }
/* Only ever HIDE (never set display) so buttons keep their own layout.
   With JS, html[data-cur] (set before first paint) decides; without JS, the radio buttons do. */
html:not(.js) .cur-scope:has(#cur-inr:checked) .p-usd, :root.js[data-cur="inr"] .cur-scope .p-usd { display: none !important; }
html:not(.js) .cur-scope:has(#cur-usd:checked) .p-inr, :root.js[data-cur="usd"] .cur-scope .p-inr { display: none !important; }
.ladder { display: grid; gap: var(--s-5); }
@media (min-width: 720px) { .ladder { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1060px) { .ladder { grid-template-columns: repeat(3, 1fr); } }
.ladder .offer { padding-top: var(--s-6); }
.ladder-main { align-items: stretch; }
@media (min-width: 1060px) { .ladder-main .offer.everything { transform: translateY(-8px); box-shadow: 0 0 0 1px var(--line-soft), 0 28px 60px -24px rgb(242 162 12 / .45); } }
.mini-grid { display: grid; gap: var(--s-4); }
@media (min-width: 720px) { .mini-grid { grid-template-columns: repeat(3, 1fr); } .mini-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
.mini { border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s-4); background: var(--card); display: flex; flex-direction: column; gap: var(--s-2); }
.mini h3 { font-size: var(--fs-lg); margin: 0; }
.mini .amt { font: 800 var(--fs-xl)/1 var(--font-display); }
.mini .btn { margin-top: auto; }
.mini .badge { align-self: flex-start; }

/* Watch page */
.watch { display: grid; gap: var(--s-6); align-items: start; }
@media (min-width: 900px) { .watch { grid-template-columns: minmax(300px, 400px) 1fr; } }
.player { margin: 0; }
@media (min-width: 900px) { .player { position: sticky; top: 88px; } }
.player video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--r-md); background: #120a16; }
.player-frame { position: relative; }
/* A big marigold play button over the poster until the preview plays (the native one is tiny). */
.js .player-frame::after { content: ""; position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border-radius: 50%; pointer-events: none;
  background: var(--accent-fill) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5.5v13a1 1 0 0 0 1.5.86l10.4-6.5a1 1 0 0 0 0-1.72L9.5 4.64A1 1 0 0 0 8 5.5z' fill='%231A0F1F'/%3E%3C/svg%3E") no-repeat 56% 50% / 34px;
  box-shadow: 0 0 0 6px rgb(26 15 31 / .35), 0 10px 30px -6px rgb(0 0 0 / .6); transition: opacity .2s var(--ease); }
.player.is-playing .player-frame::after { opacity: 0; }
.player figcaption { font-size: var(--fs-xs); color: var(--text-muted); margin-top: var(--s-2); }
.transcript { border: 1px solid var(--line-soft); border-radius: var(--r-md); background: var(--card); }
.transcript > summary { cursor: pointer; padding: var(--s-4) var(--s-5); font-weight: 700; min-height: 48px; }
.transcript > div { padding: 0 var(--s-5) var(--s-5); }
.tx { display: grid; gap: 10px; font-size: var(--fs-sm); }
.tx p { margin: 0; }
.tx .ln { display: grid; grid-template-columns: 7.2em 1fr; gap: var(--s-3); }
.tx .who { font-weight: 700; color: var(--accent); }
.tx .beat { color: var(--text-muted); font-style: italic; border-left: 2px solid var(--line-soft); padding-left: var(--s-3); }
.tx .act { font-family: var(--font-mono); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--accent-2); margin-top: var(--s-3); }
.tx .act .muted { text-transform: none; letter-spacing: 0; }
.gloss { display: block; color: var(--text-muted); font-size: .95em; }
.share { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; }
.pager { display: flex; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; border-top: 1px solid var(--line-soft); padding-top: var(--s-5); margin-top: var(--s-7); }
.pager a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.cta-band { margin-top: var(--s-6); padding: var(--s-5); border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent-fill) 50%, transparent); background: linear-gradient(120deg, color-mix(in srgb, var(--accent-fill) 14%, var(--card)), var(--card)); }
.cta-band h2 { font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.cta-band p { margin-bottom: var(--s-4); }
.cta-band .links { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); margin: var(--s-4) 0 0; }

/* About */
.cast { display: grid; gap: var(--s-5); }
@media (min-width: 760px) { .cast { grid-template-columns: 1fr 1fr; } }
.cast figure { margin: 0; display: grid; grid-template-columns: 120px 1fr; gap: var(--s-4); align-items: center; }
.cast img { width: 120px; height: 160px; object-fit: cover; border-radius: var(--r-md); border: 6px solid var(--frame); }
.photo-ph { width: 96px; aspect-ratio: 1; display: grid; place-items: center; text-align: center; background: var(--surface); border: 2px dashed var(--ph); border-radius: 50%; color: var(--text-muted); font-family: var(--font-mono); font-size: var(--fs-xs); line-height: 1.2; padding: var(--s-2); }
.creator .who-name { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-xl); margin-bottom: var(--s-2); }
.creator .who-name .ph { font-size: var(--fs-sm); font-weight: 600; display: inline-block; line-height: 1.5; }
.creator { display: grid; gap: var(--s-5); align-items: center; }
.creator { grid-template-columns: 96px 1fr; align-items: start; }

/* Legal */
.draft-banner { display: flex; gap: var(--s-3); align-items: flex-start; background: color-mix(in srgb, var(--ph) 14%, var(--bg)); border: 2px dashed var(--ph); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-6); font-weight: 600; }
.draft-banner strong { color: var(--accent); }
.legal-meta { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--s-5); }
.toc { background: var(--card); border: 1px solid var(--line-soft); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin-bottom: var(--s-6); }
.toc h2 { font-size: var(--fs-base); margin: 0 0 var(--s-2); }
.toc ol { margin: 0; columns: 1; font-size: var(--fs-sm); }
@media (min-width: 760px) { .toc ol { columns: 2; column-gap: var(--s-6); } }
.toc li { margin-bottom: 4px; break-inside: avoid; }
.toc a { display: inline-block; padding-block: 3px; }
.summary-box { background: color-mix(in srgb, var(--accent-2) 10%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent-2) 50%, transparent); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); margin: var(--s-4) 0 var(--s-5); }
.summary-box > :last-child { margin-bottom: 0; }
.summary-box h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .06em; margin-bottom: var(--s-2); color: var(--accent-2); }
.legal h2 { scroll-margin-top: 90px; }
.legal table { margin-bottom: var(--s-5); }

/* 404 */
.lit-window-illus { width: 180px; height: auto; margin: 0 auto var(--s-5); }

/* ---------- 9. Footer ---------- */
/* No top margin: every page's <main> ends in a padded section, and the toran is the divider. */
.site-footer { position: relative; background: var(--surface-2); padding: calc(46px + var(--s-7)) 0 var(--s-6); margin-top: 0; font-size: var(--fs-sm); }
:root[data-theme="light"] .site-footer { background: var(--surface); }
.foot-grid { display: grid; gap: var(--s-6); grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1fr 1fr 1fr 1.5fr; } }
.foot-grid h2 { font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); margin-bottom: var(--s-3); font-family: var(--font-body); }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin: 0; }
.foot-grid a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; min-height: 32px; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.seller { grid-column: 1 / -1; }
@media (min-width: 900px) { .seller { grid-column: auto; } }
.seller p { margin-bottom: var(--s-2); }
.foot-brand { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: var(--s-3) var(--s-6); align-items: center; border-top: 1px solid var(--line-soft); margin-top: var(--s-6); padding-top: var(--s-5); }
.foot-tag { color: var(--text-muted); margin: 0; }
.foot-brand .social { margin: 0 0 0 auto; padding: 0; list-style: none; }
.foot-brand .social:not(:has(li:not([hidden]))) { display: none; }
.social { display: flex; flex-wrap: wrap; gap: var(--s-4); }
.social:empty { display: none; }
.copyright { font-size: var(--fs-xs); color: var(--text-muted); margin: var(--s-2) 0 0; }

/* ---------- 10. Dialog ---------- */
dialog.checkout-dialog { width: min(480px, calc(100vw - 2 * var(--gutter))); border: 1px solid var(--line-soft); border-radius: var(--r-lg); background: var(--card); color: var(--text); padding: var(--s-6) var(--s-5) var(--s-5); box-shadow: 0 40px 100px -30px rgb(0 0 0 / .8); }
dialog.checkout-dialog::backdrop { background: rgb(16 8 20 / .72); }
dialog.checkout-dialog h2 { font-size: var(--fs-xl); }
dialog.checkout-dialog .dlg-product { font-family: var(--font-mono); color: var(--accent); font-size: var(--fs-sm); margin-bottom: var(--s-2); }
dialog.checkout-dialog .btn-row { margin-top: var(--s-4); justify-content: flex-end; }

/* ---------- 12. Utilities (keep pages free of inline styles for a strict CSP) ---------- */
.u-xl { font-size: var(--fs-xl) !important; } .u-lg { font-size: var(--fs-lg) !important; } .u-sm { font-size: var(--fs-sm) !important; }
.pt-0 { padding-top: 0 !important; } .pt-6 { padding-top: var(--s-6) !important; }
.m-0 { margin: 0 !important; } .mt-0 { margin-top: 0 !important; } .mt-3 { margin-top: var(--s-3) !important; } .mt-4 { margin-top: var(--s-4) !important; }
.mt-5 { margin-top: var(--s-5) !important; } .mt-6 { margin-top: var(--s-6) !important; } .mt-7 { margin-top: var(--s-7) !important; } .mt-8 { margin-top: var(--s-8) !important; }
.mb-5 { margin-bottom: var(--s-5) !important; } .mx-auto { margin-inline: auto !important; }
.ai-start { align-items: start !important; } .ai-center { align-items: center !important; } .jc-center { justify-content: center !important; }
.wf-sm { width: min(300px, 70vw) !important; } .sill-sm { width: calc(min(300px, 70vw) + 44px) !important; } .ar-1 { aspect-ratio: 1 / 1 !important; }

/* ---------- 11. Motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .btn:hover, .ep-card:hover { transform: none; }
}
@media print {
  .site-header, .site-footer, .draft-strip, .toran { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---------- 13. Page-specific bits ---------- */
