/* DataBull marketing site. Same type and colours as the dashboard (Bricolage Grotesque for display
   and numbers, DM Sans for text), minimal hairline layout, light + dark, solid surfaces. */
/* Fonts, self-hosted (SIL OFL, from Google Fonts): latin is preloaded by every page, latin-ext loads on demand. */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/bricolage-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600 800; font-display: swap; src: url(/assets/fonts/bricolage-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/dmsans-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(/assets/fonts/dmsans-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/jetbrainsmono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-weight: 400 500; font-display: swap; src: url(/assets/fonts/jetbrainsmono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --card: #ffffff;
  --card-2: #f7f9fc;
  --line: #e6eaf0;
  --line-2: #eef1f6;
  --ink: #060a12;
  --text: #1b2230;
  --muted: #6b7486;
  --faint: #9aa3b2;
  --brand: #004296;
  --brand-hover: #00347a;
  --brand-soft: #e8eef7;
  --red: #d2123c;
  --red-soft: #fbe9ed;
  --ok: #08794f;
  --ok-soft: #e3f2ec;
  --visitors: #3b78d8;
  --visitors-fill: #e8f0fb;
  --revenue: #ec7d93;
  --bar-row: #e3ecf8;
  --bar-row-rev: #f8dfe5;
  --tip: #0b1220;
  --btn: #060a12;
  --btn-text: #ffffff;
  --map-land: #e9edf3;
  --map-line: #ffffff;
  --r-card: 16px;
  --r-ctl: 10px;
  --r-in: 7px;
  --display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
:root[data-theme='dark'] {
  --bg: #0a0c11;
  --bg-soft: #0e1117;
  --card: #10131a;
  --card-2: #141821;
  --line: #1e2430;
  --line-2: #191e28;
  --ink: #f2f4f8;
  --text: #d7dce5;
  --muted: #8b94a6;
  --faint: #5d6678;
  --brand: #5b9bf0;
  --brand-hover: #7cb0f5;
  --brand-soft: #14233d;
  --red: #ff5470;
  --red-soft: #2a1219;
  --ok: #3ccf91;
  --ok-soft: #10261d;
  --visitors: #5b9bf0;
  --visitors-fill: #122039;
  --revenue: #e0607a;
  --bar-row: #152238;
  --bar-row-rev: #2a1620;
  --tip: #1c2230;
  --btn: #f2f4f8;
  --btn-text: #0a0c11;
  --map-land: #1a1f2a;
  --map-line: #0a0c11;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
a { color: var(--brand); }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; }
code, .mono { font-family: var(--mono); }
code { font-size: .86em; background: var(--card-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
::selection { background: var(--brand-soft); }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 100%, transparent); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 60px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font: 700 18px var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none; }
.nav-links { display: flex; gap: 22px; }
.nav-links a, .nav-right a.link { color: var(--muted); text-decoration: none; font-size: 14.5px; transition: color .2s; }
.nav-links a:hover, .nav-right a.link:hover { color: var(--ink); }
.nav-right { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.theme { width: 34px; height: 34px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--card); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--muted); transition: color .2s, border-color .2s; }
.theme:hover { color: var(--ink); border-color: var(--faint); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: var(--r-ctl); font: 600 14.5px var(--body); text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--btn); color: var(--btn-text); }
.btn-primary:hover { transform: translateY(-1px); }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-hover); transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--faint); transform: translateY(-1px); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 13.5px; }

/* hero */
.hero { padding: 96px 0 40px; text-align: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px var(--mono); color: var(--muted); letter-spacing: .02em; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 50%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
h1 { font: 700 clamp(40px, 6.2vw, 68px)/1.02 var(--display); letter-spacing: -.04em; color: var(--ink); margin: 20px auto 20px; max-width: 900px; }
h1 .w { display: inline-block; opacity: 0; transform: translateY(18px); filter: blur(6px); animation: word .8s var(--ease) forwards; }
@keyframes word { to { opacity: 1; transform: none; filter: none; } }
h1 em { font-style: normal; color: var(--brand); }
.lede { font-size: 18.5px; color: var(--muted); max-width: 600px; margin: 0 auto 30px; }
.ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.proof { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.works { margin-top: 54px; }
.works-label { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
.works-row { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; }
.works-row a { display: flex; flex-direction: column; align-items: center; gap: 8px; text-decoration: none; color: var(--muted); font-size: 13px; transition: color .2s, transform .25s var(--ease); }
.works-row a:hover { color: var(--ink); transform: translateY(-3px); }
.tile { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); display: flex; align-items: center; justify-content: center; transition: border-color .2s, box-shadow .2s; }
.works-row a:hover .tile { border-color: var(--faint); box-shadow: 0 8px 22px -12px rgba(0, 0, 0, .25); }
.tile img, .tile svg { width: 22px; height: 22px; }
:root[data-theme='dark'] img.inv { filter: invert(1); }

/* fig frames */
.frame { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); overflow: hidden; }
.fig { margin-top: 12px; display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.fig b { font: 400 13px var(--mono); color: var(--faint); }
.hint { color: var(--ink); }

/* demo dashboard (Fig. 1) */
.demo { margin: 56px auto 0; max-width: 1080px; text-align: left; }
.d-top { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.d-site { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); font-size: 13.5px; font-weight: 500; color: var(--ink); }
.d-site img { width: 16px; height: 16px; border-radius: 4px; }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-ctl); }
.seg button { border: 0; background: none; height: 28px; padding: 0 11px; border-radius: var(--r-in); font-size: 12.5px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.seg button:hover:not(.on) { color: var(--ink); }
.d-live { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); }
.d-live b { color: var(--ink); font-family: var(--display); }
.filter-chip { display: none; align-items: center; gap: 6px; height: 28px; padding: 0 6px 0 10px; border-radius: var(--r-in); background: var(--brand-soft); color: var(--brand); font-size: 12.5px; }
.filter-chip.on { display: inline-flex; animation: pop .3s var(--ease); }
.filter-chip button { border: 0; background: none; cursor: pointer; color: inherit; font-size: 15px; line-height: 1; padding: 0 4px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } }
.kpis { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.kpi { padding: 16px 18px 14px; border-right: 1px solid var(--line-2); cursor: pointer; position: relative; transition: background .2s; text-align: left; border-top: 0; border-left: 0; border-bottom: 0; background: none; }
.kpi:last-child { border-right: 0; }
.kpi:hover { background: var(--card-2); }
.kpi .l { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.kpi .sw { width: 8px; height: 8px; border-radius: 2px; background: var(--faint); transition: background .2s; }
.kpi.on[data-k='visitors'] .sw { background: var(--visitors); }
.kpi.on[data-k='revenue'] .sw { background: var(--revenue); }
.kpi .v { font: 700 24px/1.2 var(--display); letter-spacing: -.02em; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .c { font-size: 12px; margin-top: 2px; color: var(--ok); }
.kpi .c.down { color: var(--red); }
.kpi.static { cursor: default; }
.chart { position: relative; height: 300px; padding: 18px 12px 6px 0; }
.chart svg { width: 100%; height: 100%; overflow: visible; display: block; }
.axis { font: 11px var(--body); fill: var(--faint); }
.grid { stroke: var(--line-2); stroke-dasharray: 3 4; }
.vline { fill: none; stroke: var(--visitors); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.varea { fill: var(--visitors-fill); }
.rbar { fill: var(--revenue); transition: opacity .2s; }
.draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.6s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.grow { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: grow .9s var(--ease) forwards; }
@keyframes grow { to { transform: scaleY(1); } }
.fade-in { opacity: 0; animation: fadein .8s .3s var(--ease) forwards; }
@keyframes fadein { to { opacity: 1; } }
.cursor { stroke: var(--faint); stroke-dasharray: 3 3; }
.tipbox { position: absolute; pointer-events: none; background: var(--tip); color: #fff; border-radius: var(--r-ctl); padding: 10px 12px; font-size: 12.5px; min-width: 180px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .45); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .15s; z-index: 5; }
.tipbox.on { opacity: 1; transform: none; }
.tipbox .t { font-weight: 600; margin-bottom: 6px; }
.tipbox .r { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.tipbox .r i { width: 10px; height: 10px; border-radius: 3px; }
.tipbox .r b { margin-left: auto; }
.tipbox .f { margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .12); color: rgba(255, 255, 255, .7); display: flex; gap: 6px; align-items: center; }
.tipbox .f img { width: 13px; height: 13px; }
.panels { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; border-top: 1px solid var(--line); background: var(--card-2); }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.sort { border: 0; background: none; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.sort:hover { color: var(--ink); }
.rows { display: flex; flex-direction: column; gap: 3px; }
.row { position: relative; display: flex; align-items: center; height: 32px; padding: 0 10px; border-radius: var(--r-in); cursor: pointer; font-size: 13px; overflow: hidden; transition: transform .2s var(--ease); }
.row:hover { transform: translateX(2px); }
.row .bar { position: absolute; inset: 0 auto 0 0; background: var(--bar-row); border-radius: var(--r-in); transition: width .7s var(--ease); }
.row .bar.rev { background: var(--bar-row-rev); }
.row > span { position: relative; display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--text); }
.row .n { margin-left: auto; position: relative; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }
.row.active { box-shadow: inset 0 0 0 1.5px var(--brand); }
.row img, .row .ic { width: 15px; height: 15px; flex: none; border-radius: 3px; }
.row .ic { display: inline-flex; align-items: center; justify-content: center; color: var(--muted); }
.row .pop { position: absolute; right: 70px; top: 50%; transform: translateY(-50%); background: var(--tip); color: #fff; font-size: 11.5px; padding: 3px 8px; border-radius: 6px; opacity: 0; transition: opacity .15s; pointer-events: none; white-space: nowrap; }
.row:hover .pop { opacity: 1; }

/* logo wall */
.wall { margin: 80px auto 0; }
.wall-label { text-align: center; font-size: 13.5px; color: var(--faint); margin-bottom: 16px; }
.wall-row { display: grid; grid-template-columns: repeat(8, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wall-row a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 76px; padding: 0 8px; border-right: 1px solid var(--line); color: var(--muted); text-decoration: none; font: 600 13.5px var(--display); white-space: nowrap; transition: color .2s, background .2s; }
.wall-row a:last-child { border-right: 0; }
.wall-row a:hover { color: var(--ink); background: var(--bg-soft); }
.wall-row img { width: 20px; height: 20px; border-radius: 5px; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.wall-row a:hover img { filter: none; opacity: 1; }

/* story layout */
.story { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 56px; padding: 96px 24px 40px; }
.story > *, .chapter, .frame { min-width: 0; }
.table-scroll { overflow-x: auto; }
.table-scroll table.t { min-width: 620px; }
.toc { position: sticky; top: 84px; align-self: start; }
.toc-label { font: 500 12.5px var(--mono); color: var(--faint); margin-bottom: 12px; }
.toc a { display: flex; gap: 12px; padding: 7px 10px; border-radius: var(--r-in); text-decoration: none; color: var(--muted); font-size: 14.5px; transition: background .2s, color .2s; }
.toc a b { font: 400 12.5px var(--mono); color: var(--faint); padding-top: 1px; }
.toc a:hover { color: var(--ink); }
.toc a.on { background: var(--card-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.toc-cta { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.toc-cta .btn { width: 100%; }
.toc-cta p { font-size: 12.5px; color: var(--faint); margin: 8px 0 0; }
.chapter { padding-bottom: 96px; margin-bottom: 96px; border-bottom: 1px solid var(--line); }
.chapter:last-child { border-bottom: 0; margin-bottom: 0; }
.num { font: 400 13px var(--mono); color: var(--faint); }
.num span { color: var(--muted); font-family: var(--body); font-size: 14.5px; margin-left: 6px; }
h2 { font: 700 clamp(28px, 3.4vw, 38px)/1.1 var(--display); letter-spacing: -.03em; color: var(--ink); margin: 10px 0 14px; max-width: 560px; }
.p { color: var(--muted); font-size: 16.5px; max-width: 600px; margin: 0 0 32px; }
.p strong { color: var(--ink); font-weight: 600; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* figure internals */
.fhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 20px 12px; }
.fhead h3 { margin: 0; font: 700 19px var(--display); color: var(--ink); letter-spacing: -.01em; }
.fhead p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.stats { display: grid; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 14px 18px; border-right: 1px solid var(--line-2); }
.stat:last-child { border-right: 0; }
.stat .l { font-size: 12px; color: var(--muted); }
.stat .v { font: 700 22px/1.25 var(--display); color: var(--ink); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat .c { font-size: 11.5px; color: var(--ok); }
.stat .c.down { color: var(--red); }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: right; font-weight: 500; color: var(--muted); font-size: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
table.t th:first-child, table.t td:first-child { text-align: left; }
table.t td { text-align: right; padding: 9px 14px; border-bottom: 1px solid var(--line-2); font-variant-numeric: tabular-nums; color: var(--text); }
table.t tbody tr { transition: background .15s; }
table.t tbody tr:hover { background: var(--card-2); }
table.t td .sub { display: block; font: 11.5px var(--mono); color: var(--faint); }
table.t .up { color: var(--ok); font-size: 11.5px; margin-left: 4px; }
.tbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.search { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); color: var(--muted); }
.search input { border: 0; outline: 0; background: none; font: inherit; font-size: 13px; width: 160px; color: var(--ink); }
.spark path { fill: none; stroke: var(--visitors); stroke-width: 1.6; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; }
.bars-chart { height: 200px; padding: 14px 16px 6px; }
.bars-chart svg { width: 100%; height: 100%; }
.bars-chart rect { fill: var(--revenue); transition: opacity .2s; }
.bars-chart rect:hover { opacity: .75; }

/* direct buckets */
.buckets { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0; }
.buckets .left { padding: 12px; border-right: 1px solid var(--line); }
.explain { padding: 22px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.explain .icon { width: 38px; height: 38px; border-radius: var(--r-ctl); background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; }
.explain h4 { margin: 0; font: 700 18px var(--display); color: var(--ink); }
.explain p { margin: 0; color: var(--muted); font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: var(--r-in); border: 1px solid var(--line); font-size: 12px; color: var(--text); background: var(--card); }
.chip img { width: 13px; height: 13px; }

/* realtime */
.rt { display: grid; grid-template-columns: 290px 1fr; min-height: 440px; }
.rt-side { border-right: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.rt-count { display: flex; justify-content: space-between; align-items: flex-start; }
.rt-count b { font: 700 34px/1 var(--display); color: var(--ink); }
.rt-mini { display: flex; align-items: flex-end; gap: 2px; height: 34px; }
.rt-mini i { flex: 1; background: var(--visitors); border-radius: 2px; transition: height .5s var(--ease); }
.rt-list { display: flex; flex-direction: column; gap: 2px; overflow: hidden; }
.rt-v { display: flex; gap: 10px; padding: 8px; border-radius: var(--r-in); cursor: pointer; transition: background .2s; animation: slidein .5s var(--ease); }
.rt-v:hover, .rt-v.sel { background: var(--card-2); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } }
.rt-v .av { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--brand-soft); display: flex; align-items: center; justify-content: center; font-size: 14px; }
.rt-v .pg { font: 12px var(--mono); color: var(--ink); }
.rt-v .meta { font-size: 11.5px; color: var(--muted); }
.rt-map { position: relative; background: var(--bg-soft); overflow: hidden; }
.rt-map svg { width: 100%; height: 100%; display: block; }
.land { fill: var(--map-land); stroke: var(--map-line); stroke-width: .5; }
.vdot { fill: var(--brand); }
.vring { fill: none; stroke: var(--brand); stroke-width: 1.5; animation: ring 2s var(--ease) infinite; transform-box: fill-box; transform-origin: center; }
@keyframes ring { from { transform: scale(.6); opacity: .9; } to { transform: scale(2.6); opacity: 0; } }
.vdot.hot { fill: var(--red); }

/* telegram */
.tg { display: grid; grid-template-columns: 1fr 1fr; }
.tg-chat { background: var(--bg-soft); padding: 20px; min-height: 380px; display: flex; flex-direction: column; gap: 12px; border-right: 1px solid var(--line); }
.tg-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tg-head img { width: 30px; height: 30px; }
.tg-head b { font-size: 14px; color: var(--ink); }
.tg-head span { display: block; font-size: 12px; color: var(--muted); }
.msg { align-self: flex-start; max-width: 92%; background: var(--card); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 13px; line-height: 1.5; color: var(--text); opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.msg.in { opacity: 1; transform: none; }
.msg b { color: var(--ink); }
.msg .time { display: block; text-align: right; font-size: 10.5px; color: var(--faint); margin-top: 4px; }
.typing { align-self: flex-start; display: none; gap: 4px; padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.typing.on { display: inline-flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-4px); } }
.tg-list { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.tg-item { display: flex; gap: 12px; }
.tg-item .ico { width: 34px; height: 34px; border-radius: var(--r-ctl); background: var(--card-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex: none; }
.tg-item h4 { margin: 0; font: 700 15.5px var(--display); color: var(--ink); }
.tg-item p { margin: 2px 0 0; font-size: 14px; color: var(--muted); }

/* setup */
.steps3 { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.s3 { padding: 18px; border-right: 1px solid var(--line-2); }
.s3:last-child { border-right: 0; }
.s3 b { font: 400 12px var(--mono); color: var(--faint); }
.s3 h4 { margin: 6px 0 4px; font: 700 16px var(--display); color: var(--ink); }
.s3 p { margin: 0; font-size: 13.5px; color: var(--muted); }
.code-wrap { padding: 16px; }
.ptabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ptabs button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--card); font-size: 12.5px; color: var(--muted); cursor: pointer; transition: all .2s; }
.ptabs button img { width: 14px; height: 14px; }
.ptabs button.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
pre.code { position: relative; margin: 0; background: #0b1220; color: #e6edf7; border-radius: var(--r-ctl); padding: 16px 18px; overflow-x: auto; font: 13px/1.65 var(--mono); min-height: 120px; }
pre.code .k { color: #7cb0f5; } pre.code .s { color: #f6a5b5; } pre.code .c { color: #6b7486; }
.copy { position: absolute; top: 10px; right: 10px; height: 28px; padding: 0 10px; border-radius: 7px; border: 1px solid #243049; background: #111a2c; color: #c9d3e3; font-size: 12px; cursor: pointer; }
.copy:hover { background: #18233a; }
.verify { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line); background: var(--card-2); font-size: 14px; transition: background .4s, border-color .4s; }
.verify .pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: breathe 1.3s infinite; flex: none; }
@keyframes breathe { 50% { transform: scale(1.4); } }
.verify.ok { background: var(--ok-soft); border-color: var(--ok-soft); }
.verify.ok .pulse { background: var(--ok); animation: none; }
.verify small { display: block; color: var(--muted); font-size: 12.5px; }

/* pricing */
.price-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 14px; }
.pcard { border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; background: var(--card); transition: transform .3s var(--ease), border-color .3s, box-shadow .3s; }
.pcard:hover { transform: translateY(-3px); border-color: var(--faint); box-shadow: 0 20px 40px -28px rgba(0, 0, 0, .35); }
.pcard.main { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.tag { display: inline-flex; height: 22px; align-items: center; padding: 0 8px; border-radius: 6px; background: var(--red); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.tag.soft { background: var(--brand-soft); color: var(--brand); }
.big { font: 700 50px/1 var(--display); letter-spacing: -.04em; color: var(--ink); margin: 14px 0 4px; }
.big small { font: 500 15px var(--body); color: var(--muted); letter-spacing: 0; }
.checks { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 7px; }
.checks li { display: flex; gap: 9px; font-size: 14px; color: var(--text); }
.checks li::before { content: '✓'; flex: none; width: 17px; height: 17px; margin-top: 2px; border-radius: 50%; background: var(--brand); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.hosted { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 14px; }
.hplan { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--card); transition: border-color .2s, transform .25s var(--ease); }
.hplan:hover { border-color: var(--faint); transform: translateY(-2px); }
.hplan h5 { margin: 0; font: 700 14px var(--display); color: var(--ink); }
.hplan .pv { font: 700 26px var(--display); color: var(--ink); letter-spacing: -.02em; margin: 6px 0 0; }
.hplan .pv small { font: 500 12px var(--body); color: var(--muted); }
.hplan .ev { font-size: 12.5px; color: var(--muted); }
.note { font-size: 13px; color: var(--faint); margin-top: 12px; }

/* faq */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 18px 0; font: 600 16.5px var(--display); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--faint); font-weight: 400; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin: -6px 0 18px; color: var(--muted); max-width: 640px; }

/* final + footer */
.final { text-align: center; padding: 110px 0; border-top: 1px solid var(--line); background: var(--bg-soft); }
.final h2 { margin: 0 auto 14px; max-width: 640px; text-align: center; }
.final .p { margin: 0 auto 28px; text-align: center; }
footer { border-top: 1px solid var(--line); padding: 32px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; align-items: center; }
footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--ink); }

/* docs */
.docs { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 56px; padding: 44px 24px 90px; }
.docs aside { position: sticky; top: 84px; align-self: start; }
.docs aside h4 { font: 500 12px var(--mono); color: var(--faint); margin: 20px 0 6px; text-transform: none; }
.docs aside a { display: block; padding: 6px 10px; border-radius: var(--r-in); color: var(--muted); text-decoration: none; font-size: 14.5px; transition: background .2s, color .2s; }
.docs aside a:hover { color: var(--ink); }
.docs aside a.active { background: var(--card-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.doc { max-width: 760px; }
.doc h1 { font-size: 40px; text-align: left; margin: 0 0 10px; }
.doc .doc-lede { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.doc h2 { font-size: 26px; margin: 42px 0 10px; }
.doc h3 { font: 700 18px var(--display); color: var(--ink); margin: 26px 0 6px; }
.doc ol, .doc ul { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc pre { background: #0b1220; color: #e6edf7; border-radius: var(--r-ctl); padding: 16px 18px; overflow-x: auto; font: 13.5px/1.6 var(--mono); }
.doc pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.doc table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { font-size: 13px; color: var(--muted); font-weight: 600; }
.callout { border-radius: var(--r-ctl); background: var(--brand-soft); padding: 14px 16px; margin: 18px 0; font-size: 15px; }
.next { display: flex; justify-content: flex-end; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); }
.next a { font-weight: 600; text-decoration: none; }
.page-hero { padding: 80px 0 30px; text-align: center; }
.page-hero h1 { font-size: clamp(36px, 5vw, 54px); }

@media (max-width: 980px) {
  .story { grid-template-columns: 1fr; gap: 24px; }
  .toc { display: none; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi:nth-child(n+5) { display: none; }
  .panels, .two, .buckets, .rt, .tg, .price-grid, .steps3 { grid-template-columns: 1fr; }
  .buckets .left, .rt-side, .tg-chat { border-right: 0; border-bottom: 1px solid var(--line); }
  .hosted { grid-template-columns: 1fr 1fr; }
  .wall-row { grid-template-columns: repeat(4, 1fr); }
  .wall-row a:nth-child(4) { border-right: 0; }
  .docs { grid-template-columns: 1fr; gap: 16px; }
  .docs aside { position: static; }
  .nav-links { display: none; }
  .rt-map { min-height: 260px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 60px; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .kpi:nth-child(n+3) { display: none; }
  .nav-right a.link { display: none; }
  .wall-row { grid-template-columns: repeat(2, 1fr); }
  .wall-row a:nth-child(2n) { border-right: 0; }
  .wall-row a { border-bottom: 1px solid var(--line); }
  .stats { grid-template-columns: repeat(2, 1fr) !important; }
  .hosted { grid-template-columns: 1fr 1fr !important; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
.toc .toc-cta .btn { color: var(--btn-text); justify-content: center; padding: 0 18px; background: var(--btn); box-shadow: none; }
.toc .toc-cta .btn:hover { color: var(--btn-text); }

/* ===================== hero v2 ===================== */
.hero { padding: 84px 0 36px; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--text); font-size: 13.5px; text-decoration: none; transition: border-color .2s, transform .25s var(--ease); animation: fadein .7s var(--ease) both; }
.pill:hover { border-color: var(--faint); transform: translateY(-1px); }
.pill-cf { width: 24px; height: 24px; border-radius: 999px; background: #fff3e8; display: inline-flex; align-items: center; justify-content: center; }
:root[data-theme='dark'] .pill-cf { background: #2a1c10; }
.pill-sep { width: 1px; height: 14px; background: var(--line); }
.pill b { color: var(--ink); font-weight: 600; }
.pill-arrow { color: var(--faint); transition: transform .25s var(--ease); }
.pill:hover .pill-arrow { transform: translateX(3px); color: var(--ink); }

.hero-h1 { font: 700 clamp(40px, 6vw, 72px)/1.05 var(--display); letter-spacing: -.045em; margin: 26px auto 22px; max-width: none; }
.hero-h1 .l1, .hero-h1 .l2 { display: block; }
@media (min-width: 900px) { .hero-h1 .l1, .hero-h1 .l2 { white-space: nowrap; } }
.rot { display: inline-flex; vertical-align: bottom; justify-content: center; overflow: hidden; height: 1.18em; padding: 0 .02em; transition: width .55s var(--ease); }
.rot-in { display: inline-flex; align-items: center; gap: .18em; white-space: nowrap; }
.rot-in.out { animation: rotOut .32s var(--ease) forwards; }
.rot-in.in { animation: rotIn .5s var(--ease) both; }
@keyframes rotOut { to { transform: translateY(-70%); opacity: 0; filter: blur(6px); } }
@keyframes rotIn { from { transform: translateY(70%); opacity: 0; filter: blur(6px); } }
.rot-logo { display: inline-flex; align-items: center; justify-content: center; width: .9em; height: .9em; border-radius: .22em; border: 1px solid var(--line); background: var(--card); box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .3); }
.rot-logo img { width: .52em; height: .52em; }
.rot-word { color: var(--ink); }
.amt-wrap { position: relative; display: inline-block; color: var(--brand); font-variant-numeric: tabular-nums; }
.squiggle { position: absolute; left: -2%; bottom: -.08em; width: 104%; height: .26em; overflow: visible; }
.squiggle path { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 260; }
.squiggle.go path { animation: squig .9s .15s var(--ease) forwards; }
@keyframes squig { to { stroke-dashoffset: 0; } }
.hero .lede { max-width: 640px; }
.btn-lg { height: 48px; padding: 0 22px; font-size: 15.5px; }

/* attribution trail */
.trail { display: inline-flex; align-items: center; gap: 0; margin-top: 44px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); box-shadow: 0 24px 48px -32px rgba(0, 0, 0, .25); }
.node { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-radius: 12px; text-align: left; transition: background .35s, transform .35s var(--ease); min-width: 170px; }
.node .tile { width: 34px; height: 34px; border-radius: 10px; font-size: 16px; }
.node b { display: block; font: 600 13.5px var(--body); color: var(--ink); white-space: nowrap; }
.node small { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; }
.node.lit { background: var(--card-2); }
.node.n3.lit { background: var(--ok-soft); transform: scale(1.03); }
.node.n3.lit b { color: var(--ok); }
.tlink { position: relative; width: 56px; height: 0; border-top: 2px dashed var(--line); }
.tlink i { position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); opacity: 0; }
.tlink.go i { animation: travel .7s var(--ease) forwards; }
@keyframes travel { 0% { left: 0; opacity: 1; } 90% { opacity: 1; } 100% { left: calc(100% - 8px); opacity: 0; } }

/* stack row */
.stack { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; margin-top: 34px; }
.stack-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: center; }
.stack-label { font-size: 13px; color: var(--faint); margin-right: 4px; }
.stack-item { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); color: var(--text); text-decoration: none; font-size: 13.5px; font-weight: 500; transition: border-color .2s, transform .25s var(--ease); }
.stack-item:hover { border-color: var(--faint); transform: translateY(-2px); }
.stack-item.cf { border-color: #f9c79a; background: #fff8f1; color: #9a4a06; }
:root[data-theme='dark'] .stack-item.cf { border-color: #5a3410; background: #1f150c; color: #f7a35c; }
.stack-div { width: 1px; height: 22px; background: var(--line); }

/* self-hosting chapter */
.sh { display: grid; grid-template-columns: 1.05fr 1fr; }
.term { background: #0b1220; display: flex; flex-direction: column; min-height: 400px; border-right: 1px solid var(--line); }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid #1a2438; }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2a3550; }
.term-bar i:nth-child(1) { background: #ff5f57; } .term-bar i:nth-child(2) { background: #febc2e; } .term-bar i:nth-child(3) { background: #28c840; }
.term-bar span { margin-left: 8px; font: 12px var(--mono); color: #6b7486; }
.term-body { margin: 0; padding: 16px 18px; font: 13px/1.85 var(--mono); color: #c9d3e3; white-space: pre-wrap; flex: 1; }
.term-body .tl { display: block; opacity: 0; transform: translateY(4px); transition: opacity .35s, transform .35s; }
.term-body .tl.on { opacity: 1; transform: none; }
.term-body .pr { color: #7cb0f5; margin-right: 8px; }
.term-body .ok { color: #3ccf91; }
.term-body .dim { color: #6b7486; }
.term-body .url { color: #f7a35c; text-decoration: underline; text-underline-offset: 3px; }
.term-body .caret { display: inline-block; width: 8px; height: 15px; background: #c9d3e3; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.arch { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.arch-top { display: flex; align-items: center; gap: 12px; }
.arch-top b { display: block; font: 700 17px var(--display); color: var(--ink); }
.arch-top small { color: var(--muted); font-size: 12.5px; }
.arch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; border: 1.5px dashed #f9c79a; border-radius: 14px; background: #fffaf5; }
:root[data-theme='dark'] .arch-grid { border-color: #5a3410; background: #160f09; }
.arch-box { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); transition: transform .25s var(--ease), border-color .2s; }
.arch-box:hover { transform: translateY(-2px); border-color: #f9c79a; }
.arch-box b { font: 700 14px var(--display); color: var(--ink); }
.arch-box small { font-size: 11.5px; color: var(--muted); }
.ab-ic { font-size: 16px; }
.arch-in { display: flex; flex-wrap: wrap; gap: 6px; }
.arch-chip { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 10px; border-radius: var(--r-in); border: 1px solid var(--line); font-size: 12px; color: var(--text); background: var(--card-2); }
.arch-chip img { width: 13px; height: 13px; border-radius: 3px; }
.arch-facts { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.arch-facts b { color: var(--ink); font-family: var(--display); }

@media (max-width: 980px) {
  .sh { grid-template-columns: 1fr; }
  .term { border-right: 0; border-bottom: 1px solid var(--line); min-height: 320px; }
  .trail { flex-direction: column; align-items: stretch; }
  .tlink { width: 0; height: 22px; margin-left: 28px; border-top: 0; border-left: 2px dashed var(--line); }
  .tlink i { left: -5px !important; }
  .tlink.go i { animation: travelY .6s var(--ease) forwards; }
  @keyframes travelY { 0% { top: 0; opacity: 1; } 100% { top: calc(100% - 8px); opacity: 0; } }
  .stack-div { display: none; }
}
@media (max-width: 560px) {
  .hero-h1 .l1, .hero-h1 .l2 { white-space: normal; }
  .hero-h1 { font-size: 40px; }
  .arch-grid { grid-template-columns: 1fr; }
}

/* ===================== launch price ===================== */
.pill-left { color: var(--muted); }
.pill-left::before { content: '·'; margin: 0 6px 0 2px; color: var(--faint); }
.buy-note { margin: 12px 0 0; font-size: 12.5px; color: var(--faint); }
.buy-note a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.buy-note a:hover { color: var(--ink); }
.hero .buy-note, .final .buy-note { text-align: center; }
.pcard .buy-note { text-align: center; margin-top: 10px; }
.regular { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }
.ladder { margin: 18px 0 4px; }
.ladder-line { font-size: 13.5px; color: var(--muted); margin-bottom: 12px; }
.ladder-line b { color: var(--ink); font-weight: 600; }
.ladder ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ladder li { position: relative; padding: 10px 10px 16px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card-2); transition: border-color .3s, background .3s, opacity .3s; }
.ladder li b { display: block; font: 700 18px/1.15 var(--display); letter-spacing: -.02em; color: var(--ink); }
.ladder li small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lbar { position: absolute; left: 10px; right: 10px; bottom: 7px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.lbar i { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--brand); transition: width .8s var(--ease); }
.ladder li[data-state='now'] { border-color: var(--brand); background: var(--brand-soft); }
.ladder li[data-state='now'] b { color: var(--brand); }
.ladder li[data-state='now']::before { content: 'Now'; position: absolute; top: -9px; right: 8px; height: 17px; padding: 0 6px; border-radius: 5px; background: var(--brand); color: #fff; font: 700 10.5px/17px var(--body); letter-spacing: .02em; }
.ladder li[data-state='done'] { opacity: .55; }
.ladder li[data-state='done'] b { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.ladder li[data-state='done'] .lbar i { background: var(--faint); }
.hosted-soon h3 { margin: 14px 0 6px; font: 700 24px var(--display); letter-spacing: -.02em; color: var(--ink); }
.hosted-soon > p { color: var(--muted); margin: 0; }
.checks.soft li::before { background: var(--card-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }
.pricing-faq { max-width: 820px; padding-bottom: 90px; }
.pricing-faq h2 { margin-bottom: 6px; }
.faq p a, .faq p code { font-size: inherit; }

/* ===================== legal ===================== */
.legal-hero { padding-bottom: 20px; }
.legal-date { font: 400 13px var(--mono); color: var(--faint); margin: 0; }
.legal { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; padding: 24px 24px 96px; }
.legal-sum { position: sticky; top: 84px; align-self: start; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card-2); padding: 18px 18px 6px; font-size: 14px; color: var(--text); }
.legal-sum h4 { margin: 0 0 8px; font: 500 12.5px var(--mono); color: var(--faint); }
.legal-sum ul { margin: 0; padding-left: 18px; display: grid; gap: 8px; }
.legal-sum p { font-size: 13px; color: var(--muted); }
.legal-doc h2 { font-size: 22px; margin-top: 36px; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p, .legal-doc li { color: var(--text); }

/* ===================== thanks ===================== */
.thx { position: relative; padding: 56px 0 96px; overflow: hidden; }
.thx::before { content: ''; position: absolute; inset: -240px 0 auto; height: 560px; background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 13%, transparent), transparent); pointer-events: none; }
.thx-wrap { position: relative; max-width: 780px; }
.ts { text-align: center; padding: 48px 0 24px; animation: fadein .5s var(--ease) both; }
.ts-h { font: 700 clamp(30px, 4.6vw, 44px)/1.1 var(--display); letter-spacing: -.035em; margin: 22px auto 12px; max-width: 620px; }
.ts-p { color: var(--muted); font-size: 17px; max-width: 520px; margin: 0 auto 26px; }
.ts-fine { color: var(--faint); font-size: 14px; margin-top: 24px; }
.ts-ic { width: 60px; height: 60px; margin: 0 auto; border-radius: 18px; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); }
.ts-ic.bad { background: var(--red-soft); color: var(--red); }
.ts-slow { max-width: 500px; margin: 0 auto; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--card); font-size: 14.5px; color: var(--muted); animation: fadein .5s var(--ease) both; }
.ts-slow p { margin: 0 0 12px; }
.ts-slow b { color: var(--ink); }

.bull { width: 76px; height: 76px; margin: 0 auto; position: relative; }
.bull-svg { width: 100%; height: 100%; display: block; border-radius: 22px; box-shadow: 0 18px 40px -18px color-mix(in srgb, var(--brand) 70%, transparent); }
.bull .b, .bull .bd { transform-box: fill-box; transform-origin: 50% 100%; }
.bull .bd { transform-origin: 50% 50%; }
.bull.wait .b { animation: eq 1.1s var(--ease) infinite; }
.bull.wait .b2 { animation-delay: .15s; } .bull.wait .b3 { animation-delay: .3s; }
.bull.wait .bd { animation: breathe 1.1s infinite; }
@keyframes eq { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.45); } }
.bull.grow.go .b { animation: barUp .75s var(--ease) both; }
.bull.grow.go .b1 { animation-delay: .05s; } .bull.grow.go .b2 { animation-delay: .17s; } .bull.grow.go .b3 { animation-delay: .29s; }
.bull.grow.go .bd { animation: dotPop .55s .55s cubic-bezier(.3, 1.6, .5, 1) both; }
.bull.grow.go::after { content: ''; position: absolute; inset: -6px; border-radius: 26px; border: 2px solid var(--brand); opacity: 0; animation: ringOut 1.1s .5s var(--ease); pointer-events: none; }
@keyframes barUp { from { transform: scaleY(0); } }
@keyframes dotPop { from { transform: scale(0); } }
@keyframes ringOut { 0% { opacity: .55; transform: scale(.92); } 100% { opacity: 0; transform: scale(1.5); } }

.ok { animation: fadein .5s var(--ease) both; }
.ok-hero { text-align: center; padding: 28px 0 34px; }
.ok-hero .kicker { margin-top: 22px; }
.ok-h { font: 700 clamp(36px, 5.6vw, 56px)/1.04 var(--display); letter-spacing: -.04em; margin: 12px auto 12px; }
.ok-sub { color: var(--muted); font-size: 17.5px; max-width: 540px; margin: 0 auto; }

.keycard { border: 1px solid var(--line); border-radius: 20px; background: var(--card); padding: 22px; box-shadow: 0 30px 60px -40px rgba(0, 20, 60, .35), 0 0 0 4px var(--brand-soft); }
.kc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.kc-label { font: 500 12.5px var(--mono); color: var(--faint); }
.kc-meta { font-size: 13px; color: var(--muted); }
.kc-key { border: 1.5px dashed var(--line); border-radius: 14px; background: var(--card-2); padding: 20px; text-align: center; }
.kc-key code { display: block; background: none; border: 0; padding: 0; font: 600 clamp(16px, 2.7vw, 23px)/1.35 var(--mono); letter-spacing: .02em; color: var(--ink); word-break: break-all; user-select: all; -webkit-user-select: all; }
.kc-pending { display: flex; align-items: center; gap: 12px; border: 1.5px dashed var(--line); border-radius: 14px; background: var(--card-2); padding: 18px 20px; font-size: 14.5px; color: var(--muted); }
.kc-pending b { color: var(--ink); }
.kc-pending.done .spin { display: none; }
.spin { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.kc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.kc-actions .btn { height: 46px; }
.btn.done { background: var(--ok); color: #fff; border-color: transparent; }
.kc-mail { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
.kc-mail b { color: var(--ink); font-weight: 600; }

.thx-h2 { margin: 60px 0 20px; font-size: clamp(24px, 3vw, 30px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.steps li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 16px; padding-bottom: 26px; }
.steps li:not(:last-child)::before { content: ''; position: absolute; left: 16px; top: 36px; bottom: 4px; width: 2px; background: var(--line-2); }
.sn { width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand); font: 600 14px var(--mono); }
.steps h3 { margin: 4px 0 6px; font: 700 18px var(--display); letter-spacing: -.01em; color: var(--ink); }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.steps p b { color: var(--text); }
.steps .small { font-size: 13px; color: var(--faint); margin-top: 8px; }
kbd { display: inline-block; min-width: 22px; padding: 0 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--card); font: 500 12.5px/20px var(--body); color: var(--ink); text-align: center; }
.cmd { display: flex; align-items: flex-start; gap: 10px; margin-top: 4px; padding: 14px 14px 14px 16px; border-radius: var(--r-ctl); background: #0b1220; }
.cmd code { flex: 1; min-width: 0; background: none; border: 0; padding: 0; font: 13.5px/1.6 var(--mono); color: #e6edf7; white-space: pre-wrap; word-break: break-all; }
.cmd-pr { color: #7cb0f5; margin-right: 10px; user-select: none; -webkit-user-select: none; }
.cmd-copy { flex: none; height: 28px; padding: 0 12px; border-radius: 7px; border: 1px solid #243049; background: #111a2c; color: #c9d3e3; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .2s; }
.cmd-copy:hover { background: #18233a; }
.cmd-copy.done { background: #10261d; border-color: #1d4a36; color: #3ccf91; }

.thx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 14px; margin-top: 18px; }
.need { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); padding: 20px; }
.need h3 { margin: 0 0 14px; font: 700 17px var(--display); color: var(--ink); }
.need ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.need li { display: flex; gap: 12px; align-items: flex-start; }
.ni { flex: none; width: 32px; height: 32px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: var(--card-2); border: 1px solid var(--line); color: var(--brand); }
.need b { display: block; font-size: 14.5px; color: var(--ink); }
.need small { display: block; font-size: 13px; color: var(--muted); }
.thx-term { border: 1px solid #1a2438; border-right: 1px solid #1a2438; border-radius: var(--r-card); overflow: hidden; min-height: 300px; }
.thx-term .term-body { font-size: 12.5px; line-height: 1.8; padding: 14px 16px; }
.thx-term .term-body .pr { margin-right: 10px; }
.term-replay { margin-left: auto; height: 22px; padding: 0 8px; border-radius: 6px; border: 1px solid #243049; background: #111a2c; color: #8b94a6; font-size: 11.5px; cursor: pointer; }
.term-replay:hover { color: #c9d3e3; }
.thx-help { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 15px; }
.thx-help p { margin: 0 0 8px; }
.thx-help > p:first-child a { font-weight: 600; text-decoration: none; }
.thx-fine { color: var(--faint); font-size: 13.5px; }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 80; transform: translate(-50%, 16px); opacity: 0; background: var(--tip); color: #fff; font-size: 14px; font-weight: 600; padding: 10px 18px; border-radius: 999px; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, .5); transition: opacity .25s, transform .3s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.confetti { position: fixed; inset: 0; z-index: 70; pointer-events: none; overflow: hidden; }
.confetti i { position: absolute; left: 50%; top: 190px; width: 8px; height: 12px; border-radius: 2px; opacity: 0; animation: burst 2.4s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes burst {
  0% { opacity: 1; transform: translate(0, 0) scale(.4) rotate(0); }
  25% { opacity: 1; transform: translate(calc(var(--x) * .55), -16vh) scale(1) rotate(calc(var(--r) * .3)); }
  100% { opacity: 0; transform: translate(var(--x), var(--y)) scale(.9) rotate(var(--r)); }
}

@media (max-width: 980px) {
  .legal { grid-template-columns: 1fr; gap: 20px; }
  .legal-sum { position: static; }
  .thx-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .pill-txt { display: none; }
  .ladder li { padding: 9px 7px 15px; }
  .ladder li b { font-size: 16px; }
  .lbar { left: 7px; right: 7px; }
  .thx { padding-top: 28px; }
  .keycard { padding: 16px; border-radius: 18px; }
  .kc-key { padding: 16px 12px; }
  .kc-actions { grid-template-columns: 1fr; }
  .steps li { grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
  .sn { width: 30px; height: 30px; font-size: 13px; }
  .steps li:not(:last-child)::before { left: 14px; top: 32px; }
  .toast { white-space: normal; text-align: center; max-width: calc(100% - 32px); }
}
.toc .buy-note { margin-top: 6px; }
.toc .buy-note a { display: inline; padding: 0; border-radius: 0; font-size: inherit; color: var(--muted); }

/* ===================== footer columns ===================== */
footer .wrap.foot { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 28px; align-items: start; }
.foot-brand { display: grid; gap: 10px; justify-items: start; }
.foot-brand p { margin: 0; max-width: 240px; font-size: 13.5px; }
.foot-brand span { font-size: 13px; color: var(--faint); }
.foot-col { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.foot-h { margin: 0 0 2px; font: 500 12px var(--mono); color: var(--faint); }
@media (max-width: 860px) {
  footer .wrap.foot { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 20px; }
  .foot-brand { grid-column: 1 / -1; }
}

/* ===================== comparison + use-case pages ===================== */
.lp-hero { padding-bottom: 36px; }
.lp-hero .kicker { margin-bottom: 4px; }
.lp-hero h1 { max-width: 820px; text-wrap: balance; }
.crumbs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; font-size: 13.5px; color: var(--faint); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.crumbs [aria-current] { color: var(--text); }
.lp-shot { max-width: 1020px; padding-bottom: 8px; }
.lp-shot figure { margin: 0; box-shadow: 0 30px 60px -40px rgba(6, 10, 18, .35); }
.lp-shot img { width: 100%; height: auto; }
:root[data-theme='dark'] .lp-shot figure { opacity: .92; }
.lp { max-width: 860px; padding-top: 56px; padding-bottom: 80px; }
.lp-body { max-width: none; }
.lp-body > h2:first-child { margin-top: 0; }
.lp-body p, .lp-body li { color: var(--text); }
.doc table.cmp { font-size: 14.5px; min-width: 640px; }
.cmp thead th { font: 600 13px var(--body); color: var(--muted); }
.cmp thead th:nth-child(2) { color: var(--brand); }
.cmp tbody th { font: 600 14px var(--display); color: var(--ink); white-space: nowrap; width: 1%; padding-right: 18px; }
.cmp td:nth-child(2) { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.cmp td a, .cmp th a { text-decoration: none; }
.cmp-rows thead th:nth-child(2) { color: var(--muted); }
.cmp-rows td:nth-child(2) { background: none; }
.cmp-rows tbody tr:first-child td, .cmp-rows tbody tr:first-child th { background: color-mix(in srgb, var(--brand-soft) 45%, transparent); }
.cmp-rows td::before { color: var(--faint) !important; }
.asof { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted) !important; }
.lp-faq { margin-top: 56px; }
.lp-faq h2 { margin-bottom: 4px; }
.lp-more { margin-top: 56px; }
.lp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 12px; }
.lp-cards-top { margin: 0 0 48px; }
.lp-card { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); text-decoration: none; transition: border-color .2s, transform .25s var(--ease); }
.lp-card:hover { border-color: var(--faint); transform: translateY(-2px); }
.lp-card b { font: 700 16px var(--display); letter-spacing: -.01em; color: var(--ink); }
.lp-card span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) {
  /* Comparison tables stack: one block per row, each cell labelled with its column. */
  .doc table.cmp { min-width: 0; }
  .cmp thead { display: none; }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto !important; }
  .cmp tr { border-bottom: 1px solid var(--line); padding: 12px 0; }
  .cmp tbody th { padding: 0 0 6px; white-space: normal; }
  .cmp td { border: 0; padding: 6px 10px; border-radius: var(--r-in); }
  .cmp td::before { content: attr(data-label); display: block; font: 500 11.5px var(--mono); color: var(--faint); margin-bottom: 2px; }
  .cmp td:nth-child(2)::before { color: var(--brand); }
}
@media (max-width: 560px) {
  .lp { padding-top: 40px; }
  .lp-shot { padding-left: 16px; padding-right: 16px; }
}
