/* deskstack site. Layout after univer.ai's; colour values from aptence.app's palette (values only, no code). */
:root {
  --sheet: #f6f7f8;
  --paper: #ffffff;
  --surface: #eceef1;
  --grid: #e3e6ea;
  --grid-2: #c9ced4;
  --ink: #111418;
  --ink-2: #3a4250;
  --ink-3: #5b6470;
  --go: #107c41;
  --go-deep: #0b5a30;
  --go-glow: #2fd27a;
  --go-soft: #e7f2ec;
  --input: #1f3fd6;
  --input-soft: #e9edfc;
  --bad: #c42b1c;
  --bad-soft: #fbeae8;
  --flag: #9a5c00;
  --flag-soft: #fbf1e2;
  --night: #070908;
  --night-ink: #ecefed;
  --night-ink-2: #9aa6a0;
  --night-line: rgba(255, 255, 255, 0.08);
  --line: rgba(17, 20, 24, 0.1);
  --sh-1: 0 1px 2px rgba(17, 20, 24, 0.05);
  --sh-pop: 0 1px 2px rgba(17, 20, 24, 0.05), 0 24px 48px -24px rgba(17, 20, 24, 0.18);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --rh: 46px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--sheet); color: var(--ink-2); font: 400 17px/1.55 var(--sans); font-feature-settings: "tnum" 1; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
code, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--input); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 28px; }
.skip { position: absolute; left: -999px; top: 8px; }
.skip:focus { left: 12px; z-index: 60; background: var(--paper); padding: 8px 12px; border-radius: 8px; }
.arr { width: 15px; height: 15px; vertical-align: -2px; margin-left: 2px; }
.tick { width: 15px; height: 15px; flex: none; vertical-align: -2px; }

/* ---- nav ---- */
.bar { position: sticky; top: 0; z-index: 50; background: rgba(246, 247, 248, 0.82); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--grid); }
.bar-in { display: flex; align-items: center; gap: 28px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.brand svg { width: 22px; height: 22px; }
.links { display: flex; gap: 4px; }
.links a, .bar-end .gh, .bar-end .lang { color: var(--ink-2); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 7px 10px; border-radius: 8px; }
.links a:hover, .bar-end .gh:hover, .bar-end .lang:hover { color: var(--ink); background: var(--surface); }
.bar-end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.bar-end .gh { display: inline-flex; align-items: center; gap: 6px; }
.bar-end .gh svg { width: 16px; height: 16px; }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; gap: 4px; font: 500 15px/1 var(--sans); padding: 13px 18px; border-radius: 10px; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn.sm { font-size: 14px; padding: 9px 14px; border-radius: 9px; }
.btn.go { background: var(--go); color: #fff; border-color: var(--go-deep); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 16px -9px rgba(16, 124, 65, 0.7); }
.btn.go:hover { background: var(--go-deep); }
.btn.ghost { background: var(--paper); color: var(--ink); border-color: var(--line); box-shadow: var(--sh-1); }
.btn.ghost:hover { background: var(--surface); }
.btn.ink { background: var(--ink); color: #fff; }
.btn.ink:hover { background: #262a30; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.fake { cursor: default; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---- headings ---- */
h1, h2, h3 { color: var(--ink); font-weight: 500; margin: 0; }
.h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.06; letter-spacing: -0.03em; max-width: 20ch; }
.h2 span, .h3 span { color: var(--ink-3); }
.h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.1; letter-spacing: -0.025em; }
.sub { max-width: 60ch; margin: 18px 0 0; font-size: 18px; color: var(--ink-3); }

/* ---- hero: a workbook ---- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--grid); }
.sheet { position: absolute; inset: 0; pointer-events: none; }
.sheet .cols { display: grid; grid-template-columns: 44px repeat(12, 1fr); height: 28px; border-bottom: 1px solid var(--grid); background: var(--sheet); }
.sheet .cols::before { content: ""; border-right: 1px solid var(--grid); }
.sheet .cols span { font: 500 11px/28px var(--mono); color: var(--ink-3); text-align: center; border-right: 1px solid var(--grid); opacity: 0.8; }
.sheet .rows { position: absolute; top: 28px; left: 0; width: 44px; bottom: 0; border-right: 1px solid var(--grid); }
.sheet .rows span { display: block; height: var(--rh); font: 500 11px/var(--rh) var(--mono); text-align: center; color: var(--ink-3); border-bottom: 1px solid var(--grid); opacity: 0.8; }
.sheet .cells { position: absolute; top: 28px; left: 44px; right: 0; bottom: 0;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 12) var(--rh); background-position: -1px -1px; }
.c { position: absolute; left: calc((var(--x) - 1) * 100% / 12); top: calc((var(--y) - 1) * var(--rh)); width: calc(100% / 12); height: var(--rh);
  display: flex; align-items: center; justify-content: flex-end; gap: 4px; padding: 0 10px; font: 400 13px var(--mono); color: var(--ink-3); white-space: nowrap; }
.c.h { justify-content: flex-start; color: var(--ink-2); font-family: var(--sans); font-weight: 500; }
.c.ok { color: var(--ink); }
.c.ok .tick { width: 12px; height: 12px; color: var(--go); }
.c.in { color: var(--input); }
.c.f { color: var(--ink-3); font-family: var(--sans); font-style: italic; }
.c.bad { color: var(--bad); background: var(--bad-soft); box-shadow: inset 0 0 0 1.5px var(--bad); }
.c.bad::after { content: ""; position: absolute; top: 0; right: 0; border: 5px solid var(--bad); border-left-color: transparent; border-bottom-color: transparent; }
.cursor { position: absolute; left: calc((var(--x) - 1) * 100% / 12); top: calc((var(--y) - 1) * var(--rh)); width: calc(100% / 12); height: var(--rh); }
.cursor span { position: absolute; top: -20px; left: -1px; font: 500 11px/1 var(--sans); color: #fff; padding: 4px 6px; border-radius: 4px 4px 4px 0; white-space: nowrap; }
.c-associate { box-shadow: inset 0 0 0 2px var(--go); }
.c-associate span { background: var(--go); }
.c-you { box-shadow: inset 0 0 0 2px var(--input); }
.c-you span { background: var(--input); }
.comment { position: absolute; left: calc((var(--x) - 1) * 100% / 12 + 8px); top: calc((var(--y) - 1) * var(--rh) + 6px); max-width: 280px; font: 400 12.5px/1.4 var(--sans); color: var(--ink); background: var(--flag-soft); border: 1px solid #ecd9b8; border-radius: 8px; padding: 7px 10px; box-shadow: var(--sh-pop); }
.hero::after { content: ""; position: absolute; inset: 28px 0 0 44px; pointer-events: none; background: radial-gradient(ellipse 40% 30% at 50% 54%, var(--sheet) 55%, rgba(246, 247, 248, 0) 100%); }
.hero-in { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(28px + var(--rh) * 3.3) 28px calc(var(--rh) * 3.6); }
.fx { display: flex; align-items: center; gap: 10px; width: min(620px, 100%); padding: 7px 8px 7px 12px; background: var(--paper); border: 1px solid var(--grid); border-radius: 12px; box-shadow: var(--sh-pop); font-size: 12.5px; margin-bottom: 34px; text-align: left; }
.fx .ref { font: 500 12px var(--mono); color: var(--ink-3); padding-right: 10px; border-right: 1px solid var(--grid); }
.fx .fxl { font: italic 500 13px var(--sans); color: var(--ink-3); }
.fx code { flex: 1; font-size: 12.5px; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatars { display: flex; }
.avatars i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font: 600 10px var(--sans); font-style: normal; color: #fff; border: 2px solid var(--paper); }
.avatars .a1 { background: var(--go); }
.avatars .a2 { background: var(--input); margin-left: -6px; }
.selection { position: relative; padding: 14px 26px 18px; border: 1.5px solid var(--input); background: rgba(31, 63, 214, 0.035); }
.selection .handle { position: absolute; right: -5px; bottom: -5px; width: 9px; height: 9px; background: var(--input); border: 2px solid var(--paper); }
.hero h1 { font-size: clamp(40px, 6.6vw, 80px); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 em { font-style: normal; color: var(--go); }
.lede { max-width: 640px; margin: 30px auto; font-size: 18.5px; color: var(--ink-2); }
.lede b { color: var(--ink); font-weight: 600; }

/* ---- proof strip ---- */
.proof { background: var(--paper); border-bottom: 1px solid var(--grid); padding: 34px 0 28px; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 4px 26px; border-left: 1px solid var(--grid); }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stats b { display: block; font-size: 34px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); line-height: 1.1; }
.stats li:first-child b { color: var(--go); }
.stats span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.45; color: var(--ink-3); }
.fine { margin: 22px 0 0; font-size: 13px; color: var(--ink-3); max-width: 100ch; }

/* ---- sections ---- */
.block { padding: 112px 0; }
.block.white { background: var(--paper); border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); }

/* showcase: tabs drive a product window */
.showcase { margin-top: 56px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.tablist { display: flex; flex-direction: column; }
.tab { text-align: left; font: inherit; background: none; border: 0; border-left: 2px solid var(--grid); padding: 16px 0 16px 20px; cursor: pointer; color: var(--ink-3); }
.tab:hover .tab-h { color: var(--ink); }
.tab[aria-selected="true"] { border-left-color: var(--go); }
.tab-h { display: block; font-size: 17px; font-weight: 500; color: var(--ink-2); }
.tab-h code { font-size: 13px; color: var(--ink-3); background: var(--surface); padding: 2px 6px; border-radius: 5px; margin-right: 4px; }
.tab[aria-selected="true"] .tab-h { color: var(--ink); }
.tab[aria-selected="true"] .tab-h code { color: var(--go-deep); background: var(--go-soft); }
.tab-p { display: block; margin-top: 6px; font-size: 14.5px; line-height: 1.5; }
.stage { background: var(--surface); border-radius: 22px; padding: 30px; min-height: 470px; display: grid; align-items: center; }
.panel[hidden] { display: none; }
.panel:focus-visible { outline-offset: 6px; }
.win { background: var(--paper); border: 1px solid var(--grid); border-radius: 14px; box-shadow: var(--sh-pop); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--grid); background: var(--sheet); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--grid-2); }
.win-bar span { margin: 0 auto; transform: translateX(-21px); font: 500 12px var(--mono); color: var(--ink-3); }
.win-body { padding: 20px; }
.win-body.two-col { display: grid; grid-template-columns: 1fr 150px; gap: 20px; }
.cap { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.mini { width: 100%; border-collapse: collapse; font: 400 13px var(--mono); }
.mini th, .mini td { padding: 8px; border-bottom: 1px solid var(--grid); text-align: right; white-space: nowrap; }
.mini th { text-align: left; font: 500 13px var(--sans); color: var(--ink-2); }
.mini thead th { font: 500 11.5px var(--mono); color: var(--ink-3); text-align: right; }
.mini thead th:first-child { text-align: left; }
.mini td { color: var(--ink); }
.mini td.in { color: var(--input); }
.mini td.st { width: 28px; color: var(--go); }
.mini tr.bad td { color: var(--bad); background: var(--bad-soft); }
.mini tr.bad th { background: var(--bad-soft); }
.tip { display: flex; align-items: center; gap: 7px; margin: 14px 0 0; font: 400 12px var(--mono); color: var(--go-deep); background: var(--go-soft); border-radius: 8px; padding: 8px 10px; }
.sum { display: flex; align-items: center; gap: 8px; margin: 0 0 14px; font-size: 14.5px; font-weight: 500; color: var(--ink); }
.ok-sum .tick { color: var(--go); width: 18px; height: 18px; }
.counts { margin-left: auto; font: 400 12.5px var(--mono); color: var(--ink-3); }
.bad-sum::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); flex: none; }
.hint { margin: 14px 0 0; font: 400 12.5px/1.5 var(--mono); color: var(--flag); background: var(--flag-soft); border-radius: 8px; padding: 9px 11px; }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--grid); font-size: 14.5px; color: var(--ink); }
.checks li:last-child { border-bottom: 0; }
.checks .tick { color: var(--go); }
.pill { display: inline-block; font: 600 11.5px var(--sans); padding: 3px 8px; border-radius: 999px; }
.pill.ok { color: var(--go-deep); background: var(--go-soft); }
.mini.wide td:last-child { text-align: left; color: var(--ink-3); font-family: var(--sans); }
.mini.wide td.st { text-align: right; color: var(--go); }
.mini.wide tr.bad td.st { color: var(--bad); }
.gate { margin-top: 18px; border: 1px dashed var(--grid-2); border-radius: 12px; padding: 16px; display: grid; gap: 8px; justify-items: start; }
.gate p { margin: 0; font-size: 14px; color: var(--ink-2); }
.gate code { font-size: 13px; color: var(--input); background: var(--input-soft); padding: 2px 6px; border-radius: 5px; }
.gate .wait { color: var(--ink-3); }

/* two lanes */
.lanes-card { background: var(--sheet); border: 1px solid var(--grid); border-radius: 22px; padding: 44px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px 48px; align-items: center; }
.lanes-card .sub { grid-column: 1 / -1; margin: 0; font-size: 15.5px; }
.lanes { display: grid; grid-template-columns: auto 1fr; gap: 16px; }
.lane-names { display: grid; grid-template-rows: 44px 44px; align-items: center; font-size: 13.5px; font-weight: 500; color: var(--ink); }
.lane-names span { display: flex; align-items: center; gap: 8px; }
.lane-names span::before { content: ""; width: 20px; height: 20px; border-radius: 50%; }
.who-a::before { background: var(--go); }
.who-y::before { background: var(--input); }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); position: relative; }
.track::before { content: ""; position: absolute; left: calc(100% / 14); right: calc(100% / 7 + 100% / 14); top: 22px; border-top: 1.5px solid var(--grid-2); }
.track li { position: relative; display: grid; grid-template-rows: 44px 44px auto; justify-items: center; }
.track li i { width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 2px solid var(--go); align-self: center; grid-row: 1; position: relative; z-index: 1; }
.track li.you i { grid-row: 2; border-color: var(--input); background: var(--input); }
.track li.you::before { content: ""; position: absolute; top: 22px; height: 44px; left: -50%; width: 100%; border-top: 1.5px dashed var(--grid-2); border-right: 1.5px dashed var(--grid-2); border-top-right-radius: 14px; transform: translateX(-1px); }
.track li span { grid-row: 3; font-size: 12.5px; color: var(--ink-3); text-align: center; line-height: 1.3; padding: 0 2px; }
.track li.you span { color: var(--input); font-weight: 600; }

/* night band */
.night { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink-2); padding: 120px 0; }
.night .glow { position: absolute; left: 50%; bottom: -380px; width: 1100px; height: 700px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(16, 124, 65, 0.42), rgba(16, 124, 65, 0.08) 60%, transparent); pointer-events: none; }
.night .wrap { position: relative; }
.night .h2 { color: var(--night-ink); }
.night .h2 span { color: var(--night-ink-2); }
.night .sub { color: var(--night-ink-2); }
.stepper { list-style: none; margin: 52px 0 0; padding: 26px 28px; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--night-line); border-radius: 20px; background: rgba(255, 255, 255, 0.025); }
.stepper li { display: grid; justify-items: center; gap: 12px; position: relative; color: var(--night-ink); font-size: 14.5px; text-align: center; }
.stepper li + li::before { content: ""; position: absolute; top: 19px; right: calc(50% + 28px); width: calc(100% - 56px); border-top: 1px solid rgba(255, 255, 255, 0.14); }
.stepper i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 500 14px var(--mono); font-style: normal; color: var(--night-ink); border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.03); }
.stepper li:nth-child(3) i { background: var(--go); border-color: var(--go-glow); box-shadow: 0 0 0 6px rgba(47, 210, 122, 0.12), 0 0 28px rgba(47, 210, 122, 0.45); }
.night-grid { margin-top: 22px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ncard { border: 1px solid var(--night-line); border-radius: 20px; background: rgba(255, 255, 255, 0.03); padding: 28px; display: flex; flex-direction: column; }
.ncard h3 { color: var(--night-ink); font-size: 20px; letter-spacing: -0.015em; }
.ncard p { margin: 8px 0 20px; font-size: 15px; }
.json { border-radius: 12px; background: #0d1714; border: 1px solid var(--night-line); }
.json pre { margin: 0; padding: 16px 18px; font-size: 12.5px; line-height: 1.65; color: var(--night-ink-2); overflow-x: auto; }
.json b { font-weight: 400; }
.json .r { color: #ff8f84; }
.json .g { color: var(--go-glow); }
.json .y { color: #f2c46d; }
.hints { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hints li { border: 1px solid var(--night-line); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.hints b { display: block; color: var(--night-ink); font-weight: 500; margin-bottom: 2px; }
.demo { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--night-line); }

/* benchmark */
.bench { margin-top: 52px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.bcard { background: var(--paper); border: 1px solid var(--grid); border-radius: 18px; padding: 10px 26px 16px; box-shadow: var(--sh-1); }
.bcard-h { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 16px 0 6px; flex-wrap: wrap; }
.bcard-h h3 { font-size: 18px; letter-spacing: -0.01em; }
.bcard-h a, .card a, .tut a { color: var(--go-deep); font-size: 14px; font-weight: 500; text-decoration: none; }
.bcard-h a:hover, .card a:hover, .tut a:hover { text-decoration: underline; }
.scroll { overflow-x: auto; }
.bcard table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bcard th, .bcard td { text-align: left; padding: 14px 8px; border-bottom: 1px solid var(--grid); }
.bcard tr:last-child th, .bcard tr:last-child td { border-bottom: 0; }
.bcard thead th { font-size: 12.5px; font-weight: 500; color: var(--ink-3); font-family: var(--sans); }
.bcard tbody th { font-weight: 500; color: var(--ink); width: 28%; }
.bcard .r { text-align: right; font-family: var(--mono); font-size: 14px; color: var(--ink-2); }
.bcard .wrong { display: flex; align-items: center; gap: 10px; }
.bcard .wrong b { font-weight: 600; color: var(--ink); font-family: var(--mono); font-size: 14px; }
.bcard .wrong span { color: var(--ink-3); font-size: 14px; }
.meter { display: inline-block; height: 10px; width: calc(var(--w) * 4%); min-width: 4px; background: var(--bad); border-radius: 3px; flex: none; }
.meter.zero { width: 4px; background: var(--go); }
.cards3 { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card { background: var(--paper); border: 1px solid var(--grid); border-radius: 18px; padding: 26px; box-shadow: var(--sh-1); display: flex; flex-direction: column; gap: 8px; }
.card h3 { font-size: 18px; letter-spacing: -0.01em; }
.card p { margin: 0; font-size: 15px; color: var(--ink-3); }
.card a { margin-top: auto; padding-top: 8px; }

/* data sources */
.sources { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.src-card { background: var(--sheet); border: 1px solid var(--grid); border-radius: 18px; padding: 24px; }
.src-tag { display: inline-block; font: 500 12px var(--mono); color: var(--go-deep); background: var(--go-soft); padding: 4px 8px; border-radius: 6px; }
.src-card h3 { margin-top: 16px; font-size: 18px; letter-spacing: -0.01em; }
.src-card p { margin: 8px 0 0; font-size: 15px; color: var(--ink-3); }
.src-card:last-child { background: var(--ink); border-color: var(--ink); }
.src-card:last-child h3 { color: #fff; }
.src-card:last-child p { color: #aeb6c1; }
.src-card:last-child .src-tag { background: rgba(255, 255, 255, 0.1); color: var(--go-glow); }
.accuracy { margin-top: 18px; display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; border: 1px solid var(--grid); border-radius: 18px; padding: 24px 26px; }
.accuracy h3 { font-size: 18px; }
.accuracy p { margin: 6px 0 0; font-size: 15px; color: var(--ink-3); max-width: 60ch; }
.acc-badge { display: grid; grid-template-columns: auto auto; gap: 2px 10px; align-items: baseline; }
.acc-badge b { font: 500 22px var(--mono); color: var(--go); letter-spacing: -0.02em; }
.acc-badge span { font-size: 12.5px; color: var(--ink-3); }

/* install */
.steps { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--paper); border: 1px solid var(--grid); border-radius: 18px; padding: 26px; box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.steps li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 14px var(--mono); color: var(--go-deep); background: var(--go-soft); margin-bottom: 18px; }
.steps h3 { font-size: 18px; letter-spacing: -0.01em; }
.steps p { margin: 8px 0 18px; font-size: 15px; color: var(--ink-3); }
.urlbox { margin-top: auto; display: flex; gap: 8px; align-items: stretch; }
.urlbox code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; color: var(--ink); background: var(--sheet); border: 1px solid var(--grid); border-radius: 9px; padding: 9px 10px; line-height: 1.4; }
.pending { margin: 10px 0 0; font-size: 13.5px; }
.pending a { color: var(--go-deep); }
.tut { margin: 26px 0 0; }

/* faq */
.faq-block { border-top: 1px solid var(--grid); }
.faq-wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 48px; }
.faq details { border-bottom: 1px solid var(--grid); }
.faq details:first-child { border-top: 1px solid var(--grid); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; font-weight: 500; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; width: 14px; height: 14px; flex: none; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 1.6px solid var(--ink-3); transition: transform 0.2s; }
.faq summary i::after { transform: rotate(90deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq details p { margin: -6px 0 22px; font-size: 16px; color: var(--ink-3); max-width: 64ch; }
.faq details a { color: var(--go-deep); }

/* final call */
.end { position: relative; overflow: hidden; background: var(--paper); border-top: 1px solid var(--grid); padding: 120px 0 128px; text-align: center; }
.end .sheet.faint { -webkit-mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, transparent 30%, #000 85%); mask-image: radial-gradient(ellipse 70% 80% at 50% 45%, transparent 30%, #000 85%); }
.end .sheet.faint .cols { background: var(--paper); grid-template-columns: repeat(12, 1fr); }
.end .sheet.faint .cols::before { display: none; }
.end .sheet.faint .cells { left: 0; }
.end .h2 { margin: 0 auto 34px; max-width: none; }
.end .wrap { position: relative; }

/* footer */
.foot { background: var(--paper); border-top: 1px solid var(--grid); padding: 56px 0 44px; font-size: 14px; }
.foot-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; align-items: start; gap: 28px; padding-bottom: 32px; border-bottom: 1px solid var(--grid); margin-bottom: 22px; }
.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot h3 { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 4px; }
.foot nav a { color: var(--ink-3); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.credit { margin: 6px 0 0; color: var(--ink-3); font-size: 13px; max-width: 110ch; }

/* reveal on scroll: app.js sets .reveal-on only once it can reveal, so content stays visible if it never runs */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal-on .reveal.in { opacity: 1; transform: none; }
  .js .hero .c, .js .hero .cursor, .js .hero .comment { animation: pop 0.4s ease both; animation-delay: calc(var(--i, 20) * 18ms + 80ms); }
  @keyframes pop { from { opacity: 0; } to { opacity: 1; } }
}

/* ---- responsive ---- */
@media (max-width: 1040px) {
  .links { display: none; }
  .showcase { grid-template-columns: 1fr; }
  .tablist { flex-direction: row; overflow-x: auto; gap: 4px; padding-bottom: 4px; scrollbar-width: none; }
  .tab { border-left: 0; border-bottom: 2px solid var(--grid); padding: 10px 12px; flex: none; }
  .tab[aria-selected="true"] { border-bottom-color: var(--go); }
  .tab-p { display: none; }
  .tab-h code { display: none; }
  .lanes-card { grid-template-columns: 1fr; }
  .cards3, .sources, .steps { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
}
@media (max-width: 720px) {
  :root { --rh: 38px; }
  .wrap { padding: 0 18px; }
  .bar-end .gh span { display: none; }
  .bar-in { gap: 12px; }
  .bar-end .gh, .bar-end .lang { min-height: 44px; display: inline-flex; align-items: center; }
  .sheet .c, .sheet .cursor, .sheet .comment, .sheet .rows { display: none; }
  .sheet .cells { left: 0; background-size: calc(100% / 6) var(--rh); }
  .sheet .cols { grid-template-columns: repeat(6, 1fr); }
  .sheet .cols::before { display: none; }
  .sheet .cols span:nth-child(n + 7) { display: none; }
  .hero::after { inset: 28px 0 0 0; }
  .hero-in { padding: 72px 18px 64px; }
  .fx .ref, .avatars { display: none; }
  .selection { padding: 10px 14px 12px; }
  .lede { font-size: 17px; }
  .block, .night { padding: 76px 0; }
  .stats { grid-template-columns: 1fr; }
  .stats li { border-left: 0; padding: 0; }
  .stage { padding: 14px; min-height: 0; }
  .win-body.two-col { grid-template-columns: 1fr; }
  .mini th, .mini td { padding: 7px 5px; font-size: 12px; }
  .lanes-card { padding: 26px 20px; }
  .lanes { grid-template-columns: 1fr; }
  .lane-names { display: none; }
  .track { grid-template-columns: 1fr; gap: 12px; padding-left: 2px; }
  .track::before { left: 8px; right: auto; top: 6px; bottom: 6px; border-top: 0; border-left: 1.5px solid var(--grid-2); }
  .track li { display: flex; align-items: center; gap: 14px; }
  .track li i { flex: none; }
  .track li.you::before { display: none; }
  .track li span { font-size: 14.5px; text-align: left; padding: 0; }
  .track li.you span::after { content: " · " attr(data-who); }
  .stepper { grid-template-columns: 1fr 1fr; gap: 24px 0; }
  .stepper li + li::before { display: none; }
  .night-grid, .cards3, .sources, .steps, .faq-wrap { grid-template-columns: 1fr; }
  .hints { grid-template-columns: 1fr; }
  .accuracy { grid-template-columns: 1fr; gap: 16px; }
  .bcard { padding: 6px 16px 12px; }
  .bcard th, .bcard td { padding: 12px 6px; }
  .bcard tbody th { width: auto; }
  .urlbox { flex-direction: column; }
  .foot-top { grid-template-columns: 1fr 1fr; }
  .foot-top .brand { grid-column: 1 / -1; }
  .end { padding: 84px 0 92px; }
}

/* ===== Univer fidelity layer: pills, 40px heads, section heads, banner, pricing, closing card, dark footer ===== */
.banner { background: var(--go); color: #fff; font-size: 14px; height: 34px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 0 16px; white-space: nowrap; overflow: hidden; }
.banner span { overflow: hidden; text-overflow: ellipsis; }
.banner a { color: #fff; font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; }
.banner a:hover { text-decoration: underline; }
.bar-in { height: 57px; }
.pill-sm { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 500; text-decoration: none; color: var(--ink); background: var(--paper); border: 1px solid var(--line); }
.pill-sm svg { width: 15px; height: 15px; }
.pill-sm:hover { background: var(--surface); }
.pill-sm.go { background: var(--go); color: #fff; border-color: var(--go); }
.pill-sm.go:hover { background: var(--go-deep); }
.bar-end { gap: 8px; }
.bar-end .lang { font-size: 13.5px; }

.btn { border-radius: 999px; height: 48px; padding: 0 24px; font-size: 16px; }
.btn.sm { height: 40px; padding: 0 20px; font-size: 14px; border-radius: 999px; }
.btn.ghost { border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(17, 20, 24, 0.06); }
.btn.on-dark { background: rgba(255, 255, 255, 0.06); color: var(--night-ink); border-color: rgba(255, 255, 255, 0.16); box-shadow: none; }
.btn.on-dark:hover { background: rgba(255, 255, 255, 0.12); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--surface); }
.btn.wide { width: 100%; justify-content: center; }
.urlbox .btn.sm { height: auto; min-height: 40px; }

.h2 { font-size: clamp(30px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -0.02em; max-width: 24ch; }
.hero h1 { font-size: clamp(40px, 6vw, 76px); line-height: 1; letter-spacing: -0.027em; }
.sub { font-size: 17px; }

.tag { display: inline-block; font-size: 12.5px; font-weight: 500; color: var(--ink-2); background: var(--surface); border: 1px solid var(--grid); border-radius: 8px; padding: 4px 10px; margin-bottom: 18px; }
.tag.dark { color: var(--night-ink); background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; }
.head > div { min-width: 0; }
.head > .btn { flex: none; margin-bottom: 4px; }
.head.center { flex-direction: column; align-items: center; text-align: center; }
.head.center .h2, .head.center .sub { margin-left: auto; margin-right: auto; }

/* grouped cards: one bordered card with inner dividers */
.cards3.grouped { gap: 0; background: var(--paper); border: 1px solid var(--grid); border-radius: 20px; overflow: hidden; box-shadow: var(--sh-1); }
.cards3.grouped .card { border: 0; border-radius: 0; box-shadow: none; border-left: 1px solid var(--grid); padding: 28px; }
.cards3.grouped .card:first-child { border-left: 0; }

/* pricing */
.plans { margin-top: 52px; display: grid; grid-template-columns: 1fr 1fr; gap: 22px; max-width: 980px; margin-left: auto; margin-right: auto; }
.plan { border-radius: 22px; padding: 32px; background: var(--paper); border: 1px solid var(--grid); box-shadow: var(--sh-1); display: flex; flex-direction: column; }
.plan.dark { background: var(--night); color: var(--night-ink-2); border-color: var(--night); box-shadow: 0 30px 60px -30px rgba(7, 9, 8, 0.6); }
.plan-h { display: flex; align-items: center; gap: 10px; }
.plan h3 { font-size: 18px; }
.plan.dark h3 { color: var(--night-ink); }
.badge { font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 999px; color: var(--go-glow); border: 1px solid rgba(47, 210, 122, 0.4); background: rgba(47, 210, 122, 0.08); }
.plan-lede { margin: 8px 0 22px; font-size: 15px; color: var(--ink-3); }
.plan.dark .plan-lede { color: var(--night-ink-2); }
.price { margin: 0 0 24px; display: flex; align-items: baseline; gap: 10px; }
.price b { font-size: 56px; font-weight: 500; letter-spacing: -0.03em; color: var(--ink); line-height: 1; }
.plan.dark .price b { color: #fff; }
.price span { font-size: 15px; color: var(--ink-3); }
.plan.dark .price span { color: var(--night-ink-2); }
.plan-m { margin: 26px 0 8px; padding: 20px 0; border-top: 1px solid var(--grid); border-bottom: 1px solid var(--grid); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan.dark .plan-m { border-color: rgba(255, 255, 255, 0.1); }
.plan-m b { display: block; font-size: 28px; font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.plan.dark .plan-m b { color: #fff; }
.plan-m span { font-size: 13px; color: var(--ink-3); }
.plan.dark .plan-m span { color: var(--night-ink-2); }
.plan-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; font-size: 15px; color: var(--ink-2); }
.plan.dark .plan-list { color: var(--night-ink); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list .tick { color: var(--go); margin-top: 3px; }
.plan.dark .plan-list .tick { color: var(--go-glow); }

/* closing card: heading left, a selected range on a grid right */
.end { background: var(--sheet); border-top: 0; padding: 40px 0 120px; text-align: left; }
.end-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--paper); border: 1px solid var(--grid); border-radius: 24px; overflow: hidden; box-shadow: var(--sh-1); min-height: 340px; }
.end-copy { padding: 56px; display: flex; flex-direction: column; justify-content: center; }
.end .h2 { margin: 0 0 30px; }
.actions.left { justify-content: flex-start; }
.end-grid { position: relative; border-left: 1px solid var(--grid); background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px); background-size: 72px 44px; }
.end-grid .sel { position: absolute; left: 216px; top: 88px; width: 216px; height: 44px; border: 1.5px solid var(--input); background: rgba(31, 63, 214, 0.06); }
.end-grid .sel::after { content: ""; position: absolute; right: -5px; bottom: -5px; width: 8px; height: 8px; background: var(--input); border: 2px solid #fff; }

/* dark footer */
.foot { background: var(--night); border-top: 0; color: var(--night-ink-2); }
.foot .brand { color: #fff; }
.foot-top { border-bottom-color: rgba(255, 255, 255, 0.1); }
.foot-brand p { margin: 14px 0 0; max-width: 38ch; font-size: 14px; line-height: 1.55; }
.foot h3 { color: #fff; }
.foot nav a { color: var(--night-ink-2); }
.foot nav a:hover { color: #fff; }
.credit { color: #7f8a85; }

@media (max-width: 1040px) {
  .head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .head.center { align-items: center; }
  .cards3.grouped { grid-template-columns: 1fr; }
  .cards3.grouped .card { border-left: 0; border-top: 1px solid var(--grid); }
  .cards3.grouped .card:first-child { border-top: 0; }
  .plans { grid-template-columns: 1fr; }
  .end-card { grid-template-columns: 1fr; }
  .end-grid { min-height: 180px; border-left: 0; border-top: 1px solid var(--grid); }
}
@media (max-width: 720px) {
  .banner { font-size: 12.5px; height: auto; min-height: 34px; padding: 7px 12px; white-space: normal; text-align: center; flex-wrap: wrap; gap: 4px 8px; }
  .pill-sm span { display: none; }
  .pill-sm { padding: 0 11px; height: 36px; }
  .pill-sm.go span, .pill-sm.go { font-size: 13px; }
  .bar-end .lang { padding: 6px; }
  .btn { height: 46px; padding: 0 20px; }
  .plan { padding: 24px; }
  .price b { font-size: 46px; }
  .end-copy { padding: 32px 24px; }
  .end-grid .sel { left: 72px; top: 44px; }
}

/* Stars brief lot 10: what it catches, the command line, the examples. */
.bcard table.catches td { color: var(--ink-2); font-size: 14.5px; vertical-align: top; }
.bcard table.catches tbody th { width: 24%; vertical-align: top; }
.bcard table.catches code, .sub code, .hint code { font-size: 0.92em; }
.cli-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }
.cli-grid .urlbox { margin: 0 0 14px; }
pre.term { margin: 0; padding: 14px 16px; font: 400 12.5px/1.6 var(--mono); color: var(--ink); background: var(--sheet); border: 1px solid var(--grid); border-radius: 10px; overflow-x: auto; white-space: pre; }
pre.term.small { font-size: 12px; }
.cards4 { margin-top: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.cards4 .card a { overflow-wrap: anywhere; }
@media (max-width: 1040px) { .cli-grid { grid-template-columns: 1fr; } .cards4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .cards4 { grid-template-columns: 1fr; } .bcard table.catches tbody th { width: auto; } }
@media (max-width: 720px) {
  .bcard table.catches thead { display: none; }
  .bcard table.catches tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--grid); }
  .bcard table.catches tr:last-child { border-bottom: 0; }
  .bcard table.catches th, .bcard table.catches td { display: block; border: 0; padding: 4px 0; }
  .bcard table.catches td::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
}
