/* CIPatch design system.
 *
 * One token set, one component set, light and dark as equals. Served as a
 * cacheable asset rather than inlined so pages stay small and the browser can
 * reuse it across navigations.
 */

:root {
  color-scheme: light dark;

  --ink: #0a0f1e;
  --ink-soft: #334155;
  --muted: #64748b;
  --hairline: #e4e9f2;
  --surface: #ffffff;
  --raised: #f7f9fc;
  --sunken: #eff3f9;

  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --brand-3: #06b6d4;
  --brand-soft: #eef0ff;

  --good: #059669;
  --good-soft: #ecfdf5;
  --warn: #b45309;
  --warn-soft: #fffbeb;
  --bad: #dc2626;
  --bad-soft: #fef2f2;

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --radius-xl: 26px;

  --shadow-xs: 0 1px 2px rgba(10, 15, 30, 0.05);
  --shadow-sm: 0 2px 6px rgba(10, 15, 30, 0.06), 0 1px 2px rgba(10, 15, 30, 0.04);
  --shadow: 0 10px 24px -12px rgba(10, 15, 30, 0.18), 0 2px 6px rgba(10, 15, 30, 0.05);
  --shadow-lg: 0 28px 60px -28px rgba(10, 15, 30, 0.34), 0 4px 14px rgba(10, 15, 30, 0.06);

  --gradient: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 52%, var(--brand-3) 100%);
  --gradient-soft: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(6, 182, 212, 0.12));

  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Inter, sans-serif;

  --nav-h: 64px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e8eefb;
    --ink-soft: #c3cde0;
    --muted: #8b9bb4;
    --hairline: #1e2a42;
    --surface: #070b14;
    --raised: #0d1424;
    --sunken: #0a1020;

    --brand: #8b93ff;
    --brand-2: #b388ff;
    --brand-3: #67e8f9;
    --brand-soft: #141a33;

    --good: #34d399;
    --good-soft: #072a20;
    --warn: #fbbf24;
    --warn-soft: #2a1f06;
    --bad: #fb7185;
    --bad-soft: #2c1117;

    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.45);
    --shadow: 0 12px 30px -14px rgba(0, 0, 0, 0.7), 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 34px 70px -30px rgba(0, 0, 0, 0.85), 0 6px 18px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--ink);
  font: 16px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* A soft, brand-tinted wash behind the top of every page. */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto 0;
  height: 620px;
  background:
    radial-gradient(900px 380px at 12% -8%, rgba(79, 70, 229, 0.16), transparent 70%),
    radial-gradient(760px 340px at 88% -12%, rgba(6, 182, 212, 0.14), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
a.plain { border: 0; }

.shell { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.narrow { max-width: 780px; }

/* ── Header ─────────────────────────────────────────────────────────────── */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}

header.site .shell {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  height: var(--nav-h);
}

.brand { display: flex; align-items: center; gap: 0.6rem; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand svg { display: block; border-radius: 8px; box-shadow: var(--shadow-sm); }
.brand .name { font-weight: 700; letter-spacing: -0.02em; font-size: 1.02rem; color: var(--ink); }

nav.site { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
nav.site a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s ease, background 0.15s ease;
}
nav.site a:hover { color: var(--ink); background: var(--sunken); text-decoration: none; }
nav.site a.active { color: var(--ink); background: var(--sunken); }

.header-cta {
  margin-left: 0.5rem;
  padding: 0.5rem 0.95rem !important;
  color: #fff !important;
  background: var(--gradient);
  box-shadow: var(--shadow-sm);
}
.header-cta:hover { filter: brightness(1.06); }

/* ── Layout ─────────────────────────────────────────────────────────────── */

main { padding: 3.5rem 0 5rem; position: relative; z-index: 1; }
section + section { margin-top: 3.5rem; }

h1 {
  font-size: clamp(2rem, 1.2rem + 2.6vw, 3.05rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0 0 0.6rem;
}
h2 { font-size: clamp(1.25rem, 1rem + 0.7vw, 1.6rem); letter-spacing: -0.02em; font-weight: 650; margin: 3rem 0 0.9rem; }
h3 { font-size: 1.05rem; letter-spacing: -0.01em; font-weight: 620; margin: 1.9rem 0 0.5rem; }
p { margin: 0 0 1rem; }

.lead { font-size: clamp(1.03rem, 0.98rem + 0.3vw, 1.2rem); color: var(--ink-soft); max-width: 46rem; margin-bottom: 1.75rem; }
.sub { color: var(--muted); margin: 0 0 1.75rem; }
.muted { color: var(--muted); font-size: 0.9rem; }
.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.right { text-align: right; }
ul, ol { padding-left: 1.15rem; }
li { margin-bottom: 0.4rem; }
li::marker { color: var(--brand); }

code, .num { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--sunken); border: 1px solid var(--hairline); padding: 0.1rem 0.4rem; border-radius: 6px; }

/* ── Hero ───────────────────────────────────────────────────────────────── */

.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; margin-bottom: 1rem; }
.hero-copy h1 { margin-bottom: 1rem; }
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; margin: 1.75rem 0 1rem; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
  background: var(--brand-soft);
  border: 1px solid var(--hairline);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--gradient); }

.hero-art {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  padding: 1.1rem;
  animation: float-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.hero-art .art-head { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.85rem; padding: 0 0.2rem; }
.hero-art .art-head .swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--gradient); }
.hero-art .art-head .label { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); }

/* ── Buttons ────────────────────────────────────────────────────────────── */

button, .btn {
  font: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.62rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  background: var(--gradient);
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.14s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); filter: brightness(1.05); text-decoration: none; }
button:active, .btn:active { transform: translateY(0); }
button:focus-visible, .btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

button.quiet, .btn-quiet {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--hairline);
  box-shadow: var(--shadow-xs);
}
button.quiet:hover { background: var(--sunken); }
button.danger { background: transparent; color: var(--bad); border-color: var(--hairline); box-shadow: none; }

/* ── Cards ──────────────────────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1rem; margin: 1.75rem 0 2rem; }
.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  /* Column with the value pushed down, so cards in a row line their numbers up
     even when one label wraps to a second line and another does not. */
  display: flex;
  flex-direction: column;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--brand) 30%, var(--hairline)); }
.card .k { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; font-weight: 600; margin-bottom: 0.4rem; }
.card .v { font-size: 1.5rem; font-weight: 700; font-family: var(--mono); letter-spacing: -0.03em; margin-top: auto; margin-bottom: 0.15rem; }
.card.highlight { border-color: color-mix(in srgb, var(--brand) 45%, var(--hairline)); box-shadow: var(--shadow); background: linear-gradient(180deg, var(--brand-soft), var(--surface)); }

.panel, .finding {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem;
  margin: 1.35rem 0;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.panel > :last-child, .finding > :last-child { margin-bottom: 0; }

.cta {
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--brand-soft), color-mix(in srgb, var(--brand-3) 10%, var(--surface)));
  padding: 1.5rem 1.6rem;
  margin: 2.25rem 0;
  box-shadow: var(--shadow-sm);
}
.cta > :last-child { margin-bottom: 0; }
.cta strong { display: block; margin-bottom: 0.3rem; font-size: 1.03rem; letter-spacing: -0.01em; }

.note { border-left: 3px solid var(--brand); padding: 0.15rem 0 0.15rem 0.9rem; color: var(--muted); font-size: 0.9rem; margin: 1rem 0; }

/* ── Badges ─────────────────────────────────────────────────────────────── */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  color: var(--muted);
  background: var(--raised);
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.7; }
.badge-good { color: var(--good); background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 28%, transparent); }
.badge-warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.badge-bad { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 28%, transparent); }

/* ── Tables ─────────────────────────────────────────────────────────────── */

.tablewrap { overflow-x: auto; margin: 1.1rem 0 1.5rem; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th {
  text-align: left;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 650;
  padding: 0.7rem 0.9rem;
  background: var(--raised);
  border-bottom: 1px solid var(--hairline);
  white-space: nowrap;
}
td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--hairline); vertical-align: top; }
tbody tr:last-child td, tr:last-child td { border-bottom: 0; }
tr:hover td { background: color-mix(in srgb, var(--brand) 4%, transparent); }

/* ── Forms ──────────────────────────────────────────────────────────────── */

form { display: flex; gap: 0.85rem; margin: 1.5rem 0; flex-wrap: wrap; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
label.inline { flex-direction: row; align-items: center; gap: 0.5rem; text-transform: none; letter-spacing: 0; font-size: 0.9rem; font-weight: 500; }
input[type=text], input[type=number], input[type=password], select {
  font: inherit;
  font-size: 0.96rem;
  font-weight: 400;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  box-shadow: var(--shadow-xs);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input:hover, select:hover { border-color: color-mix(in srgb, var(--brand) 35%, var(--hairline)); }
input[type=text] { min-width: 20rem; }
input[type=checkbox] { width: 1.05rem; height: 1.05rem; accent-color: var(--brand); }

/* ── Code ───────────────────────────────────────────────────────────────── */

pre {
  background: #0a1020;
  color: #e8eefb;
  border: 1px solid #1e2a42;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  margin: 1.1rem 0;
  box-shadow: var(--shadow-sm);
}
.ins { color: #6ee7b7; }
.del { color: #fda4af; }

/* ── Trust row ──────────────────────────────────────────────────────────── */

.trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); gap: 1.25rem; margin: 2rem 0; }
.trust .item { display: flex; gap: 0.7rem; align-items: flex-start; }
.trust .item svg { flex: 0 0 auto; color: var(--brand); margin-top: 0.15rem; }
.trust .item strong { display: block; font-size: 0.94rem; font-weight: 620; letter-spacing: -0.01em; }
.trust .item span { color: var(--muted); font-size: 0.86rem; }

/* ── Steps ──────────────────────────────────────────────────────────────── */

.steps { display: grid; gap: 1rem; margin: 1.75rem 0; }
.step { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; align-items: start; border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; background: var(--surface); box-shadow: var(--shadow-xs); }
.step .n { width: 2.25rem; height: 2.25rem; border-radius: 50%; background: var(--gradient); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; box-shadow: var(--shadow-sm); }
.step h3 { margin: 0.15rem 0 0.25rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* ── Error and toast ────────────────────────────────────────────────────── */

.err {
  display: grid;
  gap: 0.35rem;
  max-width: 36rem;
  border: 1px solid color-mix(in srgb, var(--bad) 40%, transparent);
  background: var(--bad-soft);
  color: var(--bad);
  border-radius: var(--radius);
  padding: 0.95rem 1.15rem;
  margin: 1.25rem 0;
  font-size: 0.92rem;
}
.err strong { font-weight: 650; letter-spacing: -0.01em; }
.err span { color: color-mix(in srgb, var(--bad) 72%, var(--ink-soft)); }
.err a {
  justify-self: start;
  margin-top: 0.15rem;
  color: var(--bad);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

footer.site { border-top: 1px solid var(--hairline); background: var(--raised); padding: 2.75rem 0 3.5rem; margin-top: 4rem; position: relative; z-index: 1; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
footer.site h4 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); margin: 0 0 0.75rem; font-weight: 650; }
footer.site a { display: block; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.45rem; }
footer.site a:hover { color: var(--brand); }
footer.site .brandline { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.75rem; }
footer.site .baseline { color: var(--muted); font-size: 0.88rem; max-width: 20rem; }
footer.site .legal { margin-top: 2.25rem; padding-top: 1.25rem; border-top: 1px solid var(--hairline); color: var(--muted); font-size: 0.82rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── SPA navigation ─────────────────────────────────────────────────────── */

#progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0;
  background: var(--gradient);
  z-index: 60;
  opacity: 0;
  transition: width 0.25s ease, opacity 0.25s ease;
}
#progress.on { opacity: 1; }

@view-transition { navigation: auto; }
::view-transition-old(root) { animation: fade-out 0.16s ease both; }
::view-transition-new(root) { animation: fade-in 0.2s ease both; }

@keyframes fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fade-out { from { opacity: 1; } to { opacity: 0; } }
@keyframes float-in { from { opacity: 0; transform: translateY(14px) scale(0.985); } to { opacity: 1; transform: none; } }

.page-enter { animation: fade-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both; }

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 2rem; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  header.site .shell { gap: 0.5rem; }
  nav.site { gap: 0; }
  nav.site a { padding: 0.4rem 0.5rem; font-size: 0.85rem; }
  .brand .name { display: none; }
  input[type=text] { min-width: 0; width: 100%; }
  footer.site .cols { grid-template-columns: 1fr; gap: 1.5rem; }

  /* Metric cards were one per row, so a scan result put four tall cards — about
     700px of scrolling — between the reader and the first finding. Two columns
     keeps the numbers scannable and gets the content above the fold. */
  .cards, .stat-row { grid-template-columns: 1fr 1fr; gap: 0.7rem; }
  .card, .stat { padding: 0.8rem 0.9rem; }
  .card .v { font-size: 1.2rem; }
  .stat .n { font-size: 1.35rem; }
  .card .k, .stat .l { font-size: 0.68rem; letter-spacing: 0.05em; }

  /* One column of plan cards is right — a plan needs its whole feature list —
     but the page padding can give a little back. */
  .shell { padding: 0 1.1rem; }
  .plan { padding: 1.35rem 1.25rem; }

  /* The diff is the point of a finding; give it the full width and let it
     scroll inside itself rather than being clipped by the card. */
  .finding pre { margin-left: -0.4rem; margin-right: -0.4rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}

/* ── Pricing ────────────────────────────────────────────────────────────── */

.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(14.5rem, 1fr)); gap: 1.1rem; margin: 2rem 0 2.5rem; }

.plan {
  position: relative;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  padding: 1.75rem 1.6rem;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

.plan.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--gradient) border-box;
  box-shadow: var(--shadow-lg);
}
.plan.featured::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: radial-gradient(420px 180px at 80% -20%, rgba(79, 70, 229, 0.16), transparent 70%);
  pointer-events: none;
}

.plan h3 { margin: 0.6rem 0 0.35rem; font-size: 1.15rem; letter-spacing: -0.02em; }
.plan .plan-tag { font-size: 0.86rem; color: var(--muted); margin: 0 0 1.1rem; }
.plan .price { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.2rem; }
.plan .price .amount {
  font-size: 2.6rem;
  font-weight: 700;
  letter-spacing: -0.045em;
  font-family: var(--mono);
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.plan .price .unit { font-size: 0.95rem; color: var(--muted); font-weight: 550; }
.plan .price-note { font-size: 0.88rem; color: var(--muted); margin-bottom: 1.35rem; min-height: 2.6rem; }

.feature-list { list-style: none; padding: 0; margin: 0 0 1.5rem; flex: 1 1 auto; }
.feature-list li { position: relative; padding-left: 1.6rem; margin-bottom: 0.55rem; font-size: 0.92rem; color: var(--ink-soft); }
.feature-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: var(--gradient);
}
.feature-list li.muted-item::before { background: var(--sunken); color: var(--muted); content: "–"; }
.plan .btn, .plan button { width: 100%; }

.plan-badge {
  align-self: flex-start;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  color: #fff;
  background: var(--gradient);
  box-shadow: var(--shadow-sm);
}
.plan-badge.plain { color: var(--muted); background: var(--sunken); box-shadow: none; }

/* Two-tone chart: what you keep vs what you pay. */
.chart { display: grid; grid-auto-flow: column; gap: 1.1rem; align-items: end; overflow-x: auto; margin: 2rem 0 1rem; padding: 1.5rem 1.6rem 1.1rem; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-xs); }
.chart .col { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; min-width: 4.4rem; }
.chart .col .bill { font-family: var(--mono); font-size: 0.86rem; font-weight: 700; }
.chart .col .saved { font-size: 0.78rem; color: var(--muted); font-family: var(--mono); white-space: nowrap; }
.chart .track { width: 100%; height: 130px; border-radius: 10px; background: linear-gradient(180deg, var(--good-soft), color-mix(in srgb, var(--good) 22%, var(--surface))); display: flex; align-items: flex-end; overflow: hidden; border: 1px solid color-mix(in srgb, var(--good) 25%, transparent); }
.chart .fill { width: 100%; background: var(--gradient); border-radius: 10px 10px 0 0; }
.chart .track.empty { background: repeating-linear-gradient(135deg, var(--sunken), var(--sunken) 5px, transparent 5px, transparent 11px); border-style: dashed; }
.chart .share-0 { height: 0; }
.chart .share-2 { height: 2%; }
.chart .share-6 { height: 6%; }
.chart .share-9 { height: 9%; }
.chart .share-12 { height: 12%; }
.chart .share-18 { height: 18%; }
.chart .share-20 { height: 20%; }
.chart .legend { grid-column: 1 / -1; justify-content: center; display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0.5rem 0 0; padding-top: 0.9rem; border-top: 1px solid var(--hairline); font-size: 0.84rem; color: var(--muted); }
.chart .legend .swatch { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 0.4rem; vertical-align: middle; }
.chart .legend .swatch.paid { background: var(--gradient); }
.chart .legend .swatch.kept { background: color-mix(in srgb, var(--good) 45%, var(--surface)); }

.faq { display: grid; gap: 0.6rem; margin: 1.5rem 0; }
.faq details { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 0.95rem 1.15rem; background: var(--surface); box-shadow: var(--shadow-xs); }
.faq summary { cursor: pointer; font-weight: 600; letter-spacing: -0.01em; list-style: none; display: flex; align-items: center; gap: 0.6rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; color: var(--brand); font-weight: 800; width: 1rem; }
.faq details[open] summary::before { content: "–"; }
.faq details p { margin: 0.7rem 0 0; color: var(--muted); }

.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 1.75rem 0 0; }
.stat { border: 1px solid var(--hairline); border-radius: var(--radius-lg); padding: 1.1rem 1.25rem; background: linear-gradient(180deg, var(--brand-soft), var(--surface)); }
.stat .n { font-size: 1.85rem; font-weight: 700; font-family: var(--mono); letter-spacing: -0.04em; }
.stat .l { font-size: 0.86rem; color: var(--muted); }

/* ── Consent ────────────────────────────────────────────────────────────── */

/* An acknowledgement before money moves, laid out so it reads as a sentence
   rather than a form control to skim past. */
label.check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  margin: 0.9rem 0 1.1rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--raised);
  font-size: 0.92rem;
  color: var(--ink-soft);
  cursor: pointer;
}
/* Sentence case, because this label is a statement to read and agree to, not a
   field name: the global label rule uppercases and that turns consent into a
   shout that nobody reads. */
label.check { text-transform: none; letter-spacing: 0; font-weight: 500; }
label.check input { margin-top: 0.15rem; accent-color: var(--brand); width: 1.05rem; height: 1.05rem; }
label.check input:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

/* The honeypot: present for a bot, unreachable for a person. Not display:none,
   because some bots skip hidden fields; moved off-screen and taken out of the
   tab order and the accessibility tree instead. */
label.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── Basics ─────────────────────────────────────────────────────────────── */

/* Reachable by keyboard before the nav, invisible until it is needed. */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 0.7rem 1rem;
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--brand);
  border-radius: 0 0 var(--radius) 0;
  font-weight: 600;
}
.skip:focus { left: 0; }

/* A disabled submit that is working, not broken: keep it legible. */
button[disabled] { opacity: 0.75; cursor: progress; }

/* The share line on a scan report: the address, and one way to take it. */
p.share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 0.6rem 0 0;
}
p.share code {
  font-size: 0.82rem;
  word-break: break-all;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  background: var(--sunken);
}
