@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Space+Grotesk:wght@500;600;700&family=Instrument+Serif:ital@0;1&display=swap');

:root {
  --bg: #07070d;
  --bg-2: #0d0d17;
  --card: rgba(255,255,255,0.035);
  --card-2: rgba(255,255,255,0.06);
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.16);
  --text: #f2f2f7;
  --muted: #9a9ab0;
  --muted-2: #6b6b80;
  --violet: #8b5cf6;
  --cyan: #22d3ee;
  --pink: #f472b6;
  --grad: linear-gradient(90deg, #8b5cf6, #22d3ee);
  --grad-2: linear-gradient(135deg, #8b5cf6 0%, #ec4899 50%, #22d3ee 100%);
  --radius: 18px;
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --display: 'Space Grotesk', 'Inter', sans-serif;
  --max: 1180px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 700; color: var(--cyan);
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--grad); border-radius: 2px; }
.grad-text {
  background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; }
h2.sec { font-size: clamp(32px, 4.5vw, 52px); font-weight: 700; line-height: 1.05; margin: 14px 0 16px; }
p.lead { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 620px; }
section { padding: 110px 0; position: relative; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 14px 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #07070d; box-shadow: 0 10px 40px -10px rgba(139,92,246,.6); }
.btn-primary:hover { box-shadow: 0 14px 50px -10px rgba(34,211,238,.55); }
.btn-ghost { background: var(--card); border-color: var(--line-2); color: var(--text); backdrop-filter: blur(10px); }
.btn-ghost:hover { background: var(--card-2); }
.btn-sm { padding: 10px 18px; font-size: 14px; }

/* ---------- ticker ---------- */
.ticker {
  background: linear-gradient(90deg, rgba(139,92,246,.25), rgba(34,211,238,.2));
  border-bottom: 1px solid var(--line);
  font-size: 13px; padding: 9px 0; text-align: center; color: #dcdcf0;
}
.ticker b { color: #fff; }
.ticker .pill { background: #fff; color: #07070d; font-weight: 800; font-size: 10px; padding: 3px 8px; border-radius: 999px; margin-right: 10px; letter-spacing: .08em; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(1.4);
  background: rgba(7,7,13,.72); border-bottom: 1px solid var(--line);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); font-weight: 500; }
.nav-links a:hover, .nav-links a.active { color: #fff; }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 80px; text-align: center; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -200px 0 auto 0; height: 700px; pointer-events: none;
  background:
    radial-gradient(600px 400px at 30% 20%, rgba(139,92,246,.28), transparent 60%),
    radial-gradient(600px 400px at 70% 30%, rgba(34,211,238,.18), transparent 60%);
  filter: blur(20px);
}
.hero .wrap { position: relative; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 8px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); font-size: 13px; color: var(--muted); margin-bottom: 28px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52,211,153,.2); }
.hero h1 {
  font-size: clamp(44px, 7.2vw, 92px); font-weight: 700; line-height: .98; letter-spacing: -.035em;
  margin: 0 auto 26px; max-width: 1000px;
}
.rotator {
  display: inline-grid; grid-template-areas: 'a'; text-align: left; vertical-align: top;
  min-width: 4ch;
}
.rotator span {
  grid-area: a; white-space: nowrap;
  background: var(--grad-2); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: 0; transform: translateY(18px) rotateX(-40deg); transform-origin: 50% 100%;
  transition: opacity .45s ease, transform .55s cubic-bezier(.2,.8,.2,1);
  filter: blur(6px);
}
.rotator span.in { opacity: 1; transform: none; filter: blur(0); }
.rotator span.out { opacity: 0; transform: translateY(-18px) rotateX(40deg); filter: blur(6px); }
.hero p.lead { margin: 0 auto 36px; font-size: 19px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 48px; }
.social-proof { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars i {
  width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -8px;
  background: var(--grad-2); display: inline-block;
}
.avatars i:nth-child(2) { background: linear-gradient(135deg,#f59e0b,#ef4444); }
.avatars i:nth-child(3) { background: linear-gradient(135deg,#22d3ee,#3b82f6); }
.avatars i:nth-child(4) { background: linear-gradient(135deg,#34d399,#22d3ee); }
.avatars i:first-child { margin-left: 0; }
.stars { color: #fbbf24; letter-spacing: 2px; }

/* hero demo window */
.demo {
  margin: 70px auto 0; max-width: 960px; border-radius: 22px; border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  box-shadow: 0 40px 120px -30px rgba(139,92,246,.45), inset 0 1px 0 rgba(255,255,255,.08);
  overflow: hidden; text-align: left;
}
.demo-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: rgba(0,0,0,.25); }
.demo-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.demo-bar i:nth-child(2) { background: #febc2e; } .demo-bar i:nth-child(3) { background: #28c840; }
.demo-bar span { margin-left: auto; font-size: 12px; color: var(--muted-2); font-family: ui-monospace, Menlo, monospace; }
.demo-body { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 380px; }
.demo-left { padding: 26px; border-right: 1px solid var(--line); }
.demo-right { padding: 26px; background: rgba(0,0,0,.2); }
.demo h4 { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; font-weight: 700; }
.prompt-box {
  border: 1px solid var(--line-2); border-radius: 14px; padding: 16px; background: rgba(0,0,0,.35);
  font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; line-height: 1.6; color: #dcdcf0; min-height: 170px; white-space: pre-wrap;
}
.prompt-box .hl { color: var(--cyan); } .prompt-box .hl2 { color: var(--pink); } .prompt-box .hl3 { color: #a78bfa; }
.caret { display: inline-block; width: 8px; height: 16px; background: var(--cyan); vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.score { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.score .bar { flex: 1; height: 8px; background: rgba(255,255,255,.08); border-radius: 99px; overflow: hidden; }
.score .bar i { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }
.score b { font-size: 13px; color: var(--cyan); min-width: 110px; text-align: right; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.chip { font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: var(--card); }
.chip.on { border-color: rgba(34,211,238,.5); color: #fff; background: rgba(34,211,238,.1); }
.result-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--card); margin-bottom: 12px; }
.result-card .tag { font-size: 11px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted-2); margin-bottom: 8px; font-weight: 700; }
.result-card p { font-size: 14px; line-height: 1.55; color: #dcdcf0; }
.result-card.good { border-color: rgba(52,211,153,.4); }
.result-card.good .tag { color: #34d399; }
.result-card.bad .tag { color: #f87171; }

/* ---------- logos strip ---------- */
.logos { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.logos .row { display: flex; justify-content: center; gap: 48px; flex-wrap: wrap; color: var(--muted-2); font-weight: 700; font-size: 14px; letter-spacing: .04em; }
.logos .row span { display: inline-flex; align-items: center; gap: 8px; opacity: .8; }
.logos .row i { width: 18px; height: 18px; border-radius: 5px; background: var(--muted-2); display: inline-block; }
.logos .label { text-align: center; color: var(--muted-2); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 22px; }

/* ---------- feature grid ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
  transition: border-color .2s, transform .2s, background .2s; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--card-2); }
.card .num { font-family: var(--display); font-size: 13px; color: var(--muted-2); font-weight: 700; letter-spacing: .1em; margin-bottom: 40px; }
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15px; line-height: 1.6; }
.card .icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: rgba(139,92,246,.15); border: 1px solid rgba(139,92,246,.35); font-size: 20px; margin-bottom: 22px; }

/* ---------- tracks ---------- */
.track {
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--card); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .2s, border-color .2s;
}
.track:hover { transform: translateY(-4px); border-color: var(--line-2); }
.track .cover { height: 160px; position: relative; }
.track .cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(7,7,13,.9)); }
.track .cover .lvl { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: rgba(0,0,0,.5); backdrop-filter: blur(8px); border: 1px solid var(--line-2); }
.track .cover .new { position: absolute; top: 14px; right: 14px; z-index: 2; font-size: 10px; font-weight: 800; padding: 4px 8px; border-radius: 6px; background: var(--grad); color: #07070d; }
.track .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.track h3 { font-size: 18px; }
.track p { color: var(--muted); font-size: 14px; line-height: 1.55; flex: 1; }
.track .meta { display: flex; gap: 14px; font-size: 12px; color: var(--muted-2); margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.c1 { background: linear-gradient(135deg,#4c1d95,#8b5cf6 60%,#22d3ee); }
.c2 { background: linear-gradient(135deg,#0e7490,#22d3ee 60%,#a5f3fc); }
.c3 { background: linear-gradient(135deg,#831843,#ec4899 60%,#fbcfe8); }
.c4 { background: linear-gradient(135deg,#7c2d12,#f97316 60%,#fde68a); }
.c5 { background: linear-gradient(135deg,#064e3b,#10b981 60%,#a7f3d0); }
.c6 { background: linear-gradient(135deg,#1e3a8a,#3b82f6 60%,#bfdbfe); }
.c7 { background: linear-gradient(135deg,#3f3f46,#a1a1aa 60%,#f4f4f5); }
.c8 { background: linear-gradient(135deg,#713f12,#eab308 60%,#fef08a); }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
.stat { text-align: center; padding: 30px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.stat b { display: block; font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }

/* ---------- split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .list { display: flex; flex-direction: column; gap: 22px; margin-top: 30px; }
.split .item { display: flex; gap: 16px; }
.split .item b { display: block; font-size: 16px; margin-bottom: 4px; }
.split .item p { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.split .item .n { width: 36px; height: 36px; flex: none; border-radius: 10px; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--cyan); }
.phone-mock {
  border-radius: 28px; border: 1px solid var(--line-2); background: linear-gradient(180deg,#14141f,#0b0b14);
  padding: 20px; box-shadow: 0 40px 100px -30px rgba(34,211,238,.35);
}
.chat { display: flex; flex-direction: column; gap: 12px; }
.msg { max-width: 86%; padding: 12px 14px; border-radius: 16px; font-size: 14px; line-height: 1.5; }
.msg.me { align-self: flex-end; background: var(--grad); color: #07070d; border-bottom-right-radius: 6px; }
.msg.ai { align-self: flex-start; background: rgba(255,255,255,.07); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: #e5e5f0; }
.msg.ai .t { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; font-weight: 700; }

/* ---------- pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 22px; padding: 30px; background: var(--card); display: flex; flex-direction: column; gap: 18px; }
.plan.hot { border-color: rgba(139,92,246,.6); background: linear-gradient(180deg, rgba(139,92,246,.12), rgba(255,255,255,.03)); box-shadow: 0 30px 80px -30px rgba(139,92,246,.6); }
.plan .ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #07070d; font-size: 11px; font-weight: 800; letter-spacing: .12em; padding: 6px 12px; border-radius: 999px; }
.plan h3 { font-size: 22px; }
.plan .sub { color: var(--muted); font-size: 14px; margin-top: -10px; }
.plan .price { font-family: var(--display); font-size: 48px; font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.plan .price small { font-size: 15px; color: var(--muted); font-family: var(--font); font-weight: 500; }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #dcdcf0; }
.plan li::before { content: '✓'; color: var(--cyan); margin-right: 10px; font-weight: 800; }
.plan li.off { color: var(--muted-2); } .plan li.off::before { content: '–'; color: var(--muted-2); }
.plan .btn { margin-top: auto; }
.toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; margin: 18px 0 40px; background: var(--card); }
.toggle button { border: 0; background: transparent; color: var(--muted); padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; font-family: var(--font); }
.toggle button.on { background: #fff; color: #07070d; }
.toggle .save { font-size: 11px; color: #34d399; margin-left: 6px; font-weight: 800; }

/* ---------- testimonials ---------- */
.quote { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.quote p { font-size: 15px; line-height: 1.6; color: #e5e5f0; margin-bottom: 18px; }
.quote .who { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.quote .who i { width: 38px; height: 38px; border-radius: 50%; background: var(--grad-2); }
.quote .who b { display: block; font-size: 14px; } .quote .who span { color: var(--muted-2); }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; list-style: none; font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--muted-2); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 12px; color: var(--muted); line-height: 1.65; font-size: 15px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center; padding: 90px 24px; border-radius: 30px; border: 1px solid var(--line-2); position: relative; overflow: hidden;
  background: radial-gradient(800px 300px at 50% 120%, rgba(139,92,246,.45), transparent), radial-gradient(500px 200px at 50% -20%, rgba(34,211,238,.25), transparent), var(--bg-2);
}
.cta h2 { font-size: clamp(34px, 5vw, 64px); margin-bottom: 16px; }
.cta p { color: var(--muted); margin-bottom: 30px; font-size: 17px; }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 60px 0 40px; color: var(--muted); font-size: 14px; }
footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 40px; }
footer h5 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
footer ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
footer .bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 24px; font-size: 12px; color: var(--muted-2); flex-wrap: wrap; gap: 10px; }

/* ---------- page headers / catalog ---------- */
.page-head { padding: 90px 0 40px; text-align: center; }
.page-head h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -.03em; margin: 14px 0 16px; line-height: 1; }
.filters { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.filters button { border: 1px solid var(--line-2); background: var(--card); color: var(--muted); padding: 9px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; font-family: var(--font); }
.filters button.on { background: #fff; color: #07070d; border-color: #fff; }
.catalog { padding: 30px 0 100px; }

/* ---------- lesson ---------- */
.lesson { display: grid; grid-template-columns: 260px 1fr 280px; gap: 40px; padding: 50px 0 100px; align-items: start; }
.toc { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); }
.toc h5 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.toc a { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; font-size: 13.5px; color: var(--muted); }
.toc a.done::before { content: '✓'; color: #34d399; font-weight: 800; font-size: 12px; }
.toc a.now { background: rgba(139,92,246,.15); color: #fff; border: 1px solid rgba(139,92,246,.35); }
.toc a.now::before { content: '▶'; color: var(--cyan); font-size: 10px; }
.toc a.todo::before { content: '○'; color: var(--muted-2); }
.toc .prog { height: 6px; background: rgba(255,255,255,.07); border-radius: 99px; margin: 14px 0 4px; overflow: hidden; }
.toc .prog i { display: block; height: 100%; width: 38%; background: var(--grad); }
.toc small { color: var(--muted-2); font-size: 12px; }
.article h1 { font-size: 40px; font-weight: 700; letter-spacing: -.03em; margin: 10px 0 8px; line-height: 1.1; }
.article .meta { color: var(--muted-2); font-size: 13px; display: flex; gap: 16px; margin-bottom: 30px; }
.article h2 { font-size: 24px; margin: 40px 0 12px; }
.article p { color: #d5d5e3; line-height: 1.75; font-size: 16.5px; margin-bottom: 16px; }
.article ul { color: #d5d5e3; line-height: 1.75; margin: 0 0 16px 22px; }
.video { aspect-ratio: 16/9; border-radius: 18px; border: 1px solid var(--line-2); background: radial-gradient(600px 300px at 30% 30%, rgba(139,92,246,.4), transparent), radial-gradient(500px 300px at 80% 80%, rgba(34,211,238,.3), transparent), #0b0b14; display: grid; place-items: center; margin-bottom: 30px; position: relative; overflow: hidden; }
.video .play { width: 72px; height: 72px; border-radius: 50%; background: #fff; color: #07070d; display: grid; place-items: center; font-size: 24px; box-shadow: 0 20px 60px -10px rgba(255,255,255,.5); }
.video .dur { position: absolute; bottom: 14px; right: 14px; background: rgba(0,0,0,.6); font-size: 12px; padding: 4px 8px; border-radius: 6px; font-family: ui-monospace, monospace; }
.callout { border-left: 3px solid var(--cyan); background: rgba(34,211,238,.06); padding: 16px 18px; border-radius: 0 12px 12px 0; margin: 20px 0; }
.callout b { color: var(--cyan); display: block; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.callout p { margin: 0; font-size: 15px; }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
.compare .result-card p { font-family: ui-monospace, Menlo, monospace; font-size: 13px; }
.playground { border: 1px solid var(--line-2); border-radius: 18px; padding: 20px; background: rgba(0,0,0,.3); margin: 26px 0; }
.playground textarea { width: 100%; min-height: 110px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; color: #fff; font-family: ui-monospace, Menlo, monospace; font-size: 13.5px; padding: 14px; resize: vertical; outline: none; }
.playground textarea:focus { border-color: rgba(34,211,238,.5); }
.playground .row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; flex-wrap: wrap; }
.playground .feedback { margin-top: 14px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.playground .feedback b { color: #34d399; }
.lesson-nav { display: flex; justify-content: space-between; margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--line); gap: 12px; }
.side { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 16px; }
.side .box { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; background: var(--card); font-size: 14px; }
.side .box h5 { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.side .streak { font-family: var(--display); font-size: 34px; font-weight: 700; }
.side .days { display: flex; gap: 5px; margin-top: 10px; }
.side .days i { flex: 1; height: 26px; border-radius: 6px; background: rgba(255,255,255,.06); }
.side .days i.hit { background: var(--grad); }
.badge-row { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-row span { font-size: 12px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--card); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.show { opacity: 1; transform: none; }

@media (max-width: 980px) {
  .grid-3, .grid-4, .price-grid, .stats { grid-template-columns: 1fr 1fr; }
  .split, .demo-body, .compare { grid-template-columns: 1fr; }
  .lesson { grid-template-columns: 1fr; } .toc, .side { position: static; }
  .nav-links { display: none; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .price-grid, .stats { grid-template-columns: 1fr; }
  section { padding: 70px 0; }
}

/* ============================================================
   SPIN — the lever page
   ============================================================ */
.spin-body { background:
  radial-gradient(900px 500px at 50% -100px, rgba(139,92,246,.16), transparent 70%),
  radial-gradient(700px 400px at 90% 20%, rgba(34,211,238,.08), transparent 70%),
  var(--bg);
}
.nav-links a.active { color: var(--text); }
.nav-links a.active::after { content:''; display:block; height:2px; border-radius:2px; background: var(--grad); margin-top:4px; }

.spin-stage { padding: 60px 0 40px; }
.spin-head { text-align: center; }
.spin-sub { color: var(--muted); font-size: 17px; line-height: 1.6; margin: 14px auto 0; max-width: 560px; }

/* pool tabs */
.pool-tabs { display: flex; justify-content: center; gap: 8px; margin: 32px 0 28px; flex-wrap: wrap; }
.pool-tab {
  font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  padding: 10px 20px; border-radius: 999px; color: var(--muted);
  background: var(--card); border: 1px solid var(--line); transition: .18s;
}
.pool-tab:hover { color: var(--text); border-color: var(--line-2); }
.pool-tab.active { color: #07070d; background: var(--grad); border-color: transparent; }

/* the slot */
.slot {
  position: relative; text-align: center; padding: 54px 28px 40px;
  border: 1px solid var(--line); border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  overflow: hidden;
}
.slot-glow {
  position: absolute; inset: -40% 20% auto 20%; height: 320px; pointer-events: none;
  background: radial-gradient(circle, rgba(139,92,246,.35), transparent 65%);
  filter: blur(30px); opacity: .5; transition: opacity .4s;
}
.slot.is-spinning .slot-glow { opacity: 1; animation: slotPulse .5s ease-in-out infinite alternate; }
@keyframes slotPulse { to { transform: scale(1.12); } }
.slot-label {
  position: relative; font-size: 11px; letter-spacing: .28em; text-transform: uppercase;
  font-weight: 700; color: var(--cyan); margin-bottom: 18px; min-height: 14px;
}
.slot.is-spinning .slot-label { color: var(--muted-2); }
.slot-window { position: relative; height: clamp(64px, 11vw, 132px); display: flex; align-items: center; justify-content: center; }
.slot-reel { width: 100%; }
.slot-item {
  font-family: 'Instrument Serif', 'Times New Roman', serif; font-weight: 400;
  font-size: clamp(38px, 7vw, 86px); line-height: 1.02; letter-spacing: -.01em;
  color: var(--text);
}
.slot.is-spinning .slot-item { filter: blur(.6px); opacity: .75; }
.slot-item.landed { animation: landIn .45s cubic-bezier(.2,.9,.2,1); text-shadow: 0 0 60px rgba(139,92,246,.45); }
@keyframes landIn { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.slot-pitch { position: relative; color: var(--muted); font-size: 16px; line-height: 1.6; max-width: 620px; margin: 18px auto 0; min-height: 50px; }
.slot-meta { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.slot-actions { position: relative; display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.btn-lever { padding: 16px 38px; font-size: 16px; }
.respin {
  display: block; margin: 16px auto 0; background: none; border: 0; cursor: pointer;
  color: var(--muted-2); font: inherit; font-size: 13px;
}
.respin:hover { color: var(--text); }

/* panels */
.panel { padding: 80px 0; border-top: 1px solid var(--line); }
.panel-top { display: grid; grid-template-columns: 1fr 260px; gap: 40px; align-items: start; margin-bottom: 40px; }
.panel-foot { display: flex; gap: 12px; margin-top: 40px; flex-wrap: wrap; }

/* timer */
.timer-box { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 22px; text-align: center; }
.timer { font-family: var(--display); font-size: 44px; font-weight: 700; letter-spacing: -.02em; }
.timer.low { color: var(--pink); }
.timer-actions { display: flex; gap: 8px; justify-content: center; margin: 14px 0 10px; }
.timer-note { font-size: 12px; color: var(--muted-2); }

/* steps */
.steps { list-style: none; display: flex; flex-direction: column; gap: 12px; counter-reset: s; }
.step { display: flex; gap: 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: .2s; }
.step:hover { border-color: var(--line-2); }
.step.done { opacity: .5; }
.step.done .step-head { text-decoration: line-through; }
.step-check input { position: absolute; opacity: 0; }
.step-check span {
  display: block; width: 22px; height: 22px; border-radius: 7px; margin-top: 2px;
  border: 1px solid var(--line-2); cursor: pointer; transition: .18s;
}
.step-check input:checked + span { background: var(--grad); border-color: transparent; }
.step-check input:checked + span::after { content: '✓'; color: #07070d; font-size: 14px; font-weight: 800; display: block; text-align: center; line-height: 21px; }
.step-head { font-family: var(--display); font-weight: 600; font-size: 17px; margin-bottom: 6px; }
.step-head b { color: var(--muted-2); margin-right: 8px; font-weight: 700; }
.step-head em { font-style: normal; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); margin-left: 8px; }
.step-body p { color: var(--muted); font-size: 15px; line-height: 1.65; }

/* playbook */
.pb-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 28px; margin-top: 34px; }
.pb-block { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 24px; margin-bottom: 16px; }
.pb-block h3 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--cyan); margin-bottom: 14px; }
.pb-block p { color: var(--muted); font-size: 15px; line-height: 1.7; }
.pb-block ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pb-block li { color: var(--muted); font-size: 14px; line-height: 1.6; padding-left: 18px; position: relative; }
.pb-block li::before { content: '✗'; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.pb-block.accent { border-color: rgba(34,211,238,.28); background: rgba(34,211,238,.06); }
.tool-list { display: flex; gap: 8px; flex-wrap: wrap; }
.prompt-card { border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.35); margin-bottom: 12px; overflow: hidden; }
.prompt-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.prompt-card code { display: block; padding: 16px; font-size: 13px; line-height: 1.7; color: #cdd0e0; white-space: pre-wrap; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.copy { font: inherit; font-size: 12px; cursor: pointer; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--muted); }
.copy:hover { color: var(--text); }

/* all paths */
.path-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; margin-top: 36px; }
.col-head { font-family: var(--display); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.col-head span { color: var(--cyan); }
.path-list { display: flex; flex-direction: column; gap: 8px; }
.path {
  text-align: left; font: inherit; cursor: pointer; display: block; width: 100%;
  padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--card); transition: .18s;
}
.path:hover { border-color: var(--line-2); background: var(--card-2); transform: translateX(3px); }
.path-label { display: block; font-size: 10px; letter-spacing: .2em; color: var(--muted-2); margin-bottom: 5px; }
.path-title { display: block; font-family: var(--display); font-weight: 600; font-size: 17px; color: var(--text); margin-bottom: 4px; }
.path-pitch { display: block; font-size: 13px; color: var(--muted); line-height: 1.55; }

@media (max-width: 900px) {
  .panel-top, .pb-grid, .path-cols { grid-template-columns: 1fr; }
  .slot { padding: 40px 18px 32px; }
}

/* [hidden] must win over component display rules */
[hidden] { display: none !important; }

/* ---------- credits badge ---------- */
.credit-badge {
  font-size: 13px; color: var(--muted); padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); white-space: nowrap;
}
.credit-badge b { color: var(--cyan); font-weight: 700; }
.credit-badge.empty b { color: var(--pink); }
.credit-badge:hover { background: var(--card-2); color: var(--text); }

/* ---------- the lab ---------- */
.lab {
  margin-top: 30px; border: 1px solid rgba(139,92,246,.3); border-radius: 24px;
  background: linear-gradient(180deg, rgba(139,92,246,.09), rgba(255,255,255,.02));
  padding: 30px;
}
.lab-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.lab-badge {
  display: inline-block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800;
  color: #07070d; background: var(--grad); padding: 5px 10px; border-radius: 999px; margin-bottom: 10px;
}
.lab-head h3 { font-size: 26px; font-weight: 700; }
.lab-cost { font-size: 13px; color: var(--muted); white-space: nowrap; }
.lab-cost b { color: var(--text); }
.lab-teach p { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 12px; max-width: 780px; }
.lab-example { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0; }
.lab-example .result-card p { font-size: 14px; line-height: 1.6; }
.lab-task { display: block; font-weight: 600; font-size: 15px; margin-bottom: 10px; }
.lab-do textarea {
  width: 100%; resize: vertical; font: inherit; font-size: 14.5px; line-height: 1.7;
  padding: 16px; border-radius: 14px; border: 1px solid var(--line-2);
  background: rgba(0,0,0,.4); color: var(--text);
}
.lab-do textarea:focus { outline: none; border-color: rgba(139,92,246,.6); }
.lab-actions { display: flex; align-items: center; gap: 12px; margin-top: 14px; flex-wrap: wrap; }
.lab-hint { font-size: 13px; color: var(--muted); }
.lab-hint a { color: var(--cyan); text-decoration: underline; }
.lab-out { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 22px; }
.lab-score { font-family: var(--display); display: flex; align-items: baseline; gap: 6px; margin-bottom: 14px; }
.lab-score b { font-size: 46px; font-weight: 700; line-height: 1; }
.lab-score span { font-size: 14px; color: var(--muted-2); }
.lab-rules div { font-size: 14px; line-height: 1.6; margin-bottom: 8px; color: var(--muted); }
.lab-rules .ok { color: #86efac; }
.lab-rules .ok b { color: #34d399; margin-right: 6px; }
.lab-rules .no b { color: #f87171; margin-right: 6px; }
.lab-image { margin-top: 20px; }
.lab-image img { border-radius: 16px; border: 1px solid var(--line-2); max-width: 520px; width: 100%; }
.lab-img-foot { display: flex; justify-content: space-between; gap: 12px; max-width: 520px; margin-top: 8px; font-size: 12px; color: var(--muted-2); }
.lab-img-foot a { color: var(--cyan); }
.lab-loading, .lab-error {
  border: 1px dashed var(--line-2); border-radius: 16px; padding: 30px; text-align: center;
  color: var(--muted); font-size: 14px; max-width: 520px;
}
.lab-error { border-color: rgba(244,114,182,.4); color: #fbb6ce; }
.lab-next { margin-top: 16px; font-size: 14px; color: var(--cyan); line-height: 1.6; }
@media (max-width: 760px) { .lab-example { grid-template-columns: 1fr; } .lab { padding: 22px 18px; } }

/* ============================================================
   GUIDED LESSON — one instruction per screen
   ============================================================ */
.course-prog { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.course-dots { display: flex; gap: 6px; flex: 1; }
.course-dots i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); transition: .3s; }
.course-dots i.past { background: rgba(139,92,246,.55); }
.course-dots i.now { background: var(--grad); }
#courseCount { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }

.course-card {
  border: 1px solid var(--line-2); border-radius: 24px; padding: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  min-height: 300px;
}
.c-title { font-size: clamp(24px, 3.2vw, 34px); font-weight: 700; margin-bottom: 12px; }
.c-say { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 680px; margin-bottom: 26px; }

/* choose */
.c-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.c-opt {
  font: inherit; text-align: left; cursor: pointer; padding: 18px 20px; border-radius: 16px;
  border: 1px solid var(--line-2); background: var(--card); color: var(--text); transition: .16s;
}
.c-opt:hover { background: var(--card-2); transform: translateY(-2px); }
.c-opt b { display: block; font-family: var(--display); font-size: 17px; font-weight: 600; }
.c-opt span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.c-opt.picked { border-color: rgba(34,211,238,.65); background: rgba(34,211,238,.09); }
.c-input {
  width: 100%; margin-top: 12px; font: inherit; font-size: 15px; padding: 14px 16px;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.35); color: var(--text);
}
.c-input:focus { outline: none; border-color: rgba(139,92,246,.6); }

/* compare */
.c-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.c-card {
  font: inherit; cursor: pointer; padding: 0; overflow: hidden; text-align: left;
  border: 2px solid var(--line-2); border-radius: 18px; background: var(--card); transition: .16s;
}
.c-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.c-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.c-card .c-text { padding: 26px 22px; font-size: 16px; line-height: 1.6; color: var(--text); min-height: 150px; }
.c-cap { display: block; padding: 12px 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.c-card.right { border-color: #34d399; }
.c-card.right .c-cap { color: #34d399; }
.c-card.wrong { border-color: #f87171; opacity: .6; }

/* write / fix */
.c-broken {
  border-left: 3px solid var(--pink); padding: 14px 18px; margin-bottom: 14px; border-radius: 0 12px 12px 0;
  background: rgba(244,114,182,.08); color: #f5d0e0; font-size: 15px; line-height: 1.6;
}
.c-area {
  width: 100%; font: inherit; font-size: 15px; line-height: 1.7; padding: 16px; resize: vertical;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.4); color: var(--text);
}
.c-area:focus { outline: none; border-color: rgba(139,92,246,.6); }
.c-actions { display: flex; align-items: center; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.c-hint { font-size: 13px; color: var(--muted-2); }
.c-hint b { color: var(--cyan); }
.c-hint a { color: var(--cyan); text-decoration: underline; }

/* generate */
.c-prompt { border: 1px solid var(--line); border-radius: 14px; background: rgba(0,0,0,.4); overflow: hidden; }
.c-prompt span { display: block; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted-2); font-weight: 700; }
.c-prompt code { display: block; padding: 16px; font-size: 13.5px; line-height: 1.7; color: #cdd0e0; font-family: ui-monospace, Menlo, monospace; }
.c-image { margin-top: 18px; }
.c-image img { border-radius: 16px; border: 1px solid var(--line-2); max-width: 460px; width: 100%; }

/* judge */
.c-checks { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.c-check { display: flex; align-items: center; gap: 12px; cursor: pointer; font-size: 15px; color: var(--muted); line-height: 1.5; }
.c-check input { position: absolute; opacity: 0; }
.c-check span { width: 22px; height: 22px; flex: 0 0 22px; border-radius: 7px; border: 1px solid var(--line-2); transition: .16s; }
.c-check input:checked + span { background: var(--grad); border-color: transparent; }
.c-check input:checked + span::after { content: '✓'; display: block; text-align: center; line-height: 21px; font-size: 14px; font-weight: 800; color: #07070d; }
.c-check input:checked ~ * { color: var(--text); }

/* field */
.c-field { border: 1px dashed var(--line-2); border-radius: 18px; padding: 24px; background: rgba(0,0,0,.25); }
.c-field-tag { display: inline-block; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; font-weight: 800; color: var(--bg); background: var(--muted); padding: 4px 10px; border-radius: 999px; margin-bottom: 16px; }
.c-field ol { padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.c-field li { color: var(--muted); font-size: 15px; line-height: 1.6; }
.c-money { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--cyan); line-height: 1.6; }

/* feedback */
.c-fb { margin-top: 22px; padding: 18px 20px; border-radius: 14px; font-size: 15px; line-height: 1.7; }
.c-fb.good { background: rgba(52,211,153,.09); border: 1px solid rgba(52,211,153,.3); color: #cdeedd; }
.c-fb.warn { background: rgba(251,191,36,.08); border: 1px solid rgba(251,191,36,.3); color: #f5e3bd; }
.c-fb ul { margin: 10px 0 0 18px; display: flex; flex-direction: column; gap: 7px; }
.c-fb b { color: #fff; }

.c-done { text-align: center; padding: 30px 0; }
.c-done h3 { font-size: 30px; margin-bottom: 12px; }
.c-done p { color: var(--muted); font-size: 16px; line-height: 1.7; max-width: 560px; margin: 0 auto 20px; }
.c-done .c-image img { margin: 0 auto; }

.course-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; }
.course-nav .btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
#cNext.waiting { box-shadow: none; }

@media (max-width: 760px) {
  .c-compare { grid-template-columns: 1fr; }
  .course-card { padding: 24px 18px; }
}

/* ---------- library ---------- */
.lib-link b { color: var(--cyan); font-weight: 700; }
.recipe { border: 1px solid var(--line-2); border-radius: 20px; padding: 24px; background: var(--card); margin-bottom: 18px; }
.recipe-top { display: flex; justify-content: space-between; align-items: start; gap: 16px; margin-bottom: 14px; }
.recipe h3 { font-size: 20px; font-weight: 700; }
.recipe-meta { font-size: 12px; color: var(--muted-2); letter-spacing: .04em; }
.recipe-del { font: inherit; font-size: 12px; cursor: pointer; color: var(--muted-2); background: none; border: 0; }
.recipe-del:hover { color: var(--pink); }
.recipe-code { display: block; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.4); border: 1px solid var(--line);
  font-family: ui-monospace, Menlo, monospace; font-size: 13px; line-height: 1.7; color: #cdd0e0; margin-bottom: 14px; }
.recipe-code em { font-style: normal; background: rgba(34,211,238,.18); color: var(--cyan); padding: 2px 6px; border-radius: 6px; }
.recipe-run { display: flex; gap: 10px; flex-wrap: wrap; }
.recipe-run .c-input { flex: 1; min-width: 200px; margin: 0; }
.recipe-out { margin-top: 16px; }
.recipe-out .c-res, .made .c-out { max-width: 420px; }
.made-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.made { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: rgba(0,0,0,.28); }
.made img { width: 100%; display: block; }
.made .c-out { padding: 16px; font-size: 14px; line-height: 1.6; color: #dfe1ee; max-height: 240px; overflow: auto; }
.made-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px;
  border-top: 1px solid var(--line); font-size: 11px; color: var(--muted-2); flex-wrap: wrap; }
.made-foot button { font: inherit; font-size: 11px; cursor: pointer; background: none; border: 0; color: var(--muted); margin-left: 10px; }
.made-foot button:hover { color: var(--cyan); }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line-2); border-radius: 24px; }
.empty h3 { font-size: 24px; margin-bottom: 10px; }
.empty p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; line-height: 1.7; }
.c-keep { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.c-keep p, .c-keep-note { color: var(--muted); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.c-keep a, .c-keep-note a, .c-saved a { color: var(--cyan); text-decoration: underline; }
.c-saved { color: #86efac; font-size: 15px; line-height: 1.7; }

/* ---------- tap-to-build blocks ---------- */
.b-context {
  border-left: 3px solid var(--cyan); background: rgba(34,211,238,.07);
  padding: 14px 18px; border-radius: 0 12px 12px 0; margin-bottom: 18px;
  font-size: 15px; line-height: 1.6; color: #cfe9f2;
}
.b-line {
  min-height: 88px; border: 2px dashed var(--line-2); border-radius: 16px; padding: 14px;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; align-content: flex-start;
  background: rgba(0,0,0,.28); transition: border-color .2s, background .2s;
}
.b-line.ok { border-style: solid; border-color: rgba(52,211,153,.6); background: rgba(52,211,153,.06); }
.b-line.off { border-color: rgba(248,113,113,.6); }
.b-empty { color: var(--muted-2); font-size: 14px; padding: 6px 4px; }
.b-bank { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; min-height: 44px; }
.b-chip {
  font: inherit; font-size: 14.5px; cursor: pointer; padding: 10px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--text);
  transition: transform .12s, border-color .16s, background .16s;
}
.b-chip:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.6); }
.b-chip.in { background: linear-gradient(180deg, rgba(139,92,246,.28), rgba(34,211,238,.18)); border-color: rgba(139,92,246,.5); }
.b-line.ok .b-chip.in { background: rgba(52,211,153,.14); border-color: rgba(52,211,153,.45); }

/* ============================================================
   SPARK — the mascot
   ============================================================ */
.spark-wrap { display: inline-block; width: 200px; line-height: 0; position: relative; }
.spark-wrap .spk { width: 100%; height: auto; overflow: visible; }
.spark-wrap .spk-look { transition: transform .22s cubic-bezier(.2,.8,.3,1); }

/* --- which face --- */
.spark-wrap .spk-eyes, .spark-wrap .spk-mouth,
.spark-wrap .spk-sparks, .spark-wrap .spk-dots,
.spark-wrap .spk-hearts, .spark-wrap .spk-zzz { display: none; }
.spark-wrap .spk-eyes-open { display: block; }
.spark-wrap[data-mouth="a"] .spk-mouth-a,
.spark-wrap[data-mouth="b"] .spk-mouth-b,
.spark-wrap[data-mouth="c"] .spk-mouth-c,
.spark-wrap[data-mouth="d"] .spk-mouth-d { display: block; }

.spark-wrap[data-blink="1"] .spk-eyes-open { display: none; }
.spark-wrap[data-blink="1"] .spk-eyes-arc  { display: block; }

.spark-wrap[data-state="happy"] .spk-eyes-open,
.spark-wrap[data-state="cheer"] .spk-eyes-open { display: none; }
.spark-wrap[data-state="happy"] .spk-eyes-arc,
.spark-wrap[data-state="cheer"] .spk-eyes-arc { display: block; }
.spark-wrap[data-state="happy"] .spk-sparks,
.spark-wrap[data-state="cheer"] .spk-sparks { display: block; animation: spk-twinkle 1.3s ease-in-out infinite; }

.spark-wrap[data-state="thinking"] .spk-dots { display: block; }
.spark-wrap[data-state="thinking"] .spk-dots circle { opacity: 0; animation: spk-dot 1.7s infinite; }
.spark-wrap[data-state="thinking"] .spk-dots circle:nth-child(2) { animation-delay: .22s; }
.spark-wrap[data-state="thinking"] .spk-dots circle:nth-child(3) { animation-delay: .44s; }

.spark-wrap[data-state="surprised"] .spk-eyes-open { display: none; }
.spark-wrap[data-state="surprised"] .spk-eyes-wide { display: block; }
.spark-wrap[data-state="surprised"] .spk-mouth     { display: none; }
.spark-wrap[data-state="surprised"] .spk-mouth-o   { display: block; }

.spark-wrap[data-state="sad"] .spk-eyes-open { display: none; }
.spark-wrap[data-state="sad"] .spk-eyes-sad  { display: block; }
.spark-wrap[data-state="sad"] .spk-mouth     { display: none; }
.spark-wrap[data-state="sad"] .spk-mouth-sad { display: block; }

.spark-wrap[data-state="love"] .spk-eyes-open { display: none; }
.spark-wrap[data-state="love"] .spk-eyes-love { display: block; }
.spark-wrap[data-state="love"] .spk-hearts { display: block; animation: spk-rise 2.2s ease-out infinite; }

.spark-wrap[data-state="sleepy"] .spk-eyes-open  { display: none; }
.spark-wrap[data-state="sleepy"] .spk-eyes-sleep { display: block; }
.spark-wrap[data-state="sleepy"] .spk-zzz { display: block; }
.spark-wrap[data-state="sleepy"] .spk-zzz text { opacity: 0; animation: spk-zzz 3s ease-out infinite; }
.spark-wrap[data-state="sleepy"] .spk-zzz text:nth-child(2) { animation-delay: .5s; }
.spark-wrap[data-state="sleepy"] .spk-zzz text:nth-child(3) { animation-delay: 1s; }

/* --- motion --- */
.spark-wrap .spk-body { transform-origin: 100px 188px; transform-box: view-box; }
.spark-wrap[data-state="idle"] .spk-body,
.spark-wrap[data-state="pointing"] .spk-body,
.spark-wrap[data-state="love"] .spk-body { animation: spk-breathe 4.2s ease-in-out infinite; }
.spark-wrap[data-state="idle"] .spk-shadow,
.spark-wrap[data-state="pointing"] .spk-shadow { animation: spk-shadow 4.2s ease-in-out infinite; }
.spark-wrap[data-state="thinking"] .spk-body { animation: spk-sway 2.8s ease-in-out infinite; }
.spark-wrap[data-state="happy"] .spk-body { animation: spk-pop .62s cubic-bezier(.2,1.5,.35,1); }
.spark-wrap[data-state="cheer"] .spk-body { animation: spk-pop .62s cubic-bezier(.2,1.5,.35,1) 2; }
.spark-wrap[data-state="surprised"] .spk-body { animation: spk-shake .5s ease-in-out; }
.spark-wrap[data-state="sad"] .spk-body { animation: spk-droop 2.2s ease-in-out; }
.spark-wrap[data-state="wave"] .spk-body { animation: spk-breathe 4.2s ease-in-out infinite; }
.spark-wrap[data-state="sleepy"] .spk-body { animation: spk-doze 5.5s ease-in-out infinite; }

@keyframes spk-breathe { 0%,100% { transform: translateY(0) scale(1,1) } 50% { transform: translateY(-5px) scale(.994,1.01) } }
@keyframes spk-shadow  { 0%,100% { opacity:.5; transform: scale(1) } 50% { opacity:.34; transform: scale(.9) } }
@keyframes spk-sway    { 0%,100% { transform: rotate(-2.4deg) } 50% { transform: rotate(2.4deg) translateY(-4px) } }
@keyframes spk-pop {
  0% { transform: scale(1,1) translateY(0) } 28% { transform: scale(1.1,.9) translateY(6px) }
  62% { transform: scale(.95,1.07) translateY(-16px) } 100% { transform: scale(1,1) translateY(0) }
}
@keyframes spk-shake {
  0%,100% { transform: translateX(0) rotate(0) } 22% { transform: translateX(-7px) rotate(-3deg) }
  55% { transform: translateX(6px) rotate(3deg) } 82% { transform: translateX(-3px) rotate(-1deg) }
}
@keyframes spk-droop {
  0% { transform: translateY(0) } 30% { transform: translateY(7px) scale(1.02,.97) }
  100% { transform: translateY(0) }
}
@keyframes spk-doze {
  0%,100% { transform: translateY(0) rotate(-3deg) scale(1,1) }
  50%     { transform: translateY(4px) rotate(-3deg) scale(1.01,.985) }
}
@keyframes spk-twinkle { 0%,100% { opacity:.35; transform: scale(.9) } 50% { opacity:1; transform: scale(1.06) } }
@keyframes spk-dot { 0%,62%,100% { opacity:0 } 30% { opacity:1 } }
@keyframes spk-rise {
  0%   { opacity: 0; transform: translateY(6px) scale(.8) }
  25%  { opacity: 1 }
  100% { opacity: 0; transform: translateY(-26px) scale(1.1) }
}
@keyframes spk-zzz {
  0%   { opacity: 0; transform: translate(0,6px) scale(.7) }
  30%  { opacity: .9 }
  100% { opacity: 0; transform: translate(10px,-18px) scale(1.15) }
}

/* --- arms --- */
.spark-wrap .spk-arm-l { transform-origin: 46px 133px; transform-box: view-box; transition: transform .32s cubic-bezier(.2,1.4,.4,1); }
.spark-wrap .spk-arm-r { transform-origin: 154px 133px; transform-box: view-box; transition: transform .32s cubic-bezier(.2,1.4,.4,1); }
.spark-wrap[data-state="happy"] .spk-arm-l,
.spark-wrap[data-state="cheer"] .spk-arm-l { transform: rotate(-58deg); }
.spark-wrap[data-state="happy"] .spk-arm-r,
.spark-wrap[data-state="cheer"] .spk-arm-r { transform: rotate(58deg); }
.spark-wrap[data-state="thinking"] .spk-arm-r { transform: rotate(-56deg); }
.spark-wrap[data-state="pointing"] .spk-arm-r { transform: rotate(-8deg) translateX(6px); }
.spark-wrap[data-state="surprised"] .spk-arm-l { transform: rotate(-26deg); }
.spark-wrap[data-state="surprised"] .spk-arm-r { transform: rotate(26deg); }
.spark-wrap[data-state="sad"] .spk-arm-l { transform: rotate(24deg); }
.spark-wrap[data-state="sad"] .spk-arm-r { transform: rotate(-24deg); }
.spark-wrap[data-state="sleepy"] .spk-arm-l { transform: rotate(18deg); }
.spark-wrap[data-state="sleepy"] .spk-arm-r { transform: rotate(-18deg); }
.spark-wrap[data-state="wave"] .spk-arm-r { animation: spk-wave 1s ease-in-out 2; transform-origin: 154px 133px; }
@keyframes spk-wave {
  0%,100% { transform: rotate(-20deg) } 25% { transform: rotate(-62deg) } 75% { transform: rotate(-8deg) }
}

/* --- speech bubble --- */
.spk-bubble {
  position: absolute; left: 100%; top: 12%; margin-left: 14px;
  background: rgba(20,20,34,.96); border: 1px solid var(--line-2); border-radius: 16px;
  padding: 12px 16px; font-size: 14px; line-height: 1.5; color: var(--text);
  width: max-content; max-width: 260px; text-align: left;
  opacity: 0; transform: translateY(6px) scale(.96); transform-origin: 0 50%;
  transition: opacity .22s ease, transform .28s cubic-bezier(.2,1.4,.4,1);
  pointer-events: none; z-index: 5;
}
.spk-bubble::before {
  content: ''; position: absolute; left: -7px; top: 20px; width: 12px; height: 12px;
  background: rgba(20,20,34,.96); border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  transform: rotate(45deg);
}
.spk-bubble.in { opacity: 1; transform: translateY(0) scale(1); }

@media (prefers-reduced-motion: reduce) { .spark-wrap * { animation: none !important; } }

/* mascot in the navbar / footer */
.brand-spark { width: 34px; display: inline-block; flex: 0 0 34px; }
.brand-spark .spk { overflow: visible; }

/* the guide inside a lesson */
.c-guide { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.c-guide-spark { width: 86px; flex: 0 0 86px; }
.c-guide .c-say {
  margin: 0; background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  border-radius: 18px; padding: 16px 20px; position: relative; align-self: flex-start;
}
.c-guide .c-say::before {
  content: ''; position: absolute; left: -8px; top: 22px; width: 14px; height: 14px;
  background: rgba(255,255,255,.05); border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  transform: rotate(45deg);
}
.c-done-spark { display: block; width: 150px; margin: 0 auto 18px; }
@media (max-width: 620px) {
  .c-guide { flex-direction: column; align-items: center; text-align: center; }
  .c-guide .c-say::before { display: none; }
}

/* Spark greeting on the homepage */
.hero-guide {
  display: flex; align-items: center; gap: 20px; justify-content: center;
  max-width: 620px; margin: 0 auto 34px; text-align: left;
}
.hero-spark { width: 132px; flex: 0 0 132px; }
.hero-say {
  background: rgba(255,255,255,.05); border: 1px solid var(--line-2);
  border-radius: 20px; padding: 18px 22px; position: relative; flex: 1;
}
.hero-say::before {
  content: ''; position: absolute; left: -8px; top: 30px; width: 14px; height: 14px;
  background: rgba(255,255,255,.05); border-left: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2);
  transform: rotate(45deg);
}
.hero-say p { font-size: 16px; line-height: 1.6; color: var(--text); transition: opacity .18s ease; min-height: 52px; }
.hero-guide-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.hero-dots { display: flex; gap: 6px; }
.hero-dots i { width: 20px; height: 3px; border-radius: 3px; background: var(--line-2); transition: .3s; }
.hero-dots i.on { background: var(--grad); width: 30px; }
.hero-next {
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--cyan);
  background: none; border: 0; padding: 4px 2px;
}
.hero-next:hover { color: #fff; }
.btn.pulse { animation: btn-pulse 1.8s ease-in-out infinite; }
@keyframes btn-pulse {
  0%, 100% { box-shadow: 0 10px 40px -10px rgba(139,92,246,.6); }
  50%      { box-shadow: 0 10px 50px -6px rgba(34,211,238,.85); }
}
@media (max-width: 700px) {
  .hero-guide { flex-direction: column; text-align: center; }
  .hero-say::before { display: none; }
  .hero-guide-foot { justify-content: center; }
}

/* ---------- hero, rebuilt around Spark ---------- */
.hero { text-align: left; padding: 84px 0 70px; }
.hero-grid {
  display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: center;
}
.hero-guide { display: block; max-width: none; margin: 0; }
.hero-spark { width: 100%; max-width: 210px; display: block; margin: 0 auto 18px; }
.hero-say { padding: 18px 20px; }
.hero-say::before { left: 50%; top: -8px; margin-left: -7px; transform: rotate(135deg); }
.hero-say p { font-size: 15px; min-height: 66px; }
.hero-text .hero-badge { margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(38px, 5.4vw, 68px); line-height: 1.02; margin: 0 0 14px;
  max-width: none; text-align: left;
}
.hero-sub {
  font-family: var(--display); font-weight: 600; font-size: clamp(22px, 2.6vw, 32px);
  color: var(--muted); margin-bottom: 22px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap;
}
.hero-sub .rotator { min-width: 8ch; }
.hero-meta { color: var(--muted-2); font-size: 14px; letter-spacing: .04em; margin-bottom: 26px; }
.hero .hero-actions { justify-content: flex-start; margin-bottom: 22px; }
.hero .social-proof { justify-content: flex-start; }

/* the miniature lever */
.mini-lever {
  margin-top: 54px; border: 1px solid var(--line-2); border-radius: 22px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  padding: 22px 26px; display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.mini-label { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); font-weight: 800; }
.mini-title {
  font-family: 'Instrument Serif', serif; font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1; margin-top: 6px;
}
.mini-right { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-guide { max-width: 420px; margin: 0 auto; }
  .hero-text { text-align: center; }
  .hero h1, .hero-sub { text-align: center; justify-content: center; }
  .hero .hero-actions, .hero .social-proof { justify-content: center; }
}

/* ---------- hero: one message, one action ---------- */
.hero { text-align: center; padding: 90px 0 76px; }
.hero h1 { text-align: center; margin: 0 auto 20px; max-width: 900px; font-size: clamp(40px, 6vw, 76px); }
.hero-one { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 560px; margin: 0 auto 44px; }

.lever-hero {
  display: flex; align-items: center; justify-content: center; gap: 34px;
  max-width: 820px; margin: 0 auto; flex-wrap: wrap;
}
.lever-spark { width: 120px; flex: 0 0 120px; }
.lever-card {
  flex: 1; min-width: 320px; text-align: left;
  border: 1px solid rgba(139,92,246,.34); border-radius: 26px;
  background: linear-gradient(180deg, rgba(139,92,246,.12), rgba(255,255,255,.02));
  padding: 30px 32px;
  box-shadow: 0 30px 90px -40px rgba(139,92,246,.7);
}
.lever-label { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); font-weight: 800; }
.lever-title {
  font-family: 'Instrument Serif', serif; font-weight: 400;
  font-size: clamp(30px, 4.4vw, 48px); line-height: 1.06; margin: 10px 0 22px;
}
.lever-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-under {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin-top: 34px; font-size: 14px; color: var(--muted); flex-wrap: wrap;
}
.hero-under a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.hero-under .dotsep { color: var(--muted-2); }

/* the tour, now inside "how it works" */
.how-guide { display: flex; gap: 22px; align-items: center; margin-bottom: 34px; max-width: 620px; }
.how-spark { width: 118px; flex: 0 0 118px; }
.how-guide .hero-say { flex: 1; }
.how-guide .hero-say::before { left: -8px; top: 30px; margin-left: 0; transform: rotate(45deg); }

@media (max-width: 760px) {
  .lever-hero { flex-direction: column; }
  .lever-card { text-align: center; min-width: 0; }
  .lever-actions { justify-content: center; }
  .how-guide { flex-direction: column; text-align: center; }
  .how-guide .hero-say::before { display: none; }
}

/* ---------- the companion, bottom right ---------- */
.companion {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  width: 84px; cursor: pointer; line-height: 0;
  opacity: 0; transform: translateY(16px) scale(.9);
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,1.4,.4,1);
}
.companion.in { opacity: 1; transform: none; }
.companion.gone { opacity: 0; transform: translateY(16px) scale(.9); }
.companion .spark-wrap { width: 100%; }
.companion .spk-bubble {
  left: auto; right: 100%; top: auto; bottom: 4px; margin: 0 16px 0 0;
  transform-origin: 100% 50%; max-width: 250px;
}
.companion .spk-bubble::before {
  left: auto; right: -7px; top: auto; bottom: 22px;
  border-left: 0; border-bottom: 0;
  border-right: 1px solid var(--line-2); border-top: 1px solid var(--line-2);
}
.companion-close {
  position: absolute; top: -4px; right: -4px; z-index: 2;
  width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line-2); background: rgba(13,13,23,.94); color: var(--muted);
  font: inherit; font-size: 14px; line-height: 1; padding: 0;
  opacity: 0; transition: opacity .2s;
}
.companion:hover .companion-close { opacity: 1; }
.companion-close:hover { color: #fff; border-color: var(--line-2); }
@media (max-width: 640px) {
  .companion { width: 62px; right: 14px; bottom: 14px; }
  .companion .spk-bubble { max-width: 190px; font-size: 13px; }
}
@media print { .companion { display: none; } }

/* Spark's stack in the hero, before it docks */
.lever-guide { width: 250px; flex: 0 0 250px; text-align: center; }
.lever-guide .lever-spark { width: 150px; margin: 0 auto 14px; display: block; }
.lever-guide .hero-say { text-align: left; padding: 16px 18px; }
.lever-guide .hero-say::before { left: 50%; top: -8px; margin-left: -7px; transform: rotate(135deg); }
.lever-guide .hero-say p { font-size: 14.5px; min-height: 62px; }
.lever-hero.docked { justify-content: center; }
.lever-hero.docked .lever-guide { display: none; }
.lever-hero.docked .lever-card { max-width: 620px; }
.companion.docking { transition: none; opacity: 1; }
@media (max-width: 760px) { .lever-guide { width: 100%; flex: 1 1 auto; } }

/* ---------- Spark teaching a sprint, one step at a time ---------- */
.teach {
  border: 1px solid rgba(139,92,246,.28); border-radius: 24px;
  background: linear-gradient(180deg, rgba(139,92,246,.08), rgba(255,255,255,.015));
  padding: 28px 30px;
}
.teach-top { display: flex; gap: 22px; align-items: flex-start; }
.teach-spark { width: 92px; flex: 0 0 92px; }
.teach-say { flex: 1; }
.teach-count { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); font-weight: 800; }
.teach-say h4 { font-family: var(--display); font-size: clamp(20px, 2.6vw, 27px); font-weight: 700; margin: 8px 0 10px; }
.teach-say p { color: var(--muted); font-size: 16px; line-height: 1.72; }
.teach-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); flex-wrap: wrap;
}
.teach-dots { display: flex; gap: 6px; }
.teach-dots i { width: 26px; height: 3px; border-radius: 3px; background: var(--line); transition: .3s; }
.teach-dots i.past { background: rgba(139,92,246,.55); }
.teach-dots i.now { background: var(--grad); width: 40px; }
.teach-btns { display: flex; gap: 8px; }
.teach-btns .btn:disabled { opacity: .35; cursor: not-allowed; }
@media (max-width: 620px) {
  .teach-top { flex-direction: column; align-items: center; text-align: center; }
  .teach-foot { justify-content: center; }
}

/* ---------- streak badge ---------- */
.streak-badge {
  font-size: 13px; color: var(--muted); padding: 8px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--card); white-space: nowrap;
}
.streak-badge b { color: #fb923c; font-weight: 700; }
.streak-badge.cold b { color: var(--muted-2); }
.streak-badge.done { border-color: rgba(251,146,60,.45); }
.streak-badge:hover { background: var(--card-2); color: var(--text); }

/* ---------- today ---------- */
.today-wrap { padding: 60px 0 90px; }
.today-head { display: flex; gap: 28px; align-items: center; margin-bottom: 44px; }
.today-spark { width: 150px; flex: 0 0 150px; }
.today-head h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; margin: 10px 0 10px; }
.today-grid { display: grid; grid-template-columns: 1fr 1.5fr 1fr; gap: 18px; }
.today-card { border: 1px solid var(--line-2); border-radius: 22px; background: var(--card); padding: 26px; }
.streak-big, .xp-big { display: flex; align-items: baseline; gap: 8px; font-family: var(--display); }
.streak-big b { font-size: 54px; font-weight: 700; color: #fb923c; line-height: 1; }
.xp-big b { font-size: 54px; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.streak-big span, .xp-big span { font-size: 13px; color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase; }
.week-strip { display: flex; gap: 6px; margin: 20px 0 14px; }
.week-strip i { flex: 1; height: 26px; border-radius: 8px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.week-strip i.hit { background: linear-gradient(180deg,#fb923c,#f97316); border-color: transparent; }
.week-strip i.now { outline: 2px solid rgba(34,211,238,.55); outline-offset: 2px; }
.streak-note, .xp-note, .xp-done { font-size: 13px; color: var(--muted); line-height: 1.6; }
.xp-note { margin: 18px 0 10px; }
.xp-done { color: var(--cyan); }

.unit-card { border-color: rgba(139,92,246,.34); background: linear-gradient(180deg, rgba(139,92,246,.1), rgba(255,255,255,.02)); }
.unit-tag { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--cyan); font-weight: 800; }
.unit-card h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; margin: 10px 0 10px; }
.unit-card p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 22px; }
.unit-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.unit-meta { font-size: 12px; color: var(--muted-2); }

.plan { margin-top: 46px; }
.plan-title { font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }
.plan-list { display: flex; flex-direction: column; gap: 8px; }
.plan-row {
  display: flex; align-items: center; gap: 16px; padding: 15px 18px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: .16s;
}
.plan-row:hover { background: var(--card-2); transform: translateX(3px); }
.plan-n {
  width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; background: rgba(255,255,255,.07); color: var(--muted);
}
.plan-name { flex: 1; font-family: var(--display); font-weight: 600; font-size: 16px; }
.plan-when { font-size: 12px; color: var(--muted-2); letter-spacing: .06em; text-transform: uppercase; }
.plan-row.done { opacity: .55; }
.plan-row.done .plan-n { background: rgba(52,211,153,.2); color: #34d399; }
.plan-row.next { border-color: rgba(34,211,238,.5); }
.plan-row.next .plan-n { background: var(--grad); color: #07070d; }
.plan-row.next .plan-when { color: var(--cyan); }
.c-streak { margin: 12px 0 4px; font-size: 15px; color: #fb923c; }
.c-streak a { color: var(--cyan); text-decoration: underline; }

@media (max-width: 900px) {
  .today-grid { grid-template-columns: 1fr; }
  .today-head { flex-direction: column; text-align: center; }
}

/* ============================================================
   LESSON — seven beats
   ============================================================ */
.t-head { display: flex; gap: 24px; align-items: center; margin-bottom: 22px; }
.teach-spark2 { width: 104px; flex: 0 0 104px; }
.t-head h2 { margin: 6px 0 8px; }
.t-step { margin-left: auto; font-size: 12px; letter-spacing: .2em; color: var(--muted-2); font-weight: 700; }
.t-dots { display: flex; gap: 6px; margin-bottom: 20px; }
.t-dots i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: .3s; }
.t-dots i.past { background: rgba(139,92,246,.55); }
.t-dots i.now { background: var(--grad); }
.teach-card {
  border: 1px solid var(--line-2); border-radius: 24px; padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); min-height: 260px;
}
.t-nav { display: flex; justify-content: flex-end; margin-top: 20px; }

.tb-ask { font-size: 18px; line-height: 1.6; margin-bottom: 22px; }
.tb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tb-card { padding: 0; overflow: hidden; cursor: pointer; background: var(--card);
  border: 2px solid var(--line-2); border-radius: 18px; font: inherit; transition: .16s; }
.tb-card:hover { transform: translateY(-3px); }
.tb-card img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.tb-card span { display: block; padding: 10px; font-size: 12px; letter-spacing: .2em; color: var(--muted-2); font-weight: 700; }
.tb-card.is-right { border-color: #34d399; } .tb-card.is-right span { color: #34d399; }
.tb-card.is-wrong { border-color: #f87171; opacity: .6; }
.tb-reveal { margin-top: 20px; padding: 16px 20px; border-radius: 14px;
  background: rgba(52,211,153,.08); border: 1px solid rgba(52,211,153,.28); font-size: 15.5px; line-height: 1.7; }

.tb-type { min-height: 96px; padding: 18px 20px; border-radius: 14px; background: rgba(0,0,0,.4);
  border: 1px solid var(--line-2); font-family: ui-monospace, Menlo, monospace; font-size: 14px;
  line-height: 1.75; color: #cdd0e0; white-space: pre-wrap; }
.tb-type::after { content: '▋'; color: var(--cyan); animation: tb-caret .9s steps(1) infinite; }
@keyframes tb-caret { 50% { opacity: 0 } }
.tb-result { margin-top: 18px; }
.tb-result img { border-radius: 16px; border: 1px solid var(--line-2); max-width: 420px; width: 100%; }
.tb-after { margin-top: 16px; font-size: 15.5px; line-height: 1.7; color: var(--muted); }
.tb-skip { display: block; margin-top: 12px; background: none; border: 0; color: var(--muted-2);
  font: inherit; font-size: 13px; cursor: pointer; }
.tb-skip:hover { color: var(--text); }

.tb-sentence { padding: 18px 20px; border-radius: 14px; background: rgba(0,0,0,.35);
  border: 1px solid var(--line); font-size: 15.5px; line-height: 1.9; color: #cdd0e0; }
.tb-sentence b { color: #fff; background: rgba(34,211,238,.16); padding: 2px 6px; border-radius: 6px; }
.tb-sentence .gap { color: var(--muted-2); font-style: normal; border-bottom: 2px dashed var(--line-2); padding-bottom: 2px; }
.tb-slot { margin-top: 20px; }
.slot-ask { display: block; font-size: 15px; margin-bottom: 12px; font-weight: 600; }
.slot-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.slot-opt { font: inherit; font-size: 14px; cursor: pointer; padding: 11px 18px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--text); transition: .16s; }
.slot-opt:hover { border-color: rgba(34,211,238,.6); }
.tb-why { margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: rgba(255,255,255,.04);
  border-left: 3px solid var(--cyan); font-size: 15px; line-height: 1.7; color: var(--muted); }

.tb-area { width: 100%; font: inherit; font-size: 15px; line-height: 1.7; padding: 16px; resize: vertical;
  border-radius: 14px; border: 1px solid var(--line-2); background: rgba(0,0,0,.4); color: var(--text); }
.tb-area:focus { outline: none; border-color: rgba(139,92,246,.6); }
.tb-parts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.part { font-size: 12px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line);
  color: var(--muted-2); background: rgba(255,255,255,.03); transition: .2s; }
.part.on { color: #07070d; background: var(--grad); border-color: transparent; font-weight: 600; }

.tb-rule { font-family: var(--display); font-size: clamp(20px, 2.8vw, 28px); line-height: 1.35;
  padding: 24px 26px; border-radius: 18px; background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.3); margin-bottom: 20px; }
.tb-done { text-align: center; padding: 12px 0; }
.tb-done h3 { font-size: 30px; margin-bottom: 10px; }
.tb-promise { margin: 22px auto; max-width: 480px; padding: 18px 22px; border-radius: 16px;
  border: 1px dashed var(--line-2); background: rgba(0,0,0,.25); }
.tb-promise span { font-size: 10px; letter-spacing: .24em; color: var(--cyan); font-weight: 800; }
.tb-promise p { margin-top: 8px; font-size: 16px; line-height: 1.6; }
.tb-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 700px) {
  .tb-two { grid-template-columns: 1fr; }
  .t-head { flex-wrap: wrap; }
}
.why-done { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--text); }
.why-again { margin-left: 8px; font: inherit; font-size: 13px; cursor: pointer; background: none;
  border: 0; color: var(--cyan); text-decoration: underline; }

/* ---------- answer sheet, Duolingo shape ---------- */
.sheet {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  transform: translateY(102%); transition: transform .26s cubic-bezier(.2,.9,.3,1);
  border-top: 1px solid transparent;
}
.sheet.up { transform: translateY(0); }
.sheet-in { max-width: var(--max); margin: 0 auto; padding: 22px 24px 26px; }
.sheet.good { background: #123024; border-top-color: rgba(52,211,153,.5); }
.sheet.bad  { background: #34121c; border-top-color: rgba(248,113,113,.5); }
.sheet-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.sheet-mark { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 16px; font-weight: 800; }
.sheet.good .sheet-mark { background: #34d399; color: #07281c; }
.sheet.bad  .sheet-mark { background: #f87171; color: #2a0a12; }
.sheet-top b { font-family: var(--display); font-size: 22px; }
.sheet.good .sheet-top b { color: #6ee7b7; }
.sheet.bad  .sheet-top b { color: #fca5a5; }
.sheet-body { font-size: 15.5px; line-height: 1.7; max-width: 760px; }
.sheet.good .sheet-body { color: #b9e8d2; }
.sheet.bad  .sheet-body { color: #f4c4cc; }
.sheet-right { margin-top: 10px; color: #fff; }
.sheet-right u { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.sheet-why { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(0,0,0,.28);
  font-size: 14.5px; line-height: 1.7; color: #e6e6f0; max-width: 760px; }
.sheet-btns { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.sheet-b1, .sheet-b2 { font: inherit; font-weight: 800; font-size: 13px; letter-spacing: .1em;
  cursor: pointer; padding: 14px 26px; border-radius: 14px; border: 2px solid transparent; }
.sheet.good .sheet-b1 { background: #34d399; color: #06281b; }
.sheet.bad  .sheet-b1 { background: #ef4444; color: #fff; }
.sheet-b2 { background: transparent; }
.sheet.good .sheet-b2 { border-color: rgba(52,211,153,.5); color: #6ee7b7; }
.sheet.bad  .sheet-b2 { border-color: rgba(248,113,113,.5); color: #fca5a5; }
.sheet-b1:hover, .sheet-b2:hover { filter: brightness(1.08); }

.t-combo { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: #fbbf24; opacity: 0; transition: .2s; }
.t-combo.on { opacity: 1; }
.hard-tag { display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .18em;
  color: #fca5a5; background: rgba(248,113,113,.14); border: 1px solid rgba(248,113,113,.35);
  padding: 4px 9px; border-radius: 999px; margin-bottom: 12px; }
.slot-opt.is-wrong { border-color: rgba(248,113,113,.6); opacity: .5; }
@media (max-width: 600px) { .sheet-in { padding: 18px 18px 22px; } }

/* show beat: caption, fake generation, reveal */
.tb-note { margin-top: 14px; min-height: 46px; font-size: 15.5px; line-height: 1.6; color: var(--cyan);
  opacity: 0; transform: translateY(4px); }
.tb-note.in { animation: tb-note-in .34s ease forwards; }
@keyframes tb-note-in { to { opacity: 1; transform: none; } }
.tb-gen { display: flex; align-items: center; gap: 12px; margin-top: 18px; padding: 16px 18px;
  border: 1px dashed var(--line-2); border-radius: 14px; color: var(--muted); font-size: 14px;
  max-width: 420px; }
.tb-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(255,255,255,.16);
  border-top-color: var(--cyan); animation: tb-spin 0.8s linear infinite; }
@keyframes tb-spin { to { transform: rotate(360deg) } }
.tb-result.in img { animation: tb-pop .5s cubic-bezier(.2,1.3,.4,1); }
@keyframes tb-pop { from { opacity: 0; transform: scale(.96) } to { opacity: 1; transform: none } }

/* --- the product picker in beat 4: we hand you the thing to shoot --- */
.tb-prods { display: flex; gap: 10px; flex-wrap: wrap; }
.prod { font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px 12px 14px;
  border-radius: 16px; border: 2px solid var(--line-2); border-bottom-width: 4px;
  background: var(--card-2); color: var(--text); transition: .16s; }
.prod span { font-size: 22px; line-height: 1; }
.prod:hover { border-color: rgba(139,92,246,.7); background: rgba(139,92,246,.14); transform: translateY(-2px); }
.prod:active { transform: translateY(1px); border-bottom-width: 2px; }
.tb-sentence .sep { font-style: normal; color: var(--muted-2); margin: 0 4px 0 -3px; }

/* ============================================================
   exercise types: choice, match, word bank, spot
   ============================================================ */
.opt-list { display: flex; flex-direction: column; gap: 10px; }
.opt { font: inherit; font-size: 15px; text-align: left; cursor: pointer; padding: 14px 18px;
  border-radius: 16px; border: 2px solid var(--line-2); border-bottom-width: 4px;
  background: var(--card-2); color: var(--text); transition: .16s; }
.opt:hover { border-color: rgba(139,92,246,.7); background: rgba(139,92,246,.12); }
.opt.is-right { border-color: #34d399; background: rgba(52,211,153,.12); color: #eafff6; }
.opt.is-wrong { border-color: #f87171; background: rgba(248,113,113,.1); }

.match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.match-col { display: flex; flex-direction: column; gap: 10px; }
.mtile { font: inherit; font-size: 14px; cursor: pointer; padding: 13px 16px; border-radius: 14px;
  border: 2px solid var(--line-2); border-bottom-width: 4px; background: var(--card-2);
  color: var(--text); transition: .16s; }
.mtile:hover { border-color: rgba(139,92,246,.7); }
.mtile.on { border-color: var(--cyan); background: rgba(34,211,238,.14); }
.mtile.gone { opacity: .28; pointer-events: none; border-color: #34d399; }
.mtile.miss { border-color: #f87171; background: rgba(248,113,113,.12); animation: mshake .32s; }
@keyframes mshake { 25% { transform: translateX(-5px) } 75% { transform: translateX(5px) } }

.bank-line { min-height: 62px; padding: 12px; border-radius: 16px; border: 1px dashed var(--line-2);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-start; }
.bank-line.ok { border-color: #34d399; border-style: solid; }
.bank-line.no { border-color: #f87171; border-style: solid; }
.bank-empty { color: var(--muted-2); font-size: 14px; padding: 4px 2px; }
.bank-hint { margin: 10px 0; font-size: 13px; color: var(--muted-2); }
.bank { display: flex; flex-wrap: wrap; gap: 8px; }
.chunk { font: inherit; font-size: 13.5px; cursor: pointer; padding: 9px 14px; border-radius: 12px;
  border: 2px solid var(--line-2); border-bottom-width: 4px; background: var(--card-2);
  color: var(--text); transition: .14s; }
.chunk:hover { border-color: rgba(139,92,246,.7); }
.chunk.used { opacity: .2; pointer-events: none; }
.chunk.in-line { border-color: rgba(139,92,246,.55); background: rgba(139,92,246,.14); }

.spot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 16px 18px;
  border-radius: 16px; border: 1px solid var(--line-2); background: rgba(0,0,0,.3);
  font-family: ui-monospace, Menlo, monospace; }
.spot-part { font: inherit; font-size: 13.5px; cursor: pointer; padding: 7px 11px; border-radius: 10px;
  border: 1px solid transparent; background: rgba(255,255,255,.05); color: #cdd0e0; transition: .14s; }
.spot-part:hover { border-color: rgba(139,92,246,.7); background: rgba(139,92,246,.14); }
.spot-part.is-bad { border-color: #34d399; background: rgba(52,211,153,.16); color: #eafff6; }
.spot-part.is-wrong { border-color: #f87171; background: rgba(248,113,113,.12); }
.spot .sep { color: var(--muted-2); font-style: normal; }

.tb-sentence b.just { animation: just-in .4s cubic-bezier(.2,1.3,.4,1); }
@keyframes just-in { from { background: rgba(52,211,153,.5) } }

.score-row { display: flex; gap: 12px; justify-content: center; margin: 20px 0; flex-wrap: wrap; }
.score { min-width: 108px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--line-2);
  background: rgba(255,255,255,.04); }
.score b { display: block; font-family: var(--display); font-size: 26px; line-height: 1; }
.score span { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted-2); }
