/* STROBE — design system.
   Dark club palette, one loud accent (acid lime), warm Claude orange only for Claude-related things.
   Display type: Archivo expanded (font-stretch 125%) set tight and uppercase; body: Archivo; code: JetBrains Mono. */
:root {
  --bg: #0b0b0d;
  --bg2: #111114;
  --surface: #17171b;
  --surface2: #1f1f25;
  --line: #2b2b33;
  --line2: #3a3a44;
  --ink: #f3f0e8;
  --ink2: #c9c5bb;
  --muted: #8d8a83;
  --acid: #d6ff3d;
  --acid-ink: #121400;
  --hot: #ff5a1f;
  --violet: #a98bff;
  --cyan: #45d6ff;
  --claude: #e08a5f;
  --ok: #4ade80;
  --bad: #ff5468;
  --r: 18px;
  --r-sm: 12px;
  --f: 'Archivo', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: clip; }
body { font: 16px/1.55 var(--f); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img, svg { display: block; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--acid); white-space: nowrap; }
::selection { background: var(--acid); color: var(--acid-ink); }
:focus-visible { outline: 2px solid var(--acid); outline-offset: 3px; border-radius: 6px; }

.display { font-stretch: 125%; font-weight: 900; text-transform: uppercase; letter-spacing: -.02em; line-height: .92; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 16px; letter-spacing: .01em; transition: transform .12s ease, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-acid { background: var(--acid); color: var(--acid-ink); box-shadow: 0 0 0 0 rgba(214, 255, 61, .0); }
.btn-acid:hover { box-shadow: 0 0 40px rgba(214, 255, 61, .35); }
.btn-ghost { border: 1px solid var(--line2); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink2); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .35; pointer-events: none; }
.btn-chunky { border-radius: 16px; height: 56px; box-shadow: 0 5px 0 #8fae1b; }
.btn-chunky:active { transform: translateY(4px); box-shadow: 0 1px 0 #8fae1b; }

/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-stretch: 125%; font-weight: 900; font-size: 20px; letter-spacing: .02em; }
.logo-mark { width: 26px; height: 26px; }

/* ---------- Landing ---------- */
.nav { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: rgba(11, 11, 13, .72); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.nav-links { display: flex; gap: 28px; color: var(--ink2); font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { height: 42px; padding: 0 18px; font-size: 14px; }
@media (max-width: 760px) { .nav-links { display: none; } }

.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -20% -10% auto auto; width: 760px; height: 760px; background: radial-gradient(closest-side, rgba(214, 255, 61, .16), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; position: relative; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); gap: 36px; } .hero { padding-top: 36px; } }
.hero h1 { font-size: clamp(50px, 7.2vw, 100px); margin: 18px 0 22px; }
.hero h1 .acid { color: var(--acid); }
.hero .lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink2); max-width: 520px; margin: 0 0 32px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .proof { display: flex; gap: 22px; margin-top: 34px; color: var(--muted); font-size: 14px; flex-wrap: wrap; }
.hero .proof b { color: var(--ink); font-weight: 700; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px 0 6px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; color: var(--ink2); }
.pill .dot { width: 22px; height: 22px; border-radius: 50%; background: var(--claude); display: grid; place-items: center; }

.codewin { position: relative; background: #0f0f12; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); overflow: hidden; }
.codewin-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.codewin-bar .lights { display: flex; gap: 6px; }
.codewin-bar .lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
.codewin pre { margin: 0; padding: 22px 22px 18px; font: 14px/1.75 var(--mono); color: var(--ink2); min-height: 292px; white-space: pre-wrap; word-break: break-word; }
.tok-k { color: var(--hot); } .tok-s { color: var(--acid); } .tok-n { color: var(--cyan); } .tok-c { color: #6b6a66; } .tok-f { color: var(--violet); }
.caret { display: inline-block; width: 8px; height: 1.1em; background: var(--acid); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.codewin-foot { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.playbig { width: 52px; height: 52px; border-radius: 50%; background: var(--acid); color: var(--acid-ink); display: grid; place-items: center; flex: none; transition: transform .15s; }
.playbig:hover { transform: scale(1.05); }
.playbig svg { width: 20px; height: 20px; }
.meter { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.meter i { flex: 1; background: var(--line2); border-radius: 2px; height: 20%; transition: height .08s; }
.playing .meter i { background: var(--acid); animation: bar 0.4545s ease-in-out infinite; }
@keyframes bar { 0%, 100% { height: 18%; } 12% { height: 100%; } 40% { height: 45%; } }
.codewin-foot small { color: var(--muted); font-size: 13px; }

.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; margin-top: 24px; }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marq 32s linear infinite; }
.marquee span { font-stretch: 125%; font-weight: 900; font-size: 28px; text-transform: uppercase; color: transparent; -webkit-text-stroke: 1px var(--line2); white-space: nowrap; }
.marquee span:nth-child(3n+1) { color: var(--ink); -webkit-text-stroke: 0; }
@keyframes marq { to { transform: translateX(-50%); } }

.section { padding: 110px 0; }
.section h2 { font-size: clamp(38px, 5.5vw, 72px); margin: 14px 0 18px; }
.section .sub { color: var(--ink2); font-size: 18px; max-width: 600px; margin: 0; }
@media (max-width: 760px) { .section { padding: 72px 0; } }

.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
@media (max-width: 960px) { .build { grid-template-columns: minmax(0, 1fr); } }
.console { background: linear-gradient(180deg, #1b1b20, #141418); border: 1px solid #2c2c34; border-radius: 26px; padding: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .5); }
.console-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.console-top b { color: var(--acid); font-weight: 500; }
.pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pad { aspect-ratio: 1.25; border-radius: 12px; background: #222228; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 3px 0 #0b0b0d; display: flex; flex-direction: column; justify-content: space-between; padding: 10px; font-size: 12.5px; font-weight: 600; color: var(--ink2); }
.pad kbd { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.pad.on { background: var(--acid); color: var(--acid-ink); box-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 0 24px rgba(214, 255, 61, .3); }
.pad.on kbd { color: rgba(18, 20, 0, .6); }
.pad.hot { background: var(--hot); color: #1a0700; box-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 0 24px rgba(255, 90, 31, .3); }
.pad.hot kbd { color: rgba(26, 7, 0, .55); }
.faders { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.fader { height: 120px; position: relative; }
.fader::before { content: ''; position: absolute; left: 50%; top: 6px; bottom: 26px; width: 4px; margin-left: -2px; border-radius: 2px; background: #0b0b0d; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8); }
.fader i { position: absolute; left: 50%; width: 34px; height: 16px; margin: -8px 0 0 -17px; border-radius: 4px; background: linear-gradient(#e9e6de, #b9b6ae); box-shadow: 0 3px 6px rgba(0, 0, 0, .6), inset 0 -2px 0 rgba(0, 0, 0, .2); }
.fader i::after { content: ''; position: absolute; left: 6px; right: 6px; top: 7px; height: 2px; background: #333; }
.fader span { position: absolute; bottom: 0; left: 0; right: 0; text-align: center; font-size: 10.5px; color: var(--muted); font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; color: var(--ink2); }
.checks li svg { flex: none; width: 22px; height: 22px; color: var(--acid); margin-top: 1px; }

.faq { margin-top: 48px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 0; font-size: 19px; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--acid); font-size: 22px; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 24px; color: var(--ink2); max-width: 720px; }

.cta-final { text-align: center; padding: 120px 0; position: relative; overflow: hidden; }
.cta-final::before { content: ''; position: absolute; inset: auto 0 -60% 0; height: 120%; background: radial-gradient(closest-side, rgba(214, 255, 61, .14), transparent 70%); }
.cta-final h2 { font-size: clamp(44px, 7vw, 96px); margin: 0 0 26px; position: relative; }
.cta-final .btn { position: relative; }
.footer { border-top: 1px solid var(--line); padding: 32px 0 40px; color: var(--muted); font-size: 13px; }
.footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* Section intro: two-tone statement instead of eyebrow + giant caps + subtitle. */
.lede { font-size: clamp(26px, 3.3vw, 44px); line-height: 1.14; letter-spacing: -.025em; font-weight: 600; color: #6f6c66; max-width: 1000px; margin: 0; text-wrap: balance; }
.lede b { color: var(--ink); font-weight: 700; }
.lede-sm { font-size: clamp(22px, 2.4vw, 32px); }

/* Figures separated by hairlines, no boxes. */
.figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 64px; border-top: 1px solid var(--line); }
.fig { padding: 22px 32px 8px; border-left: 1px solid var(--line); }
.fig:first-child { border-left: 0; padding-left: 0; }
.figno { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.figart { width: 100%; max-width: 260px; height: auto; margin: 26px auto 30px; }
.fig h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.fig p { margin: 0; color: var(--muted); font-size: 15px; max-width: 320px; }
@media (max-width: 860px) {
  .figs { grid-template-columns: minmax(0, 1fr); }
  .fig { border-left: 0; padding: 22px 0 28px; border-bottom: 1px solid var(--line); }
  .fig:last-child { border-bottom: 0; }
  .figart { max-width: 220px; margin: 18px 0 20px; }
}

/* Try-it pad grid (instrument first, explanation second). */
.jam { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: var(--bg2); }
.jam-pads { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; padding: 22px; }
.jam-col { --c: var(--acid); --ci: var(--acid-ink); display: grid; gap: 10px; align-content: start; }
.jam-col.cyan { --c: var(--cyan); --ci: #00151c; } .jam-col.hot { --c: var(--hot); --ci: #1a0700; } .jam-col.violet { --c: var(--violet); --ci: #12082e; }
.jam-head { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 2px 2px; display: flex; align-items: center; gap: 8px; }
.jam-head::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.jpad { aspect-ratio: 1; border-radius: 14px; background: #1c1c21; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 3px 0 #0a0a0c; display: flex; align-items: flex-end; padding: 12px; text-align: left; font-size: 13px; font-weight: 600; color: var(--ink2); line-height: 1.2; transition: background .12s, transform .08s, box-shadow .12s, color .12s; }
.jpad:hover { background: #232329; }
.jpad:active { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 0 #0a0a0c; }
.jpad.on { background: var(--c); color: var(--ci); box-shadow: 0 3px 0 rgba(0, 0, 0, .5), 0 0 26px color-mix(in srgb, var(--c) 35%, transparent); }
.jam.live .jpad.on { animation: padbeat .4545s ease-out infinite; }
@keyframes padbeat { 0% { filter: brightness(1.18); } 100% { filter: brightness(1); } }
.jam-code { border-left: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; background: #0e0e11; }
.jam-bar { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.jam-bar .playbig { width: 42px; height: 42px; } .jam-bar .playbig svg { width: 16px; height: 16px; }
.jam-bar #jamState { flex: 1; }
.jam-bpm { font-family: var(--mono); font-size: 12px; }
.jam pre { margin: 0; padding: 18px 20px; font: 13px/1.75 var(--mono); color: var(--ink2); white-space: pre-wrap; word-break: break-word; flex: 1; min-height: 260px; }
@media (max-width: 960px) { .jam { grid-template-columns: minmax(0, 1fr); } .jam-code { border-left: 0; border-top: 1px solid var(--line); } }
@media (max-width: 520px) { .jam-pads { gap: 7px; padding: 14px; } .jam-col { gap: 7px; } .jpad { font-size: 11px; padding: 8px; border-radius: 11px; } }

/* Course as an instrument: step sequencer + LCD. */
.device { margin-top: 48px; position: relative; border-radius: 30px; padding: 36px 34px 34px; background: linear-gradient(180deg, #1b1b20, #141418); border: 1px solid #2c2c34; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 30px 80px rgba(0, 0, 0, .5); }
.screw { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #3a3a44, #18181c); box-shadow: inset 0 0 0 1px #0c0c0e; }
.screw::after { content: ''; position: absolute; left: 2px; right: 2px; top: 4.5px; height: 1px; background: #0c0c0e; transform: rotate(35deg); }
.screw.s-tl { top: 12px; left: 12px; } .screw.s-tr { top: 12px; right: 12px; } .screw.s-bl { bottom: 12px; left: 12px; } .screw.s-br { bottom: 12px; right: 12px; }
.device-top { display: flex; align-items: center; gap: 18px; padding: 0 6px 20px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--muted); }
.device-top .brand { color: var(--ink); font-family: var(--f); font-stretch: 125%; font-weight: 900; letter-spacing: .04em; font-size: 13px; }
.device-top .dev-meta { flex: 1; }
.dev-leds { display: flex; gap: 6px; }
.dev-leds i { width: 7px; height: 7px; border-radius: 50%; background: #2c2c34; }
.dev-leds i.on { background: var(--acid); box-shadow: 0 0 10px var(--acid); }
.device-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: stretch; }
.seq { display: grid; gap: 12px; }
.seq-row { --c: var(--acid); display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: center; }
.seq-row.hot { --c: var(--hot); } .seq-row.violet { --c: var(--violet); } .seq-row.cyan { --c: var(--cyan); }
.seq-label { font-size: 13px; color: var(--ink2); line-height: 1.25; }
.seq-label b { display: block; font-family: var(--mono); font-size: 11px; color: var(--c); letter-spacing: .1em; font-weight: 500; margin-bottom: 2px; }
.seq-pads { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.spad { aspect-ratio: 1; border-radius: 10px; background: #222228; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 3px 0 #0b0b0d; position: relative; display: flex; align-items: flex-end; justify-content: flex-start; padding: 7px 8px; font-family: var(--mono); font-size: 10.5px; color: #6c6a64; transition: background .12s, transform .08s; }
.spad::before { content: ''; position: absolute; top: 8px; right: 8px; width: 5px; height: 5px; border-radius: 50%; background: #34343c; }
.spad:hover { background: #29292f; }
.spad.sel { background: var(--c); color: rgba(0, 0, 0, .7); box-shadow: 0 3px 0 rgba(0, 0, 0, .55), 0 0 24px color-mix(in srgb, var(--c) 40%, transparent); }
.spad.sel::before { background: rgba(0, 0, 0, .55); }
.lcd { --c: var(--acid); border-radius: 16px; padding: 18px; background: #0b0d06; border: 1px solid #23261a; box-shadow: inset 0 0 40px rgba(0, 0, 0, .7); position: relative; overflow: hidden; display: flex; flex-direction: column; color: var(--c); font-family: var(--mono); }
.lcd.hot { --c: #ff8a5c; background: #0f0905; border-color: #2c1d14; } .lcd.violet { --c: #c2adff; background: #0b0910; border-color: #221c30; } .lcd.cyan { --c: #7fe3ff; background: #060c0f; border-color: #16262c; }
.lcd::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .22) 0 1px, transparent 1px 3px); pointer-events: none; }
.lcd-top, .lcd-foot { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .1em; opacity: .75; }
.lcd-title { font-family: var(--f); font-stretch: 115%; font-weight: 800; font-size: 24px; line-height: 1.1; margin: 18px 0 10px; letter-spacing: -.01em; text-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.lcd p { margin: 0 0 18px; font-size: 13px; line-height: 1.6; opacity: .85; flex: 1; }
.lcd-steps { display: flex; gap: 4px; align-items: center; }
.lcd-steps i { width: 14px; height: 5px; border-radius: 1px; background: color-mix(in srgb, var(--c) 18%, transparent); }
.lcd-steps i.past { background: color-mix(in srgb, var(--c) 50%, transparent); }
.lcd-steps i.on { background: var(--c); box-shadow: 0 0 8px var(--c); }
@media (max-width: 960px) {
  .device { padding: 22px 18px 24px; border-radius: 24px; }
  .device-body { grid-template-columns: minmax(0, 1fr); }
  .lcd { order: -1; min-height: 210px; }
}
@media (max-width: 620px) {
  .device-top .dev-meta { display: none; }
  .seq-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .seq-label { display: flex; gap: 8px; align-items: baseline; }
  .seq-label b { display: inline; }
  .seq-pads { gap: 6px; }
  .spad { border-radius: 8px; font-size: 9.5px; padding: 5px; }
  .spad::before { top: 5px; right: 5px; width: 4px; height: 4px; }
}

/* Final project specs as a hairline list. */
.specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 36px; border-top: 1px solid var(--line); }
.specs > div { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); }
.specs > div:nth-child(odd) { border-right: 1px solid var(--line); }
.specs > div:nth-child(even) { padding-left: 16px; }
.specs p { margin: 6px 0 0; color: var(--ink2); font-size: 15px; }
.faq-wrap .faq { margin-top: 36px; }

/* ---------- Funnel (quiz, plan, paywall) ---------- */
.funnel { min-height: 100svh; display: flex; flex-direction: column; }
.funnel-top { display: flex; align-items: center; gap: 16px; padding: 18px 16px; width: min(640px, 100%); margin: 0 auto; }
.funnel-top .back { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); flex: none; }
.funnel-top .back:hover { background: var(--surface); }
.progress { flex: 1; height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--acid); border-radius: 99px; transition: width .35s ease; }
.funnel-body { flex: 1; width: min(640px, 100%); margin: 0 auto; padding: 24px 16px 40px; display: flex; flex-direction: column; }
.funnel-body h1 { font-size: clamp(30px, 5vw, 44px); font-stretch: 112%; font-weight: 900; letter-spacing: -.02em; line-height: 1.05; margin: 8px 0 28px; }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; width: 100%; padding: 18px 20px; border-radius: 16px; background: var(--surface); border: 1.5px solid var(--line); font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: space-between; gap: 12px; transition: border-color .15s, background .15s, transform .1s; }
.opt:hover { border-color: var(--line2); background: var(--surface2); }
.opt:active { transform: scale(.995); }
.opt.sel { border-color: var(--acid); background: rgba(214, 255, 61, .07); }
.opt .tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; display: grid; place-items: center; }
.opt.sel .tick { background: var(--acid); border-color: var(--acid); color: var(--acid-ink); }
.note { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(224, 138, 95, .1); border: 1px solid rgba(224, 138, 95, .3); color: #f2c4ab; font-size: 15px; display: flex; gap: 12px; }
.funnel-foot { position: sticky; bottom: 0; padding: 16px; background: linear-gradient(transparent, var(--bg) 30%); width: min(640px, 100%); margin: 0 auto; }

.building { align-items: center; text-align: center; justify-content: center; }
.ring { width: 140px; height: 140px; position: relative; margin: 0 auto 28px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-stretch: 125%; font-weight: 900; font-size: 34px; }
.build-list { list-style: none; padding: 0; margin: 24px auto 0; display: grid; gap: 12px; text-align: left; width: min(360px, 100%); }
.build-list li { display: flex; gap: 12px; align-items: center; color: var(--muted); transition: color .3s; }
.build-list li.done { color: var(--ink); }
.build-list li i { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); flex: none; display: grid; place-items: center; }
.build-list li.done i { background: var(--acid); border-color: var(--acid); color: var(--acid-ink); }

.plan-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.chip { height: 32px; padding: 0 12px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink2); }
.chip b { color: var(--ink); }
.timeline { display: grid; gap: 0; position: relative; }
.tl { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 12px 0; position: relative; }
.tl::before { content: ''; position: absolute; left: 27px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl:first-child::before { top: 28px; } .tl:last-child::before { bottom: calc(100% - 28px); }
.tl .d { width: 56px; height: 32px; border-radius: 99px; background: var(--surface2); border: 1px solid var(--line2); display: grid; place-items: center; font-family: var(--mono); font-size: 12px; position: relative; z-index: 1; }
.tl.final .d { background: var(--acid); color: var(--acid-ink); border-color: transparent; font-weight: 700; }
.tl h4 { margin: 4px 0 2px; font-size: 17px; }
.tl p { margin: 0; color: var(--muted); font-size: 14.5px; }

.plans { display: grid; gap: 10px; margin: 8px 0 18px; }
.plan { text-align: left; width: 100%; border-radius: 18px; border: 1.5px solid var(--line); background: var(--surface); padding: 18px 20px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; position: relative; }
.plan.sel { border-color: var(--acid); background: rgba(214, 255, 61, .06); }
.plan .radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); }
.plan.sel .radio { border: 7px solid var(--acid); }
.plan h4 { margin: 0; font-size: 17px; }
.plan p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.plan .price { text-align: right; font-weight: 800; font-size: 20px; font-stretch: 110%; }
.plan .price small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); font-stretch: 100%; }
.plan .badge { position: absolute; top: -10px; right: 18px; background: var(--acid); color: var(--acid-ink); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 10px; border-radius: 99px; }
.fine { color: var(--muted); font-size: 12.5px; text-align: center; margin: 12px 0 0; }
.proto { margin-bottom: 18px; padding: 10px 14px; border-radius: 12px; border: 1px dashed var(--line2); color: var(--muted); font-size: 13px; text-align: center; }
.field { width: 100%; height: 56px; border-radius: 14px; border: 1.5px solid var(--line2); background: var(--surface); padding: 0 18px; font: inherit; color: var(--ink); font-size: 17px; }
.field:focus { border-color: var(--acid); outline: none; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100svh; }
@media (max-width: 900px) { .shell { grid-template-columns: minmax(0, 1fr); } }
.side { border-right: 1px solid var(--line); padding: 26px 18px; position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; gap: 28px; }
@media (max-width: 900px) { .side { display: none; } }
.side nav { display: grid; gap: 4px; }
.side nav a { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border-radius: 12px; color: var(--ink2); font-weight: 600; }
.side nav a svg { width: 20px; height: 20px; }
.side nav a.on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.side nav a:hover { color: var(--ink); }
.side .soon { margin-top: auto; padding: 16px; border-radius: 16px; border: 1px dashed var(--line2); color: var(--muted); font-size: 13.5px; }
.side .soon b { display: block; color: var(--ink); margin-bottom: 4px; }
.main { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(11, 11, 13, .86); backdrop-filter: blur(12px); z-index: 10; }
.topbar .logo { font-size: 17px; }
@media (min-width: 901px) { .topbar .logo { visibility: hidden; } }
.stats { display: flex; gap: 8px; }
.stat { height: 38px; padding: 0 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.stat svg { width: 18px; height: 18px; }
.stat.streak svg { color: var(--hot); }
.stat.xp svg { color: var(--acid); }

.course { width: min(720px, 100%); margin: 0 auto; padding: 28px 16px 160px; }
.course-head { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.course-head .art { width: 64px; height: 64px; border-radius: 16px; background: var(--acid); display: grid; place-items: center; color: var(--acid-ink); }
.course-head .art svg { width: 34px; height: 34px; }
.course-head h1 { margin: 2px 0 10px; font-size: 22px; font-stretch: 115%; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; }
.bar { height: 8px; border-radius: 99px; background: var(--surface2); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--acid); }
.course-head small { color: var(--muted); font-family: var(--mono); font-size: 12px; }

.unit { margin-top: 42px; }
.unit-head { --c: var(--acid); border-radius: 18px; padding: 18px 20px; background: var(--c); color: var(--acid-ink); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.unit-head.hot { --c: var(--hot); color: #1a0700; } .unit-head.violet { --c: var(--violet); color: #12082e; } .unit-head.cyan { --c: var(--cyan); color: #00151c; }
.unit-head .eyebrow { color: inherit; opacity: .7; }
.unit-head h2 { margin: 4px 0 0; font-size: 22px; font-stretch: 120%; font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1; }
.unit-head .count { font-family: var(--mono); font-size: 13px; opacity: .75; white-space: nowrap; }
.path { position: relative; display: flex; flex-direction: column; align-items: center; padding: 40px 0 8px; gap: 34px; }
.node-wrap { position: relative; display: flex; align-items: center; gap: 16px; transform: translateX(var(--x, 0)); }
.node { --c: var(--acid); --cd: #8fae1b; width: 76px; height: 70px; border-radius: 50%; background: var(--c); color: var(--acid-ink); display: grid; place-items: center; box-shadow: 0 7px 0 var(--cd); transition: transform .1s, box-shadow .1s; position: relative; }
.node:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--cd); }
.node svg { width: 30px; height: 30px; }
.node.hot { --c: var(--hot); --cd: #a8360c; color: #fff; } .node.violet { --c: var(--violet); --cd: #6a52b8; color: #12082e; } .node.cyan { --c: var(--cyan); --cd: #1d8fae; color: #00151c; }
.node.locked { --c: var(--surface2); --cd: #121216; color: var(--muted); }
.node.done::after { content: ''; position: absolute; inset: -7px; border-radius: 50%; border: 3px solid var(--c); opacity: .35; }
.node.current::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid var(--c); animation: ping 1.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.25); opacity: 0; } }
.node-label { position: absolute; left: calc(100% + 14px); width: 190px; font-size: 14px; color: var(--ink2); line-height: 1.3; }
.node-label small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 2px; }
.node-wrap.left .node-label { left: auto; right: calc(100% + 14px); text-align: right; }
@media (max-width: 520px) { .node-label { width: 130px; font-size: 13px; } }
.start-tip { position: absolute; bottom: calc(100% + 14px); left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); font-weight: 800; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; padding: 8px 14px; border-radius: 10px; white-space: nowrap; animation: bob 1.6s ease-in-out infinite; }
.start-tip::after { content: ''; position: absolute; top: 100%; left: 50%; margin-left: -7px; border: 7px solid transparent; border-top-color: var(--ink); }
@keyframes bob { 50% { transform: translate(-50%, -4px); } }
.final-node { margin-top: 32px; text-align: center; color: var(--muted); }
.final-node .cert { width: 96px; height: 96px; margin: 0 auto 12px; border-radius: 26px; border: 2px dashed var(--line2); display: grid; place-items: center; }
.final-node .cert svg { width: 40px; height: 40px; }

.continue { position: fixed; left: 0; right: 0; bottom: 0; z-index: 15; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 35%); pointer-events: none; }
@media (min-width: 901px) { .continue { left: 248px; } }
.continue-card { pointer-events: auto; width: min(560px, 100%); margin: 0 auto; background: var(--surface); border: 1px solid var(--line2); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; box-shadow: var(--shadow); }
.continue-card .eyebrow { font-size: 11px; }
.continue-card b { display: block; font-size: 16px; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.continue-card .btn { height: 48px; }

.sheet-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .6); z-index: 40; display: grid; place-items: end center; animation: fade .2s; }
@keyframes fade { from { opacity: 0; } }
.sheet { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line2); border-radius: 24px 24px 0 0; padding: 26px 20px calc(24px + env(safe-area-inset-bottom)); animation: up .25s ease; }
@media (min-width: 640px) { .sheet-bg { place-items: center; } .sheet { border-radius: 24px; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
.sheet h3 { margin: 6px 0 8px; font-size: 24px; font-stretch: 112%; font-weight: 900; }
.sheet p { color: var(--ink2); margin: 0 0 20px; }

/* ---------- Lesson ---------- */
.lesson { min-height: 100svh; display: flex; flex-direction: column; }
.lesson-top { position: sticky; top: 0; z-index: 10; background: rgba(11, 11, 13, .9); backdrop-filter: blur(12px); }
.lesson-top .in { width: min(760px, 100%); margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.lesson-top .x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--ink2); flex: none; }
.lesson-top .x:hover { background: var(--surface); }
.lesson-top .progress { height: 12px; }
.lesson-top .xpchip { font-family: var(--mono); font-size: 13px; color: var(--acid); white-space: nowrap; }
.feed { width: min(680px, 100%); margin: 0 auto; padding: 20px 16px 200px; display: flex; flex-direction: column; gap: 22px; }
.blk { animation: rise .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.blk h2 { margin: 6px 0 12px; font-size: clamp(26px, 4vw, 34px); font-stretch: 112%; font-weight: 900; letter-spacing: -.02em; line-height: 1.08; }
.blk h3 { margin: 0 0 10px; font-size: 21px; font-stretch: 108%; font-weight: 800; letter-spacing: -.01em; }
.blk p { margin: 0; color: var(--ink2); font-size: 17px; line-height: 1.65; }
.blk p b { color: var(--ink); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }

.vis { background: #0f0f12; border: 1px solid var(--line); border-radius: 20px; padding: 26px 20px 18px; }
.vis figcaption { margin-top: 16px; color: var(--muted); font-size: 14px; text-align: center; }
.pulse { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pulse i { aspect-ratio: 1; border-radius: 50%; background: var(--surface2); border: 1px solid var(--line2); animation: kick 1.818s infinite; }
.pulse i:nth-child(2) { animation-delay: .4545s; } .pulse i:nth-child(3) { animation-delay: .909s; } .pulse i:nth-child(4) { animation-delay: 1.3635s; }
@keyframes kick { 0%, 20%, 100% { background: var(--surface2); transform: scale(1); box-shadow: none; } 2% { background: var(--acid); transform: scale(1.06); box-shadow: 0 0 40px rgba(214, 255, 61, .5); } }
.grid16 { display: grid; gap: 8px; }
.grow { display: grid; grid-template-columns: 52px repeat(16, minmax(0, 1fr)); gap: 4px; align-items: center; }
.grow > span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.grow i { height: 26px; border-radius: 5px; background: var(--surface2); }
.grow i.q { background: #26262d; }
.grow i.on { background: var(--acid); }
.grow:nth-child(2) i.on { background: var(--cyan); } .grow:nth-child(3) i.on { background: var(--hot); }
.grid16 .head { display: grid; grid-template-columns: 52px repeat(16, minmax(0, 1fr)); gap: 4px; }
.grid16 .head i { height: 3px; border-radius: 2px; background: transparent; }
.grid16 .head i.ph { background: var(--ink); }

.choice .q { font-size: 19px; font-weight: 800; margin: 2px 0 16px; line-height: 1.3; }
.choice .opts { gap: 8px; }
.choice .opt { font-size: 16px; padding: 15px 18px; }
.opt.right { border-color: var(--ok); background: rgba(74, 222, 128, .08); }
.opt.wrong { border-color: var(--bad); background: rgba(255, 84, 104, .08); animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.fb { margin-top: 14px; padding: 13px 16px; border-radius: 14px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.fb svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.fb.ok { background: rgba(74, 222, 128, .1); color: #b6f5cb; }
.fb.no { background: rgba(255, 84, 104, .1); color: #ffc0c8; }

.player { background: #0f0f12; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.player.live { border-color: rgba(214, 255, 61, .5); box-shadow: 0 0 0 4px rgba(214, 255, 61, .08); }
.player-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.player-head .playbig { width: 42px; height: 42px; }
.player-head .playbig svg { width: 16px; height: 16px; }
.player-head .meta { flex: 1; min-width: 0; }
.player-head .meta b { display: block; font-size: 14px; }
.player-head .meta small { color: var(--muted); font-size: 12.5px; font-family: var(--mono); }
.player-head .tool { height: 34px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line2); font-size: 13px; color: var(--ink2); }
.player-head .tool:hover { color: var(--ink); border-color: var(--ink2); }
.player-body { position: relative; padding: 8px 0; }
.player-body > div, .player-body .cm-scroller, .player-body .cm-content, .player-body .cm-line, .player-body .cm-activeLine, .player-body .cm-activeLineGutter { background: transparent !important; }
.player-body > div { height: auto !important; min-height: 0 !important; }
.player-body .cm-editor.cm-focused { outline: none; }
.player-body strudel-editor { display: block; }
.player-body .cm-editor { background: transparent !important; font-size: 14px; }
.player-body .cm-gutters { background: transparent !important; border: 0 !important; color: #4c4b48 !important; }
.player-loading { padding: 18px; font: 13.5px/1.7 var(--mono); color: var(--ink2); white-space: pre-wrap; }
.player-loading em { display: block; font-style: normal; color: var(--muted); margin-top: 8px; }
.player-cap { padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.player-err { padding: 10px 16px; border-top: 1px solid rgba(255, 84, 104, .35); color: #ffb3bd; font: 12.5px/1.5 var(--mono); }

.chatmock { background: #0f0f12; border: 1px solid var(--line); border-radius: 20px; padding: 18px; display: grid; gap: 14px; }
.chatmock .who { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.chatmock .av { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.chatmock .av.me { background: var(--surface2); color: var(--ink2); }
.chatmock .av.cl { background: var(--claude); color: #2a1206; }
.chatmock .av.cl svg { width: 16px; height: 16px; }
.chatmock .bubble { background: var(--surface2); border-radius: 16px; padding: 12px 15px; font-size: 15px; color: var(--ink); }
.chatmock pre { margin: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 13px/1.65 var(--mono); color: var(--ink2); white-space: pre-wrap; word-break: break-word; }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: tdot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tdot { 50% { transform: translateY(-4px); background: var(--ink); } }

.promptcard { border: 1px solid rgba(224, 138, 95, .35); background: linear-gradient(180deg, rgba(224, 138, 95, .1), rgba(224, 138, 95, .03)); border-radius: 20px; padding: 20px; }
.promptcard .eyebrow { color: var(--claude); }
.promptcard h3 { margin: 6px 0 6px; }
.promptcard p { font-size: 15.5px; margin-bottom: 14px; }
.promptbox { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font: 14px/1.6 var(--mono); color: var(--ink); }
.promptcard .row { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.promptcard .btn { height: 44px; font-size: 14px; padding: 0 18px; }
.btn-claude { background: var(--claude); color: #2a1206; }

.challenge .task { font-size: 16.5px; color: var(--ink2); margin: 0 0 14px; }
.challenge .task b { color: var(--ink); }
.challenge .eyebrow { color: var(--acid); }
.challenge .actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.challenge .actions .btn { height: 46px; font-size: 15px; padding: 0 20px; }
.challenge.won .player { border-color: rgba(74, 222, 128, .6); }

.lesson-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 12; border-top: 1px solid var(--line); background: rgba(17, 17, 20, .96); backdrop-filter: blur(12px); padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); }
.lesson-foot .in { width: min(680px, 100%); margin: 0 auto; display: flex; gap: 12px; align-items: center; }
.lesson-foot .msg { flex: 1; color: var(--muted); font-size: 14px; }
.lesson-foot .btn { min-width: 180px; }
@media (max-width: 520px) { .lesson-foot .msg { display: none; } .lesson-foot .btn { width: 100%; } }

.done-screen { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px 16px; }
.done-screen .burst { width: 150px; height: 150px; margin: 0 auto 22px; border-radius: 40px; background: var(--acid); color: var(--acid-ink); display: grid; place-items: center; transform: rotate(-6deg); box-shadow: 0 0 80px rgba(214, 255, 61, .35); animation: pop .5s cubic-bezier(.2, 1.6, .4, 1); }
.done-screen .burst svg { width: 72px; height: 72px; }
@keyframes pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.done-screen h1 { font-size: clamp(40px, 7vw, 68px); margin: 0 0 10px; }
.done-screen p { color: var(--ink2); margin: 0 auto 30px; max-width: 420px; }
.reward { display: flex; gap: 12px; justify-content: center; margin-bottom: 32px; }
.reward div { width: 130px; border-radius: 18px; border: 1.5px solid var(--line2); padding: 14px; }
.reward div b { display: block; font-size: 30px; font-stretch: 120%; font-weight: 900; }
.reward div small { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.reward .x b { color: var(--acid); } .reward .s b { color: var(--hot); }

.toast { position: fixed; left: 50%; bottom: 110px; transform: translate(-50%, 20px); background: var(--ink); color: var(--bg); font-weight: 700; padding: 12px 18px; border-radius: 12px; opacity: 0; pointer-events: none; transition: .25s; z-index: 60; font-size: 14px; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.hidden-engine { position: fixed; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; left: -10px; top: -10px; }
