/* Gin marketing site. Paper + ink + one juniper accent. Mascot: Gin the cocktail cat (docs/brand.md). */
:root {
  --ink: #0e1116;
  --ink-2: #2a2f37;
  --paper: #fbfbf9;
  --card: #ffffff;
  --sunk: #f4f4f1;
  --line: #e7e8ec;
  --line-2: #d6d8de;
  --muted: #5f646d;
  --juniper: #3346d3;
  --juniper-ink: #2433a8;
  --juniper-soft: #eef0ff;
  --tonic: #0f8a5f;
  --tonic-soft: #f2fbf7;
  --warn: #c2410c;
  --del: #b42318;
  --del-soft: #fdf1f0;
  --on-accent: #ffffff;
  --radius: 14px;
  --radius-sm: 10px;
  --sans: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
  --bar: #0e1116;
  --gc-bd-s: #eef0ff;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eceef2;
    --ink-2: #c9ccd3;
    --paper: #0d0f13;
    --card: #14171d;
    --sunk: #101318;
    --line: #23272f;
    --line-2: #323844;
    --muted: #9aa0aa;
    --juniper: #7b8cff;
    --juniper-ink: #a3afff;
    --juniper-soft: #1a1f3d;
    --tonic: #3ccf96;
    --tonic-soft: #0f2219;
    --warn: #fb8b4c;
    --del: #ff8a80;
    --del-soft: #2a1514;
    --on-accent: #0d0f13;
    --gc-bd: #161a2c;
    --gc-edge: #5a6380;
    --gc-line: #c9ccd3;
    --gc-liq: #1f2547;
    --gc-liq2: #2a3263;
    --gc-shine: .35;
    --bar: #3a4152;
    --gc-bd-s: #141a33;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--juniper); }
code, kbd, pre { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--juniper); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--juniper-soft); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 16px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 520px) { .wrap { padding: 0 16px; } }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.mark { font: 600 22px/1 var(--mono); letter-spacing: -0.04em; text-decoration: none; display: inline-flex; align-items: center; }
.mark img { width: 28px; height: 28px; margin-right: 9px; border-radius: 7px; }
.mark i { display: inline-block; width: .3em; height: .3em; border-radius: 50%; background: var(--juniper); margin-left: .06em; font-style: normal; align-self: flex-end; margin-bottom: .14em; }
.mark:hover { color: var(--ink); }
.nav { display: flex; gap: 24px; font-size: 15px; color: var(--muted); }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--ink); }
.top .end { margin-left: auto; display: flex; gap: 10px; align-items: center; }
@media (max-width: 860px) { .nav { display: none; } }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 10px; font: 500 15px/1 var(--sans); text-decoration: none; border: 1px solid var(--line-2); background: var(--card); color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s, transform .1s; white-space: nowrap; }
.btn:hover { border-color: var(--ink); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.sm { height: 36px; padding: 0 14px; font-size: 14px; }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { background: var(--ink-2); color: var(--paper); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { border-color: var(--line-2); }

.cmd { display: inline-flex; align-items: center; gap: 14px; height: 52px; padding: 0 8px 0 18px; border-radius: 12px; background: var(--ink); color: var(--paper); font: 500 16px/1 var(--mono); border: 0; cursor: pointer; max-width: 100%; }
.cmd .p { color: color-mix(in srgb, var(--paper) 55%, var(--ink)); user-select: none; }
.cmd .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd .c { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 8px; background: color-mix(in srgb, var(--paper) 12%, var(--ink)); font: 500 13px/1 var(--sans); color: var(--paper); flex: none; }
.cmd:hover .c { background: color-mix(in srgb, var(--paper) 20%, var(--ink)); }
.cmd.done .c { background: var(--tonic); color: #fff; }
.cmd svg { width: 15px; height: 15px; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--mono); color: var(--muted); letter-spacing: .02em; margin: 0 0 24px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--juniper); }
.hero h1 { font: 650 clamp(44px, 6.6vw, 88px)/0.98 var(--sans); letter-spacing: -0.045em; margin: 0 0 24px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--juniper); }
.hero .sub { font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; color: var(--ink-2); max-width: 36ch; margin: 0 0 30px; letter-spacing: -0.01em; }
.hero-art .cat { width: 100%; max-width: 440px; margin: 0 auto; height: auto; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.diff { margin: 22px 0 0; max-width: 520px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; font: 500 14.5px/1.75 var(--mono); }
.diff .bar { display: flex; justify-content: space-between; gap: 12px; padding: 8px 16px; border-bottom: 1px solid var(--line); font: 500 12.5px/1.4 var(--mono); color: var(--muted); }
.diff .bar b { color: var(--ink); font-weight: 500; }
.diff pre { margin: 0; padding: 10px 0; overflow-x: auto; }
.diff .ln { display: block; padding: 0 16px; white-space: pre; }
.diff .del { background: var(--del-soft); color: var(--del); }
.diff .add { background: var(--tonic-soft); color: var(--tonic); }
.diff .add .k { color: var(--ink); }
.diff .s { color: var(--juniper); }
@media (max-width: 900px) {
  .hero { padding: 32px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 8px; }
  .hero-art { order: -1; }
  .hero-art .cat { max-width: 220px; }
}

/* ---------- sections ---------- */
section { scroll-margin-top: 72px; }
.sec { padding: 80px 0; border-top: 1px solid var(--line); }
@media (max-width: 640px) { .sec { padding: 56px 0; } }
.kicker { font: 500 13px/1 var(--mono); color: var(--juniper); letter-spacing: .02em; margin: 0 0 24px; max-width: none; }
h2 { font: 650 clamp(30px, 4vw, 46px)/1.05 var(--sans); letter-spacing: -0.035em; margin: 0 0 14px; max-width: 18ch; text-wrap: balance; }
h3 { font: 600 20px/1.3 var(--sans); letter-spacing: -0.015em; margin: 0 0 8px; }
.lede { font-size: 18px; color: var(--muted); max-width: 40ch; margin: 0; }
p code, dd code, .a code { font-size: .86em; background: var(--sunk); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; overflow-wrap: anywhere; }

/* how it works: sticky scroll story (site.js sets --p1..3 0→1 per step, --prog overall, data-s active) */
#how h2 { margin-bottom: 8px; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 64px; align-items: start; }
.stage { position: sticky; top: calc(50vh - 230px); grid-column: 2; grid-row: 1; margin-top: 40px; --p1: 0; --p2: 0; --p3: 0; --prog: 0; }
.steps { grid-column: 1; grid-row: 1; list-style: none; margin: 0; padding: 0; }
.step { min-height: 72vh; display: flex; flex-direction: column; justify-content: center; padding: 24px 0; }
.step:first-child { min-height: 60vh; }
.step { position: relative; }
.step::before { content: ""; position: absolute; left: -20px; top: 50%; width: 2px; height: 0; background: var(--juniper); transform: translateY(-50%); transition: height .4s; }
.step.on::before { height: 120px; }
.js .step:not(.on) h3 { color: var(--muted); }
.step h3 { transition: color .4s; }
.step .num { font: 500 13px/1 var(--mono); color: var(--juniper); margin: 0 0 14px; }
.step h3 { font: 650 clamp(26px, 3vw, 34px)/1.1 var(--sans); letter-spacing: -0.03em; margin: 0 0 10px; }
.step p { color: var(--muted); font-size: 17px; margin: 0; max-width: 40ch; }
.stage-tabs { position: relative; display: flex; justify-content: space-between; font: 500 12.5px/1 var(--mono); color: var(--muted); padding: 0 2px 12px; }
.stage-tabs span { transition: color .3s; }
.stage[data-s="1"] .stage-tabs span:nth-child(1), .stage[data-s="2"] .stage-tabs span:nth-child(2), .stage[data-s="3"] .stage-tabs span:nth-child(3) { color: var(--ink); }
.stage-tabs i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--juniper); transform-origin: 0 50%; transform: scaleX(var(--prog)); }
.stage-tabs::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--line); z-index: -1; }
.scene { width: 100%; height: auto; margin-top: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; font-family: var(--mono); font-size: 11px; }
.sc-wall { fill: var(--gc-bd-s); }
.sc-top { fill: var(--bar); }
.sc-front { fill: var(--card); }
.sc-card { fill: var(--card); stroke: var(--line-2); stroke-width: 1; }
.sc-liq { fill: var(--gc-liq, #dfe4ff); }
.sc-ln { fill: none; stroke: var(--gc-line, #0e1116); stroke-linecap: round; stroke-linejoin: round; }
.sc-ln2 { fill: none; stroke: var(--juniper); stroke-linecap: round; stroke-linejoin: round; }
.sc-hair { stroke: var(--line-2); stroke-dasharray: 2 3; }
.sc-cloth { fill: #fbfbf9; stroke: var(--gc-line, #0e1116); stroke-width: 2; stroke-linejoin: round; }
.sc-stripe { fill: none; stroke: #3346d3; stroke-width: 3; stroke-linecap: round; }
.scene text { fill: var(--ink-2); }
.scene .t-ink { fill: var(--ink); }
.scene .t-mut { fill: var(--muted); }
.scene .t-jn { fill: var(--juniper); }
.scene .t-ok { fill: var(--tonic); }
.scene .t-warn { fill: var(--warn); }
.scene .cap { font-size: 9.5px; letter-spacing: .08em; }
.scene .sm { font-size: 10px; }
.scene .b { font-weight: 600; }
.scene .big { font: 650 30px/1 var(--sans); letter-spacing: -0.04em; }
.scene tspan[x="442"] { text-anchor: end; }
/* scene switching */
.sc { opacity: 0; transition: opacity .45s ease; }
.stage[data-s="1"] .s1, .stage[data-s="2"] .s2, .stage[data-s="3"] .s3 { opacity: 1; }
.cat-pos { transform: translateX(-80px); transition: transform .8s cubic-bezier(.65, 0, .25, 1); }
.stage[data-s="2"] .cat-pos { transform: translateX(0); }
.stage[data-s="3"] .cat-pos { transform: translateX(-130px); }
.cat-head { transform-box: fill-box; transform-origin: 50% 92%;
  transform: rotate(calc(-10deg * clamp(0, (var(--p2) - .05) / .12, 1) + 20deg * clamp(0, (var(--p2) - .35) / .12, 1) - 10deg * clamp(0, (var(--p2) - .6) / .1, 1))); }
.blink { transform-box: fill-box; transform-origin: 50% 50%; animation: blink 5.5s infinite; }
@keyframes blink { 0%, 94%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.1); } }
/* 1 watch */
.rows { transform: translateY(calc(var(--p1) * -126px)); }
.mail-chip { opacity: clamp(0, (var(--p1) - .5) * 6, 1); transform: translateY(calc((1 - clamp(0, (var(--p1) - .5) * 6, 1)) * -10px)); }
.cloth { transform-box: fill-box; transform-origin: 30% 80%; animation: polish 1.1s ease-in-out infinite alternate paused; }
.stage[data-s="1"] .cloth { animation-play-state: running; }
@keyframes polish { from { transform: translateX(-6px) rotate(-8deg); } to { transform: translateX(4px) rotate(6deg); } }
.spark { fill: var(--juniper); transform-box: fill-box; transform-origin: 50% 50%; animation: twinkle 1.8s ease-in-out infinite; }
.spark.k2 { animation-delay: .9s; }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1); } }
/* 2 optimize */
.sip { transform-box: fill-box; transform-origin: 50% 100%; }
.g-l .sip { transform: scaleY(calc(1 - .2 * clamp(0, (var(--p2) - .1) / .15, 1))); }
.g-r .sip { transform: scaleY(calc(1 - .2 * clamp(0, (var(--p2) - .4) / .15, 1))); }
.score { font: 650 15px/1 var(--sans); }
.g-l .score { opacity: clamp(0, (var(--p2) - .25) * 8, 1); }
.g-r .score { opacity: clamp(0, (var(--p2) - .55) * 8, 1); }
.st-ring { fill: none; stroke: var(--tonic); }
.st-big { font: 700 17px/1 var(--sans); letter-spacing: .02em; }
.st-sm { font-size: 9.5px; letter-spacing: .14em; }
.stamp { --st: clamp(0, (var(--p2) - .62) / .1, 1); opacity: var(--st); transform: rotate(-10deg) scale(calc(1.6 - .6 * var(--st))); }
/* 3 route */
.route-ln { fill: none; stroke: var(--juniper); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 8 7; animation: flow 1s linear infinite paused; }
.stage[data-s="3"] .route-ln { animation-play-state: running; }
@keyframes flow { to { stroke-dashoffset: -15; } }
.fall-ln { fill: none; stroke: var(--muted); }
.node-end { fill: var(--tonic); }
.slide { transform: translateX(calc(clamp(0, (var(--p3) - .05) / .6, 1) * 210px)); }
.trail { fill: none; stroke: var(--juniper); stroke-linecap: round; opacity: calc(clamp(0, var(--p3) * 10, 1) - clamp(0, (var(--p3) - .6) * 10, 1)); }
.coin { fill: var(--tonic); stroke: var(--card); stroke-width: 1.5; }
.coin-s { fill: var(--card); font: 700 8px/1 var(--sans); }
.coins > g { opacity: clamp(0, (var(--p3) - var(--t)) * 10, 1); transform: translateY(calc((1 - clamp(0, (var(--p3) - var(--t)) * 10, 1)) * -12px)); }
@media (max-width: 860px) {
  .story { display: block; }
  .stage { top: 64px; z-index: 2; margin: 18px -16px 0; padding: 12px 16px 14px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .scene { max-height: 40vh; margin-top: 10px; }
  .step, .step:first-child { min-height: 56vh; justify-content: flex-start; padding-top: 28px; }
  .step:last-child { min-height: 50vh; }
  .step::before { display: none; }
  .cloth, .spark { animation: none; }
  .spark { opacity: 1; }
}
@media (max-width: 860px) and (min-width: 521px) { .stage { margin-left: -24px; margin-right: -24px; padding-left: 24px; padding-right: 24px; } }

/* hero route line: app -> gin -> cheaper model */
.diff .route { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line); font: 500 12.5px/1 var(--mono); color: var(--muted); }
.route .node { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.route .gin { color: var(--ink); font-weight: 600; }
.route .gin img { width: 18px; height: 18px; border-radius: 5px; }
.route .model { color: var(--ink); }
.route .model b { color: var(--tonic); font-weight: 600; }
.route .wire { position: relative; flex: 1; min-width: 28px; height: 2px; overflow: hidden; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.route .wire i { position: absolute; inset: 0; animation: packet 2.4s linear infinite; }
.route .wire i::after { content: ""; position: absolute; left: 0; top: -2px; width: 14px; height: 6px; margin-left: -14px; border-radius: 3px; background: var(--juniper); }
.route .wire.ok i::after { background: var(--tonic); }
.route .wire i:nth-child(2) { animation-delay: -.8s; }
.route .wire i:nth-child(3) { animation-delay: -1.6s; }
.route .wire.ok i { animation-delay: -1.2s; }
.route .wire.ok i:nth-child(2) { animation-delay: -2s; }
.route .wire.ok i:nth-child(3) { animation-delay: -.4s; }
@keyframes packet { 0% { transform: translateX(0); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(calc(100% + 14px)); opacity: 0; } }

/* reveal on scroll (only when site.js runs) */
.js .rv { transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .rv:not(.in) { opacity: 0; transform: translateY(18px); }

@media (prefers-reduced-motion: reduce) {
  .sc, .cat-pos, .step h3, .step::before, .js .rv, .stage-tabs span { transition: none; }
  .blink, .cloth, .spark, .route-ln, .route .wire i { animation: none; }
  .spark { opacity: 1; }
  .route .wire i { display: none; }
  .route .wire { background: repeating-linear-gradient(90deg, var(--juniper) 0 4px, transparent 4px 8px); }
  .route .wire.ok { background: repeating-linear-gradient(90deg, var(--tonic) 0 4px, transparent 4px 8px); }
  .js .rv:not(.in) { opacity: 1; transform: none; }
}

/* email preview */
.email-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 56px; align-items: start; }
@media (max-width: 900px) { .email-grid { grid-template-columns: 1fr; gap: 28px; } }
.mail { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; box-shadow: 0 24px 48px -36px rgba(14, 17, 22, .35); }
.mail-head { display: flex; gap: 12px; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.mail-head img { width: 32px; height: 32px; border-radius: 8px; flex: none; }
.mail-head b { color: var(--ink); font-weight: 600; }
.mail-head .subj { font-size: 15.5px; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; margin-top: 2px; }
.mail-body { padding: 22px 20px 22px; display: grid; gap: 20px; }
.m-label { font: 500 11.5px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.m-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.m-big { font: 650 38px/1 var(--sans); letter-spacing: -0.04em; }
.m-trend { font: 500 13px/1.4 var(--mono); color: var(--warn); }
.grade { background: var(--tonic-soft); border: 1px solid color-mix(in srgb, var(--tonic) 28%, var(--line)); border-radius: 12px; padding: 16px; }
.g-h { font: 650 17px/1.3 var(--sans); letter-spacing: -0.015em; margin: 0 0 4px; }
.g-s { margin: 0 0 12px; font-size: 14.5px; color: var(--ink-2); }
.g-s b { font-weight: 600; }
.ok { color: var(--tonic); }
.no { color: var(--warn); }
.g-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); gap: 2px; }
.g-bar .pass { background: var(--tonic); }
.g-bar .keep { background: var(--muted); opacity: .55; }
.g-bar .wait { background: var(--juniper); opacity: .6; }
.ex { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.ex li { padding: 10px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 74px 1fr; column-gap: 10px; }
.ex li:last-child { border-bottom: 1px solid var(--line); }
.ex b { font: 600 13px/1.5 var(--mono); grid-row: span 2; }
.ex span { font: 400 13px/1.5 var(--mono); color: var(--ink); }
.ex em { font-style: normal; color: var(--muted); }
.mailbtn { display: flex; justify-content: center; align-items: center; height: 50px; border-radius: 10px; background: var(--juniper); color: var(--on-accent); font: 600 16px/1 var(--sans); text-decoration: none; }
.mailbtn:hover { color: var(--on-accent); background: var(--juniper-ink); }
@media (max-width: 520px) {
  .mail-head, .mail-body { padding-left: 14px; padding-right: 14px; }
  .ex li { grid-template-columns: 1fr; }
  .ex b { grid-row: auto; }
}

/* stats */
.stats-intro { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 20px; flex-wrap: wrap; margin-bottom: 20px; }
.stats-intro .kicker { margin: 0; }
.stats-intro p { margin: 0; color: var(--muted); font-size: 15px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.stat { padding: 28px 26px; }
.stat + .stat { border-left: 1px solid var(--line); }
.stat .n { font: 650 clamp(44px, 5.4vw, 64px)/1 var(--sans); letter-spacing: -0.05em; color: var(--tonic); }
.stat .l { margin: 12px 0 0; font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr; }
  .stat + .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat { display: flex; align-items: baseline; gap: 16px; padding: 18px 20px; }
  .stat .n { font-size: 40px; min-width: 88px; }
  .stat .l { margin: 0; }
}

/* pricing */
.price { margin: 0; border-top: 1px solid var(--ink); }
.price > div { display: grid; grid-template-columns: 160px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.price dt { font: 500 14px/1.4 var(--mono); color: var(--muted); }
.price dd { margin: 0; font-size: 18px; color: var(--ink-2); }
.price dd b { color: var(--ink); font-weight: 650; font-size: 22px; letter-spacing: -0.02em; margin-right: 4px; }
@media (max-width: 560px) { .price > div { grid-template-columns: 1fr; gap: 4px; } }

/* faq */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px 56px; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-weight: 600; font-size: 18px; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq summary:hover { color: var(--juniper); }
.faq .a { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }
.faq .a p { margin: 0; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 36px 0 52px; font-size: 14px; color: var(--muted); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 20px 32px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-left: auto; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
.foot .mark { font-size: 18px; color: var(--ink); }
.foot .mark img { width: 24px; height: 24px; }
@media (max-width: 640px) { .foot nav { margin-left: 0; } }

/* ---------- legal + 404 ---------- */
.doc { max-width: 720px; padding: 72px 24px 104px; margin: 0 auto; }
.doc h1 { font: 650 clamp(38px, 6vw, 56px)/1.04 var(--sans); letter-spacing: -0.04em; margin: 0 0 12px; }
.doc .upd { font: 400 13.5px var(--mono); color: var(--muted); margin: 0 0 40px; }
.doc h2 { font-size: 24px; letter-spacing: -0.02em; margin: 48px 0 12px; max-width: none; }
.doc p, .doc li { color: var(--ink-2); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc code { font-size: .86em; background: var(--sunk); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.doc .tldr { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 24px; }
.doc .tldr ul { margin: 0; }
@media (max-width: 520px) { .doc { padding: 48px 16px 72px; } }
.nf { min-height: calc(100vh - 64px - 140px); display: flex; align-items: center; }
.nf h1 { font: 650 clamp(56px, 10vw, 120px)/0.95 var(--sans); letter-spacing: -0.05em; margin: 0 0 20px; }
.nf p { font-size: 19px; color: var(--muted); margin: 0 0 32px; max-width: 40ch; }

@media (max-width: 520px) {
  .hero h1 { font-size: clamp(40px, 12vw, 54px); }
  .diff { font-size: 12.5px; }
  .diff .ln { padding: 0 12px; }
  .diff .route { padding: 10px 12px; gap: 8px; font-size: 11.5px; }
  .route .model b { display: none; }
  .cmd { font-size: 15px; }
  .top .end .ghost { display: none; }
}
