/* OpenBI — the site. Night sky and paper: the hero is always the Nordic night; the rest follows the reader's
   theme (light, or dark for the owls), and every screenshot swaps with it. */

@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-normal.woff2") format("woff2"); font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("../fonts/instrument-serif-latin-400-italic.woff2") format("woff2"); font-style: italic; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --bg: #f7f6f2; --bg-2: #efede6; --card: #ffffff; --ink: #14161b; --ink-2: #3c414b; --muted: #6a6f7a; --line: #e2dfd6;
  --accent: #2f6fde; --accent-2: #1d4fb0; --good: #1f8a5b; --bad: #c4372c; --gold: #c99a2e;
  --aurora-1: #3ef0a4; --aurora-2: #22d3ee; --aurora-3: #8b5cf6;
  --night: #060a14; --night-2: #0b1222; --night-ink: #e9ecf3; --night-muted: #9aa3b8; --night-line: rgba(255,255,255,.09);
  --shadow: 0 1px 2px rgba(20,22,27,.06), 0 8px 30px rgba(20,22,27,.08);
  --shadow-lg: 0 2px 6px rgba(20,22,27,.06), 0 24px 60px rgba(20,22,27,.14);
  --radius: 14px; --radius-lg: 22px;
  --sans: "Inter", ui-sans-serif, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --wrap: 1180px; --gutter: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0d14; --bg-2: #0f1420; --card: #131a28; --ink: #e9ecf3; --ink-2: #c3c9d6; --muted: #8e97ab; --line: #222b3d;
    --accent: #6b9cf0; --accent-2: #9bbcf6; --good: #5cc795; --bad: #ff8a7a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35); --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0d14; --bg-2: #0f1420; --card: #131a28; --ink: #e9ecf3; --ink-2: #c3c9d6; --muted: #8e97ab; --line: #222b3d;
  --accent: #6b9cf0; --accent-2: #9bbcf6; --good: #5cc795; --bad: #ff8a7a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 30px rgba(0,0,0,.35); --shadow-lg: 0 2px 6px rgba(0,0,0,.3), 0 24px 60px rgba(0,0,0,.5);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--sans); font-feature-settings: "cv11", "ss01"; overflow-x: hidden;
  transition: background .4s ease, color .4s ease; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
code, kbd, pre, .mono { font-family: var(--mono); font-size: .88em; }
::selection { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--card); padding: 8px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---- navigation --------------------------------------------------------------------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, color .3s; color: var(--night-ink); }
.nav.scrolled { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.nav .wrap { display: flex; align-items: center; gap: 18px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 700; letter-spacing: -.01em; font-size: 18px; }
.brand .mark { width: 30px; height: 30px; border-radius: 8px; background: linear-gradient(135deg, #3b82f6, #2f6fde 60%, #1d4fb0); color: #fff; display: grid; place-items: center;
  font: 800 12.5px/1 var(--sans); letter-spacing: .02em; box-shadow: 0 2px 10px rgba(47,111,222,.45); }
.nav-links { display: flex; gap: 4px; margin-left: 18px; }
.nav-links a { white-space: nowrap; color: inherit; opacity: .78; text-decoration: none; font-size: 14.5px; padding: 6px 10px; border-radius: 8px; }
.nav-links a:hover { opacity: 1; background: color-mix(in srgb, currentColor 9%, transparent); }
.nav-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid color-mix(in srgb, currentColor 22%, transparent); background: transparent; color: inherit;
  display: grid; place-items: center; cursor: pointer; transition: background .2s; }
.icon-btn:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.icon-btn svg { width: 19px; height: 19px; }
.btn { display: inline-flex; align-items: center; gap: 9px; border-radius: 12px; padding: 11px 18px; font: 600 15px/1.2 var(--sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #3d7cf0, #2f6fde); color: #fff; box-shadow: 0 6px 22px rgba(47,111,222,.42), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-primary:hover { box-shadow: 0 10px 30px rgba(47,111,222,.55), inset 0 1px 0 rgba(255,255,255,.25); }
.btn-ghost { color: inherit; border-color: color-mix(in srgb, currentColor 28%, transparent); background: color-mix(in srgb, currentColor 4%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn svg { width: 18px; height: 18px; }
.nav .btn { padding: 8px 14px; font-size: 14px; }
@media (max-width: 1100px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav .btn-dl span { display: none; } .nav .wrap { gap: 10px; } }

/* ---- hero: the Nordic night, the model as a constellation, agents as comets ---------------- */
.hero { position: relative; min-height: 100svh; background: radial-gradient(1200px 700px at 70% 20%, #10204a 0%, transparent 60%), linear-gradient(180deg, #050812 0%, #070d1c 55%, #0b1428 100%);
  color: var(--night-ink); overflow: hidden; isolation: isolate; display: flex; align-items: center; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 90px; background: linear-gradient(180deg, transparent, var(--bg)); z-index: -1; pointer-events: none; }
.hero .wrap { width: 100%; padding-top: 110px; padding-bottom: 170px; }
.hero-copy { max-width: 640px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--night-muted);
  padding: 8px 12px; border: 1px solid var(--night-line); border-radius: 999px; background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--aurora-1); box-shadow: 0 0 12px var(--aurora-1); }
.hero h1 { font: 400 clamp(46px, 7.4vw, 96px)/.98 var(--serif); letter-spacing: -.02em; margin: 26px 0 22px; text-wrap: balance; }
.hero h1 em { font-style: italic; background: linear-gradient(100deg, #7ff5c4 0%, #67e3f6 40%, #b49cff 85%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.hero p.lead { font-size: clamp(17px, 1.6vw, 20px); color: #c7cee0; max-width: 560px; margin: 0 0 30px; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .caption { position: absolute; right: var(--gutter); bottom: 104px; font-size: 12.5px; color: var(--night-muted); max-width: 360px; text-align: right; }
.hero .caption b { color: #ffb4a8; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.chips li { font: 500 13px/1 var(--sans); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--night-line); background: rgba(255,255,255,.04); color: #d6dcea; }
.chips li b { color: #fff; font-weight: 650; }

/* ---- stats -------------------------------------------------------------------------------- */
.stats { position: relative; z-index: 2; margin-top: -70px; }
.stats .grid { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.stat { padding: 26px 26px 24px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .n { font: 400 54px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .t { color: var(--muted); font-size: 14.5px; margin-top: 8px; line-height: 1.45; }
.stat .t b { color: var(--ink-2); font-weight: 600; }
@media (max-width: 900px) { .stats .grid { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 480px) { .stat { padding: 20px 18px; } .stat .n { font-size: 42px; } }

/* ---- sections ----------------------------------------------------------------------------- */
section.block { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
section.night { background: var(--night); color: var(--night-ink); }
section.night .kicker { color: var(--aurora-1); }
section.night p { color: #b9c1d4; }
section.alt { background: var(--bg-2); }
.kicker { font: 650 13px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; display: flex; align-items: center; gap: 10px; }
.kicker::before { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; }
h2 { font: 400 clamp(38px, 5.4vw, 70px)/1.02 var(--serif); letter-spacing: -.02em; margin: 0 0 22px; text-wrap: balance; }
h2 em { font-style: italic; color: var(--accent); }
section.night h2 em { color: var(--aurora-1); }
h3 { font: 650 20px/1.3 var(--sans); letter-spacing: -.01em; margin: 0 0 8px; }
p { margin: 0 0 16px; color: var(--ink-2); }
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; max-width: 720px; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split.rev { grid-template-columns: 1.15fr 1fr; }
.split.rev > :first-child { order: 2; }
@media (max-width: 920px) { .split, .split.rev { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.list li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: var(--ink-2); }
.list li svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }
section.night .list li { color: #c3cadb; }
section.night .list li svg { color: var(--aurora-1); }
.note { font-size: 13.5px; color: var(--muted); }
section.night .note { color: var(--night-muted); }

/* frames: screenshots and videos with a window's chrome */
.frame { border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-lg); position: relative; }
section.night .frame { border-color: rgba(255,255,255,.08); background: #0d1424; box-shadow: 0 30px 80px rgba(0,0,0,.55); }
.frame .bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--card) 92%, var(--ink)); }
section.night .frame .bar { border-color: rgba(255,255,255,.07); background: #0f1729; }
.frame .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.frame .bar i:nth-child(2) { background: #febc2e; } .frame .bar i:nth-child(3) { background: #28c840; }
.frame .bar span { margin-left: 10px; font: 500 12.5px/1 var(--sans); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame img, .frame video { width: 100%; height: auto; }
.shot-swap .dark-only { display: none; }
:root[data-theme="dark"] .shot-swap .dark-only { display: block; }
:root[data-theme="dark"] .shot-swap .light-only { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot-swap .dark-only { display: block; }
  :root:not([data-theme="light"]) .shot-swap .light-only { display: none; }
}

/* ---- manifesto: the tangle and the core ---------------------------------------------------- */
.tangle-box { position: relative; aspect-ratio: 1 / .86; border-radius: var(--radius-lg); background: radial-gradient(circle at 60% 50%, #12203d, #070b16 70%); border: 1px solid rgba(255,255,255,.07); overflow: hidden; }
.tangle-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.tangle-box .legend { position: absolute; left: 18px; bottom: 14px; right: 18px; display: flex; justify-content: space-between; font: 500 12.5px/1.3 var(--sans); color: var(--night-muted); }
.big-quote { font: 400 italic clamp(24px, 2.4vw, 32px)/1.3 var(--serif); color: #e6eaf4; margin: 28px 0 0; padding-left: 18px; border-left: 2px solid var(--aurora-1); }

/* ---- talk to me, Goose: the transcript and the studio -------------------------------------- */
.goose { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; align-items: start; margin-top: 46px; }
@media (max-width: 980px) { .goose { grid-template-columns: 1fr; } }
.term { background: #0a1020; border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; display: flex; flex-direction: column; height: 620px; }
.term .bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.07); font: 600 13px/1 var(--sans); color: #c9d1e3; }
.term .bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--aurora-1); box-shadow: 0 0 10px var(--aurora-1); }
.term .bar select, .term .bar button { margin-left: auto; font: 500 12.5px var(--sans); color: #c9d1e3; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.term .bar button + button { margin-left: 6px; }
.term .log { flex: 1; overflow-y: auto; padding: 18px 18px 8px; scroll-behavior: smooth; }
.msg { margin: 0 0 14px; display: grid; gap: 6px; animation: msgin .35s ease both; }
@keyframes msgin { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg .who { font: 650 11.5px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: #8693ad; }
.msg.you .who { color: #9bbcf6; }
.msg .text { color: #e4e8f2; font-size: 15.5px; line-height: 1.55; }
.msg.you .text { background: rgba(107,156,240,.12); border: 1px solid rgba(107,156,240,.25); padding: 10px 14px; border-radius: 12px 12px 12px 4px; }
.call { font: 13px/1.5 var(--mono); background: #0e1730; border: 1px solid rgba(255,255,255,.07); border-radius: 10px; padding: 10px 12px; color: #c7d2ea; white-space: pre-wrap; word-break: break-word; }
.call .tool { color: #7ff5c4; font-weight: 600; }
.call .arg { color: #ffd88a; }
.call .ok { color: #7ff5c4; }
.call .err { color: #ff9a8b; }
.call .ms { color: #8693ad; }
.call table { border-collapse: collapse; margin-top: 6px; font: 12.5px/1.4 var(--mono); }
.call td, .call th { padding: 2px 12px 2px 0; text-align: right; color: #dce3f3; }
.call th { color: #8693ad; font-weight: 500; }
.call td:first-child, .call th:first-child { text-align: left; }
.typing::after { content: "▍"; animation: blink 1s steps(1) infinite; color: #7ff5c4; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }
.term .foot { padding: 12px 16px; border-top: 1px solid rgba(255,255,255,.07); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font: 500 12.5px var(--sans); color: #8693ad; }
.agent-chip { padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #d6dcea; }
.agent-chip.on { border-color: var(--aurora-1); color: #fff; box-shadow: 0 0 0 1px var(--aurora-1) inset; }
.zoombox { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 30px 80px rgba(0,0,0,.55); background: #0d1424; aspect-ratio: 2400 / 1370; }
.zoombox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform-origin: 0 0; transition: transform 1.6s cubic-bezier(.45,.05,.2,1); }
.zoombox .tag { position: absolute; left: 14px; top: 14px; font: 600 12px/1 var(--sans); color: #fff; background: rgba(6,10,20,.72); padding: 7px 10px; border-radius: 8px; backdrop-filter: blur(6px); }
.explains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }
@media (max-width: 980px) { .explains { grid-template-columns: 1fr; } }
.explain { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 18px 18px 14px; }
.explain h3 { color: #fff; font-size: 16px; display: flex; align-items: center; gap: 8px; }
.explain h3 small { font: 500 11.5px/1 var(--sans); color: #8693ad; letter-spacing: .06em; text-transform: uppercase; margin-left: auto; }
.explain ul { margin: 10px 0 0; padding-left: 18px; color: #c3cadb; font-size: 14.5px; line-height: 1.55; }
.explain li { margin: 0 0 6px; }
.connect { margin-top: 26px; display: grid; gap: 8px; }
.connect code { display: block; padding: 14px 16px; border-radius: 12px; background: #0a1020; border: 1px solid rgba(255,255,255,.08); color: #c9d4ee; overflow-x: auto; white-space: pre; font-size: 13px; }

/* ---- semantic model: try to make one up ---------------------------------------------------- */
.ask { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 22px; }
.ask label { font: 600 13px/1 var(--sans); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.ask .row { display: flex; gap: 10px; margin: 12px 0 14px; }
.ask input { flex: 1; min-width: 0; font: 500 17px/1.2 var(--mono); padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.ask input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ask .answer { min-height: 92px; border-radius: 12px; padding: 16px 18px; background: var(--bg); border: 1px dashed var(--line); font: 15px/1.5 var(--mono); color: var(--ink-2); }
.ask .answer .v { font: 400 40px/1.1 var(--serif); color: var(--ink); display: block; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.ask .answer.ok { border-style: solid; border-color: color-mix(in srgb, var(--good) 45%, var(--line)); }
.ask .answer.no { border-style: solid; border-color: color-mix(in srgb, var(--bad) 55%, var(--line)); background: color-mix(in srgb, var(--bad) 6%, var(--bg)); }
.ask .answer.no b { color: var(--bad); }
.ask .sugg { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 14px; }
.ask .sugg button { font: 500 12.5px/1 var(--mono); padding: 7px 10px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.ask .sugg button:hover { border-color: var(--accent); color: var(--accent); }
.ask .sugg button.bad { border-style: dashed; color: var(--bad); }
.tmdl { margin-top: 20px; border-radius: var(--radius); background: #0b1222; color: #d6deef; padding: 18px 20px; font: 13.5px/1.7 var(--mono); overflow-x: auto; white-space: pre; border: 1px solid #1d2740; }
.tmdl .k { color: #c792ea; } .tmdl .s { color: #ffcb6b; } .tmdl .c { color: #7a8bb0; font-style: italic; } .tmdl .f { color: #82aaff; } .tmdl .p { color: #89ddff; }
.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: 14px; color: var(--ink-2); }
.pill svg { width: 16px; height: 16px; color: var(--accent); }

/* ---- versions: the timeline ---------------------------------------------------------------- */
.timeline { list-style: none; margin: 30px 0 0; padding: 0 0 0 26px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; margin: 0 0 18px; padding: 12px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  opacity: .35; transform: translateX(8px); transition: opacity .5s, transform .5s, border-color .5s; }
.timeline li.on { opacity: 1; transform: none; }
.timeline li::before { content: ""; position: absolute; left: -25px; top: 17px; width: 14px; height: 14px; border-radius: 50%; background: var(--card); border: 3px solid var(--accent); }
.timeline li.bad::before { border-color: var(--bad); }
.timeline li.good::before { border-color: var(--good); background: var(--good); }
.timeline .id { font: 600 12.5px/1 var(--mono); color: var(--accent); }
.timeline li.bad .id { color: var(--bad); }
.timeline li.good .id { color: var(--good); }
.timeline .m { font-weight: 600; margin-top: 6px; color: var(--ink); }
.timeline .d { font: 13px/1.5 var(--mono); color: var(--muted); margin-top: 4px; }

/* ---- trust: the agent in sunglasses --------------------------------------------------------- */
.spy { width: min(360px, 90%); margin: 0 auto 10px; }
.spy .lens { animation: glint 5s ease-in-out infinite; }
@keyframes glint { 0%, 70%, 100% { opacity: 0; } 80% { opacity: .9; } }
.spy .head { transform-origin: 50% 80%; animation: nod 6s ease-in-out infinite; }
@keyframes nod { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-2.5deg); } }
.trust-card { position: relative; }
.trust-card .badge-out { position: absolute; right: -10px; top: -14px; background: var(--good); color: #fff; font: 700 12px/1 var(--sans); padding: 8px 11px; border-radius: 999px; box-shadow: var(--shadow); }

/* ---- gallery ------------------------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0 26px; }
.filters button { font: 550 14px/1 var(--sans); padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.filters button:hover { border-color: var(--accent); color: var(--accent); }
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters button span { opacity: .55; margin-left: 4px; font-variant-numeric: tabular-nums; }
.masonry { columns: 3 340px; column-gap: 18px; }
.tile { break-inside: avoid; margin: 0 0 18px; border-radius: var(--radius); overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); cursor: zoom-in;
  transition: transform .25s, box-shadow .25s; display: block; width: 100%; padding: 0; text-align: left; color: inherit; font: inherit; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile img { width: 100%; height: auto; background: var(--bg-2); }
.tile .cap { padding: 10px 14px 12px; display: flex; gap: 10px; align-items: baseline; border-top: 1px solid var(--line); }
.tile .cap b { font-weight: 600; font-size: 14px; color: var(--ink); flex: 1; min-width: 0; }
.tile .cap small { font: 500 11.5px/1 var(--mono); color: var(--muted); white-space: nowrap; }
.tile.hide { display: none; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4,7,14,.88); backdrop-filter: blur(8px); display: none; place-items: center; padding: 60px 70px; }
.lightbox.open { display: grid; }
.lightbox figure { margin: 0; max-width: min(1500px, 100%); max-height: 100%; display: grid; gap: 12px; }
.lightbox img { max-height: calc(100svh - 170px); width: auto; margin: 0 auto; border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.6); }
.lightbox figcaption { color: #dfe5f2; text-align: center; font-size: 15px; }
.lightbox figcaption small { display: block; color: #9aa3b8; margin-top: 4px; }
.lightbox .lb-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lightbox .lb-prev { left: 14px; } .lightbox .lb-next { right: 14px; }
.lightbox .lb-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; font-size: 22px; }
@media (max-width: 640px) { .lightbox { padding: 60px 12px; } .lightbox .lb-btn { top: auto; bottom: 14px; transform: none; } }

/* ---- themes -------------------------------------------------------------------------------- */
.themes { display: grid; grid-template-columns: 320px 1fr; gap: 34px; margin-top: 40px; align-items: start; }
@media (max-width: 920px) { .themes { grid-template-columns: 1fr; } }
.theme-list { display: grid; gap: 8px; }
.theme-list button { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; transition: all .2s; font: inherit; }
.theme-list button b { display: block; font: 650 15.5px/1.3 var(--sans); }
.theme-list button span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; margin-top: 3px; }
.theme-list button[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, var(--shadow); }
.theme-stage { position: relative; }
.theme-stage .frame img { transition: opacity .35s; }
.owl { margin-top: 18px; display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.owl svg { width: 54px; height: 54px; flex: none; }
.owl p { margin: 0; }
.switch { margin-left: auto; position: relative; width: 58px; height: 32px; border-radius: 999px; border: 0; background: #cfd4de; cursor: pointer; flex: none; transition: background .3s; }
.switch::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.3); transition: transform .3s; }
.switch[aria-checked="true"] { background: #2f6fde; }
.switch[aria-checked="true"]::after { transform: translateX(26px); }

/* ---- finance ------------------------------------------------------------------------------- */
.lens-wrap { position: relative; cursor: crosshair; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); background: #fff; }
.lens-wrap img { width: 100%; height: auto; }
.lens { position: absolute; width: 220px; height: 220px; border-radius: 50%; pointer-events: none; border: 3px solid #fff; box-shadow: 0 10px 40px rgba(0,0,0,.35), 0 0 0 1px rgba(0,0,0,.15);
  background-repeat: no-repeat; opacity: 0; transition: opacity .2s; }
.lens-wrap:hover .lens, .lens-wrap.touch .lens { opacity: 1; }
.lens-hint { position: absolute; right: 12px; top: 12px; font: 600 12px/1 var(--sans); background: rgba(20,22,27,.75); color: #fff; padding: 7px 10px; border-radius: 8px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.feature svg { width: 26px; height: 26px; color: var(--accent); margin-bottom: 12px; }
.feature p { font-size: 15px; margin: 0; }

/* ---- math ---------------------------------------------------------------------------------- */
.mathplay { display: grid; grid-template-columns: 1fr 1fr; gap: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; margin-top: 34px; }
@media (max-width: 860px) { .mathplay { grid-template-columns: 1fr; } }
.mathplay .src { padding: 18px; border-right: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.mathplay textarea { width: 100%; min-height: 150px; resize: vertical; font: 14.5px/1.6 var(--mono); padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); }
.mathplay .presets { display: flex; flex-wrap: wrap; gap: 7px; }
.mathplay .presets button { font: 550 13px/1 var(--sans); padding: 8px 11px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.mathplay .presets button:hover { border-color: var(--accent); color: var(--accent); }
.mathplay .out { padding: 26px; display: grid; place-items: center; min-height: 240px; font-size: 24px; overflow-x: auto; color: var(--ink); background: radial-gradient(600px 300px at 50% 40%, color-mix(in srgb, var(--accent) 6%, transparent), transparent); }
.mathplay .out .err { font: 14px/1.5 var(--mono); color: var(--bad); }
.mathplay .out math { font-size: 1.15em; }
.math-shot { margin-top: 26px; }

/* ---- one tool ------------------------------------------------------------------------------ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 40px; }
.bento > * { grid-column: span 2; }
.bento .wide { grid-column: span 4; }
.bento .full { grid-column: 1 / -1; }
@media (max-width: 980px) { .bento { grid-template-columns: 1fr 1fr; } .bento > *, .bento .wide { grid-column: span 2; } }
.bcard { background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.bcard img { width: 100%; height: 230px; object-fit: cover; object-position: 30% 22%; border-bottom: 1px solid rgba(255,255,255,.07); }
.bcard .in { padding: 16px 18px 18px; }
.bcard h3 { color: #fff; font-size: 17px; }
.bcard p { font-size: 14.5px; margin: 0; }
.bcard .lib { font: 600 11.5px/1 var(--mono); color: var(--aurora-1); letter-spacing: .04em; display: block; margin-bottom: 8px; }
.engine-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.engine-row span { font: 600 13px/1 var(--mono); padding: 10px 13px; border-radius: 10px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); color: #dfe6f5; }
.engine-row span b { color: var(--aurora-1); font-weight: 600; }

/* ---- security ------------------------------------------------------------------------------ */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 920px) { .sec-grid { grid-template-columns: 1fr; } }
.sec { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; }
.sec .num { font: 400 46px/1 var(--serif); color: var(--ink); letter-spacing: -.02em; }
.sec .num small { font: 600 14px/1 var(--sans); color: var(--good); margin-left: 6px; letter-spacing: 0; }
.sec p { font-size: 15px; margin: 8px 0 0; }
.sec svg.ic { width: 26px; height: 26px; color: var(--accent); margin-bottom: 10px; }

/* ---- excel --------------------------------------------------------------------------------- */
.xl { background: #fff; color: #1f2328; border-radius: 10px; overflow: hidden; border: 1px solid #c8ccd2; box-shadow: var(--shadow-lg); font: 13px/1 "Segoe UI", Calibri, Arial, sans-serif; }
.xl .ribbon { background: #1f6e43; color: #fff; padding: 9px 12px; font-weight: 600; display: flex; align-items: center; gap: 10px; }
.xl .ribbon span { opacity: .8; font-weight: 500; }
.xl .fx { display: flex; align-items: center; border-bottom: 1px solid #d5d8dd; }
.xl .fx .ref { width: 64px; padding: 8px; border-right: 1px solid #d5d8dd; color: #555; text-align: center; }
.xl .fx .f { padding: 8px 10px; font-family: Consolas, var(--mono); font-size: 12.5px; color: #1f2328; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.xl .fx .f i { color: #2d7d46; font-style: normal; }
.xl table { border-collapse: collapse; width: 100%; table-layout: fixed; }
.xl th { background: #f3f4f6; color: #5f6670; font-weight: 500; border: 1px solid #e1e4e8; padding: 6px; font-size: 12px; }
.xl th:first-child { width: 38px; }
.xl td { border: 1px solid #e6e8eb; padding: 8px 9px; height: 34px; color: #1f2328; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xl td.n { text-align: right; font-variant-numeric: tabular-nums; }
.xl td.h { font-weight: 700; background: #f8faf9; }
.xl td.sel { outline: 2px solid #1f6e43; outline-offset: -2px; background: #eef7f1; }
.xl tr td:first-child { background: #f3f4f6; color: #5f6670; text-align: center; font-size: 12px; }
:root[data-theme="dark"] .xl { box-shadow: 0 24px 60px rgba(0,0,0,.5); }

/* ---- power bi: row! ------------------------------------------------------------------------ */
.row-box { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: linear-gradient(180deg, #0b1630 0%, #13284e 55%, #1b3b6b 100%); aspect-ratio: 16 / 8.2; border: 1px solid rgba(255,255,255,.08); }
.row-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.row-box .ro { position: absolute; left: 22px; top: 18px; font: 400 italic clamp(40px, 6vw, 76px)/1 var(--serif); color: #fff; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.row-box .ro small { display: block; font: 500 13px/1.3 var(--sans); font-style: normal; color: #a9b8d8; margin-top: 8px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.steps li::before { content: counter(s); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 700 15px/1 var(--sans); color: #fff; background: var(--accent); box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.steps b { display: block; color: var(--ink); }
.steps span { color: var(--muted); font-size: 15px; }

/* ---- download ------------------------------------------------------------------------------ */
.download { text-align: center; background: radial-gradient(900px 420px at 50% 0%, #15306b 0%, transparent 70%), var(--night); color: var(--night-ink); overflow: hidden; position: relative; }
.download h2 { color: #fff; }
.download p { color: #b9c1d4; margin-left: auto; margin-right: auto; }
.download .meta { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 30px; font-size: 14px; color: var(--night-muted); }
.download .meta span { display: inline-flex; gap: 7px; align-items: center; }
.download .meta svg { width: 16px; height: 16px; color: var(--aurora-1); }
.download .silent { margin: 26px auto 0; max-width: 640px; text-align: left; }
.download .silent code { display: block; padding: 14px 16px; border-radius: 12px; background: #0a1020; border: 1px solid rgba(255,255,255,.08); color: #c9d4ee; overflow-x: auto; white-space: pre; font-size: 13px; }
footer { background: var(--night); color: var(--night-muted); padding: 40px 0 50px; border-top: 1px solid rgba(255,255,255,.06); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 30px; align-items: center; }
footer a { color: #c9d4ee; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .brand { color: #fff; }
footer .fine { width: 100%; font-size: 12.5px; line-height: 1.6; color: #7d879d; }

/* ---- the voice tour: lyrics that follow the voice ---------------------------------------- */
.tour { position: fixed; left: 50%; bottom: 18px; transform: translate(-50%, 160%); z-index: 60; width: min(800px, calc(100% - 24px)); background: rgba(8,12,24,.94); color: #e9ecf3;
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px; padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 12px; backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); box-shadow: 0 24px 70px rgba(0,0,0,.5), 0 0 0 1px rgba(127,245,196,.06) inset; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.tour.on { transform: translate(-50%, 0); }
.tour .meter { width: 46px; height: 32px; flex: none; }
.tour p.lyric { margin: 0; flex: 1; min-width: 0; font: 600 17px/1.45 var(--sans); letter-spacing: -.005em; height: calc(1.45em * 3); overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 68%, rgba(0,0,0,.3)); mask-image: linear-gradient(#000 68%, rgba(0,0,0,.3)); color: #e9ecf3; }
.lyric-in { display: block; transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.lyric .w { color: rgba(233,236,243,.34); transition: color .16s, text-shadow .2s; }
.lyric .w.said { color: #eef1f8; }
.lyric .w.now { color: #7ff5c4; text-shadow: 0 0 16px rgba(127,245,196,.55); }
.tour button { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #fff; cursor: pointer;
  display: grid; place-items: center; font: 15px/1 var(--sans); padding: 0; transition: background .2s, opacity .2s; }
.tour button:hover { background: rgba(255,255,255,.14); }
.tour #tourMusic[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
@media (max-width: 640px) {
  .tour { left: 10px; right: 10px; width: auto; bottom: 10px; transform: translateY(170%); flex-wrap: wrap; gap: 8px 10px; padding: 14px 14px 10px; }
  .tour.on { transform: none; }
  .tour p.lyric { flex: 1 0 100%; order: -1; font-size: 18px; }
  .tour .meter { margin-right: auto; }
  .tour button { width: 36px; height: 36px; }
}

/* print: the copy, not the night */
@media print { .nav, .tour, canvas, video { display: none !important; } section.night, .hero, .download, footer { background: #fff !important; color: #000 !important; } }

@media (max-width: 900px) { .hero .caption { display: none; } }

/* grid items: as narrow as their column, so long code scrolls inside its box rather than widening the page */
.split > *, .goose > *, .themes > *, .bento > *, .mathplay > *, .sec-grid > *, .feature-grid > *, .explains > * { min-width: 0; }
.mathplay .out math { max-width: 100%; overflow-x: auto; }
@media (max-width: 600px) {
  .mathplay .out { font-size: 17px; padding: 18px 12px; }
  .term { height: 560px; }
  .hero h1 { font-size: 44px; }
  .ask .row { flex-wrap: wrap; } .ask .row .btn { width: 100%; justify-content: center; }
  .row-box { aspect-ratio: 4 / 3; }
}

/* ---- notebooks -------------------------------------------------------------------------------- */
.nb { margin-top: 36px; }
.nb-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.nb-tabs [role=tab] { font: 600 15px/1 var(--sans); padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.nb-tabs [role=tab]:hover { border-color: var(--accent); color: var(--accent); }
.nb-tabs [role=tab][aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.nb-pair { display: block; }
.nb-pair > * { min-width: 0; }
@media (max-width: 900px) { .nb-pair { grid-template-columns: 1fr; } }
.nb-says { margin: 18px 0 0; font-size: 17px; color: var(--ink-2); }
.nb-says b { color: var(--ink); margin-right: 4px; }
.nb-says .lib { font: 600 12px/1 var(--mono); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 999px; padding: 5px 9px; margin-right: 10px; vertical-align: 2px; }
.nb-promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; }
.nb-promises > * { min-width: 0; }
.nb-promises .num { font: 400 46px/1 var(--serif); color: var(--accent); letter-spacing: -.02em; margin-bottom: 4px; }
@media (max-width: 860px) { .nb-promises { grid-template-columns: 1fr; } }
.nb-switch { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); margin-bottom: 12px; }
.nb-switch button { font: 600 13.5px/1 var(--sans); padding: 9px 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); cursor: pointer; }
.nb-switch button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.nb-view { display: none; }
.nb-view.on { display: block; animation: msgin .35s ease both; }

/* ---- alpha ------------------------------------------------------------------------------------ */
.brand .alpha { font: 750 10px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; padding: 4px 7px; border-radius: 999px;
  background: linear-gradient(100deg, #7ff5c4, #67e3f6); color: #04121a; margin-left: 2px; }

/* ---- the Enterprise Partner -------------------------------------------------------------------- */
.partner-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 6vw, 80px); align-items: center; }
.partner-grid > * { min-width: 0; }
@media (max-width: 860px) { .partner-grid { grid-template-columns: 1fr; } }
.partner-card { display: grid; gap: 20px; justify-items: center; padding: clamp(30px, 4vw, 52px) clamp(20px, 4vw, 44px); background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); text-decoration: none; transition: transform .25s, box-shadow .25s; }
.partner-card:hover { transform: translateY(-3px); }
.partner-card img { width: min(360px, 100%); height: auto; }
.partner-card span { font: 650 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
#partner .btn svg { width: 16px; height: 16px; }

/* ---- the waitlist ------------------------------------------------------------------------------ */
.download { color-scheme: dark; }
.wl { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(22px, 4vw, 44px); text-align: left; margin: 38px auto 6px; max-width: 1020px; align-items: start; }
.wl > * { min-width: 0; }
@media (max-width: 860px) { .wl { grid-template-columns: 1fr; } }
.wl-alpha { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 18px; }
.wl-alpha li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: #c3cadb; font-size: 15.5px; line-height: 1.5; }
.wl-alpha svg { width: 22px; height: 22px; color: var(--aurora-1); margin-top: 2px; }
.wl-alpha b { color: #fff; }
.wl-card { position: relative; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius-lg);
  padding: clamp(18px, 3vw, 28px); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.wl-form { display: grid; gap: 14px; }
.wl-form[hidden], .wl-done[hidden] { display: none; }
.wl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wl-two > * { min-width: 0; }
@media (max-width: 520px) { .wl-two { grid-template-columns: 1fr; } }
.wl-field { display: grid; gap: 6px; font: 600 13px/1.2 var(--sans); color: #c9d1e3; }
.wl-field .opt { font-weight: 500; color: var(--night-muted); margin-left: 4px; }
.wl-field input, .wl-field select, .wl-field textarea { font: 400 16px/1.4 var(--sans); color: #fff; background: rgba(6,10,20,.6);
  border: 1px solid rgba(255,255,255,.16); border-radius: 12px; padding: 12px 14px; width: 100%; min-width: 0; }
.wl-field textarea { resize: vertical; min-height: 84px; }
.wl-field input::placeholder, .wl-field textarea::placeholder { color: #6f7a92; }
.wl-field input:focus, .wl-field select:focus, .wl-field textarea:focus { outline: 2px solid var(--aurora-1); outline-offset: 1px; border-color: transparent; }
.wl-field select option { background: #0b1222; color: #fff; }
.wl-honey { position: absolute; left: -10000px; top: 0; width: 1px; height: 1px; overflow: hidden; }
.wl-consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: #b9c1d4; line-height: 1.45; cursor: pointer; }
.wl-consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #7ff5c4; }
.wl-go { justify-content: center; font-size: 16px; padding: 14px 20px; }
.wl-go:disabled { opacity: .6; cursor: progress; }
.download .wl-status { margin: 0; min-height: 1.4em; font-size: 14px; color: #b9c1d4; }
.download .wl-status.err { color: #ff9a8b; }
.download .wl-privacy { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--night-muted); }
.wl-done { text-align: center; padding: 26px 6px 8px; }
.download .wl-done .wl-big { font: 400 italic clamp(34px, 4vw, 46px)/1.1 var(--serif); color: #fff; margin: 0 0 10px; }
.wl-done b { color: #7ff5c4; font-weight: 600; }
.wl-done a { color: #7ff5c4; }
.wl-done .btn { margin-top: 8px; }
.wl-consent .opt { color: var(--night-muted); }
/* the human check: a checkbox that turns into a spinner while the browser solves the puzzle, then a tick */
.wl-human { display: grid; gap: 6px; padding: 14px 16px; border-radius: 12px; background: rgba(6,10,20,.6); border: 1px solid rgba(255,255,255,.16);
  transition: border-color .25s; }
.wl-human label { display: flex; align-items: center; gap: 12px; font: 600 15.5px/1.3 var(--sans); color: #fff; cursor: pointer; }
.wl-human-box { position: relative; width: 24px; height: 24px; display: grid; place-items: center; flex: none; }
.wl-human-box input { width: 20px; height: 20px; margin: 0; accent-color: #7ff5c4; cursor: pointer; }
.wl-spin { position: absolute; inset: 1px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.18); border-top-color: #7ff5c4;
  animation: wl-spin .8s linear infinite; display: none; }
@keyframes wl-spin { to { transform: rotate(360deg); } }
.wl-human.busy .wl-spin { display: block; }
.wl-human.busy input { opacity: 0; }
.wl-human.busy label, .wl-human.ok label { cursor: default; }
.wl-human.ok { border-color: color-mix(in srgb, #7ff5c4 50%, transparent); }
.wl-human.ok input { opacity: 0; }
.wl-human.ok .wl-human-box::after { content: ""; position: absolute; inset: 1px; border-radius: 50%; background: #7ff5c4
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='%2306101e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round' d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat; }
.wl-human.ok label { color: #7ff5c4; }
.wl-human.err label { color: #ff9a8b; }
.wl-human small { font-size: 12.5px; line-height: 1.45; color: var(--night-muted); padding-left: 36px; }
@media (prefers-reduced-motion: reduce) { .wl-spin { animation-duration: 2.4s; } }
