/* tabulay.app
   Type: the Mac's own fonts (SF Pro, SF Mono) on Apple devices, like the app.
   Inter and JetBrains Mono are downloaded only where those don't exist. */

@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-SemiBold.woff2") format("woff2");
  font-weight: 600 700;
  font-display: swap;
}

/* ---------------------------------------------------------------- tokens */
:root {
  color-scheme: light;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Site */
  --bg: #ffffff;
  --bg-2: #f5f6f3;
  --bg-3: #eceee8;
  --surface: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #3a3a3c;
  --ink-3: #6e6e73;
  --ink-4: #8e8e93;
  --line: rgba(24, 32, 18, 0.12);
  --line-2: rgba(24, 32, 18, 0.07);
  --sage: #a3be8c;
  --sage-strong: #7fa35f;
  --sage-ink: #4f7236;
  --sage-deep: #34502a;
  --on-sage: #1f2a17;
  --sage-tint: #eef3e9;
  --sage-tint-2: #e3ecd9;
  --sage-line: #c9d9ba;
  --danger: #b0413e;
  --danger-tint: #fdecea;
  --warn: #9a6b00;
  --band: rgba(163, 190, 140, 0.16);
  --grid-line: rgba(24, 32, 18, 0.055);
  --shadow-1: 0 1px 2px rgba(20, 30, 15, 0.06), 0 0 0 0.5px rgba(20, 30, 15, 0.1);
  --shadow-2: 0 0 0 0.5px rgba(20, 30, 15, 0.14), 0 10px 30px -10px rgba(20, 30, 15, 0.22);
  --shadow-win: 0 0 0 0.5px rgba(0, 0, 0, 0.22), 0 40px 90px -30px rgba(28, 40, 20, 0.38), 0 18px 36px -18px rgba(28, 40, 20, 0.22);

  /* The app window: the app's own asset-catalog colors */
  --app-accent: #6f944f;
  --app-accent-fill: #a3be8c;
  --app-accent-strong: #7fa35f;
  --app-accent-text: #4f7236;
  --app-bar: #f7f7f8;
  --app-side: #eeeff2;
  --app-card-line: #e0e0e4;
  --app-cell-line: #f0f0f2;
  --app-chip-border: #c9d9ba;
  --app-chip-fill: #eef3e9;
  --app-code: #f2f3f5;
  --app-col-tint: #f1f6ec;
  --app-danger: #b0413e;
  --app-danger-fill: #fdecea;
  --app-danger-line: #f0cfcc;
  --app-danger-soft: #fdf3f2;
  --app-grid: #ffffff;
  --app-gutter: #f4f4f6;
  --app-header-line: #e2e2e6;
  --app-hist-neg: #b9ccaa;
  --app-ink: #1d1d1f;
  --app-ink-2: #3a3a3c;
  --app-ink-3: #6e6e73;
  --app-ink-4: #8e8e93;
  --app-ink-faint: #aeaeb2;
  --app-ink-ghost: #b8b8be;
  --app-pane-line: rgba(0, 0, 0, 0.09);
  --app-sel-header: #e6eedd;
  --app-sel-row: #e3ecd9;
  --app-sel-rownum: #d3e2c4;
  --app-surface: #fbfbfc;
  --app-kw: #4a6fa0;
  --app-str: #5f7f45;
  --app-num: #8f5f92;
  --app-op: #b3623f;
  --app-unknown: #8a5a2b;
  --app-comment: #8e8e93;
  --app-warn: #9a6b00;
  --app-zebra: #fafafb;
  --app-seg-track: rgba(0, 0, 0, 0.06);
  --app-seg-on: #ffffff;
  --app-hover: rgba(0, 0, 0, 0.05);
  --app-active-file: #dfe8d6;
  --app-titlebar-ink: #1d1d1f;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b0c0a;
    --bg-2: #111310;
    --bg-3: #181b16;
    --surface: #141612;
    --ink: #f2f3ef;
    --ink-2: #d4d7cf;
    --ink-3: #a3a89c;
    --ink-4: #80857a;
    --line: rgba(232, 240, 222, 0.14);
    --line-2: rgba(232, 240, 222, 0.08);
    --sage-ink: #b4cf99;
    --sage-deep: #c9dbb8;
    --sage-tint: #1b2416;
    --sage-tint-2: #232f1d;
    --sage-line: #3f5234;
    --danger: #ff8a80;
    --danger-tint: #3a1f1d;
    --warn: #e3b341;
    --band: rgba(163, 190, 140, 0.09);
    --grid-line: rgba(232, 240, 222, 0.05);
    --shadow-1: 0 0 0 0.5px rgba(255, 255, 255, 0.1);
    --shadow-2: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
    --shadow-win: 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 18px 36px -18px rgba(0, 0, 0, 0.6);
  }
  :root:not([data-theme="light"]) .win:not([data-appearance="light"]) { --win-dark: 1; }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0c0a;
  --bg-2: #111310;
  --bg-3: #181b16;
  --surface: #141612;
  --ink: #f2f3ef;
  --ink-2: #d4d7cf;
  --ink-3: #a3a89c;
  --ink-4: #80857a;
  --line: rgba(232, 240, 222, 0.14);
  --line-2: rgba(232, 240, 222, 0.08);
  --sage-ink: #b4cf99;
  --sage-deep: #c9dbb8;
  --sage-tint: #1b2416;
  --sage-tint-2: #232f1d;
  --sage-line: #3f5234;
  --danger: #ff8a80;
  --danger-tint: #3a1f1d;
  --warn: #e3b341;
  --band: rgba(163, 190, 140, 0.09);
  --grid-line: rgba(232, 240, 222, 0.05);
  --shadow-1: 0 0 0 0.5px rgba(255, 255, 255, 0.1);
  --shadow-2: 0 0 0 0.5px rgba(255, 255, 255, 0.12), 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --shadow-win: 0 0 0 0.5px rgba(255, 255, 255, 0.16), 0 40px 90px -30px rgba(0, 0, 0, 0.8), 0 18px 36px -18px rgba(0, 0, 0, 0.6);
}

/* The app's dark appearance. Applied when the page is dark (unless a window is
   pinned to light), or when a window is pinned to dark. */
.win[data-appearance="dark"],
:root[data-theme="dark"] .win:not([data-appearance="light"]) {
  --app-accent: #a3be8c; --app-accent-fill: #7fa35f; --app-accent-strong: #a3be8c; --app-accent-text: #a9c98e;
  --app-bar: #2a2a2c; --app-side: #252527; --app-card-line: #3a3a3c; --app-cell-line: #2c2c2e;
  --app-chip-border: #4a5c3c; --app-chip-fill: #2a3424; --app-code: #2c2c2e; --app-col-tint: #252d20;
  --app-danger: #ff7b72; --app-danger-fill: #4a2220; --app-danger-line: #6b3431; --app-danger-soft: #3a2020;
  --app-grid: #1e1e1e; --app-gutter: #262628; --app-header-line: #3a3a3c; --app-hist-neg: #5e7a48;
  --app-ink: #f2f2f7; --app-ink-2: #d1d1d6; --app-ink-3: #a1a1a6; --app-ink-4: #8e8e93; --app-ink-faint: #6e6e73; --app-ink-ghost: #636366;
  --app-pane-line: rgba(255, 255, 255, 0.1); --app-sel-header: #34412b; --app-sel-row: #2f3a27; --app-sel-rownum: #3a4a2e;
  --app-surface: #232325; --app-kw: #79a6e0; --app-str: #9cc27e; --app-num: #c99bcc; --app-op: #e0906b; --app-unknown: #d19a62;
  --app-comment: #7c7c80; --app-warn: #e3b341; --app-zebra: #222224; --app-seg-track: rgba(255, 255, 255, 0.08); --app-seg-on: #5a5a5e;
  --app-hover: rgba(255, 255, 255, 0.06); --app-active-file: #34412b; --app-titlebar-ink: #f2f2f7;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .win:not([data-appearance="light"]) {
    --app-accent: #a3be8c; --app-accent-fill: #7fa35f; --app-accent-strong: #a3be8c; --app-accent-text: #a9c98e;
    --app-bar: #2a2a2c; --app-side: #252527; --app-card-line: #3a3a3c; --app-cell-line: #2c2c2e;
    --app-chip-border: #4a5c3c; --app-chip-fill: #2a3424; --app-code: #2c2c2e; --app-col-tint: #252d20;
    --app-danger: #ff7b72; --app-danger-fill: #4a2220; --app-danger-line: #6b3431; --app-danger-soft: #3a2020;
    --app-grid: #1e1e1e; --app-gutter: #262628; --app-header-line: #3a3a3c; --app-hist-neg: #5e7a48;
    --app-ink: #f2f2f7; --app-ink-2: #d1d1d6; --app-ink-3: #a1a1a6; --app-ink-4: #8e8e93; --app-ink-faint: #6e6e73; --app-ink-ghost: #636366;
    --app-pane-line: rgba(255, 255, 255, 0.1); --app-sel-header: #34412b; --app-sel-row: #2f3a27; --app-sel-rownum: #3a4a2e;
    --app-surface: #232325; --app-kw: #79a6e0; --app-str: #9cc27e; --app-num: #c99bcc; --app-op: #e0906b; --app-unknown: #d19a62;
    --app-comment: #7c7c80; --app-warn: #e3b341; --app-zebra: #222224; --app-seg-track: rgba(255, 255, 255, 0.08); --app-seg-on: #5a5a5e;
    --app-hover: rgba(255, 255, 255, 0.06); --app-active-file: #34412b; --app-titlebar-ink: #f2f2f7;
  }
}

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.55 var(--sans);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--sage-ink); text-decoration: none; text-underline-offset: 0.18em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--sage-strong); outline-offset: 3px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
button { cursor: pointer; }
code, kbd, samp, .mono { font-family: var(--mono); font-feature-settings: "calt" 0, "liga" 0; letter-spacing: 0; }
kbd {
  display: inline-block; min-width: 1.5em; padding: 0.08em 0.4em; border-radius: 5px;
  background: var(--surface); box-shadow: inset 0 -1px 0 var(--line), 0 0 0 0.5px var(--line);
  font-size: 0.86em; text-align: center; color: var(--ink-2);
}
h1, h2, h3, h4 { font-family: var(--display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
[hidden] { display: none !important; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--bg); border-radius: 8px; }
.skip:focus { top: 12px; }
.num { font-variant-numeric: tabular-nums; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.wrap-narrow { max-width: 820px; }
.wrap-wide { max-width: 1320px; }
@media (max-width: 600px) { .wrap { padding-inline: 18px; } }

/* ---------------------------------------------------------------- type scale */
.display { font-size: clamp(44px, 8.4vw, 116px); line-height: 0.96; letter-spacing: -0.038em; font-weight: 700; }
.h2 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.032em; font-weight: 700; }
.h3 { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.15; letter-spacing: -0.024em; font-weight: 650; }
.h4 { font-size: 19px; line-height: 1.3; letter-spacing: -0.016em; font-weight: 650; }
.lead { font-size: clamp(19px, 1.9vw, 23px); line-height: 1.45; letter-spacing: -0.018em; color: var(--ink-3); }
.lead strong { color: var(--ink); font-weight: 600; }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.tiny { font-size: 12.5px; line-height: 1.45; color: var(--ink-4); }
.muted { color: var(--ink-3); }
.accent { color: var(--sage-ink); }

/* Eyebrows are set like the app's column headers: a name, then its type tag. */
.eyebrow {
  display: inline-flex; align-items: baseline; gap: 10px;
  font: 600 13px/1 var(--mono); letter-spacing: 0; color: var(--sage-ink);
}
.eyebrow .tag { font-weight: 400; color: var(--ink-4); }
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 2.5px; background: var(--sage); transform: translateY(0.5px); flex: none;
}

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 600 16px/1 var(--sans); letter-spacing: -0.01em; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--sage); color: var(--on-sage); box-shadow: inset 0 0 0 0.5px #86a56c; }
.btn-primary:hover { background: #b1ca9b; }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; color: var(--sage-ink); padding: 0 6px; }
.btn-ghost:hover { text-decoration: underline; }
.btn-quiet { background: var(--bg-3); color: var(--ink); }
.btn-quiet:hover { background: var(--line); }
.btn-sm { height: 34px; padding: 0 14px; font-size: 14px; }
.btn svg { width: 16px; height: 16px; }

/* ---------------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--line-2);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font: 650 19px/1 var(--display); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand svg { width: 24px; height: 24px; }
.nav-links { display: flex; gap: 24px; margin-left: 8px; }
.nav-links a { color: var(--ink-2); font-size: 14px; letter-spacing: -0.005em; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.nav-k {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px 0 12px;
  border-radius: 8px; border: 0; background: var(--bg-3); color: var(--ink-3); font-size: 13px;
}
.nav-k:hover { color: var(--ink); }
.nav-k kbd { background: var(--bg); font-size: 11px; box-shadow: none; }
.nav-lang { font: 500 13px/1 var(--mono); color: var(--ink-3); }
/* Theme button: shows the current mode (system, light, dark). */
.nav-theme {
  display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
  border-radius: 8px; border: 0; background: transparent; color: var(--ink-3); cursor: pointer;
}
.nav-theme:hover { color: var(--ink); background: var(--bg-3); }
.nav-theme svg { width: 16px; height: 16px; display: none; }
.nav-theme[data-mode="system"] .i-system,
.nav-theme[data-mode="light"] .i-light,
.nav-theme[data-mode="dark"] .i-dark { display: block; }
@media (max-width: 920px) { .nav-links { display: none; } }
@media (max-width: 520px) { .nav-k span { display: none; } .nav-lang { display: none; } }

/* ---------------------------------------------------------------- sections */
section { position: relative; }
.section { padding-block: clamp(80px, 11vw, 150px); }
.section-tight { padding-block: clamp(56px, 7vw, 96px); }
.alt { background: var(--bg-2); }
.divider { border-top: 0.5px solid var(--line); }
.stack { display: flex; flex-direction: column; }
.gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-20 { gap: 20px; } .gap-24 { gap: 24px; } .gap-32 { gap: 32px; } .gap-48 { gap: 48px; }
.center { text-align: center; align-items: center; }
.center .lead, .center p { margin-inline: auto; }
.measure { max-width: 34em; }
.measure-wide { max-width: 44em; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding-top: clamp(56px, 8vw, 104px); overflow: hidden; isolation: isolate; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: var(--grid-w, 128px) 34px;
  background-position: var(--band-x, calc(50% + 64px)) 0;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, rgba(0, 0, 0, 0.7) 45%, transparent 85%);
}
/* The selected column: the brand's one flourish, a sage band down the page. */
.hero-band {
  position: absolute; top: 0; bottom: 0; left: var(--band-x, 62%); width: calc(var(--band-w, 128px) + 1px); z-index: -1;
  background: linear-gradient(to bottom, var(--band), var(--band) 70%, transparent);
  border-inline: 1px solid color-mix(in srgb, var(--sage) 26%, transparent);
  pointer-events: none;
}
.hero-top { display: flex; flex-direction: column; gap: 26px; }
.hero h1 { max-width: none; }
.hero-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 32px 64px; align-items: end; margin-top: 6px; }
.hero-row .lead { max-width: 30em; }
.hero-side { display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-meta { display: flex; flex-wrap: wrap; row-gap: 2px; font: 400 13px/1.6 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.hero-meta span { white-space: nowrap; }
.hero-meta span + span::before { content: "·"; margin: 0 8px; color: var(--ink-4); }
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  height: 30px; padding: 0 12px 0 10px; border-radius: 999px;
  background: var(--sage-tint); color: var(--sage-ink); font: 500 13px/1 var(--sans);
  box-shadow: inset 0 0 0 0.5px var(--sage-line);
}
.status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sage-strong); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 30%, transparent); }
.hero-stage { margin-top: clamp(40px, 6vw, 72px); position: relative; }
@media (max-width: 900px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

/* ---------------------------------------------------------------- chapter layout */
.chapter-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.chapter-head .stack { gap: 18px; }
.chapter-head .lead { padding-bottom: 6px; }
@media (max-width: 900px) { .chapter-head { grid-template-columns: minmax(0, 1fr); } }

.explain {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(36px, 5vw, 56px);
  padding-top: 28px; border-top: 0.5px solid var(--line);
}
.explain h3 { font: 600 15px/1.35 var(--sans); letter-spacing: -0.01em; margin-bottom: 6px; color: var(--ink); }
.explain p { font-size: 15px; line-height: 1.55; color: var(--ink-3); }
@media (max-width: 800px) { .explain { grid-template-columns: minmax(0, 1fr); gap: 20px; } }

.plain {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px;
  background: var(--sage-tint); color: var(--ink-2); font-size: 16px; line-height: 1.5;
}
.plain b { color: var(--sage-ink); font: 600 12px/1.6 var(--mono); letter-spacing: 0; white-space: nowrap; }

.pro-badge {
  display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 5px;
  font: 600 11px/1 var(--mono); letter-spacing: 0.02em; color: var(--sage-ink); background: var(--sage-tint); box-shadow: inset 0 0 0 0.5px var(--sage-line);
  vertical-align: 0.35em; margin-left: 8px;
}
.free-badge { color: var(--ink-3); background: var(--bg-3); box-shadow: inset 0 0 0 0.5px var(--line); }

.demo-note { margin-top: 14px; font: 400 12px/1.5 var(--mono); color: var(--ink-4); letter-spacing: 0; }
.demo-note a { color: inherit; text-decoration: underline; }

/* ---------------------------------------------------------------- problem */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 0.5px var(--line); }
.fact { background: var(--bg); padding: 30px 28px 28px; display: flex; flex-direction: column; gap: 12px; }
.alt .fact { background: var(--bg-2); }
.fact-figure { font: 600 clamp(30px, 3.4vw, 42px)/1 var(--mono); letter-spacing: -0.04em; color: var(--ink); font-variant-numeric: tabular-nums; }
.fact-figure s { color: var(--danger); text-decoration-thickness: 2px; }
.fact p { font-size: 15px; color: var(--ink-3); line-height: 1.5; }
.fact .src { font-size: 12px; color: var(--ink-4); margin-top: auto; }
.fact .src a { color: inherit; text-decoration: underline; }
@media (max-width: 860px) { .facts { grid-template-columns: minmax(0, 1fr); } }

.morph { font: 500 clamp(18px, 2vw, 22px)/1.4 var(--mono); letter-spacing: -0.01em; display: grid; gap: 10px; }
.morph div { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: baseline; }
.morph .from { color: var(--ink); }
.morph .to { color: var(--danger); }
.morph .arrow { color: var(--ink-4); }

/* ---------------------------------------------------------------- figures strip */
.figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.figure { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 2px solid var(--ink); }
.figure .v { font: 600 clamp(40px, 5vw, 64px)/0.95 var(--display); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.figure .v small { font-size: 0.42em; letter-spacing: -0.02em; margin-left: 4px; font-weight: 600; color: var(--ink-3); }
.figure p { font-size: 15px; color: var(--ink-3); line-height: 1.45; }
@media (max-width: 860px) { .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 440px) { .figures { grid-template-columns: minmax(0, 1fr); } }

.footnotes { margin-top: 32px; font-size: 12.5px; line-height: 1.55; color: var(--ink-4); display: grid; gap: 6px; }
.footnotes a { color: inherit; text-decoration: underline; }
sup.fn { font: 600 0.55em/0 var(--mono); color: var(--sage-ink); margin-left: 1px; vertical-align: super; }
sup.fn a { color: inherit; }

/* ---------------------------------------------------------------- cards and grids */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); } }
.card { background: var(--surface); border-radius: 18px; padding: 26px; box-shadow: var(--shadow-1); }
.alt .card { background: var(--bg); }
.card h3 { font: 650 19px/1.25 var(--display); letter-spacing: -0.02em; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--ink-3); line-height: 1.55; }
.card .q { margin-top: 16px; padding-top: 14px; border-top: 0.5px solid var(--line); font: 400 13px/1.5 var(--mono); color: var(--sage-ink); letter-spacing: 0; }

/* ---------------------------------------------------------------- privacy spec sheet */
.spec {
  font: 400 14px/1.9 var(--mono); letter-spacing: 0; border-radius: 16px; padding: 22px 24px;
  background: var(--surface); box-shadow: var(--shadow-1);
}
.spec-row { display: flex; gap: 12px; align-items: baseline; }
.spec-row .k { color: var(--ink-2); }
.spec-row .dots { flex: 1; border-bottom: 1.5px dotted var(--line); transform: translateY(-4px); min-width: 16px; }
.spec-row .v { font-weight: 600; }
.spec-row .v.off { color: var(--danger); }
.spec-row .v.on { color: var(--sage-ink); }
.spec-title { font: 600 12px/1 var(--mono); color: var(--ink-4); margin-bottom: 12px; text-transform: uppercase; letter-spacing: 0.06em; }

.label-card { border-radius: 16px; padding: 22px 24px; background: var(--surface); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px; }
.label-card .t { font: 700 18px/1.2 var(--sans); letter-spacing: -0.02em; }
.label-card .big { display: flex; align-items: center; gap: 12px; font: 650 20px/1.2 var(--sans); }
.label-card .big svg { width: 34px; height: 34px; color: var(--sage-strong); }

/* ---------------------------------------------------------------- keyboard grid */
.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.key { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--shadow-1); font-size: 14.5px; }
.key kbd { font-size: 13px; }
.key .ks { display: flex; gap: 4px; }

/* ---------------------------------------------------------------- pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan { border-radius: 22px; padding: 32px; background: var(--surface); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 18px; }
.plan-pro { background: var(--ink); color: var(--bg); box-shadow: none; }
.plan-pro .muted, .plan-pro .small { color: color-mix(in srgb, var(--bg) 70%, transparent); }
.plan h3 { font: 650 22px/1.2 var(--display); letter-spacing: -0.02em; }
.price { font: 700 52px/1 var(--display); letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.price small { font: 500 16px/1 var(--sans); letter-spacing: -0.01em; margin-left: 6px; opacity: 0.7; }
.plan ul { list-style: none; display: grid; gap: 10px; font-size: 15.5px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 4px; background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.4' fill='none' stroke='%231f2a17' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.plan-pro li::before { background-color: var(--sage); }
.plan .fine { margin-top: auto; font-size: 13px; line-height: 1.5; opacity: 0.75; }
.rules { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 40px; }
.rules div { font-size: 14.5px; color: var(--ink-3); line-height: 1.5; }
.rules b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
@media (max-width: 820px) { .plans { grid-template-columns: minmax(0, 1fr); } .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .rules { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- FAQ */
.faq { border-top: 0.5px solid var(--line); }
.faq details { border-bottom: 0.5px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px; align-items: center;
  padding: 22px 0; font: 600 18px/1.35 var(--sans); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 12px; height: 12px; border-right: 1.8px solid var(--ink-3); border-bottom: 1.8px solid var(--ink-3);
  transform: rotate(45deg) translateY(-4px); transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq .a { padding: 0 0 24px; color: var(--ink-3); font-size: 16px; line-height: 1.6; max-width: 46em; display: grid; gap: 12px; }

/* ---------------------------------------------------------------- waitlist */
.cta-final { text-align: center; }
.cta-final .h2 { margin-inline: auto; max-width: 12em; }
.notify { display: flex; gap: 10px; max-width: 520px; margin-inline: auto; flex-wrap: wrap; justify-content: center; }
.notify input[type="email"] {
  flex: 1 1 260px; height: 50px; padding: 0 18px; border-radius: 999px; border: 0; outline: none;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 16px;
}
.notify input[type="email"]:focus { box-shadow: inset 0 0 0 2px var(--sage-strong); }
.notify .btn { height: 50px; }
.notify-legal { font-size: 13px; color: var(--ink-4); max-width: 34em; margin: 14px auto 0; line-height: 1.5; }
.notify-legal a { color: inherit; text-decoration: underline; }
.notify-msg { min-height: 1.5em; margin-top: 14px; font-size: 15px; }
.notify-msg.ok { color: var(--sage-ink); }
.notify-msg.err { color: var(--danger); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ts-slot:empty { display: none; }
.ts-slot { display: flex; justify-content: center; margin-top: 12px; }

/* ---------------------------------------------------------------- footer */
.footer { padding: 56px 0 44px; background: var(--bg-2); border-top: 0.5px solid var(--line-2); font-size: 13.5px; color: var(--ink-3); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.footer h4 { font: 600 12px/1 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 14px; }
.footer ul { list-style: none; display: grid; gap: 9px; }
.footer a { color: var(--ink-2); }
.footer .fine { margin-top: 36px; padding-top: 20px; border-top: 0.5px solid var(--line); display: grid; gap: 6px; font-size: 12px; color: var(--ink-4); line-height: 1.55; }
.footer .brand { font-size: 17px; }
.footer .sig { margin-top: 12px; color: var(--ink-3); max-width: 22em; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------------------------------------------------------------- long-form pages */
.page-head { padding: clamp(56px, 8vw, 96px) 0 clamp(32px, 4vw, 48px); }
.page-head .lead { margin-top: 18px; max-width: 36em; }
.prose { font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.prose > * + * { margin-top: 1em; }
.prose h2 { font: 650 28px/1.2 var(--display); letter-spacing: -0.025em; color: var(--ink); margin-top: 2em; }
.prose h3 { font: 650 20px/1.3 var(--display); letter-spacing: -0.018em; color: var(--ink); margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: 0.4em; }
.prose table { width: 100%; border-collapse: collapse; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 0.5px solid var(--line); }
.prose th { font-weight: 600; color: var(--ink); }
.prose code { font-size: 0.88em; background: var(--bg-3); padding: 0.1em 0.35em; border-radius: 5px; }
/* Code blocks (the SQL guides): scroll inside the block, never the page. */
.prose pre { overflow-x: auto; max-width: 100%; margin: 0 0 1.2em; padding: 14px 16px; background: var(--bg-3); border-radius: 10px; font-size: 14px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; font-size: inherit; overflow-wrap: normal; }
.prose blockquote { margin: 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--sage); color: var(--ink-3); }
.table-scroll { overflow-x: auto; }
.meta-line { font: 400 13px/1.5 var(--mono); color: var(--ink-4); letter-spacing: 0; }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.toc a { font-size: 14px; padding: 6px 12px; border-radius: 999px; background: var(--bg-3); color: var(--ink-2); }
.toc a:hover { text-decoration: none; background: var(--line); }

.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.dl { border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); overflow: hidden; display: flex; flex-direction: column; }
.dl .pv { aspect-ratio: 16 / 10; display: grid; place-items: center; background: var(--bg-2); padding: 24px; }
.dl .pv.dark { background: #0b0c0a; }
.dl .pv img { max-height: 100%; width: auto; }
.dl .pv.cover { padding: 0; }
.dl .pv.cover img { width: 100%; height: 100%; object-fit: cover; }
.dl .meta { padding: 14px 16px; display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; }
.dl .meta a { font-size: 13px; font-weight: 600; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.swatch { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-1); background: var(--surface); }
.swatch .c { height: 84px; }
.swatch .m { padding: 10px 12px; font: 400 12px/1.5 var(--mono); letter-spacing: 0; color: var(--ink-3); }
.swatch .m b { display: block; font: 600 13px/1.4 var(--sans); color: var(--ink); }

/* ---------------------------------------------------------------- command palette (the site's own ⌘K) */
.pal-scrim { position: fixed; inset: 0; z-index: 90; background: rgba(20, 22, 18, 0.18); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; }
.pal-scrim[hidden] { display: none; }
.pal {
  width: 100%; max-width: 620px; border-radius: 14px; overflow: hidden;
  background: color-mix(in srgb, var(--surface) 96%, transparent); color: var(--ink);
  box-shadow: 0 0 0 0.5px rgba(0, 0, 0, 0.25), 0 24px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: saturate(180%) blur(30px); -webkit-backdrop-filter: saturate(180%) blur(30px);
}
.pal-in { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 18px; border-bottom: 0.5px solid var(--line); }
.pal-in svg { width: 18px; height: 18px; color: var(--ink-4); flex: none; }
.pal-in input { flex: 1; border: 0; outline: none; background: transparent; font-size: 18px; letter-spacing: -0.015em; min-width: 0; }
.pal-in .esc { font: 500 11px/1 var(--mono); color: var(--ink-4); }
.pal-list { max-height: min(52vh, 420px); overflow-y: auto; padding: 6px; list-style: none; margin: 0; }
.pal-item { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 8px; cursor: pointer; font-size: 14.5px; }
.pal-item .h { margin-left: auto; font-size: 12px; color: var(--ink-4); }
.pal-item .k { font: 500 11.5px/1 var(--mono); color: var(--ink-4); }
.pal-item[aria-selected="true"] { background: var(--sage-tint-2); }
.pal-item mark { background: none; color: var(--sage-ink); font-weight: 650; }
.pal-empty { padding: 18px; font-size: 14px; color: var(--ink-4); }
.pal-foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 0.5px solid var(--line); font: 400 11.5px/1 var(--mono); color: var(--ink-4); letter-spacing: 0; }

/* ---------------------------------------------------------------- toast */
.toast {
  position: fixed; left: 50%; bottom: 36px; z-index: 95; transform: translate(-50%, 20px); opacity: 0;
  background: rgba(29, 29, 31, 0.94); color: #fff; font-size: 14px; padding: 11px 16px; border-radius: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease; pointer-events: none; max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------------- motion */
.reveal { transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal:not(.in) { opacity: 0.001; transform: translateY(18px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal:not(.in) { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- spacing utilities (no inline styles: the CSP forbids them) */
.mt-12 { margin-top: 12px; } .mt-20 { margin-top: 20px; } .mt-28 { margin-top: 28px; } .mt-40 { margin-top: 40px; } .mt-48 { margin-top: 48px; } .mt-64 { margin-top: 64px; }
.mb-40 { margin-bottom: 40px; }
.hero-hint { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 16px; margin-top: 22px; }
.hero-hint .btn[aria-pressed="true"] { background: var(--sage-tint); color: var(--sage-ink); }

/* ---------------------------------------------------------------- brand page */
.sw-sage { background: #a3be8c; } .sw-sage-strong { background: #7fa35f; } .sw-sage-ink { background: #4f7236; } .sw-on-sage { background: #1f2a17; }
.sw-tint { background: #eef3e9; } .sw-ink { background: #1d1d1f; } .sw-paper { background: #f5f6f3; box-shadow: inset 0 -0.5px 0 var(--line); } .sw-night { background: #0b0c0a; }
.type-sample { display: grid; gap: 10px; padding: 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-1); }
.ts-d { font: 700 40px/1 var(--display); letter-spacing: -0.035em; }
.ts-m { font-size: 14px; color: var(--sage-ink); }
.prose code, .explain code, .lead code { overflow-wrap: anywhere; }
