/* Obscate — site styles. No build step, no third-party assets.
   Direction: few ideas, very large type, white space, black stages for the
   product, one accent. System font (SF Pro on Apple devices). */

/* ------------------------------------------------------------ tokens */
:root {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f5f5f7;
  --tile: #f5f5f7;
  --ink: #1d1d1f;
  --ink-2: #424245;
  --ink-3: #6e6e73;
  --line: #d2d2d7;
  --line-2: #c2c2c7;
  --accent: #00805a;
  --accent-2: #00a372;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0, 128, 90, .08);
  --accent-line: rgba(0, 128, 90, .3);
  --warn: #a35200;
  --warn-soft: rgba(163, 82, 0, .08);
  --bad: #c4001a;
  --bad-soft: rgba(196, 0, 26, .06);
  --ner: #7d3fb0;
  --ner-soft: rgba(125, 63, 176, .08);
  --code-bg: #0b0b0d;
  --code-ink: #e8e8ed;
  --code-line: #2c2c2e;
  --code-c: #8e8e93;
  --code-s: #6ee7b7;
  --code-k: #a5c8ff;
  --code-n: #ffcf8a;
  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 40px -18px rgba(0, 0, 0, .18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Dark tokens: whole page in dark mode, and any .stage (always dark). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --bg-2: #0b0b0c; --surface: #161617; --surface-2: #1d1d1f; --tile: #111113;
    --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93; --line: #2c2c2e; --line-2: #3a3a3c;
    --accent: #30d99b; --accent-2: #5ee6b4; --accent-ink: #002417; --accent-soft: rgba(48, 217, 155, .1); --accent-line: rgba(48, 217, 155, .34);
    --warn: #ffb35c; --warn-soft: rgba(255, 179, 92, .1); --bad: #ff6b6b; --bad-soft: rgba(255, 107, 107, .1);
    --ner: #c9a2ff; --ner-soft: rgba(201, 162, 255, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 40px -18px rgba(0, 0, 0, .9);
  }
}
:root[data-theme="dark"], .stage {
  --bg: #000000; --bg-2: #0b0b0c; --surface: #161617; --surface-2: #1d1d1f; --tile: #111113;
  --ink: #f5f5f7; --ink-2: #c7c7cc; --ink-3: #8e8e93; --line: #2c2c2e; --line-2: #3a3a3c;
  --accent: #30d99b; --accent-2: #5ee6b4; --accent-ink: #002417; --accent-soft: rgba(48, 217, 155, .1); --accent-line: rgba(48, 217, 155, .34);
  --warn: #ffb35c; --warn-soft: rgba(255, 179, 92, .1); --bad: #ff6b6b; --bad-soft: rgba(255, 107, 107, .1);
  --ner: #c9a2ff; --ner-soft: rgba(201, 162, 255, .12);
  --shadow: 0 1px 2px rgba(0, 0, 0, .5), 0 12px 40px -18px rgba(0, 0, 0, .9);
}

/* ------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 64px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.5 var(--font); letter-spacing: -.012em; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
code, kbd, pre, .mono { font-family: var(--mono); letter-spacing: 0; }
:not(pre) > code { font-size: .84em; padding: .1em .36em; border-radius: 6px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -.03em; line-height: 1.07; }
h3 { font-size: 1.3rem; letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0; }
.muted { color: var(--ink-3); }
.small { font-size: .85rem; }
.fine { font-size: .8rem; color: var(--ink-3); line-height: 1.55; letter-spacing: -.005em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.wrap.wide { max-width: 1240px; }
@media (min-width: 740px) { .wrap { padding: 0 32px; } }

/* ------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 980px; border: 1px solid transparent; font: 500 1rem/1 var(--font); letter-spacing: -.01em; text-decoration: none; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease); }
.btn.sm { height: 34px; padding: 0 15px; font-size: .87rem; }
.btn.lg { height: 50px; padding: 0 28px; font-size: 1.06rem; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.primary:hover { transform: scale(1.02); }
.btn.accent { background: var(--accent); color: var(--accent-ink); }
.btn.accent:hover:not(:disabled) { background: var(--accent-2); }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--ink); }
.btn.ghost:hover { border-color: var(--ink); }
.btn:disabled { opacity: .35; cursor: not-allowed; transform: none; }
.btn kbd { font: 500 .72rem/1 var(--font); opacity: .55; }
.more { color: var(--accent); text-decoration: none; font-weight: 500; font-size: 1.06rem; white-space: nowrap; }
.more::after { content: " ›"; }
.more:hover { text-decoration: underline; }
.link { color: var(--accent); text-decoration: none; }
.link:hover { text-decoration: underline; }
.icon-btn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.icon-btn svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; } :root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .i-sun { display: none; } :root:not([data-theme="light"]) .i-moon { display: block; } }

/* ------------------------------------------------------------ nav */
.nav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(1.8) blur(20px); -webkit-backdrop-filter: saturate(1.8) blur(20px); border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
.nav-inner { display: flex; align-items: center; gap: 28px; height: 52px; }
.logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font: 600 1.05rem/1 var(--display); letter-spacing: -.035em; }
.logo-tile { fill: var(--ink); }
.logo-lines { stroke: var(--bg); stroke-width: 2.2; stroke-linecap: round; opacity: .55; }
.logo-mask { fill: var(--accent-2); }
.logo-text { font: 600 1rem/1 var(--display); letter-spacing: -.035em; }
.nav-links { display: none; gap: 26px; font-size: .8rem; color: var(--ink-2); letter-spacing: -.005em; }
.nav-links a { text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-cta .btn.sm { height: 28px; padding: 0 13px; font-size: .78rem; }
.hide-sm { display: none !important; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.menu-panel { position: absolute; right: 0; top: 40px; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 8px; display: grid; }
.menu-panel a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: .95rem; }
.menu-panel a:hover { background: var(--surface-2); }
@media (min-width: 900px) { .nav-links { display: flex; } .menu { display: none; } .hide-sm { display: inline-flex !important; } }

/* ------------------------------------------------------------ section scaffolding */
.section { padding: 120px 0; }
@media (max-width: 739px) { .section { padding: 84px 0; } }
.section.tint { background: var(--bg-2); }
.stage { background: var(--bg); color: var(--ink); }
.head { text-align: center; max-width: 860px; margin: 0 auto; }
.head.left { text-align: left; margin: 0; }
.kicker { font: 600 1rem/1.3 var(--display); color: var(--accent); letter-spacing: -.01em; margin-bottom: 14px; }
.title { font-size: clamp(2.5rem, 6.2vw, 4.5rem); letter-spacing: -.045em; line-height: 1.04; }
.title .dim { color: var(--ink-3); }
.sub { margin-top: 22px; font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.45; color: var(--ink-3); letter-spacing: -.016em; }
.head .sub { max-width: 680px; margin-left: auto; margin-right: auto; }
.head.left .sub { margin-left: 0; }
.sub strong { color: var(--ink); font-weight: 600; }

/* reveal on scroll (class added by site.js; without JS everything shows) */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* ------------------------------------------------------------ hero */
.hero { padding: 96px 0 40px; text-align: center; overflow: hidden; }
@media (min-width: 740px) { .hero { padding-top: 132px; } }
.hero-name { font: 600 1.15rem/1 var(--display); letter-spacing: -.02em; color: var(--ink-3); margin-bottom: 18px; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.6rem); letter-spacing: -.05em; line-height: 1.02; max-width: 15ch; margin: 0 auto; }
.hero h1 .dim { color: var(--ink-3); }
.lede { margin: 28px auto 0; max-width: 700px; font-size: clamp(1.08rem, 1.6vw, 1.28rem); line-height: 1.5; color: var(--ink-3); letter-spacing: -.016em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: center; margin-top: 36px; }

/* signature: a card number becomes its token, then comes back */
.cipher { margin: 96px auto 0; max-width: 980px; }
.cipher-row { display: grid; gap: 12px; justify-items: center; }
.cipher-k { font: 500 .78rem/1 var(--font); letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.cipher-v { font: 500 clamp(1.55rem, 6.4vw, 4.4rem)/1.05 var(--mono); letter-spacing: -.03em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.cipher-row.plain .cipher-v { color: var(--ink-3); }
.cipher-row.token .cipher-v { color: var(--accent); }
.cipher-op { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 18px 0; font: 500 .8rem/1 var(--mono); color: var(--ink-3); }
.cipher-op::before, .cipher-op::after { content: ""; width: 1px; height: 26px; background: var(--line-2); }
.badges { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; min-height: 26px; transition: opacity .6s var(--ease); }
.badges.off { opacity: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 .78rem/1 var(--font); padding: 6px 11px; border-radius: 980px; background: var(--accent-soft); color: var(--accent); letter-spacing: -.005em; }
.cipher-foot { margin-top: 36px; font: 500 .95rem/1.4 var(--mono); color: var(--ink-3); }
.cipher-foot b { color: var(--ink); font-weight: 600; }

.proofs { list-style: none; padding: 0; margin: 112px auto 0; display: grid; gap: 34px; max-width: 1040px; text-align: left; }
@media (min-width: 860px) { .proofs { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.proofs li { font-size: 1rem; color: var(--ink-3); line-height: 1.5; }
.proofs strong { display: block; color: var(--ink); font: 600 1.2rem/1.25 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }

/* ------------------------------------------------------------ playground */
.stage-try { padding: 120px 0 128px; }
.stage-try .head { margin-bottom: 56px; }
.demo { background: var(--surface); border-radius: 28px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 40px 120px -40px rgba(48, 217, 155, .18); }
.demo-bar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.win-dots { display: flex; gap: 7px; } .win-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); }
.demo-title { font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.mode-badge { margin-left: auto; font: 500 .76rem/1 var(--mono); padding: 7px 11px; border-radius: 980px; background: var(--surface-2); color: var(--ink-3); display: inline-flex; align-items: center; gap: 7px; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); flex: none; }
.mode-badge[data-state="live"] { color: var(--accent); background: var(--accent-soft); }
.mode-badge[data-state="live"]::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.mode-badge[data-state="offline"] { color: var(--warn); background: var(--warn-soft); }
.mode-badge[data-state="offline"]::before { background: var(--warn); }
.strategies { display: flex; gap: 4px; margin: 18px 20px 0; padding: 4px; background: var(--surface-2); border-radius: 980px; overflow-x: auto; scrollbar-width: none; width: fit-content; max-width: calc(100% - 40px); }
.strategies::-webkit-scrollbar { display: none; }
.strategies button { flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 16px; border-radius: 980px; border: 0; background: transparent; font: 600 .88rem/1.15 var(--mono); color: var(--ink-3); cursor: pointer; transition: background .25s var(--ease), color .25s; }
.strategies button small { font: 500 .66rem/1.1 var(--font); color: inherit; opacity: .8; letter-spacing: 0; }
.strategies button:hover { color: var(--ink); }
.strategies button[aria-checked="true"] { background: var(--ink); color: var(--bg); }
.strategy-desc { padding: 14px 20px 0; color: var(--ink-3); font-size: .9rem; min-height: 2.5em; }
.demo-grid { display: grid; gap: 14px; padding: 14px 20px 20px; }
@media (min-width: 860px) { .demo-grid { grid-template-columns: 1fr 1fr; } }
.pane { display: flex; flex-direction: column; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); min-width: 0; }
.pane-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; font-size: .78rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.pane-head .mono { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pane textarea, .out { font: 400 .95rem/1.7 var(--mono); color: var(--ink); letter-spacing: 0; }
.pane textarea { flex: 1; min-height: 172px; resize: vertical; border: 0; background: transparent; padding: 4px 16px 14px; outline: none; }
.out { flex: 1; min-height: 172px; padding: 4px 16px 14px; white-space: pre-wrap; word-break: break-word; }
.out .ph { color: var(--ink-3); font-family: var(--font); font-size: .92rem; }
.pane-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.pane-foot .small { flex: 1 1 140px; color: var(--ink-3); }
.ent { border-radius: 6px; padding: 1px 4px; background: var(--accent-soft); color: var(--ink); }
.ent.ner { background: var(--ner-soft); }
.ent .lbl { font: 600 .6rem/1 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--accent); margin-right: 5px; vertical-align: 1px; }
.ent.ner .lbl { color: var(--ner); }
.busy .out { opacity: .45; transition: opacity .2s; }
.callout-luhn { margin: 0 20px 16px; padding: 14px 18px; border-radius: 16px; background: var(--accent-soft); font-size: .92rem; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.callout-luhn .grp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.callout-luhn .from { font-family: var(--mono); text-decoration: line-through; color: var(--ink-3); }
.callout-luhn .to { font-family: var(--mono); font-weight: 600; color: var(--ink); }
.restored { margin: 0 20px 16px; border-radius: 16px; overflow: hidden; border: 1px solid var(--accent-line); }
.restored-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 10px; padding: 12px 16px; background: var(--accent-soft); font-size: .92rem; }
.restored-head.bad { background: var(--bad-soft); }
.ok-dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; }
.restored-head.bad .ok-dot { background: var(--bad); }
.restored .out { min-height: 0; padding-top: 12px; }
.entities { margin: 0 20px 14px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.entities summary { cursor: pointer; padding: 12px 16px; font-size: .86rem; font-weight: 600; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.entities .count { font: 600 .72rem/1 var(--mono); background: var(--surface-2); border-radius: 980px; padding: 4px 8px; }
.demo-privacy { padding: 16px 20px 20px; font-size: .8rem; color: var(--ink-3); display: flex; gap: 10px; line-height: 1.5; }
.demo-privacy::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 2px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5z'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l8 3v6c0 5-3.4 9.4-8 11-4.6-1.6-8-6-8-11V5z'/%3E%3C/svg%3E") center/contain no-repeat; }
.demo-privacy strong { color: var(--ink-2); }

/* tables (demo + pages) */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.etable, .mini { width: 100%; border-collapse: collapse; font-size: .85rem; }
.etable th, .etable td, .mini th, .mini td { text-align: left; padding: 10px 16px; border-top: 1px solid var(--line); white-space: nowrap; }
.etable th, .mini th { font-weight: 600; color: var(--ink-3); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.etable td.orig { color: var(--ink-3); }
.mini td.mono { white-space: normal; min-width: 12ch; font-size: .8rem; }
.pill { display: inline-flex; align-items: center; font: 600 .72rem/1 var(--font); padding: 5px 9px; border-radius: 980px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; letter-spacing: 0; }
.pill.ok { background: var(--accent-soft); color: var(--accent); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }

/* ------------------------------------------------------------ how it works */
.compare { display: grid; gap: 20px; margin-top: 72px; }
@media (min-width: 900px) { .compare { grid-template-columns: 1fr 1fr; } }
.flow { margin: 0; padding: 36px 32px; border-radius: 28px; background: var(--tile); }
.flow figcaption { margin-bottom: 28px; }
.flow figcaption span { display: block; font-size: .95rem; color: var(--ink-3); margin-bottom: 6px; }
.flow figcaption strong { display: block; font: 600 1.5rem/1.15 var(--display); letter-spacing: -.03em; }
.flow-fpe figcaption span { color: var(--accent); }
.nodes { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.node { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; font-size: .95rem; color: var(--ink-3); padding-left: 26px; }
.node::before { content: ""; position: absolute; left: 4px; top: .48em; width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.node + .node::after { content: ""; position: absolute; left: 8px; bottom: calc(100% - .48em); height: 22px; width: 1px; background: var(--line-2); }
.flow-fpe .node::before, .flow-fpe .node + .node::after { background: var(--accent); }
.node-k { font-weight: 600; color: var(--ink); }
.node code { font-size: .88rem; background: var(--bg); }
.node.token code { color: var(--accent); font-weight: 600; }
.node.vault { flex-direction: column; align-items: flex-start; padding: 18px 20px 18px 46px; border-radius: 18px; background: var(--bad-soft); }
.node.vault::before { left: 20px; top: 24px; background: var(--bad); }
.node.vault code { white-space: normal; word-break: break-word; }
.node.vault .ticks { margin-top: 8px; }
.flow-foot { margin-top: 30px; font-size: 1.05rem; color: var(--ink); font-weight: 600; letter-spacing: -.015em; }
.steps { display: grid; gap: 40px; margin-top: 96px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.step-n { display: block; font: 600 .95rem/1 var(--mono); color: var(--accent); margin-bottom: 14px; }
.step h3 { font-size: 1.35rem; }
.step p { margin-top: 10px; color: var(--ink-3); font-size: 1rem; }
.step code { white-space: normal; }

/* ------------------------------------------------------------ numbers */
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 32px; margin-top: 80px; }
@media (min-width: 900px) { .numbers { grid-template-columns: repeat(4, 1fr); } }
.num b { display: block; font: 600 clamp(3rem, 7vw, 5rem)/1 var(--display); letter-spacing: -.05em; }
.num span { display: block; margin-top: 12px; font-size: .98rem; color: var(--ink-3); line-height: 1.4; max-width: 22ch; }
.num sup { font-size: .55em; color: var(--ink-3); margin-left: 2px; }
.numbers-foot { margin: 64px auto 0; max-width: 860px; text-align: center; }
.numbers-link { margin-top: 22px; }
.num b small { font-size: .45em; letter-spacing: -.02em; }

/* ------------------------------------------------------------ features (bento) */
.bento { display: grid; gap: 20px; margin-top: 72px; }
@media (min-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .bento > .span { grid-column: 1 / -1; } }
.tile { background: var(--tile); border-radius: 28px; padding: 40px 30px; min-width: 0; display: flex; flex-direction: column; }
@media (min-width: 900px) { .tile { padding: 48px 44px; } }
.feat-n { font: 600 .9rem/1 var(--mono); color: var(--accent); }
.tile h3 { margin-top: 14px; font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -.035em; line-height: 1.1; }
.tile > p, .tile-copy > p { margin-top: 14px; color: var(--ink-3); font-size: 1.04rem; line-height: 1.5; }
.tile > p strong, .tile-copy > p strong { color: var(--ink); font-weight: 600; }
.tile .fine { margin-top: 18px; }
.tile.hero-tile { display: grid; gap: 36px; }
@media (min-width: 960px) { .tile.hero-tile { grid-template-columns: 1fr 1.1fr; align-items: center; } }
.ticks { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; font-size: .98rem; color: var(--ink-3); }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .28em; width: 17px; height: 17px; border-radius: 50%; background: var(--accent-soft); }
.ticks li::after { content: ""; position: absolute; left: 5.5px; top: calc(.28em + 5px); width: 6px; height: 3.5px; border-left: 1.7px solid var(--accent); border-bottom: 1.7px solid var(--accent); transform: rotate(-45deg); }
.ticks strong { color: var(--ink); font-weight: 600; }
.ticks.bad li::before { background: var(--bad-soft); }
.ticks.bad li::after { border: 0; width: 7px; height: 1.7px; left: 5px; top: calc(.28em + 7.6px); background: var(--bad); transform: none; }
.ticks.warn li::before { background: var(--warn-soft); }
.ticks.warn li::after { border: 0; width: 1.7px; height: 7px; left: 7.6px; top: calc(.28em + 4px); background: var(--warn); transform: none; }
.code-card { background: var(--code-bg); border-radius: 20px; overflow: hidden; color: var(--code-ink); min-width: 0; border: 1px solid var(--code-line); }
.code-head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--code-line); font: 500 .78rem/1 var(--mono); }
.code-head .muted { color: var(--code-c); }
pre { margin: 0; padding: 20px; overflow-x: auto; font-size: .8rem; line-height: 1.75; tab-size: 2; }
pre code { font-size: inherit; }
.code-card pre, .code-sm { color: var(--code-ink); }
.code-sm { background: var(--code-bg); border-radius: 16px; padding: 16px 18px; font-size: .76rem; margin-top: 20px; border: 1px solid var(--code-line); }
pre .c { color: var(--code-c); } pre .s { color: var(--code-s); } pre .k { color: var(--code-k); } pre .n { color: var(--code-n); } pre .kw { color: #ff9fca; }
pre .hl { color: #002417; background: var(--code-s); border-radius: 5px; padding: 0 5px; font-weight: 700; }
.json-pair { display: grid; margin-top: auto; }
.json-arrow { font: 600 .78rem/1 var(--mono); color: var(--accent); padding: 14px 0 0 4px; }
.json-arrow + pre { margin-top: 10px; }
.chips { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: .9rem; font-weight: 500; padding: 8px 14px; border-radius: 980px; background: var(--bg); color: var(--ink); display: inline-flex; gap: 6px; align-items: baseline; }
.chip small { font-size: .72rem; color: var(--ink-3); }
.chip.in { background: var(--accent-soft); }
.chip.ner { background: var(--ner-soft); }
.mini { margin-top: 22px; border-collapse: separate; border-spacing: 0; }
.mini thead th { border-top: 0; }
.mini td, .mini th { padding: 9px 10px; }
.mini td:first-child { font-weight: 500; color: var(--ink); }
.mini td.mono:nth-child(2) { color: var(--ink-3); }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.stat b { display: block; font: 600 3rem/1 var(--display); letter-spacing: -.05em; }
.stat span { display: block; margin-top: 8px; font-size: .85rem; color: var(--ink-3); line-height: 1.35; }
.bars { display: grid; gap: 12px; margin-top: 26px; }
.bar { display: grid; grid-template-columns: minmax(110px, 1.1fr) 2fr auto; align-items: center; gap: 14px; font-size: .88rem; color: var(--ink-3); }
.bar i { height: 6px; border-radius: 99px; background: var(--line); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--accent); border-radius: 99px; }
.bar.ner i::after { background: var(--ner); }
.bar b { font: 600 .86rem/1 var(--mono); color: var(--ink); }
.bar i.v100 { --v: 1; } .bar i.v80 { --v: .80; } .bar i.v77 { --v: .77; }
.feat-wide { display: grid; gap: 10px 48px; }
@media (min-width: 900px) { .feat-wide { grid-template-columns: 1.1fr 1fr; align-items: end; } }
.feat-wide .fine { font-size: .86rem; }
.feat-wide p + p { margin-top: 12px; }

/* deployment: black tile (in both themes) */
.deploy { background: #000; color: #f5f5f7; border-radius: 28px; padding: 44px 30px; display: grid; gap: 32px; }
@media (min-width: 900px) { .deploy { padding: 64px 56px; } }
:root[data-theme="dark"] .deploy { border: 1px solid #2c2c2e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .deploy { border: 1px solid #2c2c2e; } }
.deploy .feat-n { color: #30d99b; }
.deploy h3 { margin-top: 14px; font-size: clamp(1.8rem, 3.4vw, 2.8rem); letter-spacing: -.04em; color: #f5f5f7; }
.deploy-head p { margin-top: 16px; color: #a1a1a6; max-width: 640px; font-size: 1.06rem; }
.deploy-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .deploy-grid { grid-template-columns: 1fr 1fr; } }
.deploy-card { border-radius: 22px; padding: 28px; background: #161617; display: flex; flex-direction: column; }
.deploy-card.planned { background: transparent; border: 1px dashed #3a3a3c; }
.deploy-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.deploy-top strong { font: 600 1.2rem/1.2 var(--display); letter-spacing: -.02em; }
.deploy .ticks { color: #a1a1a6; }
.deploy .ticks li::before { background: rgba(48, 217, 155, .14); }
.deploy .ticks li::after { border-color: #30d99b; }
.tag { font: 600 .72rem/1 var(--font); padding: 6px 10px; border-radius: 980px; letter-spacing: 0; }
.tag.accent { background: rgba(48, 217, 155, .14); color: #30d99b; }
.tag.warn { background: rgba(255, 179, 92, .14); color: #ffb35c; }
.tag.light-warn { background: var(--warn-soft); color: var(--warn); }
.boundary { margin: 22px 0 4px; display: flex; align-items: stretch; gap: 10px; font-size: .8rem; text-align: center; }
.zone { flex: 1; padding: 14px; border-radius: 14px; border: 1px solid #3a3a3c; font-weight: 600; line-height: 1.3; color: #f5f5f7; }
.zone small { font-weight: 400; color: #8e8e93; }
.zone.you { border-color: #30d99b; }
.arrow { align-self: center; font: 500 .72rem/1 var(--mono); color: #8e8e93; white-space: nowrap; }
.deploy .btn.ghost { margin-top: 20px; align-self: flex-start; color: #f5f5f7; border-color: #48484a; }
.deploy .btn.ghost:hover { border-color: #f5f5f7; }

/* ------------------------------------------------------------ enterprise */
.ent-grid { display: grid; gap: 20px; margin-top: 72px; }
@media (min-width: 760px) { .ent-grid { grid-template-columns: 1fr 1fr; } }
.ent-card { padding: 40px 32px; border-radius: 28px; background: var(--tile); display: flex; flex-direction: column; gap: 12px; }
.ent-card h3 { font-size: 1.6rem; letter-spacing: -.03em; }
.ent-card p { color: var(--ink-3); font-size: 1.02rem; }
.ent-card code { white-space: normal; }
.ent-status { margin-top: auto; padding-top: 8px; }
.ent-cta { margin-top: 64px; text-align: center; display: grid; gap: 22px; justify-items: center; }
.ent-cta p { color: var(--ink-3); font-size: 1.1rem; max-width: 560px; }
.soon { color: var(--ink-3); }

/* ------------------------------------------------------------ pricing */
.plans { display: grid; gap: 20px; margin-top: 72px; }
@media (min-width: 640px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: flex; flex-direction: column; padding: 34px 28px; border-radius: 28px; background: var(--tile); }
.plan h3 { font-size: 1.15rem; }
.price { margin-top: 14px; display: flex; align-items: baseline; gap: 4px; }
.price b { font: 600 2.8rem/1 var(--display); letter-spacing: -.05em; }
.price span { color: var(--ink-3); font-size: .95rem; }
.plan .ticks { flex: 1; margin: 24px 0 30px; font-size: .92rem; }
.plan .btn { width: 100%; }
.pricing-notes { margin: 48px auto 0; display: grid; gap: 12px; font-size: .92rem; color: var(--ink-3); max-width: 760px; text-align: center; }
.pricing-notes strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------ developers (stage) */
.dev { display: grid; gap: 48px; }
@media (min-width: 980px) { .dev { grid-template-columns: .85fr 1.15fr; align-items: start; } }
.dev-steps { margin: 36px 0 22px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 22px; }
.dev-steps li { counter-increment: s; position: relative; padding-left: 44px; color: var(--ink-3); font-size: 1.02rem; }
.dev-steps li::before { content: counter(s); position: absolute; left: 0; top: -1px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font: 600 .82rem/1 var(--mono); color: var(--ink); }
.dev-steps strong { color: var(--ink); font-weight: 600; }
.dev-steps code { white-space: normal; }
.dev-copy p + p { margin-top: 16px; }
.dev-copy .muted { font-size: .95rem; }
.tab-list { display: flex; align-items: center; gap: 4px; padding: 8px; border-bottom: 1px solid var(--code-line); }
.tab-list [role="tab"] { background: none; border: 0; color: var(--code-c); font: 500 .86rem/1 var(--font); padding: 9px 14px; border-radius: 980px; cursor: pointer; }
.tab-list [role="tab"][aria-selected="true"] { color: #000; background: #f5f5f7; }
.tab-list .copy { margin-left: auto; background: none; border: 0; color: var(--code-c); font: 500 .8rem/1 var(--font); padding: 9px 12px; border-radius: 980px; cursor: pointer; }
.tab-list .copy:hover { color: var(--code-ink); }
.tabs pre { max-height: 580px; }

/* ------------------------------------------------------------ security */
.sec-grid { display: grid; gap: 48px; margin-top: 72px; }
@media (min-width: 960px) { .sec-grid { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.sec h3 { font-size: 1.35rem; }
.sec code { white-space: normal; }
.sec-more { margin-top: 56px; text-align: center; }

/* ------------------------------------------------------------ final + footer */
.final { padding: 140px 0; text-align: center; }
.final .title { max-width: 14ch; margin: 0 auto; }
.final p { margin: 22px auto 0; color: var(--ink-3); max-width: 46ch; font-size: 1.2rem; }
.foot { background: var(--bg-2); padding: 28px 0 40px; font-size: .78rem; color: var(--ink-3); border-top: 1px solid var(--line); }
.foot-inner { display: grid; gap: 14px; }
@media (min-width: 860px) { .foot-inner { grid-template-columns: auto 1fr; align-items: center; } .foot-links { justify-content: flex-end; } .foot-note { grid-column: 1 / -1; } }
.foot-brand { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: baseline; }
.foot-brand .logo-text { color: var(--ink); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { text-decoration: none; color: var(--ink-2); } .foot-links a:hover { text-decoration: underline; }
.foot-note { padding-top: 14px; border-top: 1px solid var(--line); }

/* ------------------------------------------------------------ dialogs */
.dialog { width: min(520px, calc(100vw - 32px)); border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); padding: 30px; box-shadow: 0 30px 90px -20px rgba(0, 0, 0, .45); }
.dialog::backdrop { background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
.dialog h2 { font-size: 1.7rem; letter-spacing: -.035em; }
.dialog > p { margin-top: 10px; font-size: .95rem; }
.dialog-close-row { display: flex; justify-content: flex-end; margin: -12px -12px 0 0; }
.gk-form { margin-top: 22px; display: grid; gap: 8px; }
.gk-form label { font-size: .85rem; font-weight: 600; }
.gk-row { display: flex; gap: 10px; flex-wrap: wrap; }
.gk-row input { flex: 1 1 220px; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); color: var(--ink); padding: 0 14px; font: inherit; }
.gk-row input:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
#gk-result { margin-top: 20px; }
.key-box { margin-top: 10px; display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft); }
.key-box code { flex: 1; min-width: 0; overflow-wrap: anywhere; white-space: normal; background: none; padding: 0; }
.gk-error { margin-top: 14px; color: var(--bad); font-size: .9rem; }
.gk-curl { margin-top: 20px; font-size: .88rem; }
.gk-curl summary { cursor: pointer; color: var(--ink-3); }
.gk-curl pre { margin-top: 10px; background: var(--code-bg); color: var(--code-ink); border-radius: 14px; font-size: .76rem; }

/* ------------------------------------------------------------ long-form pages */
.prose { max-width: 780px; padding-top: 88px; padding-bottom: 120px; }
.prose .kicker { margin-bottom: 12px; }
.prose h1 { font-size: clamp(2.4rem, 5.6vw, 3.6rem); letter-spacing: -.045em; }
.prose h2 { font-size: 1.7rem; letter-spacing: -.03em; margin-top: 64px; }
.prose h3 { margin-top: 36px; font-size: 1.2rem; }
.prose > p, .prose .table-scroll { margin-top: 16px; color: var(--ink-2); }
.prose > p strong { color: var(--ink); }
.prose .lede { margin: 20px 0 0; max-width: none; text-align: left; }
.prose .mini { margin-top: 0; }
.prose .mini th[scope="row"] { text-transform: none; letter-spacing: -.01em; font-size: .9rem; color: var(--ink); white-space: nowrap; vertical-align: top; }
.prose .mini td { white-space: normal; color: var(--ink-2); line-height: 1.55; }
.prose .mini td.num { font-family: var(--mono); font-size: .82rem; text-align: right; white-space: nowrap; }
.prose .mini th.num { text-align: right; }
.prose .mini tr.total td { font-weight: 600; color: var(--ink); }
.prose .mini code, .prose code { white-space: normal; }
.prose .mini tr:first-child th, .prose .mini tr:first-child td { border-top: 0; }
.prose .mini thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
.prose pre { margin-top: 16px; background: var(--code-bg); color: var(--code-ink); border-radius: 16px; }
.prose ol, .prose > ul:not(.ticks) { color: var(--ink-2); padding-left: 22px; margin: 16px 0 0; display: grid; gap: 8px; }
.prose .fine { margin-top: 10px; }
.callout { margin-top: 22px; padding: 20px 22px; border-radius: 18px; background: var(--warn-soft); color: var(--ink-2); font-size: .98rem; }
.callout strong { color: var(--ink); }

/* subtle: new demo results settle in */
@keyframes settle { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.out .ent, .restored:not([hidden]), .callout-luhn:not([hidden]) { animation: settle .35s var(--ease); }
.mini td.pair { white-space: nowrap; }
.mini .was, .mini .tok { display: block; font-family: var(--mono); letter-spacing: 0; }
.mini .was { font-size: .74rem; color: var(--ink-3); }
.mini .tok { font-size: .84rem; color: var(--ink); margin-top: 2px; }
.mini td { vertical-align: middle; }
/* tiles sitting on a tinted section use the raised surface */
.tint .ent-card, .tint .plan, .tint .tile { background: var(--surface); }
.dev .title { font-size: clamp(2.2rem, 4.2vw, 3.3rem); }
@media (max-width: 520px) {
  .tile { padding: 34px 22px; }
  .mini .tok { font-size: .76rem; } .mini .was { font-size: .7rem; }
  .mini td, .mini th { padding: 8px 6px; }
  .boundary { flex-direction: column; } .boundary .arrow { align-self: center; }
  .deploy { padding: 40px 20px; } .deploy-card { padding: 24px 20px; }
}
@media (max-width: 520px) {
  .tile .mini thead { display: none; }
  .tile .mini, .tile .mini tbody { display: block; }
  .tile .mini tr { display: grid; grid-template-columns: 74px 1fr; column-gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
  .tile .mini td { border: 0; padding: 0; }
  .tile .mini td:last-child { grid-column: 2; margin-top: 8px; }
}

/* ------------------------------------------------------------ verify page */
.verify { min-height: calc(100vh - 53px); display: grid; place-items: center; padding: 64px 0; }
.verify-card { max-width: 560px; margin: 0 auto; text-align: center; display: grid; justify-items: center; }
.verify-card h1 { font-size: clamp(2.2rem, 6vw, 3.2rem); letter-spacing: -.045em; margin-top: 28px; }
.verify-card .sub { margin-top: 16px; }
.verify-card .cta-row { margin-top: 32px; }
.verify-icon { width: 64px; height: 64px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font: 600 1.6rem/1 var(--display); color: var(--ink-3); }
.verify-icon::before { content: "@"; }
.verify-icon[data-state="busy"]::before { content: "…"; }
.verify-icon[data-state="ok"] { background: var(--accent-soft); color: var(--accent); }
.verify-icon[data-state="ok"]::before { content: "✓"; }
.verify-icon[data-state="bad"] { background: var(--bad-soft); color: var(--bad); }
.verify-icon[data-state="bad"]::before { content: "×"; }
.verify-icon[data-state="warn"] { background: var(--warn-soft); color: var(--warn); }
.verify-icon[data-state="warn"]::before { content: "!"; }
@media (max-width: 560px) {
  .mini.stack thead { display: none; }
  .mini.stack, .mini.stack tbody, .mini.stack tr, .mini.stack td { display: block; }
  .mini.stack tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .prose .mini.stack td { border: 0; padding: 2px 0; white-space: normal; }
  .prose .mini.stack td:first-child { font-weight: 600; color: var(--ink); font-size: 1rem; margin-bottom: 4px; }
  .mini.stack td:not(:first-child)::before { content: attr(data-label) " · "; color: var(--ink-3); font-size: .8rem; }
}
@media (max-width: 560px) { .mini.stack tr:first-child { border-top: 0; padding-top: 4px; } }

/* ------------------------------------------------------------ articles (generated by content/tools) */
.post { max-width: 720px; }
.post h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.post-meta { margin-top: 18px; font-size: .85rem; color: var(--ink-3); }
.post-body { margin-top: 40px; }
.post-body > p, .post-body li { color: var(--ink-2); font-size: 1.06rem; line-height: 1.65; }
.post-body > p + p { margin-top: 18px; }
.post-body h2 { font-size: 1.6rem; margin-top: 56px; margin-bottom: 14px; }
.post-body h3 { font-size: 1.2rem; margin-top: 32px; margin-bottom: 10px; }
.post-body ul, .post-body ol { padding-left: 22px; margin: 16px 0; display: grid; gap: 8px; }
.post-body .code-card, .post-body .table-scroll, .post-body .callout { margin: 24px 0; }
.post-body code { white-space: normal; }
.post-body pre code { white-space: pre; }
.post-body strong { color: var(--ink); }
.post-sources { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); }
.post-sources h2 { font-size: 1.1rem; margin: 0 0 12px; }
.post-sources ul { padding-left: 20px; display: grid; gap: 6px; font-size: .9rem; color: var(--ink-3); }
.post-cta { margin-top: 56px; padding: 36px 28px; border-radius: 28px; background: var(--tile); text-align: center; }
.post-cta p { color: var(--ink-2); font-size: 1.1rem; }
.post-cta .cta-row { margin-top: 20px; }
.post-list { list-style: none; padding: 0; margin: 48px 0 0; display: grid; gap: 14px; }
.post-item a, .post-item > span { display: grid; gap: 6px; padding: 26px 28px; border-radius: 22px; background: var(--tile); text-decoration: none; }
.post-item a:hover { background: var(--surface-2); }
.post-item strong { font: 600 1.25rem/1.25 var(--display); letter-spacing: -.02em; color: var(--ink); }
.post-item span { color: var(--ink-3); font-size: .98rem; }
.preview-flag { margin-top: 18px; display: inline-block; padding: 8px 12px; border-radius: 10px; background: var(--warn-soft); color: var(--warn); font-weight: 600; font-size: .85rem; }
