/*
 * Web Audit+ website. Same tokens and typeface as the extension: dark, Geist, one accent and the
 * three score colors. Plain CSS, no build step.
 */

@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Geist Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Arial sized to Geist's width (measured 91.0% on a sample sentence) with Geist's vertical
   metrics, so the swap from the fallback to the web font does not move the layout. */
@font-face {
  font-family: 'Geist Fallback';
  src: local('Arial'), local('Helvetica');
  size-adjust: 91%;
  ascent-override: 110.44%;
  descent-override: 32.42%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Geist Mono Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(fonts/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: dark;
  --bg: #0b0d10;
  --surface: #12151a;
  --surface-2: #181c22;
  --border: #232830;
  --border-strong: #2f3540;
  --text: #e6e9ee;
  --muted: #8b93a1;
  --faint: #5a6270;
  --accent: #3d8bff;
  --accent-ink: #0b0d10;
  --good: #2fbf71;
  --warn: #f2a93b;
  --bad: #f0524d;
  --sans: 'Geist Variable', 'Geist Fallback', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono Variable', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 14px;
  --nav-h: 64px;
  --content: 1120px;
  /* The side margin: 24px on a desktop, down to 16px on a 320px phone. */
  --gutter: clamp(16px, 5vw, 24px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'ss01', 'cv11';
  overflow-x: clip;
}

::selection {
  background: color-mix(in srgb, var(--accent) 35%, transparent);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Links inside running text are underlined. Navigation, tables of contents and footers set
   their own link styles, so plain list links stay unstyled outside .prose. */
p a,
td a,
dd a,
.prose li a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  text-underline-offset: 3px;
}
p a:hover,
td a:hover,
dd a:hover,
.prose li a:hover {
  text-decoration-color: var(--accent);
}

img,
svg {
  display: block;
  max-width: 100%;
}

code,
kbd,
pre,
.mono {
  font-family: var(--mono);
}

code {
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1em 0.4em;
  overflow-wrap: anywhere;
}

pre {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-size: 13px;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text);
}
pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: inherit;
}

kbd {
  display: inline-block;
  min-width: 24px;
  padding: 2px 7px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
}

.wrap {
  width: 100%;
  max-width: var(--content);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 8px;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ---------- Navigation ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav .wrap {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  min-height: 48px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--muted);
  transition: color 0.15s, background-color 0.15s;
}
.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
}
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  cursor: pointer;
}
@media (max-width: 860px) {
  /* The menu's own box is empty here (the list is positioned below the bar), so the toggle is
     moved after it to sit at the right edge. */
  .nav-toggle {
    display: inline-flex;
    order: 1;
  }
  .nav-links {
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100dvh - var(--nav-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.8);
  }
  .nav-links[data-open='true'] {
    display: flex;
  }
  .nav-links a {
    display: flex;
    min-height: 48px;
    font-size: 16px;
  }
  .nav-links a.btn {
    justify-content: center;
    margin-top: 12px;
    min-height: 48px;
    font-size: 15px;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s, background-color 0.15s, border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:active {
  transform: translateY(0);
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 12px 32px -12px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover {
  background: color-mix(in srgb, var(--accent) 80%, white);
}
/* The nav's own link colors must not win over the button's: dark ink on the accent is 5.7:1. */
.nav-links a.btn-primary {
  color: var(--accent-ink);
  background: var(--accent);
}
.nav-links a.btn-primary:hover {
  color: var(--accent-ink);
  background: color-mix(in srgb, var(--accent) 80%, white);
}
.btn-secondary {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-secondary:hover {
  border-color: var(--muted);
}
.btn-sm {
  min-height: 40px;
  padding: 0 14px;
  font-size: 14px;
}
.nav .btn {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
  box-shadow: none;
}
.nav .btn:hover {
  transform: none;
}

/* ---------- Type ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before {
  content: '';
  width: 20px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 480px) {
  .eyebrow {
    font-size: 11.5px;
    letter-spacing: 0.1em;
  }
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 {
  font-size: clamp(40px, 7.2vw, 82px);
  letter-spacing: -0.04em;
  line-height: 1;
}
h2 {
  font-size: clamp(30px, 4.2vw, 48px);
}
h3 {
  font-size: 20px;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.lede {
  margin: 20px 0 0;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 640px;
  text-wrap: pretty;
}
.section-head {
  max-width: 760px;
}
.section-head p:not(.eyebrow) {
  margin: 18px 0 0;
  font-size: 17px;
  color: var(--muted);
  text-wrap: pretty;
}
.muted {
  color: var(--muted);
}
.num {
  font-variant-numeric: tabular-nums;
}
.good {
  color: var(--good);
}
.warn {
  color: var(--warn);
}
.bad {
  color: var(--bad);
}

section {
  padding: clamp(64px, 8vw, 104px) 0;
}
section + section {
  border-top: 1px solid var(--border);
}

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

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 112px) 0 clamp(56px, 7vw, 96px);
  overflow: clip;
}
.hero::before {
  content: '';
  position: absolute;
  inset: -40% -20% auto;
  height: 120%;
  background:
    radial-gradient(60% 50% at 50% 0%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--text) 4%, transparent) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 20%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 56px;
}
.hero-copy {
  max-width: 820px;
}
.hero h1 {
  max-width: 14ch;
}
.hero h1 .accent {
  color: var(--accent);
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-facts li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
}
@media (max-width: 480px) {
  .hero .wrap {
    gap: 40px;
  }
  .hero-ctas {
    margin-top: 28px;
  }
  .hero-ctas .btn {
    flex: 1 1 auto;
  }
  .hero-facts {
    gap: 8px 16px;
    font-size: 12px;
  }
}

/* ---------- Mock report ---------- */

.mock {
  margin: 0;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--bg) 60%, transparent),
    0 40px 80px -40px rgb(0 0 0 / 0.8),
    0 0 120px -40px color-mix(in srgb, var(--accent) 40%, transparent);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
.mock-bar .dots {
  display: inline-flex;
  gap: 6px;
  margin-right: 6px;
}
.mock-bar .dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}
.mock-bar .url {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.mock-bar .pill {
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
}
.mock-scores {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--border);
}
.mock-scores > div {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 22px 8px 18px;
  text-align: center;
}
.mock-scores > div + div {
  border-left: 1px solid var(--border);
}
.mock-scores .ring {
  --size: 64px;
}
.mock-scores .label {
  font-size: 13px;
  line-height: 1.3;
  color: var(--muted);
}
.mock-rows {
  display: grid;
}
.mock-row {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  font-size: 14px;
}
.mock-row > span:nth-child(2) {
  text-wrap: pretty;
}
.mock-row + .mock-row {
  border-top: 1px solid var(--border);
}
.mock-row .cat {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.mock-row .gain {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--good);
  min-width: 44px;
  text-align: right;
}
.mock-row .ic {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.mock-row .ic.bad {
  background: color-mix(in srgb, var(--bad) 18%, transparent);
}
.mock-row .ic.warn {
  background: color-mix(in srgb, var(--warn) 18%, transparent);
}
.mock-row .ic.sug {
  background: color-mix(in srgb, var(--accent) 18%, transparent);
}
.mock-row .gain.sug {
  color: var(--accent);
  font-weight: 500;
}
.mock-prompt {
  margin: 0 18px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg);
  overflow: hidden;
}
.mock-prompt .head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--muted);
}
.mock-prompt .head .chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 500;
}
.mock-prompt pre {
  border: 0;
  border-radius: 0;
  background: transparent;
  font-size: 12.5px;
  padding: 14px 16px;
  color: var(--muted);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mock-prompt pre strong {
  color: var(--text);
  font-weight: 600;
}
@media (max-width: 720px) {
  .mock-scores {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
  .mock-scores > div {
    padding: 14px 4px 12px;
  }
  .mock-scores .label {
    font-size: 11px;
  }
  .mock-row {
    grid-template-columns: 20px minmax(0, 1fr) auto;
  }
  .mock-row .cat {
    display: none;
  }
  .mock-bar .pill {
    display: none;
  }
}
/* A phone: smaller rings, each finding's points under its text, and a tighter prompt. */
@media (max-width: 480px) {
  .mock {
    border-radius: 16px;
  }
  .mock-bar {
    padding: 10px 12px;
  }
  .mock-bar .dots {
    display: none;
  }
  .mock-scores .ring {
    --size: 52px;
  }
  .mock-row {
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 2px 12px;
    padding: 12px 14px;
    font-size: 13.5px;
    line-height: 1.5;
  }
  .mock-row .ic {
    margin-top: 1px;
  }
  .mock-row .gain {
    grid-column: 2;
    min-width: 0;
    font-size: 12px;
    text-align: left;
  }
  .mock-prompt {
    margin: 0 12px 12px;
  }
  .mock-prompt .head {
    flex-wrap: wrap;
    gap: 6px 12px;
    padding: 10px 12px;
    font-size: 12px;
  }
  .mock-prompt pre {
    padding: 12px;
    font-size: 11.5px;
  }
}
/* Five labels no longer fit across, so the rings sit three over two, as the report wraps them. */
@media (max-width: 420px) {
  .mock-scores {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    padding: 8px 0 10px;
  }
  .mock-scores > div {
    grid-column: span 2;
    padding: 10px 4px;
  }
  .mock-scores > div + div {
    border-left: 0;
  }
  .mock-scores > div:nth-child(4) {
    grid-column: 2 / span 2;
  }
  .mock-scores .ring {
    --size: 56px;
  }
  .mock-scores .label {
    font-size: 12px;
  }
}

/* ---------- Rings ---------- */

.ring {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--size, 64px);
  height: var(--size, 64px);
}
.ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 6;
}
.ring .track {
  stroke: var(--border-strong);
}
.ring .arc {
  stroke: var(--c, var(--accent));
  stroke-linecap: round;
  stroke-dasharray: 100 100;
  stroke-dashoffset: calc(100 - var(--p, 0));
  transition: stroke-dashoffset 1.1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.ring .value {
  font-family: var(--sans);
  font-size: calc(var(--size, 64px) * 0.32);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--c, var(--accent));
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.ring[data-band='good'] {
  --c: var(--good);
}
.ring[data-band='warn'] {
  --c: var(--warn);
}
.ring[data-band='bad'] {
  --c: var(--bad);
}
.ring.is-off .arc {
  stroke-dashoffset: 100;
}
@media (prefers-reduced-motion: reduce) {
  .ring .arc {
    transition: none;
  }
  .btn:hover {
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ---------- Stats strip ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.stats > div {
  padding: 24px 24px 22px;
}
.stats > div + div {
  border-left: 1px solid var(--border);
}
.stats .big {
  display: block;
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.stats .what {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats > div:nth-child(3) {
    border-left: 0;
  }
  .stats > div:nth-child(n + 3) {
    border-top: 1px solid var(--border);
  }
}
@media (max-width: 480px) {
  .stats > div {
    padding: 18px 16px;
  }
  .stats .big {
    font-size: 30px;
  }
  .stats .what {
    margin-top: 8px;
    font-size: 13px;
  }
}

/* ---------- Cards and grids ---------- */

.grid {
  display: grid;
  gap: 16px;
  margin-top: 48px;
}
.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}
@media (max-width: 960px) {
  .grid-3,
  .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .grid-3,
  .grid-2,
  .grid-5 {
    grid-template-columns: 1fr;
  }
}

.card {
  position: relative;
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover {
  border-color: var(--border-strong);
}
.card h3 {
  margin-top: 16px;
}
.card p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
  text-wrap: pretty;
}
.card .icon {
  display: inline-flex;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.card.span-2 {
  grid-column: span 2;
}
.card.span-all {
  grid-column: 1 / -1;
}
@media (max-width: 640px) {
  .card.span-2 {
    grid-column: span 1;
  }
}
@media (max-width: 480px) {
  .card {
    padding: 22px 20px;
  }
  .card .demo pre {
    padding: 14px;
    font-size: 12px;
  }
}
/* A wide card: icon, copy and action side by side. */
.card-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 20px 24px;
  align-items: center;
}
.card-row h3 {
  margin-top: 0;
}
.card-row p {
  margin-top: 6px;
  max-width: 640px;
}
@media (max-width: 760px) {
  .card-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .card-row .btn {
    grid-column: 2;
    justify-self: start;
  }
}
@media (max-width: 640px) {
  .card-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .card-row .btn {
    grid-column: 1;
  }
}
.card .demo {
  margin-top: 20px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  overflow: hidden;
  font-size: 13px;
}
.card .demo pre {
  border: 0;
  border-radius: 0;
  background: transparent;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
}
.demo-rows > div {
  display: grid;
  grid-template-columns: var(--label, 24px) minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
}
.demo-rows.labelled {
  --label: 44px;
}
.demo-rows > div + div {
  border-top: 1px solid var(--border);
}
.demo-rows .n {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 12px;
}
.demo-rows .g {
  font-family: var(--mono);
  color: var(--good);
  font-weight: 600;
}
.demo-rows .d {
  font-family: var(--mono);
  font-weight: 600;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg);
  font-size: 13px;
  color: var(--text);
}
.chip .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.keys {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px 16px;
  align-items: center;
  margin: 20px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.keys dt,
.keys dd {
  margin: 0;
}

/* ---------- Category strip ---------- */

.cats {
  margin-top: 48px;
}
.cat-card {
  display: grid;
  gap: 14px;
  align-content: start;
}
.cat-card .ring {
  --size: 56px;
}
.cat-card h3 {
  margin: 0;
  font-size: 17px;
}
.cat-card p {
  margin: 0;
  font-size: 14px;
}
@media (max-width: 640px) {
  .cat-card {
    grid-template-columns: auto minmax(0, 1fr);
    gap: 4px 18px;
  }
  .cat-card .ring {
    grid-row: span 2;
  }
}

/* ---------- Agentic checks ---------- */

.checks {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 40px;
}
@media (max-width: 760px) {
  .checks {
    grid-template-columns: minmax(0, 1fr);
  }
}
.check {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14px;
}
.check .id {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 4px 0;
  text-align: center;
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 6px;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.check .w {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.check .w.sug {
  color: var(--accent);
}
/* A phone: the weight moves under the check, so the text keeps the width. */
@media (max-width: 480px) {
  .check {
    grid-template-columns: 40px minmax(0, 1fr);
    align-items: start;
    gap: 2px 12px;
    padding: 12px;
  }
  .check .id {
    grid-row: span 2;
  }
  .check .w {
    grid-column: 2;
  }
}
.formula {
  position: relative;
  display: grid;
  gap: 18px;
  margin-top: 40px;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.formula::before,
.cta .box::before,
.policy-summary::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.formula::before {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 60%);
}
.formula > * {
  position: relative;
}
.formula .eq {
  font-family: var(--mono);
  font-size: clamp(18px, 3vw, 26px);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.formula p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 720px;
}
@media (max-width: 480px) {
  .formula {
    padding: 22px 20px;
  }
  .formula .eq {
    font-size: 17px;
  }
}

/* ---------- Steps ---------- */

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}
.step {
  position: relative;
  padding: 26px 26px 26px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.step::before {
  counter-increment: step;
  content: '0' counter(step);
  display: block;
  margin-bottom: 18px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.step h3 {
  margin: 0;
}
.step p {
  margin: 10px 0 0;
  font-size: 15px;
  color: var(--muted);
}
.note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--warn);
  border-radius: 10px;
  background: var(--surface);
  font-size: 14.5px;
  color: var(--muted);
}
.note strong {
  color: var(--text);
}
@media (max-width: 480px) {
  .step {
    padding: 22px 20px;
  }
  .step::before {
    margin-bottom: 12px;
  }
  .note {
    padding: 14px 16px;
  }
}

/* ---------- Privacy bullets ---------- */

.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 40px;
}
@media (max-width: 860px) {
  .facts {
    grid-template-columns: 1fr;
  }
}
.fact {
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}
.fact .k {
  display: block;
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
}
.fact .v {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  color: var(--muted);
}
@media (max-width: 480px) {
  .fact {
    padding: 20px;
  }
}

/* ---------- FAQ ---------- */

.faq {
  margin-top: 40px;
  border-top: 1px solid var(--border);
}
.faq details {
  border-bottom: 1px solid var(--border);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 4px;
  font-size: 17px;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  font-family: var(--mono);
  font-size: 20px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 22px;
  padding: 0 4px;
  color: var(--muted);
  max-width: 760px;
  text-wrap: pretty;
}
@media (max-width: 480px) {
  .faq summary {
    padding: 18px 2px;
    font-size: 16px;
  }
  .faq details p {
    padding: 0 2px;
  }
}

/* ---------- CTA band ---------- */

.cta {
  text-align: center;
}
.cta .box {
  position: relative;
  padding: clamp(48px, 8vw, 88px) 24px;
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}
.cta .box::before {
  background: radial-gradient(70% 90% at 50% 100%, color-mix(in srgb, var(--accent) 24%, transparent), transparent 70%);
}
.cta .box > * {
  position: relative;
}
.cta h2 {
  max-width: 18ch;
  margin: 0 auto;
}
.cta p:not(.eyebrow) {
  margin: 16px auto 0;
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}
.cta .hero-ctas {
  justify-content: center;
}
@media (max-width: 480px) {
  .cta .box {
    padding: 48px 20px;
    border-radius: 20px;
  }
  .cta p:not(.eyebrow) {
    font-size: 16px;
  }
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 40px;
  font-size: 14px;
  color: var(--muted);
}
.footer .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
@media (max-width: 760px) {
  .footer .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
  }
  .footer .wrap > div:first-child {
    grid-column: 1 / -1;
  }
}
.footer h3 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text);
}
.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer li a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--muted);
  text-decoration: none;
}
.footer li a:hover {
  color: var(--text);
  text-decoration: underline;
}
.footer .brand {
  color: var(--text);
}
.footer .tag {
  margin: 10px 0 0;
  max-width: 320px;
  text-wrap: pretty;
}
.footer .fine {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Docs and prose pages ---------- */

.page {
  padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 8vw, 112px);
}
.page-head {
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 40px;
}
.page-head h1 {
  font-size: clamp(34px, 5vw, 56px);
}
.page-head .lede {
  margin-top: 14px;
}
.page-head .meta {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
}
.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}
.toc {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
  font-size: 14px;
}
.toc h2 {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.toc li a {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-left: 2px solid var(--border);
  color: var(--muted);
  min-height: 44px;
}
.toc li a:hover,
.toc li a[aria-current='true'] {
  color: var(--text);
  border-left-color: var(--accent);
}
@media (max-width: 960px) {
  .toc {
    position: static;
  }
  .toc ol {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .toc li a {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0 14px;
    min-height: 48px;
  }
}
/* A phone: the contents become one row that scrolls sideways, edge to edge, instead of a block
   of chips taller than the screen. */
@media (max-width: 640px) {
  .toc ol {
    flex-wrap: nowrap;
    overflow-x: auto;
    margin: 0 calc(var(--gutter) * -1);
    padding: 0 var(--gutter) 2px;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .toc ol::-webkit-scrollbar {
    display: none;
  }
  .toc li {
    flex: none;
  }
  .toc li a {
    min-height: 44px;
    white-space: nowrap;
  }
}

.prose {
  font-size: 16.5px;
  line-height: 1.7;
  color: var(--text);
  max-width: 760px;
}
.prose > * + * {
  margin-top: 1em;
}
.prose h2 {
  margin-top: 2.4em;
  padding-top: 0.2em;
  font-size: clamp(26px, 3vw, 32px);
}
.prose h2:first-child {
  margin-top: 0;
}
.prose h3 {
  margin-top: 1.8em;
  font-size: 20px;
}
.prose p,
.prose li {
  color: color-mix(in srgb, var(--text) 86%, var(--muted));
  text-wrap: pretty;
}
.prose strong {
  color: var(--text);
}
.prose ul,
.prose ol {
  padding-left: 1.3em;
}
.prose li + li {
  margin-top: 0.4em;
}
.prose pre {
  margin: 1.2em 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  margin: 1.2em 0;
}
.prose th,
.prose td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.prose th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--border-strong);
}
.prose td code {
  white-space: nowrap;
}
/* Key combinations such as "j / k" stay on one line. */
.prose td:has(> kbd) {
  white-space: nowrap;
}
.prose .table-wrap {
  overflow-x: auto;
  min-width: 0;
}
/* On narrow screens the tables must read without sideways scrolling, so code spans may wrap. */
@media (max-width: 760px) {
  .prose td code {
    white-space: normal;
    overflow-wrap: anywhere;
  }
  .prose th,
  .prose td {
    padding: 10px 8px;
    font-size: 14px;
  }
  .prose th:first-child,
  .prose td:first-child {
    padding-left: 0;
  }
  .prose th:last-child,
  .prose td:last-child {
    padding-right: 0;
  }
}
/* Tables marked .stack read as a list on a phone: the first cell leads each row, and the other
   cells follow under it with their column name from data-label. */
@media (max-width: 560px) {
  .prose table.stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .prose table.stack,
  .prose table.stack tbody {
    display: block;
  }
  .prose table.stack tr {
    display: grid;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
  }
  .prose table.stack td {
    display: block;
    padding: 0;
    border: 0;
  }
  .prose table.stack td:first-child {
    font-weight: 600;
    color: var(--text);
  }
  .prose table.stack td[data-label]::before {
    content: attr(data-label) ': ';
    color: var(--muted);
  }
}
.prose .callout {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 10px;
  background: var(--surface);
  font-size: 15px;
}
.prose .callout.warn {
  border-left-color: var(--warn);
  color: inherit;
}
.prose dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
}
.prose dt {
  font-weight: 600;
}
.prose dd {
  margin: 0;
}
@media (max-width: 640px) {
  .prose dl {
    grid-template-columns: 1fr;
    gap: 2px 0;
  }
  .prose dd {
    margin-bottom: 10px;
  }
}
.prose .pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.prose .pill-row a {
  text-decoration: none;
}
.policy-summary {
  position: relative;
  padding: 24px 26px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  font-size: 18px;
  line-height: 1.5;
}
.policy-summary::before {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.policy-summary > * {
  position: relative;
}
.policy-summary p {
  margin: 0;
  color: var(--text);
}
.policy-summary p + p {
  margin-top: 10px;
}
@media (max-width: 480px) {
  .policy-summary {
    padding: 20px;
    font-size: 17px;
  }
}
.anchor {
  color: inherit;
  text-decoration: none;
}
.anchor:hover::after {
  content: ' #';
  color: var(--faint);
}

/* The check catalogue has five columns. On a phone each row becomes a small card: id, weight,
   scored and required on one line, the check text below. The header row stays in the DOM for
   screen readers. */
@media (max-width: 640px) {
  .checks-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .checks-table,
  .checks-table tbody {
    display: block;
  }
  .checks-table tr {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .checks-table td {
    display: block;
    padding: 0;
    border: 0;
  }
  .checks-table td:first-child {
    font-family: var(--mono);
    font-size: 13px;
    color: var(--accent);
  }
  .checks-table td:nth-child(2),
  .checks-table td:nth-child(3),
  .checks-table td:nth-child(4) {
    font-size: 13px;
    color: var(--muted);
  }
  .checks-table td:nth-child(2)::before {
    content: 'weight ';
  }
  .checks-table td:nth-child(3)::before {
    content: 'scored: ';
  }
  .checks-table td:nth-child(4)::before {
    content: 'required: ';
  }
  .checks-table td:nth-child(5) {
    flex-basis: 100%;
  }
}
