@font-face { font-family: 'Figtree'; src: url('/assets/fonts/figtree-400-700.woff2') format('woff2'); font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Sora'; src: url('/assets/fonts/sora-600-700.woff2') format('woff2'); font-weight: 600 700; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/assets/fonts/jetbrains-mono-400-500.woff2') format('woff2'); font-weight: 400 500; font-display: swap; }
/* Only for the Lumiave credit in the footer, so the partner wordmark renders in its own face. */
@font-face { font-family: 'Bricolage Grotesque'; src: url('/assets/fonts/bricolage-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }

:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --sunk: #eef0f6;
  --ink: #0d1226;
  --muted: #555c74;
  --line: #e0e3ec;
  --line-strong: #c4c9d8;
  --brand: #1f4fff;
  --brand-hover: #1940d6;
  --brand-ink: #ffffff;
  --brand-text: #1b44e3;
  --brand-soft: #e7ecff;
  --glow: #7cf3c4;
  --logo-tile: #1f4fff;
  --focus: #1f4fff;
  --shadow: 0 1px 2px rgb(16 23 20 / 0.04), 0 12px 32px -12px rgb(16 23 20 / 0.16);

  /* The "night" band (hero, CTA, footer) is dark in both themes. */
  --night: #0a1130;
  --night-2: #111a45;
  --night-line: rgb(255 255 255 / 0.1);
  --night-text: #e9ecf8;
  --night-muted: #a3abcf;

  --s2: #11663e; --s2-bg: #dcf1e4;
  --s3: #8a5300; --s3-bg: #fbeed3;
  --s4: #b0261b; --s4-bg: #fce3df;
  --s5: #6a2bb8; --s5-bg: #eee4fb;
  --sx: #4b5058; --sx-bg: #e7e6e1;

  --radius: 12px;
  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --display: 'Sora', 'Figtree', system-ui, sans-serif;
  --header-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0d1a;
    --surface: #121729;
    --sunk: #0d1120;
    --ink: #e8ebf6;
    --muted: #969db6;
    --line: #222941;
    --line-strong: #323a57;
    --brand: #7cf3c4;
    --brand-hover: #a6f7d8;
    --brand-ink: #0a1130;
    --brand-text: #7cf3c4;
    --brand-soft: #14223a;
    --focus: #8fa6ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 16px 40px -12px rgb(0 0 0 / 0.6);
    --night: #070b1d;
    --night-2: #0e1638;

    --s2: #6fd9a0; --s2-bg: #143023;
    --s3: #f0bd62; --s3-bg: #36290f;
    --s4: #ff8f84; --s4-bg: #3b1816;
    --s5: #c6a2ff; --s5-bg: #2b1d42;
    --sx: #b4b8bf; --sx-bg: #26282d;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.menu-open { overflow: hidden; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-text); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }
code, kbd { font-family: var(--mono); font-size: 0.86em; background: var(--sunk); border: 1px solid var(--line); padding: 0.05em 0.35em; border-radius: 5px; }
img, svg { display: block; }
.icon { flex: none; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 20px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; z-index: 100; }
.skip:focus { left: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark { width: 32px; height: 32px; }
.logo-word { font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.04em; line-height: 1; padding-bottom: 2px; }
.brand { text-decoration: none; color: var(--ink); display: inline-flex; }
.brand:hover { color: var(--ink); }

/* ---------- Buttons ---------- */
.btn {
  font: 600 15px/1 var(--sans);
  border-radius: 10px;
  padding: 12px 18px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { background: var(--brand-hover); color: var(--brand-ink); }
.btn-glow { background: var(--glow); color: #0a1130; }
.btn-glow:hover { background: #a6f7d8; color: #0a1130; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { background: var(--sunk); color: var(--ink); }
.btn-ghost-night { background: transparent; color: var(--night-text); border-color: var(--night-line); }
.btn-ghost-night:hover { background: rgb(255 255 255 / 0.06); color: #fff; }
.btn-small { font-size: 13px; padding: 7px 11px; border-radius: 8px; }
.btn-large { font-size: 16px; padding: 15px 22px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn[hidden] { display: none; }
.text-link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--brand-text); text-decoration: none; }
.text-link:hover .icon { transform: translateX(2px); }
.text-link .icon { transition: transform 0.15s; }

/* ---------- Header & mega menu ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.primary-nav { display: flex; align-items: center; gap: 16px; flex: 1; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; flex: 1; }
.nav-link {
  font: 500 15px/1 var(--sans);
  color: var(--muted);
  background: none;
  border: 0;
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-link:hover, .has-mega[data-open='true'] > .nav-link { color: var(--ink); background: var(--sunk); }
.nav-link[aria-current='page'], .nav-link.is-current { color: var(--ink); }
.nav-link .icon { transition: transform 0.2s; }
.has-mega[data-open='true'] > .nav-link .icon { transform: rotate(180deg); }
.menu-toggle { display: none; }

.mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 48px -24px rgb(16 23 20 / 0.28);
  visibility: hidden;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 0.16s, transform 0.16s, visibility 0s linear 0.16s;
}
.has-mega[data-open='true'] .mega { visibility: visible; opacity: 1; transform: none; transition: opacity 0.16s, transform 0.16s; }
.mega-inner { max-width: 1200px; margin: 0 auto; padding: 28px 20px 32px; display: grid; grid-template-columns: 1fr 320px; gap: 32px; }
.mega-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; }
.mega-heading { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 0 0 8px 12px; }
.mega-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.mega-item { display: flex; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); }
a.mega-item:hover { background: var(--sunk); color: var(--ink); }
a.mega-item:hover .mega-icon { background: var(--brand); color: var(--brand-ink); }
.mega-item.is-soon { cursor: default; }
.mega-item.is-soon .mega-name { color: var(--muted); }
.mega-item.is-soon .mega-icon { background: var(--sunk); color: var(--muted); }
.mega-icon { width: 36px; height: 36px; border-radius: 9px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; flex: none; transition: background-color 0.15s, color 0.15s; }
.mega-text { display: grid; gap: 2px; }
.mega-name { font-weight: 600; font-size: 14.5px; display: flex; align-items: center; gap: 8px; }
.mega-desc { font-size: 13px; color: var(--muted); line-height: 1.45; }
.soon { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 6px; border-radius: 5px; background: var(--sunk); color: var(--muted); border: 1px solid var(--line); }

.mega-feature {
  border-radius: 14px;
  padding: 22px;
  background: radial-gradient(120% 80% at 100% 0%, rgb(124 243 196 / 0.18), transparent 60%), var(--night);
  color: var(--night-text);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mega-feature-kicker { font: 500 12px/1 var(--mono); color: var(--glow); text-transform: uppercase; letter-spacing: 0.08em; }
.mega-feature-title { font-family: var(--display); font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.mega-feature-text { font-size: 14px; color: var(--night-muted); }
.mega-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; counter-reset: s; }
.mega-steps a { display: flex; gap: 12px; align-items: center; padding: 8px 10px; margin: 0 -10px; border-radius: 8px; text-decoration: none; color: var(--night-text); font-size: 14px; font-weight: 500; counter-increment: s; }
.mega-steps a::before { content: counter(s); width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font: 500 12px/1 var(--mono); background: rgb(124 243 196 / 0.14); color: var(--glow); flex: none; }
.mega-steps a:hover { background: rgb(255 255 255 / 0.06); color: #fff; }
.mega-feature-link { margin-top: auto; display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--glow); text-decoration: none; padding-top: 8px; }
.mega-feature-link:hover { color: #fff; }

@media (max-width: 959px) {
  :root { --header-h: 62px; }
  .menu-toggle {
    display: grid;
    place-items: center;
    margin-left: auto;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    cursor: pointer;
  }
  .menu-toggle .when-open, [data-menu='open'] .menu-toggle .when-closed { display: none; }
  [data-menu='open'] .menu-toggle .when-open { display: block; }
  .primary-nav {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    padding: 12px 20px 32px;
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
  }
  [data-menu='open'] .primary-nav { display: flex; }
  /* backdrop-filter makes the header the containing block for the fixed menu, collapsing it. */
  .site-header[data-menu='open'] { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--bg); }
  .nav-list { flex-direction: column; flex: none; }
  .nav-list > li { border-bottom: 1px solid var(--line); }
  .nav-link { width: 100%; justify-content: space-between; font-size: 18px; padding: 18px 4px; color: var(--ink); border-radius: 0; }
  .nav-link:hover, .has-mega[data-open='true'] > .nav-link { background: none; }
  .mega { position: static; display: none; visibility: visible; opacity: 1; transform: none; box-shadow: none; border: 0; background: none; transition: none; }
  .has-mega[data-open='true'] .mega { display: block; }
  .mega-inner { display: block; padding: 0 0 12px; }
  .mega-groups { grid-template-columns: 1fr; gap: 16px; }
  .mega-heading { margin-left: 4px; }
  .mega-item { padding: 10px 4px; }
  .mega-feature { display: none; }
  .nav-cta { margin-top: 20px; padding: 16px; }
}

/* ---------- Breadcrumb & page heroes ---------- */
.breadcrumb ol { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; color: var(--line-strong); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-text); }
.breadcrumb [aria-current] { color: var(--ink); }

.page-hero { padding-block: 44px 36px; position: relative; isolation: isolate; }
.page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); letter-spacing: -0.035em; max-width: 20ch; }
.page-hero .lead { margin-top: 14px; color: var(--muted); max-width: 62ch; font-size: 18px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--brand-text); margin-bottom: 16px; }
.eyebrow::before { content: ''; width: 7px; height: 7px; border-radius: 2px; background: var(--glow); box-shadow: 0 0 0 3px var(--brand-soft); }

/* Tool page heading sits above the tool, without the fading grid swallowing it. */
.tool-hero { padding-block: 40px 26px; position: relative; isolation: isolate; }
.page-hero::before, .tool-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent);
  mask-image: linear-gradient(to bottom, #000, transparent);
  z-index: -1;
}
.tool-hero h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.035em; }
.tool-hero p { margin-top: 12px; color: var(--muted); max-width: 64ch; font-size: 17.5px; }

/* ---------- Tool panel (shared by all tools) ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }
.field-label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 8px; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: 8px; }
.field-hint:empty { display: none; }
textarea, input[type='text'], input[type='search'], input[type='url'], input[type='email'], select {
  font: inherit;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
}
textarea { font: 13.5px/1.6 var(--mono); min-height: 200px; resize: vertical; }
input[type='text'], input[type='url'] { font-family: var(--mono); font-size: 15px; }
textarea:focus, input:focus, select:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
select { width: auto; padding-right: 34px; appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }

.controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.controls .spacer { flex: 1; }
.inline-field { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.input-row { display: flex; gap: 10px; }
.input-row input { flex: 1; min-width: 0; }
@media (max-width: 560px) { .input-row { flex-direction: column; } }

.notice { border-left: 3px solid var(--s3); background: var(--s3-bg); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 14px; margin-top: 16px; }
.notice strong { font-weight: 600; }
.error-box { border-left: 3px solid var(--s4); background: var(--s4-bg); padding: 12px 14px; border-radius: 0 8px 8px 0; font-size: 14px; margin-top: 16px; }

/* ---------- Results ---------- */
.results { margin-top: 24px; }
.results[hidden] { display: none; }
.results-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.results-bar .spacer { flex: 1; }
.progress { height: 4px; background: var(--sunk); border-radius: 4px; overflow: hidden; margin-bottom: 14px; }
.progress > span { display: block; height: 100%; width: 0; background: var(--brand); transition: width 0.2s; }
.progress-text { font: 13px var(--mono); color: var(--muted); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 500 13px/1 var(--sans); border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 8px 12px; cursor: pointer; display: inline-flex; gap: 7px; align-items: center; }
.chip:hover { border-color: var(--line-strong); }
.chip .n { font-family: var(--mono); color: var(--muted); }
.chip[aria-pressed='true'] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.chip[aria-pressed='true'] .n { color: inherit; opacity: 0.75; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); max-height: 70vh; }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; }
table.data th { position: sticky; top: 0; background: var(--surface); text-align: left; font-weight: 500; color: var(--muted); font-size: 12.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; z-index: 1; }
table.data th button { all: unset; cursor: pointer; }
table.data th button:hover { color: var(--ink); }
table.data td { padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.num { font-family: var(--mono); color: var(--muted); text-align: right; width: 1%; white-space: nowrap; }
table.data td.url { font-family: var(--mono); font-size: 12.5px; word-break: break-all; min-width: 260px; }
table.data td.url a { text-decoration: none; }
table.data td.url a:hover { text-decoration: underline; }
table.data td.nowrap { white-space: nowrap; }
table.data td.wide { min-width: 280px; }
table.data tr.pending td { color: var(--muted); }
table.data ul { margin: 0; padding-left: 16px; }
table.data li + li { margin-top: 4px; }
.empty-row td { text-align: center; color: var(--muted); padding: 28px; }

.badge { display: inline-block; font: 500 12px/1.5 var(--mono); padding: 1px 7px; border-radius: 6px; white-space: nowrap; }
.s2 { color: var(--s2); background: var(--s2-bg); }
.s3 { color: var(--s3); background: var(--s3-bg); }
.s4 { color: var(--s4); background: var(--s4-bg); }
.s5 { color: var(--s5); background: var(--s5-bg); }
.sx { color: var(--sx); background: var(--sx-bg); }
.dot.s2 { background: var(--s2); } .dot.s3 { background: var(--s3); } .dot.s4 { background: var(--s4); } .dot.s5 { background: var(--s5); } .dot.sx { background: var(--sx); }
.chain { display: inline-flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.chain .arrow { color: var(--muted); font-size: 12px; }
.hops { margin-top: 6px; font-size: 12px; color: var(--muted); }
.hops summary { cursor: pointer; }
.hops ol { margin: 6px 0 0; padding-left: 18px; }
.hops li { margin: 3px 0; }
.hops .badge { font-size: 12px; margin-right: 6px; }
.subtle { color: var(--muted); font-size: 12.5px; }
.reason-warn { color: var(--s3); }

.list { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.list-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 16px; padding: 14px 16px; border-bottom: 1px solid var(--line); align-items: center; }
.list-item:last-child { border-bottom: 0; }
.list-item .url { font: 13.5px var(--mono); word-break: break-all; }
.list-item .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 12.5px; color: var(--muted); align-items: center; }
.list-item .actions { display: flex; gap: 6px; }
@media (max-width: 560px) { .list-item { grid-template-columns: 1fr; } }
.section-title { font-size: 16px; margin: 28px 0 10px; display: flex; align-items: baseline; gap: 10px; letter-spacing: -0.01em; }
.section-title .muted { font-weight: 400; font-size: 14px; }
details.disclosure { margin-top: 18px; }
details.disclosure > summary { cursor: pointer; font-size: 14px; color: var(--muted); }
details.disclosure > summary:hover { color: var(--ink); }

/* ---------- Home hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-text);
  isolation: isolate;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(var(--night-line) 1px, transparent 1px), linear-gradient(90deg, var(--night-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 70% 30%, #000 20%, transparent 75%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  width: 720px;
  height: 720px;
  right: -200px;
  top: -320px;
  background: radial-gradient(circle, rgb(124 243 196 / 0.22), transparent 62%);
  z-index: -1;
}
.hero-inner { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; padding-block: 84px 96px; }
.pill { display: inline-flex; align-items: center; gap: 8px; font: 500 12.5px/1 var(--mono); padding: 7px 12px 7px 8px; border-radius: 999px; border: 1px solid var(--night-line); background: rgb(255 255 255 / 0.04); color: var(--night-muted); }
.pill b { font-weight: 500; color: #0a1130; background: var(--glow); padding: 3px 7px; border-radius: 999px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 72px); letter-spacing: -0.045em; line-height: 1.02; margin-top: 22px; color: #fff; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero-lead { margin-top: 22px; font-size: 19px; color: var(--night-muted); max-width: 52ch; }
.hero-form { margin-top: 32px; display: flex; gap: 8px; padding: 6px; border-radius: 14px; background: rgb(255 255 255 / 0.06); border: 1px solid var(--night-line); max-width: 560px; }
.hero-form input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 16px var(--mono); padding: 12px 12px; }
.hero-form input::placeholder { color: rgb(255 255 255 / 0.4); }
.hero-form input:focus { box-shadow: none; }
.hero-form:focus-within { border-color: rgb(124 243 196 / 0.5); }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--night-muted); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span { display: inline-flex; gap: 6px; align-items: center; }
.hero-note .icon { color: var(--glow); }
@media (max-width: 560px) {
  .hero-form { flex-direction: column; }
}

/* Example result card on the hero */
.sample {
  border-radius: 18px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(255 255 255 / 0.03));
  border: 1px solid var(--night-line);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 0.6);
  font-size: 13px;
  overflow: hidden;
}
.sample-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--night-line); font: 12px var(--mono); color: var(--night-muted); }
.sample-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgb(255 255 255 / 0.16); }
.sample-bar span { margin-left: 8px; }
.sample-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding: 13px 16px; border-bottom: 1px solid var(--night-line); align-items: center; }
.sample-row:last-child { border-bottom: 0; }
.sample-url { font-family: var(--mono); color: var(--night-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sample-why { grid-column: 1 / -1; font-size: 12.5px; color: var(--night-muted); margin-top: -6px; }
.sample-why code { background: rgb(255 255 255 / 0.07); border-color: var(--night-line); color: var(--night-text); }
.sample .badge { font-size: 12px; }
.sample .s2 { color: #8ee8b4; background: rgb(111 217 160 / 0.14); }
.sample .s3 { color: #f5c873; background: rgb(240 189 98 / 0.14); }
.sample .s4 { color: #ff9b91; background: rgb(255 143 132 / 0.14); }
.sample-caption { font: 12px var(--mono); color: var(--night-muted); margin-top: 12px; text-align: right; }

@media (max-width: 959px) {
  .hero-inner { grid-template-columns: 1fr; padding-block: 56px 64px; gap: 44px; }
}

/* ---------- Sections ---------- */
.section { padding-block: 96px; }
.section + .section { padding-top: 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); letter-spacing: -0.032em; }
.section-head p { color: var(--muted); max-width: 56ch; margin-top: 10px; font-size: 17px; }
@media (max-width: 700px) { .section { padding-block: 64px; } }

.tool-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tool-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  text-decoration: none;
  color: var(--ink);
  min-height: 210px;
  transition: border-color 0.18s, transform 0.18s, box-shadow 0.18s;
}
a.tool-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--ink); }
a.tool-card:hover .card-icon { background: var(--brand); color: var(--brand-ink); }
.tool-card.is-soon { background: transparent; border-style: dashed; }
.tool-card.is-soon .card-icon { background: var(--sunk); color: var(--muted); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-text); margin-bottom: 6px; transition: background-color 0.18s, color 0.18s; }
.card-title { font-size: 18px; letter-spacing: -0.015em; }
.card-text { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.card-foot { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--brand-text); }
.tool-card.is-soon .card-foot { color: var(--muted); font: 500 12px var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }

/* Workflow steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { position: relative; padding: 24px 22px 22px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.steps li::before { content: '0' counter(step); font: 500 13px/1 var(--mono); color: var(--brand-text); display: block; margin-bottom: 18px; }
.steps li:not(:last-child)::after { content: ''; position: absolute; top: 30px; right: -17px; width: 18px; height: 1px; background: var(--line-strong); transform: scaleX(var(--line, 1)); transform-origin: left; }
.steps h3 { font-size: 17px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 14.5px; }
.steps a { color: var(--brand-text); font-weight: 600; text-decoration: none; }
@media (max-width: 959px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } .steps li::after { display: none; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.principle-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--night); color: var(--glow); margin-bottom: 18px; }
.principle h3 { font-size: 19px; margin-bottom: 8px; }
.principle p { color: var(--muted); }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; gap: 28px; } }

.split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 24px; } }

/* CTA band */
.cta {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: radial-gradient(90% 120% at 100% 0%, rgb(124 243 196 / 0.22), transparent 55%), var(--night);
  color: var(--night-text);
  padding: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}
.cta h2 { font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.035em; color: #fff; }
.cta p { color: var(--night-muted); margin-top: 12px; font-size: 17px; max-width: 52ch; }
.cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 36px 24px; } }

/* ---------- Tools listing ---------- */
.tools-toolbar { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 36px; }
.search-field { position: relative; flex: 1 1 280px; max-width: 420px; }
.search-field .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-field input { padding-left: 40px; background: var(--surface); }
.tool-group { margin-bottom: 48px; }
.tool-group[hidden] { display: none; }
.tool-group-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.tool-group-head h2 { font-size: 22px; }
.tool-group-head p { color: var(--muted); font-size: 15px; }
.tool-card[hidden] { display: none; }
.no-results { padding: 48px 0; text-align: center; color: var(--muted); }

/* Related tools on tool pages */
.related { padding-block: 72px; border-top: 1px solid var(--line); background: var(--sunk); }
.related .section-head h2 { font-size: 26px; }
.related .section-head { margin-bottom: 22px; align-items: center; }

/* ---------- Prose ---------- */
.prose { padding-block: 64px 80px; }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: 26px; margin: 48px 0 12px; letter-spacing: -0.025em; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; margin: 28px 0 8px; }
.prose p, .prose li { color: color-mix(in srgb, var(--ink) 84%, var(--bg)); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.prose li + li { margin-top: 7px; }
.prose a { color: var(--brand-text); }
.prose table { border-collapse: collapse; font-size: 14.5px; margin: 16px 0; width: 100%; }
.prose th, .prose td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-weight: 500; color: var(--muted); font-size: 13px; }
.prose .updated { font: 13px var(--mono); color: var(--muted); margin-bottom: 28px; }
details.faq { border-top: 1px solid var(--line); padding: 16px 0; }
details.faq:last-of-type { border-bottom: 1px solid var(--line); }
details.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 16.5px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: '+'; font-family: var(--mono); color: var(--muted); font-weight: 400; }
details.faq[open] summary::after { content: '−'; }
details.faq p { margin-top: 10px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.contact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.contact-card h2 { font-size: 19px; }
.contact-card p { color: var(--muted); font-size: 15px; }
.contact-card .text-link { margin-top: auto; padding-top: 8px; }
.contact-card .card-icon { margin-bottom: 4px; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.email-line { margin-top: 28px; font-size: 15px; color: var(--muted); }
.email-line a { font-family: var(--mono); color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer { background: var(--night); color: var(--night-muted); padding: 64px 0 28px; font-size: 14.5px; margin-top: 0; }
.site-footer .brand, .site-footer .brand:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-bottom: 40px; border-bottom: 1px solid var(--night-line); }
.footer-brand p { margin-top: 16px; max-width: 36ch; }
.footer-heading { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.09em; color: var(--night-text); margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { text-decoration: none; color: var(--night-muted); }
.footer-col a:hover { color: var(--glow); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 22px; font-size: 13px; }
@media (max-width: 860px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }

.powered { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--night-muted); padding: 6px 12px 6px 10px; border-radius: 999px; border: 1px solid var(--night-line); transition: border-color 0.15s, color 0.15s; }
.powered:hover { color: #fff; border-color: rgb(255 255 255 / 0.28); }
.powered-mark { width: 22px; height: 22px; }
.powered-word { font: 700 15px/1 'Bricolage Grotesque', var(--sans); color: #fff; letter-spacing: -0.01em; }
.footer-bottom { align-items: center; }

/* ---------- Contact form ---------- */
.contact-layout { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; padding-bottom: 96px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.field-wide { grid-column: 1 / -1; }
.field select { width: 100%; }
.field textarea { font: 15px/1.6 var(--sans); min-height: 170px; }
.field input[type='text'], .field input[type='url'], .field input[type='email'] { font-family: var(--sans); font-size: 15.5px; }
.optional { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 4px; }
.form-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.form-foot p { max-width: 40ch; }
.form-status { padding: 14px 16px; border-radius: 10px; margin: 18px 0 0; font-size: 15px; }
/* Sitekit fills this with Google's required reCAPTCHA notice; styled here so it keeps full contrast. */
.recaptcha-note { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.recaptcha-note:empty { display: none; }
.recaptcha-note a { color: inherit; }
.aside-action { margin-top: 12px; }
.form-status.is-ok { background: var(--s2-bg); color: var(--s2); }
.form-status.is-error { background: var(--s4-bg); color: var(--s4); }
.contact-aside { display: grid; gap: 14px; }
.aside-block { padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.aside-block h2 { font-size: 17px; margin: 4px 0 6px; }
.aside-block p { color: var(--muted); font-size: 14.5px; }
.aside-block a { color: var(--brand-text); }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } }

/* ---------- About ---------- */
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 8px 0 0; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); overflow: hidden; }
.facts > div { padding: 26px 24px; border-left: 1px solid var(--line); display: flex; flex-direction: column-reverse; gap: 6px; }
.facts > div:first-child { border-left: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font: 600 clamp(32px, 4vw, 44px)/1 var(--display); letter-spacing: -0.04em; color: var(--brand-text); }
@media (max-width: 760px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .facts > div:nth-child(3) { border-left: 0; } .facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } }

.about-h2 { font-size: clamp(26px, 3.2vw, 36px); letter-spacing: -0.032em; margin-bottom: 16px; }
.about-p { color: var(--muted); font-size: 17px; }
.about-p + .about-p { margin-top: 14px; }
.about-why { align-items: center; }

.compare { display: grid; gap: 14px; }
.compare-card { border-radius: 16px; padding: 20px 22px; border: 1px solid var(--line); background: var(--surface); }
.compare-them { background: transparent; border-style: dashed; }
.compare-us { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }
.compare-label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 14px; }
.compare-us .compare-label { color: var(--brand-text); }
.compare-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.mono { font: 14px var(--mono); }
.score { font: 600 15px var(--display); color: var(--muted); background: var(--sunk); padding: 4px 10px; border-radius: 999px; }
.compare-evidence { list-style: none; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 14px; }
.compare-evidence li { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.compare-note { margin-top: 14px; font-size: 14px; color: var(--muted); }
.compare-us .compare-note { color: var(--ink); }

.about-principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.about-principle { padding: 24px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.about-principle .principle-icon { margin-bottom: 18px; }
.about-principle h3 { font-size: 18px; margin-bottom: 8px; }
.about-principle p { color: var(--muted); font-size: 15px; }
@media (max-width: 959px) { .about-principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .about-principles { grid-template-columns: 1fr; } }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; position: relative; }
.flow-step { position: relative; padding: 26px 24px; border-radius: 16px; background: var(--night); color: var(--night-text); }
.flow-step:not(:last-child)::after { content: '→'; position: absolute; right: -14px; top: 30px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--glow); color: var(--night); font: 600 14px/1 var(--sans); z-index: 1; }
.flow-num { font: 500 12px/1 var(--mono); color: var(--glow); display: block; margin-bottom: 16px; }
.flow-step h3 { font-size: 18px; color: #fff; margin-bottom: 8px; }
.flow-step p { color: var(--night-muted); font-size: 15px; }
.flow-step code { background: rgb(255 255 255 / 0.08); border-color: var(--night-line); color: var(--night-text); }
@media (max-width: 860px) { .flow { grid-template-columns: 1fr; } .flow-step:not(:last-child)::after { content: '↓'; right: auto; left: 24px; top: auto; bottom: -14px; } }

.standards { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.standards a { display: grid; gap: 4px; padding: 16px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.standards strong { font-weight: 600; color: var(--ink); display: inline-flex; gap: 8px; align-items: center; }
.standards strong::after { content: '↗'; color: var(--muted); font-weight: 400; transition: transform 0.15s; }
.standards a:hover strong { color: var(--brand-text); }
.standards a:hover strong::after { transform: translate(2px, -2px); }
.standards span { color: var(--muted); font-size: 15px; }

.roadmap { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.roadmap-item { display: flex; gap: 14px; padding: 20px; border-radius: 16px; border: 1px dashed var(--line-strong); }
.roadmap-item > span:last-child { display: grid; gap: 4px; }
.roadmap-cat { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.roadmap-item strong { font-family: var(--display); font-weight: 600; font-size: 16.5px; letter-spacing: -0.015em; }
.roadmap-text { color: var(--muted); font-size: 14.5px; }
.cta a:not(.btn) { color: var(--glow); }

/* ---------- Cookie notice ---------- */
/* Shown only while <html> has .ic-ask, which the inline head script sets before first paint.
   display:none (not opacity) also takes it out of the accessibility tree once answered. */
.cc { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: var(--night); color: var(--night-text); border-top: 3px solid var(--glow); box-shadow: 0 -18px 60px -20px rgb(0 0 0 / 0.55); padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
html.ic-ask .cc { display: block; }
html.ic-ask body { padding-bottom: var(--cc-h, 0px); }
/* Sitekit's accessibility and chat buttons sit in the two bottom corners, above everything.
   The notice moves out of their way: inset on wide screens, a strip beneath on narrow ones.
   The chat launcher is a ~200px "Questions? Ask us." pill, not a square, hence the wide right inset. */
@media (min-width: 760px) { .cc { padding-left: 92px; padding-right: 236px; } .cc .wrap { padding-inline: 0; max-width: none; } }
@media (max-width: 759.98px) { .cc { padding-bottom: calc(18px + 80px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: no-preference) {
  html.ic-anim .cc { animation: cc-in 0.38s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  @keyframes cc-in { from { transform: translateY(102%); } to { transform: none; } }
}
.cc-inner { display: grid; gap: 14px 32px; align-items: center; }
@media (min-width: 1000px) { .cc-inner { grid-template-columns: minmax(0, 1fr) auto; } }
.cc-title { font-size: 17px; color: #fff; letter-spacing: -0.02em; }
.cc-text { font-size: 14px; line-height: 1.55; color: var(--night-muted); max-width: 74ch; margin-top: 4px; }
.cc-text a, .cc-link { color: var(--glow); }
.cc-actions { display: grid; gap: 4px 18px; align-content: center; }
@media (min-width: 1000px) { .cc-actions { grid-auto-flow: column; align-items: center; } }
.cc-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cc-btn { min-height: 44px; padding: 10px 18px; border-radius: 999px; font: 600 14px/1.2 var(--sans); cursor: pointer; background: rgb(255 255 255 / 0.08); color: #fff; border: 1px solid rgb(255 255 255 / 0.22); transition: background-color 0.15s, border-color 0.15s; }
.cc-btn:hover { background: rgb(255 255 255 / 0.15); border-color: rgb(255 255 255 / 0.4); }
.cc-more { display: flex; flex-wrap: wrap; gap: 0 16px; }
.cc-link { min-height: 44px; background: none; border: 0; padding: 0; cursor: pointer; font: 500 13.5px var(--sans); text-decoration: underline; text-underline-offset: 3px; }
.cc-link:hover { color: #fff; }
.cc-link[hidden] { display: none; }
.cc-prefs { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--night-line); }
.cc-cats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px 28px; }
@media (min-width: 760px) { .cc-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-cat-name { font-weight: 600; font-size: 15px; color: #fff; white-space: nowrap; }
.cc-cat-body { font-size: 13.5px; line-height: 1.5; color: var(--night-muted); max-width: 56ch; }
.cc-lock { white-space: nowrap; flex: none; font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--night-muted); border: 1px solid var(--night-line); border-radius: 999px; padding: 5px 8px; }
/* A real checkbox, visually hidden but focusable, with the track drawn beside it. */
.cc-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; min-height: 44px; position: relative; }
.cc-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cc-track { position: relative; flex: none; width: 42px; height: 24px; border-radius: 999px; background: rgb(255 255 255 / 0.12); border: 1px solid rgb(255 255 255 / 0.25); transition: background-color 0.2s; }
.cc-track::after { content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.cc-switch input:checked + .cc-track { background: var(--glow); border-color: var(--glow); }
.cc-switch input:checked + .cc-track::after { transform: translateX(18px); background: var(--night); }
.cc-switch input:disabled + .cc-track { opacity: 0.6; }
.cc-switch input:focus-visible + .cc-track { outline: 2px solid var(--glow); outline-offset: 3px; }
@media (max-width: 420px) { .cc-btn { font-size: 13px; padding-inline: 8px; } }
@media (max-width: 340px) { .cc-pair { grid-template-columns: 1fr; } }

.footer-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.footer-cc { background: none; border: 0; padding: 10px 0; margin-block: -10px; font: inherit; color: var(--night-muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-cc:hover { color: var(--glow); }
.retired-notice { margin: 0 0 28px; }

/* Inline code inside the small hero evidence lines would otherwise drop below 12px. */
.sample-why code, .compare-evidence code { font-size: 12px; }

/* ---------- Responsive tables in prose ----------
   Below 640px each row becomes a card, with the column name taken from data-label
   (added by build.mjs from the table's own header row). */
@media (max-width: 640px) {
  .prose table, .prose thead, .prose tbody, .prose tr, .prose td { display: block; width: 100%; }
  .prose thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .prose tr { border: 1px solid var(--line); border-radius: 12px; padding: 6px 14px; margin-bottom: 12px; background: var(--surface); }
  /* Positioned label, not grid: a grid would turn every inline link in the cell into its own column. */
  .prose td { border: 0; padding: 9px 0 9px calc(32% + 12px); position: relative; min-height: 36px; }
  .prose td + td { border-top: 1px solid var(--line); }
  .prose td::before { content: attr(data-label); position: absolute; left: 0; top: 9px; width: 32%; font: 500 12px/1.6 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
  .prose td code { word-break: break-all; }
}

/* Comfortable tap targets for stacked text links on touch screens. */
.footer-col a { display: inline-block; padding-block: 4px; }
.footer-col ul { gap: 4px; }
@media (pointer: coarse) { .footer-col a, .breadcrumb a { padding-block: 10px; } .footer-col ul { gap: 0; } .breadcrumb ol { margin-block: -10px 8px; } }

/* Touch-sized controls inside results: disclosure toggles and sortable column headers. */
details.disclosure > summary { padding-block: 10px; display: inline-block; }
details.hops > summary { padding-block: 4px; display: inline-block; }
table.data th button { padding: 6px 4px; margin-inline: -4px; display: inline-block; min-width: 32px; }

/* ---------- Results tables on phones ----------
   Each result row becomes a card so the status, verdict and reasons are visible without
   scrolling sideways. Labels come from the header row (labelCells in common.js). */
@media (max-width: 640px) {
  .table-wrap { max-height: none; overflow: visible; border: 0; background: none; border-radius: 0; }
  table.data, table.data tbody, table.data tr, table.data td { display: block; width: 100%; }
  table.data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.data tr { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); margin-bottom: 10px; padding: 4px 14px; }
  table.data tr[hidden] { display: none; }
  table.data td { border: 0 !important; padding: 7px 0 7px 92px; position: relative; min-width: 0 !important; text-align: left !important; white-space: normal !important; min-height: 34px; }
  table.data td + td { border-top: 1px solid var(--line) !important; }
  table.data td::before { content: attr(data-label); position: absolute; left: 0; top: 8px; width: 84px; font: 500 12px/1.5 var(--mono); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
  table.data td:not([data-label])::before { content: none; }
  table.data td:not([data-label]), table.data td[colspan] { padding-left: 0; }
  table.data tr.empty-row td { padding: 20px 0; text-align: center !important; }
}

/* ---------- Motion ----------
   Entrances above the fold are CSS keyframes, so they start with the first paint and never wait
   for a script; headings only move (no opacity) so they count as painted for LCP straight away.
   Scroll-driven and interactive motion is GSAP (motion.js). All of it is off for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @keyframes word-up { from { transform: translateY(108%); } }
  @keyframes rise { from { transform: translateY(18px); } }
  @keyframes fade-up { from { opacity: 0; transform: translateY(16px); } }
  .hero-title .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.1em; margin-bottom: -0.1em; }
  .hero-title .w > span { display: inline-block; animation: word-up 0.85s cubic-bezier(0.2, 0.8, 0.2, 1) both; animation-delay: calc(var(--i) * 55ms + 60ms); }
  .hero .pill { animation: fade-up 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-lead { animation: fade-up 0.7s 0.42s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-form { animation: fade-up 0.7s 0.52s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-note { animation: fade-up 0.7s 0.62s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .page-hero .breadcrumb, .tool-hero .breadcrumb, .page-hero .eyebrow, .tool-hero .eyebrow { animation: fade-up 0.5s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .page-hero h1, .tool-hero h1 { animation: rise 0.7s 0.05s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .page-hero .lead, .tool-hero p { animation: fade-up 0.6s 0.15s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .tool-hero + section .panel, .contact-layout, .tools-toolbar, .facts { animation: fade-up 0.6s 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  /* The example result card plays as a GSAP sequence; hidden until it starts, so it never flashes. */
  .motion .sample { visibility: hidden; }
}

/* Lenis (smooth scrolling), from its own lenis.css. */
html.lenis, html.lenis body { height: auto; }
.lenis:not(.lenis-autoToggle).lenis-stopped { overflow: clip; }
.lenis [data-lenis-prevent], .lenis [data-lenis-prevent-wheel], .lenis [data-lenis-prevent-touch] { overscroll-behavior: contain; }
.lenis.lenis-smooth iframe { pointer-events: none; }
.lenis.lenis-autoToggle { transition-property: overflow; transition-duration: 1ms; transition-behavior: allow-discrete; }
/* SplitText word masks: room for descenders (g, p, y) so the clip never cuts letters. */
.sw-mask { padding-bottom: 0.12em; margin-bottom: -0.12em; }

/* Entrances start a little off to the side; clip (not hidden) so nothing scrolls sideways, and
   sticky table headers inside main keep working. */
main { overflow-x: clip; }
