/* ============================================================
   FirstBench AI — marketing site
   Design philosophy: yellow / white / black. The logo badge is
   the brand identity (never boxed in a tight white chip, never
   paired with a separate "FirstBench" wordmark).
   ============================================================ */

:root {
  --ink:        #161616;
  --ink-soft:   #2a2a2a;
  --muted:      #5f5f5f;
  --muted-2:    #8a8a8a;
  --paper:      #ffffff;
  --cream:      #fffbeb;
  --cream-2:    #fff6d8;
  --yellow:     #f5bc27;
  --yellow-br:  #ffc629;
  --yellow-deep:#e0a200;
  --line:       #ececec;
  --line-soft:  #f2f2f2;
  --board:      #14241f;   /* chalkboard green-black */
  --board-2:    #0f1b17;

  /* 5 skill bands: needs-support → advanced (data scale on the board) */
  --cl-1: #e8705a;  --cl-2: #f0a338;  --cl-3: #f5bc27;  --cl-4: #5fb86b;  --cl-5: #4a93d6;

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --shadow-sm: 0 1px 2px rgba(20,20,20,.06), 0 2px 8px rgba(20,20,20,.04);
  --shadow:    0 8px 30px rgba(20,20,20,.08);
  --shadow-lg: 0 30px 70px -20px rgba(20,20,20,.28);

  --maxw: 1200px;
  --ease: cubic-bezier(.22,.61,.36,1);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-ta: "Noto Sans Tamil", var(--font);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; border-radius: 6px; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(64px, 9vw, 132px) 0; }
.section--tight { padding: clamp(48px, 6vw, 88px) 0; }
.center { text-align: center; }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.display {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
}
.h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.03em; }
.h3 { font-size: clamp(1.3rem, 2.2vw, 1.7rem); }
.lead { font-size: clamp(1.08rem, 1.5vw, 1.32rem); color: var(--muted); line-height: 1.5; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--yellow-deep);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--yellow); border-radius: 2px; }
.ta { font-family: var(--font-ta); }
.hl { color: var(--yellow-deep); }
.mark {
  background: linear-gradient(180deg, transparent 62%, var(--yellow) 62% 92%, transparent 92%);
  padding: 0 .04em;
}

/* ---------- buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 650; font-size: .98rem; line-height: 1;
  padding: 14px 22px; border-radius: 100px; border: 1.5px solid transparent;
  background: var(--bg); color: var(--fg); cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, color .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn--primary { --bg: var(--yellow); --fg: var(--ink); }
.btn--primary:hover { --bg: var(--yellow-br); }
.btn--dark { --bg: var(--ink); --fg: #fff; }
.btn--ghost { --bg: transparent; --fg: var(--ink); border-color: rgba(20,20,20,.16); }
.btn--ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn--lg { padding: 17px 28px; font-size: 1.05rem; }
.btn--on-dark.btn--ghost { --fg: #fff; border-color: rgba(255,255,255,.28); }
.btn--on-dark.btn--ghost:hover { border-color: #fff; }
.btn .arr { transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

/* ---------- pill / chips ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 12px; border-radius: 100px;
  background: var(--cream); border: 1px solid #f1e3b8;
  font-size: .85rem; font-weight: 600; color: var(--ink-soft);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 4px rgba(245,188,39,.22); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s, background .25s;
}
.nav.is-stuck { border-color: var(--line); box-shadow: 0 1px 0 rgba(0,0,0,.02), 0 8px 24px -18px rgba(0,0,0,.25); }
.nav__inner { display: flex; align-items: center; gap: 22px; height: 96px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 84px; width: auto; }
.nav__home { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; color: var(--ink); border: 1px solid var(--line); background: #fff; flex-shrink: 0; transition: background .15s, border-color .15s; }
.nav__home:hover { background: var(--cream); border-color: #efdca0; }
.nav__links { display: flex; align-items: center; gap: 22px; margin-left: 4px; }
.nav__links a { font-size: .95rem; font-weight: 550; color: var(--ink-soft); transition: color .15s; }
.nav__links a:hover { color: var(--ink); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav__cta .signin { font-weight: 600; font-size: .95rem; padding: 9px 6px; }
.nav__burger { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; }
.nav__burger span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding: clamp(48px,7vw,86px) 0 clamp(40px,5vw,64px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 420px at 78% -8%, rgba(245,188,39,.20), transparent 60%),
    radial-gradient(700px 500px at 4% 0%, rgba(245,188,39,.10), transparent 55%),
    linear-gradient(180deg, var(--cream), #fff 62%);
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px,4vw,64px); align-items: center; }
.hero h1 { margin: 18px 0 0; }
.hero .lead { margin: 22px 0 0; max-width: 38ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; align-items: center; color: var(--muted); font-size: .9rem; font-weight: 600; }
.hero__trust b { color: var(--ink); }
.hero__trust .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }

/* ---------- hero visual : blackboard player ---------- */
.board {
  position: relative; border-radius: var(--r-lg);
  background:
    radial-gradient(120% 120% at 80% 0%, #1b2f28, var(--board) 55%, var(--board-2));
  color: #eef3f0; box-shadow: var(--shadow-lg);
  padding: 22px 22px 18px; border: 1px solid rgba(255,255,255,.06);
  overflow: hidden;
}
.board::after { /* chalk dust texture */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.05), transparent 40%),
              radial-gradient(circle at 70% 20%, rgba(255,255,255,.04), transparent 35%);
}
.board__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.board__title { font-size: .82rem; letter-spacing: .04em; color: #b9c9c2; font-weight: 600; }
.board__logo { height: 60px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.board__canvas { font-family: var(--font); }
.board__canvas .step { font-size: 1.5rem; color: #fff; margin: 6px 0; opacity: 0; transform: translateY(6px); }
.board__canvas .step .gold { color: var(--yellow-br); }
.board__canvas sup { font-size: .62em; line-height: 0; vertical-align: super; margin: 0 .06em 0 .02em; }
/* student-learn board: each step on its own line, written in one by one,
   inside a fixed-height viewport that auto-scrolls to follow the newest line */
#learnBoard .board__canvas { height: 152px; overflow: hidden; position: relative; }
#learnBoard .board__scroll { display: flex; flex-direction: column; gap: 12px; position: relative;
  transition: transform .7s var(--ease); will-change: transform; }
#learnBoard .step { font-size: 1.5rem; margin: 0; line-height: 1.1; opacity: 0; transform: translateY(12px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
#learnBoard .step.show { opacity: 1; transform: none; }
#learnBoard .step .note { font-size: .62em; color: #8fb3a4; margin-left: 8px; font-weight: 400; }
#learnBoard .board__progress i { width: 0; transition: width .25s linear; }

/* student-learn: English-medium + your-language audio explainer */
.lcard.expl { border-color: #efdca0; }
.expl__badge { font-size: .72rem; font-weight: 800; color: var(--yellow-deep); background: var(--cream-2); border: 1px solid #efdca0; padding: 5px 10px; border-radius: 999px; }
.expl__topic { font-weight: 800; font-size: 1.05rem; }
.expl__meta { font-weight: 600; color: var(--muted); font-size: .9rem; }
.audioplayer { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; }
.audioplayer__btn { width: 42px; height: 42px; flex-shrink: 0; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center; box-shadow: 0 8px 18px rgba(245,188,39,.4);
  transition: transform .15s var(--ease); }
.audioplayer__btn:hover { transform: scale(1.07); }
.audioplayer__bar { flex: 1; height: 7px; border-radius: 5px; background: #ede9dd; overflow: hidden; cursor: pointer; }
.audioplayer__fill { width: 0; height: 100%; background: linear-gradient(90deg, var(--yellow), var(--yellow-deep)); border-radius: 5px; }
.audioplayer__time { font-size: .82rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 34px; }
.expl__script { background: #fbfbf8; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: .95rem; color: var(--ink-soft); line-height: 1.55; }
.expl__script b { font-style: normal; color: var(--ink); font-weight: 700; }
.expl__note { font-size: .82rem; color: var(--muted); margin-top: 10px; }
.lcard.anim { margin-top: 16px; border-color: #efdca0; }
.animbox { background: #0d0d0d; line-height: 0; position: relative; }
.animbox video { width: 100%; height: auto; max-height: 230px; object-fit: contain; display: block; }
.animbox__logo { position: absolute; top: 10px; right: 12px; height: 76px; width: auto; z-index: 2;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.55)); pointer-events: none; }

/* one-click paper generation — animated demo */
.oneclick { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 44px 0 8px;
  background: var(--cream); border: 1px solid #f1e6c2; border-radius: var(--r-lg); padding: clamp(24px,3vw,40px); }
.oneclick__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.ocChip { font-size: .8rem; font-weight: 700; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 13px; }
.ocChip--no { color: #14794a; border-color: #bfe6cf; background: #f1faf4; }
.oneclick__btn { cursor: pointer; }
.oneclick__btn.pressed { animation: ocPress .42s var(--ease); }
@keyframes ocPress { 45% { transform: scale(.94); box-shadow: 0 4px 14px rgba(245,188,39,.5); } }
.oneclick__btn .bolt { margin-right: 4px; }

.genpaper { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  box-shadow: var(--shadow-lg); padding: 18px; overflow: hidden; min-height: 250px; }
.genpaper__top { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-size: .82rem; font-weight: 700; color: var(--muted); padding-bottom: 12px; }
.genpaper__logo { height: 48px; width: auto; }
.genpaper__bar { height: 3px; background: var(--line-soft); border-radius: 3px; overflow: hidden; margin-bottom: 14px; }
.genpaper__bar i { display: block; height: 100%; width: 0; background: var(--yellow); }
.genpaper__qs { display: flex; flex-direction: column; gap: 3px; }
.gq { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; opacity: 0; transform: translateY(8px);
  transition: opacity .4s var(--ease), transform .4s var(--ease); }
.gq.show { opacity: 1; transform: none; }
.gqn { flex: 0 0 auto; width: 26px; font-weight: 800; color: var(--yellow-deep); font-size: .85rem; }
.gqt { flex: 1; font-size: .9rem; color: var(--ink-soft); }
.gqt sup { font-size: .62em; vertical-align: super; }
.gqok { flex: 0 0 auto; color: #18a558; font-weight: 900; opacity: 0; transform: scale(.4);
  transition: opacity .3s var(--ease), transform .3s cubic-bezier(.18,1.5,.4,1); }
.gq.ok .gqok { opacity: 1; transform: none; }
.genpaper__stamp { position: absolute; right: 16px; bottom: 14px; background: #18a558; color: #fff;
  font-weight: 800; font-size: .92rem; line-height: 1.05; padding: 9px 14px; border-radius: 11px;
  display: flex; flex-direction: column; box-shadow: var(--shadow); opacity: 0; transform: scale(.4) rotate(-14deg);
  transition: opacity .4s var(--ease), transform .45s cubic-bezier(.2,1.7,.4,1); }
.genpaper__stamp small { font-weight: 600; font-size: .68rem; opacity: .92; }
.genpaper.done .genpaper__stamp { opacity: 1; transform: rotate(-6deg); }
@media (max-width: 980px) { .oneclick { grid-template-columns: 1fr; gap: 28px; } }

/* parent drill-down: cursor points at a subject → chapter popup → subtopic popup */
.pdrill { position: absolute; inset: 0; pointer-events: none; z-index: 6; }
.pdrill__cursor { position: absolute; left: 0; top: 0; transform: translate(40%, 60%); opacity: 0;
  transition: transform .9s var(--ease), opacity .3s var(--ease); filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.pdrill__cursor.on { opacity: 1; }
.pdrill__pop { position: absolute; left: 46%; top: 12%; width: 232px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; box-shadow: var(--shadow-lg); padding: 12px 14px; opacity: 0; transform: translateY(10px) scale(.95);
  transform-origin: top center; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.pdrill__pop.on { opacity: 1; transform: translateY(0) scale(1); }
.pdrill__pop.swap { animation: pdSwap .4s var(--ease); }
@keyframes pdSwap { 30% { transform: scale(.97); } }
.pdrill__pop-head { font-size: .82rem; font-weight: 800; color: var(--ink); margin-bottom: 10px; }
.pdrill__lvl { color: var(--muted); font-weight: 700; }
.pdrow { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.pdrow .nm { font-size: .74rem; font-weight: 600; width: 92px; flex: 0 0 auto; color: var(--ink-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pdrow .tk { flex: 1; height: 7px; border-radius: 5px; background: #f0f1f2; overflow: hidden; }
.pdrow .fl { height: 100%; border-radius: 5px; width: 0; transition: width .55s var(--ease); }
.pdrow .pc { font-size: .72rem; font-weight: 800; width: 28px; text-align: right; color: var(--ink); }
.pdrow.target .nm { color: var(--yellow-deep); }

/* ============ animated story tabs (auto-advancing point showcase) ============ */
.storytabs { margin-top: 40px; }
.storytabs__bar { display: flex; gap: 6px; flex-wrap: wrap; position: relative; border-bottom: 2px solid var(--line); margin-bottom: 30px; }
.stab { display: flex; align-items: center; gap: 9px; background: transparent; border: 0; cursor: pointer;
  padding: 12px 16px 14px; border-radius: 12px 12px 0 0; color: var(--muted); font-weight: 700; font-size: .95rem;
  transition: color .25s var(--ease), background .25s var(--ease); }
.stab:hover { color: var(--ink); background: var(--line-soft); }
.stab.on { color: var(--ink); }
.stab__n { width: 24px; height: 24px; border-radius: 7px; background: var(--line-soft); color: var(--muted);
  display: grid; place-items: center; font-size: .82rem; font-weight: 800; transition: all .25s var(--ease); }
.stab.on .stab__n { background: var(--yellow); color: var(--ink); box-shadow: 0 5px 12px rgba(245,188,39,.45); }
.storytabs__progress { position: absolute; left: 0; bottom: -2px; width: 100%; height: 2px; }
.storytabs__progress i { display: block; height: 100%; width: 0; background: var(--yellow); border-radius: 2px; }

.storytabs__panels { position: relative; }
.spanel { display: none; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.spanel.active { display: grid; animation: spanelIn .5s cubic-bezier(.22,1,.36,1); }
@keyframes spanelIn { from { opacity: 0; transform: translate3d(0,12px,0); } to { opacity: 1; transform: none; } }
/* promote continuously-animating elements to their own GPU layer for smoother motion */
.pdrill__cursor, #ml-token, .cl-student, .animbox video, .storytabs__progress i { will-change: transform; }

/* animation demos sit borderless/frameless so the motion reads naturally;
   the players (audio, video, blackboard) keep their frames */
.spanel__media .tdemo,
.spanel__media .media--plain,
.spanel__media .genpaper { border: 0; box-shadow: none; background: transparent; padding: 0; }
.spanel__media .genpaper { min-height: 0; }

/* "coming soon" marker for Tamil-medium / English-to-Tamil features (not yet launched) */
.csoon { display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-size: .6em; font-weight: 900; color: #1a1300;
  background: var(--yellow-br); border-radius: 100px; padding: 3px 10px; line-height: 1;
  text-transform: uppercase; white-space: nowrap; vertical-align: middle;
  transform: translateY(.5px); box-shadow: 0 1px 3px rgba(176,125,0,.35); }
.csoon--pill { font-size: .62rem; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  background: var(--cream-2); border: 1px solid #efdca0; border-radius: 100px; padding: 2px 8px; margin-left: 6px; }

/* story-intro persona photo banners (Higgsfield) */
.storyhero { width: 100%; max-width: 760px; margin: 0 auto 26px; height: clamp(190px, 30vw, 290px);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--line-soft); }
.storyhero img { width: 100%; height: 100%; object-fit: cover; object-position: center 32%; display: block; }

/* "day with FirstBench" video band */
.videoband { max-width: 940px; margin: 32px auto 0; border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); background: #000; line-height: 0; }
.videoband video { width: 100%; height: auto; display: block; }
.spanel__copy h3 { font-size: clamp(1.6rem,3vw,2.2rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.spanel__copy p { color: var(--muted); font-size: 1.05rem; line-height: 1.6; margin: 14px 0 4px; }
.spanel__copy .flist { margin-top: 16px; }

/* generic stagger-pop, replayed by the controller via animation-delay */
.spanel .si { opacity: 0; }
.spanel.active .si { animation: siPop .55s cubic-bezier(.22,1,.36,1) both; will-change: transform, opacity; }
@keyframes siPop { from { opacity: 0; transform: translate3d(0,9px,0); } to { opacity: 1; transform: translate3d(0,0,0); } }

.tdemo { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 18px; }
.tdemo__cap { font-size: .8rem; font-weight: 700; color: var(--muted); margin-bottom: 14px; }
.tbands { display: flex; flex-direction: column; gap: 9px; }
.tband { display: flex; align-items: center; gap: 10px; }
.tband__lab { width: 96px; flex: 0 0 auto; font-size: .72rem; font-weight: 700; }
.tband__dots { display: flex; gap: 5px; }
.tdot { width: 14px; height: 14px; border-radius: 50%; }
.theat { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.theat .tcell { aspect-ratio: 1; border-radius: 5px; }
.tpaper { position: relative; }
.tpq { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: .92rem; }
.tpq:last-of-type { border-bottom: 0; }
.tpn { font-weight: 800; color: var(--yellow-deep); font-size: .82rem; width: 26px; flex: 0 0 auto; }
.tpq span:nth-child(2) { flex: 1; color: var(--ink-soft); }
.tpok { margin-left: auto; font-weight: 900; color: #18a558; }
.tpok.half { color: var(--yellow-deep); }
.tpok.cross { color: #e8705a; }
.tstamp { position: absolute; right: 4px; bottom: 2px; background: #18a558; color: #fff; font-weight: 800; font-size: .86rem;
  line-height: 1.05; padding: 8px 13px; border-radius: 10px; display: flex; flex-direction: column; transform: rotate(-6deg); box-shadow: var(--shadow); }
.tstamp small { font-weight: 600; font-size: .66rem; opacity: .92; }
.tpaper--hand .thand { font-family: "Caveat","Comic Sans MS",cursive; font-size: 1.3rem; color: #1d3a6b; }
.tpaper--hand .thand em { font-style: italic; font-size: .62em; color: var(--muted); font-family: var(--font); }
.tpaper--hand .thand .fix { color: #e8705a; font-style: normal; font-weight: 700; }
.tpaper--hand .thand s { color: #8a6a6a; text-decoration-color: #e8705a; }

/* fill-bars used in student/parent panels */
.fillbar { display: flex; align-items: center; gap: 10px; margin: 9px 0; }
.fillbar__lab { width: 100px; flex: 0 0 auto; font-size: .78rem; font-weight: 600; color: var(--ink-soft); }
.fillbar__track { flex: 1; height: 9px; border-radius: 5px; background: #eef0f1; overflow: hidden; }
.fillbar__track i { display: block; height: 100%; width: 0; border-radius: 5px; }
.spanel.active .fillbar__track i { animation: fbGrow .85s var(--ease) .2s both; }
@keyframes fbGrow { from { width: 0; } to { width: var(--w); } }
.fillbar__pc { width: 32px; text-align: right; font-weight: 800; font-size: .78rem; }

/* mini cards used across student/parent panels */
.tgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ttile { background: #fafafa; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.ttile .k { font-size: .72rem; color: var(--muted); font-weight: 600; }
.ttile .v { font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; margin-top: 2px; }
.ttile .v small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.tnote { background: var(--cream); border: 1px solid #efdca0; border-radius: 12px; padding: 11px 13px; font-size: .86rem; margin-top: 4px; }
.tnote b { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 3px; }
.tnode { display: flex; align-items: center; gap: 11px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; box-shadow: var(--shadow-sm); }
.tnode__ic { width: 40px; height: 40px; border-radius: 10px; background: var(--cream); display: grid; place-items: center; font-size: 20px; flex: 0 0 auto; }
.tnode__t b { font-size: .92rem; } .tnode__t span { display: block; font-size: .76rem; color: var(--muted); }
.tlb { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: #fafafa; border: 1px solid var(--line); margin: 6px 0; font-size: .86rem; }
.tlb.me { background: var(--cream); border-color: #efdca0; }
.tlb__r { width: 20px; font-weight: 800; color: var(--muted); } .tlb.me .tlb__r { color: var(--yellow-deep); }
.tlb__n { flex: 1; font-weight: 600; } .tlb__p { font-weight: 800; font-variant-numeric: tabular-nums; }
.tboard { background: radial-gradient(120% 120% at 80% 0%, #1b2f28, var(--board) 55%, var(--board-2)); border-radius: 12px; padding: 16px 18px; color: #eef3f0; }
.tboard__l { font-family: "Caveat","Comic Sans MS",cursive; font-size: 1.4rem; margin: 4px 0; }
.tboard__l .g { color: var(--yellow-br); }
.tchip { display: inline-block; margin-top: 10px; font-size: .76rem; font-weight: 700; background: rgba(255,255,255,.1); padding: 5px 11px; border-radius: 999px; }

/* Learn panel: left column = copy + blackboard, right column = audio + video */
.spanel--learn { grid-template-columns: 1.05fr 1fr; align-items: start; }
.learn-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.spanel--learn .animbox video { max-height: 148px; }

@media (max-width: 900px) {
  .spanel { grid-template-columns: 1fr; gap: 26px; }
  .spanel__media { order: -1; }
  .stab { padding: 10px 12px; font-size: .85rem; }
  .spanel--learn { grid-template-columns: 1fr; }
}

.board.play .step { animation: chalkIn .5s var(--ease) forwards; }
.board.play .step:nth-child(1){ animation-delay:.05s } .board.play .step:nth-child(2){ animation-delay:.5s }
.board.play .step:nth-child(3){ animation-delay:1s } .board.play .step:nth-child(4){ animation-delay:1.55s }
@keyframes chalkIn { to { opacity:1; transform:none } }
.board__underline { height: 3px; width: 0; background: var(--yellow); border-radius: 3px; margin: 2px 0 14px; }
.board.play .board__underline { animation: ul 1.8s var(--ease) .9s forwards; }
@keyframes ul { to { width: 160px } }
.board__bar { display: flex; align-items: center; gap: 12px; margin-top: 8px; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.1); }
.board__play {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; border: 0; cursor: pointer;
  background: var(--yellow); color: var(--ink); display: grid; place-items: center;
  transition: transform .15s var(--ease);
}
.board__play:hover { transform: scale(1.07); }
.board__progress { flex: 1; height: 5px; border-radius: 4px; background: rgba(255,255,255,.16); overflow: hidden; }
.board__progress i { display: block; height: 100%; width: 34%; background: var(--yellow); border-radius: 4px; }
.board.play .board__progress i { animation: prog 9s linear forwards; }
@keyframes prog { from { width: 4% } to { width: 100% } }
.board__speed { font-size: .8rem; font-weight: 700; color: var(--ink); background: var(--yellow); padding: 6px 10px; border-radius: 8px; cursor: pointer; }
.board__lang { font-size: .8rem; color: #cdd9d3; font-weight: 600; }

.hero__float {
  position: absolute; right: -14px; bottom: 26px; z-index: 3;
  background: #fff; color: var(--ink); border-radius: 14px; box-shadow: var(--shadow);
  padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line);
  font-size: .86rem; font-weight: 600;
}
.hero__float .tick { width: 22px; height: 22px; border-radius: 50%; background: #18a558; color:#fff; display: grid; place-items: center; }
.hero__visual { position: relative; }

/* ---------- hero 5-band classroom (replaces the static board) ---------- */
.classroom {
  position: relative; border-radius: var(--r-lg);
  background: radial-gradient(120% 120% at 80% 0%, #1b2f28, var(--board) 55%, var(--board-2));
  color: #eef3f0; box-shadow: var(--shadow-lg);
  padding: 20px 20px 16px; border: 1px solid rgba(255,255,255,.06); overflow: hidden;
}
.classroom::after { /* chalk-dust texture, shared with .board */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(circle at 20% 80%, rgba(255,255,255,.05), transparent 40%),
              radial-gradient(circle at 70% 20%, rgba(255,255,255,.04), transparent 35%);
}
.classroom__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; position: relative; z-index: 2; }
.classroom__title { font-size: .82rem; letter-spacing: .04em; color: #b9c9c2; font-weight: 600; transition: color .4s var(--ease); }
.classroom__logo { height: 60px; width: auto; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }

.classroom__stage { position: relative; height: 300px; z-index: 1; }
.cl-student {
  position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%;
  background: #cfd8d3; transform: translate(0,0);
  transition: transform 1.05s var(--ease), background-color .8s var(--ease), box-shadow .8s var(--ease);
  will-change: transform;
}
.cl-band-label {
  position: absolute; left: 4px; font-size: .72rem; font-weight: 700; letter-spacing: .01em;
  opacity: 0; transform: translateX(-8px); transition: opacity .5s var(--ease), transform .5s var(--ease);
  text-shadow: 0 1px 4px rgba(0,0,0,.4); pointer-events: none;
}
.classroom.sorted .cl-band-label { opacity: 1; transform: translateX(0); }

.classroom__bar {
  display: flex; align-items: center; gap: 12px; margin-top: 10px; padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.1); position: relative; z-index: 2;
}
.classroom__legend { display: inline-flex; gap: 5px; }
.classroom__legend .cl-d { width: 11px; height: 11px; border-radius: 50%; display: block; }
.classroom__hint { font-size: .8rem; color: #cdd9d3; font-weight: 600; }

/* ============================================================
   MARQUEE / coverage strip
   ============================================================ */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip__inner { display: flex; align-items: center; gap: 14px 40px; flex-wrap: wrap; justify-content: center; padding: 26px 0; }
.strip__label { font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted-2); }
.tag {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink);
  font-size: 1.02rem;
}
.tag .ic { width: 9px; height: 9px; border-radius: 2px; background: var(--yellow); }

/* ============================================================
   SECTION HEADERS
   ============================================================ */
.shead { max-width: 720px; }
.shead.center { margin: 0 auto; }
.shead h2 { margin: 14px 0 0; }
.shead .lead { margin: 18px 0 0; }

/* ============================================================
   FEATURE ROWS
   ============================================================ */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,76px); align-items: center; }
.feature + .feature { margin-top: clamp(72px,9vw,128px); }
.feature--flip .feature__media { order: -1; }
.feature__body h2 { margin: 16px 0 0; }
.feature__body .lead { margin: 18px 0 0; }
.flist { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.flist li { display: flex; gap: 12px; align-items: flex-start; font-size: 1rem; color: var(--ink-soft); }
.flist .ck { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--cream); border: 1px solid #efdca0; color: var(--yellow-deep); display: grid; place-items: center; margin-top: 1px; }
.flist b { color: var(--ink); font-weight: 650; }
.feature__cta { margin-top: 30px; }
.tlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; color: var(--ink); border-bottom: 2px solid var(--yellow); padding-bottom: 2px; }
.tlink .arr { transition: transform .2s var(--ease); }
.tlink:hover .arr { transform: translateX(4px); }

/* media frame */
.media {
  position: relative; border-radius: var(--r-lg); background: var(--cream);
  border: 1px solid #f1e6c2; padding: 26px; box-shadow: var(--shadow);
}
.media--plain { background: #fff; border-color: var(--line); }

/* bilingual lesson card */
.lcard { background: #fff; border-radius: var(--r); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.lcard__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line-soft); }
.lcard__subject { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.langtoggle { display: inline-flex; background: var(--cream); border: 1px solid #efdca0; border-radius: 100px; padding: 3px; }
.langtoggle button { border: 0; background: transparent; font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 100px; cursor: pointer; color: var(--muted); }
.langtoggle button.on { background: var(--yellow); color: var(--ink); }
.lcard__body { padding: 20px 18px 22px; min-height: 168px; transition: opacity .26s var(--ease), filter .26s var(--ease), transform .26s var(--ease); }
.lcard__body.swapping { opacity: 0; filter: blur(5px); transform: translateY(7px); }
.lcard__q { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.lcard__say { color: var(--muted); font-size: .98rem; }
.lcard__say.ta { font-family: var(--font-ta); }
.lcard__voice { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: .82rem; font-weight: 600; color: var(--yellow-deep); }
.wave { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.wave i { width: 3px; background: var(--yellow-deep); border-radius: 2px; animation: wv 1s ease-in-out infinite; }
.wave i:nth-child(2){animation-delay:.15s} .wave i:nth-child(3){animation-delay:.3s} .wave i:nth-child(4){animation-delay:.45s} .wave i:nth-child(5){animation-delay:.6s}
@keyframes wv { 0%,100%{height:4px} 50%{height:14px} }

/* teacher evaluation mock */
.paper { background: #fff; border-radius: 12px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 16px 18px; }
.paper__row { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.paper__row:last-child { border-bottom: 0; }
.paper__row .qn { font-weight: 700; color: var(--muted); width: 30px; flex-shrink: 0; }
.paper__row .body { flex: 1; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 100px; }
.badge--ok { background: #e7f7ee; color: #14794a; }
.badge--warn { background: #fdf3d6; color: #9a6b00; }
.badge--err { background: #fdeaea; color: #c0392b; }
.paper__row .mk { font-weight: 800; color: var(--ink); }
.paper__row .fix { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.paper__row .fix b { color: #c0392b; }

/* parent phone */
.phone { width: 248px; margin: 0 auto; background: #fff; border-radius: 30px; border: 9px solid #1c1c1c; box-shadow: var(--shadow-lg); overflow: hidden; }
.phone__bar { background: var(--ink); color: #fff; padding: 12px 16px 10px; }
.phone__bar small { color: #bdbdbd; font-size: .7rem; }
.phone__bar .kid { font-weight: 700; font-size: 1rem; margin-top: 2px; }
.phone__body { padding: 14px; display: grid; gap: 10px; background: var(--cream); }
.tile { background: #fff; border-radius: 12px; padding: 12px; border: 1px solid var(--line); }
.tile .k { font-size: .72rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tile .v { font-size: 1.35rem; font-weight: 800; margin-top: 2px; }
.tile .v small { font-size: .8rem; color: var(--muted-2); font-weight: 600; }
.tile2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.coach { background: var(--ink); color: #f3f3f3; border-radius: 12px; padding: 12px 13px; font-size: .82rem; line-height: 1.45; }
.coach .who { color: var(--yellow-br); font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }

/* ============================================================
   GRAPH SECTION (dark)
   ============================================================ */
.dark { background: radial-gradient(1000px 600px at 80% -10%, #20312b, var(--board) 55%, var(--board-2)); color: #eaf1ee; }
.dark .lead { color: #aebdb6; }
.dark .eyebrow { color: var(--yellow-br); }
.dark .eyebrow::before { background: var(--yellow-br); }
.graphwrap { position: relative; border-radius: var(--r-lg); background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.08); padding: 22px; min-height: 320px; overflow: hidden; }
.graph-svg { width: 100%; height: 100%; }
.graph-svg .edge { stroke: rgba(245,198,41,.32); stroke-width: 1.4; }
.graph-svg .node circle { fill: #1c2e28; stroke: var(--yellow); stroke-width: 1.6; }
.graph-svg .node.core circle { fill: var(--yellow); stroke: var(--yellow-br); }
.graph-svg .node text { fill: #dfeae5; font-size: 10px; font-weight: 600; font-family: var(--font); }
.graph-svg .node.core text { fill: var(--board); font-weight: 800; }
.gpulse { animation: gp 3s ease-in-out infinite; transform-origin: center; }
@keyframes gp { 0%,100%{ opacity:.5 } 50%{ opacity:1 } }

/* ============================================================
   STAT BAND
   ============================================================ */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }
.stat { padding: 8px 4px; }
.stat .num { font-size: clamp(2.2rem,4vw,3.1rem); font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.stat .num .u { color: var(--yellow-deep); }
.dark .stat .num .u { color: var(--yellow-br); }
.stat .lab { margin-top: 10px; color: var(--muted); font-size: .96rem; font-weight: 550; }
.dark .stat .lab { color: #a9b8b1; }

/* ============================================================
   AUDIENCE CARDS
   ============================================================ */
.cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #efdca0; }
.card__ic { width: 46px; height: 46px; border-radius: 12px; background: var(--cream); border: 1px solid #efdca0; display: grid; place-items: center; font-size: 1.4rem; margin-bottom: 16px; }
.card h3 { font-size: 1.18rem; }
.card p { margin: 8px 0 0; color: var(--muted); font-size: .96rem; }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.card li { font-size: .9rem; color: var(--ink-soft); padding-left: 18px; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: 8px; width: 7px; height: 7px; border-radius: 2px; background: var(--yellow); }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; counter-reset: s; }
.step-c { position: relative; padding: 30px 24px 26px; border-radius: var(--r); background: var(--cream); border: 1px solid #f1e6c2; }
.step-c .n { font-size: .8rem; font-weight: 800; color: var(--yellow-deep); letter-spacing: .1em; }
.step-c h3 { margin: 12px 0 0; font-size: 1.22rem; }
.step-c p { margin: 8px 0 0; color: var(--muted); font-size: .96rem; }

/* ============================================================
   PRICING / CTA
   ============================================================ */
.band { background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(40px,6vw,72px); position: relative; overflow: hidden; }
.band::before { content:""; position:absolute; inset:0; background: radial-gradient(600px 300px at 88% 10%, rgba(245,188,39,.28), transparent 60%); }
.band > * { position: relative; }
.band .lead { color: rgba(255,255,255,.7); }
.band h2 { max-width: 18ch; }
.priceline { display:flex; align-items:baseline; gap:12px; margin: 20px 0 0; flex-wrap: wrap; }
.priceline .amt { font-size: clamp(2.2rem,4vw,3rem); font-weight: 800; color: var(--yellow-br); letter-spacing: -.03em; }
.priceline .per { color: rgba(255,255,255,.7); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { background: #383b40; color: #c6c9ce; padding: 72px 0 36px; border-top: 1px solid #2a2c30; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.foot__brand img { height: 56px; }
.foot__brand p { margin: 16px 0 0; color: #989ca2; max-width: 30ch; font-size: .95rem; }
.foot__col h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: #82868d; font-weight: 700; }
.foot__col ul { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.foot__col a { color: #c6c9ce; font-size: .95rem; transition: color .15s; }
.foot__col a:hover { color: var(--yellow-br); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 3px; }
.foot__bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 54px; padding-top: 26px; border-top: 1px solid #4b4e54; color: #8b8f96; font-size: .88rem; }
.foot__bottom .langs { display: flex; gap: 14px; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; scroll-behavior: auto; }
  .cl-student { transition: none !important; }
  .classroom .cl-band-label { opacity: 1 !important; transform: none !important; }
  .lr-name .up { opacity: 1 !important; transform: none !important; }
  /* scrollytelling collapses to a static final-state scene */
  .evscroll__track { height: auto !important; }
  .evscroll__sticky { position: static !important; height: auto !important; padding: 8px 0; }
  /* blackboard shows all lines without the auto-scroll viewport */
  #learnBoard .board__canvas { height: auto !important; }
  /* story-tab panel items stay visible without the pop animation */
  .spanel .si { opacity: 1 !important; }
  .spanel .fillbar__track i { width: var(--w) !important; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { max-width: 520px; }
  .feature, .feature--flip { grid-template-columns: 1fr; }
  .feature--flip .feature__media { order: 0; }
  .stats { grid-template-columns: repeat(2,1fr); gap: 30px 24px; }
  .cards { grid-template-columns: repeat(2,1fr); }
  .steps { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nav__links { display: none; }
  .nav__burger { display: block; }
  .nav__cta .signin { display: none; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow__step .arr { display: none; }
  .fc-fork { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .stats, .cards { grid-template-columns: 1fr; }
  .foot__top { grid-template-columns: 1fr 1fr; }
  .hero__float { right: 8px; bottom: 12px; }
  .btn--lg { width: 100%; }
  .hero__cta { gap: 10px; }
  /* let the headline wrap naturally instead of clipping on hard breaks */
  .display { font-size: clamp(1.55rem, 6.6vw, 3rem); overflow-wrap: break-word; }
  .hero h1 br { display: none; }
  .h2 br { display: none; }
}

/* ============================================================
   TEACHER-FLOW COMPONENTS
   ============================================================ */

/* "Watch the walkthrough" button */
.watchbtn {
  display: inline-flex; align-items: center; gap: 13px;
  padding: 10px 22px 10px 10px; border-radius: 100px;
  background: #fff; border: 1.5px solid var(--line); cursor: pointer;
  font-weight: 650; font-size: 1rem; color: var(--ink);
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), border-color .2s;
}
.watchbtn:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #efdca0; }
.watchbtn .pl { width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.watchbtn small { display: block; font-weight: 550; color: var(--muted); font-size: .78rem; }

/* video modal */
.modal { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal.open { display: flex; }
.modal__scrim { position: absolute; inset: 0; background: rgba(10,10,10,.78); backdrop-filter: blur(4px); }
.modal__panel { position: relative; width: min(960px, 96vw); background: #0c0c0c; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid rgba(255,255,255,.08); }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; color: #eee; }
.modal__head .t { font-weight: 650; font-size: .98rem; }
.modal__head .t span { color: var(--yellow-br); }
.modal__close { background: rgba(255,255,255,.1); border: 0; color: #fff; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; }
.modal__close:hover { background: rgba(255,255,255,.2); }
.modal__video { aspect-ratio: 16/9; background: #000; display: block; width: 100%; }
.modal__note { padding: 10px 16px 16px; color: #8a8a8a; font-size: .82rem; }

/* "choose your view" workflow selector */
.viewsel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 1000px; margin: 34px auto 0; }
@media (max-width: 860px) { .viewsel { grid-template-columns: 1fr; max-width: 460px; } }
.vcard { display: flex; align-items: center; gap: 16px; text-align: left; padding: 22px 24px; border-radius: var(--r); border: 1.5px solid var(--line); background: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; position: relative; }
.vcard.active { border-color: var(--yellow); background: linear-gradient(180deg, var(--cream), #fff); cursor: pointer; }
.vcard.active:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.vcard.soon { opacity: .72; }
.vcard__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0; background: var(--cream); border: 1px solid #efdca0; }
.vcard.soon .vcard__ic { background: #f4f4f4; border-color: var(--line); }
.vcard__t { display: block; font-weight: 700; font-size: 1.1rem; }
.vcard__s { display: block; color: var(--muted); font-size: .88rem; margin-top: 3px; }
.vcard__go { margin-left: auto; font-weight: 800; color: var(--yellow-deep); font-size: 1.3rem; }
.vcard .soonbadge { margin-left: auto; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-2); background: #f4f4f4; border: 1px solid var(--line); padding: 5px 10px; border-radius: 100px; }

/* ===== student league leaderboard ===== */
.league { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.league__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; background: linear-gradient(180deg, var(--cream), #fff); border-bottom: 1px solid var(--line-soft); }
.league__title { font-weight: 700; font-size: 1.02rem; }
.league__sub { font-size: .82rem; color: var(--yellow-deep); font-weight: 700; margin-top: 3px; }
.league__you { text-align: right; flex-shrink: 0; }
.league__you b { font-weight: 800; font-size: 1.55rem; color: var(--ink); line-height: 1; display: block; }
.league__you small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.league__list { list-style: none; margin: 0; padding: 7px; }
.league__list li { display: flex; align-items: center; gap: 12px; padding: 9px 11px; border-radius: 10px; font-size: .95rem; }
.league__list li.me { background: var(--cream); border: 1px solid #efdca0; }
.lr-rank { width: 22px; text-align: center; font-weight: 800; color: var(--muted-2); flex-shrink: 0; }
.league__list li.podium .lr-rank { color: var(--yellow-deep); }
.lr-av { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.league__list li.me .lr-av { background: var(--yellow); color: var(--ink); }
.lr-name { flex: 1; font-weight: 600; min-width: 0; }
.lr-name .up { color: #14794a; font-size: .76rem; font-weight: 800; margin-left: 6px; display: inline-block; opacity: 0; transform: scale(.4); }
.lr-name .up.pop { animation: upPop .5s var(--ease) forwards; }
@keyframes upPop { 0%{opacity:0;transform:scale(.4) translateY(4px)} 60%{opacity:1;transform:scale(1.25)} 100%{opacity:1;transform:scale(1)} }
.league__list li.climb { transition: transform .9s var(--ease); }

/* ---------- evaluate scrollytelling: upload → grade → mastery map ---------- */
.evscroll { margin: 44px 0 8px; }
.evscroll__track { position: relative; height: 300vh; }
.evscroll__sticky { position: sticky; top: 0; height: 100vh; display: grid; place-items: center; overflow: hidden; }
.evscroll__scene { display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.evscroll__pill {
  display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--yellow-deep); background: #fff; border: 1px solid var(--line); padding: 6px 13px; border-radius: 999px;
  box-shadow: var(--shadow-sm); transition: color .35s var(--ease);
}
.evsteps { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.evstep { display: flex; gap: 14px; align-items: flex-start; opacity: .38; transition: opacity .4s var(--ease); }
.evstep.on { opacity: 1; }
.evstep__n {
  flex: 0 0 auto; width: 30px; height: 30px; border-radius: 9px; background: #fff; border: 1px solid var(--line);
  color: var(--muted); font-weight: 800; display: grid; place-items: center; font-size: .9rem; transition: all .4s var(--ease);
}
.evstep.on .evstep__n { background: var(--yellow); color: var(--ink); border-color: var(--yellow); box-shadow: 0 6px 16px rgba(245,188,39,.4); }
.evstep b { display: block; font-size: 1rem; line-height: 1.3; }
.evstep span { color: var(--muted); font-size: .9rem; }

.evdev { position: relative; height: 380px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); overflow: hidden; }
.evdev__top { height: 40px; border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; gap: 7px; padding: 0 16px; }
.evdev__dot { width: 9px; height: 9px; border-radius: 50%; background: #e2e4e6; }
.evdev__title { margin-left: 8px; font-size: .82rem; color: var(--muted); font-weight: 600; }
.evdev__body { position: absolute; inset: 40px 0 0 0; padding: 18px; }

.evsheet { position: absolute; inset: 18px; background: #fffdf8; border: 1px solid var(--line); border-radius: 10px;
  padding: 22px 18px; transform: translateY(120%); transition: transform .7s var(--ease);
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  background-image: linear-gradient(#eef2ee 1px, transparent 1px); background-size: 100% 56px; background-position: 0 14px; }
.evans { display: flex; align-items: baseline; gap: 10px; }
.evq { flex: 0 0 auto; width: 26px; font-family: var(--font); font-weight: 700; font-size: .78rem; color: var(--muted); }
.evwork { flex: 1; font-family: "Caveat", "Comic Sans MS", cursive; font-size: 1.55rem; line-height: 1; color: #1d3a6b; }
.evwork sup { font-size: .6em; vertical-align: super; }
.evwork .evwrong { text-decoration: line-through; text-decoration-color: #e8705a; text-decoration-thickness: 2px; color: #8a6a6a; }
.evfix { color: #e8705a; font-weight: 700; font-size: .78em; opacity: 0; transform: scale(.5);
  transition: opacity .3s var(--ease), transform .3s cubic-bezier(.18,1.5,.4,1); }
.evfix--note { font-style: italic; }
.evsheet.graded .evfix { opacity: 1; transform: none; }
.evmark { flex: 0 0 auto; margin-left: auto; font-weight: 900; opacity: 0; transform: scale(.4) rotate(-12deg);
  transition: opacity .35s var(--ease), transform .35s cubic-bezier(.18,1.5,.4,1); }
.evmark.tick { color: #18a558; font-size: 22px; }
.evmark.part { color: var(--yellow-deep); font-size: 17px; }
.evmark.cross { color: #e8705a; font-size: 20px; }

.evheat { position: absolute; inset: 18px; display: grid; grid-template-columns: repeat(8, 1fr); gap: 7px; align-content: start; opacity: 0; transition: opacity .5s var(--ease); }
.evheat .evcell { aspect-ratio: 1; border-radius: 5px; background: #eef0f1; transform: scale(.6); opacity: 0; transition: transform .4s cubic-bezier(.18,1.4,.4,1), opacity .4s var(--ease), background-color .4s var(--ease); }
/* responsive overrides — placed AFTER the base rule so they win the cascade */
@media (max-width: 980px) {
  .evscroll__scene { grid-template-columns: 1fr; gap: 24px; }
  .evscroll__track { height: 250vh; }
  .evscroll__device { order: -1; }      /* device on top when stacked */
  .evscroll__copy h3 { margin-top: 12px; }
  .evdev { height: 300px; }
}
.lr-pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.lr-pts small { color: var(--muted); font-weight: 500; font-size: .72rem; }
.promote { display: flex; align-items: center; gap: 8px; margin: 4px 12px; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #14794a; }
.promote::before, .promote::after { content: ""; flex: 1; height: 0; border-top: 2px dashed #bfe6cf; }
.league__foot { padding: 13px 18px; border-top: 1px solid var(--line-soft); font-size: .9rem; color: var(--muted); }
.league__foot b { color: var(--ink); }

/* ===== vertical flowchart (replaces the step-card grids) ===== */
.flowchart { max-width: 740px; margin: 46px auto 0; }
.fc-row { position: relative; display: grid; grid-template-columns: 48px 1fr; gap: 20px; }
.fc-rail { position: relative; display: flex; justify-content: center; }
.fc-rail::before { content: ""; position: absolute; left: 50%; transform: translateX(-50%); top: 0; bottom: 0; width: 2px; background: #f0e2b4; }
.fc-row:first-child .fc-rail::before { top: 22px; }
.fc-row:last-child .fc-rail::before { bottom: auto; height: 22px; }
.fc-row:not(:last-child) .fc-rail::after { content: ""; position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 7px solid #e2c87a; z-index: 1; }
.fc-dot { position: relative; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--yellow-br); font-weight: 800; font-size: 1rem; display: grid; place-items: center; box-shadow: 0 0 0 5px #fff; }
.fc-body { padding-bottom: 22px; min-width: 0; }
.fc-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm); display: flex; gap: 14px; align-items: flex-start; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.fc-card:hover { transform: translateX(3px); box-shadow: var(--shadow); border-color: #efdca0; }
.fc-card .ic { font-size: 1.45rem; line-height: 1.1; flex-shrink: 0; width: 32px; text-align: center; }
.fc-card h4 { font-size: 1.04rem; margin: 0; }
.fc-card p { margin: 5px 0 0; color: var(--muted); font-size: .92rem; line-height: 1.5; }
.fc-card.dark { background: var(--ink); border-color: var(--ink); }
.fc-card.dark h4 { color: #fff; } .fc-card.dark p { color: #b9c2bf; }
.fc-dot.alt { background: var(--yellow); color: var(--ink); }
/* branch */
.fc-forklabel { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .04em; color: var(--muted-2); margin: 12px 0; }
.fc-fork { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fc-fork .fc-card { background: var(--cream); border-color: #f1e6c2; }
.fc-fork .fc-card h4 .br { display: inline-block; font-size: .68rem; font-weight: 800; color: var(--yellow-deep); background: #fff; border: 1px solid #efdca0; border-radius: 6px; padding: 1px 6px; margin-left: 6px; vertical-align: middle; }

/* figure wrapper for inline-SVG diagrams */
.figure { margin: 44px auto 0; max-width: 940px; }
.figure.narrow { max-width: 600px; }
.figframe { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px,3vw,30px); box-shadow: var(--shadow-sm); }
.figframe.cream { background: var(--cream); border-color: #f1e6c2; }
.figframe svg { width: 100%; height: auto; display: block; }
.figure figcaption { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 16px; }
.figure figcaption b { color: var(--ink); font-weight: 650; }
/* inline svg inside a feature media frame */
.media svg, .media--plain svg { width: 100%; height: auto; display: block; }

/* the core loop : numbered process flow */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: f; position: relative; }
.flow__step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 24px 20px; }
.flow__step .fn { width: 38px; height: 38px; border-radius: 50%; background: var(--ink); color: var(--yellow-br); font-weight: 800; display: grid; place-items: center; font-size: 1rem; }
.flow__step h4 { margin: 16px 0 0; font-size: 1.08rem; }
.flow__step p { margin: 8px 0 0; color: var(--muted); font-size: .93rem; }
.flow__step .arr { position: absolute; right: -13px; top: 50%; transform: translateY(-50%); z-index: 2; width: 26px; height: 26px; border-radius: 50%; background: var(--yellow); color: var(--ink); display: grid; place-items: center; font-weight: 800; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.flow__step:last-child .arr { display: none; }

/* big numbered section index */
.sectnum { display: inline-flex; align-items: center; gap: 12px; }
.sectnum .b { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: var(--yellow-br); font-weight: 800; font-size: 1.15rem; display: grid; place-items: center; }
.sectnum .lab { font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow-deep); }

/* detailed spec list (sections 3 & 4) */
.specs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 8px; }
.spec { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; }
.spec:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #efdca0; }
.spec .si { width: 40px; height: 40px; border-radius: 11px; background: var(--cream); border: 1px solid #efdca0; display: grid; place-items: center; font-size: 1.2rem; margin-bottom: 14px; }
.spec h4 { font-size: 1.06rem; }
.spec p { margin: 7px 0 0; color: var(--muted); font-size: .93rem; line-height: 1.5; }
.spec .step-tag { display:inline-block; font-size:.72rem; font-weight:800; letter-spacing:.08em; color:var(--yellow-deep); margin-bottom:10px; }

/* question-paper builder mock */
.builder { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); overflow: hidden; }
.builder__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); background: var(--cream); }
.builder__bar .d { width: 11px; height: 11px; border-radius: 50%; background: #e0d6b0; }
.builder__bar .ttl { font-size: .85rem; font-weight: 700; color: var(--ink-soft); margin-left: 6px; }
.builder__body { padding: 18px; display: grid; gap: 14px; }
.fld { }
.fld .k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 7px; }
.chip { font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 100px; background: #f6f6f6; border: 1px solid var(--line); color: var(--ink-soft); }
.chip.on { background: var(--yellow); border-color: var(--yellow-deep); color: var(--ink); }
.builder__foot { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-top: 1px solid var(--line-soft); }
.builder__foot .gen { font-weight: 700; font-size: .85rem; background: var(--ink); color: #fff; padding: 9px 16px; border-radius: 100px; }
.qprev { background: var(--cream); border: 1px solid #f1e6c2; border-radius: 10px; padding: 14px; font-size: .9rem; }
.qprev .qn { font-weight: 700; }
.qprev .verified { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; color: #14794a; background: #e7f7ee; padding: 3px 9px; border-radius: 100px; margin-top: 8px; }

/* mobile menu */
.mmenu { display: none; position: fixed; inset: 96px 0 0; z-index: 55; background: #fff; padding: 24px; flex-direction: column; gap: 6px; }
.mmenu.open { display: flex; }
.mmenu a { padding: 14px 8px; font-size: 1.1rem; font-weight: 600; border-bottom: 1px solid var(--line-soft); }
.mmenu .btn { margin-top: 16px; }
body.lock { overflow: hidden; }

/* ── flowchart overflow + responsive fork (placed last so it wins source order) ── */
.fc-body { min-width: 0; }
.fc-card > div { min-width: 0; }
.fc-card h4 { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .fc-fork { grid-template-columns: 1fr; }
}

/* ============================================================
   NAV ADDITIONS · language selector
   ============================================================ */
.langsel { position: relative; }
.langsel__btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; border-radius: 100px; border: 1px solid var(--line); background: #fff; font-weight: 650; font-size: .92rem; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.langsel__btn:hover { border-color: var(--ink); }
.langsel__btn .car { transition: transform .2s var(--ease); font-size: .7rem; }
.langsel.open .langsel__btn .car { transform: rotate(180deg); }
.langsel__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 168px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 6px; display: none; z-index: 70; }
.langsel.open .langsel__menu { display: block; }
.langsel__menu button { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 10px; padding: 10px 12px; border: 0; background: transparent; border-radius: 8px; font-size: .95rem; font-weight: 600; color: var(--ink); cursor: pointer; text-align: left; }
.langsel__menu button:hover { background: var(--cream); }
.langsel__menu a { display:flex; align-items:center; width:100%; gap:10px; padding:10px 12px; border-radius:8px; font-size:.95rem; font-weight:600; color:var(--ink); text-decoration:none; cursor:pointer; }
.langsel__menu a:hover { background: var(--cream); }
.langsel__menu button.on { color: var(--yellow-deep); }
.langsel__menu button.on::after { content: "✓"; font-weight: 800; }
.langsel__menu .soon { font-size: .68rem; font-weight: 700; color: var(--muted-2); background: #f4f4f4; border-radius: 100px; padding: 2px 8px; }

/* ============================================================
   FORM MODALS (Contact · Request a demo)  — reuse .modal scrim
   ============================================================ */
.modal__form { background: #fff; color: var(--ink); border-radius: var(--r-lg); width: min(560px, 96vw); box-shadow: var(--shadow-lg); overflow: hidden; }
.modal__form .fhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 26px 4px; }
.modal__form .fhead h3 { font-size: 1.4rem; }
.modal__form .fhead p { margin: 6px 0 0; color: var(--muted); font-size: .95rem; }
.modal__form form { padding: 18px 26px 26px; display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink-soft); }
.field input, .field select, .field textarea { font-family: var(--font); font-size: .98rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--ink); width: 100%; transition: border-color .15s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--yellow); box-shadow: 0 0 0 3px rgba(245,188,39,.2); }
.field textarea { resize: vertical; min-height: 120px; }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.modal__form .fclose { background: #f4f4f4; border: 0; width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 1.05rem; color: var(--ink); flex-shrink: 0; }
.modal__form .fclose:hover { background: #e9e9e9; }
.fsubmit { margin-top: 4px; }
.fdone { display: none; padding: 40px 26px 46px; text-align: center; }
.fdone.show { display: block; }
.fdone .tick { width: 56px; height: 56px; border-radius: 50%; background: #e7f7ee; color: #18a558; display: grid; place-items: center; font-size: 1.8rem; margin: 0 auto 16px; }
.fdone h3 { font-size: 1.3rem; }
.fdone p { color: var(--muted); margin: 8px 0 0; }
form.hide { display: none; }

/* ============================================================
   "WHAT'S INSIDE" dark section
   ============================================================ */
.inside { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 28px; margin-top: 48px; }
.inside__col h3 { font-size: .82rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--yellow-br); }
.inside__col ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.inside__col li { display: flex; align-items: center; gap: 11px; font-size: 1.05rem; font-weight: 600; color: #eef3f0; }
.inside__col li .ic { width: 8px; height: 8px; border-radius: 2px; background: var(--yellow); flex-shrink: 0; }
.inside__col li small { color: #9fb0a9; font-weight: 500; font-size: .82rem; }
.inside__col .note { margin-top: 8px; color: #9fb0a9; font-size: .86rem; }

/* hero figure (product collage) */
.herofig { position: relative; }
@media (max-width: 980px){ .inside { grid-template-columns: 1fr; gap: 30px; } }

/* nav responsive for the bigger header */
@media (max-width: 1080px){ .nav__links { gap: 16px; } .nav__inner { gap: 16px; } }
@media (max-width: 980px){
  .nav__home { display: none; }
  .nav__cta .langsel { display: none; }
  .nav__cta .btn--primary { display: none; } /* demo CTA lives in the mobile menu + page */
  .brand img { height: 64px; }
  .nav__inner { height: 80px; }
  .mmenu { inset: 80px 0 0; }
}

/* ============================================================
   NAV · Courses dropdown (mega-menu)
   ============================================================ */
.navdrop { position: relative; }
.navdrop__btn { display: inline-flex; align-items: center; gap: 5px; font-family: inherit; font-size: .95rem; font-weight: 550; color: var(--ink-soft); background: none; border: 0; cursor: pointer; padding: 0; }
.navdrop__btn:hover { color: var(--ink); }
.navdrop__btn .car { font-size: .62rem; transition: transform .2s var(--ease); }
.navdrop.open .navdrop__btn .car { transform: rotate(180deg); }
.navdrop__panel { position: absolute; left: 50%; transform: translateX(-50%); top: calc(100% + 20px); width: 600px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 22px; display: none; z-index: 70; }
.navdrop.open .navdrop__panel { display: block; }
.cn-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 6px 24px; align-items: start; }
.cn-h { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.cn-col a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; font-size: .94rem; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cn-col a:hover { background: var(--cream); }
.cn-col a .ic { width: 7px; height: 7px; border-radius: 2px; background: var(--yellow); flex-shrink: 0; }
.cn-col a small { color: var(--muted); font-weight: 500; font-size: .8rem; }
.cn-meta { border-left: 1px solid var(--line-soft); padding-left: 20px; }
.cn-tags { font-size: .95rem; font-weight: 700; color: var(--ink); }
.cn-tags .sub { color: var(--muted); font-weight: 500; font-size: .8rem; }
/* mobile-menu courses block */
.mmenu .mm-courses { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 12px; }
.mmenu .mm-courses .cn-h { padding: 0 8px; }
.mmenu .mm-courses a { font-size: 1rem; padding: 10px 8px; border: 0; }


/* ---------- hero flow diagram (white card, replaces the dark classroom) ---------- */
.heroflow{position:relative;border-radius:var(--r-lg);color:var(--ink);overflow:hidden;padding:18px 18px 14px;
  background:#ffffff;
  box-shadow:var(--shadow-lg);border:1px solid rgba(20,20,20,.07);
  --cl-1:#e8705a;--cl-2:#e0922a;--cl-3:#d8a200;--cl-4:#4fa85f;--cl-5:#3f86c9}
.heroflow__top{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}
.heroflow__cap{font-size:.82rem;letter-spacing:.02em;color:#6f6a5e;font-weight:600}
.heroflow__cap b{color:var(--ink)}
.heroflow svg{display:block;width:100%;height:auto}
.heroflow__bar{display:flex;align-items:center;gap:12px;margin-top:8px;padding-top:11px;border-top:1px solid rgba(20,20,20,.12)}
.heroflow__legend{display:inline-flex;gap:5px}
.heroflow__legend i{width:11px;height:11px;border-radius:50%;display:block}
.heroflow__hint{font-size:.8rem;color:#6f6a5e;font-weight:600}
.heroflow__hint b{color:var(--ink)}
@media (max-width:640px){.heroflow__hint{font-size:.74rem}}


/* ---------- teacher step 1: 40 personal tutors ---------- */
.ttutor{display:flex;flex-direction:column;gap:8px}
.tt-row{display:flex;align-items:center;gap:10px}
.tt-lab{width:92px;flex:0 0 auto;font-size:.7rem;font-weight:800;letter-spacing:.01em}
.tt-pills{display:flex;gap:5px}
.ttutor .tpill{position:relative;width:18px;height:18px;border-radius:6px;display:inline-block;box-shadow:inset 0 0 0 1px rgba(0,0,0,.05);animation:tutorPop .7s both}
@keyframes tutorPop{0%{opacity:0;transform:scale(.4)}60%{transform:scale(1.12)}100%{opacity:1;transform:scale(1)}}
.ttutor__foot{display:flex;align-items:center;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line)}
.ttutor__loop{display:inline-flex;align-items:center;gap:6px;font-size:.72rem;font-weight:800;color:var(--ink);flex-wrap:wrap}
.ttutor__loop i{font-style:normal;color:#bdb8ab}
.ttutor__loop span{background:#fff7e0;border:1px solid #f0e2b6;border-radius:20px;padding:3px 9px}
.ttutor__count{margin-left:auto;font-size:.72rem;font-weight:800;color:#c98f00;background:#fff7e0;border:1px solid #f0e2b6;border-radius:20px;padding:4px 10px;white-space:nowrap}

/* ---------- teacher step 2: mastery heatmap ---------- */
.tmap{display:flex;flex-direction:column;gap:6px}
.tmrow{display:flex;align-items:center;gap:8px}
.tm-lab{width:120px;flex:0 0 auto;font-size:.72rem;font-weight:700;color:var(--ink);display:flex;align-items:center;gap:5px}
.tm-cells{display:flex;gap:5px;flex:1}
.tmap .tcell{flex:1;aspect-ratio:1;max-width:30px;border-radius:5px;animation:cellPop .5s both}
@keyframes cellPop{0%{opacity:0;transform:scale(.3)}100%{opacity:1;transform:scale(1)}}
.tmrow--risk .tm-lab{color:var(--cl-1)}
.tm-risk{font-size:.58rem;font-weight:900;color:#fff;background:var(--cl-1);border-radius:5px;padding:1px 5px;letter-spacing:.03em;animation:riskPulse 1.8s ease-in-out infinite}
@keyframes riskPulse{0%,100%{box-shadow:0 0 0 0 rgba(232,112,90,.45)}50%{box-shadow:0 0 0 5px rgba(232,112,90,0)}}
.tm-reteach{margin-left:6px;font-size:.64rem;font-weight:800;color:var(--ink);background:#fff7e0;border:1px solid #f0e2b6;border-radius:14px;padding:2px 8px;white-space:nowrap}
.tmap__foot{display:flex;align-items:center;gap:8px;margin-top:13px;padding-top:11px;border-top:1px solid var(--line);font-size:.7rem;font-weight:700;color:var(--muted)}
.tmap__scale{display:inline-flex;gap:3px}
.tmap__scale i{width:13px;height:13px;border-radius:3px;display:block}
@media (max-width:560px){.tm-lab{width:96px;font-size:.66rem}.tt-lab{width:74px}}


/* ---------- story-tabs glassy prev/next navigation ---------- */
.storytabs{position:relative}
.storytabs__nav{position:absolute;top:55%;transform:translateY(-50%);z-index:6;
  width:48px;height:48px;border-radius:50%;display:grid;place-items:center;color:var(--ink);cursor:pointer;
  background:rgba(255,255,255,.5);-webkit-backdrop-filter:blur(11px) saturate(1.35);backdrop-filter:blur(11px) saturate(1.35);
  border:1px solid rgba(255,255,255,.75);box-shadow:0 10px 28px rgba(20,20,20,.16),inset 0 1px 0 rgba(255,255,255,.7);
  transition:transform .15s var(--ease),background .15s,box-shadow .15s}
.storytabs__nav:hover{background:rgba(255,255,255,.85);box-shadow:0 14px 34px rgba(20,20,20,.2),inset 0 1px 0 rgba(255,255,255,.8);transform:translateY(-50%) scale(1.08)}
.storytabs__nav:active{transform:translateY(-50%) scale(.95)}
.storytabs__nav:focus-visible{outline:3px solid var(--yellow);outline-offset:2px}
.storytabs__nav svg{display:block}
.storytabs__nav--prev{left:-8px}
.storytabs__nav--next{right:-8px}
@media (max-width:900px){.storytabs__nav{width:42px;height:42px}.storytabs__nav--prev{left:2px}.storytabs__nav--next{right:2px}}


/* ---------- learn panel: balance columns + larger 16:9 animation ---------- */
.spanel--learn .animbox{aspect-ratio:16/9;background:#0d0d0d}
.spanel--learn .animbox video{max-height:none;height:100%;width:100%;object-fit:cover}
.lcard.expl .lcard__body{display:flex;flex-direction:column;gap:12px}


/* ---------- story-tabs arrows: keep them in the side gutters, never over content ---------- */
.storytabs{padding:0 60px}
.storytabs__nav--prev{left:6px}
.storytabs__nav--next{right:6px}
@media (max-width:760px){
  .storytabs{padding:0 42px}
  .storytabs__nav{width:38px;height:38px}
  .storytabs__nav--prev{left:0}
  .storytabs__nav--next{right:0}
}
@media (max-width:480px){
  .storytabs{padding:0 34px}
  .storytabs__nav{width:34px;height:34px}
}


/* ---------- fix: form modals were rendered UNDER the blur scrim (looked blank) ---------- */
.modal__form{position:relative;z-index:2}
.modal__panel{z-index:2}


/* ---------- story-tabs arrows as flex columns (never overlap content) ---------- */
.storytabs{padding:0}
.storytabs__navrow{display:flex;align-items:center;gap:12px}
.storytabs__navrow>.storytabs__panels{flex:1 1 auto;min-width:0}
.storytabs__nav{position:static;transform:none;flex:0 0 auto;align-self:center;top:auto;left:auto;right:auto}
.storytabs__nav:hover{transform:scale(1.08)}
.storytabs__nav:active{transform:scale(.95)}
@media (max-width:760px){
  .storytabs__navrow{gap:5px}
  .storytabs__nav{width:36px;height:36px}
}


/* ---------- mobile: arrows wrap to a centered row below the panels (no squeeze/overflow) ---------- */
@media (max-width:760px){
  .storytabs__navrow{flex-wrap:wrap;justify-content:center;gap:14px}
  .storytabs__navrow>.storytabs__panels{flex:0 0 100%;width:100%;min-width:0;order:-1}
  .storytabs__nav{width:44px;height:44px}
}

/* ============================ CINEMATIC HERO ============================ */
.chero{position:relative;height:100vh;min-height:620px;max-height:940px;overflow:hidden;color:#fff;margin-top:-96px}
.chero__poster{position:absolute;inset:0;z-index:2;background:#16201c url('cinematic-hero-poster.jpg') center/cover no-repeat;animation:cheroZoom 24s ease-in-out infinite alternate;transition:opacity .9s ease}
@keyframes cheroZoom{from{transform:scale(1.03)}to{transform:scale(1.13)}}
.chero__bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:1}
.chero.playing .chero__poster{opacity:0;pointer-events:none}
.chero__scrim{position:absolute;inset:0;z-index:3;background:
  linear-gradient(180deg, rgba(8,10,12,.58) 0%, rgba(8,10,12,.12) 22%, rgba(8,10,12,.12) 56%, rgba(8,10,12,.74) 100%),
  radial-gradient(120% 80% at 50% 42%, rgba(8,10,12,0) 42%, rgba(8,10,12,.34) 100%)}
.chero__center{position:absolute;inset:0;z-index:4;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:96px 24px 0}
.chero__eyebrow{display:inline-flex;align-items:center;gap:9px;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.26);
  -webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);color:#fff;font-size:.84rem;font-weight:700;padding:8px 16px;border-radius:999px;margin-bottom:22px}
.chero__eyebrow .dot{width:7px;height:7px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 4px rgba(245,188,39,.3)}
.chero__h1{font-size:clamp(2.1rem,5.6vw,4.4rem);font-weight:800;letter-spacing:-1.5px;line-height:1.05;color:#fff;text-shadow:0 4px 40px rgba(0,0,0,.4);max-width:20ch}
.chero__h1 .hl{color:var(--yellow-br)}
.chero__lead{margin:22px auto 0;max-width:56ch;font-size:clamp(1rem,1.4vw,1.18rem);font-weight:500;color:rgba(255,255,255,.92);line-height:1.5;text-shadow:0 2px 20px rgba(0,0,0,.4)}
.chero__lead .ta{color:#ffe08a}
.chero__cta{display:flex;gap:14px;justify-content:center;margin-top:32px;flex-wrap:wrap}
.chero .btn--ghost{color:#fff;border-color:rgba(255,255,255,.5);background:rgba(255,255,255,.08);-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.chero .btn--ghost:hover{background:rgba(255,255,255,.16)}
.chero__strip{position:absolute;left:0;right:0;bottom:26px;z-index:4;display:flex;align-items:center;justify-content:center;gap:10px 24px;flex-wrap:wrap;padding:0 20px;color:#fff;font-weight:700;font-size:.9rem;text-shadow:0 1px 10px rgba(0,0,0,.6)}
.chero__strip .lbl{text-transform:uppercase;letter-spacing:.14em;font-size:.7rem;color:rgba(255,255,255,.78)}
.chero__strip .tag{display:inline-flex;align-items:center;gap:7px;color:#fff}
.chero__strip .tag i{width:8px;height:8px;border-radius:2px;background:var(--yellow);display:block}
/* nav transparent while over the hero */
.nav--over{background:transparent!important;-webkit-backdrop-filter:none!important;backdrop-filter:none!important;border-color:transparent!important;box-shadow:none!important}
.nav--over .nav__links > a,.nav--over .navdrop__btn{color:#fff}
.nav--over .nav__links > a:hover,.nav--over .navdrop__btn:hover{color:#fff;opacity:.82}
.nav--over .langsel__btn{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.42);color:#fff}
.nav--over .nav__home{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.42);color:#fff}
.nav--over .nav__burger span{background:#fff}
.nav--over .brand img{filter:drop-shadow(0 3px 12px rgba(0,0,0,.45))}
/* flow showcase section (the card kept below the hero) */
.flowsec{padding:clamp(46px,6vw,84px) 0}
.flowsec__card{max-width:600px;margin:26px auto 0}
@media (max-width:860px){
  .chero{height:auto;min-height:0;max-height:none;padding:116px 0 84px;margin-top:-80px}
  .chero__center{position:relative;z-index:5;padding:0 22px}
  .chero__strip{position:static;margin-top:30px}
  .chero__scrim{background:linear-gradient(180deg,rgba(8,10,12,.66) 0%,rgba(8,10,12,.5) 50%,rgba(8,10,12,.74) 100%)}
  .chero__h1{font-size:clamp(1.5rem,6.6vw,2.3rem);max-width:18ch}
}

/* ---------- teacher step 1: live tutoring cards ---------- */
.ttut{display:flex;flex-direction:column;gap:12px}
.ttut__chip{align-self:flex-start;background:var(--ink);color:#fff;font-size:.78rem;font-weight:800;padding:7px 14px;border-radius:20px;box-shadow:0 4px 14px rgba(20,20,20,.16)}
.ttut__chip b{color:var(--yellow-br)}
.ttut__card{background:#fff;border:1px solid #ececec;border-radius:16px;padding:16px 18px 17px;box-shadow:0 10px 30px rgba(20,20,20,.06)}
.ttut__who{display:flex;align-items:center;gap:9px;margin-bottom:18px}
.ttut__name{font-size:1.06rem;font-weight:800;color:var(--ink)}
.ttut__band{font-size:.72rem;font-weight:700;color:#fff;background:#e0922a;border-radius:20px;padding:3px 10px;transition:background .3s}
.ttut__live{margin-left:auto;font-size:.7rem;font-weight:800;color:#3f9150;display:inline-flex;align-items:center;gap:5px}
.ttut__live::before{content:"";width:7px;height:7px;border-radius:50%;background:#3f9150;animation:tlive 1.2s infinite}
@keyframes tlive{0%,100%{opacity:1}50%{opacity:.2}}
.ttut__steps{display:flex;align-items:flex-start;margin-bottom:14px}
.tnode{display:flex;flex-direction:column;align-items:center;gap:7px;flex:0 0 auto;width:66px;text-align:center}
.tnode>i{width:27px;height:27px;border-radius:50%;border:2px solid #d9d4c8;background:#fff;display:flex;align-items:center;justify-content:center;font-size:.74rem;font-style:normal;font-weight:900;color:#b9b2a3;transition:border-color .3s,background .3s,color .3s,box-shadow .3s}
.tnode>b{font-size:.66rem;font-weight:700;color:#9a958a;transition:color .3s}
.tnode.is-active>i{border-color:var(--yellow);background:#fff7e0;color:#b07d00;box-shadow:0 0 0 4px rgba(245,188,39,.18)}
.tnode.is-active>b{color:var(--ink)}
.tnode.is-done>i{border-color:#4fa85f;background:#4fa85f;color:#fff}
.tnode.is-done>b{color:#3f8f50}
.tcon{flex:1;height:3px;background:#eceae2;border-radius:3px;overflow:hidden;margin-top:12px}
.tcon>i{display:block;height:100%;width:0;background:#4fa85f;border-radius:3px;transition:width .12s linear}
.ttut__stage{font-size:.8rem;font-weight:700;color:#6f6a5e;min-height:1.15em}
.ttut__just{font-size:.76rem;font-weight:700;color:#3f8f50;background:#eaf6ee;border:1px solid #cfe9d8;border-radius:10px;padding:8px 12px;opacity:0}
.ttut__just.flash{animation:tjust 2.6s ease}
@keyframes tjust{0%{opacity:0;transform:translateY(5px)}12%{opacity:1;transform:none}82%{opacity:1}100%{opacity:.25}}
.ttut__foot{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;padding-top:13px;border-top:1px solid var(--line)}
.ttut__count{font-size:.78rem;font-weight:700;color:var(--muted);display:inline-flex;align-items:baseline;gap:4px}
.ttut__count b{font-size:1.5rem;font-weight:900;color:#3f9150;font-variant-numeric:tabular-nums;min-width:1.6ch;text-align:right}
.ttut__par{font-size:.72rem;font-weight:700;color:var(--muted);display:inline-flex;align-items:center;gap:6px}
.ttut__par::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--yellow);box-shadow:0 0 0 3px rgba(245,188,39,.2)}
@media (max-width:560px){.tnode{width:54px}.tnode>b{font-size:.6rem}}

/* ---------- student step 3: mastery journey (top-to-bottom story) ---------- */
.mjourney{display:flex;flex-direction:column;gap:18px}
.mj__steps{list-style:none;margin:0;padding:0}
.mj__step{position:relative;display:flex;align-items:flex-start;gap:14px;padding-bottom:18px;opacity:.32;transform:translateY(4px);
  transition:opacity .45s ease,transform .45s cubic-bezier(.2,.8,.3,1)}
.mj__step:last-child{padding-bottom:0}
.mj__step.in{opacity:1;transform:none}
/* connector line between dots */
.mj__step::before{content:"";position:absolute;left:13px;top:26px;bottom:0;width:2px;background:#e7e3d8;transition:background .4s ease}
.mj__step:last-child::before{display:none}
.mj__step.done::before{background:#54ab63}
.mj__dot{flex:0 0 auto;width:28px;height:28px;border-radius:50%;border:2px solid #ddd8cc;background:#fff;
  display:flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:900;color:#bcb5a6;z-index:1;
  transition:border-color .3s,background .3s,color .3s,box-shadow .3s,transform .3s}
.mj__step.active .mj__dot{border-color:var(--yellow);background:#fff7e0;color:#b07d00;box-shadow:0 0 0 5px rgba(245,188,39,.16)}
.mj__step.done .mj__dot{border-color:#4fa85f;background:#4fa85f;color:#fff;transform:scale(1.04)}
.mj__step.done .mj__dot::after{content:"✓"}
.mj__body{display:flex;flex-direction:column;gap:3px;padding-top:3px}
.mj__body b{font-size:.95rem;font-weight:800;color:var(--ink)}
.mj__body i{font-size:.78rem;font-style:normal;color:#6f6a5e}
.mj__tag{margin-left:auto;align-self:center;font-size:.6rem;font-weight:900;text-transform:uppercase;letter-spacing:.03em;
  color:#fff;border-radius:20px;padding:3px 10px;white-space:nowrap}
.mj__tag--gap{background:#e8705a}
.mj__tag--ok{background:#4fa85f}
.mj__step--win .mj__dot{border-color:#3f9150;background:#fff7e0;color:#c98f00}
.mj__step--win.done .mj__dot{background:#f5bc27;border-color:#e0a200;color:#161616;box-shadow:0 0 0 6px rgba(245,188,39,.22)}
.mj__step--win.done .mj__dot::after{content:"★"}
.mj__step--win .mj__body b{color:#3f8f50}
.mj__meter{display:flex;align-items:center;gap:11px;padding-top:14px;border-top:1px solid var(--line)}
.mj__lab{font-size:.66rem;font-weight:800;color:var(--muted);white-space:nowrap;text-transform:uppercase;letter-spacing:.04em}
.mj__track{flex:1;height:10px;border-radius:6px;background:#eceae2;overflow:hidden}
.mj__track>i{display:block;height:100%;width:0;border-radius:6px;
  background:linear-gradient(90deg,#e8705a,#e0922a,#f5bc27 70%,#4fa85f);transition:width .6s cubic-bezier(.3,.85,.3,1)}
@media (max-width:560px){.mj__body b{font-size:.88rem}.mj__body i{font-size:.72rem}.mj__tag{font-size:.55rem;padding:2px 7px}}
/* ---------- teacher step 2: class mastery report (stacked bars) ---------- */
.crep{display:flex;flex-direction:column;gap:9px}
.crow{display:flex;align-items:center;gap:10px}
.crow__lab{width:120px;flex:0 0 auto;font-size:.74rem;font-weight:700;color:var(--ink);display:flex;align-items:center;gap:6px}
.crow__bar{flex:1;height:18px;border-radius:6px;overflow:hidden;display:flex;background:#f1efe9;transform-origin:left}
.crep .crow__bar{animation:barIn .8s both cubic-bezier(.2,.7,.2,1)}
@keyframes barIn{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.crow__bar i{height:100%}
.crow--risk .crow__lab{color:var(--cl-1)}
.crep .risk{font-size:.58rem;font-weight:900;color:#fff;background:var(--cl-1);border-radius:5px;padding:1px 5px;letter-spacing:.03em}
.crep .reteach{font-size:.64rem;font-weight:800;color:var(--ink);background:#fff7e0;border:1px solid #f0e2b6;border-radius:14px;padding:3px 9px;white-space:nowrap;margin-left:8px}
.crep__foot{display:flex;align-items:center;gap:8px;margin-top:14px;padding-top:12px;border-top:1px solid var(--line);font-size:.7rem;font-weight:700;color:var(--muted)}
.crep__foot .leg{display:inline-flex;gap:4px}.crep__foot .leg i{width:12px;height:12px;border-radius:3px;display:block}
@media (max-width:560px){.crow__lab{width:96px;font-size:.68rem}}

/* ---------- teacher tab 5: "needs you" escalation card + pairing ---------- */
.wcard{border:1.5px solid #f0d98a;background:#fffaf0;border-radius:14px;padding:13px 15px}
.wcard__h{font-size:.92rem;font-weight:800;margin-bottom:9px}
.wcard__r{display:flex;gap:10px;font-size:.8rem;font-weight:600;color:var(--ink-soft);padding:4px 0;line-height:1.45}
.wcard__r .wk{flex:0 0 84px;font-size:.66rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#a5895a;padding-top:2px}
.wcard__say span:last-child{font-style:italic;color:var(--ink);font-weight:650}
.wpair{display:flex;gap:10px;align-items:flex-start;border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:11px 13px;margin-top:10px;font-size:.8rem;font-weight:600;color:var(--ink-soft);line-height:1.45}
.wpair__ic{font-size:1.05rem}
.wnote{font-size:.7rem;font-weight:700;color:var(--muted);text-align:center;margin-top:10px}

/* ---------- student "Stuck?" funnel ---------- */
.tapgrid{display:flex;flex-wrap:wrap;gap:8px}
.tapchip{border:1.5px solid var(--line);border-radius:30px;padding:8px 14px;background:#fff;font-weight:700;font-size:.78rem;color:var(--ink-soft)}
.tapchip.on{background:var(--yellow);border-color:var(--yellow-deep);color:var(--ink);font-weight:800;box-shadow:0 0 0 4px rgba(245,188,39,.16)}
.probe{display:flex;align-items:center;gap:9px;margin-top:12px;font-size:.78rem;font-weight:600;color:var(--ink-soft)}
.probe__lab{font-size:.62rem;font-weight:900;text-transform:uppercase;letter-spacing:.04em;color:#fff;background:var(--ink);border-radius:20px;padding:4px 10px;flex:0 0 auto}
.diagcard{margin-top:12px;border:1.5px solid #cdebd6;background:#f1faf4;border-radius:12px;padding:11px 14px;font-size:.82rem;font-weight:600;color:var(--ink-soft);line-height:1.5}
.diagcard b{color:var(--green, #14794a)}
.diagcard>b:first-child{color:#14794a}
.diagcard span{font-size:.78rem}

/* ---------- student progress: mission + readiness + chapter card ---------- */
.missionchip{display:inline-block;border:1.5px solid #f0d98a;background:#fffaf0;border-radius:24px;padding:7px 14px;font-size:.82rem;font-weight:700;margin-bottom:12px}
.fillbar__pct{font-size:.74rem;font-weight:900;width:38px;text-align:right}
.chcard{margin-top:12px;border:1.5px solid var(--line);background:#fff;border-radius:12px;padding:10px 13px;font-size:.78rem;font-weight:600;color:var(--ink-soft)}

/* ---------- dual-exam section ---------- */
.dual{display:grid;grid-template-columns:1.5fr 1fr;gap:34px;align-items:center;margin-top:40px}
.dual__spine{background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);padding:22px 22px 18px;box-shadow:var(--shadow)}
.dual__lane{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.dual__lab{flex:0 0 100%;font-size:.64rem;font-weight:900;text-transform:uppercase;letter-spacing:.05em;color:#a59f92;margin-bottom:7px}
.dnode{border:1.5px solid var(--line);border-radius:10px;padding:8px 12px;font-size:.78rem;font-weight:700;background:#fcfbf7;color:var(--ink-soft)}
.dnode.done{border-color:#cdebd6;background:#f1faf4;color:var(--ink)}
.dnode.star{border-color:#4fa85f;background:#eaf6ee;font-weight:800}
.dnode.ext{border-color:var(--yellow-deep);background:#fff7e0;color:var(--ink);font-weight:700;animation:dpulse 2.6s ease-in-out infinite}
.dnode.own{border-color:#cfe0f0;background:#f2f7fc}
@keyframes dpulse{0%,100%{box-shadow:0 0 0 0 rgba(224,162,0,.0)}50%{box-shadow:0 0 0 6px rgba(224,162,0,.14)}}
.darr{color:#b9b2a3;font-weight:800}
.dual__branch{display:flex;align-items:center;gap:9px;margin:10px 0 16px 26px;flex-wrap:wrap}
.dbr{font-size:1.15rem;color:var(--yellow-deep);font-weight:900}
.dtag{font-size:.68rem;font-weight:700;color:#8a857a}
.dual__lane--own{margin-top:6px;padding-top:14px;border-top:1px dashed var(--line)}
.dual__points{list-style:none;margin:0;padding:0;display:grid;gap:13px}
.dual__points li{display:flex;gap:10px;font-size:.95rem;font-weight:550;color:var(--ink-soft);line-height:1.5}
.dual__points .ck{color:#18a558;font-weight:900}
@media (max-width:880px){.dual{grid-template-columns:1fr;gap:22px}}
