/*
 * ============================================================
 * site.css — every page of saferow.app
 * ============================================================
 * WHY THIS EXISTS   2026-10-01. One stylesheet for the static pages, in the
 *                   app's own material: the harbour wallpaper (dusk, and
 *                   morning for a light system), frosted panes that take the
 *                   wallpaper's colour, floating glass for the few controls
 *                   that float, capsules for buttons, orbs for status. The
 *                   glass rules are the app's (src/renderer/styles/tokens.css):
 *                   state is light, tint and glow, never a left stripe; no
 *                   glass inside glass; Reduce Transparency and Increase
 *                   Contrast win. The structure follows lohost.dev's site:
 *                   hand-written HTML, this one file, fonts from /fonts.
 * WHAT IT DOES      Declares the three typefaces (OFL notice in
 *                   /fonts/OFL.txt), the colour tokens (dusk first, morning
 *                   swapped in by the system), and every component the pages
 *                   use. Mobile first: the base rules are for a 360 px phone,
 *                   wider screens add columns. Numbers are tabular
 *                   everywhere. Motion is CSS only and stops for
 *                   prefers-reduced-motion.
 * WHAT IT CANNOT DO Load anything from another host, or use an inline style:
 *                   every page but /buy/ carries a CSP of default-src 'none'
 *                   with style, font and image from 'self' only. The grain
 *                   is a file (/img/grain.svg) because img-src 'self'
 *                   refuses data: URLs. Content never waits on an animation
 *                   to be seen.
 * ============================================================
 */

/* ── typefaces (latin + latin-ext, weight axis) ─────────────── */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-grotesque-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 400 700;
  src: url(/fonts/instrument-sans-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url(/fonts/jetbrains-mono-latin-wght-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ── tokens: harbour at dusk first ──────────────────────────────
   Roles mirror the app's tokens.css. Text roles reach 4.5 : 1 on the
   panes over the brightest part of the wallpaper; --faint never carries
   text. Tones (--t-*) are for light (orbs, tints, glows); their -ink
   variants are the same hue made legible as text. */
:root {
  color-scheme: dark;
  --ff-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --ff-body: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", sans-serif;
  --ff-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --base: #08161d;
  --wall:
    radial-gradient(42% 48% at 8% 10%, rgba(20, 184, 166, 0.42), transparent 70%),
    radial-gradient(38% 44% at 94% 6%, rgba(56, 189, 248, 0.3), transparent 70%),
    radial-gradient(52% 50% at 84% 100%, rgba(245, 158, 11, 0.34), transparent 70%),
    radial-gradient(40% 40% at 24% 100%, rgba(251, 113, 133, 0.26), transparent 70%),
    linear-gradient(165deg, #06141a 0%, #0b1f29 45%, #1b1a24 100%);
  --rows: rgba(255, 255, 255, 0.03);
  --grain-opacity: 0.55;

  --ink: #eef2f4;
  --ink-2: #c6cfd5;
  --muted: #9ba7b0;
  --faint: #66727b;
  --link: #8cb8ff;
  --link-hover: #b3d0ff;

  --accent: #3b82f6;
  --accent-grad: linear-gradient(180deg, #5b9bff 0%, #2f6ff0 55%, #2459d6 100%);
  --brand-grad: linear-gradient(145deg, #2dd4bf, #3b82f6);

  --t-ok: #30d158;
  --t-held: #ffb020;
  --t-crit: #ff5a6a;
  --t-prod: #ff7a3d;
  --t-acc: #3b82f6;
  --t-idle: #7b8790;
  --ok-ink: #5fe08a;
  --held-ink: #ffc44f;
  --crit-ink: #ff8a95;
  --prod-ink: #ffa070;

  /* frosted panes: tinted fill + sheen + rim, no blur of their own */
  --pane: rgba(11, 19, 26, 0.56);
  --pane-strong: rgba(9, 15, 21, 0.72);
  --pane-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02) 38%, rgba(0, 0, 0, 0.08));
  --rim: rgba(255, 255, 255, 0.16);
  --rim-lo: rgba(255, 255, 255, 0.06);
  --edge: rgba(0, 0, 0, 0.55);
  --drop: rgba(0, 0, 0, 0.62);
  --drop-2: rgba(0, 0, 0, 0.28);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --hover: rgba(255, 255, 255, 0.06);
  --press: rgba(255, 255, 255, 0.1);
  --well: rgba(0, 0, 0, 0.22);

  /* floating glass */
  --g-bg: rgba(22, 30, 38, 0.58);
  --g-dense: rgba(18, 25, 32, 0.84);
  --menu-bg: rgba(16, 23, 30, 0.97);
  --g-line: rgba(255, 255, 255, 0.13);
  --sheen: rgba(255, 255, 255, 0.1);
  --rim-grad: rgba(255, 255, 255, 0.5);
  --rim-grad-2: rgba(255, 255, 255, 0.16);
  --blur: 28px;

  --syn-k: #7fb0ff;
  --syn-s: #6ee7b7;
  --syn-n: #fcd34d;
  --syn-c: #8b97a0;

  --r-xs: 6px;
  --r-sm: 9px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 26px;
  --r-pill: 999px;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ── harbour in the morning ── */
@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --base: #e9f1ee;
    --wall:
      radial-gradient(45% 50% at 6% 8%, rgba(94, 234, 212, 0.6), transparent 70%),
      radial-gradient(40% 46% at 96% 4%, rgba(125, 211, 252, 0.56), transparent 70%),
      radial-gradient(55% 52% at 84% 100%, rgba(253, 186, 116, 0.58), transparent 70%),
      radial-gradient(40% 40% at 24% 100%, rgba(253, 164, 175, 0.46), transparent 70%),
      linear-gradient(165deg, #e7f1ee 0%, #f3efe7 55%, #f6e9e4 100%);
    --rows: rgba(20, 40, 50, 0.025);
    --grain-opacity: 0.35;

    --ink: #12171b;
    --ink-2: #354047;
    --muted: #535f67;
    --faint: #8a959b;
    --link: #1d5bd0;
    --link-hover: #123f99;

    --t-ok: #22b357;
    --t-held: #f29a12;
    --t-crit: #ec3d31;
    --t-prod: #e8590c;
    --t-acc: #3b82f6;
    --t-idle: #8a959b;
    --ok-ink: #12713a;
    --held-ink: #8a4f00;
    --crit-ink: #b8261c;
    --prod-ink: #a63a08;

    --pane: rgba(255, 255, 255, 0.58);
    --pane-strong: rgba(255, 255, 255, 0.76);
    --pane-grad: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.18) 45%, rgba(255, 255, 255, 0.08));
    --rim: rgba(255, 255, 255, 0.95);
    --rim-lo: rgba(255, 255, 255, 0.4);
    --edge: rgba(15, 25, 35, 0.1);
    --drop: rgba(20, 30, 50, 0.22);
    --drop-2: rgba(20, 30, 50, 0.08);
    --line: rgba(20, 30, 40, 0.09);
    --line-2: rgba(20, 30, 40, 0.15);
    --hover: rgba(20, 30, 40, 0.05);
    --press: rgba(20, 30, 40, 0.09);
    --well: rgba(255, 255, 255, 0.5);

    --g-bg: rgba(250, 251, 252, 0.6);
    --g-dense: rgba(252, 253, 254, 0.88);
    --menu-bg: rgba(250, 252, 252, 0.98);
    --g-line: rgba(255, 255, 255, 0.75);
    --sheen: rgba(255, 255, 255, 0.6);
    --rim-grad: rgba(255, 255, 255, 0.95);
    --rim-grad-2: rgba(255, 255, 255, 0.4);

    --syn-k: #1d4ed8;
    --syn-s: #047857;
    --syn-n: #9a4a07;
    --syn-c: #6b767d;
  }
}

/* ── Reduce Transparency: every surface solid, same roles ── */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --pane: #121c23;
    --pane-strong: #101820;
    --pane-grad: none;
    --g-bg: #18222b;
    --g-dense: #18222b;
    --well: #0d151b;
  }
}
@media (prefers-reduced-transparency: reduce) and (prefers-color-scheme: light) {
  :root {
    --pane: #f8faf9;
    --pane-strong: #fbfcfc;
    --g-bg: #f4f6f6;
    --g-dense: #f4f6f6;
    --well: #edf1f2;
  }
}

/* ── Increase Contrast: rims become lines, muted text steps up ── */
@media (prefers-contrast: more) {
  :root {
    --muted: var(--ink-2);
    --line: color-mix(in srgb, var(--ink) 40%, transparent);
    --line-2: color-mix(in srgb, var(--ink) 55%, transparent);
    --pane: var(--pane-strong);
  }
}

/* ── base ───────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  background: var(--base);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font: 400 16px / 1.6 var(--ff-body);
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
/* The wallpaper stays put while the glass scrolls over it, like a desktop
   behind a window: one fixed layer, painted once. */
body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
body::before {
  background: var(--wall);
}
body::after {
  background:
    repeating-linear-gradient(180deg, var(--rows) 0 1px, transparent 1px 34px),
    url(/img/grain.svg) 0 0 / 160px 160px;
  opacity: var(--grain-opacity);
}
main {
  flex: 1;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--ff-display);
  font-weight: 650;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.3rem, 7vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}
h2 {
  font-size: clamp(1.8rem, 4.6vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.035em;
}
h3 {
  font-size: 1.16rem;
  line-height: 1.3;
  letter-spacing: -0.014em;
}
p {
  margin: 0;
}
a {
  color: var(--link);
  text-decoration: none;
  text-underline-offset: 3px;
}
a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
code,
kbd,
pre,
.mono {
  font-family: var(--ff-mono);
  font-size: 0.86em;
  letter-spacing: 0;
}
code {
  padding: 0.08em 0.38em;
  border-radius: var(--r-xs);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-wrap: anywhere;
}
kbd {
  display: inline-block;
  min-width: 1.6em;
  padding: 0.05em 0.42em;
  border-radius: var(--r-xs);
  background: var(--hover);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--line-2);
  text-align: center;
  line-height: 1.4;
}
pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  border-radius: var(--r-md);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--line);
  line-height: 1.65;
  font-size: 0.84rem;
}
pre code {
  padding: 0;
  background: none;
  box-shadow: none;
  font-size: inherit;
  white-space: pre;
  overflow-wrap: normal;
}
.k {
  color: var(--syn-k);
}
.s {
  color: var(--syn-s);
}
.n {
  color: var(--syn-n);
}
.c {
  color: var(--syn-c);
}
:focus-visible {
  outline: 2px solid var(--link);
  outline-offset: 3px;
  border-radius: var(--r-xs);
}
::selection {
  background: rgba(59, 130, 246, 0.35);
}
img {
  max-width: 100%;
  height: auto;
}
strong,
b {
  font-weight: 650;
}
.lede {
  max-width: 62ch;
  font-size: clamp(1.04rem, 1.6vw, 1.16rem);
  line-height: 1.6;
  color: var(--ink-2);
}
.muted {
  color: var(--muted);
}
/* Text straight on the wallpaper (not on a pane) steps up to ink-2: muted
   can't keep 4.5 : 1 over the brightest part of the light. */
.on-wall {
  color: var(--ink-2);
}
.small {
  font-size: 0.875rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 30;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--accent-grad);
  color: #fff;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ── layout ─────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap.narrow {
  max-width: 880px;
}

/* ── surfaces ───────────────────────────────────────────────── */

/* Frosted pane: the content layer. A tinted fill that takes the wallpaper's
   colour, a sheen, a 1 px light on the top edge and a soft shadow. */
.pane {
  position: relative;
  border-radius: var(--r-xl);
  background: var(--pane-grad), var(--pane);
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 0 0 0.5px var(--rim-lo),
    0 0 0 0.5px var(--edge),
    0 22px 50px -30px var(--drop);
}
.pane.strong {
  background: var(--pane-grad), var(--pane-strong);
}

/* Specular rim: a gradient hairline, bright where the light hits, drawn as
   a masked border so it follows the radius. Used on panes that lead. */
.rim::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(160deg, var(--rim-grad), rgba(255, 255, 255, 0.06) 30%, transparent 55%, var(--rim-grad-2));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

/* Floating glass: the control layer (the header, the menu, the hero's
   status capsule). Never placed inside another .glass. */
.glass {
  position: relative;
  isolation: isolate;
  background-color: var(--g-bg);
  background-image: url(/img/grain.svg);
  background-size: 160px;
  -webkit-backdrop-filter: blur(var(--blur)) saturate(180%);
  backdrop-filter: blur(var(--blur)) saturate(180%);
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 0 0 0.5px var(--rim-lo),
    0 0 0 0.5px var(--edge),
    0 2px 6px -2px var(--drop-2),
    0 24px 60px -28px var(--drop);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(120% 70% at 15% -10%, var(--sheen), transparent 55%);
}

/* ── orbs: state as light ───────────────────────────────────── */
.orb {
  --c: var(--t-idle);
  display: inline-block;
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  vertical-align: 0.02em;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.92) 0 12%, var(--c) 50%);
  box-shadow:
    0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent),
    0 0 12px 1px color-mix(in srgb, var(--c) 80%, transparent);
}
.orb.ok {
  --c: var(--t-ok);
}
.orb.held {
  --c: var(--t-held);
}
.orb.crit {
  --c: var(--t-crit);
}
.orb.prod {
  --c: var(--t-prod);
}
.orb.acc {
  --c: var(--t-acc);
}
.orb.idle {
  box-shadow: none;
}
.orb.wait {
  animation: breathe 2.4s ease-in-out infinite;
}
@keyframes breathe {
  50% {
    box-shadow:
      0 0 0 5px color-mix(in srgb, var(--c) 14%, transparent),
      0 0 18px 3px color-mix(in srgb, var(--c) 85%, transparent);
  }
}

/* ── capsules: buttons, segmented status ────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  border: 1px solid var(--g-line);
  background: var(--g-bg);
  color: var(--ink);
  font: 600 0.97rem / 1.15 var(--ff-body);
  text-align: center;
  box-shadow:
    inset 0 1px 0 var(--rim),
    0 8px 18px -10px var(--drop);
  transition:
    background-color 0.15s var(--ease),
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}
a.btn:hover {
  color: var(--ink);
  text-decoration: none;
  background-color: color-mix(in srgb, var(--g-bg) 70%, var(--ink) 8%);
}
a.btn:active,
button.btn:active {
  transform: scale(0.98);
}
button.btn {
  cursor: pointer;
}
.btn.pri {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: var(--accent-grad);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18),
    0 12px 26px -12px rgba(47, 111, 240, 0.9),
    0 0 0 4px rgba(59, 130, 246, 0.12);
}
a.btn.pri:hover {
  color: #fff;
  background: linear-gradient(180deg, #6ba6ff 0%, #3a78f2 55%, #2a60dc 100%);
}
.btn.sm {
  min-height: 36px;
  padding: 0 15px;
  font-size: 0.88rem;
}
.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
}
/* Before the public beta: the place a button will be, saying so. Not a
   link, and not greyed out (a faded button reads as broken). */
.btn.soon {
  cursor: default;
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  border-color: transparent;
  color: var(--ink-2);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
/* a small status capsule: an orb and a few words */
.cap {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 14px 6px 12px;
  border-radius: var(--r-pill);
  background: var(--hover);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font: 600 0.82rem / 1.25 var(--ff-body);
}
.cap b {
  color: var(--ink);
}
/* in a grid, a capsule keeps its own width */
.cap {
  justify-self: start;
}
.hero-copy .cap,
.closer .cap,
.buy-state .cap,
.empty .cap {
  justify-self: center;
}
/* a state pill: Runs, Held, Touch ID, Refused */
.st {
  --c: var(--t-idle);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 11px 3px 9px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--c) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 40%, transparent);
  color: var(--ink);
  font: 600 0.8rem / 1.35 var(--ff-body);
  white-space: nowrap;
}
.st > .orb {
  --c: inherit;
  width: 7px;
  height: 7px;
}
.st.run {
  --c: var(--t-ok);
}
.st.held {
  --c: var(--t-held);
}
.st.touch {
  --c: var(--t-prod);
}
.st.refused {
  --c: var(--t-crit);
}
.st.plain {
  --c: var(--t-idle);
  font-weight: 500;
  color: var(--ink-2);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
/* small mono wells for numbers */
.nums {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nums li,
.num-well {
  padding: 3px 9px;
  border-radius: 8px;
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font: 500 0.74rem / 1.5 var(--ff-mono);
  white-space: nowrap;
}

/* ── header: one floating glass bar ─────────────────────────── */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  padding-top: 10px;
}
.bar {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 8px 8px 16px;
  border-radius: var(--r-pill);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font: 700 1.32rem / 1 var(--ff-display);
  letter-spacing: -0.045em;
}
.brand:hover {
  color: var(--ink);
  text-decoration: none;
}
.brand img {
  display: block;
  width: 28px;
  height: 28px;
  flex: none;
}
.nav {
  display: none;
  margin-left: auto;
}
.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav a {
  display: inline-block;
  padding: 8px 13px;
  border-radius: var(--r-pill);
  color: var(--ink-2);
  font-size: 0.92rem;
  font-weight: 550;
}
.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
  background: var(--hover);
}
.nav a[aria-current="page"] {
  box-shadow: inset 0 1px 0 var(--rim);
}
.bar .btn.sm {
  display: none;
}
/* The compact menu: a <details>, so it opens without script. */
.menu {
  position: relative;
  margin-left: auto;
}
.menu > summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: var(--r-pill);
  background: var(--hover);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.menu > summary::-webkit-details-marker {
  display: none;
}
.menu > summary svg {
  width: 16px;
  height: 16px;
}
/* It hangs from the glass bar, so it is not glass itself (a backdrop blur
   inside another one sees only its parent): a dense fill instead. */
.menu-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 12px);
  width: min(280px, calc(100vw - 2 * var(--gutter)));
  padding: 8px;
  border-radius: var(--r-xl);
  background: url(/img/grain.svg) 0 0 / 160px, var(--menu-bg);
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 0 0 0.5px var(--rim-lo),
    0 0 0 0.5px var(--edge),
    0 30px 70px -24px var(--drop);
}
.menu-pop ul {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.menu-pop a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--r-md);
  color: var(--ink);
  font-weight: 550;
}
.menu-pop a:hover,
.menu-pop a[aria-current="page"] {
  background: var(--hover);
  text-decoration: none;
}
.menu-pop .sep {
  height: 1px;
  margin: 6px 8px;
  background: var(--line);
}
.menu-pop .soon-note {
  padding: 8px 14px 6px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ── sections ───────────────────────────────────────────────── */
.sec {
  padding-block: clamp(72px, 10vw, 128px) 0;
}
.sec-head {
  display: grid;
  gap: 16px;
  max-width: 820px;
  margin-bottom: clamp(28px, 4vw, 44px);
}
.sec-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  justify-self: start;
  color: var(--ink-2);
  font: 600 0.8rem / 1.2 var(--ff-mono);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.center .eyebrow {
  justify-self: center;
}
.eyebrow .orb {
  width: 7px;
  height: 7px;
}

/* ── hero ───────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(40px, 8vw, 96px) 0;
}
.hero-copy {
  display: grid;
  gap: 22px;
  justify-items: center;
  max-width: 920px;
  margin-inline: auto;
  text-align: center;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.16em;
  font: 750 clamp(3.6rem, 15vw, 8.4rem) / 0.92 var(--ff-display);
  letter-spacing: -0.065em;
}
/* the wordmark carries the wallpaper's light: ink at the top, a breath of
   teal at the foot. Only the word itself is clipped to the gradient, so
   the hidden description beside it never shows through. */
.wordmark .wm {
  background: linear-gradient(180deg, var(--ink) 30%, color-mix(in srgb, var(--ink) 70%, #2dd4bf) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-bottom: 0.06em;
}
.wordmark img {
  width: 0.62em;
  height: 0.62em;
  flex: none;
  margin-right: 0.04em;
  filter: drop-shadow(0 10px 24px rgba(45, 160, 220, 0.45));
}
.promise {
  max-width: 30ch;
  font: 600 clamp(1.42rem, 3.4vw, 2.2rem) / 1.2 var(--ff-display);
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
.hero .lede {
  max-width: 58ch;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 0.88rem;
}
.facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.facts .orb {
  width: 6px;
  height: 6px;
}

/* ── the window: a screenshot in a glass frame ──────────────────
   The captures are 1440 px windows at 2×. The frame is a size container,
   so the traffic lights (which a capture of the web contents never shows)
   sit where macOS draws them, at any width: 20 px from the left, centred
   in the 52 px title bar, 12 px each with 8 px between. */
.shot {
  margin: 0;
  display: grid;
  gap: 14px;
  min-width: 0;
}
.window {
  position: relative;
  container-type: inline-size;
  border-radius: clamp(10px, 1.4vw, 18px);
  overflow: hidden;
  background: var(--base);
  box-shadow:
    0 0 0 0.5px var(--edge),
    0 0 0 1px var(--line-2),
    0 30px 80px -30px var(--drop),
    0 50px 120px -60px rgba(20, 184, 166, 0.35);
}
.window::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  background: linear-gradient(160deg, var(--rim-grad), rgba(255, 255, 255, 0.04) 28%, transparent 60%, var(--rim-grad-2));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}
.window img {
  display: block;
  width: 100%;
  height: auto;
}
.lights {
  position: absolute;
  z-index: 1;
  left: 1.389cqw;
  top: 1.389cqw;
  display: flex;
  gap: 0.556cqw;
}
.lights i {
  display: block;
  width: 0.833cqw;
  height: 0.833cqw;
  min-width: 5px;
  min-height: 5px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.25);
}
.lights i:nth-child(2) {
  background: #febc2e;
}
.lights i:nth-child(3) {
  background: #28c840;
}
/* a crop (a sheet, a palette) rather than a whole window */
.window.crop {
  border-radius: clamp(12px, 1.6vw, 20px);
}
.shot figcaption {
  color: var(--ink-2);
  font-size: 0.875rem;
  line-height: 1.5;
  text-align: center;
  max-width: 72ch;
  margin-inline: auto;
}
.hero-shot {
  margin-top: clamp(40px, 6vw, 72px);
  position: relative;
}
/* an aura under the hero window: the held change's amber, the brand teal */
.hero-shot::before {
  content: "";
  position: absolute;
  inset: 8% 4% 12%;
  z-index: -1;
  border-radius: 40px;
  background:
    radial-gradient(50% 60% at 30% 60%, rgba(255, 176, 32, 0.22), transparent 70%),
    radial-gradient(50% 60% at 75% 40%, rgba(45, 212, 191, 0.22), transparent 70%);
  filter: blur(40px);
}

/* ── three promises ─────────────────────────────────────────── */
.promises {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.promises > li {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 24px;
}
.promises .tag {
  color: var(--muted);
  font: 600 0.78rem / 1.2 var(--ff-mono);
  text-transform: lowercase;
}
.promises h3 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.promises p {
  color: var(--ink-2);
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: var(--brand-grad);
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 10px 22px -10px rgba(45, 160, 220, 0.8);
}
.icon-tile svg {
  width: 22px;
  height: 22px;
}

/* ── tinted cards: state as tint, top-edge glow and aura ────────
   Never an edge stripe. --tone carries the state; the card takes it as a
   wash, a lit top edge and a glow above. */
.card {
  --tone: var(--t-acc);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--r-lg);
  background-color: color-mix(in srgb, var(--tone) 11%, var(--pane));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, var(--tone) 50%, white),
    inset 0 0 0 0.5px color-mix(in srgb, var(--tone) 32%, transparent),
    0 0 0 0.5px var(--edge),
    0 18px 40px -22px color-mix(in srgb, var(--tone) 60%, transparent);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(90% 60% at 50% -18%, color-mix(in srgb, var(--tone) 38%, transparent), transparent 70%);
}
.card.held {
  --tone: var(--t-held);
}
.card.ok {
  --tone: var(--t-ok);
}
.card.crit {
  --tone: var(--t-crit);
}
.card.prod {
  --tone: var(--t-prod);
}
/* held work: a slow sweep of light across the amber glass */
.card.held::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.45;
  background-image: linear-gradient(105deg, transparent 35%, color-mix(in srgb, var(--tone) 30%, rgba(255, 255, 255, 0.4)) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: sweep 3.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}
@keyframes sweep {
  from {
    background-position: 130% 0;
  }
  to {
    background-position: -30% 0;
  }
}

/* ── anatomy of one agent turn ──────────────────────────────── */
.turn {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.turn > li {
  counter-increment: step;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 20px;
  min-width: 0;
}
.turn h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.08rem;
}
.turn h3::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  border-radius: 50%;
  background: var(--hover);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--line-2);
  color: var(--ink);
  font: 600 0.78rem / 1 var(--ff-mono);
}
.turn > li > p {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.turn > li.held-step h3::before {
  background: color-mix(in srgb, var(--t-held) 22%, transparent);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px color-mix(in srgb, var(--t-held) 50%, transparent), 0 0 14px -2px var(--t-held);
}
/* the little pieces of interface each step shows */
.mock {
  align-self: end;
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: var(--r-md);
  background: var(--well);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.82rem;
  color: var(--ink-2);
  min-width: 0;
  overflow: hidden;
}
.mock .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}
.mock b {
  color: var(--ink);
  font-weight: 600;
}
.mock .ok-t {
  color: var(--ok-ink);
  font-weight: 600;
}
.mock .held-t {
  color: var(--held-ink);
  font-weight: 600;
}
.mock .mono {
  font-size: 0.76rem;
  color: var(--ink-2);
}
.mark-sm {
  display: inline-block;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 5px;
  background: var(--brand-grad);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 4px 10px -4px rgba(45, 212, 191, 0.8);
}
.plan-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
.plan-row + .plan-row {
  padding-top: 6px;
  border-top: 1px solid var(--line);
}
.rw {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  font: 700 0.66rem / 1 var(--ff-mono);
}
.rw.r {
  background: color-mix(in srgb, var(--t-ok) 18%, transparent);
  color: var(--ok-ink);
}
.rw.w {
  background: color-mix(in srgb, var(--t-held) 20%, transparent);
  color: var(--held-ink);
}
.plan-row .mono {
  color: var(--muted);
  white-space: nowrap;
}
.tool-row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.tool-row .mono:first-child {
  color: var(--ink);
}
.tool-row .sp {
  margin-left: auto;
  color: var(--muted);
  white-space: nowrap;
}
.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--accent-grad);
  color: #fff;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5), 0 8px 18px -10px rgba(47, 111, 240, 0.9);
}
.mini-btn svg {
  width: 14px;
  height: 14px;
}
.fpr {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 35%, rgba(255, 120, 120, 0.35), rgba(255, 90, 110, 0.12) 60%, transparent 70%);
  box-shadow: 0 0 0 1px rgba(255, 120, 130, 0.35), 0 0 22px -4px rgba(255, 90, 110, 0.7);
  color: var(--crit-ink);
}
.fpr svg {
  width: 20px;
  height: 20px;
}
.troubles {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  padding: 18px 20px;
}
.troubles h3 {
  font-size: 0.98rem;
}
.troubles ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.troubles li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--t-crit) 10%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-crit) 30%, transparent);
  font-size: 0.86rem;
  color: var(--ink);
}
.troubles li b {
  color: var(--link);
  font-weight: 600;
}

/* ── a split: a picture and the words beside it ─────────────── */
.split {
  display: grid;
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  margin-top: clamp(40px, 6vw, 72px);
}
.split .copy {
  display: grid;
  gap: 16px;
  align-content: center;
}
.split .copy h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  letter-spacing: -0.03em;
}
.facts-list {
  display: grid;
  gap: 12px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
}
.facts-list li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink-2);
}
.facts-list li b {
  color: var(--ink);
}
.ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--t-acc) 18%, transparent);
  color: var(--link);
  font: 700 0.8rem / 1 var(--ff-mono);
}
.ico svg {
  width: 17px;
  height: 17px;
}
.ico.ok {
  background: color-mix(in srgb, var(--t-ok) 18%, transparent);
  color: var(--ok-ink);
}
.ico.held {
  background: color-mix(in srgb, var(--t-held) 20%, transparent);
  color: var(--held-ink);
}
.ico.crit {
  background: color-mix(in srgb, var(--t-crit) 18%, transparent);
  color: var(--crit-ink);
}

/* ── tables on glass ────────────────────────────────────────── */
.tbl {
  overflow: hidden;
  border-radius: var(--r-xl);
}
.tbl table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
}
.tbl caption {
  padding: 16px 20px 4px;
  text-align: left;
  color: var(--muted);
  font-size: 0.86rem;
}
.tbl th,
.tbl td {
  padding: 13px 18px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.tbl thead th {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}
.tbl tbody th {
  color: var(--ink);
  font-weight: 600;
}
.tbl td {
  color: var(--ink-2);
}
.tbl tr:last-child > * {
  border-bottom: 0;
}
.tbl .note {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
}
.th-orb {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.th-orb .orb {
  width: 7px;
  height: 7px;
}
/* On a phone a table becomes one card per row, each cell labelled from its
   column (data-label), so nothing scrolls sideways. */
@media (max-width: 759px) {
  .tbl.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .tbl.stack table,
  .tbl.stack tbody,
  .tbl.stack tr,
  .tbl.stack th,
  .tbl.stack td {
    display: block;
  }
  .tbl.stack tr {
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
  }
  .tbl.stack tr:last-child {
    border-bottom: 0;
  }
  .tbl.stack th,
  .tbl.stack td {
    padding: 0;
    border: 0;
  }
  .tbl.stack tbody th {
    margin-bottom: 8px;
    font-size: 1rem;
  }
  /* the label hangs in a left column; the cell's own content flows beside it */
  .tbl.stack td {
    position: relative;
    min-height: 1.6em;
    padding: 5px 0 5px min(38%, 140px);
  }
  .tbl.stack td::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 7px;
    width: calc(min(38%, 140px) - 12px);
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
  }
  .tbl.stack caption {
    display: block;
    padding: 16px 18px 4px;
  }
}
.below {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.below > li,
.note-card {
  padding: 18px 20px;
}
.below {
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}
.below h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}
.below p {
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* ── the everything app: five layers ────────────────────────── */
.layers {
  display: grid;
  gap: 14px;
  margin: clamp(32px, 5vw, 56px) 0 0;
  padding: 0;
  list-style: none;
}
.layers > li {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}
.layer-hd {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.layer-hd h3 {
  font-size: 1.24rem;
}
.layers .sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: -6px;
}
.ticks {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ticks li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-2);
  font-size: 0.94rem;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.5em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85) 0 12%, var(--t-ok) 50%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--t-ok) 60%, transparent);
}
.ticks.pro li::before {
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.85) 0 12%, var(--t-acc) 50%);
  box-shadow: 0 0 8px color-mix(in srgb, var(--t-acc) 60%, transparent);
}
.ticks li b {
  color: var(--ink);
}
.tier {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  font: 600 0.74rem / 1.4 var(--ff-mono);
  background: color-mix(in srgb, var(--t-ok) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-ok) 36%, transparent);
  color: var(--ok-ink);
  white-space: nowrap;
}
.tier.pro {
  background: color-mix(in srgb, var(--t-acc) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-acc) 40%, transparent);
  color: var(--link);
}
.tier.mixed {
  background: linear-gradient(90deg, color-mix(in srgb, var(--t-ok) 14%, transparent), color-mix(in srgb, var(--t-acc) 16%, transparent));
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink-2);
}
.shots {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
  margin-top: clamp(40px, 6vw, 72px);
}
.shots .duo {
  display: grid;
  gap: clamp(28px, 4vw, 40px);
}

/* a list of shortcuts: the keys, then what they do */
.keys {
  display: grid;
  gap: 2px;
  margin: 4px 0 0;
}
.keys > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.keys > div:last-child {
  border-bottom: 0;
}
.keys dt {
  white-space: nowrap;
}
.keys kbd + kbd {
  margin-left: 3px;
}
.keys dd {
  margin: 0;
  color: var(--ink-2);
}

/* ── models by role ─────────────────────────────────────────── */
.roles {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.roles > li {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px;
}
.role-k {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 600 0.78rem / 1.2 var(--ff-mono);
  text-transform: lowercase;
}
.roles h3 {
  font-size: 1.3rem;
  letter-spacing: -0.025em;
}
.score {
  display: grid;
  gap: 6px;
}
.score .big {
  font: 650 2.3rem / 1 var(--ff-display);
  letter-spacing: -0.04em;
  color: var(--ink);
}
.score .big small {
  margin-left: 4px;
  font: 500 0.95rem / 1 var(--ff-body);
  letter-spacing: 0;
  color: var(--muted);
}
.meter {
  position: relative;
  height: 9px;
  border-radius: var(--r-pill);
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.meter i {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, #2dd4bf, #3b82f6);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), 0 0 12px rgba(59, 130, 246, 0.55);
}
/* widths for the measured scores (no inline styles under this CSP) */
.meter .s25 {
  width: 78.125%;
}
.meter .s26 {
  width: 81.25%;
}
.meter .s28 {
  width: 87.5%;
}
.meter .s30 {
  width: 93.75%;
}
.meter .p97 {
  width: 97%;
}
.roles .why {
  color: var(--ink-2);
  font-size: 0.94rem;
}
.roles dl {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 14px;
  margin: 2px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
}
.roles dt {
  color: var(--muted);
}
.roles dd {
  margin: 0;
  color: var(--ink-2);
  font-family: var(--ff-mono);
  font-size: 0.8rem;
  padding-top: 1px;
}
.measured {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font: 500 0.8rem / 1.4 var(--ff-mono);
}
.picks {
  margin-top: 16px;
}
.remote {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}
.remote > div {
  display: grid;
  gap: 8px;
  padding: 20px 22px;
}
.remote h3 {
  font-size: 1.04rem;
}
.remote p {
  color: var(--ink-2);
  font-size: 0.94rem;
}

/* ── saferow mcp ────────────────────────────────────────────── */
.steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: s;
}
.steps li {
  counter-increment: s;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: var(--ink-2);
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--hover);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 0 0 1px var(--line-2);
  color: var(--ink);
  font: 600 0.78rem / 1 var(--ff-mono);
}
.steps li b {
  color: var(--ink);
}
.code-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  min-width: 0;
}
.code-card .hd {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font: 500 0.8rem / 1.3 var(--ff-mono);
}
.code-card p {
  color: var(--muted);
  font-size: 0.86rem;
}
/* a config snippet wraps its one long path rather than hiding it */
.code-card pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.toolnames {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.toolnames li {
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
  font: 500 0.78rem / 1.4 var(--ff-mono);
  color: var(--ink);
}
.toolnames li.w {
  background: color-mix(in srgb, var(--t-held) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--t-held) 40%, transparent);
}

/* ── pricing ────────────────────────────────────────────────── */
.plans {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.plans > li {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 26px 24px;
}
/* the button sits at the foot of every card, whatever the list above it */
.plans > li > .btn {
  margin-top: auto;
}
.plan-k {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.plan-k h2,
.plan-k h3 {
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.price .amt {
  font: 700 clamp(2.6rem, 6vw, 3.4rem) / 1 var(--ff-display);
  letter-spacing: -0.05em;
  color: var(--ink);
}
.price .per {
  color: var(--muted);
  font-size: 0.95rem;
}
.price .launch {
  flex-basis: 100%;
  color: var(--held-ink);
  font-weight: 600;
  font-size: 0.9rem;
}
.plans .lead {
  color: var(--ink-2);
  font-size: 0.95rem;
}
.plans .btn {
  align-self: stretch;
}
.plans > li.featured {
  box-shadow:
    inset 0 1px 0 var(--rim),
    inset 0 0 0 1px rgba(96, 150, 255, 0.45),
    0 0 0 4px rgba(59, 130, 246, 0.1),
    0 30px 60px -30px rgba(47, 111, 240, 0.6);
  background:
    linear-gradient(160deg, rgba(59, 130, 246, 0.18), rgba(59, 130, 246, 0.03) 60%),
    var(--pane-grad),
    var(--pane);
}
.compare th[scope="col"]:not(:first-child),
.compare td {
  text-align: center;
}
.compare td.l {
  text-align: left;
}
.tbl .yes {
  color: var(--ok-ink);
  font-weight: 600;
}
.tbl .no {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.promises-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq {
  display: grid;
  gap: 10px;
}
.faq details {
  border-radius: var(--r-lg);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 14px 20px;
  cursor: pointer;
  list-style: none;
  color: var(--ink);
  font: 600 1.02rem / 1.35 var(--ff-body);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-right: 4px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(-135deg) translateY(-2px);
}
.faq .ans {
  display: grid;
  gap: 10px;
  padding: 0 20px 18px;
  color: var(--ink-2);
}

/* ── a closing call ─────────────────────────────────────────── */
.closer {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 5vw, 56px);
  text-align: center;
}
.closer .promise {
  max-width: 26ch;
}

/* ── document pages: privacy, terms, refunds, security ──────── */
.page {
  padding-block: clamp(36px, 6vw, 72px) 0;
}
.doc-head {
  display: grid;
  gap: 16px;
  margin-bottom: 28px;
}
.doc-head h1 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
}
.updated {
  color: var(--ink-2);
  font-size: 0.875rem;
}
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}
.toc a {
  display: inline-block;
  padding: 6px 13px;
  border-radius: var(--r-pill);
  background: var(--hover);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 550;
}
.toc a:hover {
  color: var(--ink);
  text-decoration: none;
}
.prose {
  display: grid;
  gap: 14px;
  padding: clamp(22px, 4vw, 40px);
  color: var(--ink-2);
}
.prose + .prose,
.prose + .tbl,
.tbl + .prose,
.prose + .shot,
.shot + .prose {
  margin-top: 16px;
}
.prose h2 {
  margin-top: 18px;
  font-size: clamp(1.4rem, 3vw, 1.85rem);
  letter-spacing: -0.03em;
  color: var(--ink);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 8px;
  color: var(--ink);
}
.prose ul,
.prose ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 1.25em;
}
.prose li::marker {
  color: var(--muted);
}
.prose strong {
  color: var(--ink);
}
.prose dl {
  display: grid;
  gap: 6px 18px;
  margin: 0;
}
.prose dt {
  color: var(--ink);
  font-weight: 600;
}
.prose dd {
  margin: 0 0 6px;
}
.clause {
  scroll-margin-top: 100px;
}
.callout {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
}
.callout b {
  color: var(--ink);
}

/* security: the 12 escapes */
.engine {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
@media (min-width: 760px) {
  .esc td:nth-child(4),
  .esc td:nth-child(5) {
    white-space: nowrap;
  }
}
.esc code {
  font-size: 0.82em;
}
.tbl .bad {
  color: var(--crit-ink);
  font-weight: 600;
}
.tbl .good {
  color: var(--ok-ink);
  font-weight: 600;
}
.net {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 8px;
  list-style: none;
}
.net li {
  display: grid;
  grid-template-columns: 14px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--r-md);
}
.net li + li {
  border-top: 1px solid var(--line);
  border-radius: 0;
}
.net code {
  justify-self: start;
  color: var(--ink);
  font-size: 0.86rem;
}
.net span:last-child {
  grid-column: 2;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.verify {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.verify > li {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
}
.verify h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.verify p {
  color: var(--ink-2);
  font-size: 0.95rem;
}

/* ── download ───────────────────────────────────────────────── */
.dl {
  display: grid;
  gap: 16px;
}
.dl-main {
  display: grid;
  gap: 18px;
  padding: clamp(24px, 4vw, 40px);
}
.reqs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  margin: 0;
}
.reqs > div {
  display: grid;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.reqs > div:last-child {
  border-bottom: 0;
}
.reqs dt {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}
.reqs dd {
  margin: 0;
  color: var(--ink);
}
.reqs dd span {
  display: block;
  color: var(--ink-2);
  font-size: 0.92rem;
}

/* ── /buy/ ──────────────────────────────────────────────────── */
.buy {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}
.buy [hidden] {
  display: none !important;
}
.buy-state {
  display: grid;
  gap: 14px;
  justify-items: center;
}
.buy .plan-name {
  font: 650 clamp(1.8rem, 5vw, 2.6rem) / 1.05 var(--ff-display);
  letter-spacing: -0.035em;
}
.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--line-2);
  border-top-color: var(--link);
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.buy-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
  color: var(--ink-2);
}

/* ── 404 ────────────────────────────────────────────────────── */
.empty {
  display: grid;
  place-items: center;
  padding-block: clamp(48px, 10vw, 120px);
}
.empty .pane {
  display: grid;
  gap: 18px;
  justify-items: center;
  max-width: 620px;
  padding: clamp(28px, 6vw, 56px);
  text-align: center;
}
.empty h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}
.empty .actions,
.buy .actions,
.closer .actions {
  justify-content: center;
}
.empty .big404 {
  font: 700 clamp(4.4rem, 16vw, 7rem) / 0.9 var(--ff-display);
  letter-spacing: -0.06em;
  background: linear-gradient(180deg, var(--ink), color-mix(in srgb, var(--ink) 55%, #2dd4bf));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ── footer ─────────────────────────────────────────────────── */
.foot {
  margin-top: clamp(80px, 12vw, 140px);
  padding-bottom: 28px;
}
.foot-in {
  display: grid;
  gap: 28px;
  padding: clamp(24px, 4vw, 36px);
}
.foot-brand {
  display: grid;
  gap: 12px;
  align-content: start;
}
.foot-brand p {
  max-width: 40ch;
  color: var(--ink-2);
  font-size: 0.92rem;
}
.foot-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.foot-col h2 {
  margin-bottom: 10px;
  color: var(--muted);
  font: 600 0.78rem / 1.2 var(--ff-mono);
  letter-spacing: 0.02em;
  text-transform: lowercase;
}
.foot-col ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
}
.foot-col a {
  color: var(--ink-2);
  overflow-wrap: break-word;
}
/* on a phone the contact column gets the full width, so an address never breaks */
.foot-cols > .foot-col:last-child {
  grid-column: 1 / -1;
}
.foot-col a:hover,
.foot-col a[aria-current="page"] {
  color: var(--ink);
}
.legal-line {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 0.88rem;
  text-align: center;
}
.legal-line a {
  color: var(--ink-2);
}
.legal-line a:hover {
  color: var(--ink);
}
.tm {
  max-width: 90ch;
  margin: 12px auto 0;
  color: var(--ink-2);
  font-size: 0.78rem;
  line-height: 1.5;
  text-align: center;
}

/* ── wider screens ──────────────────────────────────────────── */
@media (min-width: 640px) {
  .promises,
  .remote,
  .below,
  .verify {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .turn {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .roles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .layers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .layers > li:first-child {
    grid-column: 1 / -1;
  }
  .layers > li:first-child .ticks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 28px;
  }
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .reqs > div {
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 16px;
  }
  .foot-cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot-cols > .foot-col:last-child {
    grid-column: auto;
  }
}
@media (min-width: 900px) {
  .nav {
    display: block;
  }
  .menu {
    display: none;
  }
  .bar .btn.sm {
    display: inline-flex;
  }
  .promises {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .turn {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .split {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
  .split.rev {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
  .split.rev .shot {
    order: 2;
  }
  .below {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .roles {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .shots .duo {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: start;
  }
  .foot-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
  }
  .dl {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    align-items: start;
  }
}
@media (min-width: 1100px) {
  .layers {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .layers > li:first-child {
    grid-column: 1 / -1;
  }
  .layers > li:first-child .ticks {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .plans.four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ── motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * {
    animation: settle 0.7s var(--ease) both;
  }
  .hero-copy > :nth-child(2) {
    animation-delay: 0.05s;
  }
  .hero-copy > :nth-child(3) {
    animation-delay: 0.1s;
  }
  .hero-copy > :nth-child(n + 4) {
    animation-delay: 0.15s;
  }
  .hero-shot .window {
    animation: rise 0.9s 0.15s var(--ease) both;
  }
  @keyframes settle {
    from {
      opacity: 0;
      transform: translateY(10px);
    }
  }
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(28px) scale(0.985);
    }
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ── accessibility overrides (after everything, so they win) ── */
@media (prefers-reduced-transparency: reduce) {
  .glass {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background-image: none;
  }
  body::after,
  .hero-shot::before {
    display: none;
  }
  .card {
    background-color: color-mix(in srgb, var(--tone) 10%, var(--pane));
  }
}
@media (prefers-contrast: more) {
  .pane,
  .glass,
  .card,
  .window,
  .plans > li.featured {
    box-shadow: 0 0 0 1.5px var(--ink-2);
  }
  .glass::before,
  .rim::after,
  .window::after,
  .card::before,
  .card.held::after,
  body::after {
    display: none;
  }
  .btn,
  .cap,
  .st,
  .nums li,
  .toc a,
  .menu > summary {
    box-shadow: inset 0 0 0 1.5px var(--ink-2);
  }
  .wordmark .wm,
  .empty .big404 {
    background: none;
    color: var(--ink);
  }
}
/* Windows High Contrast and other forced colours: real borders come back. */
@media (forced-colors: active) {
  .pane,
  .glass,
  .card,
  .btn,
  .cap,
  .st,
  .window,
  .menu-pop {
    border: 1px solid CanvasText;
  }
  .wordmark .wm,
  .empty .big404 {
    color: CanvasText;
    background: none;
  }
}
