/* ==========================================================================
   Ohemi landing page v2
   Palette, type and stage colours match ohemi_app_v2 (tailwind.config.js, app.css)
   ========================================================================== */

@font-face { font-family: "DM Sans"; src: url("../assets/fonts/dm-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Plus Jakarta Sans"; src: url("../assets/fonts/plus-jakarta-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --ink: #292634;
  --ink-2: #4a4458;
  --muted: #76717f;
  --line: #e8e5ef;
  --purple: #7056c8;
  --purple-600: #5d44b3;
  --purple-700: #4a3596;
  --purple-50: #f6f3fe;
  --pink: #f41272;
  --pink-soft: #da4584;
  --lilac: #f0ebfc;
  --mint: #e3f1eb;
  --peach: #fbe7dc;
  --butter: #faf0cf;
  --bg: #fdfcfa;
  --surface: #ffffff;
  --st-warm: #e2c35a;
  --st-input: #7fb89f;
  --st-practice: #a993e6;
  --st-prod: #ee9f78;
  --st-warm-d: #6b5310;
  --st-input-d: #2c5a48;
  --st-practice-d: #4a3596;
  --st-prod-d: #7f3514;

  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(41, 38, 52, .06), 0 2px 6px rgba(41, 38, 52, .04);
  --shadow: 0 2px 4px rgba(41, 38, 52, .04), 0 12px 32px -8px rgba(74, 53, 150, .16);
  --shadow-lg: 0 4px 10px rgba(41, 38, 52, .05), 0 30px 70px -20px rgba(74, 53, 150, .32);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-head: "Plus Jakarta Sans", "DM Sans", system-ui, sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.08; letter-spacing: -0.035em; margin: 0; font-weight: 800; color: var(--ink); }
p { margin: 0; }
:focus-visible { outline: 3px solid rgba(112, 86, 200, .45); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--lilac); color: var(--purple-700); }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
[hidden] { display: none !important; }
.img-fail { background: linear-gradient(135deg, var(--lilac), var(--peach)) !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; z-index: 100; text-decoration: none; }
.skip-link:focus { top: 12px; }
.dot { color: var(--pink); }

/* ---------- Buttons ---------- */
.btn { --bh: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--bh); padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 16px; text-decoration: none; border: 0; white-space: nowrap; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background .2s; position: relative; }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { --bh: 40px; padding: 0 16px; font-size: 15px; border-radius: 12px; }
.btn-lg { --bh: 56px; padding: 0 28px; font-size: 17px; border-radius: 16px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 4px 0 var(--purple-700), 0 10px 24px -6px rgba(112, 86, 200, .55); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--purple-700), 0 16px 30px -8px rgba(112, 86, 200, .6); }
.btn-primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--purple-700), 0 4px 10px -4px rgba(112, 86, 200, .5); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px #d6d0e4, var(--shadow); }
.btn-white { background: #fff; color: var(--purple-700); box-shadow: 0 4px 0 rgba(0,0,0,.15), 0 12px 26px -8px rgba(0,0,0,.35); }
.btn-white:hover { transform: translateY(-2px); }
.btn-white:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.15); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.site-header.scrolled { background: rgba(253, 252, 250, .82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); box-shadow: 0 1px 0 rgba(41, 38, 52, .06); }
.nav { display: flex; align-items: center; gap: 24px; height: 76px; transition: height .3s var(--ease-out); }
.scrolled .nav { height: 64px; }
.brand img { width: 92px; height: auto; transition: width .3s var(--ease-out); }
.scrolled .brand img { width: 80px; }
.nav-links { display: flex; gap: 6px; margin-left: auto; align-items: center; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink-2); padding: 8px 14px; border-radius: 10px; position: relative; transition: color .2s, background .2s; }
.nav-links a:not(.btn):hover { color: var(--purple); background: var(--purple-50); }
.nav-links a.active { color: var(--purple); }
.nav-links a.active::after { content: ""; position: absolute; left: 50%; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: var(--pink); transform: translateX(-50%); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta-mobile { display: none !important; }
.menu-btn { display: none; width: 44px; height: 44px; border-radius: 12px; border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .3s var(--ease-out); }
.menu-btn span:first-child { top: 17px; } .menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out) var(--d, 0ms), transform .8s var(--ease-out) var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Common section bits ---------- */
.section { padding: 110px 0; position: relative; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { font-family: var(--font-head); font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--purple); margin-bottom: 14px; }
.eyebrow.light { color: #cdbff6; }
h2 { font-size: clamp(34px, 4.6vw, 54px); }
.sub { font-size: 19px; color: var(--muted); margin-top: 18px; line-height: 1.55; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: 99px; background: #fff; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; color: var(--ink-2); }
.pill img { width: 26px; height: 26px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; padding: 48px 0 90px; overflow: clip; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .7; animation: drift 18s ease-in-out infinite alternate; }
.blob-1 { width: 620px; height: 620px; background: #e6ddff; top: -220px; right: -120px; }
.blob-2 { width: 460px; height: 460px; background: #ffe0ec; bottom: -160px; left: 30%; animation-delay: -6s; opacity: .55; }
.blob-3 { width: 380px; height: 380px; background: #dff2e9; top: 30%; left: -160px; animation-delay: -12s; opacity: .6; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }
.grid-dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(112, 86, 200, .13) 1.2px, transparent 1.2px); background-size: 26px 26px; mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 40%, #000 20%, transparent 75%); }

.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.hero-copy h1 { font-size: clamp(40px, 5vw, 70px); margin-top: 22px; letter-spacing: -0.045em; line-height: 1.0; }
.hl { position: relative; white-space: nowrap; color: var(--purple); }
.lead { font-size: 20px; color: var(--ink-2); margin-top: 24px; max-width: 520px; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-proof { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.tick { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--mint); color: var(--st-input-d); font-size: 12px; margin-right: 4px; font-weight: 800; }

/* ---------- Demo ---------- */
.demo-wrap { position: relative; }
@keyframes bob { 50% { translate: 0 -10px; } }
.demo-window { position: relative; background: #fff; border-radius: 22px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(41,38,52,.06); overflow: hidden; overflow: clip; z-index: 2; }
.demo-chrome { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px; background: #f7f6fa; border-bottom: 1px solid var(--line); }
.chrome-dots { display: flex; gap: 6px; }
.chrome-dots i { width: 11px; height: 11px; border-radius: 50%; background: #e3dfeb; }
.chrome-dots i:nth-child(1) { background: #ff8a80; } .chrome-dots i:nth-child(2) { background: #ffd166; } .chrome-dots i:nth-child(3) { background: #7fd1a6; }
.chrome-url { flex: 1; max-width: 300px; margin-inline: auto; text-align: center; font-size: 12.5px; color: var(--muted); background: #fff; border-radius: 8px; padding: 4px 10px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chrome-url b { color: var(--ink); font-weight: 600; }
.chrome-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--st-input-d); }
.chrome-live i { width: 7px; height: 7px; border-radius: 50%; background: #39b37a; box-shadow: 0 0 0 0 rgba(57,179,122,.6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(57,179,122,0); } 100% { box-shadow: 0 0 0 0 rgba(57,179,122,0); } }

.demo-steps { list-style: none; margin: 0; padding: 10px 14px; display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.demo-steps::-webkit-scrollbar { display: none; }
.demo-steps button { display: flex; align-items: center; gap: 7px; border: 0; background: transparent; padding: 6px 10px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.demo-steps button span { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #efedf3; font-size: 11px; font-weight: 800; transition: background .3s, color .3s; }
.demo-steps button:hover { background: #f7f6fa; }
.demo-steps button[aria-selected="true"] { color: var(--purple-700); background: var(--purple-50); }
.demo-steps button[aria-selected="true"] span { background: var(--purple); color: #fff; }
.demo-steps button.done span { background: var(--mint); color: var(--st-input-d); }

.demo-stage { position: relative; height: 470px; overflow: hidden; overflow: clip; }
.scene { position: absolute; inset: 0; padding: 22px 24px 18px; overflow: hidden; overflow: clip; display: flex; flex-direction: column; opacity: 0; visibility: hidden; transform: translateX(26px); transition: opacity .45s var(--ease-out), transform .55s var(--ease-out), visibility 0s .5s; }
.scene.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity .45s var(--ease-out) .08s, transform .55s var(--ease-out) .08s, visibility 0s; }
.scene.is-leaving { transform: translateX(-26px); }
.scene-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--purple); }
.scene-title { font-size: 22px; margin: 4px 0 16px; letter-spacing: -0.03em; }
.scene-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.muted-sm { font-size: 12.5px; color: var(--muted); }
.demo-btn { border: 0; background: var(--purple); color: #fff; font-weight: 700; font-size: 14px; padding: 10px 16px; border-radius: 11px; box-shadow: 0 3px 0 var(--purple-700); transition: transform .15s, box-shadow .15s; }
.demo-btn:hover { transform: translateY(-1px); }
.demo-btn.ghost { background: #fff; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); }
.demo-btn.pressed, .pressable.pressed { transform: scale(.95) !important; }

.start-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.start-card { border: 0; background: #fff; border-radius: 14px; padding: 14px 10px 12px; text-align: center; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; transition: box-shadow .25s, transform .25s var(--ease-spring), background .25s; }
.start-card img { width: 44px; height: 44px; margin-bottom: 6px; transition: transform .35s var(--ease-spring); }
.start-card strong { font-size: 13.5px; font-family: var(--font-head); letter-spacing: -0.01em; }
.start-card span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.start-card:hover { transform: translateY(-2px); }
.start-card:hover img { transform: scale(1.08) rotate(-4deg); }
.start-card.is-selected { box-shadow: inset 0 0 0 2px var(--purple), 0 8px 18px -8px rgba(112,86,200,.5); background: var(--purple-50); }
.start-card[data-start="text"].is-selected { background: #fff7f2; }
.start-card[data-start="link"].is-selected { background: #f3faf6; }
.start-card[data-start="file"].is-selected { background: #fffbef; }

.demo-field { display: block; margin-top: 18px; }
.field-label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 7px; }
.fake-input { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 16px; background: #fff; transition: box-shadow .2s; }
.fake-input.focus { box-shadow: inset 0 0 0 2px var(--purple), 0 0 0 4px rgba(112,86,200,.12); }
.caret { width: 2px; height: 20px; background: var(--purple); margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.level-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.level-grid button { border: 0; background: #fff; border-radius: 12px; padding: 10px 4px; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; flex-direction: column; align-items: center; transition: all .25s var(--ease-out); }
.level-grid b { font-family: var(--font-head); font-size: 20px; letter-spacing: -0.03em; }
.level-grid span { font-size: 10.5px; color: var(--muted); }
.level-grid button.is-selected { background: var(--purple); color: #fff; box-shadow: 0 6px 16px -6px rgba(112,86,200,.7); transform: translateY(-2px); }
.level-grid button.is-selected span { color: #e3dafc; }
.level-grid button.is-stretch { background: var(--lilac); box-shadow: inset 0 0 0 2px var(--st-practice); }
.mix-toggle { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 13px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.mix-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 36px; height: 21px; border-radius: 99px; background: #dcd8e4; position: relative; transition: background .25s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 15px; height: 15px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .3s var(--ease-spring); }
.mix-toggle input:checked + .switch { background: var(--purple); }
.mix-toggle input:checked + .switch::after { transform: translateX(15px); }
.mix-toggle input:focus-visible + .switch { outline: 3px solid rgba(112,86,200,.4); outline-offset: 2px; }
.pill-row { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 12px; }
.row-label { font-size: 12px; font-weight: 700; color: var(--muted); width: 64px; }
.pill-row button { border: 0; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 99px; padding: 6px 13px; font-size: 13px; font-weight: 600; transition: all .25s var(--ease-out); }
.pill-row button.is-selected { background: var(--ink); color: #fff; box-shadow: none; }

.build-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.build-card { border: 0; background: #fff; border-radius: 14px; padding: 12px; box-shadow: inset 0 0 0 1.5px var(--line); display: flex; align-items: center; gap: 10px; text-align: left; position: relative; transition: all .25s var(--ease-out); }
.build-card img { width: 40px; height: 40px; flex: none; }
.build-card strong { display: block; font-size: 14px; font-family: var(--font-head); }
.build-card small { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.build-card.is-selected { box-shadow: inset 0 0 0 2px var(--purple), 0 8px 18px -10px rgba(112,86,200,.6); background: var(--purple-50); }
.tag { position: absolute; top: -8px; right: 10px; font-style: normal; font-size: 10.5px; font-weight: 800; padding: 2px 8px; border-radius: 99px; }
.tag.mint { background: var(--mint); color: var(--st-input-d); }
.tag.lilac { background: linear-gradient(90deg, var(--purple), var(--pink)); color: #fff; }

.plan-box { margin-top: 14px; border-radius: 14px; background: #fbfaff; box-shadow: inset 0 0 0 1px var(--line); padding: 12px 14px; flex: 1; min-height: 0; overflow: hidden; }
.plan-head { display: flex; justify-content: space-between; font-size: 13px; }
.plan-total { font-weight: 700; color: #287a55; }
.time-bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: #eeebf4; margin: 8px 0 8px; gap: 2px; }
.time-bar i { display: block; height: 100%; width: 0; transition: width .6s var(--ease-out); }
.time-bar.small { height: 6px; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.plan-list li { display: grid; grid-template-columns: 16px 76px 1fr auto; gap: 8px; align-items: center; font-size: 12.5px; padding: 5px 4px; border-radius: 8px; opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .45s var(--ease-out); }
.plan-list li.in { opacity: 1; transform: none; }
.plan-list .cb { width: 15px; height: 15px; border-radius: 5px; background: var(--purple); display: grid; place-items: center; color: #fff; font-size: 10px; font-weight: 900; }
.stage-tag { font-size: 9.5px; font-weight: 800; letter-spacing: .06em; padding: 2px 6px; border-radius: 6px; text-transform: uppercase; text-align: center; }
.stage-tag.warm_up { background: var(--butter); color: var(--st-warm-d); }
.stage-tag.input { background: var(--mint); color: var(--st-input-d); }
.stage-tag.practice { background: var(--lilac); color: var(--st-practice-d); }
.stage-tag.production { background: var(--peach); color: var(--st-prod-d); }
.plan-list .min { color: var(--muted); font-weight: 600; }

/* editor scene */
.scene[data-scene="editor"] { padding: 0; }
.editor { display: grid; grid-template-columns: 170px 1fr; height: 100%; }
.outline { border-right: 1px solid var(--line); padding: 14px 12px; background: #fcfbfe; display: flex; flex-direction: column; min-height: 0; }
.outline-head { display: flex; justify-content: space-between; font-size: 12.5px; }
.outline-head span { color: #287a55; font-weight: 700; }
.outline-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; overflow: auto; }
.outline-list li button { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 6px 6px; border-radius: 8px; font-size: 12px; text-align: left; transition: background .2s; }
.outline-list li button:hover { background: #f1eef8; }
.outline-list li button[aria-current="true"] { background: var(--lilac); font-weight: 700; }
.outline-list .od { width: 9px; height: 9px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 2px var(--c); transition: background .3s; }
.outline-list .od.filled { background: var(--c); }
.outline-list .om { margin-left: auto; color: var(--muted); font-size: 11px; }
.outline-hint { margin-top: auto; font-size: 11px; color: var(--muted); }
.doc { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.doc-bar { display: flex; align-items: center; justify-content: space-between; padding: 9px 14px; border-bottom: 1px solid var(--line); gap: 10px; }
.save-state { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.save-state i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-warm); animation: pulse 1s ease-in-out infinite; }
.save-state.ok { color: #287a55; }
.save-state.ok i { background: #39b37a; animation: none; }
@keyframes pulse { 50% { opacity: .3; } }
.seg { display: inline-flex; background: #f1eff5; border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 8px; color: var(--muted); transition: all .2s; }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.doc-scroll { overflow-y: auto; padding: 14px; scroll-behavior: smooth; flex: 1; scrollbar-width: thin; }
.cover { position: relative; border-radius: 14px; overflow: hidden; min-height: 112px; background: linear-gradient(120deg, #7056c8, #b45ad0); color: #fff; display: flex; align-items: flex-end; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .6s; }
.cover img.loaded { opacity: 1; }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(41,38,52,.05), rgba(41,38,52,.72)); }
.cover-text { position: relative; z-index: 1; padding: 14px 16px; }
.cover-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: .1em; opacity: .9; }
.cover h4 { color: #fff; font-size: 21px; margin: 2px 0 2px; }
.cover p { font-size: 12.5px; opacity: .92; }
.acts { display: grid; gap: 10px; margin-top: 10px; }
.act { border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); padding: 12px 14px; position: relative; border-left: 4px solid var(--c); animation: actIn .5s var(--ease-out); transition: box-shadow .25s; }
.act.sel { box-shadow: inset 0 0 0 2px var(--purple), 0 10px 22px -12px rgba(112,86,200,.5); }
@keyframes actIn { from { opacity: 0; transform: translateY(10px) scale(.98); } }
.act-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.act-head img { width: 28px; height: 28px; }
.act-head b { font-size: 13.5px; font-family: var(--font-head); letter-spacing: -0.01em; }
.act-head small { display: block; font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.act-head .review { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--butter); color: var(--st-warm-d); }
.act-head .review.ok { background: var(--mint); color: var(--st-input-d); }
.act-body { font-size: 13px; color: var(--ink-2); }
.act-body ol, .act-body ul { margin: 0; padding-left: 18px; display: grid; gap: 3px; }
.skel { display: grid; gap: 7px; }
.skel i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #f0edf6 25%, #e5e0f0 45%, #f0edf6 65%); background-size: 300% 100%; animation: shimmer 1.2s linear infinite; }
.skel i:nth-child(2) { width: 82%; } .skel i:nth-child(3) { width: 64%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.vocab { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.vocab div { background: #faf9fd; border-radius: 9px; padding: 6px 9px; line-height: 1.3; }
.vocab b { color: var(--ink); font-size: 13px; }
.vocab span { display: block; font-size: 11.5px; color: var(--muted); }
.gap { display: inline-block; min-width: 70px; padding: 0 6px; border-bottom: 2px solid var(--purple); color: var(--purple-700); font-weight: 700; text-align: center; background: var(--purple-50); border-radius: 4px 4px 0 0; }
.gap-input { width: 92px; border: 0; border-bottom: 2px dashed var(--purple); background: #faf9fd; font: inherit; font-size: 13px; padding: 1px 6px; border-radius: 4px 4px 0 0; color: var(--ink); }
.gap-input:focus { outline: none; background: var(--lilac); }
.gap-input.right { border-bottom-style: solid; border-color: #39b37a; background: var(--mint); }
.gap-input.wrong { border-color: #e2546b; background: #fdecef; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.mcq { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.mcq button { border: 0; background: #faf9fd; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: 9px; padding: 5px 11px; font-size: 12.5px; transition: all .2s; }
.mcq button.correct { box-shadow: inset 0 0 0 2px #39b37a; background: var(--mint); }
.mcq button.wrong { box-shadow: inset 0 0 0 2px #e2546b; background: #fdecef; animation: shake .35s; }
.mcq button.answer { box-shadow: inset 0 0 0 2px #39b37a; background: var(--mint); }
.listen { display: inline-flex; align-items: center; gap: 6px; border: 0; background: var(--lilac); color: var(--purple-700); font-weight: 700; font-size: 11.5px; padding: 4px 10px 4px 6px; border-radius: 99px; margin-left: auto; }
.listen .mini-wave { display: inline-flex; gap: 2px; align-items: center; height: 12px; }
.listen .mini-wave i { width: 2px; height: 4px; background: currentColor; border-radius: 2px; }
.listen.on .mini-wave i { animation: eq .8s ease-in-out infinite; }
.listen.on .mini-wave i:nth-child(2) { animation-delay: -.2s; } .listen.on .mini-wave i:nth-child(3) { animation-delay: -.5s; } .listen.on .mini-wave i:nth-child(4) { animation-delay: -.35s; }
@keyframes eq { 50% { height: 12px; } }
.roles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.roles div { border-radius: 9px; padding: 7px 9px; font-size: 12px; line-height: 1.35; }
.roles div:first-child { background: var(--peach); } .roles div:last-child { background: var(--butter); }
.roles b { display: block; font-size: 11px; letter-spacing: .06em; }
.teacher-note { margin-top: 8px; font-size: 11.5px; padding: 6px 9px; border-radius: 8px; background: #f7f6fa; color: var(--muted); }
.student-mode .teacher-note, .student-mode .review { display: none; }
.review { border: 0; cursor: pointer; }
.empty-act { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; border: 1.5px dashed #d6d0e4; color: var(--muted); font-size: 12.5px; background: #fcfbfe; }
.mini-link { border: 0; background: var(--lilac); color: var(--purple-700); font-weight: 700; font-size: 11.5px; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.mini-link:hover { background: #e6defc; }
.hint-sm { font-size: 11px; color: var(--muted); margin-top: 6px; }
.stretch-q { margin-top: 8px; font-size: 12px; font-weight: 600; color: var(--purple-700); background: var(--lilac); padding: 5px 9px; border-radius: 8px; }

.demo-cursor { position: absolute; left: 0; top: 0; z-index: 20; pointer-events: none; opacity: 0; transform: translate(60%, 400px); transition: transform .75s cubic-bezier(.45,.05,.25,1), opacity .3s; filter: drop-shadow(0 3px 4px rgba(0,0,0,.25)); }
.demo-cursor.show { opacity: 1; }
.demo-cursor::after { content: ""; position: absolute; left: -10px; top: -10px; width: 24px; height: 24px; border-radius: 50%; background: rgba(112,86,200,.35); transform: scale(0); opacity: 0; }
.demo-cursor.click::after { animation: clickRing .45s ease-out; }
@keyframes clickRing { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.demo-toast { position: absolute; left: 50%; bottom: 16px; translate: -50% 20px; z-index: 21; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 16px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .3s, translate .4s var(--ease-spring); white-space: nowrap; }
.demo-toast.show { opacity: 1; translate: -50% 0; }

.demo-controls { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.ctrl-label { font-size: 13px; font-weight: 700; color: var(--muted); }
.topic-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 0; background: #fff; border-radius: 10px; padding: 7px 13px; font-size: 13.5px; font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--line), var(--shadow-sm); transition: all .25s var(--ease-out); }
.chip:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1.5px #d2cbe2, var(--shadow); }
.chip.is-active { background: var(--ink); color: #fff; box-shadow: none; }
.replay { display: inline-flex; align-items: center; gap: 5px; border: 0; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 12px; color: var(--purple); padding: 4px 9px; border-radius: 8px; }
.replay:hover { background: var(--purple-50); }
.replay:hover svg { transform: rotate(-200deg); }
.replay svg { transition: transform .6s var(--ease-out); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee-band { padding: 26px 0 30px; border-block: 1px solid var(--line); background: #fff; }
.marquee-label { text-align: center; font-family: var(--font-head); font-weight: 800; font-size: 12px; letter-spacing: .16em; color: var(--muted); margin-bottom: 16px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border-radius: 99px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); font-weight: 700; font-size: 15px; white-space: nowrap; }
.marquee-track img { width: 34px; height: 34px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ==========================================================================
   PERSONAS
   ========================================================================== */
.persona { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: stretch; }
.persona-tabs { display: grid; gap: 10px; align-content: start; }
.persona-tabs button { display: flex; align-items: center; gap: 14px; text-align: left; border: 0; background: #fff; border-radius: 18px; padding: 14px 16px; box-shadow: inset 0 0 0 1.5px var(--line); transition: all .3s var(--ease-out); position: relative; overflow: hidden; }
.persona-tabs button img { width: 46px; height: 46px; flex: none; transition: transform .4s var(--ease-spring); }
.persona-tabs b { display: block; font-family: var(--font-head); font-size: 16px; letter-spacing: -0.02em; line-height: 1.25; }
.persona-tabs small { color: var(--muted); font-size: 13.5px; }
.persona-tabs button:hover { transform: translateX(4px); }
.persona-tabs button[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: var(--shadow); }
.persona-tabs button[aria-selected="true"] small { color: #bdb6cc; }
.persona-tabs button[aria-selected="true"] img { transform: scale(1.1) rotate(-6deg); }
.persona-tabs button::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: linear-gradient(90deg, var(--purple), var(--pink)); }
.persona-tabs button[aria-selected="true"].timing::after { animation: tabTimer 7s linear forwards; }
@keyframes tabTimer { to { width: 100%; } }
.persona-panels { position: relative; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); overflow: hidden; min-height: 440px; }
.persona-panel { display: grid; grid-template-columns: 1fr 1.05fr; height: 100%; }
.persona-panel.is-active { animation: panelIn .6s var(--ease-out); }
@keyframes panelIn { from { opacity: 0; transform: translateY(14px); } }
.persona-photo { margin: 0; position: relative; overflow: hidden; background: var(--lilac); min-height: 300px; }
.persona-photo img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transform: scale(1.06); transition: transform 1.2s var(--ease-out); }
.persona-panel.is-active .persona-photo img { transform: scale(1); }
.photo-chip { position: absolute; left: 16px; bottom: 16px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 700; box-shadow: var(--shadow); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); animation: ping 1.8s infinite; box-shadow: 0 0 0 0 rgba(244,18,114,.5); }
.persona-copy { padding: 44px 40px; display: flex; flex-direction: column; justify-content: center; }
.quote-pain { font-family: var(--font-head); font-weight: 700; font-size: 15px; color: var(--pink-soft); margin-bottom: 12px; }
.persona-copy h3 { font-size: 32px; }
.persona-copy > p:not(.quote-pain) { color: var(--ink-2); margin-top: 14px; }
.check-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; font-weight: 600; font-size: 15.5px; }
.check-list li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: var(--st-input-d); font-size: 12px; font-weight: 900; margin-top: 1px; }

/* ==========================================================================
   QUOTE
   ========================================================================== */
.quote-section { padding: 40px 0 120px; }
.big-quote { margin: 0 auto; max-width: 960px; text-align: center; position: relative; }
.quote-mark { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 26px; border-radius: 20px; background: var(--lilac); color: var(--purple); font-family: var(--font-head); font-weight: 800; font-size: 72px; line-height: 1; padding-top: 30px; box-shadow: inset 0 0 0 1px #e3daf9; }
.big-quote blockquote { margin: 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 3.1vw, 38px); line-height: 1.32; letter-spacing: -0.025em; color: var(--ink); }
.big-quote blockquote em { font-style: normal; color: var(--purple); }
.big-quote .w { color: #cdc8d6; transition: color .35s var(--ease-out); }
.big-quote .w.lit { color: var(--ink); }
.big-quote em .w.lit { color: var(--purple); }

/* ==========================================================================
   TWO WAYS
   ========================================================================== */
.two-ways { background: linear-gradient(180deg, transparent, var(--purple-50) 30%, var(--purple-50) 70%, transparent); }
.two-ways-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.way-toggle { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; background: #fff; border-radius: 18px; padding: 6px; margin-top: 34px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); }
.way-toggle button { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 12px 20px; font-weight: 700; font-size: 15.5px; border-radius: 13px; transition: color .3s; white-space: nowrap; }
.way-toggle button img { width: 28px; height: 28px; }
.way-toggle button[aria-selected="true"] { color: #fff; }
.way-thumb { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc(50% - 6px); border-radius: 13px; background: var(--ink); transition: transform .5s var(--ease-spring), background .4s; }
.way-toggle[data-mode="ai"] .way-thumb { transform: translateX(100%); background: linear-gradient(100deg, var(--purple), #b04cc6); }
.way-caption { margin-top: 16px; color: var(--muted); font-size: 15.5px; min-height: 1.6em; transition: opacity .3s; }
.way-visual { position: relative; height: 340px; }
.way-card { position: absolute; left: 6%; right: 6%; top: 60px; background: #fff; border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg); z-index: 3; transition: transform .6s var(--ease-out); }
.way-card.back { top: 30px; transform: scale(.94); z-index: 2; opacity: .85; box-shadow: var(--shadow); }
.way-card.back.two { top: 0; transform: scale(.88); z-index: 1; opacity: .6; }
.way-visual:hover .way-card.back { transform: scale(.94) translateY(-6px); }
.way-visual:hover .way-card.back.two { transform: scale(.88) translateY(-12px); }
.way-card-head { display: flex; align-items: center; gap: 12px; }
.way-card-head img { width: 40px; height: 40px; }
.way-card-head b { font-family: var(--font-head); font-size: 17px; display: block; }
.way-card-head small { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.way-status { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #f1eff5; color: var(--muted); transition: all .3s; }
.way-visual[data-mode="ai"] .way-status { background: var(--lilac); color: var(--purple-700); }
.way-lines { margin-top: 18px; display: grid; gap: 10px; }
.way-lines p { min-height: 42px; border-radius: 12px; background: #faf9fd; box-shadow: inset 0 0 0 1.5px var(--line); padding: 10px 14px; font-size: 15px; display: flex; align-items: center; transition: box-shadow .3s; }
.way-lines p.typing { box-shadow: inset 0 0 0 2px var(--purple); }
.way-lines .gap { min-width: 60px; }
.way-visual[data-mode="ai"] .way-lines p { background: linear-gradient(100deg, #faf9fd 30%, #f2edff 50%, #faf9fd 70%); background-size: 300% 100%; }
.way-visual[data-mode="ai"] .way-lines p.typing { animation: shimmer 1.4s linear infinite; }

/* ==========================================================================
   BENTO
   ========================================================================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; }
.b-card { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); overflow: hidden; transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
.b-card:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.b-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), rgba(112,86,200,.08), transparent 45%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.b-card:hover::before { opacity: 1; }
.b-icon { width: 52px; height: 52px; margin-bottom: 16px; transition: transform .5s var(--ease-spring); }
.b-card:hover .b-icon { transform: rotate(-8deg) scale(1.08); }
.b-card h3 { font-size: 24px; }
.b-card p { color: var(--muted); margin-top: 10px; font-size: 16px; }
.b-students { grid-column: span 4; display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; align-items: center; background: linear-gradient(140deg, #fff 30%, var(--lilac)); }
.b-voice { grid-column: span 2; background: linear-gradient(160deg, var(--purple) 0%, #5a3fb5 100%); color: #fff; }
.b-voice h3 { color: #fff; } .b-voice p { color: #ddd5fb; }
.b-present { grid-column: span 3; background: linear-gradient(150deg, #fff 40%, var(--mint)); }
.b-custom { grid-column: span 3; background: linear-gradient(150deg, #fff 40%, var(--butter)); }
.b-library { grid-column: span 2; background: linear-gradient(170deg, #fff 45%, var(--peach)); padding-bottom: 0; display: flex; flex-direction: column; }
.b-course { grid-column: span 2; }
.b-export { grid-column: span 2; background: linear-gradient(170deg, #fff 45%, var(--lilac)); }

.roster { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 12px 14px; font-size: 14px; }
.roster-head { display: grid; grid-template-columns: 1.4fr 1fr 1fr; padding: 4px 6px 8px; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; border-bottom: 1px solid var(--line); }
.roster-row { display: grid; grid-template-columns: 32px 1fr 1fr 1fr; gap: 8px; align-items: center; padding: 8px 6px; border-bottom: 1px solid #f3f1f7; }
.av { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--c); color: var(--t); font-weight: 800; font-size: 12px; flex: none; }
.nm { font-weight: 600; }
.bar { height: 7px; border-radius: 99px; background: #efedf3; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--st-input), #39b37a); transition: width 1.4s var(--ease-out); }
.in .bar i { width: var(--p); }
.st { font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; justify-self: start; white-space: nowrap; }
.st.done { background: var(--mint); color: var(--st-input-d); }
.st.going { background: var(--butter); color: var(--st-warm-d); }
.st.review { background: var(--peach); color: var(--st-prod-d); }
.roster-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 10px; font-size: 12.5px; flex-wrap: wrap; }
.link-chip { background: #f7f6fa; padding: 4px 10px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.score b { color: var(--purple); font-size: 15px; }

.player { display: flex; align-items: center; gap: 12px; margin-top: 22px; background: rgba(255,255,255,.12); border-radius: 16px; padding: 10px 14px 10px 10px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.play { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 0; background: #fff; color: var(--purple); display: grid; place-items: center; transition: transform .25s var(--ease-spring); }
.play:hover { transform: scale(1.08); }
.play .i-pause { display: none; }
.player.on .i-play { display: none; } .player.on .i-pause { display: block; }
.wave { flex: 1; display: flex; align-items: center; gap: 3px; height: 34px; }
.wave i { flex: 1; min-width: 2px; border-radius: 3px; background: rgba(255,255,255,.4); height: var(--h); transition: background .2s; }
.wave i.played { background: #fff; }
.player.on .wave i { animation: waveBounce 1s ease-in-out infinite; animation-delay: var(--dl); }
@keyframes waveBounce { 50% { transform: scaleY(.55); } }
.time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.player-line { font-style: italic; margin-top: 12px !important; font-size: 14.5px !important; }

.presenter { margin-top: 22px; background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 14px; }
.pr-top { display: flex; gap: 6px; flex-wrap: wrap; }
.pr-chip { font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; background: #f1eff5; color: var(--ink-2); }
.pr-chip.dark { background: var(--ink); color: #fff; }
.pr-chip.timer { background: #e5ecfb; color: #2c4f9e; font-variant-numeric: tabular-nums; }
.pr-body { padding: 22px 8px 18px; }
.pr-kicker { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.pr-q { font-size: 21px; color: #2c4f9e; margin-top: 8px; font-weight: 500; }
.pr-gap { display: inline-block; min-width: 110px; padding: 2px 12px; border-radius: 8px 8px 0 0; border-bottom: 2px solid #2c4f9e; background: #eef2fb; color: transparent; text-align: center; transition: color .4s, background .4s; }
.pr-gap.show { color: #2c6b4f; background: var(--mint); }
.pr-dock { display: flex; gap: 6px; overflow: hidden; }
.pr-dock span { font-size: 11.5px; font-weight: 600; padding: 6px 10px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; color: var(--ink-2); }
.pr-dock span.on { background: #2c4f9e; color: #fff; box-shadow: none; }

/* Change anything: mini activity + settings panel */
.b-custom { container-type: inline-size; }
.cz { margin-top: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 12px; align-items: start; font-size: 12px; }
.cz-preview { display: grid; gap: 8px; }
.cz-act { background: #fff; border-radius: 14px; padding: 11px 12px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); border-left: 4px solid var(--tc); transition: border-color .3s; }
.cz-act-head { display: flex; align-items: center; gap: 8px; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid #f1eff5; }
.cz-act-head img { width: 26px; height: 26px; }
.cz-act-head small { display: block; font-size: 9.5px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.cz-act-head strong { font-family: var(--font-head); font-size: 13px; letter-spacing: -0.01em; }
.cz-words { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.cz-words li { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 9px; background: var(--tt); transition: background .3s; }
.cz-img { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #fff; font-size: 15px; transition: opacity .25s, width .3s var(--ease-out), margin .3s; overflow: hidden; }
.cz-term { font-weight: 700; color: var(--ink); }
.cz-def { color: var(--muted); font-size: 11px; line-height: 1.25; transition: opacity .25s; }
.cz-tr { font-size: 11px; font-weight: 600; color: var(--tc); filter: brightness(.8); white-space: nowrap; transition: opacity .25s; }
.cz[data-img="0"] .cz-img { width: 0; opacity: 0; margin-right: -8px; }
.cz[data-def="0"] .cz-def { opacity: 0; }
.cz[data-tr="0"] .cz-tr { display: none; }
.b-card .cz-note { margin-top: 7px; font-size: 11px; line-height: 1.4; padding: 5px 8px; border-radius: 7px; background: #f7f6fa; color: var(--muted); min-height: 24px; }
.cz-panel { background: #fff; border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow), inset 0 0 0 1px var(--line); display: grid; gap: 9px; }
.cz-row { display: flex; align-items: center; justify-content: space-between; }
.cz-eyebrow { font-size: 9.5px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.cz-x { color: #bdb6cc; font-size: 15px; line-height: 1; }
.cz-field { display: grid; gap: 4px; }
.cz-label { font-size: 11px; font-weight: 700; color: var(--ink); }
.cz-label small { font-weight: 500; color: var(--muted); }
.cz-stepper { display: inline-flex; align-items: center; gap: 0; width: fit-content; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--line); }
.cz-stepper button { width: 24px; height: 24px; border: 0; background: transparent; font-size: 13px; font-weight: 700; color: var(--ink-2); border-radius: 7px; }
.cz-stepper button:hover { background: var(--purple-50); color: var(--purple); }
.cz-stepper output { min-width: 22px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.cz-stepper span { padding: 0 8px 0 2px; color: var(--muted); font-size: 11px; }
.cz-toggle { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11.5px; color: var(--ink-2); cursor: pointer; padding: 1px 0; }
.cz-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.cz-toggle i { position: relative; flex: none; width: 26px; height: 15px; border-radius: 99px; background: #dcd8e4; transition: background .25s; }
.cz-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .3s var(--ease-spring); }
.cz-toggle input:checked + i { background: var(--purple); }
.cz-toggle input:checked + i::after { transform: translateX(11px); }
.cz-toggle input:focus-visible + i { outline: 2px solid rgba(112,86,200,.45); outline-offset: 2px; }
.cz-input { width: 100%; height: 26px; border: 0; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); padding: 0 8px; font: inherit; font-size: 11px; color: var(--ink); background: #fff; }
.cz-input:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--purple); }
.cz-swatches { display: flex; flex-wrap: wrap; gap: 5px; }
.cz-swatches button { width: 18px; height: 18px; border: 0; padding: 0; border-radius: 50%; background: var(--s); box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line); transition: transform .25s var(--ease-spring), box-shadow .2s; }
.cz-swatches button:hover { transform: scale(1.15); }
.cz-swatches button[aria-checked="true"] { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--s); }
.cz-foot { padding-top: 7px; border-top: 1px solid #f1eff5; font-size: 10.5px; font-weight: 600; color: var(--muted); justify-content: flex-start; gap: 9px; white-space: nowrap; }
.cz-ai { margin-left: auto; color: var(--purple); }
@container (max-width: 470px) {
  .cz { grid-template-columns: 1fr; }
}

.lib-fan { position: relative; height: 190px; margin-top: 22px; }
.lib-card { position: absolute; left: 50%; bottom: -24px; width: 150px; background: #fff; border-radius: 14px; padding: 8px 8px 30px; box-shadow: var(--shadow); transform: translateX(var(--x)) rotate(var(--r)); transform-origin: bottom center; transition: transform .5s var(--ease-spring); }
.lib-card img { width: 100%; height: 86px; object-fit: cover; border-radius: 9px; background: var(--lilac); }
.lib-card b { display: block; font-size: 13px; margin-top: 7px; font-family: var(--font-head); letter-spacing: -0.01em; }
.lib-card small { font-size: 11px; color: var(--muted); }
.b-library:hover .lib-card:nth-child(1) { transform: translateX(-88%) rotate(-14deg); }
.b-library:hover .lib-card:nth-child(2) { transform: translateX(-50%) translateY(-12px); }
.b-library:hover .lib-card:nth-child(3) { transform: translateX(-12%) rotate(14deg); }

.course { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 8px; counter-reset: c; }
.course li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; background: #faf9fd; font-weight: 600; font-size: 14.5px; box-shadow: inset 0 0 0 1px var(--line); }
.course li span { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #fff; font-size: 12px; font-weight: 800; box-shadow: inset 0 0 0 1.5px var(--line); }
.course li em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); font-weight: 600; }
.course li.done span { background: var(--mint); box-shadow: none; color: var(--st-input-d); }
.course li.done span { font-size: 0; } .course li.done span::after { content: "✓"; font-size: 12px; }
.course li.now { background: var(--lilac); box-shadow: inset 0 0 0 2px var(--st-practice); }
.course li.now span { background: var(--purple); color: #fff; box-shadow: none; }
.course li.now em { color: var(--purple-700); }

.papers { position: relative; height: 150px; margin-top: 18px; }
.paper { position: absolute; width: 120px; height: 150px; background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 12px; display: flex; flex-direction: column; gap: 7px; transition: transform .5s var(--ease-spring); }
.paper b { font-size: 11.5px; line-height: 1.2; font-family: var(--font-head); }
.paper i { display: block; height: 6px; border-radius: 3px; background: #efedf3; }
.paper i:nth-of-type(2) { width: 80%; } .paper i:nth-of-type(3) { width: 60%; }
.paper em { margin-top: auto; align-self: flex-start; font-style: normal; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 6px; background: var(--pink); color: #fff; }
.p1 { left: 0; transform: rotate(-6deg); } .p2 { left: 30%; transform: rotate(2deg); z-index: 1; } .p3 { left: 60%; transform: rotate(8deg); }
.b-export:hover .p1 { transform: rotate(-10deg) translate(-8px, -8px); }
.b-export:hover .p2 { transform: rotate(0) translateY(-14px); }
.b-export:hover .p3 { transform: rotate(12deg) translate(8px, -8px); }

/* ==========================================================================
   LEVELS
   ========================================================================== */
.levels-section { background: var(--ink); color: #fff; overflow: hidden; border-radius: 40px; margin-inline: 16px; }
.levels-section h2 { color: #fff; }
.levels-section .sub { color: #bdb6cc; }
.levels-section::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(112,86,200,.5), transparent 65%); right: -200px; top: -200px; }
.levels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; position: relative; }
.level-slider { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; background: rgba(255,255,255,.06); padding: 6px; border-radius: 16px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); width: fit-content; }
.level-slider button { position: relative; z-index: 1; border: 0; background: transparent; color: #cfc8de; font-family: var(--font-head); font-weight: 800; font-size: 16px; padding: 10px 14px; border-radius: 11px; transition: color .3s; }
.level-slider button.mix { font-size: 14px; }
.level-slider button.on { color: var(--ink); }
.lv-thumb { position: absolute; z-index: 0; border-radius: 11px; background: #fff; transition: all .45s var(--ease-spring); }
.level-card { background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: 0 30px 60px -20px rgba(0,0,0,.5); }
.lc-head { display: flex; align-items: center; gap: 14px; }
.lc-badge { display: grid; place-items: center; min-width: 58px; height: 58px; padding: 0 8px; border-radius: 16px; background: var(--purple); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 22px; letter-spacing: -0.03em; transition: background .3s; }
.lc-head b { display: block; font-family: var(--font-head); font-size: 20px; }
.lc-head small { color: var(--muted); font-size: 14px; }
.lc-label { margin-top: 24px; font-size: 12px; font-weight: 800; letter-spacing: .1em; color: var(--muted); }
.lc-text { font-size: 19px; line-height: 1.6; margin-top: 10px; min-height: 6.4em; }
.lc-text .word { display: inline-block; opacity: 0; transform: translateY(6px); animation: wordIn .4s var(--ease-out) forwards; animation-delay: calc(var(--i) * 22ms); }
@keyframes wordIn { to { opacity: 1; transform: none; } }
.lc-text .stretch { color: var(--purple-700); background: var(--lilac); border-radius: 6px; padding: 2px 6px; display: block; margin-top: 10px; font-size: 16px; }
.lc-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.lc-meta span { font-size: 13px; font-weight: 700; padding: 5px 11px; border-radius: 99px; background: #f3f1f7; color: var(--ink-2); }

/* ==========================================================================
   ACTIVITIES
   ========================================================================== */
.stage-filter { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -20px 0 36px; }
.stage-filter button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: #fff; border-radius: 99px; padding: 9px 16px; font-weight: 700; font-size: 15px; box-shadow: inset 0 0 0 1.5px var(--line); transition: all .25s var(--ease-out); }
.stage-filter button span { font-size: 12px; color: var(--muted); background: #f3f1f7; padding: 1px 7px; border-radius: 99px; }
.stage-filter button.on { background: var(--ink); color: #fff; box-shadow: none; }
.stage-filter button.on span { background: rgba(255,255,255,.15); color: #fff; }
.sd { width: 10px; height: 10px; border-radius: 50%; }
.sd.warm { background: var(--st-warm); } .sd.input { background: var(--st-input); } .sd.practice { background: var(--st-practice); } .sd.production { background: var(--st-prod); }
.act-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.act-tile { position: relative; background: #fff; border-radius: 20px; padding: 20px 18px 18px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease-out), box-shadow .35s, opacity .35s; overflow: hidden; }
.act-tile::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease-out); }
.act-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.act-tile:hover::after { transform: scaleX(1); }
.act-tile img { width: 50px; height: 50px; transition: transform .45s var(--ease-spring); }
.act-tile:hover img { transform: scale(1.12) rotate(-6deg); }
.act-tile h3 { font-size: 17px; margin-top: 12px; letter-spacing: -0.02em; }
.act-tile p { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.act-tile .stage-tag { position: absolute; top: 16px; right: 14px; }
.act-tile.hide { display: none; }
.act-tile.pop { animation: tilePop .45s var(--ease-out) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes tilePop { from { opacity: 0; transform: translateY(14px) scale(.96); } }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how { background: linear-gradient(180deg, transparent, #fbf8f2 25%, #fbf8f2 75%, transparent); }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.steps-line { position: absolute; top: 27px; left: 12%; right: 12%; height: 3px; background: var(--line); border-radius: 3px; }
.steps-line i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--purple), var(--pink)); transition: width .2s linear; }
.step { position: relative; text-align: center; }
.step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 18px; background: #fff; box-shadow: var(--shadow), inset 0 0 0 1.5px var(--line); font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--purple); transition: all .4s var(--ease-spring); }
.step.lit .step-num { background: var(--purple); color: #fff; transform: scale(1.08); box-shadow: 0 10px 20px -6px rgba(112,86,200,.6); }
.step h3 { font-size: 21px; }
.step p { font-size: 15.5px; color: var(--muted); margin-top: 8px; }
.step-visual { margin-top: 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.step-visual span { font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); display: inline-flex; align-items: center; gap: 6px; }
.sources img { width: 22px; height: 22px; }
.types span:nth-child(3n+1) { background: var(--lilac); box-shadow: none; } .types span:nth-child(3n+2) { background: var(--mint); box-shadow: none; } .types span:nth-child(3n) { background: var(--peach); box-shadow: none; }
.mini-plan { flex-direction: column; align-items: stretch; max-width: 210px; margin-inline: auto; }
.mini-plan span { justify-content: space-between; border-left: 4px solid var(--c); }
.mini-plan b { color: var(--muted); font-weight: 600; }
.share span { background: var(--ink); color: #fff; box-shadow: none; }

/* ==========================================================================
   SHOWCASE
   ========================================================================== */
.showcase-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 72px; align-items: center; }
.showcase-photo { position: relative; margin: 0; }
.showcase-photo > img { width: 100%; aspect-ratio: 1/1; object-fit: cover; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); background: var(--lilac); }
.feature-list { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list img { width: 46px; height: 46px; flex: none; }
.feature-list b { display: block; font-family: var(--font-head); font-size: 17px; letter-spacing: -0.01em; }
.feature-list span { color: var(--muted); font-size: 15.5px; }

/* ==========================================================================
   TESTIMONIALS
   ========================================================================== */
.testimonials { padding-bottom: 90px; overflow: hidden; }
.testimonials .section-head { margin-bottom: 44px; }
.t-row { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); padding: 12px 0 24px; }
.t-track { display: flex; gap: 20px; width: max-content; animation: scroll 60s linear infinite; }
.t-row:hover .t-track { animation-play-state: paused; }
.t-card { width: 360px; margin: 0; background: #fff; border-radius: 24px; padding: 26px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; justify-content: space-between; gap: 22px; transition: transform .35s var(--ease-out); }
.t-card:hover { transform: translateY(-4px) rotate(-.5deg); }
.t-card.lilac { background: var(--lilac); box-shadow: none; } .t-card.mint { background: var(--mint); box-shadow: none; } .t-card.peach { background: var(--peach); box-shadow: none; }
.t-card blockquote { margin: 0; font-size: 17px; line-height: 1.55; font-weight: 500; }
.t-card blockquote::before { content: "★★★★★"; display: block; color: #f2b632; letter-spacing: 2px; font-size: 14px; margin-bottom: 10px; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; }
.t-card .av { width: 42px; height: 42px; font-size: 14px; }
.t-card b { display: block; font-size: 15px; } .t-card small { color: var(--muted); font-size: 13.5px; }

/* ==========================================================================
   PRICING
   ========================================================================== */
.bill-toggle { display: inline-flex; background: #fff; padding: 5px; border-radius: 14px; margin-top: 28px; box-shadow: inset 0 0 0 1px var(--line); }
.bill-toggle button { border: 0; background: transparent; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 10px; color: var(--muted); transition: all .25s; display: inline-flex; align-items: center; gap: 8px; }
.bill-toggle button.on { background: var(--ink); color: #fff; }
.bill-toggle em { font-style: normal; font-size: 11.5px; padding: 2px 8px; border-radius: 99px; background: var(--mint); color: var(--st-input-d); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border-radius: var(--radius-lg); padding: 34px 30px; box-shadow: var(--shadow-sm), inset 0 0 0 1px var(--line); display: flex; flex-direction: column; transition: transform .35s var(--ease-out), box-shadow .35s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.plan h3 { font-size: 24px; }
.plan-for { color: var(--muted); font-size: 15.5px; margin-top: 6px; min-height: 2.6em; }
.price { display: flex; align-items: baseline; gap: 2px; margin: 18px 0 22px; }
.price .cur { font-size: 24px; font-weight: 700; font-family: var(--font-head); align-self: flex-start; margin-top: 8px; }
.price .amt { font-size: 60px; font-weight: 800; font-family: var(--font-head); letter-spacing: -0.05em; line-height: 1; display: inline-block; min-width: 1ch; }
.price .amt.flip { animation: flip .45s var(--ease-out); }
@keyframes flip { 0% { opacity: 0; transform: translateY(-14px); } }
.price .per { color: var(--muted); font-weight: 600; margin-left: 6px; }
.plan .plan-list { list-style: none; padding: 0; margin: 44px 0 0; display: grid; gap: 12px; }
.plan .plan-list li { display: flex; gap: 10px; font-size: 15.5px; opacity: 1; transform: none; padding: 0; grid-template-columns: none; }
.plan .plan-list li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: var(--mint); color: var(--st-input-d); font-size: 11px; font-weight: 900; margin-top: 2px; }
.plan.featured { background: var(--ink); color: #fff; box-shadow: var(--shadow-lg); transform: translateY(-10px); }
.plan.featured:hover { transform: translateY(-14px); }
.plan.featured h3 { color: #fff; }
.plan.featured .plan-for, .plan.featured .per { color: #bdb6cc; }
.plan.featured .plan-list li::before { background: rgba(255,255,255,.14); color: #fff; }
.plan-badge { position: absolute; top: -14px; left: 30px; font-size: 12.5px; font-weight: 800; padding: 6px 14px; border-radius: 99px; background: linear-gradient(90deg, var(--purple), var(--pink)); color: #fff; box-shadow: 0 8px 18px -6px rgba(244,18,114,.5); }
.plan-note { margin: 12px 0 -32px; height: 20px; text-align: center; font-size: 13.5px; color: var(--muted); }
.pricing-note { text-align: center; margin-top: 36px; color: var(--muted); }
.pricing-note a { color: var(--purple); font-weight: 700; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid > div:first-child { position: sticky; top: 110px; }
.faq-art { width: 96px; margin-top: 30px; animation: bob 6s ease-in-out infinite; }
.faq-list { display: grid; gap: 12px; }
.faq-list details { background: #fff; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s, background .3s; }
.faq-list details[open] { box-shadow: var(--shadow), inset 0 0 0 1px var(--line); }
.faq-list summary { list-style: none; cursor: pointer; padding: 20px 60px 20px 24px; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; position: relative; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 28px; height: 28px; margin-top: -14px; border-radius: 50%; background: #f3f1f7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 6v12M6 12h12' stroke='%23292634' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/14px no-repeat; transition: transform .35s var(--ease-out), background-color .3s; }
.faq-list details[open] summary::after { transform: rotate(135deg); background-color: var(--lilac); }
.faq-a { overflow: hidden; }
.faq-a p { padding: 0 24px 22px; color: var(--ink-2); }

/* ==========================================================================
   WAITLIST
   ========================================================================== */
.waitlist { padding: 40px 0 110px; }
.wl-card { position: relative; display: grid; grid-template-columns: 1fr 1fr; border-radius: 40px; overflow: hidden; background: linear-gradient(135deg, var(--purple) 0%, #5c3fb8 55%, #8a3fb8 100%); box-shadow: var(--shadow-lg); }
.wl-card::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.2px); background-size: 24px 24px; mask-image: linear-gradient(90deg, transparent 40%, #000); -webkit-mask-image: linear-gradient(90deg, transparent 40%, #000); }
.wl-art { position: relative; background: #f1edff; }
.wl-art img { width: 100%; height: 100%; object-fit: cover; }
.wl-body { position: relative; padding: 60px 56px; color: #fff; }
.wl-body h2 { color: #fff; font-size: clamp(32px, 3.6vw, 46px); }
.wl-body .dot { color: #ffb3d4; }
.wl-body .sub { color: #ddd5fb; }
.wl-form { margin-top: 30px; display: grid; gap: 12px; }
.wl-fields { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.wl-form input, .wl-form select { width: 100%; height: 54px; border-radius: 14px; border: 0; padding: 0 18px; font: inherit; font-size: 16px; background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.25); transition: box-shadow .2s, background .2s; }
.wl-form select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='white' stroke-width='2.2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; }
.wl-form select option { color: var(--ink); }
.wl-form input::placeholder { color: #cfc5f3; }
.wl-form input:focus, .wl-form select:focus { outline: none; background-color: rgba(255,255,255,.18); box-shadow: inset 0 0 0 2px #fff; }
.wl-form input.invalid { box-shadow: inset 0 0 0 2px #ffb3d4; animation: shake .35s; }
.wl-form .btn { margin-top: 6px; }
.wl-form .btn.loading .btn-label::after { content: "…"; }
.wl-error { color: #ffd0e3; font-weight: 600; font-size: 14.5px; min-height: 0; }
.wl-small { font-size: 13.5px; color: #cfc5f3; }
@keyframes pop { from { transform: scale(0) rotate(-30deg); } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.wl-form .btn.loading { pointer-events: none; opacity: .85; }
.wl-form .btn .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(74,53,150,.25); border-top-color: var(--purple-700); animation: spin .8s linear infinite; }
.wl-form .btn.loading .spin { display: inline-block; }
.wl-form .btn.loading .arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Waitlist success modal */
.wl-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 20px; }
.wl-modal-backdrop { position: absolute; inset: 0; background: rgba(41, 38, 52, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fadeIn .3s ease-out; }
.wl-modal-card { position: relative; width: min(480px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: #fff; border-radius: 28px; padding: 38px 34px 30px; text-align: center; box-shadow: 0 40px 90px -20px rgba(41, 38, 52, .55); animation: modalIn .55s var(--ease-spring); }
.wl-modal-card:focus { outline: none; }
.wl-modal.closing .wl-modal-backdrop { animation: fadeOut .25s ease-in forwards; }
.wl-modal.closing .wl-modal-card { animation: modalOut .25s ease-in forwards; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(24px) scale(.94); } }
@keyframes modalOut { to { opacity: 0; transform: translateY(12px) scale(.97); } }
.wl-modal-x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f3f1f7; font-size: 22px; line-height: 1; color: var(--ink-2); transition: background .2s, transform .2s; }
.wl-modal-x:hover { background: var(--lilac); transform: rotate(90deg); }
.wl-modal-art { position: relative; width: 120px; height: 120px; margin: 0 auto 14px; display: grid; place-items: center; }
.wl-modal-art .ring { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle, var(--lilac) 0 58%, transparent 59%); }
.wl-modal-art .ring::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--st-practice); opacity: 0; animation: ripple 1.6s ease-out .3s 2; }
.wl-modal-art img { position: relative; width: 84px; height: 84px; animation: pop .7s var(--ease-spring) .1s both; }
@keyframes ripple { from { opacity: .8; transform: scale(.7); } to { opacity: 0; transform: scale(1.35); } }
.wl-modal-card .eyebrow { margin-bottom: 8px; }
.wl-modal-card h2 { font-size: 34px; }
.wl-modal-text { color: var(--muted); margin-top: 12px; font-size: 16.5px; }
.wl-modal-next { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; text-align: left; }
.wl-modal-next li { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: #faf9fd; box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--muted); line-height: 1.4; }
.wl-modal-next img { width: 36px; height: 36px; flex: none; }
.wl-modal-next b { display: block; color: var(--ink); font-size: 15px; }
.wl-modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.wl-modal-actions .btn { flex: 1; }
body.modal-open { overflow: hidden; }

/* Turnstile: takes no space unless Cloudflare shows the checkbox */
.turnstile-slot:empty { display: none; }
.turnstile-slot { margin: 2px 0; min-height: 0; }
.turnstile-slot iframe { max-width: 100%; }

/* "Got a question?" under the waitlist form */
.wl-contact { margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.18); font-size: 15px; color: #ddd5fb; }
.wl-contact-link { border: 0; padding: 0; background: none; font: inherit; font-weight: 700; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.45); cursor: pointer; transition: text-decoration-color .2s; }
.wl-contact-link:hover { text-decoration-color: #fff; }

/* Contact modal */
.contact-modal .wl-modal-card { text-align: left; width: min(540px, 100%); }
.contact-icon { width: 56px; height: 56px; margin-bottom: 10px; }
.contact-modal h2 { font-size: 32px; }
.contact-form { display: grid; gap: 14px; margin-top: 20px; }
.contact-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.contact-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 700; color: var(--ink); }
.contact-form label small { font-weight: 500; color: var(--muted); }
.contact-form input, .contact-form textarea { width: 100%; box-sizing: border-box; border: 0; border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; color: var(--ink); background: #faf9fd; box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .2s, background .2s; }
.contact-form textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.contact-form input:focus, .contact-form textarea:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 2px var(--purple), 0 0 0 4px rgba(112,86,200,.12); }
.contact-form .invalid { box-shadow: inset 0 0 0 2px #e2546b; animation: shake .35s; }
.contact-error { color: #b72d45; font-weight: 600; font-size: 14.5px; min-height: 0; margin: 0; }
.contact-error:empty { display: none; }
.contact-small { font-size: 13.5px; color: var(--muted); text-align: center; margin: 0; }
.contact-small a { color: var(--purple); font-weight: 600; }
.contact-form .btn .spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: spin .8s linear infinite; }
.contact-form .btn.loading { pointer-events: none; opacity: .85; }
.contact-form .btn.loading .spin { display: inline-block; }
.contact-sent { text-align: center; }
@media (max-width: 520px) { .contact-row { grid-template-columns: 1fr; } .wl-modal-card { padding: 30px 22px 24px; } }

.spark { position: fixed; pointer-events: none; z-index: 100; font-size: 18px; animation: sparkFly 1s var(--ease-out) forwards; }
@keyframes sparkFly { to { transform: translate(var(--tx), var(--ty)) rotate(var(--rot)); opacity: 0; } }
.waitlist.flash .wl-card { animation: flashRing 1.2s var(--ease-out); }
@keyframes flashRing { 0% { box-shadow: 0 0 0 0 rgba(244,18,114,.5), var(--shadow-lg); } 100% { box-shadow: 0 0 0 24px rgba(244,18,114,0), var(--shadow-lg); } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.f-brand img { width: 96px; }
.f-brand p { color: var(--muted); margin-top: 14px; font-size: 15.5px; }
.site-footer h4 { font-size: 14px; letter-spacing: 0; margin-bottom: 14px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer nav a { text-decoration: none; color: var(--muted); font-size: 15px; transition: color .2s; }
.site-footer nav a:hover { color: var(--purple); }
.f-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.f-bottom a { text-decoration: none; font-weight: 600; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero-copy { text-align: center; max-width: 720px; margin-inline: auto; }
  .lead { margin-inline: auto; }
  .hero-ctas, .hero-proof { justify-content: center; }
  .demo-wrap { max-width: 720px; margin-inline: auto; width: 100%; }
  .persona { grid-template-columns: 1fr; }
  .persona-tabs { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .b-students { grid-column: span 2; }
  .b-voice, .b-present, .b-custom, .b-library, .b-course, .b-export { grid-column: span 1; }
  .two-ways-grid, .levels-grid, .showcase-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; }
    .steps { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .steps-line { display: none; }
  .faq-grid { grid-template-columns: 1fr; gap: 36px; }
  .faq-grid > div:first-child { position: static; }
  .faq-art { display: none; }
  .wl-card { grid-template-columns: 1fr; }
  .wl-art { height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
}

@media (max-width: 860px) {
  .nav-links { position: fixed; inset: 64px 12px auto 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px; background: #fff; border-radius: 20px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-10px) scale(.98); transform-origin: top; transition: all .3s var(--ease-out); }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 16px; font-size: 17px; }
  .nav-cta-mobile { display: flex !important; margin-top: 8px; }
  .nav-actions .btn { display: none; }
  .menu-btn { display: block; }
  .nav-actions { margin-left: auto; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan.featured { transform: none; }
  .plan.featured:hover { transform: translateY(-4px); }
  .persona-panel { grid-template-columns: 1fr; }
  .persona-photo { min-height: 240px; }
  .persona-copy { padding: 30px 26px 34px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .container { width: min(var(--container), 100% - 32px); }
  .hero { padding-top: 28px; }
  .lead { font-size: 18px; }
  .sub { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
    .demo-stage { height: 520px; }
  .scene { padding: 18px 16px 14px; }
  .start-grid { grid-template-columns: repeat(2, 1fr); }
  .start-card { flex-direction: row; text-align: left; padding: 10px; gap: 8px; }
  .start-card img { width: 32px; height: 32px; margin: 0; }
  .start-card span { display: none; }
  .level-grid { grid-template-columns: repeat(3, 1fr); }
  .row-label { width: 100%; }
  .build-grid { grid-template-columns: 1fr; }
  .editor { grid-template-columns: 1fr; }
  .outline { display: none; }
  .vocab, .roles { grid-template-columns: 1fr; }
  .chrome-live { display: none; }
  
  .demo-steps button { font-size: 12px; padding: 6px 8px; }
  .persona-tabs { grid-template-columns: 1fr; }
  .persona-tabs button { padding: 12px 14px; }
  .persona-tabs small { display: none; }
  .persona-copy h3 { font-size: 26px; }
  .bento { grid-template-columns: 1fr; }
  .b-students, .b-voice, .b-present, .b-custom, .b-library, .b-course, .b-export { grid-column: span 1; }
  .b-students { grid-template-columns: 1fr; }
  .b-card { padding: 24px; }
  .roster-row { grid-template-columns: 32px 1fr 1fr; }
  .roster-row .bar { display: none; }
  .roster-head { grid-template-columns: 1.2fr 1fr; } .roster-head span:nth-child(2) { display: none; }
  .levels-section { margin-inline: 8px; border-radius: 28px; }
  .level-card { padding: 24px; }
  .lc-text { font-size: 17px; }
  .steps { grid-template-columns: 1fr; }
  .act-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .act-tile { padding: 16px 14px 14px; }
  .act-tile img { width: 40px; height: 40px; }
  .act-tile h3 { font-size: 15px; }
  .act-tile p { font-size: 13px; }
  .act-tile .stage-tag { top: 12px; right: 10px; font-size: 8.5px; }
  .t-card { width: 290px; }
  .wl-body { padding: 38px 24px; }
  .wl-fields { grid-template-columns: 1fr; }
  .wl-card { border-radius: 28px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .way-toggle { display: grid; width: 100%; }
  .way-toggle button { padding: 12px 10px; font-size: 14px; justify-content: center; }
  .way-card { left: 0; right: 0; }
  .showcase-grid { gap: 40px; }
  }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track, .t-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
}
