/* Nihilio Vision — site design system
   Palette: deep navy ink, soft indigo primary, mint/sage secondary, warm cream surfaces.
   All text/background pairs below meet WCAG 2.1 AA (4.5:1 body, 3:1 large). */

@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Plus Jakarta Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url("/assets/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --ink: #1b2440;          /* headings, body on cream: 14.4:1 */
  --slate: #4a5573;        /* secondary text on cream: 7.0:1 */
  --muted: #5f6883;        /* tertiary text on white: 5.6:1 */
  --indigo: #4b48c8;       /* links, primary: 6.9:1 on white */
  --indigo-600: #3f3db8;
  --indigo-400: #6d6ae8;
  --lavender: #eeeafd;
  --lavender-200: #dcd6fb;
  --mint: #1f7a60;         /* mint text: 5.2:1 on white, 4.5:1 on mint-100 */
  --mint-300: #8fe0c4;
  --mint-100: #ddf3ea;
  --sage: #e8f1e4;
  --cream: #fbf8f2;
  --sand: #f4efe4;
  --surface: #ffffff;
  --line: #e7e1d4;
  --amber-100: #fff3d6;
  --amber-700: #8a5a00;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(27 36 64 / 6%), 0 1px 3px rgb(27 36 64 / 8%);
  --shadow: 0 2px 6px rgb(27 36 64 / 5%), 0 12px 32px rgb(27 36 64 / 8%);
  --maxw: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, picture { display: block; max-width: 100%; height: auto; }
a { color: var(--indigo); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--indigo-600); }
:focus-visible { outline: 3px solid var(--indigo-400); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; line-height: 1.18; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.25em; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--sand); padding: 0.1em 0.35em; border-radius: 6px; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip-link:focus { top: 12px; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: clamp(56px, 9vw, 104px) 0; }
.section--tint { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--lavender { background: linear-gradient(180deg, var(--lavender) 0%, var(--cream) 100%); }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }
.section__head--center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow { display: inline-block; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--indigo); margin-bottom: 12px; }
.eyebrow--mint { color: var(--mint); }
.lead { font-size: clamp(1.1rem, 1.8vw, 1.3rem); color: var(--slate); line-height: 1.6; }
.muted { color: var(--slate); }
.small { font-size: 0.9rem; }

/* ---------- Header / navigation ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(251 248 242 / 88%); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 4px 20px rgb(27 36 64 / 5%); }
.nav { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.125rem; letter-spacing: -0.01em; margin-right: auto; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand:hover { color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav__links a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.975rem; }
.nav__links a:hover { background: var(--lavender); color: var(--indigo-600); }
.nav__links a[aria-current="page"] { background: var(--lavender); color: var(--indigo-600); }
.nav__toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); }
.nav__toggle svg { width: 22px; height: 22px; }

@media (max-width: 1020px) {
  .nav { gap: 12px; }
  .nav__toggle { display: inline-flex; }
  .nav__menu { position: absolute; left: 0; right: 0; top: 72px; background: var(--cream); border-bottom: 1px solid var(--line); box-shadow: 0 16px 32px rgb(27 36 64 / 8%); padding: 12px var(--gutter) 20px; display: none; }
  .nav__menu.is-open { display: block; }
  .nav__links { flex-direction: column; align-items: stretch; }
  .nav__links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav__menu .btn { display: flex; margin-top: 12px; }
  .no-js .nav__menu { position: static; display: block; box-shadow: none; border: 0; padding: 0; }
  .no-js .nav__toggle { display: none; }
}
@media (min-width: 1021px) { .nav__menu { display: flex; align-items: center; gap: 16px; } }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px rgb(75 72 200 / 28%); }
.btn--primary:hover { background: var(--indigo-600); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--lavender-200); color: var(--indigo-600); }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: 0.925rem; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* App Store pre-launch button. Replace with Apple's official, unmodified
   "Download on the App Store" badge artwork (Apple Marketing Tools) at launch. */
.store-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 22px 10px 18px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid #a6a6a6; line-height: 1.1; }
.store-btn:hover { color: #fff; background: #1a1a1a; }
.store-btn svg { width: 26px; height: 26px; }
.store-btn small { display: block; font-size: 0.72rem; font-weight: 500; opacity: .85; letter-spacing: .02em; }
.store-btn strong { display: block; font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }

.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: 0.875rem; font-weight: 600; color: var(--slate); }
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px var(--mint-100); }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; background: var(--lavender); color: var(--indigo-600); font-size: 0.8rem; font-weight: 700; }
.tag--mint { background: var(--mint-100); color: var(--mint); }
.tag--sand { background: var(--sand); color: var(--slate); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 8vw, 104px); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; filter: blur(4px); }
.hero::before { width: 560px; height: 560px; right: -160px; top: -200px; background: radial-gradient(circle, var(--lavender-200) 0%, transparent 70%); }
.hero::after { width: 480px; height: 480px; left: -200px; bottom: -220px; background: radial-gradient(circle, var(--mint-100) 0%, transparent 70%); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero h1 { margin: 18px 0 20px; }
.hero h1 .accent { color: var(--indigo); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding: 0; list-style: none; color: var(--slate); font-size: 0.925rem; font-weight: 600; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { width: 18px; height: 18px; color: var(--mint); }
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.device { position: relative; background: #11151f; padding: 12px; border-radius: 30px; box-shadow: var(--shadow), inset 0 0 0 1px rgb(255 255 255 / 8%); }
.device img { border-radius: 20px; width: 100%; }
.device--phone { border-radius: 36px; padding: 10px; }
.device--phone img { border-radius: 28px; }
.float-card { position: absolute; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 12px 16px; font-size: 0.875rem; font-weight: 600; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.float-card svg { width: 20px; height: 20px; color: var(--mint); flex: none; }
.float-card--tl { left: -18px; top: 18%; }
.float-card--br { right: -14px; bottom: 12%; }
@media (max-width: 560px) { .float-card { position: static; margin-top: 12px; } .hero__visual { display: flex; flex-direction: column; } }

/* ---------- Cards & grids ---------- */
.grid { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; } }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 32px); box-shadow: var(--shadow-sm); }
.card h3 { margin-top: 0; }
.card p:last-child { margin-bottom: 0; }
.card__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--lavender); color: var(--indigo); margin-bottom: 18px; }
.card__icon svg { width: 26px; height: 26px; }
.card__icon--mint { background: var(--mint-100); color: var(--mint); }
.card__icon--sand { background: var(--amber-100); color: var(--amber-700); }
.card__spec { margin: 18px 0 0; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--cream); border: 1px dashed var(--line); font-size: 0.875rem; color: var(--slate); }
.card__spec strong { color: var(--ink); }

.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; padding: 0; }
.product__body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; align-items: flex-start; }
.product__media { background: linear-gradient(135deg, var(--mint-100), var(--lavender)); display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 36px); }
.product__media .device { width: 100%; }
.product__head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.product__head img { width: 56px; height: 56px; border-radius: 14px; }
.product__head h3 { margin: 0; font-size: 1.6rem; }
@media (max-width: 860px) { .product { grid-template-columns: 1fr; } }

.mini { display: flex; gap: 16px; align-items: flex-start; }
.mini img { width: 56px; height: 56px; border-radius: 14px; flex: none; object-fit: cover; }
.mini h3 { font-size: 1.05rem; margin-bottom: 4px; }
.mini p { font-size: 0.95rem; color: var(--slate); margin-bottom: 8px; }

.checklist { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; color: var(--mint); flex: none; margin-top: 2px; }

/* ---------- Games ---------- */
.game { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.game + .game { margin-top: clamp(48px, 7vw, 88px); }
.game:nth-child(even) .game__media { order: 2; }
.game__media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--sand); }
.game__media img { width: 100%; }
.game__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.game h3 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 12px; }
.game dl { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 20px 0 0; font-size: 0.95rem; }
.game dt { font-weight: 700; color: var(--ink); }
.game dd { margin: 0; color: var(--slate); }
@media (max-width: 860px) { .game { grid-template-columns: 1fr; } .game:nth-child(even) .game__media { order: 0; } }

/* ---------- Audience toggle (parents / SLPs) ---------- */
.tabs { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 28px; }
.tabs button { font: inherit; font-weight: 700; font-size: 0.95rem; border: 0; background: none; padding: 10px 20px; border-radius: 999px; cursor: pointer; color: var(--slate); min-height: 44px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; }
.tabpanel[hidden] { display: none; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; }
.metric { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.metric dt { font-size: 0.85rem; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: .06em; }
.metric dd { margin: 6px 0 0; font-size: 0.975rem; }
@media (max-width: 760px) { .metrics { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.stat { text-align: center; padding: 20px 12px; }
.stat strong { display: block; font-size: clamp(1.8rem, 3.4vw, 2.4rem); font-weight: 800; color: var(--indigo); letter-spacing: -0.02em; line-height: 1.1; }
.stat span { display: block; margin-top: 6px; font-size: 0.9rem; color: var(--slate); font-weight: 600; }

/* ---------- Timeline (daily journey) ---------- */
.journey { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 12px; }
.journey__act { border-radius: var(--radius); padding: 20px; background: var(--surface); border: 1px solid var(--line); }
.journey__act:nth-child(1) { border-top: 5px solid var(--mint-300); }
.journey__act:nth-child(2) { border-top: 5px solid var(--indigo-400); }
.journey__act:nth-child(3) { border-top: 5px solid var(--lavender-200); }
.journey__act b { display: block; font-size: 0.8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--slate); }
.journey__act h3 { margin: 6px 0 6px; font-size: 1.1rem; }
.journey__act p { margin: 0; font-size: 0.95rem; color: var(--slate); }
@media (max-width: 760px) { .journey { grid-template-columns: 1fr; } }

/* ---------- Notices ---------- */
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: var(--radius); background: var(--amber-100); border: 1px solid #f1dca6; color: #4d3500; }
.notice svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--amber-700); }
.notice p { margin: 0; }
.notice--mint { background: var(--mint-100); border-color: #bfe6d6; color: #0f3d30; }
.notice--mint svg { color: var(--mint); }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 36px 20px 0; font-weight: 700; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--slate); border-bottom: 2px solid var(--slate); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; color: var(--slate); }
.faq details > div p:last-child { margin: 0; }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); background: var(--ink); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgb(109 106 232 / 55%), transparent 70%); }
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6dbea; margin: 0; }
.cta-band a:not(.btn):not(.store-btn) { color: var(--mint-300); }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; z-index: 1; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 35%); }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; } .cta-band__actions { justify-content: flex-start; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 56px 0 32px; font-size: 0.95rem; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 32px; }
.footer__grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); margin-bottom: 14px; }
.footer__grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer__grid a { color: var(--ink); text-decoration: none; }
.footer__grid a:hover { color: var(--indigo); text-decoration: underline; }
.footer__about p { color: var(--slate); max-width: 360px; }
.footer__social { display: flex; gap: 8px; margin-top: 16px; }
.footer__social a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); color: var(--slate); }
.footer__social a:hover { color: var(--indigo); border-color: var(--lavender-200); background: var(--lavender); }
.footer__social svg { width: 18px; height: 18px; }
.footer__advisory { margin-top: 40px; padding: 16px 18px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line); color: var(--slate); font-size: 0.875rem; }
.footer__advisory strong { color: var(--ink); }
.footer__bottom { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; color: var(--muted); font-size: 0.875rem; }
@media (max-width: 900px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Legal documents ---------- */
.legal-hero { padding: clamp(40px, 6vw, 72px) 0 32px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--lavender) 0%, var(--cream) 100%); }
.legal-hero h1 { font-size: clamp(2rem, 4.4vw, 3rem); }
.legal-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--slate); font-size: 0.925rem; font-weight: 600; }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); padding: 48px 0 88px; }
.toc { position: sticky; top: 96px; align-self: start; font-size: 0.925rem; max-height: calc(100vh - 120px); overflow: auto; }
.toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--slate); }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a { display: block; padding: 6px 10px; border-radius: 8px; color: var(--slate); text-decoration: none; }
.toc a:hover { background: var(--lavender); color: var(--indigo-600); }
.legal > * { min-width: 0; }
.prose { max-width: 760px; overflow-wrap: break-word; hyphens: auto; }
.prose h2 { font-size: 1.5rem; margin-top: 2.4em; padding-top: 0.2em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: 1.6em; }
.prose li { margin-bottom: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.6em; font-size: 0.95rem; background: var(--surface); border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--sand); font-weight: 700; }
.prose tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.summary-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 28px; margin-bottom: 40px; box-shadow: var(--shadow-sm); }
.summary-box h2 { margin-top: 0 !important; font-size: 1.2rem; }
.summary-box ul { margin: 0; }
.callout { padding: 18px 22px; border-radius: var(--radius); border-left: 5px solid var(--amber-700); background: var(--amber-100); margin: 1.2em 0 1.6em; color: #4d3500; }
.callout--mint { border-left-color: var(--mint); background: var(--mint-100); color: #0f3d30; }
.callout p:last-child { margin: 0; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--surface); } }

/* ---------- Misc ---------- */
.center { text-align: center; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: #11151f; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.breadcrumb { font-size: 0.9rem; color: var(--slate); margin-bottom: 12px; }
.breadcrumb a { color: var(--slate); }

/* ---------- Language switcher ---------- */
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-weight: 700; font-size: 0.875rem; color: var(--ink); }
.lang summary::-webkit-details-marker { display: none; }
.lang summary svg { width: 18px; height: 18px; color: var(--slate); }
.lang summary:hover { border-color: var(--lavender-200); }
.lang ul { list-style: none; margin: 0; padding: 6px; position: absolute; right: 0; top: calc(100% + 8px); min-width: 170px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); z-index: 60; }
.lang a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.lang a:hover { background: var(--lavender); color: var(--indigo-600); }
.lang a[aria-current="true"] { background: var(--lavender); color: var(--indigo-600); }
@media (max-width: 1020px) {
  .lang { margin-top: 12px; }
  .lang ul { position: static; box-shadow: none; margin-top: 8px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
