/* ==========================================================================
   Design system — tokens, base, components. Shared by every page.
   Re-skinning the studio = editing the tokens block.
   ========================================================================== */

:root {
  --bg: #f6f5f1;
  --bg-2: #eeede6;
  --surface: #ffffff;
  --ink: #0c0f16;
  --ink-2: #252a35;
  --muted: #5a6170;
  --faint: #8a90a0;
  --line: #e2e0d8;
  --line-2: #d2cfc4;

  --accent: #2f5bff;
  --accent-2: #1f45e0;
  --accent-ink: #ffffff;
  --accent-soft: #e7ecff;
  --live: #10a565;
  --live-soft: #dbf4e7;
  --hot: #ee5a2f;
  --hot-soft: #fde8e1;
  --warn: #b7791f;
  --warn-soft: #fbf0d9;
  --up: #10a565;
  --down: #e04a2c;

  --night: #090c13;
  --night-2: #0f141f;
  --night-3: #161d2c;
  --night-line: #232c3e;
  --night-ink: #e8ecf4;
  --night-muted: #8f9bb1;
  --night-accent: #7d97ff;

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --fs-display: clamp(2.55rem, 1.35rem + 5.1vw, 5.4rem);
  --fs-h2: clamp(2rem, 1.25rem + 2.9vw, 3.5rem);
  --fs-h3: clamp(1.2rem, 1.1rem + .4vw, 1.45rem);
  --fs-lede: clamp(1.08rem, 1rem + .35vw, 1.3rem);

  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-1: 0 1px 2px rgba(12, 15, 22, .06), 0 1px 1px rgba(12, 15, 22, .03);
  --shadow-2: 0 14px 34px -16px rgba(12, 15, 22, .22), 0 3px 8px -2px rgba(12, 15, 22, .06);
  --shadow-3: 0 40px 90px -36px rgba(12, 15, 22, .45), 0 14px 34px -16px rgba(12, 15, 22, .18);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --maxw: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 70px;
  --section-y: clamp(80px, 11vw, 150px);
}

/* ── reset & base ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.025em; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent); color: #fff; }
[hidden] { display: none !important; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; transition: top .2s; }
.skip-link:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--gutter), 860px); }
.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font: 500 .78rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 1.5px; background: currentColor; opacity: .6; }
.eyebrow--plain::before { display: none; }
.h2 { font-size: var(--fs-h2); letter-spacing: -.035em; }
.h3 { font-size: var(--fs-h3); letter-spacing: -.02em; }
.lede { font-size: var(--fs-lede); color: var(--muted); line-height: 1.5; max-width: 62ch; }
.serif { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.tabnum { font-variant-numeric: tabular-nums; }

.section-head { display: grid; gap: 18px; margin-bottom: clamp(36px, 5vw, 64px); max-width: 780px; }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }

/* ── buttons ───────────────────────────────────────────────────────────── */
.btn {
  --b-bg: var(--ink); --b-fg: #fff; --b-bd: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  background: var(--b-bg); color: var(--b-fg); border: 1.5px solid var(--b-bd);
  font-weight: 550; font-size: 1rem; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease-out), background .2s, box-shadow .25s, border-color .2s, color .2s;
  isolation: isolate; overflow: hidden;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--accent { --b-bg: var(--accent); }
.btn--accent:hover { --b-bg: var(--accent-2); }
.btn--ghost { --b-bg: transparent; --b-fg: var(--ink); --b-bd: var(--line-2); }
.btn--ghost:hover { --b-bd: var(--ink); box-shadow: none; }
.btn--danger { --b-bg: transparent; --b-fg: var(--down); --b-bd: #f0c2b8; }
.btn--danger:hover { --b-bg: var(--hot-soft); --b-bd: var(--down); box-shadow: none; }
.btn--light { --b-bg: #fff; --b-fg: var(--ink); }
.btn--night-ghost { --b-bg: transparent; --b-fg: var(--night-ink); --b-bd: var(--night-line); }
.btn--night-ghost:hover { --b-bd: var(--night-ink); box-shadow: none; }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: .94rem; }
.btn--lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }
.btn--block { width: 100%; }
.btn .arrow { transition: transform .3s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .6; pointer-events: none; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.link { color: var(--accent); font-weight: 550; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.link:hover { text-decoration: underline; }

/* ── chips, badges ─────────────────────────────────────────────────────── */
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 15px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink-2);
  font-size: .94rem; font-weight: 500; transition: border-color .2s, background .2s, color .2s, transform .2s;
}
.chip:hover { border-color: var(--ink); }
.chip[aria-pressed="true"], .chip[aria-selected="true"], .chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 999px;
  font: 500 .74rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase;
  background: var(--bg-2); color: var(--muted);
}
.badge--live { background: var(--live-soft); color: #08754a; }
.badge--accent { background: var(--accent-soft); color: var(--accent-2); }
.badge--hot { background: var(--hot-soft); color: #b13a17; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 0 rgba(16, 165, 101, .5); animation: pulse 2s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(16, 165, 101, .55); } 70% { box-shadow: 0 0 0 9px rgba(16, 165, 101, 0); } 100% { box-shadow: 0 0 0 0 rgba(16, 165, 101, 0); } }

/* ── cards ─────────────────────────────────────────────────────────────── */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 3vw, 34px); box-shadow: var(--shadow-1);
}
.card--glow { overflow: hidden; }
.card--glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(47, 91, 255, .09), transparent 60%);
}
.card--glow:hover::before { opacity: 1; }

/* ── header ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, background .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 650; font-size: 1.12rem; letter-spacing: -.03em; color: var(--ink); flex: none; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s; }
.nav a:hover { background: var(--bg-2); color: var(--ink); }
.nav a[aria-current="page"], .nav a.is-active { color: var(--ink); background: var(--bg-2); }
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang { display: inline-flex; border: 1.5px solid var(--line-2); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; padding: 5px 9px; border-radius: 999px; font: 600 .78rem/1 var(--mono); color: var(--muted); }
.lang button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1.5px solid var(--line-2); background: var(--surface); place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .3s var(--ease-out), opacity .2s; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; z-index: 49; margin: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px var(--gutter) 22px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-2);
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: transform .3s var(--ease-out), opacity .2s, visibility 0s .3s;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform .3s var(--ease-out), opacity .2s; }
  .nav a { padding: 14px 12px; font-size: 1.05rem; border-radius: 12px; }
  .nav .btn { margin-top: 8px; }
  .header-tools { margin-left: auto; }
}
@media (min-width: 861px) { .nav .nav-cta-mobile { display: none; } }

/* ── forms ─────────────────────────────────────────────────────────────── */
.field { display: grid; gap: 7px; }
.field > label, .label { font-size: .9rem; font-weight: 550; color: var(--ink-2); }
.field .hint { font-size: .84rem; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 12px;
  border: 1.5px solid var(--line-2); background: var(--surface); color: var(--ink);
  transition: border-color .2s, box-shadow .2s; font-size: 1rem;
}
.textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--down); box-shadow: 0 0 0 4px var(--hot-soft); }
.field .err { color: #b8321a; font-size: .85rem; font-weight: 500; }
.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; color: var(--muted); line-height: 1.45; }
.check-row input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.form-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .span-2 { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* segmented choice */
.seg { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.seg__opt { position: relative; }
.seg__opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg__opt label {
  display: grid; gap: 3px; height: 100%; padding: 14px 16px; border-radius: 14px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: var(--surface); transition: border-color .2s, box-shadow .2s, background .2s;
}
.seg__opt label:hover { border-color: var(--faint); }
.seg__opt .t { font-weight: 600; font-size: .98rem; letter-spacing: -.01em; }
.seg__opt .d { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.seg__opt .p { font: 500 .8rem/1 var(--mono); color: var(--accent-2); margin-top: 4px; }
.seg__opt input:checked + label { border-color: var(--accent); box-shadow: 0 0 0 3.5px var(--accent-soft); background: linear-gradient(180deg, #fff, #f8f9ff); }
.seg__opt input:focus-visible + label { outline: 2.5px solid var(--accent); outline-offset: 2px; }

.seg--2 { grid-template-columns: repeat(2, 1fr); }
.seg--3 { grid-template-columns: repeat(3, 1fr); }
.seg--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .seg--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .seg--3, .seg--2 { grid-template-columns: 1fr; } }

/* packages */
.form-error { padding: 12px 14px; border-radius: 12px; background: var(--hot-soft); color: #9c2f12; font-weight: 500; }
.done { display: grid; gap: 16px; justify-items: start; animation: rise .6s var(--ease-out); }
.done__icon { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--live-soft); color: #08754a; }
.done h3 { font-size: 1.6rem; letter-spacing: -.03em; }
.done p { color: var(--ink-2); }
.done__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }


/* toggle chips (multi-select) */
.tchips { display: flex; flex-wrap: wrap; gap: 10px; }
.tchip { position: relative; }
.tchip input { position: absolute; opacity: 0; pointer-events: none; }
.tchip label {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 8px 16px 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--line-2); background: var(--surface); font-size: .94rem; font-weight: 500; transition: all .2s;
}
.tchip label::before {
  content: ""; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; transition: all .2s;
  background: var(--surface) center / 12px no-repeat;
}
.tchip input:checked + label { border-color: var(--ink); background: var(--ink); color: #fff; }
.tchip input:checked + label::before { border-color: #fff; background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2l2.3 2.3 4.7-5' fill='none' stroke='%230c0f16' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.tchip input:focus-visible + label { outline: 2.5px solid var(--accent); outline-offset: 2px; }
.tchip .p { font: 500 .78rem/1 var(--mono); opacity: .7; }

/* switch */
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 550; }
.switch input { position: absolute; opacity: 0; }
.switch__track { width: 52px; height: 30px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .25s; flex: none; }
.switch__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform .3s var(--ease-out); }
.switch input:checked + .switch__track { background: var(--live); }
.switch input:checked + .switch__track::after { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 2.5px solid var(--accent); outline-offset: 2px; }

/* ── industry picker (combobox) ────────────────────────────────────────── */
.picker { position: relative; }
.picker__box { position: relative; }
.picker__box svg { position: absolute; left: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--faint); pointer-events: none; }
.picker__box .input { padding-left: 44px; }
.picker__list {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 6px); max-height: 320px; overflow: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-3); padding: 6px; list-style: none;
}
.picker__list li { padding: 11px 12px; border-radius: 10px; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.picker__list li[aria-selected="true"], .picker__list li:hover { background: var(--bg-2); }
.picker__list .via { font-size: .8rem; color: var(--faint); font-family: var(--mono); }
.picker__list .none { color: var(--muted); cursor: default; }

/* ── browser frame (mockups) ───────────────────────────────────────────── */
.browser { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-3); overflow: hidden; overflow: clip; }
.browser__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; background: #f1f0eb; border-bottom: 1px solid var(--line); }
.browser__dots { display: flex; gap: 6px; }
.browser__dots i { width: 10px; height: 10px; border-radius: 50%; background: #d9d6cc; }
.browser__url { flex: 1; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 12px; border-radius: 8px; background: #fff; font: 500 .76rem/1 var(--mono); color: var(--muted); overflow: hidden; white-space: nowrap; }
.browser__url .lock { color: var(--live); }
.browser__url .warn { color: var(--down); font-weight: 600; }

/* ── sparkline & ring ──────────────────────────────────────────────────── */
.spark { width: 100%; height: 44px; overflow: visible; }
.spark path.line { fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linejoin: round; stroke-linecap: round; }
.spark path.area { fill: currentColor; opacity: .09; stroke: none; }
.spark circle { fill: currentColor; }
.spark.is-drawn path.line { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.ring { --val: 0; --c: var(--accent); width: 148px; aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 10; }
.ring .track { stroke: var(--line); }
.ring .bar { stroke: var(--c); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease-out); }
.ring__val { font: 600 2.6rem/1 var(--font); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring__sub { font: 500 .72rem/1 var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-top: 6px; text-align: center; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ── tick lists ──────────────────────────────────────────────────────── */
.ticks { list-style: none; display: grid; gap: 11px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; line-height: 1.45; }
.ticks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; margin-top: 1px;
  background: var(--live-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.5' fill='none' stroke='%2308754a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.ticks--light li::before { background-color: rgba(16,165,101,.18); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.5l3.6 3.6L17.5 8.5' fill='none' stroke='%235ee3a4' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }



/* ── reveal motion ─────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ── toast ─────────────────────────────────────────────────────────────── */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; translate: -50% 20px; opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-3);
  font-size: .95rem; transition: translate .35s var(--ease-out), opacity .3s; pointer-events: none; max-width: calc(100% - 32px);
}
.toast.is-on { translate: -50% 0; opacity: 1; }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-footer { background: var(--night); color: var(--night-muted); padding: clamp(64px, 8vw, 100px) 0 36px; }
.site-footer a { color: var(--night-ink); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.6fr repeat(3, 1fr); }
.footer-grid h4 { font: 500 .76rem/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--night-muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-social { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.footer-brand .brand { color: var(--night-ink); }
.footer-brand p { margin-top: 16px; max-width: 36ch; line-height: 1.55; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--night-line); display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; font-size: .88rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ── reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── long-form text (privacy) ──────────────────────────────────────────── */
.prose { display: grid; gap: 18px; }
.prose h1 { font-size: clamp(1.8rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -.03em; line-height: 1.15; }
.prose h2 { font-size: 1.3rem; margin-top: 18px; }
.prose h3 { font-size: 1.05rem; margin-top: 8px; }
.prose p, .prose li { color: var(--ink-2); line-height: 1.65; }
.prose ul { padding-left: 20px; display: grid; gap: 8px; }
.prose a { color: var(--accent); }
.prose > div { display: grid; gap: 14px; }
.prose code { font-family: var(--mono); font-size: .88em; }
.prose table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.prose th, .prose td { border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; padding: 8px 10px; }
.prose th { font-weight: 600; color: var(--ink); }

/* ── card code (home band and /apercu) ─────────────────────────────────── */
.code-band { padding: 22px 0 8px; }
.code-band--page { padding: clamp(28px, 6vw, 72px) 0 48px; }
.code-band__intro { margin: 0 0 14px; color: var(--ink-2); font-size: 1.05rem; }
.code-band--page .code-band__intro { font-size: clamp(1.45rem, 1.1rem + 1.2vw, 2rem); letter-spacing: -.03em; line-height: 1.25; color: var(--ink); font-weight: 650; }
.code-band__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
.code-band__card {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 16px; box-shadow: var(--shadow-1); min-height: 100%;
}
.code-band__card .field { margin: 0; }
a.code-band__cta {
  align-items: center; justify-content: center; text-align: center; text-decoration: none;
  background: var(--accent); color: var(--accent-ink); border-color: var(--accent);
  font-weight: 650; min-height: 96px;
}
a.code-band__cta:hover { background: var(--accent-2); color: var(--accent-ink); }
.code-band__expired { display: grid; gap: 6px; margin: 0 0 14px; padding: 14px 16px; border-radius: var(--r); background: var(--bg-2); border: 1px solid var(--line); }
.code-band__expired[hidden], .code-band [hidden] { display: none; }
.code-band__expired a, .code-band .hint a { color: var(--accent); font-weight: 600; }
@media (max-width: 720px) { .code-band__row { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .prose table { display: block; overflow-x: auto; }
}
