/* signupbouncer: one stylesheet for every page (the round 3 "Story" design, ported from design/round3/story/).
   Light by default; dark via prefers-color-scheme or [data-theme="dark"] (web/static/theme.js applies a saved
   choice before first paint). Keep the two dark blocks below in sync.
   CSP: style-src 'self' forbids style="" attributes, so per-element values (delays, dot colours, tick positions,
   meter widths) are classes, nth-child rules or SVG attributes here, never inline styles. */

/* Inter and JetBrains Mono, self-hosted (the CSP allows only same-origin fonts). Latin subsets, SIL OFL 1.1:
   see /static/fonts-OFL.txt. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/static/jetbrains-mono-latin.woff2") format("woff2");
}

/* ---------- Tokens ---------- */

:root {
  color-scheme: light;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --bg: #fafbfc;
  --bg-tint: #f3f4f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --surface-3: #eef0f4;
  --ink: #0d0f16;
  --ink-2: #353a49;
  --muted: #596071;
  --faint: #9298a7; /* decoration only (dots, dashed borders): 2.9:1, too light for text */
  --faint-ink: #687083; /* faint-looking text and glyphs: 4.5:1 or more on bg, bg-tint, surface, surface-2 */
  --on-accent: #ffffff; /* text on var(--accent): 6.3:1 */
  --line: rgba(17, 22, 40, 0.08);
  --line-2: rgba(17, 22, 40, 0.12);
  --line-strong: rgba(17, 22, 40, 0.2);

  --accent: #4f46e5;
  --accent-ink: #4338ca;
  --accent-soft: rgba(79, 70, 229, 0.07);
  --accent-line: rgba(79, 70, 229, 0.26);
  --grad: linear-gradient(115deg, #6366f1 0%, #a855f7 42%, #ec4899 62%, #22d3ee 100%);
  --grad-soft: linear-gradient(115deg, rgba(99, 102, 241, 0.55), rgba(168, 85, 247, 0.45) 45%, rgba(34, 211, 238, 0.5));

  --btn-bg: #11131b;
  --btn-bg-hover: #23263a;
  --btn-ink: #ffffff;

  --allow: #0a7650;
  --allow-bg: #e7f6ef;
  --allow-line: rgba(10, 118, 80, 0.22);
  --challenge: #8f4d00;
  --challenge-bg: #fdf1da;
  --challenge-line: rgba(143, 77, 0, 0.24);
  --block: #bb2239;
  --block-bg: #fdebee;
  --block-line: rgba(187, 34, 57, 0.22);

  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.9);
  --shadow-panel:
    0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 10px -4px rgba(16, 24, 40, 0.05),
    0 18px 36px -18px rgba(16, 24, 40, 0.12);
  --shadow-lift:
    0 0 0 1px var(--line-2), 0 2px 4px rgba(16, 24, 40, 0.05), 0 10px 20px -8px rgba(16, 24, 40, 0.09),
    0 28px 48px -22px rgba(16, 24, 40, 0.18);
  --shadow-float:
    0 0 0 1px var(--line), 0 1px 2px rgba(16, 24, 40, 0.04), 0 10px 24px -8px rgba(16, 24, 40, 0.08),
    0 40px 80px -32px rgba(37, 33, 110, 0.28);

  --dot: rgba(17, 22, 40, 0.1);
  --glow-a: rgba(99, 102, 241, 0.13);
  --glow-b: rgba(34, 211, 238, 0.1);
  --glow-c: rgba(168, 85, 247, 0.08);
  --header-bg: rgba(250, 251, 252, 0.78);
  --placeholder: #6b7282;

  /* Theme hooks: each holds the value the light theme always used, so dark can tune it alone. */
  --hero-soft: var(--muted);
  --band-glow: var(--accent-soft);
  --edge-glow: 0.16;
  --selection: rgba(99, 102, 241, 0.22);
  --code-bg: #0e1017;
  --code-ring: rgba(255, 255, 255, 0.06);
  --btn-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(16, 24, 40, 0.16),
    0 6px 14px -6px rgba(16, 24, 40, 0.35);
  --btn-shadow-hover:
    inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(16, 24, 40, 0.16),
    0 12px 22px -8px rgba(16, 24, 40, 0.4);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-xs: 7px;
  --gutter: 24px;
  --maxw: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0b10;
    --bg-tint: #0f1118;
    --surface: #13151d;
    --surface-2: #171a23;
    --surface-3: #1e2130;
    --ink: #f1f2f7;
    --ink-2: #c9ccd8;
    --muted: #9aa0b2;
    --faint: #80869a;
    --faint-ink: #8a90a3;
    --on-accent: #0b0c11;
    --line: rgba(200, 205, 255, 0.08);
    --line-2: rgba(200, 205, 255, 0.12);
    --line-strong: rgba(200, 205, 255, 0.22);
    --accent: #9693ff;
    --accent-ink: #aeacff;
    --accent-soft: rgba(150, 147, 255, 0.1);
    --accent-line: rgba(150, 147, 255, 0.34);
    --btn-bg: #ffffff;
    --btn-bg-hover: #e9e8ff;
    --btn-ink: #0b0c11;
    --allow: #52d69e;
    --allow-bg: rgba(82, 214, 158, 0.1);
    --allow-line: rgba(82, 214, 158, 0.26);
    --challenge: #f5bb55;
    --challenge-bg: rgba(245, 187, 85, 0.1);
    --challenge-line: rgba(245, 187, 85, 0.26);
    --block: #ff7a8e;
    --block-bg: rgba(255, 122, 142, 0.1);
    --block-line: rgba(255, 122, 142, 0.28);
    --hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --shadow-panel: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.75);
    --shadow-lift: 0 0 0 1px var(--line-2), 0 2px 4px rgba(0, 0, 0, 0.45), 0 28px 48px -22px rgba(0, 0, 0, 0.85);
    --shadow-float:
      0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 60px -24px rgba(0, 0, 0, 0.9),
      0 40px 90px -40px rgba(79, 70, 229, 0.28);
    --dot: rgba(200, 205, 255, 0.06);
    --glow-a: rgba(99, 102, 241, 0.26);
    --glow-b: rgba(34, 211, 238, 0.035);
    --glow-c: rgba(168, 85, 247, 0.05);
    --header-bg: rgba(10, 11, 16, 0.76);
    --placeholder: #868c9c;
    --hero-soft: #a4a7c2;
    --band-glow: rgba(99, 102, 241, 0.06);
    --edge-glow: 0.12;
    --selection: rgba(129, 140, 248, 0.38);
    --code-bg: #0c0d14;
    --code-ring: rgba(200, 205, 255, 0.1);
    --btn-shadow:
      inset 0 -1px 0 rgba(11, 12, 17, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.5),
      0 8px 22px -10px rgba(129, 140, 248, 0.55);
    --btn-shadow-hover:
      inset 0 -1px 0 rgba(11, 12, 17, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.16), 0 2px 4px rgba(0, 0, 0, 0.5),
      0 12px 28px -10px rgba(129, 140, 248, 0.7);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0b10;
  --bg-tint: #0f1118;
  --surface: #13151d;
  --surface-2: #171a23;
  --surface-3: #1e2130;
  --ink: #f1f2f7;
  --ink-2: #c9ccd8;
  --muted: #9aa0b2;
  --faint: #80869a;
  --faint-ink: #8a90a3;
  --on-accent: #0b0c11;
  --line: rgba(200, 205, 255, 0.08);
  --line-2: rgba(200, 205, 255, 0.12);
  --line-strong: rgba(200, 205, 255, 0.22);
  --accent: #9693ff;
  --accent-ink: #aeacff;
  --accent-soft: rgba(150, 147, 255, 0.1);
  --accent-line: rgba(150, 147, 255, 0.34);
  --btn-bg: #ffffff;
  --btn-bg-hover: #e9e8ff;
  --btn-ink: #0b0c11;
  --allow: #52d69e;
  --allow-bg: rgba(82, 214, 158, 0.1);
  --allow-line: rgba(82, 214, 158, 0.26);
  --challenge: #f5bb55;
  --challenge-bg: rgba(245, 187, 85, 0.1);
  --challenge-line: rgba(245, 187, 85, 0.26);
  --block: #ff7a8e;
  --block-bg: rgba(255, 122, 142, 0.1);
  --block-line: rgba(255, 122, 142, 0.28);
  --hi: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --shadow-panel: 0 0 0 1px var(--line), 0 1px 2px rgba(0, 0, 0, 0.45), 0 18px 36px -18px rgba(0, 0, 0, 0.75);
  --shadow-lift: 0 0 0 1px var(--line-2), 0 2px 4px rgba(0, 0, 0, 0.45), 0 28px 48px -22px rgba(0, 0, 0, 0.85);
  --shadow-float:
    0 0 0 1px var(--line-2), 0 1px 2px rgba(0, 0, 0, 0.5), 0 24px 60px -24px rgba(0, 0, 0, 0.9),
    0 40px 90px -40px rgba(79, 70, 229, 0.28);
  --dot: rgba(200, 205, 255, 0.06);
  --glow-a: rgba(99, 102, 241, 0.26);
  --glow-b: rgba(34, 211, 238, 0.035);
  --glow-c: rgba(168, 85, 247, 0.05);
  --header-bg: rgba(10, 11, 16, 0.76);
  --placeholder: #868c9c;
  --hero-soft: #a4a7c2;
  --band-glow: rgba(99, 102, 241, 0.06);
  --edge-glow: 0.12;
  --selection: rgba(129, 140, 248, 0.38);
  --code-bg: #0c0d14;
  --code-ring: rgba(200, 205, 255, 0.1);
  --btn-shadow:
    inset 0 -1px 0 rgba(11, 12, 17, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.12), 0 1px 2px rgba(0, 0, 0, 0.5),
    0 8px 22px -10px rgba(129, 140, 248, 0.55);
  --btn-shadow-hover:
    inset 0 -1px 0 rgba(11, 12, 17, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.16), 0 2px 4px rgba(0, 0, 0, 0.5),
    0 12px 28px -10px rgba(129, 140, 248, 0.7);
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  /* calt off: Inter turns the x in "k7x2q9" into a multiplication sign, which misprints email addresses. */
  font-feature-settings: "cv11", "ss03", "calt" 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1,
h2,
h3,
h4 {
  color: var(--ink);
  margin: 0;
  font-weight: 640;
  letter-spacing: -0.022em;
  line-height: 1.15;
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: 0.86em;
  font-feature-settings: normal;
  letter-spacing: -0.01em;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
img,
svg {
  display: block;
}
::selection {
  background: var(--selection);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 560;
}
.skip:focus {
  top: 12px;
  color: var(--btn-ink);
}
[hidden] {
  display: none !important;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.wrap {
  width: 100%;
  max-width: calc(var(--maxw) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 650;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.brand:hover {
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 24px;
  height: 24px;
  flex: none;
  border-radius: 7px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}
.nav-links {
  display: flex;
  gap: 4px;
  list-style: none;
  margin-left: 8px;
}
.nav-links a,
.nav-menu-panel a {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
  font-weight: 500;
}
.nav-links a:hover,
.nav-menu-panel a:hover {
  color: var(--ink);
  background: var(--accent-soft);
  text-decoration: none;
}
.nav-links a[aria-current="page"] {
  color: var(--ink);
}
.nav-end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--ink);
  background: var(--accent-soft);
}
.theme-toggle svg {
  width: 17px;
  height: 17px;
}
.icon-sun {
  display: none !important;
}
:root[data-theme="dark"] .icon-sun {
  display: block !important;
}
:root[data-theme="dark"] .icon-moon {
  display: none !important;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun {
    display: block !important;
  }
  :root:not([data-theme="light"]) .icon-moon {
    display: none !important;
  }
}

.nav-menu {
  display: none;
  position: relative;
}
.nav-menu > summary {
  list-style: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: var(--ink);
  cursor: pointer;
}
.nav-menu > summary::-webkit-details-marker {
  display: none;
}
.nav-menu > summary:hover {
  background: var(--accent-soft);
}
.nav-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 200px;
  padding: 6px;
  list-style: none;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.nav-menu-panel a {
  display: block;
  padding: 9px 12px;
}
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: var(--ink-2);
  box-shadow: 0 0 0 1px var(--line-2);
}
.avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grad);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 650;
}

/* ---------- Buttons ---------- */

.btn {
  --h: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 16px;
  border-radius: 10px;
  border: 0;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  transition:
    transform 0.18s var(--ease),
    box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.btn-sm {
  --h: 34px;
  padding: 0 12px;
  font-size: 0.875rem;
  border-radius: 9px;
}
.btn-lg {
  --h: 46px;
  padding: 0 20px;
  font-size: 1rem;
  border-radius: 11px;
}
.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: var(--btn-shadow);
}
.btn-primary:hover {
  background: var(--btn-bg-hover);
  color: var(--btn-ink);
  transform: translateY(-1px);
  box-shadow: var(--btn-shadow-hover);
}
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 1px 2px rgba(16, 24, 40, 0.06);
}
.btn-secondary:hover {
  color: var(--ink);
  transform: translateY(-1px);
  box-shadow: var(--hi), 0 0 0 1px var(--line-strong), 0 6px 14px -6px rgba(16, 24, 40, 0.18);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--accent-soft);
  color: var(--ink);
}
/* The one irreversible action (Account tab, "Delete account"). */
.btn-danger {
  background: var(--surface);
  color: var(--block);
  box-shadow: var(--hi), 0 0 0 1px var(--block-line), 0 1px 2px rgba(16, 24, 40, 0.06);
}
.btn-danger:hover {
  background: var(--block-bg);
  color: var(--block);
}
.btn .arrow {
  transition: transform 0.18s var(--ease);
}
.btn:hover .arrow {
  transform: translateX(2px);
}
.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.link-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  cursor: pointer;
}
.link-btn:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Common bits ---------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--accent);
}
.kicker-num {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
}
.lead {
  font-size: 1.1875rem;
  line-height: 1.55;
  color: var(--muted);
  letter-spacing: -0.008em;
}
.small {
  font-size: 0.875rem;
}
.xsmall {
  font-size: 0.8125rem;
}
.muted {
  color: var(--muted);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 560;
  letter-spacing: 0.01em;
  color: var(--muted);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}
.tag-accent {
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}

.panel {
  position: relative;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--hi), var(--shadow-panel);
}
.panel-pad {
  padding: 24px;
}
.lift {
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}
.lift:hover {
  transform: translateY(-3px);
  box-shadow: var(--hi), var(--shadow-lift);
}

/* Gradient edge: a 1px gradient border plus a faint glow underneath. */
.edge {
  isolation: isolate;
}
.edge::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--grad);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  opacity: 0.85;
  pointer-events: none;
  z-index: 2;
}
.edge::after {
  content: "";
  position: absolute;
  inset: 12% 6% -4%;
  border-radius: inherit;
  background: var(--grad-soft);
  filter: blur(56px);
  opacity: var(--edge-glow);
  z-index: -1;
  pointer-events: none;
}

/* Verdict badges and plan chips */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: lowercase;
  white-space: nowrap;
}
.badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.badge-lg {
  height: 30px;
  padding: 0 12px;
  font-size: 0.875rem;
  border-radius: 8px;
}
.v-allow {
  color: var(--allow);
  background: var(--allow-bg);
  box-shadow: inset 0 0 0 1px var(--allow-line);
}
.v-challenge {
  color: var(--challenge);
  background: var(--challenge-bg);
  box-shadow: inset 0 0 0 1px var(--challenge-line);
}
.v-block {
  color: var(--block);
  background: var(--block-bg);
  box-shadow: inset 0 0 0 1px var(--block-line);
}
.plan {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--muted);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.plan-free {
  color: var(--allow);
  background: var(--allow-bg);
  box-shadow: inset 0 0 0 1px var(--allow-line);
}
.plan-starter {
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.plan-pro {
  color: #fff;
  background: linear-gradient(115deg, #5b54e8, #9a4fe6);
  box-shadow: none;
}
.plan-planned {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  border: 1px dashed var(--line-strong);
}

/* ---------- Sections ---------- */

.section {
  position: relative;
  padding-block: 112px;
}
.section + .section {
  border-top: 1px solid var(--line);
}
.section-tint {
  background:
    radial-gradient(70% 60% at 50% 0%, var(--band-glow), transparent 70%),
    var(--bg-tint);
}
.section-head {
  max-width: 680px;
  display: grid;
  gap: 14px;
  margin-bottom: 56px;
}
.section-head.center {
  margin-inline: auto;
  text-align: center;
  justify-items: center;
}
.section-head h2 {
  font-size: clamp(1.875rem, 1.2rem + 2.4vw, 2.75rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 650;
}
.section-head p {
  font-size: 1.0625rem;
  color: var(--muted);
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: 72px;
  padding-bottom: 24px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(55% 45% at 50% 0%, var(--glow-a), transparent 72%),
    radial-gradient(30% 30% at 84% 18%, var(--glow-b), transparent 72%),
    radial-gradient(30% 28% at 14% 26%, var(--glow-c), transparent 72%);
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 60% 52% at 50% 24%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 52% at 50% 24%, #000 20%, transparent 72%);
}
.hero-inner {
  position: relative;
  display: grid;
  justify-items: center;
  text-align: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 14px 5px 6px;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-2);
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(16, 24, 40, 0.08);
  transition: box-shadow 0.2s var(--ease);
}
.eyebrow:hover {
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--hi), 0 0 0 1px var(--accent-line), 0 6px 14px -6px rgba(79, 70, 229, 0.3);
}
.eyebrow .tag {
  height: 22px;
  border-radius: 999px;
}
.eyebrow .arrow {
  color: var(--faint-ink);
}
.hero h1 {
  margin-top: 24px;
  max-width: 14.5em;
  font-size: clamp(2.5rem, 1.1rem + 5.2vw, 4.5rem);
  font-weight: 680;
  letter-spacing: -0.045em;
  line-height: 1;
}
.hero h1 .soft {
  color: var(--hero-soft);
}
.hero .lead {
  margin-top: 24px;
  max-width: 40em;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}
.fineprint {
  margin-top: 18px;
  font-size: 0.875rem;
  color: var(--muted);
}
.nw {
  white-space: nowrap;
}
.fineprint .sep {
  margin-inline: 2px;
  color: var(--faint-ink);
}

/* ---------- Hero demo slot ---------- */

.demo-wrap {
  position: relative;
  margin-top: 56px;
}
.demo {
  position: relative;
  margin: 0 auto;
  max-width: 1040px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--hi), var(--shadow-float);
}
.demo-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--surface-2), var(--surface));
  border-radius: 18px 18px 0 0;
}
.chrome-dots {
  display: flex;
  gap: 6px;
}
.chrome-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.demo-title {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.demo-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px minmax(0, 1.25fr);
  align-items: stretch;
  padding: 28px;
  gap: 0;
}
.demo-card {
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  padding: 20px;
  text-align: left;
}
.demo-card-verdict {
  background: var(--surface);
  box-shadow: var(--hi), var(--shadow-panel);
}
.step-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.step-label .n {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.kv {
  margin: 0;
  display: grid;
  gap: 10px;
}
.kv div {
  display: grid;
  gap: 2px;
}
.kv dt {
  font-size: 0.75rem;
  color: var(--muted);
}
.kv dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.demo-card:first-child {
  display: flex;
  flex-direction: column;
}
.demo-wait {
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}
.demo-link {
  position: relative;
  display: grid;
  place-items: center;
}
.demo-link::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, var(--line-2), var(--accent-line), var(--line-2));
}
.demo-link::after {
  content: "";
  position: absolute;
  top: calc(50% - 1px);
  left: 0;
  width: 40px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: travel 2.4s var(--ease) infinite;
}
@keyframes travel {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    transform: translateX(110px);
    opacity: 0;
  }
}
.checking {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--accent-line), 0 4px 12px -4px rgba(79, 70, 229, 0.3);
}
.pulse {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.pulse::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 1.6s ease-out infinite;
}
@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.55;
  }
  100% {
    transform: scale(3.2);
    opacity: 0;
  }
}
.verdict-head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.score {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--muted);
}
.score strong {
  color: var(--ink);
  font-weight: 600;
}
.reasons-mini {
  list-style: none;
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.reasons-mini li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: start;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.reasons-mini code {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.reasons-mini .detail {
  grid-column: 1;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}
.reasons-mini .plan {
  grid-column: 2;
  grid-row: 1;
}
.demo-outcome {
  margin-top: 16px;
  padding: 10px 12px;
  border-radius: 9px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
  color: var(--ink-2);
  line-height: 1.45;
}
.demo-caption {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Problem ---------- */

.tells {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.tell {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}
.tell-sample {
  padding: 18px 20px;
  min-height: 100px;
  display: grid;
  align-content: center;
  gap: 6px;
  background:
    radial-gradient(var(--dot) 1px, transparent 1.2px) 0 0 / 14px 14px,
    var(--surface-2);
  border-bottom: 1px solid var(--line);
  border-radius: var(--radius) var(--radius) 0 0;
}
.tell-sample code {
  justify-self: start;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 1px 2px rgba(16, 24, 40, 0.05);
  color: var(--ink);
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.tell-sample .mark {
  color: var(--block);
  font-weight: 600;
}
.tell-sample .to {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.tell-body {
  padding: 20px;
  display: grid;
  gap: 8px;
  align-content: start;
  flex: 1;
}
.tell h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.tell p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.55;
}
.tell-codes {
  padding: 12px 20px 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
}
.tell-codes code {
  font-size: 0.75rem;
  color: var(--muted);
}
.cost-line {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  padding: 16px 20px;
  border-radius: 12px;
  text-align: center;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink-2);
  font-size: 0.9375rem;
}
.cost-line .eq {
  font-family: var(--mono);
  font-size: 0.875rem;
  color: var(--ink);
}
.cost-line .op {
  color: var(--faint-ink);
}

/* ---------- Checker ---------- */

.checker-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}
.checker-intro .section-head {
  margin-bottom: 28px;
}
.form {
  padding: 24px;
  display: grid;
  gap: 18px;
}
/* A form inside a card body (the Account tab's "Change password") already has the card's padding. */
.card-body > form.form {
  padding: 0;
}
.field {
  display: grid;
  gap: 6px;
}
.field label,
.label {
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--ink);
}
.field .opt {
  font-weight: 400;
  color: var(--muted);
}
/* Text fields use .input. A bare input, select or textarea inside .field gets the same look as a fallback (the
   :where() list adds no specificity, so any .input rule still wins). */
.input,
select.input,
:where(.field > input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"], [type="range"], [type="color"], [type="image"]), .field > select, .field > textarea) {
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2), 0 1px 2px rgba(16, 24, 40, 0.05) inset;
  transition: box-shadow 0.15s var(--ease);
}
.input.mono {
  font-family: var(--mono);
  font-size: 0.875rem;
}
.input::placeholder,
:where(.field > input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"], [type="range"], [type="color"], [type="image"]), .field > select, .field > textarea)::placeholder {
  color: var(--placeholder);
}
.input:hover,
:where(.field > input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"], [type="range"], [type="color"], [type="image"]), .field > select, .field > textarea):hover {
  box-shadow: 0 0 0 1px var(--line-strong);
}
.input:focus,
.input:focus-visible,
:where(.field > input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"], [type="range"], [type="color"], [type="image"]), .field > select, .field > textarea):focus,
:where(.field > input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"], [type="range"], [type="color"], [type="image"]), .field > select, .field > textarea):focus-visible {
  outline: none;
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft), 0 0 0 5px var(--accent-line);
}
select.input,
:where(.field > select) {
  appearance: none;
  padding-right: 34px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent
    50%);
  background-position:
    calc(100% - 17px) 18px,
    calc(100% - 12px) 18px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
/* Forced colours (Windows High Contrast) drop box-shadow, which is the fields' only edge and focus ring. */
@media (forced-colors: active) {
  .input,
  :where(.field > input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"], [type="range"], [type="color"], [type="image"]), .field > select, .field > textarea) {
    border: 1px solid CanvasText;
  }
  .input:focus-visible,
  :where(.field > input:not([type="checkbox"], [type="radio"], [type="hidden"], [type="submit"], [type="button"], [type="reset"], [type="file"], [type="range"], [type="color"], [type="image"]), .field > select, .field > textarea):focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
}
.form .btn {
  justify-self: start;
}
.form-note {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}

.result {
  padding: 28px;
}
.result-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.result-verdict {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-top: 18px;
}
.result-verdict h3 {
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}
.result-verdict .score-big {
  font-family: var(--mono);
  font-size: 0.9375rem;
  color: var(--muted);
}
.result-verdict .score-big strong {
  color: var(--ink);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.result .verdict-text {
  margin-top: 6px;
  color: var(--muted);
}
.meter {
  position: relative;
  margin-top: 20px;
  margin-bottom: 26px;
  height: 6px;
  border-radius: 6px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
/* The fill is an SVG rect whose width attribute is the score (no inline style under the CSP); it grows in once
   with a transform, not a width transition. */
.meter-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 6px;
  overflow: hidden;
}
.meter-svg .meter-fill {
  fill: currentColor;
  transform-box: fill-box;
  transform-origin: left center;
  animation: fill-in 0.6s var(--out, ease-out) both;
}
@keyframes fill-in {
  from {
    transform: scaleX(0);
  }
}
.meter.v-allow {
  color: var(--allow);
}
.meter.v-challenge {
  color: var(--challenge);
}
.meter.v-block {
  color: var(--block);
}
.meter-tick.t40 {
  left: 40%;
}
.meter-tick.t70 {
  left: 70%;
}
.meter.v-allow,
.meter.v-challenge,
.meter.v-block {
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.meter-tick {
  position: absolute;
  top: -4px;
  bottom: -4px;
  width: 1px;
  background: var(--line-strong);
}
.meter-tick span {
  position: absolute;
  top: 16px;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.6875rem;
  color: var(--muted);
  white-space: nowrap;
}
.facts {
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.facts .k {
  color: var(--muted);
}
.reasons {
  width: 100%;
  margin-top: 20px;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.reasons th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 560;
  color: var(--muted);
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line-2);
}
.reasons td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.reasons th + th,
.reasons td + td {
  padding-left: 16px;
}
.reasons td.num,
.reasons th.num {
  text-align: right;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.reasons code {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}
.reasons .detail {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8125rem;
}
.result-foot {
  margin-top: 18px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.mock-note {
  margin-top: 12px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.result.is-checking .result-body {
  opacity: 0.35;
  filter: blur(1px);
  transition:
    opacity 0.2s,
    filter 0.2s;
}
.result-body {
  transition:
    opacity 0.3s,
    filter 0.3s;
}

/* ---------- Install ---------- */

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.steps {
  list-style: none;
  display: grid;
  gap: 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0 18px;
  padding-bottom: 32px;
}
.steps > li:last-child {
  padding-bottom: 0;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(16, 24, 40, 0.1);
}
.steps > li::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 44px;
  bottom: 8px;
  width: 1px;
  background: linear-gradient(var(--line-strong), var(--line));
}
.steps > li:last-child::after {
  display: none;
}
.steps h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  padding-top: 5px;
}
.steps p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}
.path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-top: 10px;
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--ink);
}
.path span {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.path span:last-child {
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.path i {
  font-style: normal;
  color: var(--faint-ink);
}

.screen {
  overflow: hidden;
}
.screen-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-2);
}
.screen-crumbs {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.screen-crumbs b {
  color: var(--ink);
  font-weight: 560;
}
.screen-body {
  padding: 24px;
  display: grid;
  gap: 18px;
}
.screen-title {
  font-size: 1rem;
  font-weight: 620;
  color: var(--ink);
  letter-spacing: -0.015em;
}
.screen-sub {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-top: 2px;
}
.seg {
  justify-self: start;
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 9px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.seg span,
.seg label {
  padding: 5px 12px;
  border-radius: 7px;
  font-size: 0.8125rem;
  font-weight: 540;
  color: var(--muted);
}
.seg .on {
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 1px 2px rgba(16, 24, 40, 0.08);
}
.fake-input {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 9px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line-2);
  overflow-wrap: anywhere;
}
.fake-input.pasted {
  box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--accent-soft);
}
.pasted-flag {
  position: absolute;
  right: 8px;
  top: -10px;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.6875rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(115deg, #5b54e8, #9a4fe6);
  box-shadow: 0 2px 6px -1px rgba(79, 70, 229, 0.45);
}
.screen-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.screen-note {
  margin-top: 14px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

.stacks {
  margin-top: 72px;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 56px;
  align-items: center;
}
.stacks h3 {
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.stacks p {
  margin-top: 8px;
  color: var(--muted);
}
.stack-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.stack-list li {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 520;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2);
}
.code {
  margin: 0;
  padding: 20px 22px;
  border-radius: var(--radius);
  background: var(--code-bg);
  color: #d5d9e4;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow:
    0 0 0 1px var(--code-ring) inset,
    var(--shadow-panel);
}
.code .c {
  color: #7d8497;
}
.code .k {
  color: #a5b4fc;
}
.code .s {
  color: #86efac;
}
.code .n {
  color: #fcd34d;
}
.code .r {
  color: #fda4af;
}

/* ---------- Safe ---------- */

.safe {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.safe-card {
  padding: 28px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.safe-card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.safe-card p {
  color: var(--muted);
  font-size: 0.9375rem;
}
.safe-visual {
  height: 76px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.icon-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: var(--accent);
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 4px 10px -4px rgba(16, 24, 40, 0.12);
}
.icon-tile svg {
  width: 22px;
  height: 22px;
}
.mini-log {
  display: grid;
  gap: 6px;
  width: 100%;
}
.mini-log div {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.mini-log .badge {
  height: 20px;
  font-size: 0.6875rem;
  padding: 0 6px;
}
.flow {
  display: grid;
  gap: 8px;
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--muted);
}
.flow-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.flow .badge {
  height: 20px;
  font-size: 0.6875rem;
  padding: 0 6px;
}
.flow .node {
  padding: 5px 8px;
  border-radius: 7px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink);
}
.flow .node.dim {
  color: var(--muted);
  background: transparent;
  box-shadow: none;
  outline: 1px dashed var(--line-strong);
  outline-offset: -1px;
}
.stored {
  display: grid;
  gap: 5px;
  font-family: var(--mono);
  font-size: 0.75rem;
  width: 100%;
}
.stored div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 5px;
  border-bottom: 1px dashed var(--line-2);
}
.stored .k {
  color: var(--muted);
}
.stored .v {
  color: var(--ink);
}
.stored .x {
  color: var(--faint-ink);
  text-decoration: line-through;
}

/* ---------- Catches + data ---------- */

.data-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--hi), var(--shadow-panel);
  margin-bottom: 20px;
}
.stat {
  padding: 26px 24px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.stat + .stat {
  border-left: 1px solid var(--line);
}
.stat-num {
  font-size: 2.125rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.stat-num .unit {
  font-size: 1rem;
  font-weight: 560;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin-left: 4px;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.45;
}
.spec-row {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px 40px;
  padding: 28px;
}
.spec-row + .spec-row {
  border-top: 1px solid var(--line);
}
.spec-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: start;
  gap: 8px 10px;
}
.spec-head h3 {
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
}
.spec-head p {
  flex-basis: 100%;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.codes {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 32px;
}
.codes li {
  display: grid;
  gap: 3px;
  align-content: start;
}
.codes code {
  color: var(--ink);
  font-weight: 500;
  font-size: 0.8125rem;
}
.codes span {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}
.codes .planned code {
  color: var(--muted);
}
.data-source {
  margin-top: 24px;
  font-size: 0.8125rem;
  color: var(--muted);
  text-align: center;
}

/* ---------- Pricing ---------- */

.price-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  max-width: 880px;
  margin-inline: auto;
}
.plan-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.plan-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.plan-card h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--ink);
}
.price b {
  font-size: 2.75rem;
  font-weight: 660;
  letter-spacing: -0.05em;
  line-height: 1;
}
.price span {
  color: var(--muted);
  font-size: 0.9375rem;
}
.plan-meta {
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.ticks {
  list-style: none;
  display: grid;
  gap: 9px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.ticks li {
  position: relative;
  padding-left: 26px;
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.ticks li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 6px;
  height: 4px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.ticks li.planned::before {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.ticks li.planned::after {
  border-color: var(--faint);
}
.ticks li.planned {
  color: var(--muted);
}
.plan-card .btn {
  margin-top: auto;
}
.terms {
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--muted);
  padding: 12px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
}
.price-foot {
  margin-top: 28px;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}

/* ---------- Closing CTA ---------- */

.closing {
  position: relative;
  padding: 72px 40px;
  border-radius: 22px;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 50% 0%, var(--glow-a), transparent 70%),
    radial-gradient(40% 60% at 90% 100%, var(--glow-b), transparent 70%),
    var(--surface);
  box-shadow: var(--hi), var(--shadow-float);
}
.closing::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--dot) 1px, transparent 1.2px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 50% 70% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 70% at 50% 0%, #000, transparent 75%);
}
.closing > * {
  position: relative;
  z-index: 1;
}
.closing h2 {
  font-size: clamp(1.875rem, 1.1rem + 2.8vw, 3rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 660;
  max-width: 16em;
  margin-inline: auto;
}
.closing p {
  margin: 16px auto 0;
  max-width: 34em;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 112px;
  border-top: 1px solid var(--line);
  background: var(--bg-tint);
  padding-block: 56px 64px;
  font-size: 0.875rem;
  color: var(--muted);
}
/* Laid out like DomainCanary's footer (#61): the brand column, then one column per link group. */
.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr));
  gap: 36px 40px;
  align-items: start;
}
.foot-tagline {
  margin-top: 14px;
  max-width: 32ch;
  line-height: 1.6;
}
.foot-contact {
  margin-top: 14px;
}
.foot-social {
  margin-top: 14px;
  display: flex;
  gap: 14px;
}
.foot-social a {
  display: inline-flex;
  color: var(--muted);
}
.foot-social a:hover {
  color: var(--ink);
}
.foot-contact a,
.foot-links a {
  color: var(--muted);
}
.foot-contact a:hover,
.foot-links a:hover {
  color: var(--ink);
}
.foot-head {
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.foot-links {
  list-style: none;
  display: grid;
  gap: 12px;
}
@media (max-width: 860px) {
  .foot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 600px) {
  .foot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 380px) {
  .foot-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.foot-note {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
}

/* ---------- Pricing page ---------- */

.page-head {
  position: relative;
  padding-top: 80px;
  padding-bottom: 56px;
  overflow: hidden;
}
.page-head h1 {
  font-size: clamp(2.25rem, 1.2rem + 3.6vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  font-weight: 680;
}
.page-head .lead {
  margin-top: 18px;
  max-width: 36em;
}
.plans4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}
.plans4 .plan-card {
  padding: 24px;
  gap: 16px;
}
.plans4 .price b {
  font-size: 2.25rem;
}
.plan-card.is-planned {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.plan-card.is-planned .price b {
  color: var(--muted);
}
.plan-unavail {
  margin-top: auto;
  min-height: 40px;
  padding: 8px 12px;
  display: grid;
  place-items: center;
  text-align: center;
  line-height: 1.4;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--muted);
  box-shadow: inset 0 0 0 1px var(--line-2);
  background-image: repeating-linear-gradient(-45deg, transparent 0 6px, var(--line) 6px 7px);
}
.plan-terms {
  margin-top: 48px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  padding: 36px;
}
.plan-terms h2 {
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}
.plan-terms p {
  margin-top: 12px;
  color: var(--ink-2);
}
.term-list {
  list-style: none;
  display: grid;
  gap: 0;
  align-content: center;
}
.term-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.term-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.term-list .n {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--accent);
  padding-top: 2px;
}
.compare-wrap {
  margin-top: 64px;
}
.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
}
.compare {
  width: 100%;
  min-width: 640px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9375rem;
}
.compare th,
.compare td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.compare thead th {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-2);
}
.compare tbody th {
  font-weight: 500;
  color: var(--ink);
}
.compare tbody th small {
  display: block;
  font-weight: 400;
  color: var(--muted);
  font-size: 0.8125rem;
}
.compare td {
  color: var(--ink-2);
}
.compare tr:last-child th,
.compare tr:last-child td {
  border-bottom: 0;
}
.compare .col-pro {
  background: var(--accent-soft);
}
.yes {
  color: var(--allow);
  font-weight: 560;
}
.no {
  color: var(--muted);
}
.part {
  color: var(--muted);
  font-size: 0.875rem;
}
.notes-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.note-card {
  padding: 24px;
}
.note-card h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.note-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* ---------- Dashboard ---------- */

.app-head {
  padding-top: 40px;
  padding-bottom: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
}
.crumbs {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.crumbs a {
  color: var(--muted);
}
.app-title {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.app-title h1 {
  font-size: 1.875rem;
  letter-spacing: -0.035em;
  font-weight: 660;
}
.mode-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.mode-pill .pulse {
  width: 6px;
  height: 6px;
}
.app-head-side {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  flex-wrap: wrap;
  padding: 14px 16px 14px 18px;
  border-radius: 12px;
  background: linear-gradient(90deg, var(--accent-soft), transparent 80%), var(--surface);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.banner strong {
  color: var(--ink);
  font-weight: 600;
}
.dash-grid {
  margin-top: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}
.dash-main,
.dash-side {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  flex-wrap: wrap;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.card-head h2 {
  font-size: 1rem;
  letter-spacing: -0.015em;
  font-weight: 620;
}
.card-body {
  padding: 22px;
}
.tiles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.tile {
  padding: 20px 22px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.tile + .tile {
  border-left: 1px solid var(--line);
}
.tile-label {
  font-size: 0.8125rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.tile-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.tile-num {
  font-size: 1.75rem;
  font-weight: 640;
  letter-spacing: -0.04em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.tile-sub {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
}
.usage {
  padding: 16px 22px 20px;
  border-top: 1px solid var(--line);
}
.usage-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 8px;
}
.usage-row b {
  color: var(--ink);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.bar {
  height: 6px;
  border-radius: 6px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.bar i {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--grad);
}
.notice {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.875rem;
  color: var(--ink-2);
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.notice-accent {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.saved {
  padding: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 24px;
}
.saved-big {
  font-size: 2.75rem;
  font-weight: 660;
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.saved-big small {
  font-size: 1rem;
  font-weight: 520;
  letter-spacing: -0.01em;
  color: var(--muted);
  margin-right: 6px;
}
.formula {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
}
.formula span {
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.formula i {
  font-style: normal;
  color: var(--faint-ink);
}
.saved-side {
  display: grid;
  gap: 12px;
  align-content: start;
  font-size: 0.875rem;
  color: var(--muted);
}
.saved-side .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.saved-side .row b {
  color: var(--ink);
  font-weight: 560;
  font-variant-numeric: tabular-nums;
}
.log {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.log th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 560;
  color: var(--muted);
  padding: 10px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.log td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-2);
}
.log tr:last-child td {
  border-bottom: 0;
}
.log tbody tr {
  transition: background-color 0.15s;
}
.log tbody tr:hover {
  background: var(--surface-2);
}
.log th:first-child,
.log td:first-child {
  padding-left: 22px;
}
.log th:last-child,
.log td:last-child {
  padding-right: 22px;
}
.log .when {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
  white-space: nowrap;
}
.log .sub {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}
.log .dom {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
}
.log .why {
  display: grid;
  gap: 4px;
  font-size: 0.8125rem;
}
.log .why code {
  color: var(--ink);
}
.log .why .shadow {
  color: var(--muted);
}
.log .verdict-cell {
  white-space: nowrap;
}
.log .verdict-cell .score {
  margin-left: 6px;
  font-size: 0.8125rem;
}
.copy-field {
  display: grid;
  gap: 6px;
}
.copy-field + .copy-field {
  margin-top: 14px;
}
.copy-row {
  display: flex;
  gap: 6px;
}
.copy-row .input {
  min-width: 0;
  flex: 1;
  height: 38px;
  font-family: var(--mono);
  font-size: 0.8125rem;
  background: var(--surface-2);
}
.copy-btn {
  flex: none;
  min-width: 64px;
}
.copy-btn.copied {
  color: var(--allow);
}
/* Dashboard, Integration tab: a prompt to copy into an AI assistant. */
.prompt-box {
  display: grid;
  gap: 6px;
}
.prompt-box textarea.input {
  min-height: 140px;
  background: var(--surface-2);
}
.prompt-box .copy-btn {
  justify-self: start;
}
.mini-steps {
  margin-top: 18px;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.mini-steps li::marker {
  color: var(--faint-ink);
  font-family: var(--mono);
  font-size: 0.8125rem;
}
details.more {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
details.more summary {
  cursor: pointer;
  font-size: 0.875rem;
  font-weight: 540;
  color: var(--ink);
}
details.more[open] summary {
  margin-bottom: 12px;
}
.radio-cards {
  display: grid;
  gap: 8px;
}
.radio-card {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--line-2);
  transition:
    box-shadow 0.15s,
    background-color 0.15s;
}
.radio-card:hover {
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.radio-card:has(input:checked) {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent);
}
.radio-card:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.radio-card input {
  margin: 3px 0 0;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}
.radio-card input:focus-visible {
  outline: none;
}
.radio-card b {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
}
.radio-card span {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.45;
}
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  padding: 0;
  margin-bottom: 8px;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--ink);
}
.stack {
  display: grid;
  gap: 18px;
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.plain-list {
  list-style: none;
  display: grid;
  gap: 0;
}
.plain-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 0.875rem;
}
.plain-list li:first-child {
  border-top: 0;
  padding-top: 0;
}
.plain-list code {
  color: var(--ink);
}
.plain-list .link-btn {
  margin-left: auto;
  font-size: 0.8125rem;
}
.act {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 600;
}
.act-allow {
  color: var(--allow);
  background: var(--allow-bg);
}
.act-block {
  color: var(--block);
  background: var(--block-bg);
}
.billing-box {
  position: relative;
  padding: 20px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--hi), var(--shadow-panel);
}
.billing-box h3 {
  font-size: 1rem;
  letter-spacing: -0.015em;
}
.billing-box p {
  margin-top: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.5;
}
.billing-box .btn {
  margin-top: 14px;
  width: 100%;
}
.example-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Reveal motion ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.8s var(--ease),
    transform 0.8s var(--ease);
  transition-delay: var(--d, 0ms);
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* Above-the-fold entrance: pure CSS, so the hero never waits on JavaScript. */
.rise {
  animation: rise 0.9s var(--ease) both;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- Responsive ---------- */

@media (max-width: 1040px) {
  .tells {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plans4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}

@media (max-width: 860px) {
  .section {
    padding-block: 80px;
  }
  .checker-grid,
  .install-grid,
  .stacks,
  .plan-terms {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .safe {
    grid-template-columns: minmax(0, 1fr);
  }
  .spec-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .data-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .stat:nth-child(3) {
    border-left: 0;
  }
  .stat:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .demo-body {
    grid-template-columns: minmax(0, 1fr);
    padding: 16px;
  }
  .demo-link {
    height: 64px;
  }
  .demo-link::before {
    left: 50%;
    right: auto;
    top: 0;
    bottom: 0;
    width: 1px;
    height: auto;
    background: linear-gradient(var(--line-2), var(--accent-line), var(--line-2));
  }
  .demo-link::after {
    display: none;
  }
  .tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tile:nth-child(3) {
    border-left: 0;
  }
  .tile:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
  .saved {
    grid-template-columns: minmax(0, 1fr);
  }
  .dash-side {
    grid-template-columns: minmax(0, 1fr);
  }
  .notes-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
  .nav-menu {
    display: block;
  }
  .nav {
    gap: 12px;
  }
  .account-chip .email {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 16px;
  }
  .section {
    padding-block: 64px;
  }
  .section-head {
    margin-bottom: 36px;
  }
  .hero {
    padding-top: 48px;
    padding-bottom: 64px;
  }
  .hero h1 {
    margin-top: 22px;
    letter-spacing: -0.04em;
  }
  .hero .lead,
  .lead {
    font-size: 1.0625rem;
  }
  .eyebrow {
    font-size: 0.8125rem;
    text-align: left;
  }
  .cta-row {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  .demo-wrap {
    margin-top: 48px;
  }
  .demo-chrome .chrome-dots {
    display: none;
  }
  .demo-title {
    text-align: left;
  }
  .tells,
  .plans4,
  .price-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .data-band {
    grid-template-columns: minmax(0, 1fr);
  }
  .stat + .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .result,
  .form,
  .plan-card,
  .safe-card,
  .spec-row,
  .plan-terms {
    padding: 20px;
  }
  .codes {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
  .closing {
    padding: 48px 20px;
    border-radius: 18px;
  }
  .closing .cta-row {
    flex-direction: column;
  }
  .code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    padding: 16px;
  }
  .site-footer {
    margin-top: 64px;
  }
  .nav-end .btn-primary {
    padding: 0 10px;
  }
  .brand span {
    font-size: 0.9375rem;
  }
  .tiles {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .tile {
    padding: 16px;
  }
  .tile-num {
    font-size: 1.5rem;
  }
  .card-head,
  .card-body {
    padding-left: 16px;
    padding-right: 16px;
  }
  .saved {
    padding: 18px 16px;
  }
  .saved-big {
    font-size: 2.25rem;
  }
  .field-row {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Recent checks become stacked rows instead of a wide table. */
  .log thead {
    display: none;
  }
  .log,
  .log tbody,
  .log tr,
  .log td {
    display: block;
    width: 100%;
  }
  .log tr {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  .log tr:last-child {
    border-bottom: 0;
  }
  .log td,
  .log td:first-child,
  .log td:last-child {
    padding: 3px 0;
    border: 0;
  }
  .log td[data-label]::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 64px;
    margin-right: 8px;
    font-size: 0.75rem;
    color: var(--muted);
    font-family: var(--font);
  }
  .log .why {
    margin-top: 6px;
  }
  .meter-tick span {
    font-size: 0.625rem;
  }
  .reasons th + th,
  .reasons td + td {
    padding-left: 10px;
  }
}

@media (max-width: 380px) {
  .brand-mark {
    width: 22px;
    height: 22px;
  }
  .nav-end {
    gap: 4px;
  }
  .theme-toggle {
    width: 30px;
  }
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
  .lift:hover,
  .btn:hover {
    transform: none;
  }
}

/* ---------- Small additions ---------- */

.h3-like {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.fill {
  font-family: var(--mono);
  font-size: 0.8125rem;
  padding: 1px 6px;
  border-radius: 5px;
  color: var(--challenge);
  background: var(--challenge-bg);
  box-shadow: inset 0 0 0 1px var(--challenge-line);
}
.compare thead .plan {
  margin-left: 6px;
  vertical-align: 1px;
}
.ov-form {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr) 160px auto;
  gap: 12px;
  align-items: end;
}
.ov-form .btn {
  height: 42px;
}
.tile-label {
  display: block;
}
.tile-dot {
  display: inline-block;
  margin-right: 6px;
  vertical-align: 1px;
}
@media (max-width: 640px) {
  .ov-form {
    grid-template-columns: minmax(0, 1fr);
  }
  .ov-form .btn {
    justify-self: start;
  }
}
.acct {
  margin-top: 20px;
}
.acct-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 28px;
  padding: 22px;
  align-items: start;
}
.acct-grid .billing-box .btn {
  width: auto;
}
@media (max-width: 860px) {
  .acct-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 640px) {
  .acct-grid {
    padding: 16px;
  }
  .acct-grid .billing-box .btn {
    width: 100%;
  }
}
@media (min-width: 1041px) {
  .tile-label {
    min-height: 42px;
  }
}
.swipe-hint {
  display: none;
  margin-bottom: 10px;
}
@media (max-width: 700px) {
  .swipe-hint {
    display: block;
  }
}

/* ======================================================================
   Round 3 "Story": motion and structure that tell the product's story.
   Every animated state below is gated on a class that site.js adds only
   when motion is allowed (.is-animated, .is-live, .js ... :not(.in)), so
   without JS or under prefers-reduced-motion the markup's final state shows.
   ====================================================================== */

:root {
  /* Ease-out with no overshoot (the prototype's bounce curve was flagged by Impeccable). */
  --spring: cubic-bezier(0.22, 1, 0.36, 1);
  --out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Hero demo: four stages in one window ---------- */

.demo-body {
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1fr) minmax(0, 1.32fr);
  gap: 28px;
  padding: 24px 24px 20px;
  align-items: stretch;
}
.demo-card {
  position: relative;
  transition:
    box-shadow 0.4s var(--ease),
    background-color 0.4s var(--ease);
}
/* Connectors between the three cards; one lights up as the signup passes. */
.d-checks::before,
.d-verdict::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -24px;
  width: 20px;
  height: 1px;
  background: var(--line-2);
  transition:
    background-color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.d-checks::after,
.d-verdict::after {
  content: "";
  position: absolute;
  top: calc(50% - 3px);
  left: -9px;
  width: 6px;
  height: 7px;
  background: var(--line-strong);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.demo.is-animated .demo-card.is-flow::before {
  background: var(--accent);
  box-shadow: 0 0 8px 1px var(--accent-line);
}
.demo.is-animated .demo-card.is-now {
  box-shadow: var(--hi), 0 0 0 1px var(--accent-line), 0 8px 24px -12px rgba(79, 70, 229, 0.35);
}
.demo.is-animated .d-signup.is-now {
  background: var(--surface);
}
.step-label .n {
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.demo.is-animated .is-now > .step-label .n,
.demo.is-animated .demo-dash.is-now .step-label .n {
  color: var(--on-accent);
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Signup fields: appear, then the value types in. */
.kv-row {
  transition:
    opacity 0.35s var(--ease),
    transform 0.35s var(--ease);
}
.demo.is-animated .kv-row:not(.on),
.demo.is-animated .demo-wait:not(.on) {
  opacity: 0;
  transform: translateY(5px);
}
.demo-wait {
  transition: opacity 0.4s var(--ease);
}
.kv-row.typing dd::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 1em;
  margin-left: 1px;
  vertical-align: -0.12em;
  background: var(--accent);
}

/* Check list: idle -> scan -> pass | hit */
.checks {
  list-style: none;
  display: grid;
  gap: 2px;
  margin: -4px -8px 0;
}
.chk {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 1px 10px;
  align-items: start;
  padding: 8px;
  border-radius: 9px;
  transition: background-color 0.3s var(--ease);
}
.chk-ico {
  grid-row: 1 / span 2;
  position: relative;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition:
    box-shadow 0.25s var(--ease),
    background-color 0.25s var(--ease);
}
.chk-ico::before,
.chk-ico::after {
  content: "";
  position: absolute;
  opacity: 0;
  transition:
    opacity 0.25s var(--ease),
    transform 0.3s var(--spring);
}
.chk-name {
  font-size: 0.8125rem;
  font-weight: 540;
  line-height: 1.45;
  color: var(--ink);
  transition: color 0.25s var(--ease);
}
.chk-out {
  font-family: var(--mono);
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--muted);
  transition:
    opacity 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.chk-out code {
  font-size: 1em;
  font-weight: 600;
}
.chk[data-state="idle"] .chk-name {
  color: var(--muted);
}
.chk[data-state="idle"] .chk-out,
.chk[data-state="scan"] .chk-out {
  opacity: 0;
  transform: translateY(-3px);
}
.chk[data-state="scan"] {
  background: var(--accent-soft);
}
.chk[data-state="scan"] .chk-ico {
  box-shadow: inset 0 0 0 1.5px var(--accent-line);
}
.chk[data-state="scan"] .chk-ico::before {
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: var(--accent);
  opacity: 1;
  animation: spin 0.7s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
/* pass: a quiet check mark */
.chk[data-state="pass"] .chk-ico {
  box-shadow: inset 0 0 0 1.5px var(--allow-line);
}
.chk[data-state="pass"] .chk-ico::after {
  left: 5px;
  top: 4.5px;
  width: 6px;
  height: 3.5px;
  border-left: 1.5px solid var(--allow);
  border-bottom: 1.5px solid var(--allow);
  transform: rotate(-45deg);
  opacity: 1;
}
/* hit: a filled dot in the verdict colour of that reason */
.chk[data-state="hit"] .chk-ico {
  background: var(--tone-bg);
  box-shadow: inset 0 0 0 1.5px var(--tone-line);
}
.chk[data-state="hit"] .chk-ico::after {
  left: 5px;
  top: 5px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--tone);
  opacity: 1;
}
.chk[data-state="hit"] .chk-out {
  color: var(--tone);
}
.chk[data-tone="block"] {
  --tone: var(--block);
  --tone-bg: var(--block-bg);
  --tone-line: var(--block-line);
}
.chk[data-tone="challenge"] {
  --tone: var(--challenge);
  --tone-bg: var(--challenge-bg);
  --tone-line: var(--challenge-line);
}
.chk[data-tone="info"] {
  --tone: var(--muted);
  --tone-bg: var(--surface-3);
  --tone-line: var(--line-strong);
}

/* Verdict: badge lands, meter fills, reasons stagger, outcome last. */
/* Fixed so the three examples never shift the page (measured: tallest example per width). */
.d-verdict {
  min-height: 352px;
}
@media (max-width: 1040px) {
  .d-verdict {
    min-height: 372px;
  }
}
.mini-meter {
  position: relative;
  height: 4px;
  margin-top: 14px;
  border-radius: 4px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.mini-meter[data-v="block"] {
  color: var(--block);
}
.mini-meter[data-v="challenge"] {
  color: var(--challenge);
}
.mini-meter[data-v="allow"] {
  color: var(--allow);
}
/* Full width, scaled by site.js with transform: scaleX(score / 100), not a width transition. */
.mm-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 100%;
  border-radius: 4px;
  background: currentColor;
  transform-origin: left center;
  transition: transform 0.6s var(--out);
}
.mm-tick.t40 {
  left: 40%;
}
.mm-tick.t70 {
  left: 70%;
}
.mm-tick {
  position: absolute;
  top: -3px;
  bottom: -3px;
  width: 1px;
  background: var(--line-strong);
}
.v-in,
.reasons-mini li,
.demo-outcome {
  transition:
    opacity 0.35s var(--ease),
    transform 0.45s var(--spring);
}
.demo.is-animated .v-in:not(.on),
.demo.is-animated .reasons-mini li:not(.on),
.demo.is-animated .demo-outcome:not(.on) {
  opacity: 0;
  transform: translateY(6px);
}
.demo.is-animated .verdict-head:not(.on) {
  transform: translateY(8px) scale(0.97);
}
.reasons-mini .none {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Dashboard strip: the counters that tick. */
.demo-dash {
  display: flex;
  align-items: center;
  gap: 16px 32px;
  padding: 16px 24px 18px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 18px 18px;
  text-align: left;
}
.demo-dash .step-label {
  margin: 0;
  flex-wrap: wrap;
}
.demo-dash .mode-pill {
  height: 22px;
  margin-left: 4px;
  font-size: 0.75rem;
  text-transform: none;
  letter-spacing: 0;
}
.dash-tiles {
  margin: 0 0 0 auto;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
}
.dt {
  display: grid;
  gap: 2px;
  padding: 2px 22px;
  border-left: 1px solid var(--line);
}
.dt dt {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
}
.dt dd {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 1.25rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.dt dd {
  flex-wrap: wrap;
}
.dt dd .roll,
.dt-formula {
  flex: none;
}
.dt dd small {
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.dt-formula {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
/* "+1" rises off the number that just changed. */
.dt dd::after {
  content: attr(data-plus);
  align-self: center;
  padding: 0 5px;
  border-radius: 5px;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 18px;
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
  opacity: 0;
  pointer-events: none;
}
.demo.is-animated .dt.is-bump dd::after {
  animation: plus 1s var(--out) both;
}
@keyframes plus {
  0% {
    opacity: 0;
    transform: translateY(8px);
  }
  25% {
    opacity: 1;
    transform: translateY(0);
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-6px);
  }
}
.demo.is-animated .dt.is-bump dd {
  color: var(--accent-ink);
}
.dt dd {
  transition: color 0.5s var(--ease);
}

/* Verdict skeleton while the checks run (only exists in the animated demo). */
.v-skel {
  position: absolute;
  left: 20px;
  right: 20px;
  top: 62px;
  display: grid;
  gap: 12px;
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.v-skel i {
  height: 10px;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 50%, var(--surface-3) 100%) 0 0 / 200% 100%;
  animation: shimmer 1.4s linear infinite;
}
.v-skel i:nth-child(1) {
  width: 42%;
  height: 22px;
  border-radius: 7px;
}
.v-skel i:nth-child(2) {
  width: 100%;
  height: 4px;
}
.v-skel i:nth-child(3) {
  width: 78%;
}
.v-skel i:nth-child(4) {
  width: 64%;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.demo.is-animated .v-skel.on {
  opacity: 1;
}

/* Number roll: two stacked values, the strip slides up one line. */
.roll {
  display: inline-block;
  height: 1.2em;
  line-height: 1.2;
  overflow: hidden;
  vertical-align: top;
}
.roll-in {
  display: flex;
  flex-direction: column;
  transition: transform 0.55s var(--out);
}
.roll-in > span {
  height: 1.2em;
}
.roll.is-ticked .roll-in {
  transform: translateY(-50%);
}
.roll.no-tr .roll-in {
  transition: none;
}

/* Demo controls: three examples, a progress line, pause. */
.demo-controls {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: 22px;
}
.demo-controls .demo-caption {
  margin-top: 0;
}
.demo-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(16, 24, 40, 0.08);
}
.demo-tab {
  position: relative;
  height: 32px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 540;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 0.2s var(--ease),
    background-color 0.2s var(--ease);
}
.demo-tab:hover {
  color: var(--ink);
}
.demo-tab[aria-pressed="true"] {
  color: var(--ink);
  background: var(--surface-3);
}
.demo-tab-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform-origin: left center;
  transform: scaleX(var(--p, 0));
  opacity: 0;
}
.demo-tab[aria-pressed="true"] .demo-tab-bar {
  opacity: 0.75;
}
.demo-pause {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 2px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.demo-pause:hover {
  color: var(--ink);
  background: var(--surface-3);
}
.demo-pause svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}
.demo-pause .i-play,
.demo-pause.is-paused .i-pause {
  display: none;
}
.demo-pause.is-paused .i-play {
  display: block;
}

/* ---------- Problem: the same log, without and with ---------- */

.ba {
  overflow: hidden;
}
.ba-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}
.ba-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 20px;
  padding: 12px 16px 12px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--surface-2), var(--surface));
  border-radius: var(--radius) var(--radius) 0 0;
}
.ba-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.ba-title code {
  color: var(--ink);
}
.ba-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 3px;
  border-radius: 10px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
}
.ba-switch label {
  position: relative;
  z-index: 1;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 560;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.25s var(--ease);
}
.ba-switch label:hover {
  color: var(--ink);
}
.ba-thumb {
  position: absolute;
  top: 3px;
  bottom: 3px;
  left: 3px;
  width: calc(50% - 3px);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 1px 3px rgba(16, 24, 40, 0.1);
  transition:
    transform 0.4s var(--out),
    box-shadow 0.3s var(--ease);
}
#ba-with:checked ~ .ba-head .ba-thumb {
  transform: translateX(100%);
  box-shadow: var(--hi), 0 0 0 1px var(--accent-line), 0 2px 8px -2px rgba(79, 70, 229, 0.3);
}
#ba-without:checked ~ .ba-head label[for="ba-without"],
#ba-with:checked ~ .ba-head label[for="ba-with"] {
  color: var(--ink);
}
#ba-without:focus-visible ~ .ba-head label[for="ba-without"],
#ba-with:focus-visible ~ .ba-head label[for="ba-with"] {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.ba-cols,
.ba-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 4px 20px;
  align-items: center;
  padding-inline: 20px;
}
.ba-cols {
  padding-block: 10px 8px;
  font-size: 0.75rem;
  font-weight: 560;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.ba-log {
  position: relative;
  list-style: none;
}
.ba-row {
  min-height: 50px;
  padding-block: 9px;
  border-bottom: 1px solid var(--line);
  transition: background-color 0.45s var(--ease);
}
.ba-row:last-child {
  border-bottom: 0;
}
.ba-time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.ba-who {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 12px;
  min-width: 0;
}
.ba-who code {
  font-size: 0.8125rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.ba-ip {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--muted);
}
.ba-state,
.ba-foot {
  display: grid;
}
.ba-state > *,
.ba-foot > * {
  grid-area: 1 / 1;
}
.ba-off,
.ba-on {
  transition:
    opacity 0.35s var(--ease),
    transform 0.4s var(--out),
    visibility 0s linear 0.35s;
}
.ba-state .ba-off {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--ink-2);
}
.ba-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--allow);
}
.ba-state .ba-on {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
}
.ba-on code {
  font-size: 0.75rem;
  color: var(--muted);
}
.ba-on .badge {
  height: 22px;
  padding: 0 7px;
  font-size: 0.72rem;
}
.ba-none {
  font-size: 0.8125rem;
  color: var(--muted);
}
/* without (default) */
.ba-on {
  opacity: 0;
  visibility: hidden;
  transform: translateX(-6px);
}
/* with */
#ba-with:checked ~ .ba-log .ba-on,
#ba-with:checked ~ .ba-foot .ba-on {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: calc(var(--i, 0) * 55ms + 120ms), calc(var(--i, 0) * 55ms + 120ms), 0s;
}
#ba-with:checked ~ .ba-log .ba-off,
#ba-with:checked ~ .ba-foot .ba-off {
  opacity: 0;
  visibility: hidden;
  transform: translateX(6px);
}
#ba-with:checked ~ .ba-log .ba-row[data-v="block"] {
  background: color-mix(in srgb, var(--block-bg) 70%, transparent);
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}
#ba-with:checked ~ .ba-log .ba-row[data-v="challenge"] {
  background: color-mix(in srgb, var(--challenge-bg) 60%, transparent);
  transition-delay: calc(var(--i, 0) * 55ms + 120ms);
}
/* one light sweep down the log when it switches to "with" */
.ba-log::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 18px 4px var(--accent-soft);
  opacity: 0;
  pointer-events: none;
}
#ba-with:checked ~ .ba-log::after {
  animation: sweep 0.75s var(--ease) 1;
}
@keyframes sweep {
  0% {
    top: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    top: 100%;
    opacity: 0;
  }
}
.ba-foot {
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.875rem;
  color: var(--muted);
}
.ba-foot b {
  color: var(--ink);
  font-weight: 600;
}

/* Four tells, set as a quiet row of notes under the log (no cards). */
.tells-mini {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
  margin-top: 48px;
}
.tells-mini li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.tm-sample {
  justify-self: start;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2);
  overflow-wrap: anywhere;
}
.tm-sample mark {
  background: none;
  color: var(--block);
  font-weight: 600;
}
.tells-mini h3 {
  margin-top: 6px;
  font-size: 1rem;
  letter-spacing: -0.02em;
}
.tells-mini p {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--muted);
}

/* ---------- Install: scroll story ---------- */

.scrolly {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px 64px;
  align-items: center;
}
.s-step {
  grid-column: 1;
  position: relative;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  column-gap: 18px;
  align-content: center;
}
.s-step > :not(.s-num) {
  grid-column: 2;
}
.s-step h3 {
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  padding-top: 5px;
}
.s-step p {
  margin-top: 8px;
  font-size: 1rem;
  color: var(--muted);
}
.s-step .path {
  margin-top: 14px;
}
.s-num {
  grid-column: 1;
  grid-row: 1 / span 3;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(16, 24, 40, 0.1);
  transition:
    background-color 0.3s var(--ease),
    color 0.3s var(--ease);
}
.s-panel {
  grid-column: 2;
  margin: 0;
}
.s-step[data-step="0"],
.s-panel[data-panel="0"] {
  grid-row: 1;
}
.s-step[data-step="1"],
.s-panel[data-panel="1"] {
  grid-row: 2;
}
.s-step[data-step="2"],
.s-panel[data-panel="2"] {
  grid-row: 3;
}
.scrolly-rail {
  display: none;
}

/* Live mode (wide screens, JS, motion allowed). */
.scrolly.is-live {
  row-gap: 0;
  align-items: start;
}
/* Inactive steps stay fully opaque so their text keeps AA contrast (the prototype dimmed them to 40%): the active
   step shows through its filled number and ink heading; the others get a muted heading. */
.scrolly.is-live .s-step {
  min-height: min(64vh, 620px);
}
.scrolly.is-live .s-step h3 {
  transition: color 0.45s var(--ease);
}
.scrolly.is-live .s-step:not(.is-active) h3 {
  color: var(--muted);
}
.scrolly.is-live .s-step[data-step="0"] {
  align-content: start;
  padding-top: 72px;
}
.scrolly.is-live .s-step.is-active .s-num {
  color: var(--btn-ink);
  background: var(--btn-bg);
}
.scrolly.is-live .scrolly-rail {
  display: block;
  position: absolute;
  left: 18px;
  top: 108px;
  bottom: min(32vh, 310px);
  width: 1px;
  background: var(--line-2);
}
.scrolly-rail i {
  position: absolute;
  left: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(var(--accent-line), var(--accent));
  transform-origin: top;
  transform: scaleY(var(--prog, 0));
}
.scrolly.is-live .s-panel {
  grid-row: 1 / span 3;
  position: sticky;
  top: max(88px, calc(50vh - 250px));
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px) scale(0.985);
  transition:
    opacity 0.4s var(--ease),
    transform 0.6s var(--out),
    visibility 0s linear 0.4s;
}
.scrolly.is-live .s-panel.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0.08s, 0.08s, 0s;
}
/* Inside the active panel: fields arrive, values paste in, the first check slides in. */
.scrolly.is-live .sp-anim,
.scrolly.is-live .sp-slide {
  transition:
    opacity 0.4s var(--ease),
    transform 0.5s var(--out);
}
.scrolly.is-live .s-panel:not(.is-active) .sp-anim {
  opacity: 0;
  transform: translateY(6px);
}
.scrolly.is-live .s-panel:not(.is-active) .sp-slide {
  opacity: 0;
  transform: translateY(-10px);
}
.scrolly.is-live .s-panel.is-active .sp-anim,
.scrolly.is-live .s-panel.is-active .sp-slide {
  transition-delay: calc(var(--k, 0) * 140ms + 160ms);
}
.scrolly.is-live .s-panel.is-active .sp-slide {
  animation: row-glow 1.8s var(--ease) calc(var(--k, 0) * 140ms + 300ms) both;
}
@keyframes row-glow {
  0% {
    background-color: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--accent-line);
  }
  100% {
    background-color: transparent;
    box-shadow: inset 0 0 0 1px var(--line);
  }
}
.sp-paste {
  transition:
    color 0.3s var(--ease),
    box-shadow 0.3s var(--ease);
}
.sp-paste .pasted-flag {
  transition:
    opacity 0.25s var(--ease),
    transform 0.35s var(--spring);
}
.scrolly.is-live .s-panel:not(.is-active) .sp-paste {
  color: transparent;
  box-shadow: 0 0 0 1px var(--line-2);
}
.scrolly.is-live .s-panel:not(.is-active) .sp-paste .pasted-flag {
  opacity: 0;
  transform: translateY(4px) scale(0.8);
}
.scrolly.is-live .s-panel.is-active .sp-paste,
.scrolly.is-live .s-panel.is-active .sp-paste .pasted-flag {
  transition-delay: calc(var(--k, 0) * 380ms + 200ms);
}
.scrolly.is-live .s-panel.is-active .sp-press {
  animation: press 0.5s var(--ease) 1.25s both;
}
@keyframes press {
  40% {
    transform: scale(0.96);
    box-shadow: 0 0 0 4px var(--accent-soft);
  }
}
.scrolly.is-live .s-panel:not(.is-active) .roll .roll-in {
  transform: none;
}
.scrolly.is-live .s-panel.is-active .roll-in {
  transition-delay: 0.75s;
}

/* Step 1 panel bits */
.fake-input.has-copy {
  padding-right: 64px;
}
.copy-chip {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  height: 26px;
  padding: 0 9px;
  display: inline-flex;
  align-items: center;
  border-radius: 7px;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 560;
  color: var(--ink);
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2);
}
.mode-line {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  font-size: 0.8125rem;
  color: var(--muted);
}
/* Step 3 panel bits */
.first-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-radius: 10px;
  box-shadow: inset 0 0 0 1px var(--line);
}
.first-tiles > div {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
}
.first-tiles > div + div {
  border-left: 1px solid var(--line);
}
.first-tiles > div > span {
  font-size: 0.75rem;
  color: var(--muted);
}
.first-tiles b {
  display: block;
  height: 1.2em;
  line-height: 1.2;
  font-size: 1.5rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.first-log {
  display: grid;
  gap: 8px;
}
.first-log-head {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--muted);
}
.first-log-head span:first-child {
  font-weight: 600;
  color: var(--ink);
}
.first-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 14px;
  padding: 10px 12px;
  border-radius: 9px;
  box-shadow: inset 0 0 0 1px var(--line);
  font-size: 0.8125rem;
}
.first-row .when {
  display: grid;
  font-weight: 560;
  color: var(--ink);
}
.first-row .when small {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--muted);
}
.first-row .badge {
  justify-self: end;
}
.first-row .dom {
  font-family: var(--mono);
  color: var(--ink);
}
.first-row .act {
  grid-column: 2;
  font-weight: 400;
  font-size: 0.75rem;
  color: var(--muted);
}
.first-row .why {
  grid-column: 3;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
}
.first-empty {
  font-size: 0.8125rem;
  color: var(--muted);
}

/* ---------- Safe: the fail-open timer runs once on reveal ---------- */

.fo-timer {
  display: inline-block;
  width: 44px;
  height: 4px;
  border-radius: 4px;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
}
.fo-timer i {
  display: block;
  height: 100%;
  background: var(--challenge);
  transform-origin: left center;
  transition: transform 1.5s linear 0.6s;
}
.fo-allow {
  transition:
    opacity 0.3s var(--ease) 2.15s,
    transform 0.45s var(--spring) 2.15s;
}
.js .safe-card:not(.in) .fo-timer i {
  transform: scaleX(0);
}
.js .safe-card:not(.in) .fo-allow {
  opacity: 0;
  transform: scale(0.8);
}

/* ---------- Story responsive ---------- */

@media (max-width: 1040px) {
  .tells-mini {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .demo-dash {
    flex-direction: column;
    align-items: flex-start;
  }
  .dash-tiles {
    margin: 0;
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dt:first-child {
    border-left: 0;
    padding-left: 0;
  }
}

@media (max-width: 860px) {
  .demo-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
    padding: 16px;
  }
  .d-checks::before,
  .d-verdict::before {
    top: -18px;
    left: 50%;
    width: 1px;
    height: 14px;
  }
  .d-checks::after,
  .d-verdict::after {
    top: -8px;
    left: calc(50% - 3px);
    width: 7px;
    height: 6px;
    clip-path: polygon(0 0, 100% 0, 50% 100%);
  }
  .d-verdict {
    min-height: 330px;
  }
  .demo-dash {
    padding: 14px 16px 16px;
  }
  .dash-tiles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 0;
  }
  .dt:nth-child(3) {
    border-left: 0;
    padding-left: 0;
  }
  .dt:nth-child(2n) {
    padding-left: 16px;
  }
  .dt-formula {
    flex-basis: 100%;
    order: 3;
  }
  .scrolly {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 20px;
  }
  .s-step,
  .s-panel {
    grid-column: 1;
    grid-row: auto !important;
  }
  .s-panel {
    margin-bottom: 28px;
  }
  .s-panel:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 640px) {
  .demo-tabs {
    max-width: 100%;
  }
  .demo-tab {
    padding: 0 10px;
    font-size: 0.8125rem;
  }
  .ba-long {
    display: none;
  }
  .d-verdict {
    min-height: 392px;
  }
  .ba-head {
    padding: 10px 12px;
  }
  .ba-title .chrome-dots {
    display: none;
  }
  .ba-cols {
    display: none;
  }
  .ba-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    min-height: 0;
    padding: 11px 14px;
  }
  .ba-time {
    display: none;
  }
  .ba-who {
    gap: 0 10px;
  }
  .ba-who code {
    font-size: 0.78rem;
  }
  .ba-ip {
    font-size: 0.7rem;
  }
  .ba-foot {
    padding: 12px 14px;
  }
  .tells-mini {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    margin-top: 36px;
  }
  .first-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .first-row .badge {
    grid-column: 2;
    justify-self: start;
  }
  .first-row .why {
    grid-column: 2;
    text-align: left;
  }
  .first-tiles {
    grid-template-columns: minmax(0, 1fr);
  }
  .first-tiles > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
  }
  .first-tiles > div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .first-tiles b {
    font-size: 1.125rem;
  }
}

/* ======================================================================
   Port to the live site (web/views): CSP-safe replacements for the
   prototype's inline styles, the logo, and the pages the prototype did not
   draw (docs, privacy, audit, burner pages, sign up, log in, messages).
   ====================================================================== */

/* Per-element values as classes (style="" attributes are blocked by the CSP). */
.d50 {
  --d: 50ms;
}
.d60 {
  --d: 60ms;
}
.d80 {
  --d: 80ms;
}
.d100 {
  --d: 100ms;
}
.d120 {
  --d: 120ms;
}
.d150 {
  --d: 150ms;
}
.d180 {
  --d: 180ms;
}
.d220 {
  --d: 220ms;
}
.d280 {
  --d: 280ms;
}
.k1 {
  --k: 1;
}
.k2 {
  --k: 2;
}
.k3 {
  --k: 3;
}
.ba-row:nth-child(2) {
  --i: 1;
}
.ba-row:nth-child(3) {
  --i: 2;
}
.ba-row:nth-child(4) {
  --i: 3;
}
.ba-row:nth-child(5) {
  --i: 4;
}
.ba-row:nth-child(6) {
  --i: 5;
}
.ba-row:nth-child(7) {
  --i: 6;
}
.dot-block {
  background: var(--block);
}
.dot-challenge {
  background: var(--challenge);
}
.dot-allow {
  background: var(--allow);
}
.dot-faint {
  background: var(--faint);
}
.rel {
  position: relative;
}
.mt-s {
  margin-top: 10px;
}
.mt-m {
  margin-top: 16px;
}
.mt-l {
  margin-top: 24px;
}
.start {
  justify-self: start;
}

/* The theme toggle needs site.js; without JS the system preference applies and the button is hidden. */
html:not(.js) .theme-toggle {
  display: none;
}

/* Logo: the doorman tile (PNG, 64px source drawn at 28px). */
.brand-logo {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: 7px;
}
.site-footer .brand-logo {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}
@media (max-width: 380px) {
  .brand-logo {
    width: 24px;
    height: 24px;
  }
}

/* Verdict classes the live markup and audit.js use, in the story's colours. */
.verdict-allow,
.action-allow {
  color: var(--allow);
  background: var(--allow-bg);
  box-shadow: inset 0 0 0 1px var(--allow-line);
}
.verdict-challenge {
  color: var(--challenge);
  background: var(--challenge-bg);
  box-shadow: inset 0 0 0 1px var(--challenge-line);
}
.verdict-block,
.action-block {
  color: var(--block);
  background: var(--block-bg);
  box-shadow: inset 0 0 0 1px var(--block-line);
}

/* Notices */
.notice.warn {
  color: var(--ink);
  background: var(--challenge-bg);
  box-shadow: inset 0 0 0 1px var(--challenge-line);
}
.notice.error {
  color: var(--ink);
  background: var(--block-bg);
  box-shadow: inset 0 0 0 1px var(--block-line);
}
.notice > * + * {
  margin-top: 10px;
}
.notice strong {
  color: var(--ink);
}

/* Forms the live views use. */
textarea.input,
:where(.field > textarea) {
  height: auto;
  min-height: 84px;
  padding: 10px 12px;
  line-height: 1.5;
  resize: vertical;
}
textarea.input.mono {
  font-size: 0.8125rem;
}
.query-box textarea.input {
  white-space: pre;
  overflow-x: auto;
  background: var(--surface-2);
}
form.inline {
  display: inline;
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
}
.inline-form .field {
  flex: 1 1 200px;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

/* Inner pages: a quieter page head, then the body. */
.page-head.compact {
  padding-top: 64px;
  padding-bottom: 40px;
}
.page-head .crumbs {
  margin-bottom: 14px;
}
.page-head h1 {
  overflow-wrap: anywhere;
}
.page-head .lead {
  max-width: 40em;
}
.page-head .lead + p {
  margin-top: 14px;
  max-width: 44em;
  color: var(--ink-2);
}
.page-head .kicker {
  margin-bottom: 14px;
}
.page-head.center {
  text-align: center;
}
.page-head.center .wrap {
  display: grid;
  justify-items: center;
}
.page-body > * + * {
  margin-top: 56px;
}
.page-foot {
  margin-top: 40px;
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Long-form text: docs, privacy, audit and burner pages. */
.prose {
  max-width: 760px;
  color: var(--ink-2);
}
.prose > * + *,
.prose section > * + * {
  margin-top: 14px;
}
.prose h2 {
  margin-top: 56px;
  font-size: 1.625rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.prose > h2:first-child,
.prose > section:first-child > h2:first-child,
.prose section > h2:first-child {
  margin-top: 0;
}
.prose section + section {
  margin-top: 64px;
}
.prose h3 {
  margin-top: 32px;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.prose ul:not([class]),
.prose ol:not([class]) {
  padding-left: 1.25em;
  display: grid;
  gap: 8px;
}
.prose ul:not([class]) li::marker {
  color: var(--faint-ink);
}
.prose :not(pre) > code,
.chip {
  padding: 0.1em 0.38em;
  border-radius: 5px;
  color: var(--ink);
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow-wrap: anywhere;
}
.prose .compare code,
.prose .steps code {
  overflow-wrap: anywhere;
}
.prose pre.code {
  margin-top: 16px;
}
.prose .table-scroll {
  margin-top: 18px;
}
.prose .notice {
  font-size: 0.9375rem;
}

/* Guides (/guides): the list of articles, and Markdown tables that need no minimum width. */
.guide-list {
  display: grid;
  gap: 32px;
  padding: 0;
  list-style: none;
}
.guide-list h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.guide-list li > * + * {
  margin-top: 8px;
}
.guide-list .chip {
  margin-left: 8px;
  font-size: 0.75rem;
  vertical-align: middle;
}
.guide .compare {
  min-width: 0;
}
.guide blockquote {
  padding-left: 16px;
  border-left: 3px solid var(--line-2);
}
/* Screenshots: never wider than the text, with a hairline edge so a white page stays distinct in dark mode. */
.guide img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 0 1px var(--line-2);
}

/* Docs: a contents rail beside the text on wide screens. Tables take the whole column, text keeps the prose measure. */
.docs-grid > .prose {
  max-width: none;
}
.docs-grid > .prose > :not(section),
.docs-grid > .prose > section > :not(.table-scroll) {
  max-width: 760px;
}
.docs-grid {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  display: grid;
  gap: 2px;
  font-size: 0.875rem;
}
.toc-title {
  margin-bottom: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc a {
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--muted);
}
.toc a:hover {
  color: var(--ink);
  background: var(--accent-soft);
  text-decoration: none;
}

/* A compact numbered list (docs install steps, audit steps, dashboard). */
.steps.compact {
  color: var(--ink-2);
}
.steps.compact > li {
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 0 14px;
  padding-bottom: 16px;
  align-items: start;
  line-height: 1.55;
}
.steps.compact > li > span {
  padding-top: 3px;
}
.steps.compact > li::before {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-size: 0.8125rem;
}
.steps.compact > li::after {
  left: 14px;
  top: 34px;
  bottom: 2px;
}
ol.steps[start="3"] {
  counter-reset: step 2;
}

/* Tables on text pages: the compare table's look, without its minimum width when there are few columns. */
.compare.narrow {
  min-width: 0;
}
/* Reason codes on /docs (#64): a code never breaks mid-word. Below this width the table scrolls in its panel. */
.compare.reason-codes {
  min-width: 600px;
}
.compare.reason-codes td:first-child code {
  white-space: nowrap;
  overflow-wrap: normal;
}
.compare code {
  color: var(--ink);
  font-weight: 500;
}
.compare td.num,
.compare th.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Sign up, log in, messages: one centred column. */
.auth {
  max-width: 520px;
  margin-inline: auto;
}
.auth > * + * {
  margin-top: 16px;
}
.auth-wide {
  max-width: 720px;
}

/* Audit: tabs as a segmented control over one panel. */
.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(16, 24, 40, 0.08);
}
.tabs [role="tab"] {
  height: 34px;
  padding: 0 14px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--muted);
  cursor: pointer;
}
.tabs [role="tab"]:hover {
  color: var(--ink);
}
.tabs [role="tab"][aria-selected="true"] {
  color: var(--ink);
  background: var(--surface-3);
}
.tab-panel {
  margin-top: 14px;
  padding: 24px;
  display: grid;
  gap: 18px;
}
.query-box {
  display: grid;
  gap: 6px;
}
.query-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.query-head label {
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--ink);
}
.field .btn {
  margin-top: 6px;
  justify-self: start;
}
.preview-list {
  max-height: 16rem;
  overflow: auto;
}
#result-notes {
  padding-left: 1.25em;
  display: grid;
  gap: 6px;
}
.audit-table td.domain {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.audit-table .detail {
  display: block;
  margin-top: 2px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.audit-table td:nth-child(2) {
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.audit-table .badge {
  height: 22px;
  font-size: 0.72rem;
}
#credits {
  padding: 24px;
  display: grid;
  gap: 16px;
}

/* Burner-domain pages */
.fact-list {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(10rem, 15rem) minmax(0, 1fr);
}
.fact-list dt,
.fact-list dd {
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.fact-list dt:first-of-type,
.fact-list dd:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.fact-list dt {
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--ink);
}
.fact-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.fact-list ul {
  padding-left: 1.1em;
  display: grid;
  gap: 4px;
}
.domain-list {
  list-style: none;
  columns: 15rem auto;
  column-gap: 28px;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.domain-list li {
  padding: 4px 0;
  break-inside: avoid;
  overflow-wrap: anywhere;
}
.pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-block: 16px;
  font-size: 0.875rem;
  color: var(--muted);
}
.pager a {
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.check-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

/* Landing additions */
.hero .fineprint {
  max-width: 40em;
  line-height: 1.55;
}
.cost-note {
  margin: 16px auto 0;
  max-width: 46em;
  text-align: center;
  font-size: 0.9375rem;
  color: var(--muted);
}
.result .notice {
  margin-top: 16px;
}
.result-next {
  margin-top: 14px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.checker-intro .notice {
  margin-bottom: 16px;
}

/* Dashboard additions */
.app-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  font-size: 0.875rem;
}
.app-switch a,
.app-switch strong {
  padding: 4px 10px;
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.app-switch strong {
  color: var(--ink);
  font-weight: 560;
  background: var(--surface);
}
.bar svg {
  display: block;
  width: 100%;
  height: 100%;
}
.bar rect {
  fill: var(--accent);
}
.usage-note {
  margin-top: 10px;
}
.dash-flash {
  margin-bottom: 16px;
}
.saved-empty {
  padding: 24px;
  color: var(--ink-2);
}
.billing-box .btn {
  white-space: normal;
  height: auto;
  min-height: var(--h);
  padding-block: 8px;
}
.acct-grid .plain-list {
  margin-top: 10px;
}

/* Dashboard tabs (web/views/dashboard.tsx): one URL per tab, links not script. The bar scrolls sideways on its own
   when it does not fit, so the page itself never does. */
.dash-tabs {
  margin-bottom: 20px;
}
.dash-tabs ul {
  list-style: none;
  display: flex;
  gap: 2px;
  width: max-content;
  max-width: 100%;
  padding: 4px;
  overflow-x: auto;
  scrollbar-width: thin;
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--hi), 0 0 0 1px var(--line-2), 0 2px 6px -2px rgba(16, 24, 40, 0.08);
}
.dash-tabs li {
  flex: none;
}
.dash-tabs a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 14px;
  border-radius: 9px;
  font-size: 0.875rem;
  font-weight: 560;
  color: var(--muted);
  white-space: nowrap;
  outline-offset: -2px;
}
.dash-tabs a:hover {
  color: var(--ink);
  text-decoration: none;
}
.dash-tabs a[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-3);
}
.dash-alerts {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}
.dash-stack {
  display: grid;
  gap: 20px;
}
.dash-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}
.dash-intro {
  max-width: 68ch;
  color: var(--ink-2);
}
.dash-lead {
  margin-bottom: 16px;
}
.dash-billing {
  max-width: 720px;
}
.dash-billing .billing-box .btn {
  width: auto;
}
.way-list li > div {
  display: grid;
  gap: 4px;
}
@media (max-width: 860px) {
  .dash-cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* On a phone every tab stays in view: a 4-column grid (two rows for seven tabs) instead of a scrolling strip. */
@media (max-width: 640px) {
  .dash-tabs ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: auto;
    overflow: visible;
  }
  .dash-tabs a {
    display: flex;
    justify-content: center;
    height: 40px;
    padding: 0 4px;
    font-size: 0.8125rem;
  }
  .dash-billing .billing-box .btn {
    width: 100%;
  }
}

@media (max-width: 860px) {
  .docs-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }
  .toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
  }
  .toc-title {
    flex-basis: 100%;
    margin-bottom: 2px;
  }
  .toc a {
    box-shadow: inset 0 0 0 1px var(--line-2);
  }
}
@media (max-width: 640px) {
  .page-head.compact {
    padding-top: 44px;
    padding-bottom: 28px;
  }
  .page-body > * + * {
    margin-top: 44px;
  }
  .tab-panel,
  #credits {
    padding: 18px;
  }
  .tabs {
    display: flex;
  }
  .tabs [role="tab"] {
    flex: 1 1 auto;
    padding: 0 10px;
    font-size: 0.8125rem;
  }
  .fact-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .fact-list dd {
    border-top: 0;
    padding-top: 2px;
  }
  .prose h2 {
    margin-top: 44px;
    font-size: 1.375rem;
  }
  /* The detail repeats the domain, and the reason label says what the verdict badge says: on a phone, three columns. */
  .audit-table .detail,
  .audit-table th:nth-child(3),
  .audit-table td:nth-child(3) {
    display: none;
  }
}

/* Spacing the prototype set inline. */
.section.closing-section {
  padding-top: 96px;
  padding-bottom: 0;
  border-top: 0;
}
.closing-gap {
  margin-top: 96px;
}
.plan-terms .terms-col {
  align-self: center;
}
.plan-terms .terms-col p {
  font-size: 0.9375rem;
}
.plan-terms .terms-col .kicker {
  margin-top: 0;
}
.result-verdict .h3-like {
  font-size: 1.375rem;
  letter-spacing: -0.025em;
}
.account-chip:hover {
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.plan-card .xsmall {
  margin-top: auto;
}
.plan-card .xsmall + .btn {
  margin-top: 0;
}
@media (max-width: 640px) {
  .section.closing-section {
    padding-top: 64px;
  }
  .closing-gap {
    margin-top: 64px;
  }
}
.plan-terms .kicker,
.plan-terms p.kicker {
  color: var(--accent);
}
/* Code inside a code block keeps the block's size (the inline-code shrink would compound). */
.code code {
  font-size: inherit;
}
.formula .k {
  padding: 0;
  font-family: var(--font);
  color: var(--muted);
  background: none;
  box-shadow: none;
}
/* Section headings on inner pages share the prose h2 size. */
.page-body > section > h2,
.page-body > section > header > h2 {
  font-size: 1.625rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
@media (max-width: 640px) {
  .page-body > section > h2,
  .page-body > section > header > h2 {
    font-size: 1.375rem;
  }
}
.plain-list .push {
  margin-left: auto;
  min-width: 0;
}
/* Email addresses (web/views/auth.tsx Addr): a long one breaks anywhere instead of running out of its box. */
.addr {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.dash-alerts .notice {
  overflow-wrap: anywhere;
}
.log-scroll {
  border-radius: 0 0 var(--radius) var(--radius);
}
.s-step .path {
  font-size: 0.8125rem;
}
/* Hero demo strip: every tile starts at the top, so a tile with a second line does not shift the others. */
.dt {
  align-content: start;
}
/* Billing: a column of plan and subscription buttons (web/views/billing.tsx). */
.btn-col {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.plan-card .btn-col {
  margin-top: auto;
}
.btn-col form,
.btn-col .btn {
  width: 100%;
}
.btn-col .btn {
  white-space: normal;
  height: auto;
  min-height: var(--h);
  padding-block: 8px;
}

/* ---------- Status page (/status, web/views/status.tsx) ---------- */
.status-overall {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.status-section {
  padding-block: 16px 96px;
}
.status-wrap {
  display: grid;
  gap: 20px;
}
.status-wrap > * {
  max-width: 820px;
}
.status-wrap h2 {
  font-size: 1rem;
  letter-spacing: -0.015em;
  font-weight: 620;
}
.status-components ul,
.status-incidents,
.status-updates {
  list-style: none;
  margin: 0;
  padding: 0;
}
.status-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.status-row > div {
  min-width: 0;
}
.status-row p {
  margin-top: 4px;
  font-size: 0.875rem;
  color: var(--muted);
}
.status-checked {
  padding: 14px 22px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.status-open {
  box-shadow: var(--hi), var(--shadow-panel), inset 0 0 0 1px var(--challenge-line);
}
.status-incidents {
  display: grid;
  gap: 18px;
  margin-top: 14px;
}
.status-incident + .status-incident {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.status-incident-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px 16px;
}
.status-incident h3 {
  font-size: 0.9375rem;
  font-weight: 600;
}
.status-meta {
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}
.status-updates {
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding-left: 14px;
  border-left: 2px solid var(--line-2);
}
.status-updates time {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--faint-ink);
}
.status-updates p {
  margin-top: 2px;
  font-size: 0.875rem;
  color: var(--ink-2);
}
.status-none {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}
.status-notes {
  display: grid;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--muted);
}
@media (max-width: 560px) {
  .status-row,
  .status-incident-head {
    flex-direction: column;
  }
  .status-row {
    padding: 16px 18px;
  }
}

/* ---------- The checker's own page (/disposable-email-checker, web/views/checker.tsx) ---------- */

.tool-head {
  padding-bottom: 32px;
}
.tool-head h1 {
  max-width: 14em;
}
.tool-body {
  padding-bottom: 96px;
}
/* After a check the result comes first in the markup (first thing on a phone); wide screens keep the form left. */
.checker-grid.has-result > .result {
  grid-column: 2;
  grid-row: 1;
}
.checker-grid.has-result > .checker-intro {
  grid-column: 1;
  grid-row: 1;
}
.tool-next {
  margin-top: 16px;
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.looks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.looks li {
  padding: 24px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.looks h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}
.looks p {
  color: var(--ink-2);
  line-height: 1.6;
}
.looks p code {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
.looks .looks-codes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.looks .looks-codes code {
  padding: 2px 8px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--accent-ink);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px var(--accent-line);
}
.tool-api {
  align-items: start;
}
.tool-api h2 {
  font-size: clamp(1.75rem, 1.2rem + 2vw, 2.5rem);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 650;
}
.tool-api p {
  margin-top: 14px;
  font-size: 1.0625rem;
}
.tool-points {
  margin-top: 16px;
  padding-left: 1.2em;
  display: grid;
  gap: 8px;
  color: var(--ink-2);
}
.tool-api .stack-list a {
  color: inherit;
}
.tool-caption {
  font-size: 0.8125rem;
}
.tool-api .tool-caption {
  margin-top: 10px;
  font-size: 0.8125rem;
}
.tool-faq {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 48px;
}
.tool-faq article {
  padding-top: 18px;
  border-top: 1px solid var(--line-2);
}
.tool-faq h3 {
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.tool-faq p {
  margin-top: 10px;
  color: var(--ink-2);
  line-height: 1.65;
}
.tool-faq code {
  font-size: 0.8125rem;
  overflow-wrap: anywhere;
}
@media (max-width: 860px) {
  .checker-grid.has-result > .result,
  .checker-grid.has-result > .checker-intro {
    grid-column: auto;
    grid-row: auto;
  }
  .looks,
  .tool-faq {
    grid-template-columns: minmax(0, 1fr);
  }
  .tool-body {
    padding-bottom: 72px;
  }
}
@media (max-width: 640px) {
  .looks li {
    padding: 20px;
  }
}
