/* AI Visual Guide — design system. "Editorial calm": warm paper + sage, Geist type with a serif accent,
   machined double-bezel cards, soft diffused depth, spring motion. Projector-first sizes in the deck. */
:root {
  --bg: #f7f6f1;
  --bg2: #efeee7;
  --panel: #fffefb;
  --panel2: #f3f4ee;
  --line: rgba(36, 56, 51, .11);
  --ink: #1f2e2a;
  --ink2: #4a5a54;
  --ink3: #7d8a84;
  --accent: #326d5f;
  --on-accent: #fffefb;
  --good: #2f8f5b;
  --warn: #c98a1b;
  --bad: #c95b37;
  --tray: rgba(36, 56, 51, .035);
  --hair: rgba(36, 56, 51, .07);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .85);
  --bezel: 0 0 0 6px var(--tray), 0 0 0 7px var(--hair);
  --depth: 0 28px 56px -32px rgba(31, 46, 42, .28), 0 10px 22px -14px rgba(31, 46, 42, .10);
  --glow: var(--hi), var(--bezel), var(--depth);
  --wash-a: rgba(216, 231, 219, .9); --wash-b: rgba(243, 220, 203, .55);
  --ease: cubic-bezier(.32, .72, 0, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --r: 22px;
  --font: "Geist", "Segoe UI", system-ui, sans-serif;
  --display: "Geist", "Segoe UI", system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "Geist Mono", Consolas, monospace;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1513;
  --bg2: #151d1a;
  --panel: #18211e;
  --panel2: #1f2a26;
  --line: rgba(233, 240, 234, .10);
  --ink: #edf2ee;
  --ink2: #b8c6bf;
  --ink3: #85968e;
  --accent: #7cc4ad;
  --on-accent: #0f1513;
  --good: #5fd09a;
  --warn: #e3ad4f;
  --bad: #ee8a68;
  --tray: rgba(255, 255, 255, .025);
  --hair: rgba(255, 255, 255, .07);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .06);
  --depth: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 10px 20px -14px rgba(0, 0, 0, .5);
  --wash-a: rgba(50, 109, 95, .22); --wash-b: rgba(201, 91, 55, .10);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.mono { font-family: var(--mono); }
.muted { color: var(--ink3); }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Backdrop: two still washes of colour + fixed paper grain. No moving blur (cheap for projector laptops). */
.backdrop { position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(60vw 40vw at 8% -8%, var(--wash-a), transparent 70%), radial-gradient(50vw 36vw at 100% 0%, var(--wash-b), transparent 70%); }
.backdrop i { display: none; }
.backdrop::after { content: ""; position: fixed; inset: 0; opacity: .045; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
:root[data-theme="dark"] .backdrop::after { mix-blend-mode: screen; opacity: .03; }

/* ---------- Primitives ---------- */
.pill { display: inline-flex; align-items: center; gap: .45em; padding: .32em .85em; border-radius: 999px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); font-size: .78em; font-weight: 500; color: var(--ink2); }
.eyebrow { display: inline-flex; align-items: center; gap: .55em; padding: .42em 1em; border-radius: 999px; background: var(--panel); box-shadow: var(--hi), 0 0 0 1px var(--line); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .2em; color: var(--ink2); }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.tag { font-size: .68em; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; color: var(--ink3); }

.btn { position: relative; display: inline-flex; align-items: center; gap: .6em; padding: .7em 1.25em; border-radius: 999px; border: 0; background: var(--panel); color: var(--ink); font-weight: 550; text-decoration: none; letter-spacing: -.005em;
  box-shadow: var(--hi), 0 0 0 1px var(--line), 0 6px 14px -10px rgba(31, 46, 42, .35); transition: transform .5s var(--ease), box-shadow .5s var(--ease), background .3s var(--ease); }
.btn:hover { transform: translateY(-1px); box-shadow: var(--hi), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, var(--line)), 0 14px 26px -14px rgba(31, 46, 42, .4); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--ink); color: var(--bg); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 10px 24px -12px rgba(31, 46, 42, .6); }
:root[data-theme="dark"] .btn.primary { background: var(--accent); color: var(--on-accent); }
.btn.small { padding: .48em .95em; font-size: .86em; }
/* Button-in-button trailing icon */
.btn .ic { display: inline-grid; place-items: center; width: 1.9em; height: 1.9em; margin: -.35em -.75em -.35em .1em; border-radius: 50%; background: color-mix(in srgb, currentColor 12%, transparent); font-size: .9em; transition: transform .5s var(--ease); }
.btn:hover .ic { transform: translate(2px, -1px) scale(1.06); }

.card { background: var(--panel); border-radius: var(--r); box-shadow: var(--glow); }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translate(-50%, 160%); background: var(--ink); color: var(--bg); font-weight: 550; padding: .75em 1.3em; border-radius: 999px; transition: transform .6s var(--ease); z-index: 99; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .5); }
#toast.show { transform: translate(-50%, 0); }
.copybox { position: relative; background: var(--bg2); box-shadow: inset 0 0 0 1px var(--line); border-radius: 14px; padding: .85em 1em; font-family: var(--mono); font-size: .8em; line-height: 1.55; white-space: pre-wrap; text-align: left; color: var(--ink2); }

/* Scroll reveal (home / library / live). JS adds .rv then .in when visible. */
.rv { opacity: 0; transform: translateY(28px); filter: blur(4px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.rv.in { opacity: 1; transform: none; filter: none; }

/* ---------- Floating island nav ---------- */
.topnav { position: sticky; top: 14px; z-index: 20; display: flex; align-items: center; gap: .4rem; width: max-content; max-width: calc(100% - 24px); margin: 14px auto 0; padding: .4rem .45rem .4rem .9rem; border-radius: 999px;
  background: color-mix(in srgb, var(--panel) 78%, transparent); backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4); box-shadow: var(--hi), 0 0 0 1px var(--line), 0 18px 40px -24px rgba(31, 46, 42, .35); }
.brand { display: flex; align-items: center; gap: .55rem; font-weight: 650; font-size: 1rem; letter-spacing: -.02em; text-decoration: none; margin-right: .6rem; white-space: nowrap; }
.brand b { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 9px; background: var(--ink); color: var(--bg); font-size: .95rem; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.topnav nav { display: flex; gap: .15rem; }
.topnav nav a { padding: .5rem .85rem; border-radius: 999px; text-decoration: none; color: var(--ink2); font-weight: 500; font-size: .93rem; transition: background .4s var(--ease), color .4s var(--ease); }
.topnav nav a[aria-current="page"] { background: var(--ink); color: var(--bg); }
.topnav nav a:not([aria-current]):hover { background: var(--panel2); color: var(--ink); }
.theme-btn { margin-left: .2rem; padding: .5em .7em !important; }
.page { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 1rem 2rem 7rem; }
.page-h { padding: 4.5rem 0 1.5rem; }
.page-h h1 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); font-weight: 650; letter-spacing: -.045em; line-height: 1; margin: .5em 0 .25em; }
.page-h p { font-size: 1.15rem; color: var(--ink2); margin: 0; max-width: 46em; }

/* ---------- Home ---------- */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding: 5.5rem 0 3rem; }
.hero h1 { font-size: clamp(3rem, 6.6vw, 6rem); font-weight: 650; line-height: .95; margin: .45em 0 .35em; letter-spacing: -.055em; }
.hero h1 .serif { font-size: 1.08em; letter-spacing: -.03em; color: var(--accent); }
.hero p { font-size: 1.22rem; line-height: 1.55; color: var(--ink2); max-width: 32em; margin: 0; }
.hero .actions { display: flex; gap: .7rem; flex-wrap: wrap; margin-top: 2rem; }
.keys { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.6rem; color: var(--ink3); font-size: .86rem; align-items: center; }
kbd { font-family: var(--mono); background: var(--panel); box-shadow: 0 0 0 1px var(--line), 0 2px 0 var(--line); border-radius: 6px; padding: .1em .45em; font-size: .85em; color: var(--ink); }
/* Card cascade preview */
.stack { position: relative; height: 470px; }
.stack .sc { position: absolute; width: 74%; padding: 22px 24px; border-radius: 24px; background: var(--panel); box-shadow: var(--glow); transition: transform 1s var(--ease); }
.stack .sc:nth-child(1) { left: 0; top: 18px; transform: rotate(-4deg); }
.stack .sc:nth-child(2) { right: 0; top: 120px; transform: rotate(3deg); z-index: 2; }
.stack .sc:nth-child(3) { left: 9%; top: 268px; transform: rotate(-1.5deg); z-index: 3; }
.stack:hover .sc:nth-child(1) { transform: rotate(-6deg) translate(-10px, -8px); }
.stack:hover .sc:nth-child(2) { transform: rotate(5deg) translate(10px, -4px); }
.stack .sc .tag { color: var(--c); }
.stack .sc h4 { margin: .5rem 0 .4rem; font-size: 1.45rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.stack .sc p { margin: 0; color: var(--ink2); font-size: .98rem; }
.stack .sc .art { height: 74px; margin-top: 14px; border-radius: 14px; overflow: hidden; background: color-mix(in srgb, var(--c) 10%, var(--panel2)); }

.metro { width: 100%; height: auto; display: block; }
.metro .track { fill: none; stroke-width: 9; stroke-linecap: round; stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: draw 2.4s var(--ease) forwards; }
.metro .stop { cursor: pointer; }
.metro .stop circle { fill: var(--panel); stroke-width: 5; transition: r .5s var(--spring); }
.metro .stop:hover circle, .metro .stop:focus circle { r: 23; }
.metro .stop text { fill: var(--ink); font: 550 18px var(--font); letter-spacing: -.01em; }
.metro .train { animation: pulse 1.8s ease-in-out infinite; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 50% { opacity: .35; } }

.section-h { scroll-margin-top: 96px; display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 7rem 0 1.8rem; flex-wrap: wrap; }
.section-h h2 { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 650; margin: .55rem 0 0; letter-spacing: -.045em; line-height: 1; }
.section-h h2 .serif { color: var(--accent); }
.bezel { padding: 8px; border-radius: 32px; background: var(--tray); box-shadow: 0 0 0 1px var(--hair); }
.bezel > .core { border-radius: 24px; background: var(--panel); box-shadow: var(--hi), var(--depth); padding: 18px 22px; }

/* Bento of course cards (Brilliant-style art on top) */
.modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.6rem; }
.modules.bento { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.modules.bento .mod.feature { grid-column: span 2; grid-row: span 2; }
.mod { position: relative; padding: 0; text-decoration: none; display: flex; flex-direction: column; overflow: hidden; transition: transform .7s var(--ease), box-shadow .7s var(--ease); }
.mod:hover { transform: translateY(-5px); }
.mod .art { position: relative; aspect-ratio: 16 / 8; background: color-mix(in srgb, var(--c) 9%, var(--panel2)); overflow: hidden; }
.mod.feature .art { aspect-ratio: auto; flex: 1; min-height: 240px; }
.mod .art svg { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform 1.2s var(--ease); }
.mod:hover .art svg { transform: scale(1.06) rotate(-1deg); }
.mod .art .icon { position: absolute; left: 16px; bottom: 12px; font-size: 1.9rem; filter: drop-shadow(0 4px 8px rgba(0, 0, 0, .12)); }
.mod .txt { padding: 1rem 1.2rem 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.mod .num { font-family: var(--mono); font-size: .78rem; font-weight: 500; color: var(--ink3); letter-spacing: .08em; }
.mod h3 { margin: 0; font-size: 1.2rem; font-weight: 600; letter-spacing: -.025em; }
.mod.feature h3 { font-size: 2rem; letter-spacing: -.04em; }
.mod p { margin: 0; color: var(--ink2); font-size: .92rem; line-height: 1.45; }
.mod.feature p { font-size: 1.05rem; }
.mod .foot { margin-top: .4rem; display: flex; justify-content: space-between; align-items: center; font-size: .8rem; color: var(--ink3); }
.status { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink3); opacity: .5; }
.status.ready { color: var(--good); } .status.ready::before { background: var(--good); opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--good) 22%, transparent); }
.mod.soon .art { filter: saturate(.55); }

/* ---------- Library / Live ---------- */
.tabs { display: inline-flex; gap: .2rem; flex-wrap: wrap; margin: 1.6rem 0 1.2rem; padding: 5px; border-radius: 999px; background: var(--tray); box-shadow: 0 0 0 1px var(--hair); }
.tabs button { border: 0; background: transparent; padding: .55rem 1.05rem; border-radius: 999px; font-weight: 500; color: var(--ink2); transition: background .45s var(--ease), color .45s var(--ease), box-shadow .45s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { background: var(--panel); color: var(--ink); box-shadow: var(--hi), 0 0 0 1px var(--line), 0 6px 14px -8px rgba(31, 46, 42, .3); }
.toolbar { display: flex; gap: .7rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.8rem; }
.toolbar input, .toolbar select { background: var(--panel); border: 0; box-shadow: var(--hi), 0 0 0 1px var(--line); color: var(--ink); border-radius: 999px; padding: .72rem 1.15rem; font: inherit; min-width: 280px; transition: box-shadow .4s var(--ease); }
.toolbar input:focus, .toolbar select:focus { outline: 0; box-shadow: 0 0 0 1px var(--accent), 0 0 0 5px color-mix(in srgb, var(--accent) 15%, transparent); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.7rem; }
.item { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .55rem; text-decoration: none; transition: transform .7s var(--ease); }
a.item:hover, button.item:hover { transform: translateY(-4px); }
button.item { border: 0; font: inherit; }
.item h4 { margin: 0; font-size: 1.06rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.item p { margin: 0; color: var(--ink2); font-size: .92rem; line-height: 1.5; }
.item .row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-top: auto; padding-top: .5rem; }
.kit-img { width: 100%; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: #fff; display: block; }
h3.sub { font-size: 1.35rem; font-weight: 600; letter-spacing: -.03em; margin: 3rem 0 1.2rem; }
dialog::backdrop { background: rgba(15, 21, 19, .35); backdrop-filter: blur(6px); }
dialog[open] { animation: dlg .6s var(--ease); }
@keyframes dlg { from { opacity: 0; transform: translateY(18px) scale(.98); } }

/* ---------- Deck (teach.html) — 1600×900 canvas, scaled by Reveal ---------- */
html:has(.reveal), html:has(.reveal) body { height: 100%; overflow: hidden; }
.reveal { font-family: var(--font); color: var(--ink); font-size: 30px; }
.reveal-viewport { background: transparent; }
.reveal .slides { text-align: left; }
.reveal .slides section { height: 100%; }
.reveal h1, .reveal h2, .reveal h3 { font-family: var(--display); letter-spacing: -.045em; margin: 0; color: var(--ink); text-transform: none; font-weight: 650; }
.reveal .controls { color: var(--ink); }
.reveal .progress { color: var(--c, var(--accent)); height: 4px; }
.deck-tools { position: fixed; left: 16px; top: 16px; z-index: 30; display: flex; gap: 8px; }
.cs { display: grid; grid-template-rows: auto auto 1fr auto; gap: 20px; height: 900px; padding: 40px 60px 34px; }
.cs.wide .body { grid-template-columns: 1fr; }
.cs .bar { display: flex; align-items: center; gap: 14px; font-size: 19px; color: var(--ink3); padding-left: 190px; }
.cs .bar .mb { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 12px; border-radius: 999px; background: var(--panel); box-shadow: var(--hi), 0 0 0 1px var(--line); color: var(--ink); font-weight: 600; font-size: 17px; letter-spacing: .14em; text-transform: uppercase; }
.cs .bar .mb::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.cs .bar .count { margin-left: auto; font-family: var(--mono); font-size: 17px; }
.cs .bar .dots { display: flex; gap: 5px; }
.cs .bar .dots span { width: 22px; height: 5px; border-radius: 3px; background: var(--line); transition: background .6s var(--ease); }
.cs .bar .dots span.on { background: var(--c); }
.cs h2 { font-size: 64px; line-height: 1; }
.cs .body { display: grid; grid-template-columns: 1fr 390px; gap: 34px; min-height: 0; }
.cs .stage { position: relative; min-height: 0; border-radius: 30px; background: var(--panel); box-shadow: var(--hi), 0 0 0 8px var(--tray), 0 0 0 9px var(--hair), var(--depth); overflow: hidden; display: flex; flex-direction: column; margin: 9px; }
.cs .side { display: flex; flex-direction: column; gap: 22px; min-height: 0; padding-top: 9px; }
.takeaway { font-family: var(--serif); font-style: italic; font-size: 44px; font-weight: 400; line-height: 1.08; letter-spacing: -.015em; color: var(--ink); position: relative; padding-top: 22px; }
.takeaway::before { content: ""; position: absolute; left: 0; top: 0; width: 56px; height: 5px; border-radius: 3px; background: var(--c); }
.analogy { background: color-mix(in srgb, var(--c) 8%, var(--panel)); border-radius: 22px; padding: 18px 22px; font-size: 24px; line-height: 1.35; color: var(--ink2); box-shadow: var(--hi), 0 0 0 1px color-mix(in srgb, var(--c) 22%, var(--line)); }
.analogy b { display: block; font-size: 14px; text-transform: uppercase; letter-spacing: .2em; color: color-mix(in srgb, var(--c) 75%, var(--ink)); margin-bottom: 8px; font-weight: 650; }
.points { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 24px; }
.points li { display: flex; gap: 12px; align-items: baseline; line-height: 1.3; }
.points li::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); transform: translateY(-3px); }
.cs .foot { display: flex; align-items: center; gap: 12px; font-size: 19px; color: var(--ink3); flex-wrap: wrap; padding: 0 9px; }
.cs .foot a { color: var(--ink2); text-decoration: none; border-bottom: 1.5px solid color-mix(in srgb, var(--c) 60%, transparent); }
.cs .foot .btn { font-size: 18px; }
.cs .foot .sp { margin-left: auto; }
.drawn { position: absolute; right: 14px; bottom: 12px; font-size: 14px; color: var(--ink3); background: var(--panel); padding: 3px 12px; border-radius: 999px; box-shadow: 0 0 0 1px var(--line); z-index: 5; }

/* Module title + closing cards */
.opener { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 60px; height: 900px; padding: 70px 90px; }
.opener .big { font-family: var(--mono); font-size: 26px; font-weight: 500; color: var(--c); letter-spacing: .14em; text-transform: uppercase; }
.opener h1 { font-size: 104px; line-height: .92; margin: 22px 0 26px; letter-spacing: -.055em; }
.opener p { font-size: 30px; line-height: 1.4; color: var(--ink2); margin: 0 0 20px; }
.opener ol { list-style: none; padding: 26px 30px; margin: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: s; border-radius: 30px; background: var(--panel); box-shadow: var(--glow); }
.opener li { counter-increment: s; display: flex; align-items: center; gap: 18px; font-size: 24px; padding: 6px 0; color: var(--ink2); }
.opener li::before { content: counter(s, decimal-leading-zero); flex: none; font-family: var(--mono); font-size: 17px; color: var(--c); width: 34px; }

/* ---------- Visual widgets (inside .stage) ---------- */
.v { position: relative; flex: 1; min-height: 0; padding: 30px; display: flex; flex-direction: column; gap: 18px; font-size: 24px; }
.v-legend { display: flex; flex-direction: column; gap: 2px; font-size: 22px; overflow: auto; }
.v-legend button { display: flex; gap: 12px; align-items: flex-start; text-align: left; background: transparent; border: 0; border-radius: 14px; padding: 7px 10px; color: var(--ink2); transition: background .45s var(--ease), color .45s var(--ease); }
.v-legend button.on { background: color-mix(in srgb, var(--c) 9%, var(--panel2)); color: var(--ink); box-shadow: 0 0 0 1px color-mix(in srgb, var(--c) 30%, var(--line)); }
.v-legend button small { display: none; color: var(--ink2); font-size: 19px; margin-top: 4px; line-height: 1.35; }
.v-legend button.on small { display: block; }
.marker { flex: none; display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 650; font-size: 17px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent), 0 6px 12px -4px rgba(0, 0, 0, .25); }
.hot { position: absolute; border: 2.5px dashed transparent; border-radius: 14px; transition: border-color .4s var(--ease), background .4s var(--ease); cursor: pointer; }
.hot .marker { position: absolute; top: -15px; left: -15px; animation: bob 2.4s ease-in-out infinite; }
.hot.on { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
@keyframes bob { 50% { transform: translateY(-4px); } }
.split { display: grid; grid-template-columns: 1.55fr 1fr; gap: 24px; flex: 1; min-height: 0; }
.mock { position: relative; border-radius: 18px; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); background: var(--bg2); min-height: 0; }
.chip { display: inline-block; padding: 6px 13px; border-radius: 12px; font-family: var(--mono); font-size: 27px; margin: 5px; animation: pop .5s var(--spring) backwards; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }
.v textarea, .v input[type="text"] { width: 100%; font: inherit; font-size: 24px; background: var(--bg2); border: 0; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); border-radius: 18px; padding: 16px 18px; resize: none; }
.v textarea:focus { outline: 0; box-shadow: inset 0 0 0 2px var(--c); }
.v input[type="range"] { width: 100%; accent-color: var(--c); height: 30px; }
.bars { display: flex; flex-direction: column; gap: 12px; }
.bars .b { display: grid; grid-template-columns: 170px 1fr 80px; gap: 14px; align-items: center; font-size: 23px; cursor: pointer; }
.bars .b i { display: block; height: 30px; border-radius: 10px; background: var(--c); transition: width .9s var(--ease); }
.big-num { font-family: var(--display); font-size: 66px; font-weight: 650; letter-spacing: -.04em; color: var(--c); line-height: 1; }
.flip { perspective: 1000px; }
.flip .in { position: relative; transition: transform .8s var(--ease); transform-style: preserve-3d; height: 100%; }
.flip.done .in { transform: rotateY(180deg); }
.flip .f, .flip .bk { position: absolute; inset: 0; backface-visibility: hidden; border-radius: 20px; padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.flip .f { background: var(--panel2); box-shadow: inset 0 0 0 1px var(--line); }
.flip .bk { transform: rotateY(180deg); }
.flow { display: flex; align-items: center; justify-content: space-between; gap: 6px; position: relative; padding: 10px 0; }
.flow .node { flex: 1; min-width: 0; text-align: center; padding: 18px 10px; border-radius: 20px; background: var(--panel2); border: 0; box-shadow: inset 0 0 0 1px var(--line); transition: transform .6s var(--spring), background .4s var(--ease), box-shadow .4s var(--ease); font-size: 21px; }
.flow .node .ic { font-size: 40px; display: block; margin-bottom: 6px; }
.flow .node.on { transform: translateY(-8px); background: color-mix(in srgb, var(--c) 12%, var(--panel)); box-shadow: inset 0 0 0 2px var(--c), 0 16px 28px -18px rgba(0, 0, 0, .35); }
.flow .arr { flex: none; color: var(--ink3); font-size: 26px; }
.ctrls { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ctrls .btn { font-size: 20px; }
.ctrls .btn.primary { background: var(--c); color: #fff; }
.say { min-height: 60px; font-size: 25px; line-height: 1.4; padding: 18px 22px; border-radius: 18px; background: var(--bg2); box-shadow: inset 3px 0 0 var(--c); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } .rv { opacity: 1; transform: none; filter: none; } }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; }
  .stack { height: auto; display: grid; gap: 1rem; }
  .stack .sc { position: static; width: 100%; transform: none !important; }
  .modules.bento { grid-template-columns: 1fr; }
  .modules.bento .mod.feature { grid-column: auto; grid-row: auto; }
  .topnav { padding: .35rem; gap: .2rem; }
  .brand span { display: none; }
  .topnav nav a { padding: .45rem .6rem; font-size: .85rem; }
  .page { padding: 1rem 1rem 5rem; }
  .section-h { margin-top: 4.5rem; }
  .toolbar input, .toolbar select { min-width: 0; width: 100%; }
  .grid { grid-template-columns: 1fr; }
}
