/* Abliterator — white paper, ink, warm sand. Dashed-line texture with white
   cut-outs, tight grotesque headlines, small uppercase controls, cream cards,
   soft-focus "photo" panels drawn in CSS. */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --paper: #ffffff;
  --cream: #faf7f4;
  --cream-2: #f4eee9;
  --sand: #dec3b1;
  --sand-2: #e9d6c8;
  --sand-soft: #f6ece5;
  --ink: #1b1b1b;
  --ink-2: #3b3936;
  --muted: #706b67;
  --muted-2: #8f8a85;
  --line: #e7e1dc;
  --line-2: #d4ccc5;
  --field: #b6aea8;
  --red: #c4261d;
  --red-soft: #fde9e6;
  --ok: #18794e;
  --bad: #c4261d;
  --code-ink: #2d2b29;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 5px;
  --wrap: 1200px;
  --dash: repeating-linear-gradient(to bottom, #fff 0 5px, transparent 5px 15px), repeating-linear-gradient(to right, transparent 0 9px, rgba(214, 168, 136, .62) 9px 10px);
  color-scheme: light;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); font-feature-settings: "cv11", "ss01", "ss03"; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--ink); }
::selection { background: var(--sand); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
code { font-family: var(--mono); font-size: .86em; background: var(--cream-2); border: 1px solid var(--line); padding: .06em .34em; border-radius: 3px; overflow-wrap: anywhere; }
h1, h2, h3 { font-weight: 500; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 6.4vw, 5.2rem); line-height: .98; letter-spacing: -.055em; margin: 0 0 .35em; }
h2 { font-size: clamp(2.1rem, 4vw, 3.5rem); line-height: .98; letter-spacing: -.05em; margin: 0 0 .4em; }
h3 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; margin: 0 0 .4em; font-weight: 500; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 40px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.center-row { justify-content: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.tiny { font-size: .78rem; }
.mt { margin-top: 2.5rem; }
.nowrap { white-space: nowrap; }
.bad { color: var(--bad); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: var(--paper); padding: 8px 12px; border: 1px solid var(--ink); }
.label, .k, .foot-h { font-size: .74rem; font-weight: 500; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.num-label { font-family: var(--mono); font-size: .72rem; color: var(--muted-2); margin-right: 10px; }
.eyebrow { display: inline-block; font-size: .92rem; font-weight: 450; color: var(--ink); border: 1px solid var(--line-2); background: #fff; border-radius: 3px; padding: 4px 10px; margin: 0 0 22px; letter-spacing: -.005em; }
.lead { font-size: 1.08rem; line-height: 1.55; color: var(--muted); max-width: 34em; }
.pattern { background-color: #fff; background-image: var(--dash); }
.cut { background: #fff; }

/* ---------- banner & nav ---------- */
.banner { display: flex; justify-content: center; align-items: center; gap: 12px; padding: 7px 16px; background: var(--sand-soft); color: var(--ink); font-size: .92rem; text-decoration: none; letter-spacing: -.01em; }
.banner b { font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--line-2); background: #fff; border-radius: 3px; padding: 3px 8px; }
.banner:hover b { border-color: var(--ink); }
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 500; font-size: 1.55rem; letter-spacing: -.055em; text-decoration: none; }
.logo { width: 22px; height: 22px; flex: none; }
.logo .lo-ring { fill: none; stroke: currentColor; stroke-width: 2.6; }
.logo .lo-bar { fill: currentColor; }
.links { display: flex; gap: 28px; flex: 1; min-width: 0; justify-content: flex-end; padding-right: 32px; }
.links a { color: var(--ink); font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; white-space: nowrap; }
.links a:hover, .links a[aria-current] { text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--sand); text-decoration-thickness: 2px; }
.nav-actions { display: flex; align-items: center; gap: 18px; }
.nav-login { font-size: .74rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); text-decoration: none; }
.menu { display: none; position: relative; margin-left: auto; }
.menu summary { list-style: none; cursor: pointer; font-size: .72rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 7px 11px; border: 1px solid var(--line-2); border-radius: 3px; }
.menu summary::-webkit-details-marker { display: none; }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(300px, calc(100vw - 32px)); background: var(--cream); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px; display: flex; flex-direction: column; box-shadow: 0 24px 48px -28px rgba(0,0,0,.35); }
.menu-panel a:not(.btn) { color: var(--ink); padding: 10px 12px; text-decoration: none; border-radius: 3px; font-size: .95rem; }
.menu-panel a:not(.btn):hover { background: #fff; }
.menu-panel .btn { margin: 6px 4px 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid transparent; cursor: pointer; font-family: var(--sans); font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; border-radius: 4px; padding: 9px 13px; text-decoration: none; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; line-height: 1.2; }
.btn::after { content: ""; width: 1px; height: 11px; background: currentColor; opacity: .45; }
.btn-sm::after, .copy::after, .tab::after { display: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary, .btn-dark { color: #fff; background: var(--ink); }
.btn-primary:hover, .btn-dark:hover { background: #000; }
.btn-sand { color: var(--ink); background: var(--sand); }
.btn-sand:hover { background: #d3b29d; }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-grey { color: var(--ink); background: var(--cream-2); border-color: var(--line-2); }
.btn-light { color: var(--ink); background: #fff; }
.btn-outline-light { color: #fff; border-color: rgba(255,255,255,.4); background: transparent; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 6px 10px; font-size: .68rem; }
.btn-lg { padding: 11px 16px; font-size: .74rem; }
.btn-block { width: 100%; }
.cta-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.6rem 0 0; }

/* ---------- surfaces ---------- */
.card { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); }
.card-white { background: #fff; }
.pad { padding: 28px; }
.callout { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--sand); background: var(--sand-soft); color: var(--ink-2); border-radius: 0 var(--r) var(--r) 0; }
.callout-ok { border-left-color: var(--ok); background: #eef7f2; }
.callout-err { border-left-color: var(--bad); background: var(--red-soft); color: var(--ink); }

/* soft-focus "photo": layered gradients and blurred silhouettes, no images */
.photo { position: relative; overflow: hidden; border-radius: var(--r); background:
  radial-gradient(ellipse 14% 38% at 30% 60%, rgba(20, 32, 38, .55), transparent 70%),
  radial-gradient(ellipse 10% 30% at 66% 52%, rgba(16, 26, 30, .5), transparent 70%),
  radial-gradient(ellipse 8% 26% at 82% 70%, rgba(30, 40, 46, .35), transparent 70%),
  radial-gradient(ellipse 60% 40% at 50% 0%, rgba(236, 240, 238, .9), transparent 70%),
  linear-gradient(90deg, transparent 0 28%, rgba(40, 52, 58, .18) 28% 28.4%, transparent 28.4% 70%, rgba(40, 52, 58, .16) 70% 70.4%, transparent 70.4%),
  linear-gradient(180deg, #c9d6da 0%, #a9bcc2 38%, #7f949b 70%, #5d6f76 100%); }
.photo::after { content: ""; position: absolute; inset: 0; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); mix-blend-mode: overlay; pointer-events: none; }
.photo.warm { background:
  radial-gradient(ellipse 12% 40% at 58% 58%, rgba(24, 20, 18, .62), transparent 70%),
  radial-gradient(ellipse 9% 34% at 74% 56%, rgba(24, 20, 18, .55), transparent 70%),
  radial-gradient(ellipse 30% 22% at 20% 20%, rgba(255, 250, 244, .75), transparent 70%),
  linear-gradient(90deg, rgba(60, 54, 50, .2) 0 6%, transparent 6% 64%, rgba(60, 54, 50, .22) 64% 64.6%, transparent 64.6%),
  linear-gradient(180deg, #d9d4ce 0%, #b7ada4 45%, #8a7f76 80%, #6c625a 100%); }
.photo.dusk { background:
  radial-gradient(ellipse 11% 36% at 40% 62%, rgba(18, 24, 30, .5), transparent 70%),
  radial-gradient(ellipse 9% 30% at 61% 58%, rgba(18, 24, 30, .45), transparent 70%),
  radial-gradient(ellipse 45% 30% at 85% 15%, rgba(255, 214, 170, .55), transparent 70%),
  linear-gradient(180deg, #e7e2da 0%, #c4c3bd 35%, #8f969a 75%, #646d73 100%); }
.photo > * { position: relative; z-index: 1; }

/* ---------- sections ---------- */
.section { padding: 120px 0; }
.section.tight { padding: 32px 0 88px; }
.section.cream { background: var(--cream); }
.section.pattern { padding: 96px 0; }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.cut { padding: 28px 32px 28px 0; max-width: 680px; }
.section-head .lead { margin: 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split > * { min-width: 0; }
.split.top { align-items: start; }
.page-hero { padding: 56px 0 8px; }
.page-hero.pattern { padding: 0; }
.page-hero .cut-box { background: #fff; display: inline-block; padding: 44px 48px 32px 0; max-width: 860px; }
.page-hero h1 { font-size: clamp(2.5rem, 5.6vw, 4.4rem); }
.crumbs { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.h2-sm { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.note { margin-top: 12px; }

/* ---------- home hero ---------- */
.hero { position: relative; }
.hero-grid { display: grid; grid-template-rows: auto auto auto; min-height: 640px; padding-top: 72px; padding-bottom: 56px; }
.hero-a, .hero-b { background: #fff; }
.hero-a { justify-self: start; padding: 48px 40px 20px 0; }
.hero-b { justify-self: end; text-align: right; padding: 24px 0 20px 48px; }
.hero h1, .hero-h { font-size: clamp(3rem, 6.6vw, 5.8rem); margin: 0; white-space: nowrap; font-weight: 500; line-height: .98; letter-spacing: -.055em; color: var(--ink); }
.hero-cta { justify-self: end; display: flex; gap: 8px; padding-top: 28px; }
.hero-cta .btn { background-clip: padding-box; }
.hero-sub { justify-self: start; background: #fff; padding: 18px 32px 18px 0; max-width: 520px; margin-top: -8px; }
.hero-sub p { margin: 0; color: var(--muted); font-size: 1.04rem; }

/* product demo */
.demo { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #fff; }
.demo-copy { padding: 72px 72px 72px 104px; display: flex; flex-direction: column; justify-content: center; }
.demo-copy h2 { font-size: clamp(2.2rem, 3.8vw, 3.4rem); }
.demo-copy .lead { margin: 0; }
.demo-stage { border-radius: 0; padding: 48px 56px 36px; display: flex; flex-direction: column; gap: 22px; min-width: 0; min-height: 560px; justify-content: center; }
.chatcard { background: var(--cream); border: 1px solid rgba(255,255,255,.6); border-radius: 8px; padding: 14px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.45); }
.demo-pane { display: none; flex-direction: column; gap: 12px; }
.demo-pane.on { display: flex; }
.demo-prompt { align-self: flex-end; max-width: 86%; background: var(--cream-2); color: var(--ink); padding: 10px 14px; border-radius: 8px; font-size: .92rem; text-align: right; line-height: 1.4; }
.demo-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.demo-col { background: var(--cream); border: 1px solid var(--line); border-radius: 6px; font-size: .86rem; min-width: 0; overflow: hidden; }
.demo-col .who { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: .9rem; color: var(--ink); margin: 0; }
.demo-col .body { padding: 12px; }
.demo-col .body p { margin: 0 0 8px; }
.demo-col pre { font-family: var(--mono); font-size: .72rem; color: var(--muted); margin: 6px 0 8px; white-space: pre-wrap; }
.demo-col pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; }
.demo-col.refused .body p { color: var(--red); }
.pill { font-size: .66rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; padding: 2px 6px; border-radius: 3px; }
.pill-bad { color: var(--red); background: var(--red-soft); }
.pill-ok { color: var(--ok); background: #e7f4ec; }
.demo-tabs { display: inline-flex; align-self: center; gap: 2px; padding: 3px; background: rgba(250, 247, 244, .92); border-radius: 6px; box-shadow: 0 10px 30px -18px rgba(0,0,0,.5); }
.demo-tabs button { font: inherit; font-size: .9rem; border: 0; background: transparent; padding: 6px 18px; cursor: pointer; color: var(--muted); border-radius: 4px; }
.demo-tabs button[aria-selected=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.demo-note { font-size: .72rem; color: rgba(255,255,255,.85); text-align: center; margin: 0; }

/* measured strip */
.measured { text-align: center; }
.measured .label { display: block; margin-bottom: 36px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; text-align: left; }
.stat { padding: 24px; display: flex; flex-direction: column; gap: 10px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); }
.stat .v { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.stat .u { font-size: .9rem; color: var(--muted); }
.stat-src { margin: 18px 0 0; font-size: .85rem; color: var(--muted); }

/* code card on a photo */
.code-photo { min-height: 520px; padding: 56px; display: flex; flex-direction: column; justify-content: flex-end; }
.code { min-width: 0; }
.code .tabs { display: inline-flex; gap: 2px; padding: 3px; background: rgba(250, 247, 244, .94); border-radius: 6px 6px 0 0; margin-left: 0; }
.tab, .copy { font: inherit; font-size: .9rem; color: var(--muted); background: transparent; border: 0; padding: 6px 14px; cursor: pointer; white-space: nowrap; border-radius: 4px; }
.tab.on { color: var(--ink); background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.tab:hover, .copy:hover { color: var(--ink); }
.copy { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; }
.code .panes { background: var(--cream); border: 1px solid var(--line); border-radius: 0 6px 6px 6px; position: relative; }
.code .copy { position: absolute; right: 8px; top: 8px; }
.pane { display: none; margin: 0; padding: 26px 30px; overflow-x: auto; font-family: var(--mono); font-size: .8rem; line-height: 1.75; color: var(--code-ink); }
.pane.on { display: block; }
.pane code, .code-plain code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.code-plain { background: var(--cream); color: var(--code-ink); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; overflow-x: auto; font-family: var(--mono); font-size: .8rem; line-height: 1.7; }

/* grids */
.grid-3, .grid-4 { display: grid; gap: 12px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.cell { padding: 24px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; gap: 8px; }
.cell p { color: var(--muted); margin: 0; font-size: .92rem; }
.cell .label { display: block; margin-bottom: 18px; }
a.cell { text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
a.cell:hover { border-color: var(--ink); background: #fff; }

/* privacy */
.privacy { padding: 140px 0; border-radius: var(--r); margin: 0 4px; }
.privacy-in { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-width: 1000px; margin: 0 auto; }
.privacy-card { background: #fff; padding: 56px 48px; border-radius: 2px; }
.privacy-card .lead { margin-bottom: 0; }
.privacy-stat { border: 1px dashed rgba(255,255,255,.7); background: rgba(120, 128, 132, .38); backdrop-filter: blur(2px); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 28px; padding: 40px 48px; color: #fff; border-radius: 2px; }
.privacy-stat .big { font-size: 15rem; font-weight: 400; line-height: .8; letter-spacing: -.06em; }
.privacy-stat ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 22px; }
.privacy-stat b { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -.03em; line-height: 1.1; }
.privacy-stat span { font-size: 1.5rem; letter-spacing: -.03em; color: rgba(255,255,255,.7); line-height: 1.1; }

/* ---------- models ---------- */
.model-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 12px; }
.model-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.model-card.hot { background: var(--sand-soft); border-color: var(--sand); }
.mc-head { display: flex; flex-direction: column; gap: 8px; }
.mc-head h3 { margin: 0; font-size: 1.75rem; font-weight: 500; letter-spacing: -.04em; line-height: 1.05; }
.mc-head h3 a { text-decoration: none; }
.mc-sum { color: var(--muted); margin: 0; font-size: .95rem; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .72rem; padding: 2px 8px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--ink-2); background: #fff; }
.tag-soft { color: var(--muted); }
.mc-price { display: grid; grid-template-columns: repeat(3, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 14px 16px; }
.mc-price div { display: flex; flex-direction: column; gap: 4px; }
.mc-price div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.v { font-family: var(--mono); font-weight: 500; font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.mc-actions { display: flex; align-items: center; gap: 8px; margin-top: auto; flex-wrap: wrap; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 500; }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live.ok { color: var(--ok); } .live.bad { color: var(--bad); }
.mc-actions .live { margin-left: auto; }
.model-title h1 { margin-bottom: .2em; }
.slug { all: unset; cursor: pointer; position: relative; font-family: var(--mono); font-size: .88rem; border: 1px solid var(--line-2); padding: 4px 10px; border-radius: 3px; background: var(--cream); }
.slug.copied::after { content: "Copied"; position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); font-size: .75rem; color: var(--ok); white-space: nowrap; font-family: var(--sans); }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.spec > div { padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); }
.spec .v { font-size: 1.3rem; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; font-variant-numeric: tabular-nums; background: #fff; }
.table th, .table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .7rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--cream); }
.table tbody tr:last-child td, .table tbody tr:last-child th { border-bottom: 0; }
.table td code { font-size: .8rem; white-space: nowrap; overflow-wrap: normal; }
.table th.label { background: var(--cream); color: var(--ink); }
.num { text-align: right !important; font-family: var(--mono); }
.delta-up { color: var(--ok); }
.delta-down { color: var(--bad); }
.bars { width: 180px; max-width: 100%; }
.bar { display: block; height: 6px; margin: 3px 0; background: var(--line-2); border-radius: 1px; min-width: 1px; }
.bar.after { background: var(--ink); }

/* ---------- faq ---------- */
.faq-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.faq-wrap .cut { padding: 24px 24px 24px 0; }
.faq { display: flex; flex-direction: column; gap: 6px; counter-reset: q; }
.faq-item { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); counter-increment: q; }
.faq-item summary { cursor: pointer; font-weight: 450; font-size: 1.05rem; padding: 18px 18px 18px 20px; list-style: none; display: flex; align-items: center; gap: 14px; letter-spacing: -.015em; }
.faq-item summary::before { content: counter(q, decimal-leading-zero) "/"; font-family: var(--mono); font-size: .7rem; color: var(--muted-2); min-width: 26px; }
.faq-item summary::after { content: "+"; margin-left: auto; width: 22px; height: 22px; display: grid; place-items: center; background: #fff; border: 1px solid var(--line); border-radius: 3px; font-size: 1rem; color: var(--muted); flex: none; transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-a { color: var(--muted); padding: 0 20px 18px 60px; max-width: 46em; }
.faq-a p { margin: 0; }

/* ---------- pricing ---------- */
.price-head { background: var(--ink); color: #fff; border-radius: var(--r); padding: 30px 26px 30px; max-width: 560px; min-height: 280px; display: flex; flex-direction: column; margin-bottom: 56px; }
.price-head h2 { color: #fff; margin: 14px 0 10px; }
.price-head p { color: rgba(255,255,255,.85); margin: 0; }
.price-head .label { color: rgba(255,255,255,.6); }
.price-head .btn { margin-top: auto; align-self: flex-start; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; align-items: stretch; }
.plan { background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; display: flex; flex-direction: column; }
.plan-top { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 18px 16px 18px; display: flex; flex-direction: column; min-height: 210px; }
.plan-top h3 { display: flex; align-items: baseline; font-size: 1.12rem; margin: 0; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.plan-top .desc { color: var(--muted); font-size: .92rem; margin: 12px 0 0; }
.price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: nowrap; }
.price b { font-size: 2.6rem; font-weight: 500; letter-spacing: -.05em; line-height: 1; }
.price small { color: var(--muted); font-size: .9rem; }
.price .badge { margin-left: auto; }
.plan-body { padding: 18px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.plan-body > p { color: var(--muted); font-size: .92rem; margin: 0 0 14px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 9px; font-size: .92rem; }
.plan li { padding-left: 24px; position: relative; }
.plan li::before { content: ""; position: absolute; left: 3px; top: .35em; width: 9px; height: 5px; border-left: 1.5px solid var(--ink); border-bottom: 1.5px solid var(--ink); transform: rotate(-45deg); }
.plan-body .btn, .plan-body form { margin-top: auto; align-self: flex-start; }
.plan-hot { background: var(--sand); border-color: var(--sand); }
.plan-hot .plan-top { background: var(--sand-soft); border-color: var(--sand-2); }
.plan-hot .plan-body > p { color: var(--ink-2); }
.badge { display: inline-block; font-size: .66rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 3px 6px; border-radius: 3px; background: var(--sand); color: var(--ink); }
.payg { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 22px 24px; margin-top: 8px; flex-wrap: wrap; }
.payg p { margin: 0; color: var(--muted); }
.payg b { color: var(--ink); font-weight: 500; }
.amount-row { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; }
.amount { font-family: var(--mono); font-size: 1.1rem; padding: 14px 20px; border: 1px solid var(--line); background: var(--cream); border-radius: var(--r); min-width: 96px; text-align: center; }

/* ---------- final cta ---------- */
.final { padding: 140px 0; }
.final-box { background: #fff; max-width: 780px; margin: 0 auto; text-align: center; padding: 80px 40px; }
.final-box h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); }
.final-box p { color: var(--ink-2); margin: 0 auto; max-width: 30em; }
.final-box .cta-row { justify-content: center; }

/* ---------- forms ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form.inline { flex-direction: row; }
.form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: .88rem; }
.form input, .search { font: inherit; border: 1px solid var(--field); border-radius: 4px; padding: 11px 13px; background: #fff; color: var(--ink); width: 100%; }
.form input:focus, .search:focus, .chat-input textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.form.inline input { flex: 1; }
.form-msg { min-height: 1.4em; margin: 0; font-weight: 500; font-size: .92rem; }
.form-msg.err { color: var(--bad); }
.form-msg.ok { color: var(--ok); }
.form label.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; font-size: .92rem; color: var(--ink-2); }
.form label.check input { width: auto; margin-top: .3em; accent-color: var(--ink); }
.keybox { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 12px; }
.keybox code { flex: 1; background: none; border: 0; font-size: .86rem; word-break: break-all; }

/* ---------- content pages (doc.html) ---------- */
.doc-band { height: 56px; }
.doc-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 64px; align-items: start; }
.doc-layout.with-side { grid-template-columns: 230px minmax(0, 1fr) 200px; gap: 48px; }
.doc-side { position: sticky; top: 80px; max-height: calc(100vh - 100px); overflow-y: auto; font-size: .9rem; padding: 40px 0 24px; }
.doc-side .label { display: block; margin: 22px 0 6px; }
.doc-side a { display: block; padding: 5px 10px; margin-left: -10px; color: var(--ink-2); text-decoration: none; border-radius: 3px; }
.doc-side a:hover { background: var(--cream); color: var(--ink); }
.doc-side a[aria-current] { background: var(--sand-soft); color: var(--ink); font-weight: 500; }
.toc { position: sticky; top: 80px; font-size: .85rem; border-left: 1px solid var(--line); padding: 40px 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--ink); }
.toc .label { margin-bottom: 4px; }
.doc-head { padding: 40px 0 8px; }
.doc-head h1 { font-size: clamp(2.4rem, 5vw, 3.9rem); }
.doc-head .lead { font-size: 1.12rem; }
.doc-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin: 8px 0 0; }
.quick { border: 1px solid var(--sand-2); border-radius: var(--r); padding: 20px 22px; margin: 28px 0 8px; background: var(--sand-soft); }
.quick .label { display: block; margin-bottom: 8px; color: var(--ink); }
.quick p { margin: 0; font-size: 1.04rem; line-height: 1.6; color: var(--ink-2); }
.prose { min-width: 0; font-size: 1.03rem; line-height: 1.75; color: var(--ink-2); padding-bottom: 32px; }
.prose > :first-child { margin-top: 32px; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin: 1.9em 0 .5em; scroll-margin-top: 90px; color: var(--ink); letter-spacing: -.045em; }
.prose h3 { margin: 1.6em 0 .5em; font-size: 1.15rem; scroll-margin-top: 90px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.prose li { margin-bottom: .4em; }
.prose pre { background: var(--cream); color: var(--code-ink); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: .8rem; line-height: 1.7; margin: 0 0 1.5em; }
.prose pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; overflow-wrap: normal; }
.prose .table-wrap { margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--r); }
.prose .table th, .prose .table td { padding: 10px 14px; }
.prose blockquote { margin: 0 0 1.5em; padding: 4px 0 4px 18px; border-left: 3px solid var(--sand); color: var(--ink); }
.prose img { max-width: 100%; }
.prose a { color: var(--ink); text-decoration-color: var(--sand); text-decoration-thickness: 2px; }
.doc-faq { margin-top: 24px; }
.doc-faq h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); }
.doc-cta { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 30px; margin: 32px 0 56px; background: var(--ink); color: #fff; border-radius: var(--r); flex-wrap: wrap; }
.doc-cta p { margin: 0; color: rgba(255,255,255,.75); }
.doc-cta b { display: block; color: #fff; font-size: 1.5rem; font-weight: 500; letter-spacing: -.04em; margin-bottom: 4px; }
.doc-cta .cta-row { margin: 0; }
.doc-end { height: 64px; }
.related .label { display: block; margin-bottom: 14px; }
.steps-list { padding-left: 1.2em; margin: 0 0 1.5em; color: var(--ink-2); line-height: 1.8; }

/* lists of pages */
.doc-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.doc-card { padding: 22px; display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--ink); transition: border-color .15s, background .15s; }
.doc-card:hover { border-color: var(--ink); background: #fff; }
.doc-card b { font-weight: 500; font-size: 1.15rem; letter-spacing: -.025em; line-height: 1.25; }
.doc-card span { color: var(--muted); font-size: .9rem; }
.group-title { margin: 56px 0 16px; }
.post-grid, .link-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.post-card, .link-card { padding: 22px; display: flex; flex-direction: column; gap: 8px; color: var(--ink); text-decoration: none; transition: border-color .15s; }
.post-card:hover, .link-card:hover { border-color: var(--ink); }
.post-card b { font-weight: 500; font-size: 1.25rem; letter-spacing: -.03em; line-height: 1.2; }
.stack { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px; }
.stack a { padding: 18px 18px; background: var(--cream); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; display: flex; flex-direction: column; gap: 6px; }
.stack a:hover { background: #fff; border-color: var(--ink); }
.stack b { font-weight: 500; font-size: 1.05rem; letter-spacing: -.02em; }

/* ---------- chat ---------- */
body.chat-page { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
body.chat-page main { flex: 1; min-height: 0; }
.chat-app { display: grid; grid-template-columns: 260px 1fr; height: 100%; border-top: 1px solid var(--line); }
.chat-side { border-right: 1px solid var(--line); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--cream); min-height: 0; }
.chat-history { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 1px; }
.chat-history button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 4px; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--muted); }
.chat-history button:hover, .chat-history button.on { background: #fff; color: var(--ink); }
.chat-main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--cream-2); border-radius: 6px; padding: 3px; gap: 2px; }
.seg-btn { font: inherit; font-weight: 450; font-size: .88rem; border: 0; background: transparent; color: var(--muted); padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.seg-btn[aria-checked=true] { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.effort { display: inline-flex; align-items: center; gap: 8px; font-weight: 450; font-size: .85rem; color: var(--muted); }
.effort select, .demo-model { font: inherit; font-size: .85rem; border: 1px solid var(--line-2); background: #fff; color: var(--ink); border-radius: 4px; padding: 5px 8px; }
.chat-log { flex: 1; overflow-y: auto; padding: 28px max(20px, calc((100% - 780px) / 2)); display: flex; flex-direction: column; gap: 16px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 8px; line-height: 1.55; font-size: .98rem; overflow-wrap: anywhere; }
.bubble.user { align-self: flex-end; background: var(--cream-2); color: var(--ink); max-width: 78%; }
.bubble.bot { align-self: flex-start; background: transparent; padding: 2px 0; max-width: 100%; }
.bubble.err { background: var(--red-soft); color: var(--red); padding: 10px 14px; }
.bubble p:last-child { margin-bottom: 0; }
.bubble pre { background: var(--cream); color: var(--code-ink); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; overflow-x: auto; font-family: var(--mono); font-size: .8rem; }
.bubble pre code { background: none; border: 0; padding: 0; color: inherit; }
.bubble ul, .bubble ol { padding-left: 1.3em; margin: 0 0 1em; }
.bubble h2, .bubble h3, .bubble h4 { font-size: 1.05rem; font-weight: 600; margin: .9em 0 .4em; letter-spacing: 0; }
.chat-empty { margin: auto; text-align: center; max-width: 660px; }
.chat-empty h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font: inherit; font-size: .88rem; color: var(--ink-2); background: var(--cream); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; cursor: pointer; text-align: left; }
.chip:hover { border-color: var(--ink); color: var(--ink); background: #fff; }
.chat-input { display: flex; gap: 10px; align-items: flex-end; padding: 12px max(20px, calc((100% - 780px) / 2)) 6px; }
.chat-input textarea { flex: 1; font: inherit; resize: none; border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px; background: var(--cream); color: var(--ink); max-height: 220px; }
.chat-new-sm { display: none; }
.thinking { font-size: .86rem; color: var(--muted); border-left: 2px solid var(--line-2); padding: 2px 12px; margin: 0 0 10px; white-space: pre-wrap; max-height: 180px; overflow-y: auto; }
.thinking summary { cursor: pointer; font-weight: 500; }
.msg-meta { font-size: .72rem; color: var(--muted); margin-top: 8px; display: flex; gap: 10px; font-variant-numeric: tabular-nums; font-family: var(--mono); }
.typing::after { content: ""; display: inline-block; width: 7px; height: 1em; background: currentColor; opacity: .6; vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- account ---------- */
.acct-hero { padding-bottom: 8px; }
.acct-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.acct-head h1 { margin-bottom: .1em; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: stretch; }
.acct-card { display: flex; flex-direction: column; gap: 4px; }
.acct-card .push { margin-top: auto; }
.acct-big { font-size: 2.8rem; font-weight: 500; letter-spacing: -.05em; line-height: 1.05; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.limits { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.meter-block { margin: 10px 0 16px; }
.meter-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.meter { height: 8px; border-radius: 2px; background: #fff; border: 1px solid var(--line); overflow: hidden; margin-bottom: 10px; }
.meter > span { display: block; height: 100%; width: 0; background: var(--sand); transition: width .6s ease; }
.mini-plans { display: grid; gap: 8px; margin: 10px 0 8px; }
.mini-plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.mini-plan > div { display: flex; flex-direction: column; }
.mini-hot { border-color: var(--sand); background: var(--sand-soft); }
.amounts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 10px; }
.custom-amount input { padding: 8px 12px; font-size: .92rem; }
.reload { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 14px; }
.reload summary { cursor: pointer; font-weight: 500; display: flex; align-items: center; gap: 10px; list-style: none; }
.reload summary::-webkit-details-marker { display: none; }
.reload summary::after { content: "+"; margin-left: auto; color: var(--muted); }
.reload[open] summary::after { content: "−"; }
.reload-form { margin-top: 14px; gap: 12px; }
.reload-row, .new-key-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.section-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.key-new { margin-bottom: 16px; border-color: var(--ink); }
.new-key { margin-top: 16px; max-width: 720px; }
.new-key h3 { margin: 0; }
tr.revoked td { color: var(--muted); }
tr.revoked code { opacity: .6; }
.signin { max-width: 520px; margin: 0 auto; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: rgba(255,255,255,.7); padding: 88px 0 0; overflow: hidden; }
.foot a { color: rgba(255,255,255,.7); text-decoration: none; font-size: .92rem; }
.foot a:hover { color: #fff; }
.foot-in { display: grid; grid-template-columns: 1.4fr repeat(5, 1fr); gap: 28px; }
.foot-in > div { display: flex; flex-direction: column; gap: 10px; }
.foot-h { color: rgba(255,255,255,.45); margin: 0 0 6px; }
.foot-brand .brand { color: #fff; }
.foot-brand p { margin: 12px 0 0; font-size: .92rem; max-width: 22em; }
.foot-base { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 72px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.12); font-size: .82rem; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.foot-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3ccf8e; }
.wordmark { font-size: clamp(5rem, 19vw, 17rem); font-weight: 500; letter-spacing: -.075em; line-height: .78; color: #efe9e4; margin: 56px 0 -.18em -.04em; user-select: none; white-space: nowrap; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .doc-layout.with-side { grid-template-columns: 210px minmax(0, 1fr); }
  .doc-layout.with-side .toc { display: none; }
  .foot-in { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; }
  .demo-copy { padding: 56px; }
}
@media (max-width: 960px) {
  .split, .demo, .doc-layout, .doc-layout.with-side, .acct-grid, .privacy-in, .faq-wrap { grid-template-columns: 1fr; gap: 32px; }
  .privacy-in { gap: 4px; }
  .toc { display: none; }
  .doc-side { position: static; max-height: none; border-bottom: 1px solid var(--line); padding: 24px 0 16px; }
  .grid-4, .stats { grid-template-columns: 1fr 1fr; }
  .chat-app { grid-template-columns: 1fr; }
  .chat-side { display: none; }
  .chat-new-sm { display: inline-flex; }
  .chat-bar { flex-wrap: nowrap; overflow-x: auto; padding: 8px 14px; gap: 8px; }
  .hero-grid { min-height: 0; }
  .privacy-stat .big { font-size: 9rem; }
}
@media (max-width: 760px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  .links, .nav-actions { display: none; }
  .menu { display: block; }
  .hero-grid { padding-top: 32px; padding-bottom: 32px; }
  .hero-sub { padding-right: 0; }
  .hero-b { padding-left: 12px; }
  .hero-a { padding: 28px 16px 12px 0; }
  .hero h1, .hero-h { white-space: normal; font-size: clamp(2.6rem, 12vw, 3.4rem); }
  .hero-b { padding: 12px 0 12px 16px; }
  .hero-cta { justify-self: stretch; flex-wrap: wrap; }
  .section { padding: 72px 0; }
  .grid-3, .grid-4, .plans, .stats, .demo-cols, .foot-in, .reload-row, .new-key-row { grid-template-columns: 1fr; }
  .demo-copy { padding: 32px 20px; }
  .demo-stage, .code-photo { padding: 24px 14px; min-height: 0; }
  .privacy { padding: 48px 0; margin: 0; }
  .privacy-card, .privacy-stat { padding: 28px 22px; }
  .privacy-stat .big { font-size: 6rem; }
  .form.inline { flex-direction: column; }
  .acct-head { flex-direction: column; align-items: flex-start; }
  .banner { font-size: .8rem; }
  .doc-cta { padding: 22px; }
  .final { padding: 64px 0; }
  .final-box { padding: 40px 20px; }
  .page-hero .cut-box { padding: 28px 16px 20px 0; }
  .brand { font-size: 1.35rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
