/* ============================================================
   Taiboli — Home page styles
   Warm neutrals + saffron accent · serif headlines / rounded sans body
   ============================================================ */

/* ---- Palette (warm-neutral base is constant; accent set by [data-palette]) ---- */
:root {
  --bg:          #FFFFFF;   /* white                       */
  --surface:     #FFFFFF;
  --surface-warm:#F7F4EF;   /* light warm panel            */
  --ink:         #241F18;   /* warm near-black             */
  --ink-soft:    #463F35;
  --muted:       #5E564B;   /* AA on white                 */
  --border:      #ECE6DC;
  --line:        #F1ECE3;

  /* accent — overridden per palette (defaults = saffron) */
  --accent:      #F4A91F;   /* vivid saffron — decorative fills, glyphs, chart bars */
  --accent-ink:  #D97706;   /* saffron — LARGE headings + wordmark (AA-large 3:1 on white) */
  --accent-deep: #B45309;   /* deep saffron — small text + button bg (AA 4.5:1 on white) */
  --accent-wash: #FEF1DC;   /* faint saffron tint panel    */

  /* type — heading font overridden per data-head, body per data-body */
  --head:        "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --head-weight: 700;
  --head-tracking: -.02em;
  --sans:        "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --deva:        "Noto Serif Devanagari", serif;

  --maxw: 1120px;
  --r-card: 18px;
  --r-btn: 12px;
  --shadow-sm: 0 1px 2px rgba(42,37,30,.04), 0 6px 18px rgba(42,37,30,.05);
  --shadow-md: 0 2px 6px rgba(42,37,30,.05), 0 18px 48px rgba(42,37,30,.08);
}

[data-palette="saffron"] {
  --accent: #F4A91F; --accent-ink: #D97706; --accent-deep: #B45309; --accent-wash: #FEF1DC;
}
[data-palette="marigold"] {
  --accent: #FBA528; --accent-ink: #EA580C; --accent-deep: #C2410C; --accent-wash: #FEEDE0;
}
[data-palette="amber"] {
  --accent: #F2B705; --accent-ink: #C2710F; --accent-deep: #A15309; --accent-wash: #FBF0D5;
}
[data-palette="tangerine"] {
  --accent: #FF9F45; --accent-ink: #E0560A; --accent-deep: #BC4A09; --accent-wash: #FFEDDD;
}

/* Heading font options */
[data-head="hanken"]     { --head: "Hanken Grotesk", system-ui, sans-serif; --head-weight: 700; --head-tracking: -.02em; }
[data-head="bricolage"]  { --head: "Bricolage Grotesque", system-ui, sans-serif; --head-weight: 600; --head-tracking: -.02em; }
[data-head="jakarta"]    { --head: "Plus Jakarta Sans", system-ui, sans-serif; --head-weight: 700; --head-tracking: -.03em; }
[data-head="newsreader"] { --head: "Newsreader", Georgia, serif; --head-weight: 500; --head-tracking: -.01em; }
[data-head="spectral"]   { --head: "Spectral", Georgia, serif; --head-weight: 500; --head-tracking: -.005em; }

/* Body font options */
[data-body="hanken"]  { --sans: "Hanken Grotesk", system-ui, sans-serif; }
[data-body="mulish"]  { --sans: "Mulish", system-ui, sans-serif; }
[data-body="jakarta"] { --sans: "Plus Jakarta Sans", system-ui, sans-serif; }

/* Wordmark font options. Set via [data-wordmark] on <html>. */
[data-wordmark="encodeexp"] .brand { font-family: "Encode Sans Expanded", "Segoe UI", system-ui, sans-serif; font-weight: 700; letter-spacing: 0; }
[data-wordmark="sourcesans"] .brand { font-family: "Source Sans 3", "Segoe UI", system-ui, sans-serif; font-weight: 700; letter-spacing: -.01em; }
[data-wordmark="aptos"] .brand { font-family: "Aptos", "Segoe UI", system-ui, sans-serif; font-weight: 700; letter-spacing: -.02em; }
[data-wordmark="robotoslab"] .brand { font-family: "Roboto Slab", Georgia, serif; font-weight: 700; letter-spacing: -.01em; }
[data-wordmark="bitter"] .brand { font-family: "Bitter", Georgia, serif; font-weight: 700; letter-spacing: -.01em; }
[data-wordmark="dmserif"] .brand { font-family: "DM Serif Display", Georgia, serif; font-weight: 400; letter-spacing: 0; }
[data-wordmark="samarkan"] .brand { font-family: "Samarkan", Georgia, serif; font-weight: 400; font-size: 30px; letter-spacing: .03em; }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 { font-family: var(--head); font-weight: var(--head-weight); line-height: 1.12; letter-spacing: var(--head-tracking); margin: 0; color: var(--accent-deep); }
p { margin: 0; }

a { color: inherit; }

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-left: max(32px, env(safe-area-inset-left)); padding-right: max(32px, env(safe-area-inset-right)); }

/* ---- accents / helpers ---- */
.eyebrow {
  font-family: var(--sans);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }

.lead { color: var(--muted); font-size: 1.18rem; line-height: 1.62; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--sans); font-size: 16px; font-weight: 600;
  padding: 14px 24px; border-radius: var(--r-btn);
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--accent-deep); color: #fff; }
.btn-primary:hover { background: var(--ink); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-link {
  background: none; border: 0; padding: 6px 2px; font-weight: 600; color: var(--ink);
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer; text-decoration: none;
  font-family: var(--sans); font-size: 16px;
}
.btn-link .ar { transition: transform .18s ease; display: inline-flex; }
.btn-link:hover .ar { transform: translateX(4px); }
.btn-link u { text-decoration-color: var(--accent); text-underline-offset: 4px; }

.btn .ic, .btn-link .ic { width: 18px; height: 18px; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.nav.scrolled { border-color: var(--border); }
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: baseline; gap: 1px; font-family: "Aptos", "Segoe UI", system-ui, -apple-system, sans-serif; font-size: 25px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; color: var(--accent-deep); }
.brand .dot { color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15.5px; font-weight: 500; color: var(--ink-soft); text-decoration: none;
  padding: 9px 14px; border-radius: 9px; transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--surface-warm); }
.nav-links a[aria-current="page"] { color: var(--accent-deep); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* Mobile hamburger toggle (shown ≤920px via media query) */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 0; margin-left: 4px;
  background: transparent; border: 1px solid var(--border); border-radius: 11px;
  cursor: pointer; align-items: center; justify-content: center;
  transition: border-color .15s, background .15s;
}
.nav-toggle:hover { border-color: var(--ink); }
.nav-toggle-bars { position: relative; width: 20px; height: 14px; display: block; }
.nav-toggle-bars span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px;
  background: var(--ink); transition: transform .24s ease, opacity .18s ease, top .24s ease;
}
.nav-toggle-bars span:nth-child(1) { top: 0; }
.nav-toggle-bars span:nth-child(2) { top: 6px; }
.nav-toggle-bars span:nth-child(3) { top: 12px; }
.nav.menu-open .nav-toggle-bars span:nth-child(1) { top: 6px; transform: rotate(45deg); }
.nav.menu-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle-bars span:nth-child(3) { top: 6px; transform: rotate(-45deg); }

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 14px 0 22px;
  max-height: calc(100vh - 72px); overflow-y: auto;
}
.nav.menu-open .mobile-menu { display: block; }
.mobile-menu-links { display: flex; flex-direction: column; }
.mobile-menu-links a {
  font-size: 17px; font-weight: 600; color: var(--ink); text-decoration: none;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu-links a[aria-current="page"] { color: var(--accent-deep); }
.mobile-menu-cta { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.mobile-menu-cta .btn { width: 100%; }

/* ============================================================
   Hero
   ============================================================ */
.hero { padding: 64px 0 56px; }
.hero .eyebrow { margin-bottom: 22px; }
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.35rem);
  font-weight: 500; max-width: 16ch;
}
.hero h1 .accent { font-style: italic; color: var(--ink); }
.hero-sub { margin-top: 24px; max-width: 46ch; font-size: 1.2rem; color: var(--muted); }
.hero-cta { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.hero-note b { color: var(--ink); font-weight: 600; }

.hero-media { margin-top: 52px; }

/* default: centered */
.hero.h-centered .hero-in { text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero.h-centered .hero-sub { margin-left: auto; margin-right: auto; }
.hero.h-centered .hero-cta { justify-content: center; }
.hero.h-centered h1 { max-width: 18ch; }

/* split: text left, media right */
.hero.h-split .hero-in { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero.h-split .hero-media { margin-top: 0; }
.hero.h-split h1 { font-size: clamp(2.4rem, 4.4vw, 3.65rem); }
.hero.h-split .ph { aspect-ratio: 4 / 5; }

/* editorial: big left-aligned headline, full-bleed media band below */
.hero.h-editorial .hero-in { max-width: 22ch; }
.hero.h-editorial h1 { font-size: clamp(2.8rem, 6.6vw, 5.2rem); }
.hero.h-editorial .hero-media { margin-top: 56px; }

/* ============================================================
   Placeholder (labeled, striped) — for real assets later
   ============================================================ */
.ph {
  position: relative; border-radius: var(--r-card); overflow: hidden;
  background-color: var(--surface-warm);
  background-image: repeating-linear-gradient(
    -45deg, transparent, transparent 11px,
    color-mix(in srgb, var(--ink) 5%, transparent) 11px,
    color-mix(in srgb, var(--ink) 5%, transparent) 12px);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  min-height: 200px;
}
.ph-tag {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12.5px; letter-spacing: .02em; color: var(--muted);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 7px 15px; display: inline-flex; align-items: center; gap: 9px;
  max-width: 80%; text-align: center;
}
.ph-tag .ic { width: 15px; height: 15px; color: var(--accent-ink); }
.ph-16x9 { aspect-ratio: 16 / 9; }
.ph-4x3  { aspect-ratio: 4 / 3; }
.ph-1x1  { aspect-ratio: 1 / 1; }

/* video placeholder gets a play affordance */
.ph-video .ph-play {
  position: absolute; width: 72px; height: 72px; border-radius: 50%;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
}
.ph-video .ph-play .ic { width: 26px; height: 26px; color: var(--accent-ink); margin-left: 3px; }
.ph-video .ph-tag { position: absolute; bottom: 16px; left: 16px; max-width: none; }

/* ============================================================
   Section scaffolding
   ============================================================ */
section { padding: 86px 0; }
.section-head { max-width: none; }
.section-head.center { max-width: 52ch; margin: 0 auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { font-size: clamp(2rem, 3.4vw, 2.85rem); margin-top: 18px; }
.section-head p { margin-top: 16px; }

/* emotional beat — quiet, centered */
.beat { padding: 64px 0; }
.beat .wrap { max-width: 760px; }
.beat p {
  font-family: var(--head); font-weight: var(--head-weight); font-size: clamp(1.5rem, 2.8vw, 2.05rem);
  line-height: 1.4; letter-spacing: var(--head-tracking); color: var(--ink); text-align: center; text-wrap: balance;
}
.beat .quiet { color: var(--muted); }

/* divider */
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* ============================================================
   Tutor / stat
   ============================================================ */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 40px; box-shadow: var(--shadow-sm);
}
.stat-bars { display: flex; align-items: flex-end; gap: 28px; }
.stat-bar { flex: 1; display: flex; flex-direction: column; align-items: center; }
.stat-bar .track { width: 100%; height: 180px; display: flex; align-items: flex-end; margin: 14px 0; }
.stat-bar .col { width: 100%; border-radius: 12px 12px 0 0; }
.stat-bar.a .col { background: var(--surface-warm); border: 1px solid var(--border); }
.stat-bar.b .col { background: var(--accent); }
.stat-bar .pct { font-family: var(--head); font-weight: var(--head-weight); font-size: 1.9rem; color: var(--ink); }
.stat-bar.b .pct { color: var(--accent-deep); }
.stat-bar .cap { font-size: 13.5px; color: var(--muted); text-align: center; line-height: 1.35; min-height: 2.7em; }
.stat-foot { margin-top: 22px; font-size: 13px; color: var(--muted); text-align: center; }

/* ============================================================
   Benefits — single cohesive icon set
   ============================================================ */
.benefits-grid {
  margin-top: 54px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.bcard {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 28px 26px 30px; box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.bcard .ico {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-wash); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.bcard .ico .ic { width: 23px; height: 23px; }
.bcard h3 { font-family: var(--sans); font-size: 1.06rem; font-weight: 700; line-height: 1.3; color: var(--ink); }
.bcard p { margin-top: 9px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ============================================================
   Languages strip — Devanagari motif
   ============================================================ */
.langs { background: var(--ink); color: var(--bg); border-radius: 28px; }
.langs-in { padding: 76px 56px; text-align: center; }
.langs .eyebrow { color: var(--accent); justify-content: center; }
.langs .eyebrow::before { background: var(--accent); }
.langs .nam {
  font-family: var(--deva); font-size: clamp(3.4rem, 9vw, 6.4rem); line-height: 1;
  color: #fff; margin: 26px 0 8px;
}
.langs h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.3rem); }
.langs h2 .now { color: var(--accent); }
.langs .coming { margin-top: 34px; }
.langs .coming-lbl { font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 60%, transparent); }
.lang-glyphs { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 20px; }
.lang-chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--bg) 22%, transparent);
  color: color-mix(in srgb, var(--bg) 80%, transparent); font-size: 15px;
}
.lang-chip .gl { font-family: var(--deva); font-size: 20px; color: color-mix(in srgb, var(--bg) 55%, transparent); }

/* ============================================================
   Founding families
   ============================================================ */
.founding { background: var(--accent-wash); }
.founding-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: start; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
  padding: 8px 16px; font-size: 13.5px; font-weight: 600; color: var(--accent-deep);
}
.badge .ic { width: 16px; height: 16px; }
.founding h2 { margin-top: 20px; font-size: clamp(2rem, 3.4vw, 2.7rem); }
.founding .lead { margin-top: 16px; }
.founding .btn { margin-top: 30px; }
.flist { display: flex; flex-direction: column; gap: 16px; }
.fitem {
  display: flex; gap: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.fitem .ico {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent-wash); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
}
.fitem .ico .ic { width: 22px; height: 22px; }
.fitem h3 { font-family: var(--sans); font-size: 1.04rem; font-weight: 700; color: var(--ink); }
.fitem p { margin-top: 6px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }

/* ============================================================
   Pricing CTA band
   ============================================================ */
.cta-band { padding: 96px 0; text-align: center; }
.cta-band h2 { font-size: clamp(2.1rem, 4vw, 3.1rem); }
.cta-band h2 .price { color: var(--accent-deep); }
.cta-band p { margin-top: 14px; color: var(--muted); font-size: 1.1rem; }
.cta-band .row { margin-top: 32px; display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   Footer
   ============================================================ */
footer { background: var(--ink); color: color-mix(in srgb, var(--bg) 78%, transparent); padding: 64px 0 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; padding-bottom: 40px; border-bottom: 1px solid color-mix(in srgb, var(--bg) 14%, transparent); }
footer .brand { color: #fff; }
footer .brand .dot { color: var(--accent); }
.foot-blurb { margin-top: 14px; max-width: 30ch; font-size: 15px; line-height: 1.6; color: color-mix(in srgb, var(--bg) 62%, transparent); }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--bg) 50%, transparent); margin: 0 0 14px; font-weight: 700; }
.foot-col a { display: block; color: color-mix(in srgb, var(--bg) 80%, transparent); text-decoration: none; font-size: 15px; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: #fff; }
.foot-bottom { padding-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13.5px; color: color-mix(in srgb, var(--bg) 52%, transparent); }
.foot-bottom a { color: inherit; text-decoration: none; }
.foot-bottom a:hover { color: #fff; }

/* ============================================================
   Subpage components
   ============================================================ */
.subhero { padding: 76px 0 4px; }
.subhero.center { text-align: center; }
.subhero.center .eyebrow { justify-content: center; }
.subhero h1 { font-size: clamp(2.3rem, 4.6vw, 3.5rem); margin-top: 18px; max-width: 28ch; }
.subhero.center h1 { margin-left: auto; margin-right: auto; }
.subhero .lead { margin-top: 20px; max-width: 56ch; }
.subhero.center .lead { margin-left: auto; margin-right: auto; }

/* Numbered steps */
.steps { display: flex; flex-direction: column; gap: 18px; margin-top: 50px; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 30px 34px; box-shadow: var(--shadow-sm);
}
.step .num {
  font-family: var(--head); font-weight: var(--head-weight); font-size: 1.9rem; color: var(--accent-deep);
  width: 58px; height: 58px; border-radius: 15px; background: var(--accent-wash);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-family: var(--sans); font-size: 1.18rem; font-weight: 700; color: var(--ink); }
.step .meta { font-size: 13px; color: var(--accent-deep); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 4px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; line-height: 1.62; max-width: 66ch; }

/* Media row (one image beside text) */
.mediarow { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.mediarow + .mediarow { margin-top: 28px; }
.mediarow.rev .mr-media { order: -1; }
.mediarow h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.mediarow .lead { margin-top: 16px; }
.mediarow .mr-media .ph { min-height: 320px; }

/* Curriculum table */
.curriculum {
  margin-top: 44px; border: 1px solid var(--border); border-radius: var(--r-card);
  overflow-x: auto; background: var(--surface); box-shadow: var(--shadow-sm);
}
.curriculum table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 720px; }
.curriculum th, .curriculum td { text-align: left; padding: 18px 22px; vertical-align: top; border-bottom: 1px solid var(--line); }
.curriculum thead th { background: var(--surface-warm); font-family: var(--sans); font-weight: 700; color: var(--ink); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.curriculum tbody tr:last-child td { border-bottom: 0; }
.curriculum .lvl { font-family: var(--head); font-weight: var(--head-weight); color: var(--accent-deep); white-space: nowrap; }
.curriculum td { color: var(--muted); line-height: 1.55; }
.table-note { margin-top: 18px; font-size: 14.5px; color: var(--muted); max-width: 80ch; font-style: italic; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 50px; align-items: start; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 32px 30px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.plan.featured { border: 1.5px solid var(--accent); box-shadow: var(--shadow-md); }
.plan .tag {
  align-self: flex-start; background: var(--accent-deep); color: #fff;
  font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 5px 13px; border-radius: 999px; margin-bottom: 16px;
}
.plan .pname { font-family: var(--sans); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.plan .price { font-family: var(--head); font-weight: var(--head-weight); font-size: 2.6rem; color: var(--accent-deep); margin-top: 8px; line-height: 1; }
.plan .price small { font-size: .95rem; color: var(--muted); font-family: var(--sans); font-weight: 600; }
.plan .freq { margin-top: 12px; color: var(--muted); font-size: 15px; }
.plan .btn { margin-top: 24px; }

/* Checklists */
.checks { display: flex; flex-direction: column; gap: 13px; margin-top: 22px; }
.checks.cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); line-height: 1.5; }
.check .ic { width: 18px; height: 18px; color: var(--accent-deep); flex: none; margin-top: 2px; }
.includes {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-card); padding: 32px 34px; box-shadow: var(--shadow-sm);
}
.includes h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--ink); }

/* "never do" chips */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.chip-neg {
  display: inline-flex; align-items: center; gap: 9px; padding: 11px 17px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 14.5px; color: var(--ink-soft);
}
.chip-neg .ic { width: 16px; height: 16px; color: var(--accent-deep); }

/* FAQ */
.faq { margin-top: 8px; max-width: 840px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 0; display: flex; justify-content: space-between; gap: 24px; align-items: center; font-family: var(--sans); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .qic { width: 22px; height: 22px; color: var(--accent-deep); transition: transform .22s ease; flex: none; }
.faq details[open] summary .qic { transform: rotate(45deg); }
.faq .ans { padding: 0 0 26px; color: var(--muted); font-size: 16px; line-height: 1.64; max-width: 72ch; }
.faq .ans em { color: var(--ink-soft); font-style: italic; }

/* Contact cards */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.ccard { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 32px 30px; box-shadow: var(--shadow-sm); }
.ccard .ico { width: 48px; height: 48px; border-radius: 13px; background: var(--accent-wash); color: var(--accent-deep); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.ccard .ico .ic { width: 24px; height: 24px; }
.ccard h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.ccard p { margin-top: 9px; color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.ccard a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.ccard a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Prose (About) */
.prose { max-width: 64ch; }
.prose p { margin-top: 18px; color: var(--ink-soft); font-size: 17px; line-height: 1.72; }
.prose .byline { margin-top: 6px; color: var(--accent-deep); font-weight: 600; font-size: 15px; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 8px; }
.pullstat { margin: 44px auto; padding: 34px 36px; background: var(--accent-wash); border-radius: var(--r-card); text-align: center; max-width: 640px; }
.pullstat .big { font-family: var(--head); font-weight: var(--head-weight); font-size: clamp(1.5rem, 2.6vw, 1.9rem); color: var(--accent-deep); line-height: 1.25; }
.pullstat .src { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* Stakes list (About) */
.stakes { display: flex; flex-direction: column; gap: 16px; margin-top: 40px; }
.stake { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 26px 30px; box-shadow: var(--shadow-sm); }
.stake h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 700; color: var(--ink); }
.stake p { margin-top: 9px; color: var(--muted); font-size: 16px; line-height: 1.62; }

/* Inline reference / citation links */
.ref { color: var(--accent-deep); font-weight: 600; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 55%, transparent); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.ref:hover { text-decoration-color: var(--accent-deep); }

/* Founder letter + signoff */
.prose .signoff { margin-top: 30px; line-height: 1.5; }
.prose .signname { font-family: var(--head); font-weight: var(--head-weight); font-size: 1.6rem; color: var(--accent-deep); display: inline-block; margin-top: 4px; }
.founder-fig { max-width: 620px; margin: 0 auto; }
.founder-fig figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: 14.5px; }

/* Team */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 46px; }
.tmember { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-card); padding: 30px 28px; box-shadow: var(--shadow-sm); }
.tphoto {
  width: 90px; height: 90px; border-radius: 50%; margin-bottom: 20px;
  background-color: var(--surface-warm);
  background-image: repeating-linear-gradient(-45deg, transparent, transparent 7px, color-mix(in srgb, var(--ink) 5%, transparent) 7px, color-mix(in srgb, var(--ink) 5%, transparent) 8px);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
}
.tphoto .ic { width: 26px; height: 26px; color: var(--muted); }
.tmember h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; color: var(--ink); }
.tmember .role { color: var(--accent-deep); font-weight: 600; font-size: 14px; margin-top: 3px; }
.tmember p { margin-top: 12px; color: var(--muted); font-size: 15px; line-height: 1.58; }

/* Legal / policy document */
.legal { max-width: 760px; }
.legal .meta { color: var(--muted); font-size: 14.5px; }
.legal h2 { font-size: 1.45rem; margin-top: 52px; }
.legal h2:first-of-type { margin-top: 36px; }
.legal h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-top: 26px; }
.legal p { margin-top: 16px; color: var(--ink-soft); font-size: 16.5px; line-height: 1.72; }
.legal strong { color: var(--ink); font-weight: 700; }
.legal a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.legal a:hover { text-decoration: underline; text-underline-offset: 3px; }
.legal ul { margin: 16px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.legal li { position: relative; padding-left: 26px; color: var(--ink-soft); font-size: 16px; line-height: 1.62; }
.legal li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.legal .ltable { margin-top: 24px; border: 1px solid var(--border); border-radius: var(--r-card); overflow-x: auto; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 620px; }
.legal th, .legal td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-soft); line-height: 1.5; }
.legal thead th { background: var(--surface-warm); font-family: var(--sans); text-transform: uppercase; font-size: 12px; letter-spacing: .05em; color: var(--ink); }
.legal tbody tr:last-child td { border-bottom: 0; }
.legal .rule { margin: 8px 0; }

/* ============================================================
   Reveal (very restrained)
   ============================================================ */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .stat-row, .founding-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero.h-split .hero-in { grid-template-columns: 1fr; gap: 40px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .plans, .contact-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .mediarow { grid-template-columns: 1fr; gap: 32px; }
  .mediarow.rev .mr-media { order: 0; }
  .checks.cols { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
  section { padding: 60px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .langs-in { padding: 52px 24px; }
  .foot-top { flex-direction: column; }
  .hero-cta { gap: 12px; }
  .btn { width: 100%; }
  .nav-cta .btn { width: auto; }
  .step { grid-template-columns: 1fr; gap: 16px; }
  .contact-grid { gap: 14px; }
  .team-grid { grid-template-columns: 1fr; }
}

/* Curriculum table → stacked labeled cards on small screens */
@media (max-width: 720px) {
  .curriculum { overflow-x: visible; }
  .curriculum table { min-width: 0; display: block; width: 100%; }
  .curriculum thead { display: none; }
  .curriculum tbody, .curriculum tr, .curriculum td { display: block; width: 100%; }
  .curriculum tr { border-bottom: 1px solid var(--border); padding: 10px 0 16px; }
  .curriculum tbody tr:last-child { border-bottom: 0; }
  .curriculum td { border-bottom: 0; padding: 8px 22px; }
  .curriculum td.lvl {
    padding-top: 18px; font-size: 1.15rem;
  }
  .curriculum td[data-label]:not(.lvl)::before {
    content: attr(data-label);
    display: block;
    font-family: var(--sans);
    font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--accent-deep); margin-bottom: 5px;
  }
}
