/* Forma — formashell.com
   Direction: ink and iridescence. Near-black ink from the app icon's tile, the F's lavender→peach sheen as the
   only colour, an editorial serif for the voice, Geist for interface text, Geist Mono for anything typed.
   Layout: a cinematic hero holding a working replica of the app; numbers measured by the test suite; chapters
   that pair a claim with the part of the app that proves it; a quiet download close. */

@font-face { font-family: "Geist"; src: url(fonts/geist.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url(fonts/geist-mono.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url(fonts/instrument-serif-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #07060b;
  --ink-2: #0d0b14;
  --glass: rgba(24, 21, 34, 0.72);
  --glass-strong: rgba(30, 27, 42, 0.92);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f1eff8;
  --muted: #a29eb6;
  --faint: #6f6a86;
  --lav: #a9b2ff;
  --lilac: #c9a7ff;
  --peach: #ffbe98;
  --ok: #57d68d;
  --bad: #ff6f6f;
  --warn: #ffc65c;
  --sheen: linear-gradient(115deg, #a9b2ff 0%, #c9a7ff 45%, #ffbe98 100%);
  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 18px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font: 400 17px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
::selection { background: rgba(169, 178, 255, 0.35); }
a { color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 2px solid var(--lav); outline-offset: 3px; border-radius: 8px; }

/* Grain over everything, very light. */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left)); padding-right: max(24px, env(safe-area-inset-right)); }
.sheen { background: var(--sheen); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Header ---------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; padding-top: env(safe-area-inset-top); transition: background 0.3s, border-color 0.3s; border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(7, 6, 11, 0.72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 14px; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

.btn { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; padding: 12px 22px; font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; border: 0; white-space: nowrap; transition: transform 0.2s, box-shadow 0.3s, background 0.2s; }
.btn-light { background: var(--text); color: #0b0a10; box-shadow: 0 0 0 1px rgba(255,255,255,0.2), 0 10px 40px -10px rgba(201, 167, 255, 0.55); }
.btn-light:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255,255,255,0.3), 0 16px 50px -12px rgba(255, 190, 152, 0.65); }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: calc(120px + env(safe-area-inset-top)); padding-bottom: 40px; isolation: isolate; }
.hero::before { /* the icon's glow, behind everything */
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40px; width: min(1400px, 140vw); height: 900px; transform: translateX(-50%);
  background:
    radial-gradient(40% 35% at 30% 40%, rgba(169, 178, 255, 0.22), transparent 70%),
    radial-gradient(35% 30% at 72% 35%, rgba(255, 190, 152, 0.16), transparent 70%),
    radial-gradient(30% 30% at 50% 70%, rgba(201, 167, 255, 0.14), transparent 70%);
  filter: blur(20px);
}
.hero-copy { text-align: center; max-width: 980px; margin: 0 auto; }
.hero h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(54px, 9vw, 128px); line-height: 0.92; letter-spacing: -0.02em; margin: 18px 0 26px; text-wrap: balance; }
.hero h1 em { font-style: italic; }
.hero .lede { font-size: clamp(18px, 2vw, 21px); color: var(--muted); max-width: 640px; margin: 0 auto 34px; text-wrap: balance; }
.hero .cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; align-items: center; }
.hero .fine { margin-top: 18px; font-size: 13px; color: var(--faint); font-family: var(--mono); }

/* ---------- Demo stage ---------- */
.stage { margin-top: 64px; position: relative; }
.scenes { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.scene-btn { position: relative; overflow: hidden; border: 0; cursor: pointer; border-radius: 999px; padding: 10px 18px; font: 500 14px/1 var(--sans); color: var(--muted); background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line); transition: color 0.2s, background 0.2s; }
.scene-btn:hover { color: var(--text); }
.scene-btn[aria-pressed="true"] { color: var(--text); background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px var(--line-2); }
.scene-btn .prog { position: absolute; left: 0; bottom: 0; height: 2px; width: 0; background: var(--sheen); }
.frame { position: relative; width: 100%; }
.frame-inner { position: absolute; top: 0; left: 50%; transform-origin: top center; }
.demo-hint { text-align: center; margin-top: 18px; color: var(--faint); font-size: 13px; font-family: var(--mono); }

/* The window: a faithful replica of Forma's main window at 1180 × 720, scaled to fit. */
.win { width: 1180px; height: 720px; border-radius: 16px; overflow: hidden; position: relative; background: #121019; color: #ece9f6;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 50px 120px -30px rgba(0,0,0,0.8), 0 30px 80px -40px rgba(169,178,255,0.35);
  font: 13px/1.45 var(--sans); display: grid; grid-template-rows: 52px 1fr; }
.win .titlebar { display: flex; align-items: center; gap: 14px; padding: 0 16px; border-bottom: 1px solid var(--line); background: rgba(22,20,31,0.9); }
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; display: block; }
.lights i:nth-child(1) { background: #ff5f57; } .lights i:nth-child(2) { background: #febc2e; } .lights i:nth-child(3) { background: #28c840; }
.win .t-title { font-weight: 600; font-size: 13px; }
.win .t-sub { color: var(--faint); font-size: 11.5px; font-family: var(--mono); }
.win .t-tools { margin-left: auto; display: flex; gap: 18px; color: var(--faint); }
.win .t-tools svg { width: 16px; height: 16px; }
.win .body { display: grid; grid-template-columns: 210px 1fr 300px; min-height: 0; }
.side { border-right: 1px solid var(--line); padding: 14px 10px; background: rgba(18,16,26,0.6); overflow: hidden; }
.side h6 { margin: 6px 10px 6px; font: 600 10.5px/1 var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.side .item { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 7px; color: #cfcbe0; font-size: 12.5px; transition: background 0.25s, color 0.25s; }
.side .item svg { width: 14px; height: 14px; opacity: 0.75; flex: none; }
.side .item .badge { margin-left: auto; font-size: 10.5px; color: var(--muted); }
.side .item.on { background: rgba(169,178,255,0.16); color: #fff; }
.side .item.on svg { opacity: 1; color: var(--lav); }
.side .session { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; font-size: 12.5px; }
.side .session .spin { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.side .session.live .spin { background: var(--ok); box-shadow: 0 0 0 3px rgba(87,214,141,0.18); }

.main { position: relative; display: grid; grid-template-rows: 1fr 168px; min-height: 0; }
.timeline { overflow: hidden; padding: 6px 0; position: relative; mask-image: linear-gradient(to bottom, transparent 0, #000 28px); }
.timeline-inner { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 0 8px; }
.blk { padding: 12px 18px; border-bottom: 1px solid var(--line); animation: blkIn 0.45s cubic-bezier(.2,.8,.2,1) both; }
.blk.sel { background: rgba(169,178,255,0.07); box-shadow: inset 3px 0 0 var(--lav); }
@keyframes blkIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.blk .hd { display: flex; align-items: baseline; gap: 10px; }
.blk .hd .chev { color: var(--faint); font-size: 10px; width: 10px; }
.glyph { width: 14px; height: 14px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; transform: translateY(2px); font-size: 9px; font-weight: 700; color: #0b0a10; }
.glyph.ok { background: var(--ok); } .glyph.bad { background: var(--bad); } .glyph.run { background: transparent; box-shadow: inset 0 0 0 1.6px var(--muted); border-top-color: transparent; }
.glyph.run { animation: spin 0.9s linear infinite; border: 1.6px solid var(--muted); border-top-color: transparent; box-shadow: none; }
@keyframes spin { to { transform: translateY(2px) rotate(360deg); } }
.blk .cmd { font: 500 13px/1.4 var(--mono); }
.blk .cwd { font: 11px/1.4 var(--mono); color: var(--faint); margin: 2px 0 0 34px; }
.blk .meta { margin-left: auto; font: 11px/1 var(--mono); color: var(--faint); white-space: nowrap; display: flex; gap: 10px; }
.blk .meta .exit { color: var(--bad); }
.blk .out { margin: 8px 0 0 34px; font: 12px/1.55 var(--mono); color: #d8d4e8; white-space: pre-wrap; }
.card { margin: 10px 0 0 34px; border: 1px solid var(--line-2); border-radius: 10px; background: rgba(255,255,255,0.025); overflow: hidden; }
.card .ch { display: flex; align-items: center; gap: 10px; padding: 9px 12px; font-weight: 600; font-size: 12.5px; border-bottom: 1px solid var(--line); }
.card .ch .pill { font-weight: 500; }
.pill { font: 500 10.5px/1 var(--sans); padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,0.06); color: var(--muted); }
.pill.bad { background: rgba(255,111,111,0.14); color: #ffa0a0; } .pill.ok { background: rgba(87,214,141,0.14); color: #8ee6b2; } .pill.warn { background: rgba(255,198,92,0.14); color: #ffd98f; }
.card .row { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: center; padding: 7px 12px; font-size: 12px; border-bottom: 1px solid var(--line); }
.card .row:last-child { border-bottom: 0; }
.card .row .x { color: var(--bad); } .card .row .v { color: var(--ok); }
.card .row code { font: 11.5px var(--mono); color: var(--lav); }
.card .raw { padding: 6px 12px 9px; font-size: 11px; color: var(--lav); }

.surface { border-top: 1px solid var(--line); background: #0e0c14; padding: 12px 18px; font: 12.5px/1.6 var(--mono); color: #d8d4e8; position: relative; overflow: hidden; }
.surface .line { white-space: pre; }
.surface .ps1 { color: var(--lav); }
.surface .caret { display: inline-block; width: 7.5px; height: 15px; background: var(--peach); vertical-align: -3px; margin-left: 1px; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.insp { border-left: 1px solid var(--line); padding: 16px; overflow: hidden; background: rgba(18,16,26,0.6); }
.insp h5 { margin: 0 0 8px; font: 600 12px/1 var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.insp .grp { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 14px; background: rgba(255,255,255,0.02); animation: blkIn 0.45s both; }
.insp .kv { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 3px 0; }
.insp .kv span:first-child { color: var(--muted); }
.insp .fact { display: flex; gap: 8px; font-size: 12px; padding: 4px 0; }
.insp .fact .tag { font: 600 9.5px/1 var(--sans); letter-spacing: 0.04em; padding: 4px 6px; border-radius: 5px; flex: none; height: fit-content; margin-top: 2px; }
.tag.obs { background: rgba(87,214,141,0.14); color: #8ee6b2; } .tag.inf { background: rgba(201,167,255,0.16); color: #dcc6ff; }
.insp .code { font: 11px/1.6 var(--mono); background: #0b0a10; border-radius: 7px; padding: 8px; margin-top: 6px; color: #bdb8d0; }
.insp .code .hl { background: rgba(255,198,92,0.13); color: #ffe2a8; display: block; margin: 0 -8px; padding: 0 8px; }
.insp .next { display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 11.5px var(--mono); padding: 6px 8px; border-radius: 7px; background: rgba(169,178,255,0.08); margin-top: 6px; }
.insp .next b { font: 600 11px var(--sans); padding: 4px 9px; border-radius: 999px; background: rgba(255,255,255,0.1); }
.insp .empty { color: var(--faint); font-size: 12px; }

/* Overlays inside the window */
.sheet { position: absolute; left: 50%; top: 70px; width: 460px; transform: translateX(-50%); background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(0,0,0,0.6); padding: 18px; z-index: 5; animation: sheetIn 0.35s cubic-bezier(.2,.9,.25,1.1) both; }
@keyframes sheetIn { from { opacity: 0; transform: translateX(-50%) translateY(-14px) scale(0.98); } to { opacity: 1; transform: translateX(-50%); } }
.sheet h4 { margin: 0 0 4px; font-size: 15px; }
.sheet p { margin: 0 0 12px; color: var(--muted); font-size: 12.5px; }
.sheet .cmdline { font: 13px var(--mono); padding: 9px 11px; border-radius: 8px; background: #0b0a10; margin-bottom: 12px; }
.sheet ul { margin: 0 0 14px; padding-left: 18px; font-size: 12.5px; color: #d8d4e8; }
.sheet .acts { display: flex; justify-content: flex-end; gap: 8px; }
.sheet .acts span { font: 600 12.5px var(--sans); padding: 8px 14px; border-radius: 8px; background: rgba(255,255,255,0.08); }
.sheet .acts span.go { background: var(--text); color: #0b0a10; }
.sheet .acts span.press { animation: press 0.4s ease; }
@keyframes press { 50% { transform: scale(0.94); filter: brightness(1.3); } }

.palette { position: absolute; left: 50%; top: 64px; width: 560px; transform: translateX(-50%); background: var(--glass-strong); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border-radius: 14px; box-shadow: 0 0 0 1px var(--line-2), 0 30px 80px rgba(0,0,0,0.6); overflow: hidden; z-index: 6; animation: sheetIn 0.3s both; }
.palette .q { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.palette .q svg { width: 16px; height: 16px; color: var(--muted); }
.palette .grp-h { padding: 10px 16px 4px; font: 600 10.5px/1 var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; }
.palette .res { display: flex; align-items: center; gap: 10px; padding: 8px 16px; font-size: 13px; }
.palette .res.on { background: rgba(169,178,255,0.16); }
.palette .res .cmd { font-family: var(--mono); font-size: 12.5px; }
.palette .res .sub { color: var(--faint); font-size: 11px; margin-left: auto; font-family: var(--mono); }
.palette mark { background: rgba(255,190,152,0.25); color: #fff; border-radius: 3px; padding: 0 1px; }
.palette .foot { padding: 8px 16px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; display: flex; gap: 14px; }

.pane { position: absolute; inset: 0; background: #121019; z-index: 4; padding: 18px 22px; overflow: hidden; animation: fadeIn 0.35s both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.pane h3 { margin: 0 0 4px; font-size: 18px; }
.pane .sub { color: var(--muted); font-size: 12.5px; margin-bottom: 14px; }
.ptable { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.ptable th { text-align: left; color: var(--faint); font-weight: 500; padding: 7px 10px; border-bottom: 1px solid var(--line); font-size: 11.5px; }
.ptable td { padding: 9px 10px; border-bottom: 1px solid var(--line); }
.ptable td.m { font-family: var(--mono); font-size: 12px; }
.ptable tr.hl td { background: rgba(169,178,255,0.07); }
.banner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(87,214,141,0.1); color: #a8f0c6; font-size: 12.5px; margin-top: 14px; animation: blkIn 0.4s both; }
.agents { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.agent { border: 1px solid var(--line-2); border-radius: 12px; padding: 14px; background: rgba(255,255,255,0.02); }
.agent .ah { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 600; }
.agent .ah .wt { margin-left: auto; font: 11px var(--mono); color: var(--faint); font-weight: 400; }
.agent .log { font: 11.5px/1.7 var(--mono); color: #cfcbe0; min-height: 96px; }
.agent .ask { margin-top: 10px; border-radius: 10px; padding: 10px; background: rgba(255,198,92,0.08); box-shadow: inset 0 0 0 1px rgba(255,198,92,0.25); font-size: 12.5px; animation: blkIn 0.4s both; }
.agent .ask .acts { display: flex; gap: 8px; margin-top: 8px; }
.agent .ask .acts span { font: 600 12px var(--sans); padding: 6px 12px; border-radius: 7px; background: rgba(255,255,255,0.08); }
.agent .ask .acts span.go { background: var(--text); color: #0b0a10; }
.agent .verdict { margin-top: 10px; font-size: 12.5px; padding: 8px 10px; border-radius: 8px; animation: blkIn 0.35s both; }
.verdict.ok { background: rgba(87,214,141,0.1); color: #a8f0c6; } .verdict.no { background: rgba(255,111,111,0.1); color: #ffb3b3; }
.tt-list { display: grid; gap: 6px; }
.tt-item { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 12.5px; }
.tt-item.snap { border-color: rgba(255,190,152,0.35); background: rgba(255,190,152,0.06); }
.tt-item .when { margin-left: auto; color: var(--faint); font: 11px var(--mono); }
.tt-item .cmd { font-family: var(--mono); }
.files { display: grid; gap: 4px; margin-top: 12px; font: 12px var(--mono); }
.files div { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 7px; background: rgba(255,255,255,0.03); }
.files .st { margin-left: auto; font: 500 10.5px var(--sans); }

/* Cursor that moves inside the demo */
.pointer { position: absolute; z-index: 20; width: 18px; height: 18px; pointer-events: none; transition: transform 0.7s cubic-bezier(.3,.8,.2,1), opacity 0.3s; opacity: 0; }
.pointer svg { width: 18px; height: 18px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6)); }
.keycap { position: absolute; right: 16px; bottom: 16px; z-index: 21; font: 600 13px var(--sans); padding: 8px 12px; border-radius: 9px; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(10px); animation: sheetIn 0.25s both; }

/* ---------- Proof numbers ---------- */
.proof { padding: 96px 0 40px; }
.proof-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; flex-wrap: wrap; margin-bottom: 40px; }
.proof-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(38px, 5vw, 64px); line-height: 1; margin: 10px 0 0; letter-spacing: -0.01em; max-width: 12em; }
.proof-head p { max-width: 380px; color: var(--muted); margin: 0; font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat { padding: 30px 24px 30px 0; border-right: 1px solid var(--line); min-width: 0; }
.stat:last-child { border-right: 0; }
@media (max-width: 900px) { .stat:nth-child(2) { border-right: 0; } .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); } .stat { padding-left: 0; } .stat:nth-child(even) { padding-left: 24px; } }
.stat .n { font-family: var(--serif); font-size: clamp(48px, 6vw, 76px); line-height: 1; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat .n small { font-family: var(--sans); font-size: 0.32em; color: var(--muted); margin-left: 6px; letter-spacing: 0; }
.stat .l { margin-top: 12px; font-size: 14.5px; color: var(--text); }
.stat .s { margin-top: 4px; font-size: 12.5px; color: var(--faint); font-family: var(--mono); }

/* ---------- Chapters ---------- */
.chapter { padding: 110px 0; border-top: 1px solid var(--line); }
.ch-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 72px; align-items: center; }
.chapter.flip .ch-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
.chapter.flip .ch-copy { order: 2; }
@media (max-width: 960px) { .ch-grid, .chapter.flip .ch-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; } .chapter.flip .ch-copy { order: 0; } .chapter { padding: 80px 0; } }
.ch-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 68px); line-height: 0.98; letter-spacing: -0.015em; margin: 14px 0 22px; text-wrap: balance; }
.ch-copy h2 em { font-style: italic; }
.ch-copy p { color: var(--muted); margin: 0 0 18px; max-width: 30em; }
.ch-copy ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ch-copy li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 15px; }
.ch-copy li::before { content: ""; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--sheen); }
.vis { position: relative; border-radius: var(--radius); background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.015)); box-shadow: inset 0 0 0 1px var(--line); padding: 28px; overflow: hidden; min-width: 0; }
.vis::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 60%; height: 80%; background: radial-gradient(closest-side, rgba(169,178,255,0.18), transparent); pointer-events: none; }
.reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(.2,.8,.2,1), transform 0.9s cubic-bezier(.2,.8,.2,1); }
  .js .reveal.in { opacity: 1; transform: none; }
}

/* Chapter visuals (static recreations of the app) */
.mini { background: #121019; border-radius: 12px; box-shadow: 0 0 0 1px rgba(255,255,255,0.1), 0 30px 60px -20px rgba(0,0,0,0.7); overflow: hidden; font-size: 13px; position: relative; }
.mini .mbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mini .mbar .lights i { width: 10px; height: 10px; }
.mini .mbody { padding: 14px; }
.err { display: grid; gap: 10px; }
.err .msg { font-weight: 600; font-size: 14px; }
.err .loc { font: 12px var(--mono); color: var(--lav); }
.err .src { font: 12px/1.7 var(--mono); background: #0b0a10; border-radius: 8px; padding: 10px 12px; color: #bdb8d0; overflow-x: auto; }
.err .src .ln { color: var(--faint); display: inline-block; width: 22px; }
.err .src .hl { background: rgba(255,198,92,0.13); color: #ffe2a8; display: block; margin: 0 -12px; padding: 0 12px; }
.err .hist { display: flex; gap: 8px; flex-wrap: wrap; }
.slider { margin-top: 18px; }
.slider .track { position: relative; height: 54px; }
.slider .rail { position: absolute; left: 0; right: 0; top: 26px; height: 2px; background: rgba(255,255,255,0.1); }
.slider .tick { position: absolute; top: 18px; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%); background: #23202f; box-shadow: inset 0 0 0 2px rgba(255,255,255,0.18); }
.slider .tick.s { background: var(--peach); box-shadow: 0 0 0 4px rgba(255,190,152,0.18); }
.slider .lbl { position: absolute; top: 44px; transform: translateX(-50%); font: 10.5px var(--mono); color: var(--faint); white-space: nowrap; }
.slider input { width: 100%; margin-top: 8px; accent-color: #c9a7ff; }
.tree { font: 12.5px/1.9 var(--mono); }
.tree .gone { color: var(--bad); text-decoration: line-through; opacity: 0.7; }
.tree .back { color: var(--ok); }
.tree .same { color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip { font: 12px var(--mono); padding: 6px 11px; border-radius: 999px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); }
.proc { display: grid; gap: 8px; }
.proc .p { display: grid; grid-template-columns: 1fr 70px 70px 90px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); font-size: 12.5px; }
.proc .p .m { font-family: var(--mono); color: var(--muted); font-size: 12px; }
.proc .p .name { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.proc .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(87,214,141,0.5); }
@media (prefers-reduced-motion: no-preference) { .proc .live-dot { animation: pulse 2s infinite; } @keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(87,214,141,0); } 100% { box-shadow: 0 0 0 0 rgba(87,214,141,0); } } }
.quit { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; }
.toggle { position: relative; width: 46px; height: 28px; border-radius: 999px; background: rgba(255,255,255,0.12); border: 0; cursor: pointer; flex: none; transition: background 0.25s; }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform 0.25s cubic-bezier(.3,.8,.2,1); }
.toggle[aria-checked="true"] { background: #7a6cff; }
.toggle[aria-checked="true"]::after { transform: translateX(18px); }
.pal-demo .q { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; background: #0b0a10; box-shadow: inset 0 0 0 1px var(--line-2); }
.pal-demo input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); font: 15px var(--sans); outline: none; }
.pal-demo .r { display: flex; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 9px; font-size: 13px; }
.pal-demo .r:first-child { background: rgba(169,178,255,0.14); }
.pal-demo .r .c { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.pal-demo .r .k { margin-left: auto; font: 11px var(--mono); color: var(--faint); white-space: nowrap; }
.pal-demo .gh { font: 600 10.5px/1 var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: 0.08em; padding: 14px 12px 6px; }
.pal-demo .none { padding: 14px 12px; color: var(--faint); font-size: 13px; }
.kbd { font: 600 11px var(--sans); padding: 3px 7px; border-radius: 6px; background: rgba(255,255,255,0.08); box-shadow: inset 0 -1px 0 rgba(255,255,255,0.12); color: var(--muted); }
.priv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 600px) { .priv { grid-template-columns: minmax(0, 1fr); } }
.priv div { padding: 18px; border-radius: 14px; background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); }
.priv b { display: block; margin-bottom: 6px; font-size: 14.5px; }
.priv span { color: var(--muted); font-size: 13.5px; }

/* ---------- Everywhere ---------- */
.everywhere { padding: 110px 0; border-top: 1px solid var(--line); }
.ev-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.ev-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.2vw, 68px); line-height: 1; margin: 14px 0 18px; }
.ev-head p { color: var(--muted); margin: 0; }
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .ev-grid { grid-template-columns: minmax(0, 1fr); } }
.ev { border-radius: var(--radius); padding: 26px; background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.ev .ic { font: 13px var(--mono); color: var(--peach); margin-bottom: 16px; display: flex; gap: 6px; align-items: center; }
.ev h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.ev p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ---------- FAQ & close ---------- */
.faq { padding: 110px 0; border-top: 1px solid var(--line); }
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 60px; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; } }
.faq h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5vw, 64px); line-height: 1; margin: 14px 0 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; font-size: 17px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--muted); transition: transform 0.25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 40em; }

.close { padding: 140px 0 120px; border-top: 1px solid var(--line); text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.close::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 30%; width: 900px; height: 600px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(201,167,255,0.2), transparent); filter: blur(10px); }
.close img.icon { width: 112px; height: 112px; margin: 0 auto 30px; filter: drop-shadow(0 20px 50px rgba(169,178,255,0.35)); }
.close h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7vw, 96px); line-height: 0.95; margin: 0 0 24px; letter-spacing: -0.02em; }
.close p { color: var(--muted); margin: 0 auto 34px; max-width: 520px; }
.close .fine { margin-top: 20px; font: 12.5px var(--mono); color: var(--faint); }

footer { border-top: 1px solid var(--line); padding: 34px 0 calc(40px + env(safe-area-inset-bottom)); font-size: 13px; color: var(--faint); }
footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { text-decoration: none; color: var(--muted); }

/* ---------- Memory chart (one series: no legend; hover gives each sample) ---------- */
.mem { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
@media (max-width: 900px) { .mem { grid-template-columns: minmax(0, 1fr); gap: 24px; } }
.mem h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 42px); line-height: 1.05; margin: 0 0 14px; }
.mem p { color: var(--muted); margin: 0; font-size: 15.5px; }
.mem-chart { margin: 0; padding: 22px 22px 14px; border-radius: var(--radius); background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); min-width: 0; }
.mem-chart figcaption { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.mem-plot { position: relative; height: 200px; }
.mem-plot svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mem-plot .grid { stroke: rgba(255,255,255,0.07); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mem-plot .gl { font: 10.5px var(--mono); fill: var(--faint); }
.mem-plot .line { fill: none; stroke: url(#memGrad); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.mem-plot .area { fill: url(#memFill); }
.mem-plot .cross { stroke: rgba(255,255,255,0.35); stroke-width: 1; vector-effect: non-scaling-stroke; }
.mem-ylab { position: absolute; left: 0; font: 10.5px var(--mono); color: var(--faint); transform: translateY(-50%); pointer-events: none; }
.mem-dot { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #121019; transform: translate(-50%, -50%); pointer-events: none; }
.mem-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: 6px 9px; border-radius: 8px; background: var(--glass-strong); box-shadow: 0 0 0 1px var(--line-2); font: 12px var(--sans); white-space: nowrap; pointer-events: none; }
.mem-tip b { font-variant-numeric: tabular-nums; }
.mem-axis { display: flex; justify-content: space-between; margin-top: 8px; font: 10.5px var(--mono); color: var(--faint); }

/* ---------- Chapter visual extras ---------- */
.vis-cap { margin: 14px 4px 0; font-size: 12.5px; color: var(--faint); font-family: var(--mono); position: relative; }
.tt-head { margin: 18px 0 10px; font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tree div { display: flex; gap: 10px; align-items: center; transition: opacity .3s; }
.tree .st { margin-left: auto; font: 500 10.5px var(--sans); color: var(--faint); }
.audit { display: grid; gap: 6px; }
.a-row { display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,0.03); font-size: 12.5px; }
.a-row .pill { text-align: center; }
.a-row .mono { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a-row .who { color: var(--faint); font-size: 11.5px; }
.cmp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.cmp div { display: grid; gap: 6px; justify-items: start; padding: 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; }
.cmp span:not(.pill) { color: var(--muted); font-family: var(--mono); font-size: 12px; }
@media (max-width: 520px) { .a-row { grid-template-columns: 70px minmax(0, 1fr); } .a-row .who { display: none; } .vis { padding: 16px; } .proc .p { grid-template-columns: 1fr 60px 64px; } .proc .p > :nth-child(3) { display: none; } }

/* ---------- Narrow screens: the window drops its sidebar; the inspector slides over ---------- */
.win.compact { width: 680px; }
.win.compact .body { grid-template-columns: 1fr; position: relative; }
.win.compact .side { display: none; }
.win.compact .insp { position: absolute; right: 0; top: 0; bottom: 0; width: 320px; z-index: 3; background: #15131d; box-shadow: -20px 0 50px rgba(0,0,0,.5); transform: translateX(105%); transition: transform .45s cubic-bezier(.2,.8,.2,1); }
.win.compact .insp.show { transform: none; }
.win.compact .sheet { width: 420px; }
.win.compact .palette { width: 520px; }
.win.compact .agents { grid-template-columns: 1fr 1fr; gap: 10px; }
.win.compact .t-tools { display: none; }

/* ---------- Demo scene pieces ---------- */
.win .body { position: relative; }
.pane { inset: 0 0 0 210px; }
.win.compact .pane { left: 0; }
.press { animation: press 0.4s ease; }
.blk .snapnote { margin: 8px 0 0 34px; color: var(--peach); font-size: 12px; font-family: var(--sans); }
.acts-row { display: flex; justify-content: flex-end; gap: 8px; background: transparent !important; padding: 8px 0 0 !important; }
.btnx { font: 600 12px var(--sans); padding: 7px 13px; border-radius: 8px; background: rgba(255,255,255,0.08); }
.btnx.go { background: var(--text); color: #0b0a10; }
.agent .ask .acts span.no { background: rgba(255,111,111,0.18); color: #ffc0c0; }
.dimmer { position: absolute; inset: 0; z-index: 15; display: grid; place-items: center; text-align: center; background: rgba(7,6,11,0.94); backdrop-filter: blur(8px); animation: fadeIn 0.4s both; }
.dimmer .d-title { font-family: var(--serif); font-size: 44px; line-height: 1; margin-bottom: 12px; }
.dimmer .d-sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.dimmer .d-list { display: inline-grid; gap: 10px; text-align: left; font: 13px var(--mono); }
.dimmer .d-list div { display: flex; align-items: center; gap: 10px; }
.dimmer .live { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(87,214,141,0.18); }
.win.still *, .win.still *::before, .win.still *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) { .reveal, .js .reveal { opacity: 1 !important; transform: none !important; } .proc .live-dot, .surface .caret { animation: none; } }
.hostcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; animation: blkIn .4s both; }
.hostcards div { display: grid; gap: 4px; padding: 12px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 12.5px; }
.hostcards span { color: var(--muted); font-size: 11.5px; }
.win.compact .hostcards { grid-template-columns: 1fr 1fr; }
.grp-t { font: 600 11px/1 var(--sans); color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 4px 0 4px; }

/* ---------- Fixes from the visual pass ---------- */
.err .src { white-space: pre; }
mark { background: rgba(255,190,152,0.25); color: #fff; border-radius: 3px; padding: 0 1px; }
.ch-copy li { display: block; position: relative; padding-left: 30px; }
.ch-copy li::before { position: absolute; left: 6px; top: 0; }
.mem-plot { padding-left: 34px; }
.mem-area { position: relative; height: 100%; }
.mem-axis { padding-left: 34px; }
.slider { position: relative; }
.slider input { position: absolute; left: calc(9% - 9px); width: calc(82% + 18px); top: 12px; height: 30px; margin: 0; opacity: 0; cursor: pointer; }
.slider:has(input:focus-visible) .track { outline: 2px solid var(--lav); outline-offset: 4px; border-radius: 10px; }
.slider .tick.on { box-shadow: 0 0 0 3px #fff; }
.slider .fill { position: absolute; left: 9%; top: 26px; height: 2px; background: var(--sheen); transition: width .3s; }
.hero { overflow-x: clip; }
.win { contain: paint; }
.win.narrow { width: 540px; }
.win.narrow .sheet { width: 400px; }
.win.narrow .palette { width: 500px; }
.win.narrow .palette .res .sub { display: none; }
.win.narrow .pane { padding: 16px; }
.win.narrow .ptable th:nth-child(5), .win.narrow .ptable td:nth-child(5) { display: none; }
.win.narrow .agents { gap: 8px; }
.win.narrow .agent { padding: 10px; }
.win.narrow .agent .log { font-size: 10.5px; }
.win.narrow .insp { width: 300px; }
.win.narrow .a-row .who { display: none; }
.win.narrow .a-row { grid-template-columns: 70px minmax(0, 1fr); }

/* ==========================================================================
   Sales: pricing on the home page, document pages (thanks, renew, licence,
   terms, refunds, privacy, contact), their forms and status messages.
   ========================================================================== */
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.nav-links a.btn-light, .nav-links a.btn-light:hover { color: #0b0a10; } /* .nav-links a was greying the Download pill's label */
.btn-block { width: 100%; justify-content: center; }

/* ---------- Pricing ---------- */
.pricing { padding: 120px 0; border-top: 1px solid var(--line); position: relative; isolation: isolate; overflow: hidden; }
.pricing::before { content: ""; position: absolute; z-index: -1; right: -10%; top: 10%; width: 900px; height: 700px; max-width: 120vw;
  background: radial-gradient(closest-side, rgba(169,178,255,0.16), transparent), radial-gradient(40% 40% at 70% 70%, rgba(255,190,152,0.12), transparent 70%); filter: blur(20px); pointer-events: none; }
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 80px; align-items: center; }
@media (max-width: 960px) { .price-grid { grid-template-columns: minmax(0, 1fr); gap: 44px; } .pricing { padding: 90px 0; } }
.price-copy h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(42px, 5.6vw, 76px); line-height: 0.96; letter-spacing: -0.02em; margin: 14px 0 24px; text-wrap: balance; }
.price-copy h2 em { font-style: italic; }
.price-copy .say { font-size: clamp(18px, 1.9vw, 21px); color: var(--text); margin: 0 0 18px; max-width: 30em; text-wrap: pretty; }
.price-copy .say + p { color: var(--muted); margin: 0; max-width: 32em; font-size: 15.5px; }
.price-card { position: relative; border-radius: 26px; padding: 38px 36px 30px; min-width: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.065), rgba(255,255,255,0.018)), rgba(13,11,20,0.6);
  box-shadow: 0 50px 110px -40px rgba(169,178,255,0.4), 0 30px 60px -30px rgba(0,0,0,0.7);
  backdrop-filter: blur(20px) saturate(140%); -webkit-backdrop-filter: blur(20px) saturate(140%); }
.price-card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(155deg, rgba(169,178,255,0.7), rgba(201,167,255,0.12) 38%, rgba(255,255,255,0.06) 60%, rgba(255,190,152,0.55));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@media (max-width: 520px) { .price-card { padding: 30px 22px 24px; border-radius: 22px; } }
.price-card .eyebrow { margin: 0 0 18px; }
.price { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.price .amt { font-family: var(--serif); font-size: clamp(96px, 12vw, 136px); line-height: 0.82; letter-spacing: -0.04em; padding-right: 0.04em; }
.price .per { display: grid; gap: 4px; padding-bottom: 8px; font: 12.5px/1.3 var(--mono); color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }
.price .per span:last-child { color: var(--faint); text-transform: none; letter-spacing: 0; }
.price-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; border-top: 1px solid var(--line); padding-top: 24px; }
.price-list li { position: relative; padding-left: 28px; font-size: 15px; }
.price-list li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--sheen); }
.price-list li span { color: var(--muted); }
.price-actions { display: grid; gap: 10px; margin-top: 28px; }
.price-actions .btn { padding: 15px 22px; font-size: 15.5px; }
.price-links { display: flex; justify-content: space-between; gap: 10px 18px; flex-wrap: wrap; margin-top: 20px; font: 12.5px var(--mono); color: var(--faint); }
.price-links a { color: var(--muted); text-decoration: none; }
.price-links a:hover { color: var(--text); }

/* ---------- Status messages (buy button, forms, thanks) ---------- */
.note { margin: 16px 0 0; padding: 12px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.5; color: var(--text);
  background: rgba(169,178,255,0.08); box-shadow: inset 0 0 0 1px rgba(169,178,255,0.22); overflow-wrap: anywhere; }
.note[hidden] { display: none; }
.note[data-kind="warn"] { background: rgba(255,198,92,0.08); box-shadow: inset 0 0 0 1px rgba(255,198,92,0.24); color: #ffe2a8; }
.note[data-kind="ok"] { background: rgba(87,214,141,0.08); box-shadow: inset 0 0 0 1px rgba(87,214,141,0.24); color: #b9f2d0; }

/* ---------- Footer links ---------- */
.foot-links { display: flex; flex-wrap: wrap; gap: 4px 0; }
.foot-links a { white-space: nowrap; }
.foot-links a + a::before { content: "·"; display: inline-block; color: var(--faint); margin: 0 9px; }
.foot-links a:hover { color: var(--text); }

/* ---------- Document pages ---------- */
.doc { position: relative; isolation: isolate; padding: calc(132px + env(safe-area-inset-top)) 0 110px; min-height: calc(100vh - 96px); overflow-x: clip; }
.doc::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: min(1100px, 140vw); height: 560px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(40% 45% at 35% 30%, rgba(169,178,255,0.14), transparent 70%), radial-gradient(35% 40% at 70% 25%, rgba(255,190,152,0.09), transparent 70%); filter: blur(20px); }
.doc .wrap { max-width: 808px; }
.doc h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(48px, 7.4vw, 84px); line-height: 0.95; letter-spacing: -0.02em; margin: 14px 0 22px; text-wrap: balance; }
.doc h1 em { font-style: italic; }
.doc .lede { font-size: clamp(18px, 2vw, 20px); color: var(--muted); margin: 0 0 44px; text-wrap: pretty; }
.doc h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 3.4vw, 36px); line-height: 1.1; letter-spacing: -0.01em; margin: 52px 0 14px; }
.doc h2 em { font-style: italic; }
.doc h3 { font-size: 17px; margin: 28px 0 8px; }
.doc p { color: var(--muted); margin: 0 0 16px; }
.doc .prose ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.doc .prose li { position: relative; padding-left: 26px; color: var(--muted); }
.doc .prose li::before { content: ""; position: absolute; left: 4px; top: 10px; width: 7px; height: 7px; border-radius: 50%; background: var(--sheen); }
.doc .prose a, .doc .lede a, .doc .panel a:not(.btn), .note a { color: inherit; text-decoration: underline; text-decoration-color: rgba(169,178,255,0.5); text-underline-offset: 3px; }
.doc .prose a, .doc .lede a, .doc .panel a:not(.btn) { color: var(--text); }
.doc .prose a:hover, .doc .lede a:hover, .doc .panel a:not(.btn):hover, .note a:hover { text-decoration-color: var(--lav); }
.doc strong { color: var(--text); font-weight: 600; }
.doc .updated { margin: 60px 0 0; padding-top: 22px; border-top: 1px solid var(--line); font: 12.5px var(--mono); color: var(--faint); }

.panel { position: relative; border-radius: var(--radius); padding: 30px; margin: 0 0 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.018)); box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px -40px rgba(169,178,255,0.3); }
@media (max-width: 520px) { .panel { padding: 22px 18px; } }
.panel > :last-child { margin-bottom: 0; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.input { width: 100%; min-width: 0; border: 0; border-radius: 12px; padding: 14px 16px; color: var(--text); font: 16px/1.5 var(--sans);
  background: rgba(11,10,16,0.85); box-shadow: inset 0 0 0 1px var(--line-2); outline: none; transition: box-shadow 0.2s, background 0.2s; }
.input::placeholder { color: var(--faint); }
.input:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); }
.input:focus { box-shadow: inset 0 0 0 1px var(--lav), 0 0 0 4px rgba(169,178,255,0.2); background: rgba(11,10,16,0.95); }
textarea.input { font: 13.5px/1.6 var(--mono); min-height: 132px; resize: vertical; word-break: break-all; }
.form-row { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; margin-top: 18px; }
.hint { font-size: 13px; color: var(--faint); margin: 0; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0 0 40px; }
@media (max-width: 640px) { .facts { grid-template-columns: minmax(0, 1fr); } }
.facts div { padding: 16px 18px; border-radius: 14px; background: rgba(255,255,255,0.03); box-shadow: inset 0 0 0 1px var(--line); }
.facts b { display: block; font-family: var(--serif); font-weight: 400; font-size: 30px; line-height: 1.05; margin-bottom: 4px; }
.facts span { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.45; }

/* Thanks page */
.keybox { margin: 0; padding: 18px 20px; border-radius: 12px; background: #0b0a10; box-shadow: inset 0 0 0 1px var(--line-2);
  font: 14px/1.65 var(--mono); color: var(--text); white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.key-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.key-head .eyebrow { margin: 0; }
.key-meta { font: 12.5px var(--mono); color: var(--muted); }
.waiting { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 16px; margin: 0; }
.spinner { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid rgba(255,255,255,0.16); border-top-color: var(--lav); animation: rot 0.9s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
.state[hidden] { display: none; }

/* Contact page */
.mail-big { display: inline-block; font-family: var(--serif); font-size: clamp(28px, 6vw, 52px); line-height: 1.1; text-decoration: none; overflow-wrap: normal; word-break: normal; margin: 4px 0 10px; }
.doc .panel a.mail-big { color: transparent; text-decoration: none; }
.mail-big:hover { filter: brightness(1.15); }
