/* site: the public site (home, pricing, docs, legal, first look), in the signed-in app's world.
   class="app" on <html> gives the app's semantic tokens (tokens.css) and ui.css its components (buttons, door tags,
   the board, fields, code blocks). This sheet adds only what a public page needs: the bottle-green bands, a wider
   rhythm, bigger type, the hero board, and the reading layouts. Every color, size and space is a token
   (tests/test_saas_site.py); the site's own sizes are the --site-* and --text-site-* tokens in tokens.css. */

body.site, .site body { font-size: var(--text-lg); line-height: 1.6; background: var(--ground); }
.site h1, .site h2 { letter-spacing: -0.03em; line-height: 1.08; font-weight: var(--weight-semibold); }
.site h3 { letter-spacing: -0.015em; }
.swrap { width: 100%; max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }
.measure { max-width: 64ch; }
.lead { font-size: var(--text-site-lead); line-height: 1.55; color: var(--ink-2); }
.muted { color: var(--ink-3); }
.small { font-size: var(--text-sm); }
.btn.xl { min-height: var(--site-field-xl); padding: 0 var(--space-5-5); font-size: var(--text-lg); font-weight: var(--weight-semibold); border-radius: var(--radius-md); }
.show-sm { display: none; }

/* ---------- header and footer: the shell band ---------- */
.s-head { background: var(--shell); color: var(--shell-ink); position: relative; z-index: 40; }
.s-head-in { display: flex; align-items: center; gap: var(--space-7); height: var(--site-head-h); }
.s-head .brand, .s-foot .brand { display: inline-flex; align-items: center; gap: var(--space-2-5); color: var(--shell-ink); text-decoration: none; font-weight: var(--weight-semibold); font-size: var(--text-xl); }
.brand__mark { width: var(--site-logo); height: var(--site-logo); }
.s-nav { display: flex; gap: var(--space-1); }
.s-nav a { color: var(--shell-ink-2); text-decoration: none; font-weight: var(--weight-medium); font-size: var(--text-base); padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); position: relative; }
.s-nav a:hover { color: var(--white); background: var(--white-a6); }
.s-nav a[aria-current="page"] { color: var(--white); }
.s-nav a[aria-current="page"]::after { content: ""; position: absolute; left: var(--space-3); right: var(--space-3); bottom: calc(-1 * var(--space-3)); height: 2px; border-radius: var(--radius-3xs); background: var(--leg-on-dark); }
.s-head-cta { margin-left: auto; display: flex; gap: var(--space-2); align-items: center; }
.s-menu { display: none; position: relative; }
.s-menu > summary { list-style: none; }
.s-menu > summary::-webkit-details-marker { display: none; }
.s-menu__panel { position: absolute; right: 0; top: calc(100% + var(--space-2)); min-width: var(--site-menu-w); background: var(--shell); border: 1px solid var(--shell-line); border-radius: var(--radius-md); padding: var(--space-2); box-shadow: var(--shadow-pop); display: flex; flex-direction: column; }
.s-menu__panel a { color: var(--shell-ink); text-decoration: none; padding: var(--space-3); border-radius: var(--radius-sm); font-weight: var(--weight-medium); }
.s-menu__panel a:hover { background: var(--white-a6); }
.s-foot { background: var(--bottle-950); color: var(--shell-ink-2); padding: var(--space-13) 0 var(--space-10); font-size: var(--text-md); }
.s-foot a { color: var(--shell-ink); text-decoration: none; }
.s-foot a:hover { color: var(--white); text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: var(--space-8); }
.foot-grid h2 { color: var(--white); font-size: var(--text-md); font-weight: var(--weight-semibold); margin-bottom: var(--space-3); letter-spacing: 0; line-height: 1.3; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--space-2-25); }
.foot-grid p { margin-top: var(--space-3); max-width: 34ch; }
.foot-base { margin-top: var(--space-11); padding-top: var(--space-5); border-top: 1px solid var(--shell-line); }

/* ---------- the hero: the offer beside the real board ---------- */
.hero { background: var(--shell); color: var(--shell-ink); }
.hero-board { padding: var(--site-hero-pad) 0 var(--site-section-sm); }
.hb-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: var(--site-gap); align-items: start; }
.hero-board h1 { font-size: var(--text-site-h1); color: var(--white); max-width: 17ch; text-wrap: balance; }
.hero .lead { color: var(--shell-ink-2); margin-top: var(--space-4-5); }
.url-form { margin-top: var(--space-6-5); display: flex; gap: var(--space-2-5); max-width: var(--site-form-w); }
.url-form .input { flex: 1; min-width: 0; min-height: var(--site-field-xl); font-size: var(--text-lg); border-radius: var(--radius-md); border-color: transparent; background: var(--white); }
.url-form .input:focus { box-shadow: 0 0 0 var(--space-0-75) var(--blue-a35); border-color: var(--leg); }
.hero-fine { margin-top: var(--space-3-5); font-size: var(--text-md); color: var(--shell-ink-2); display: flex; gap: var(--space-2) var(--space-5-5); flex-wrap: wrap; }
.hero-fine a { color: var(--mint); }
.hb-note { margin-top: var(--space-6-5); padding-top: var(--space-4-5); border-top: 1px solid var(--shell-line); color: var(--shell-ink-2); font-size: var(--text-md); max-width: 52ch; }
.hb-note b { color: var(--shell-ink); font-weight: var(--weight-semibold); }

.pb { background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); box-shadow: var(--site-shadow); overflow: hidden; }
.pb-top { padding: var(--space-4-5) var(--space-5) var(--space-3-5); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: var(--space-2-5) var(--space-5); align-items: center; justify-content: space-between; }
.pb-app { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }
.pb-app__mark { width: var(--site-app-icon); height: var(--site-app-icon); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: var(--space-1); background: var(--white); }
.pb-app b { display: block; font-size: var(--text-xl); font-weight: var(--weight-semibold); }
.pb-app span { display: block; font-size: var(--text-ui); color: var(--ink-3); }
.pb-tally { display: flex; gap: var(--space-1-5); flex-wrap: wrap; }
.tally { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--text-ui); color: var(--ink-2); }
.tally .n { font-variant-numeric: tabular-nums; font-weight: var(--weight-semibold); color: var(--ink); min-width: 2ch; }
.pb-key { margin: 0; padding: var(--space-2-25) var(--space-5); font-size: var(--text-ui); color: var(--ink-3); border-bottom: 1px solid var(--line); }
.pb-status { margin: 0; padding: var(--space-2-5) var(--space-5); font-size: var(--text-sm); color: var(--ink-2); border-bottom: 1px solid var(--line); display: flex; gap: var(--space-2-5); align-items: center; background: var(--surface-2); }
.pb-status .i { color: var(--pass); flex: none; }
.pb .board th { position: static; }
.pb .board td { padding: var(--space-1-75) var(--space-3-5); height: var(--site-board-row); }
.pb .board th { padding: var(--space-2-25) var(--space-3-5); }
.pb .board th.k { width: var(--site-board-k); }
.pb .board .tag { white-space: nowrap; }
.pb .board button.tag { font: inherit; font-size: var(--text-xs); font-weight: var(--weight-semibold); cursor: pointer; }
.pb .board button.tag[aria-pressed="true"] { outline: 2px solid var(--leg); outline-offset: 2px; }
.pb .board tr.is-sel td { background: var(--leg-bg); }
.pb .board tr.is-sel td:first-child { box-shadow: inset 2px 0 0 var(--leg); }
.js .pb:not(.is-open) .board tr[data-more] { display: none; }
.pb .pg { display: flex; flex-direction: column; min-width: 0; }
.pb .pg b { font-weight: var(--weight-medium); font-size: var(--text-sm); overflow-wrap: anywhere; }
.pb .pg span { color: var(--ink-3); font-size: var(--text-meta); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-more { padding: var(--space-3) var(--space-5); border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); flex-wrap: wrap; font-size: var(--text-md); color: var(--ink-3); }
.pb-side { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: var(--space-4-5); padding: var(--space-4) var(--space-5) var(--space-5); border-top: 1px solid var(--line); background: var(--surface-2); align-items: start; }
.pb-side:empty { display: none; }
.pb-cap h3 { font-size: var(--text-lg); display: flex; gap: var(--space-2); align-items: center; flex-wrap: wrap; }
.pb-cap h3 .muted { font-weight: var(--weight-regular); }
.pb-cap p { font-size: var(--text-md); color: var(--ink-2); margin-top: var(--space-1-5); }
.pb-cap ul { margin: var(--space-2-5) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.pb-cap li { font-size: var(--text-md); display: flex; gap: var(--space-2); align-items: flex-start; }
.pb-cap li .i { margin-top: var(--space-0-75); flex: none; color: var(--pass); }

/* a screenshot in a browser frame */
.frame { border: 1px solid var(--line-strong); border-radius: var(--radius-md); overflow: hidden; background: var(--screen-ink); }
.frame-bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-1-75) var(--space-2-5); background: var(--surface); border-bottom: 1px solid var(--line); }
.frame-bar i { width: var(--space-2); height: var(--space-2); border-radius: var(--radius-full); background: var(--line-strong); flex: none; }
.frame-bar span { font-family: var(--mono); font-size: var(--text-meta); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: var(--surface-2); border-radius: var(--radius-xs); padding: var(--space-0-75) var(--space-2); flex: 1; min-width: 0; }
.frame img { width: 100%; height: auto; display: block; }
.noshot { aspect-ratio: 16 / 10; display: grid; place-items: center; color: var(--shell-ink-2); font-size: var(--text-ui); padding: var(--space-3); text-align: center; }

/* ---------- sections ---------- */
.sec { padding: var(--site-section) 0; }
.sec + .sec { padding-top: 0; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5) var(--site-gap-lg); align-items: end; margin-bottom: var(--site-gap); }
.sec-head h2, .h2-solo { font-size: var(--text-site-h2); max-width: 20ch; }
.sec-head p { color: var(--ink-2); font-size: var(--text-site-lead); max-width: 52ch; }
.band-plain { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec.band-plain + .sec { padding-top: var(--site-section); }

/* a real test, step by step */
.why { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: var(--site-gap); align-items: start; }
.annot { margin: 0; }
.annot figcaption { margin-top: var(--space-2); font-size: var(--text-ui); }
.verdict-panel { display: flex; flex-direction: column; gap: var(--space-4-5); }
.verdict-panel h3 { font-size: var(--text-3xl); letter-spacing: -0.02em; line-height: 1.25; margin-top: var(--space-3); }
.vp-meta { margin-top: var(--space-2); font-size: var(--text-md); color: var(--ink-3); }
.steps-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.steps-list li { display: grid; grid-template-columns: var(--space-8-5) minmax(0, 1fr); padding: var(--space-2-5) 0; border-bottom: 1px solid var(--line); font-size: var(--text-base); align-items: start; }
.steps-list .n { width: var(--space-5-5); height: var(--space-5-5); border-radius: var(--radius-full); background: var(--pass-bg); color: var(--pass); font-size: var(--text-meta); font-weight: var(--weight-bold); display: grid; place-items: center; }
.steps-list small { display: block; color: var(--ink-3); font-size: var(--text-ui); font-family: var(--mono); overflow-wrap: anywhere; }

/* what it does that the alternatives don't */
.versus { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: var(--space-8) 0 var(--space-13); border-top: 1.5px solid var(--ink); }
.versus > div { padding: var(--space-4-5) var(--space-6) var(--space-1) 0; }
.versus > div + div { padding-left: var(--space-6); border-left: 1px solid var(--line); }
.versus h3 { font-size: var(--text-lg); color: var(--ink-3); font-weight: var(--weight-semibold); }
.versus p { margin-top: var(--space-1-5); color: var(--ink-2); }
.versus .us h3 { color: var(--brand); }
.versus .us p { color: var(--ink); font-weight: var(--weight-medium); }
.ledger { border-top: 1.5px solid var(--ink); }
.led { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-4) var(--site-gap); padding: var(--space-8) 0; border-bottom: 1px solid var(--line); align-items: start; }
.led h3, .db-head h3 { font-size: var(--text-2xl); line-height: 1.3; }
.led p, .db-head p { color: var(--ink-2); }
.led p + p { margin-top: var(--space-2-5); }
.proof-mini { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3) var(--space-3-5); font-size: var(--text-md); }
.proof-mini .row { display: flex; gap: var(--space-2-5); align-items: center; padding: var(--space-1-5) 0; flex-wrap: wrap; }
.proof-mini .row + .row { border-top: 1px solid var(--line); }
.proof-mini .k { color: var(--ink-3); font-size: var(--text-ui); }
.data-band { padding: var(--space-8) 0 var(--space-10); border-bottom: 1px solid var(--line); }
.db-head { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: var(--space-3) var(--site-gap); align-items: start; }
.kinds3 { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); font-size: var(--text-md); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--space-5-5); }
.kinds3 > div { padding: var(--space-4) var(--space-4-5); }
.kinds3 > div + div { border-left: 1px solid var(--line); }
.kinds3 b { display: flex; gap: var(--space-1-75); align-items: center; font-weight: var(--weight-semibold); }
.kinds3 span { display: block; margin-top: var(--space-0-5); color: var(--ink-2); }
.db-rules { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-3) var(--site-gap); margin-top: var(--space-4-5); color: var(--ink-2); font-size: var(--text-base); }
.stages { list-style: none; margin: 0; padding: 0; counter-reset: st; }
.stages li { counter-increment: st; display: grid; grid-template-columns: var(--space-6-5) minmax(0, 1fr); gap: var(--space-2-5); font-size: var(--text-md); padding: var(--space-1-5) 0; color: var(--ink-2); }
.stages li::before { content: counter(st); width: var(--space-5-5); height: var(--space-5-5); border-radius: var(--radius-full); border: 1.5px solid var(--line-strong); display: grid; place-items: center; font-size: var(--text-meta); font-weight: var(--weight-semibold); }
.code .c { color: var(--bottle-200); }
.code { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; scrollbar-width: thin; }
code, .mono { font-variant-ligatures: none; }

/* the five results, door tags at specimen scale */
.rack { border-top: 1.5px solid var(--ink); margin-top: var(--space-8); }
.rack-row { display: grid; grid-template-columns: var(--site-rack-tag) minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--space-4) var(--site-gap); padding: var(--space-6-5) 0; border-bottom: 1px solid var(--line); align-items: start; }
.rack-row .then { color: var(--ink-3); font-size: var(--text-base); }

/* when tests run */
.runs-when { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--site-gap); align-items: start; }
.code-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.code-tabs button { white-space: nowrap; flex: none; }
.when-list { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.when-list li { display: grid; grid-template-columns: var(--space-9) minmax(0, 1fr); gap: var(--space-3-5); padding: var(--space-4-5) 0; border-bottom: 1px solid var(--line); }
.when-list .ic { width: var(--space-9); height: var(--space-9); border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center; color: var(--ink-2); }
.when-list b { display: block; font-weight: var(--weight-semibold); }
.when-list span { color: var(--ink-2); font-size: var(--text-base); }
.lock-note { display: flex; gap: var(--space-1-5); align-items: flex-start; font-size: var(--text-ui); color: var(--ink-3); margin-top: var(--space-1); }
.lock-note .i { margin-top: var(--space-0-75); flex: none; }

/* plans */
.plans-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--space-4) var(--space-6); flex-wrap: wrap; margin-bottom: var(--space-7); }
.plans-head h2 { font-size: var(--text-site-h2); max-width: 16ch; }
.plans-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; margin-bottom: var(--space-3-5); }
.plans-strip > div { padding: var(--space-5-5) var(--space-5-5) var(--space-6); }
.plans-strip > div + div { border-left: 1px solid var(--line); }
.plans-strip h3 { font-size: var(--text-lg); }
.plans-strip .price { font-size: var(--text-6xl); font-weight: var(--weight-semibold); letter-spacing: -0.03em; margin-top: var(--space-1-5); font-variant-numeric: tabular-nums; }
.plans-strip .price small { font-size: var(--text-md); font-weight: var(--weight-regular); color: var(--ink-3); letter-spacing: 0; }
.plans-strip ul { list-style: none; padding: 0; margin: var(--space-3) 0 0; font-size: var(--text-md); color: var(--ink-2); display: flex; flex-direction: column; gap: var(--space-1); }

/* the closing band */
.close { background: var(--shell); color: var(--shell-ink); padding: var(--site-section) 0; }
.close h2 { color: var(--white); font-size: var(--text-site-h2); max-width: 18ch; }
.close .lead { color: var(--shell-ink-2); margin-top: var(--space-4); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--site-gap-lg); align-items: end; }

/* ---------- page heads (pricing, docs, legal, first look) ---------- */
.page-head { background: var(--shell); color: var(--shell-ink); padding: var(--site-hero-pad) 0; }
.page-head h1 { font-size: var(--text-site-page); color: var(--white); max-width: 20ch; }
.page-head .lead { color: var(--shell-ink-2); margin-top: var(--space-3-5); max-width: 60ch; }
.page-head--tab { padding-bottom: var(--site-section-sm); }

/* ---------- pricing ---------- */
.bill { display: inline-flex; margin-top: var(--space-7); background: var(--white-a6); border: 1px solid var(--shell-line); border-radius: var(--radius-md); padding: var(--space-0-75); }
.bill button { border: 0; background: none; color: var(--shell-ink-2); padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); cursor: pointer; font-weight: var(--weight-medium); font-size: var(--text-md); }
.bill button[aria-pressed="true"] { background: var(--mint); color: var(--shell); font-weight: var(--weight-semibold); }
.ptable-wrap { margin-top: calc(-1 * var(--space-9)); position: relative; z-index: 2; }
.ptable { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--site-shadow); table-layout: fixed; }
.ptable th, .ptable td { padding: var(--space-3) var(--space-4-5); border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; font-size: var(--text-base); }
.ptable tbody tr:last-child td, .ptable tbody tr:last-child th { border-bottom: 0; }
.ptable thead th { vertical-align: top; padding: var(--space-5-5) var(--space-4-5) var(--space-5); font-weight: var(--weight-regular); }
.ptable thead th:first-child { width: 26%; }
.ptable td + td, .ptable th + th, .ptable th + td { border-left: 1px solid var(--line); }
.ptable tbody th { font-weight: var(--weight-medium); color: var(--ink-2); font-size: var(--text-md); }
.ptable .pname { font-size: var(--text-h3); font-weight: var(--weight-semibold); color: var(--ink); display: block; }
.ptable .pfor { font-size: var(--text-sm); color: var(--ink-3); display: block; margin-top: var(--space-0-5); min-height: 2.6em; }
.pprice { font-size: var(--text-price); font-weight: var(--weight-semibold); letter-spacing: -0.03em; display: block; margin-top: var(--space-3); font-variant-numeric: tabular-nums; color: var(--ink); line-height: 1.1; }
.pper { font-size: var(--text-sm); color: var(--ink-3); display: block; min-height: 2.6em; }
.ptable .btn, .pcard .btn { width: 100%; margin-top: var(--space-3-5); }
.ptable td.num { font-weight: var(--weight-semibold); color: var(--ink); }
.yes { color: var(--pass); display: inline-flex; gap: var(--space-1-5); align-items: center; font-weight: var(--weight-medium); }
.no { color: var(--ink-3); display: inline-flex; gap: var(--space-1-5); align-items: center; }
.ptable .grp th { background: var(--surface-2); font-size: var(--text-ui); color: var(--ink-3); font-weight: var(--weight-semibold); padding: var(--space-2-25) var(--space-4-5); }
.ptable .rec { background: var(--pass-bg); }
[data-for="year"] { display: none; }
[data-interval-now="year"] [data-for="year"] { display: revert; }
[data-interval-now="year"] [data-for="month"] { display: none; }
.pcards { display: none; }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5); }
.pcard ul { list-style: none; padding: 0; margin: var(--space-3-5) 0 var(--space-4); display: flex; flex-direction: column; gap: var(--space-1-5); }
.pcard li { display: flex; gap: var(--space-2); align-items: flex-start; }
.pcard li .i { margin-top: var(--space-1); color: var(--pass); flex: none; }
.pcard li.off { color: var(--ink-3); }
.pcard li.off .i { color: var(--ink-3); }
.costs { border-top: 1.5px solid var(--ink); }
.cost-row { display: grid; grid-template-columns: var(--site-cost-w) minmax(0, 1fr); gap: var(--space-5); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.cost-row b { font-size: var(--text-2xl); font-weight: var(--weight-semibold); font-variant-numeric: tabular-nums; }
.cost-row span { color: var(--ink-2); }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--site-gap-lg); align-items: start; }
.calc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.calc-in { padding: var(--space-5-5); display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4) var(--space-4-5); align-items: end; }
.calc-out { display: block; background: var(--shell); color: var(--shell-ink); padding: var(--space-5) var(--space-5-5); }
.calc-out .big { font-size: var(--text-6xl); font-weight: var(--weight-semibold); letter-spacing: -0.03em; color: var(--white); font-variant-numeric: tabular-nums; }
.calc-out .big small { font-size: var(--text-base); font-weight: var(--weight-regular); color: var(--shell-ink-2); letter-spacing: 0; }
.calc-out p { color: var(--shell-ink-2); font-size: var(--text-md); margin-top: var(--space-1); }
.calc-out p b { color: var(--mint); font-weight: var(--weight-semibold); }
.calc-out .warn { color: var(--ochre-200); display: flex; gap: var(--space-1-75); }
.calc-note { padding: var(--space-3) var(--space-5-5); font-size: var(--text-ui); color: var(--ink-3); border-top: 1px solid var(--line); }
.extra { display: flex; gap: var(--space-5); align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-5-5) var(--space-6); }
.extra b { font-size: var(--text-3xl); font-weight: var(--weight-semibold); }
.faq { border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: var(--space-4-5) var(--space-9) var(--space-4-5) 0; font-weight: var(--weight-semibold); font-size: var(--text-xl); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: var(--space-1-5); top: 50%; width: var(--space-2-5); height: var(--space-2-5); margin-top: calc(-1 * var(--space-1-5)); border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details > div { padding: 0 0 var(--space-5); color: var(--ink-2); max-width: 68ch; }

/* ---------- docs and legal: the frame is the world's, the column stays calm ---------- */
.doc { display: grid; grid-template-columns: var(--site-toc-w) minmax(0, 1fr); gap: var(--site-gap); padding-top: var(--space-12); padding-bottom: var(--site-section); align-items: start; }
.toc { position: sticky; top: var(--space-5); font-size: var(--text-md); max-height: calc(100vh - var(--space-10)); overflow-y: auto; }
.toc h2 { font-size: var(--text-ui); font-weight: var(--weight-semibold); color: var(--ink-3); letter-spacing: 0; margin: var(--space-4-5) 0 var(--space-1-5) var(--space-2-5); line-height: 1.3; }
.toc h2:first-child { margin-top: 0; }
.toc ol, .toc ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-px); }
.toc a { display: block; padding: var(--space-1-5) var(--space-2-5); border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; line-height: 1.35; }
.toc a:hover { background: var(--bottle-a6); color: var(--ink); }
.toc a[aria-current="true"], .toc a.is-here { background: var(--leg-bg); color: var(--leg); font-weight: var(--weight-medium); }
.prose { max-width: 72ch; min-width: 0; }
.prose section { scroll-margin-top: var(--space-6); }
.prose section + section { margin-top: var(--space-16); padding-top: var(--space-12); border-top: 1px solid var(--line); }
.prose h2 { font-size: var(--text-site-doc); letter-spacing: -0.025em; line-height: 1.15; margin-bottom: var(--space-3-5); }
.prose h3 { font-size: var(--text-2xl); margin: var(--space-8) 0 var(--space-2); }
.prose p, .prose li { color: var(--ink-2); line-height: 1.7; }
.prose p + p { margin-top: var(--space-3); }
.prose ul, .prose ol { padding-left: var(--space-5-5); margin: var(--space-3) 0; }
.prose li + li { margin-top: var(--space-1-5); }
.prose strong { color: var(--ink); font-weight: var(--weight-semibold); }
.prose code { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xs); padding: var(--space-px) var(--space-1-25); font-size: 0.86em; color: var(--ink); }
.prose .code, .prose .code-wrap { margin: var(--space-4) 0; }
.prose table, .dtable { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: var(--text-base); background: var(--surface); border: 1px solid var(--line); }
.prose th, .prose td { text-align: left; padding: var(--space-2-75) var(--space-3-5); border-bottom: 1px solid var(--line); vertical-align: top; color: var(--ink-2); }
.prose th { background: var(--surface-2); font-weight: var(--weight-semibold); color: var(--ink); font-size: var(--text-sm); }
.callout { display: grid; grid-template-columns: var(--space-5-5) minmax(0, 1fr); gap: var(--space-2-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-3-5) var(--space-4); margin: var(--space-4-5) 0; color: var(--ink-2); }
.callout .i { color: var(--leg); margin-top: var(--space-0-75); }
.tagdef { list-style: none; padding: 0; margin: var(--space-4) 0; border-top: 1px solid var(--line); }
.tagdef li { display: grid; grid-template-columns: var(--site-tagdef-w) minmax(0, 1fr); gap: var(--space-4); padding: var(--space-3-5) 0; border-bottom: 1px solid var(--line); margin: 0; align-items: start; }
.prose-next { margin-top: var(--space-13); display: flex; gap: var(--space-3); flex-wrap: wrap; }
.toc-select { display: none; }

/* ---------- small pieces shared by the pages ---------- */
.h2-solo + .lead { margin-top: var(--space-3); }
.costs { margin-top: var(--space-6); }
.calc-out .big, .calc-out [data-out='lines'] { display: block; }
.h3-solo { font-size: var(--text-3xl); margin-bottom: var(--space-3-5); }
.pnote { margin-top: var(--space-3-5); }
.field { display: flex; flex-direction: column; gap: var(--space-1-5); font-size: var(--text-ui); font-weight: var(--weight-medium); color: var(--ink); }
.extra__list { list-style: none; margin: 0; padding: 0; }
.page-head__meta { margin-top: var(--space-3); color: var(--shell-ink-2); font-size: var(--text-md); }
.page-head__meta p { margin: 0; }

/* ---------- sign-in pages (auth/frame.html): the form on the ground, a shell panel that says what happens next.
   On a phone the panel is a short band above the form. ---------- */
.split { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--ground); color: var(--ink); }
.split__form { display: flex; flex-direction: column; gap: var(--space-8); padding: var(--space-8) var(--site-gutter); align-items: center; }
.split__form > * { width: 100%; max-width: var(--site-auth-w); }
.split__brand { display: inline-flex; align-items: center; gap: var(--space-2-5); text-decoration: none; color: var(--ink); }
.split__brand .brand__mark { width: var(--site-logo); height: var(--site-logo); }
.split__brand .brand__name { font-weight: var(--weight-bold); font-size: var(--text-xl); letter-spacing: -0.01em; }
.split__card { margin: auto; display: flex; flex-direction: column; gap: var(--space-5); }
.split__tabs { display: flex; gap: var(--space-6); border-bottom: 1px solid var(--line); }
.split__tabs a { text-decoration: none; font-weight: var(--weight-semibold); padding: var(--space-2-5) 0; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.split__tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--shell); }
.split__head { display: flex; flex-direction: column; gap: var(--space-2); }
.split__head .h1 { margin: 0; font-size: var(--text-3xl); font-weight: var(--weight-semibold); line-height: 1.15; letter-spacing: -0.02em; }
.split__head .muted, .split__card > .muted { margin: 0; color: var(--ink-2); }
.split__fields { display: flex; flex-direction: column; gap: var(--space-3-5); }
.split .field { display: flex; flex-direction: column; gap: var(--space-1-5); font-size: var(--text-sm); font-weight: var(--weight-semibold); color: var(--ink); }
.split .hint { font-weight: var(--weight-regular); color: var(--muted); }
.split .input { min-height: var(--site-control); font-size: var(--text-base); }
.split .btn.lg { width: 100%; justify-content: center; }
.split .error { margin: 0; padding: var(--space-3) var(--space-3-5); border-radius: var(--radius-md); background: var(--fail-bg); color: var(--fail-ink); border: 1px solid var(--fail-line); font-size: var(--text-sm); }
.split__label { display: flex; justify-content: space-between; gap: var(--space-3); }
.split__label a { font-size: var(--text-sm); color: var(--ink-2); font-weight: var(--weight-medium); }
.split__note, .split__consent, .split__legal { margin: 0; font-size: var(--text-sm); line-height: 1.5; color: var(--muted); }
.split__legal a { color: inherit; }
.split .auth__alt { margin: 0; font-size: var(--text-sm); color: var(--ink-2); }
.split .auth__link { font-size: var(--text-sm); }
.split__or { display: flex; align-items: center; gap: var(--space-3-5); color: var(--muted); font-size: var(--text-sm); }
.split__or::before, .split__or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.split__providers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--space-30)), 1fr)); gap: var(--space-2-5); }
.split__panel { display: flex; align-items: center; padding: var(--space-16) var(--site-gap); background: var(--shell); color: var(--shell-ink); }
.split__panel-in { max-width: var(--site-form-w); display: flex; flex-direction: column; gap: var(--space-7); }
.split__title { margin: 0; font-size: var(--text-site-h2); font-weight: var(--weight-semibold); line-height: 1.15; letter-spacing: -0.02em; color: var(--white); text-wrap: balance; }
.split__title .mark--pass { color: var(--pass-line); }
.split__host { overflow-wrap: anywhere; color: var(--pass-line); }
.split__lead { margin: 0; font-size: var(--text-site-lead); line-height: 1.6; color: var(--shell-ink-2); max-width: 44ch; }
.split__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); max-width: 46ch; }
.split__points li { display: flex; gap: var(--space-2-5); font-size: var(--text-base); line-height: 1.5; color: var(--shell-ink-2); }
.split__points .icon { flex: none; color: var(--pass-line); translate: 0 .2em; }
.split__foot { margin: 0; font-size: var(--text-sm); color: var(--shell-ink-2); }
.split__foot strong { color: var(--white); }
.split__panel a { color: inherit; }

/* ---------- the cookie banner (partials/cookie_banner.html) ---------- */
.cookie-banner { position: fixed; left: var(--space-4); bottom: var(--space-4); z-index: 30; max-width: var(--site-banner-w); display: flex; flex-direction: column; gap: var(--space-3); padding: var(--space-4) var(--space-5); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-pop); }
.cookie-banner__title { margin: 0; font-size: var(--text-lg); font-weight: var(--weight-semibold); letter-spacing: 0; line-height: 1.3; }
.cookie-banner__text { margin: 0; font-size: var(--text-sm); color: var(--ink-2); line-height: 1.55; }
.cookie-banner__actions { display: flex; gap: var(--space-2); }
.cookie-banner__actions .btn { flex: 1 1 0; }
.cookie-banner__choices { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-md); margin-bottom: var(--space-2); }
.cookie-banner__choices[hidden] { display: none; }
.cookie-banner__choice { display: flex; gap: var(--space-2); align-items: flex-start; font-size: var(--text-sm); color: var(--ink-2); line-height: 1.5; }
.cookie-banner__choice input { margin-top: var(--space-1); flex: none; accent-color: var(--shell); }
.cookie-banner__choice strong { color: var(--ink); margin-right: var(--space-1); }

/* ---------- legal ---------- */
.legal__company { font-style: normal; display: grid; gap: var(--space-0-5); margin-top: var(--space-3-5); padding: var(--space-4) var(--space-5); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink-2); }
.legal__company strong { color: var(--ink); }
.legal__list { list-style: none; padding: 0; }
.legal__list li { padding: var(--space-2-5) 0; border-bottom: 1px solid var(--line); }
.legal__table { overflow-x: auto; }
.legal__table .mono { white-space: nowrap; }
.cookie-choices { display: flex; flex-direction: column; gap: var(--space-3); max-width: var(--site-form-w); margin: var(--space-4) 0; }
.cookie-choices .actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }

/* ---------- docs: the demo video ---------- */
.docs-video { margin: var(--space-4) 0 0; }
.docs-video__player { width: 100%; height: auto; display: block; border-radius: var(--radius-md); border: 1px solid var(--line); background: var(--screen-ink); }
.docs-video__caption { margin-top: var(--space-3); color: var(--ink-2); }

/* ---------- the first look (try.html): looking, then what it found ---------- */
.try, .look { padding: var(--site-hero-pad) 0 var(--site-section); }
.try__in, .look__in { max-width: var(--site-max); margin: 0 auto; padding: 0 var(--site-gutter); }
.try__title, .look__title { font-size: var(--text-site-page); max-width: 20ch; }
.try__lead, .look__lead { margin-top: var(--space-4); font-size: var(--text-site-lead); color: var(--ink-2); max-width: 60ch; }
.try__note, .look__note { margin-top: var(--space-3); font-size: var(--text-md); color: var(--ink-3); max-width: 60ch; }
.try__again { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-2-5); max-width: var(--site-form-w); }
.try__again .input { flex: 1; min-width: 0; }
.try__h { font-size: var(--text-2xl); margin-top: var(--space-8); }
.try__pages { margin-top: var(--space-10); padding-top: var(--space-2); border-top: 1.5px solid var(--ink); }
.try__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: var(--space-6); margin-top: var(--space-4); }
.try__page { margin: 0; display: grid; gap: var(--space-2-5); align-content: start; }
.try__page img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.try__page figcaption { display: grid; gap: var(--space-0-5); font-size: var(--text-md); overflow-wrap: anywhere; }
.try__list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-2); overflow-wrap: anywhere; }
.try__cta { margin-top: var(--space-10); }
.look__sheet { margin-top: var(--space-10); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--site-gap); align-items: center; }
.look__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3); }
.look__steps li { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-xl); color: var(--ink-3); }
.look__steps li::before { content: ""; width: var(--space-3); height: var(--space-3); border-radius: var(--radius-full); border: 1.5px dashed var(--line-strong); flex: none; }
.look__steps li.is-now { color: var(--ink); font-weight: var(--weight-semibold); }
.look__steps li.is-now::before { border: 0; background: var(--run); animation: look-pulse 1.4s ease-out infinite; }
.look__steps li.is-done { color: var(--ink-2); }
.look__steps li.is-done::before { border: 0; background: var(--pass); }
@keyframes look-pulse { 50% { opacity: 0.35; } }
.look__frame { margin: 0; border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; box-shadow: var(--site-shadow); }
.look__bar { display: flex; align-items: center; gap: var(--space-2); padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); font-size: var(--text-ui); color: var(--ink-3); }
.look__bar i { width: var(--space-2); height: var(--space-2); border-radius: var(--radius-full); background: var(--line-strong); }
.look__bar em { font-family: var(--mono); font-style: normal; color: var(--ink); overflow-wrap: anywhere; }
.look__page { position: relative; padding: var(--space-5); display: grid; gap: var(--space-2-5); min-height: var(--site-look-h); }
.look__page b { display: block; height: var(--space-2-5); border-radius: var(--radius-xs); background: var(--surface-2); width: calc(100% - var(--i, 0) * 9%); }
.look__cursor { position: absolute; width: var(--space-5); height: var(--space-5); fill: var(--ink); left: 40%; top: 40%; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .hb-grid { grid-template-columns: minmax(0, 1fr); }
  .rack-row { grid-template-columns: var(--site-rack-tag) minmax(0, 1fr); }
  .rack-row .then { grid-column: 2; }
  .led { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .led > :last-child { grid-column: 2; }
}
@media (max-width: 900px) {
  .ptable-wrap { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); min-height: 0; align-content: start; }
  .split__panel { order: -1; padding: var(--space-7) var(--site-gutter); }
  .split__panel-in { gap: var(--space-3-5); }
  .split__lead, .split__points { display: none; }
  .split__title { font-size: var(--text-2xl); }
  .split__form { padding: var(--space-6) var(--site-gutter) var(--space-10); gap: var(--space-6); }
  .split__card { margin: 0 auto; }
  .pcards { display: flex; flex-direction: column; gap: var(--space-3-5); margin-top: calc(-1 * var(--space-7)); position: relative; z-index: 2; }
  .doc { grid-template-columns: minmax(0, 1fr); padding-top: 0; gap: var(--space-5); }
  .toc { display: none; }
  .toc-select { display: block; position: sticky; top: 0; z-index: 5; background: var(--ground); padding: var(--space-2-5) 0; border-bottom: 1px solid var(--line); }
  .tagdef li { grid-template-columns: minmax(0, 1fr); gap: var(--space-1-5); }
  .look__sheet { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .sec-head, .why, .runs-when, .two, .hero-grid, .db-head, .db-rules { grid-template-columns: minmax(0, 1fr); }
  .plans-strip { grid-template-columns: 1fr 1fr; }
  .plans-strip > div:nth-child(3) { border-left: 0; }
  .plans-strip > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
  .led { grid-template-columns: minmax(0, 1fr); padding: var(--space-6-5) 0; gap: var(--space-3); }
  .led > :last-child { grid-column: auto; }
  .versus, .kinds3 { grid-template-columns: minmax(0, 1fr); }
  .versus > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .kinds3 > div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .s-nav, [data-hide-sm] { display: none; }
  .s-menu { display: block; }
  .s-head-in { gap: var(--space-3); }
}
@media (max-width: 640px) {
  .hide-sm { display: none; }
  .show-sm { display: block; color: var(--ink-2); }
  .runs-when .code-wrap { display: none; }
  .cookie-banner { left: var(--space-3); right: var(--space-3); bottom: var(--space-3); max-width: none; }
  .url-form { flex-direction: column; max-width: none; }
  .url-form .btn { width: 100%; }
  .hero-board h1 { font-size: var(--text-6xl); }
  .pb-key, .stages { display: none; }
  .pb-side { grid-template-columns: minmax(0, 1fr); padding: var(--space-3-5); }
  .js .pb-side:not(.is-chosen) { display: none; }
  .pb .board, .pb .board tbody { display: block; }
  .pb .board thead { display: none; }
  .pb .board tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-2) var(--space-2-5); padding: var(--space-3) var(--space-3-5); border-bottom: 1px solid var(--line); }
  .pb .board td { display: block; padding: 0; height: auto; border: 0; }
  .pb .board td:first-child { grid-column: 1 / -1; }
  .pb .board tr.is-sel { background: var(--leg-bg); box-shadow: inset 2px 0 0 var(--leg); }
  .pb .board tr.is-sel td, .pb .board tr.is-sel td:first-child { background: none; box-shadow: none; }
  .pb .board td[data-kind]::before { content: attr(data-kind); display: block; font-size: var(--text-meta); color: var(--ink-3); margin-bottom: var(--space-1); }
  .pb .pg span { display: none; }
  .pb .board .tag .lbl { display: inline; }
  .pb .board .tag { gap: var(--space-1-25); padding: 0 var(--space-2-25) 0 var(--space-2); -webkit-mask: none; mask: none; }
  .plans-strip { grid-template-columns: minmax(0, 1fr); }
  .plans-strip > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .calc-in { grid-template-columns: minmax(0, 1fr); }
  .rack-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2-5); padding: var(--space-4) 0; }
  .rack-row .then { grid-column: auto; }
  .foot-grid { grid-template-columns: minmax(0, 1fr); }
  .sec, .close { padding: var(--space-12) 0; }
  .prose table, .prose tbody, .prose tr, .prose td { display: block; width: auto; }
  .prose thead { display: none; }
  .prose tr { border-bottom: 1px solid var(--line); padding: var(--space-2) 0; }
  .prose td { border: 0; padding: var(--space-0-5) var(--space-3-5); overflow-wrap: anywhere; }
}
@media (prefers-reduced-motion: reduce) {
  .site *, .site *::before, .site *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
