/* Product surfaces: checkout, payment, reports, agent API and legal pages.
   Uses the same tokens, type scale and surface language as the homepage. */

body {
  font-size: 1rem;
  line-height: 1.6;
  font-synthesis: none;
  -moz-osx-font-smoothing: grayscale;
}

main { overflow-x: clip; }
h1, h2, h3, h4, h5 { font-weight: 600; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h1, h2 { font-family: var(--serif); font-weight: var(--serif-weight); font-optical-sizing: auto; }
h3 { font-family: var(--serif); font-weight: var(--serif-weight); }
p { text-wrap: pretty; }

:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.site-header {
  min-height: var(--header-height);
  background: color-mix(in oklch, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.6) blur(16px);
  backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line);
}

.header-inner {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 24px;
  min-height: var(--header-height);
}

.brand {
  justify-self: start;
  min-height: 44px;
  font-size: 1.625rem;
  font-weight: calc(var(--serif-weight) + 100);
  line-height: 1;
  letter-spacing: -0.03em;
}

.nav-links { gap: 2px; }
.nav-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 12px;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-radius: 8px;
  transition-property: color, background-color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}

.nav-links a:hover {
  color: var(--ink);
  background: oklch(0.3 0.02 160 / 0.06);
}

.nav-links a[aria-current="page"] { color: var(--green); }

.header-cta { justify-self: end; }

.nav-toggle {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 8px;
}
.nav-toggle span {
  width: 18px;
  height: 1.5px;
  margin: 5px auto;
  border-radius: 1px;
  transition-property: transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }

.btn {
  min-height: 48px;
  padding: 12px 22px;
  color: var(--ink);
  background: var(--surface);
  border: 0;
  border-radius: var(--radius-small);
  box-shadow: var(--shadow-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  transform: none;
  transition-property: color, background-color, box-shadow, scale;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.btn > span[aria-hidden="true"] {
  display: inline-block;
  transition-property: translate;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}
.btn:hover > span[aria-hidden="true"] { translate: 3px 0; }
.btn:hover { box-shadow: 0 0 0 1px var(--line-strong), 0 1px 2px oklch(0.25 0.02 160 / 0.08); }
.btn:active:not(:disabled):not(.is-loading) { scale: 0.96; transform: none; }
.btn:disabled,
.btn.is-loading,
.btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; scale: 1; transform: none; }
.btn-primary {
  color: oklch(0.985 0.01 150);
  background: var(--green);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.12), 0 0 0 1px var(--green-dark), 0 1px 2px oklch(0.25 0.05 167 / 0.2), 0 4px 12px -4px oklch(0.3 0.06 167 / 0.4);
}
.btn-primary:hover {
  background: var(--green-hover);
  box-shadow: inset 0 1px 0 oklch(1 0 0 / 0.1), 0 0 0 1px var(--green-dark), 0 1px 2px oklch(0.25 0.05 167 / 0.2), 0 6px 16px -4px oklch(0.3 0.06 167 / 0.45);
}
.btn-secondary {
  color: var(--green);
  background: var(--surface);
  box-shadow: 0 0 0 1px oklch(0.425 0.079 166.6 / 0.35), 0 1px 2px oklch(0.25 0.02 160 / 0.06);
}
.btn-secondary:hover {
  background: var(--surface-green);
  box-shadow: 0 0 0 1px oklch(0.425 0.079 166.6 / 0.55), 0 1px 2px oklch(0.25 0.02 160 / 0.06);
}
.btn-ghost { color: var(--ink); background: transparent; box-shadow: 0 0 0 1px var(--line-strong); }
.btn-ghost:hover { color: var(--green); background: var(--surface); }
.btn-small { min-height: 40px; padding: 8px 16px; font-size: 0.875rem; }
.btn-spinner { border-width: 2px; }

.field { gap: 8px; }
.field label { font-size: 0.875rem; font-weight: 600; }
.field small,
.field-hint { font-size: 0.8125rem; line-height: 1.5; }
input,
select,
textarea {
  min-height: 48px;
  padding: 11px 14px;
  background: var(--surface);
  border-color: var(--border-strong);
  border-radius: var(--radius-small);
  font-size: 1rem;
  line-height: 1.4;
  transition-property: border-color, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
input:hover,
select:hover,
textarea:hover { border-color: var(--muted-light); }
input:focus,
select:focus,
textarea:focus { background: var(--surface); border-color: var(--green); outline: 2px solid transparent; outline-offset: 2px; box-shadow: var(--focus-ring); }
input:focus-visible,
select:focus-visible,
textarea:focus-visible { outline-color: var(--green); }
input::placeholder,
textarea::placeholder { color: var(--muted-light); opacity: 1; }
input[type="checkbox"],
input[type="radio"] { width: 18px; min-height: 18px; accent-color: var(--green); }

.form-error {
  padding: 12px 14px;
  color: var(--danger);
  background: var(--danger-soft);
  border: 0;
  border-left: 3px solid var(--danger);
  border-radius: 8px;
  font-size: 0.875rem;
  line-height: 1.55;
}
.field .form-error { margin: 0; }
input[aria-invalid="true"],
select[aria-invalid="true"] { border-color: var(--danger); }
input[aria-invalid="true"]:focus-visible,
select[aria-invalid="true"]:focus-visible { outline-color: var(--danger); }
.checkout-consent input[aria-invalid="true"] { outline: 2px solid var(--danger); outline-offset: 3px; }

.eyebrow { margin-bottom: 16px; font-size: 0.75rem; letter-spacing: 0.09em; }
.clear,
.text-button { min-height: 40px; font-size: 0.875rem; }

#toast-root,
#admin-toast-root { right: 20px; bottom: 20px; gap: 10px; width: min(380px, calc(100% - 40px)); }
.toast,
.admin-toast {
  padding: 14px 16px;
  border: 1px solid oklch(1 0 0 / 0.14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  font-size: 0.875rem;
  line-height: 1.5;
  transition-property: opacity, transform;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}

/* ── Shared page frame ───────────────────────────────────────────────── */
.checkout-main,
.agents-main,
.legal-main {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
}
.report-main { width: min(100% - 48px, var(--shell)); margin-inline: auto; }

.site-footer {
  padding-block: 56px 28px;
  background: var(--surface-soft);
  border-top: 0;
  box-shadow: inset 0 1px 0 var(--line);
}
.footer-top { padding-bottom: 40px; gap: 48px; }
.footer-top p { max-width: 30em; margin-top: 10px; font-size: 0.9375rem; line-height: 1.6; }
.footer-links { gap: 0 28px; padding-top: 0; }
.footer-links a,
.footer-bottom a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 40px;
  padding-inline: 4px;
  margin-inline: -4px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  text-decoration: none;
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.footer-links a:hover,
.footer-bottom a:hover { color: var(--green); text-decoration: none; }
.footer-bottom { padding-top: 12px; border-top: 1px solid var(--line); }
.footer-bottom p,
.footer-bottom a { font-size: 0.8125rem; }
.footer-bottom > div { gap: 0 22px; }

/* ── Checkout ───────────────────────────────────────────────────────── */
.checkout-main { padding-block: 56px 96px; }
.checkout-header-title { font-size: 0.75rem; letter-spacing: 0.08em; }
.checkout-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.875rem;
  transition-property: color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}

.checkout-heading {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px 48px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line);
}
.checkout-heading .eyebrow { margin-bottom: -4px; }
.checkout-heading h1 {
  margin: 0;
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
}
.checkout-heading > p:not(.eyebrow) {
  max-width: 64ch;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
}
.checkout-progress {
  grid-auto-flow: column;
  gap: 8px;
  align-self: center;
}
.checkout-progress li {
  gap: 8px;
  min-height: 40px;
  padding: 4px 12px 4px 4px;
  color: var(--muted);
  background: var(--surface);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-size: 0.8125rem;
  font-weight: 500;
}
.checkout-progress span {
  width: 30px;
  height: 30px;
  color: var(--muted);
  background: var(--surface-soft);
  border: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.checkout-progress li.active,
.checkout-progress li.done { color: var(--green); background: var(--surface-green); box-shadow: 0 0 0 1px oklch(0.425 0.079 166.6 / 0.2); }
.checkout-progress li.active span,
.checkout-progress li.done span { color: var(--surface); background: var(--green); }

.checkout-layout {
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 40px;
  padding-top: 40px;
}
.checkout-flow { gap: 20px; }
.checkout-card {
  padding: 32px;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-sm);
}
.checkout-card-head { gap: 24px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.checkout-card-head > div { gap: 12px; }
.checkout-card-head h2 { font-family: var(--serif); font-size: 1.75rem; line-height: 1.1; }
.step-number { color: var(--green); font-family: var(--mono); font-size: 0.75rem; font-weight: 500; letter-spacing: 0.06em; }
.checkout-note { color: var(--muted); font-size: 0.8125rem; }

.checkout-plans { gap: 12px; padding-top: 24px; }
.checkout-plan {
  padding: 20px 22px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
  transition-property: background-color, box-shadow, translate;
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
}
.checkout-plan:hover { background: var(--surface); box-shadow: var(--shadow-sm); translate: 0 -1px; }
.checkout-plan.selected {
  background: var(--surface-green);
  border-color: transparent;
  box-shadow: 0 0 0 1px var(--green), 0 4px 14px -8px oklch(0.3 0.06 167 / 0.45);
}
.checkout-plan.featured:not(.selected) { box-shadow: 0 0 0 1px oklch(0.425 0.079 166.6 / 0.24); }
.checkout-plan-radio {
  top: 22px;
  right: 20px;
  width: 18px;
  height: 18px;
  border-color: var(--border-strong);
  transition-property: border-width, border-color, background-color;
  transition-duration: 150ms;
  transition-timing-function: var(--ease);
}
.checkout-plan.selected .checkout-plan-radio { border: 5px solid var(--green); }
.checkout-plan:has(input:focus-visible) { box-shadow: 0 0 0 2px var(--green), var(--focus-ring); }
.checkout-plan-top { gap: 24px; padding-right: 32px; }
.checkout-plan-top > span:first-child { gap: 4px; }
.checkout-plan-top strong { font-family: var(--serif); font-size: 1.5rem; font-weight: var(--serif-weight); }
.checkout-plan-top small { color: var(--green); font-size: 0.8125rem; font-weight: 600; }
.checkout-plan-price { font-family: var(--serif); font-size: 1.75rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.checkout-plan-description { margin-top: 12px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; }
.checkout-plan-best-for { margin-top: 10px; font-size: 0.875rem; }
.checkout-plan-features { gap: 8px 20px; margin-top: 16px; }
.checkout-plan-features > span { padding-left: 14px; font-size: 0.875rem; line-height: 1.45; }
.checkout-plan-features i { top: 0.65em; width: 6px; height: 1.5px; }

.checkout-fields { gap: 20px; padding-top: 24px; }
.scope-picker { gap: 12px; padding: 24px 0; }
.scope-option-body {
  gap: 14px;
  min-height: 86px;
  padding: 18px;
  background: var(--surface-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--line);
  transition-property: background-color, box-shadow;
  transition-duration: 180ms;
  transition-timing-function: var(--ease);
}
.scope-option:hover .scope-option-body { background: var(--surface); box-shadow: var(--shadow-sm); }
.scope-option.selected .scope-option-body { background: var(--surface-green); box-shadow: 0 0 0 1px var(--green); }
.scope-option:has(input:focus-visible) .scope-option-body { outline: 2px solid var(--green); outline-offset: 3px; }
.scope-icon {
  width: 40px;
  height: 40px;
  color: var(--green);
  background: var(--mint);
  border: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
}
.scope-option-body strong { font-size: 0.9375rem; font-weight: 600; }
.scope-option-body small { color: var(--muted); font-size: 0.8125rem; line-height: 1.45; }
.scope-check { width: 20px; height: 20px; border-color: var(--border-strong); }
.scope-option.selected .scope-check { background: var(--green); border-color: var(--green); }
.scope-option.selected .scope-check::after { width: 8px; height: 4px; border-width: 0 0 1.5px 1.5px; }

.scope-panel { padding: 20px; background: var(--surface-soft); border-radius: var(--radius); }
.scope-panel-head { gap: 24px; }
.scope-panel-head strong { font-size: 0.9375rem; }
.scope-panel-head p { max-width: 62ch; margin-top: 4px; color: var(--muted); font-size: 0.875rem; line-height: 1.55; }
.page-preview { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.page-preview-empty { font-size: 0.875rem; }
.preview-result-head { margin-bottom: 12px; font-size: 0.8125rem; }
.preview-result-head strong { font-size: 0.875rem; }
.page-url-list,
.page-choice-list {
  gap: 0;
  max-height: 320px;
  background: var(--surface);
  border: 0;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.page-url-list li,
.page-choice {
  min-height: 52px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.page-url-list li:last-child,
.page-choice-list li:last-child { border-bottom: 0; }
.page-index { font-family: var(--mono); font-size: 0.75rem; }
.page-url-list strong,
.page-choice strong { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; }
.page-url-list small,
.page-choice small { font-size: 0.75rem; }
.page-choice { transition-property: background-color; transition-duration: 150ms; transition-timing-function: var(--ease); }
.page-choice:hover { background: var(--surface-green); }
.page-choice:has(input:checked) { background: var(--surface-green); box-shadow: inset 0 0 0 1px var(--green); }
.page-choice.disabled:hover { background: transparent; }
.page-choice:has(input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.page-choice input { width: 17px; min-height: 17px; }
.add-page-row { gap: 8px; margin-top: 16px; }
.checkout-payment-details .checkout-fields-compact { align-items: center; }
.payment-assurance { gap: 14px; padding: 8px 0; }
.payment-assurance > span { width: 40px; height: 40px; background: var(--surface-green); border: 0; font-family: var(--mono); font-size: 0.75rem; }
.payment-assurance strong { font-size: 0.875rem; }
.payment-assurance small { font-size: 0.8125rem; line-height: 1.45; }

.checkout-summary { top: calc(var(--header-height) + 24px); gap: 16px; }
.summary-card { padding: 24px; background: var(--surface); border: 1px solid transparent; border-radius: var(--radius-large); box-shadow: var(--shadow-md); }
.summary-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); font-size: 0.75rem; letter-spacing: 0.08em; }
.summary-plan { padding: 20px 0 18px; }
.summary-plan > div { gap: 4px; }
.summary-plan strong { font-family: var(--serif); font-size: 1.5rem; font-weight: var(--serif-weight); }
.summary-plan small { font-size: 0.8125rem; line-height: 1.45; }
.summary-plan > span { font-family: var(--serif); font-size: 1.75rem; font-variant-numeric: tabular-nums; }
.summary-lines { gap: 10px; padding: 16px 0; border-color: var(--line); }
.summary-lines > div { font-size: 0.875rem; }
.summary-lines strong { font-weight: 500; }
.summary-total { padding: 18px 0; }
.summary-total span { font-size: 0.9375rem; font-weight: 600; }
.summary-total strong { font-family: var(--serif); font-size: 2rem; font-variant-numeric: tabular-nums; }
.checkout-consent { gap: 10px; margin-bottom: 16px; color: var(--ink-soft); font-size: 0.8125rem; line-height: 1.55; }
.checkout-consent input { width: 24px; min-height: 24px; margin-top: 0; }
.checkout-submit { min-height: 48px; }
.summary-footnote { margin-top: 10px; font-size: 0.75rem; line-height: 1.5; }
.summary-help { padding: 20px; background: var(--surface-green); border: 1px solid transparent; border-radius: var(--radius); box-shadow: 0 0 0 1px oklch(0.425 0.079 166.6 / 0.16); }
.summary-help strong { font-size: 0.875rem; }
.summary-help p { margin-top: 6px; font-size: 0.8125rem; line-height: 1.55; }
.checkout-skeleton,
.checkout-error-card { padding: 20px; background: var(--surface-soft); border-radius: 12px; font-size: 0.875rem; }
.checkout-error-card p { margin-top: 6px; }

/* ── Payment ───────────────────────────────────────────────────────── */
.payment-stage { padding-top: 48px; }
.payment-stage-head { gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.payment-stage-head h2 { margin-bottom: 8px; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1; }
.payment-stage-head p:not(.eyebrow) { max-width: 60ch; font-size: 1rem; line-height: 1.6; }
.payment-order-meta { gap: 4px; font-size: 0.8125rem; }
.payment-order-meta span { font-family: var(--mono); }
.payment-order-meta strong { font-family: var(--serif); font-size: 1.875rem; font-weight: var(--serif-weight); font-variant-numeric: tabular-nums; }
.payment-stage-grid { grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; padding-top: 24px; }
.payment-widget-card,
.payment-status-card { border: 1px solid transparent; border-radius: var(--radius-large); box-shadow: var(--shadow-md); }
.payment-widget-bar { padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 0.8125rem; }
.payment-widget-bar i { width: 8px; height: 8px; box-shadow: 0 0 0 4px var(--success-soft); }
#nanswap-widget,
.widget-loading { min-height: 620px; }
.widget-loading { gap: 12px; font-size: 0.875rem; }
.demo-payment-panel { padding: 56px 32px; }
.demo-payment-panel h3 { margin-bottom: 10px; font-size: 2rem; }
.demo-payment-panel p { max-width: 48ch; margin-bottom: 24px; font-size: 0.9375rem; line-height: 1.6; }
.demo-chip { margin-bottom: 20px; padding: 5px 10px; border-radius: 999px; font-size: 0.75rem; }
.payment-status-card { padding: 28px; }
.payment-pulse { width: 48px; height: 48px; margin-bottom: 18px; background: var(--warning-soft); border: 0; }
.payment-pulse span { width: 9px; height: 9px; box-shadow: 0 0 0 5px oklch(0.485 0.094 66.7 / 0.12); }
.payment-status-card.is-confirmed .payment-pulse { background: var(--success-soft); }
.payment-status-card.is-confirmed .payment-pulse span { box-shadow: 0 0 0 5px oklch(0.455 0.079 160.9 / 0.14); }
.payment-status-card.is-error .payment-pulse { background: var(--danger-soft); }
.payment-status-card h3 { margin-bottom: 8px; font-family: var(--serif); font-size: 1.5rem; font-weight: var(--serif-weight); }
.payment-status-card > p { margin-bottom: 22px; color: var(--ink-soft); font-size: 0.875rem; line-height: 1.55; }
.payment-status-list { gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.payment-status-list > div { font-size: 0.8125rem; }
.payment-status-list strong { font-weight: 500; }
.payment-manual-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: 18px; font-size: 0.8125rem; }

/* ── Report ────────────────────────────────────────────────────────── */
.report-page { background: var(--bg); }
.report-main { padding-block: 48px 96px; }
.report-header-inner { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
.report-page-heading { align-items: flex-end; gap: 40px; padding-bottom: 32px; }
.report-page-heading h1 { font-size: clamp(2.75rem, 5.5vw, 4.25rem); line-height: 0.98; letter-spacing: -0.03em; }
.report-page-heading p:not(.eyebrow) { max-width: 52ch; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.report-panel { background: var(--surface); border: 1px solid transparent; border-radius: 24px; box-shadow: var(--shadow-md); }
.report-head {
  position: relative;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 40px;
  padding: 40px;
  color: var(--surface);
  background: radial-gradient(ellipse 74% 110% at 18% 0%, oklch(0.42 0.07 165 / 0.6), transparent 70%), var(--green-dark);
}
.report-head h2 { margin-bottom: 10px; color: var(--green-light); font-size: 0.75rem; letter-spacing: 0.1em; }
.report-expiry {
  position: absolute;
  z-index: 1;
  top: 16px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--green-light);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.report-expiry::before { width: 5px; height: 5px; background: var(--mint); border-radius: 50%; content: ""; }
.report-expiry.is-expired { color: var(--mint); }
.report-url { gap: 8px 10px; color: var(--green-light); font-family: var(--mono); font-size: 0.8125rem; line-height: 1.55; }
.score-chip {
  gap: 7px;
  padding: 5px 10px;
  color: var(--ink);
  background: var(--surface);
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: none;
}
.score-chip::before { width: 7px; height: 7px; background: currentColor; border-radius: 50%; content: ""; }
.score-wrap { gap: 24px; }
.score-ring,
.score-ring svg { width: 128px; height: 128px; }
.ring-bg { stroke: oklch(1 0 0 / 0.14); }
.ring-fg { stroke: var(--mint); }
.score-label { flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-top: 0; line-height: 1; white-space: nowrap; }
.score-label strong { font-family: var(--serif); font-size: 3rem; font-weight: var(--serif-weight); font-variant-numeric: lining-nums tabular-nums; line-height: 1; letter-spacing: -0.03em; }
.score-label span { margin-top: 0; color: var(--green-light); font-size: 0.75rem; line-height: 1; }
.score-verdict { gap: 6px; max-width: 260px; }
.score-verdict strong { font-family: var(--serif); font-size: 1.75rem; font-weight: var(--serif-weight); line-height: 1.1; }
.score-verdict span { color: var(--green-light); font-size: 0.875rem; line-height: 1.55; }

.summary-chips { background: var(--surface-green); border-bottom: 1px solid var(--line); }
.summary-chip { padding: 18px 20px; border-right: 1px solid var(--line); }
.summary-chip:last-child { border-right: 0; }
.summary-chip span { margin-bottom: 4px; font-size: 0.75rem; }
.summary-chip strong { font-size: 0.9375rem; font-variant-numeric: tabular-nums; }

.fix-prompt {
  gap: 8px 28px;
  margin: 24px 40px 0;
  padding: 24px 28px;
  background: var(--surface-green);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px oklch(0.425 0.079 166.6 / 0.22);
}
.fix-prompt-copy { gap: 4px; }
.fix-prompt-kicker { font-size: 0.75rem; letter-spacing: 0.08em; }
.fix-prompt-copy h3 { font-family: var(--serif); font-size: 1.625rem; font-weight: var(--serif-weight); letter-spacing: -0.02em; }
.fix-prompt-copy > p:last-child { max-width: 68ch; font-size: 0.9375rem; line-height: 1.55; }
.fix-prompt-actions { gap: 12px; }
.fix-prompt-actions .btn { min-height: 44px; padding: 10px 18px; font-size: 0.875rem; }
.fix-prompt-preview { margin-top: 8px; border-top: 1px solid var(--line-strong); }
.fix-prompt-preview > summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding-top: 10px;
  font-size: 0.875rem;
}
.fix-prompt-preview > summary::after,
.report-disclosure > summary::after,
.finding-severity-group > summary::after,
.finding-pages summary::after {
  display: inline-block;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  margin-left: auto;
  background: linear-gradient(var(--green) 0 0) 50% 50% / 10px 1.5px no-repeat,
    linear-gradient(var(--green) 0 0) 50% 50% / 1.5px 10px no-repeat,
    var(--surface);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
  content: "";
  transition-property: rotate, background-color;
  transition-duration: 200ms;
  transition-timing-function: var(--ease);
}
.fix-prompt-preview > summary::after { order: 3; }
.fix-prompt-preview[open] > summary::after,
.report-disclosure[open] > summary::after,
.finding-severity-group[open] > summary::after,
.finding-pages[open] summary::after { rotate: 45deg; }
.fix-prompt textarea {
  min-height: 180px;
  padding: 16px;
  margin-top: 12px;
  background: var(--surface);
  border-color: var(--line-strong);
  border-radius: var(--radius-small);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.6;
}
.fix-prompt-foot { margin-top: 10px; font-size: 0.8125rem; line-height: 1.55; }
.fix-prompt.agent-setup-prompt { margin: 0; padding: 30px; }
.agent-setup-prompt .fix-prompt-copy h3 { font-size: 1.75rem; }
.agent-setup-prompt .fix-prompt-preview textarea { min-height: 300px; }

.report-categories { gap: 12px; margin: 24px 40px 0; border: 0; }
.report-category { padding: 20px; background: var(--surface-soft); border: 0; border-radius: var(--radius); }
.report-category:last-child { border-right: 0; }
.report-category-head { margin-bottom: 14px; }
.report-category-head span { font-size: 0.8125rem; }
.report-category-head strong { font-family: var(--serif); font-size: 1.75rem; font-weight: var(--serif-weight); font-variant-numeric: tabular-nums; }
.report-category-track { height: 6px; background: var(--surface); border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line); }
.report-category-track span { background: var(--green); border-radius: inherit; }

.report-grid { padding: 0 40px; }
.report-sec { padding: 32px 0; border-bottom: 1px solid var(--line); }
.report-sec h4 { margin-bottom: 18px; font-family: var(--sans); font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; }
.report-sec h5 { margin: 20px 0 10px; font-size: 0.75rem; letter-spacing: 0.06em; }
.finding-groups { border-top: 1px solid var(--line); }
.finding-severity-group { border-bottom: 1px solid var(--line); }
.finding-severity-group > summary { min-height: 56px; padding: 16px 0; font-size: 1rem; }
.finding-group-title { gap: 10px; }
.finding-group-title::before { width: 7px; height: 7px; }
.finding-group-count { font-size: 0.8125rem; }
.findings { padding-bottom: 8px; border-top: 1px solid var(--line); }
.finding { padding: 20px 0; border-color: var(--line); }
.finding-top { gap: 8px; }
.finding-sev { position: relative; gap: 0; padding: 4px 10px 4px 24px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; }
.finding-sev::before { position: absolute; top: 50%; left: 10px; width: 6px; height: 6px; background: currentColor; border-radius: 50%; translate: 0 -50%; content: ""; }
.finding-group { font-size: 0.8125rem; }
.finding-evidence { margin-top: 4px; color: var(--ink); font-size: 1rem; font-weight: 500; line-height: 1.55; }
.finding-reco { margin-top: 8px; color: var(--ink-soft); font-size: 0.9375rem; line-height: 1.55; }
.finding-pages { margin-top: 10px; }
.finding-pages summary,
.report-disclosure summary { min-height: 44px; padding: 8px 0; font-size: 0.875rem; font-weight: 600; }
.finding-pages ul { gap: 6px; padding: 12px 14px; margin-top: 10px; background: var(--surface-soft); border-radius: 10px; }
.finding-pages li,
.finding-pages a { font-family: var(--mono); font-size: 0.75rem; line-height: 1.55; }
.no-findings { padding: 16px 18px; background: var(--success-soft); border: 0; border-left: 3px solid var(--success); border-radius: 8px; font-size: 0.875rem; }
.discovery-summary { gap: 14px; padding: 16px; background: var(--surface-soft); border-radius: 12px; }
.discovery-mark { width: 32px; height: 32px; background: var(--surface); border-color: var(--line-strong); font-size: 0.75rem; }
.discovery-summary strong { font-size: 0.875rem; }
.discovery-summary p { margin-top: 3px; font-size: 0.8125rem; line-height: 1.55; }

.pages-table-wrap,
.check-group,
.agent-table-wrap,
.legal-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  border: 1px solid transparent;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}
.pages-table-wrap:focus-visible,
.check-group:focus-visible,
.agent-table-wrap:focus-visible,
.legal-table-wrap:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }
.check-group { margin-bottom: 16px; }
.pages-table,
.check-table,
.legal-table,
.agent-table { font-size: 0.875rem; }
.pages-table th,
.check-table th,
.legal-table th,
.agent-table th { padding: 12px 14px; background: var(--surface-soft); border-bottom: 1px solid var(--line); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; }
.pages-table td,
.check-table td,
.legal-table td,
.agent-table td { padding: 12px 14px; border-color: var(--line); line-height: 1.5; }
.pages-table td:first-child { min-width: 220px; }
.pages-table td:first-child a { font-family: var(--mono); font-size: 0.8125rem; font-weight: 500; }
.pages-table td:first-child span { font-family: var(--mono); font-size: 0.75rem; }
.page-score { width: 40px; height: 40px; font-size: 0.8125rem; }
.check-table td:first-child { width: 72px; }
.check-status { font-size: 0.75rem; letter-spacing: 0.04em; }
.check-unverified .check-status { color: var(--muted); }
.check-name { font-weight: 500; }

.report-disclosure { margin-top: 0; }
.report-disclosure > summary { display: flex; width: 100%; min-height: 56px; padding: 14px 0; font-size: 1rem; }
.report-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.report-disclosure-body { padding-top: 20px; }
.meta-grid { border: 0; border-radius: 12px; box-shadow: var(--shadow-sm); overflow: hidden; }
.meta-item { padding: 14px 16px; border-color: var(--line); }
.meta-item span { margin-bottom: 4px; font-size: 0.75rem; }
.meta-item strong { font-size: 0.8125rem; line-height: 1.5; }
.meta-item:nth-child(5) strong,
.meta-item:nth-child(12) strong { font-family: var(--mono); overflow-wrap: anywhere; }
.report-compare { padding-top: 28px; }
.compare-head { gap: 12px; }
.compare-delta { padding: 4px 8px; border-radius: 999px; font-size: 0.75rem; font-variant-numeric: tabular-nums; }
.compare-note,
.compare-empty { margin: 8px 0 14px; font-size: 0.8125rem; }
.compare-lists { gap: 14px; }
.compare-lists > div { padding: 16px; background: var(--surface-soft); border-radius: 12px; }
.compare-lists strong { font-size: 0.8125rem; }
.compare-lists ul { margin-top: 8px; font-size: 0.8125rem; line-height: 1.55; }
.roadmap-list > li { grid-template-columns: 36px 1fr; gap: 16px; padding: 16px 0; border-color: var(--line); }
.roadmap-rank { font-family: var(--mono); font-size: 0.8125rem; }
.roadmap-title strong { font-size: 0.9375rem; }
.roadmap-list p,
.deep-intro,
.deep-note { margin-top: 6px; font-size: 0.875rem; line-height: 1.55; }
.link-map-list { gap: 8px; padding: 14px; background: var(--surface-soft); border-radius: 10px; }
.link-map-list li { gap: 24px; font-size: 0.8125rem; }
.report-actions { gap: 10px; padding: 20px 40px; background: var(--surface-soft); border-top: 1px solid var(--line); }
.report-actions .btn { min-height: 40px; padding: 8px 14px; font-size: 0.8125rem; }

.report-loading,
.report-error { gap: 32px; min-height: 400px; padding: 48px; }
.loading-visual { width: 96px; height: 96px; }
.loading-ring { border: 2px solid var(--line-strong); border-top-color: var(--green); }
.loading-core { font-family: var(--serif); font-size: 1.75rem; }
.loading-kicker { font-size: 0.75rem; letter-spacing: 0.08em; }
.loading-copy h3 { margin: 8px 0; font-size: 2.5rem; line-height: 1; }
.loading-copy > p { max-width: 58ch; margin-bottom: 24px; font-size: 0.9375rem; line-height: 1.6; }
.loading-steps { gap: 8px 18px; }
.loading-step { gap: 7px; font-size: 0.8125rem; }
.loading-step i { width: 6px; height: 6px; }
.loading-track { height: 4px; margin-top: 22px; background: var(--surface-soft); border-radius: 999px; }
.report-error { gap: 10px; }
.report-error-mark { width: 40px; height: 40px; font-size: 0.875rem; }
.report-error h3 { margin-top: 8px; font-size: 2.5rem; }
.report-error p { max-width: 60ch; margin-bottom: 16px; font-size: 0.9375rem; line-height: 1.6; }

/* ── Agent API ─────────────────────────────────────────────────────── */
.agents-main { padding-bottom: 24px; }
.agents-hero { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: 64px; align-items: end; padding-block: 88px 72px; }
.agents-hero h1 { max-width: 820px; margin-bottom: 24px; font-size: clamp(3.25rem, 6.4vw, 5.25rem); line-height: 0.98; letter-spacing: -0.035em; }
.agents-hero .lead { max-width: 64ch; margin-bottom: 28px; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.6; }
.agents-actions { gap: 10px; }
.agent-discovery-card {
  padding: 28px;
  color: var(--surface);
  background: radial-gradient(ellipse 90% 110% at 20% 0%, oklch(0.42 0.07 165 / 0.55), transparent 72%), var(--green-dark);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-md);
}
.agent-card-label { margin-bottom: 14px; color: var(--green-light); font-size: 0.75rem; letter-spacing: 0.08em; }
.agent-discovery-card a { gap: 12px; min-height: 52px; padding: 12px 0; border-color: oklch(1 0 0 / 0.13); border-radius: 0; transition-property: color; transition-duration: 150ms; transition-timing-function: var(--ease); }
.agent-discovery-card a:hover { color: var(--mint); }
.agent-discovery-card a code { color: var(--surface); font-family: var(--mono); font-size: 0.8125rem; }
.agent-discovery-card a span { color: var(--green-light); font-size: 0.75rem; }
.agent-discovery-card p { margin-top: 16px; color: var(--green-light); font-size: 0.8125rem; line-height: 1.55; }

.agent-facts {
  margin-bottom: 8px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.agent-facts > div { padding: 20px 24px; border-right: 1px solid var(--line); }
.agent-facts span { font-size: 0.75rem; }
.agent-facts strong { margin-top: 4px; font-size: 0.9375rem; }
.agents-section { padding-block: 80px; border-bottom: 1px solid var(--line); }
.agents-section-head { grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr); gap: 64px; margin-bottom: 32px; }
.agents-section-head h2 { font-size: clamp(2.5rem, 4.5vw, 3.5rem); line-height: 1.02; }
.agents-section-head > p { margin-bottom: 4px; color: var(--ink-soft); font-size: 1rem; line-height: 1.6; }
.agents-section-head > p code { padding: 2px 5px; color: var(--green); background: var(--surface-green); border-radius: 4px; font-family: var(--mono); font-size: 0.8125rem; }
.agent-quick-grid { gap: 20px; }
.agent-code-card { background: radial-gradient(ellipse 110% 100% at 0% 0%, oklch(0.4 0.06 165 / 0.45), transparent 70%), var(--green-dark); border: 0; border-radius: var(--radius-large); box-shadow: var(--shadow-md); }
.agent-code-head { flex-wrap: wrap; gap: 8px 18px; padding: 14px 20px; color: var(--green-light); border-color: oklch(1 0 0 / 0.13); font-size: 0.8125rem; }
.agent-code-head code { color: var(--mint); font-family: var(--mono); }
.agent-code-card pre {
  max-width: 100%;
  min-height: 230px;
  padding: 20px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  color: var(--surface);
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.65;
}
.agent-steps { margin-top: 28px; }
.agent-steps li { grid-template-columns: 56px 1fr; gap: 20px; padding: 20px 0; border-color: var(--line); }
.agent-steps li > span { font-family: var(--mono); font-size: 0.8125rem; }
.agent-steps h3 { margin-bottom: 6px; font-family: var(--sans); font-size: 1rem; font-weight: 600; }
.agent-steps p { max-width: 72ch; font-size: 0.9375rem; line-height: 1.55; }
.agent-note { margin-top: 24px; padding: 18px 20px; background: var(--surface-green); border: 0; border-left: 3px solid var(--green); border-radius: 8px; font-size: 0.9375rem; line-height: 1.6; }
.agent-table-wrap { margin-top: 4px; }
.agent-table code,
.agent-endpoint code { padding: 2px 5px; color: var(--green); background: var(--surface-green); border-radius: 4px; font-family: var(--mono); font-size: 0.8125rem; }
.agent-endpoint-list { border-top: 1px solid var(--line); }
.agent-endpoint { grid-template-columns: 56px minmax(240px, 0.8fr) 1fr; gap: 20px; padding: 18px 0; border-color: var(--line); font-size: 0.9375rem; }
.agent-method { font-family: var(--mono); font-size: 0.75rem; }
.agent-endpoint p { line-height: 1.55; }
.agent-plan-strip { gap: 16px; border: 0; border-radius: 0; }
.agent-plan-strip > div { gap: 6px; padding: 24px; background: var(--surface); border: 1px solid transparent; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.agent-plan-strip > div:last-child { border-right: 0; }
.agent-plan-strip span { font-family: var(--serif); font-size: 1.5rem; font-weight: var(--serif-weight); line-height: 1.15; }
.agent-plan-strip strong { font-family: var(--serif); font-size: 1.75rem; font-weight: var(--serif-weight); font-variant-numeric: tabular-nums; line-height: 1.1; }
.agent-plan-strip small { font-size: 0.8125rem; }
.agent-live-note { margin-top: 16px; font-size: 0.8125rem; line-height: 1.55; }
.agent-contact { gap: 48px; padding-block: 56px; }
.agent-contact h2 { margin-bottom: 8px; font-size: clamp(2.25rem, 4vw, 3rem); line-height: 1.04; }
.agent-contact p:not(.eyebrow) { max-width: 64ch; font-size: 0.9375rem; line-height: 1.6; }
.agent-contact-actions { gap: 10px; }

/* ── Legal ─────────────────────────────────────────────────────────── */
.legal-main { width: min(100% - 48px, 1120px); padding-block: 72px 96px; }
.legal-hero { max-width: 880px; padding-bottom: 40px; border-bottom: 1px solid var(--line); }
.legal-hero h1 { margin-bottom: 18px; font-size: clamp(3.25rem, 6vw, 4.75rem); line-height: 0.98; letter-spacing: -0.035em; }
.legal-hero .lead { max-width: 66ch; margin-bottom: 20px; color: var(--ink-soft); font-size: 1.125rem; line-height: 1.65; }
.legal-meta { font-size: 0.8125rem; line-height: 1.55; }
.legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; padding-top: 40px; }
.legal-toc { top: calc(var(--header-height) + 24px); padding: 20px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow-sm); }
.legal-toc strong { margin-bottom: 8px; font-size: 0.75rem; letter-spacing: 0.08em; }
.legal-toc a { display: flex; align-items: center; min-width: 44px; min-height: 40px; padding-block: 6px; font-size: 0.8125rem; line-height: 1.4; text-decoration: none; transition-property: color; transition-duration: 150ms; transition-timing-function: var(--ease); }
.legal-toc a:hover { color: var(--green); text-decoration: none; }
.legal-content { min-width: 0; }
.legal-section { padding-bottom: 32px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.legal-section h2 { margin-bottom: 16px; font-size: clamp(1.875rem, 3vw, 2.25rem); line-height: 1.1; }
.legal-section h3 { margin: 24px 0 8px; font-family: var(--sans); font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; }
.legal-section p,
.legal-list li { max-width: 68ch; color: var(--ink-soft); font-size: 1rem; line-height: 1.7; }
.legal-section p { margin-bottom: 14px; }
.legal-section a { color: var(--green); transition-property: color; transition-duration: 150ms; transition-timing-function: var(--ease); }
.legal-section a:hover { color: var(--green-hover); }
.legal-list { gap: 8px; padding-left: 22px; margin: 14px 0 18px; }
.legal-callout { padding: 18px 20px; margin: 20px 0; background: var(--surface-green); border: 0; border-left: 3px solid var(--green); border-radius: 8px; font-size: 0.9375rem; line-height: 1.65; }
.legal-table-wrap { margin: 18px 0; }
.legal-table th,
.legal-table td { padding: 12px 14px; font-size: 0.875rem; }

@media (max-width: 1040px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; }
  .agents-hero { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr); gap: 40px; }
  .agents-section-head { gap: 40px; }
  .legal-layout { grid-template-columns: 210px minmax(0, 1fr); gap: 40px; }
  .report-head { grid-template-columns: minmax(0, 1fr) minmax(310px, 0.8fr); gap: 28px; }
}

@media (max-width: 860px) {
  .checkout-heading { grid-template-columns: 1fr; }
  .checkout-heading > p:not(.eyebrow) { grid-column: 1; }
  .checkout-progress { grid-column: 1; grid-row: auto; justify-self: start; flex-wrap: wrap; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .payment-stage-grid { grid-template-columns: 1fr; }
  .report-head { grid-template-columns: 1fr; gap: 28px; }
  .score-wrap { justify-content: flex-start; }
  .report-categories { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-category:nth-child(2n) { border-right: 0; }
  .meta-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agents-hero { grid-template-columns: 1fr; align-items: start; padding-block: 64px 56px; }
  .agent-discovery-card { max-width: 620px; }
  .agent-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-facts > div:nth-child(2n) { border-right: 0; }
  .agent-facts > div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .agents-section-head { grid-template-columns: 1fr; gap: 16px; }
  .agent-quick-grid { grid-template-columns: 1fr; }
  .agent-contact { align-items: flex-start; flex-direction: column; gap: 22px; }
  .legal-layout { grid-template-columns: 1fr; gap: 28px; }
  .legal-toc { position: static; }
  .finding-pages a,
  .pages-table td:first-child a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 4px;
  }
}

@media (max-width: 760px) {
  :root { --header-height: 60px; }
  .checkout-main,
  .report-main,
  .agents-main,
  .legal-main { width: min(100% - 32px, var(--shell)); }
  .header-inner { grid-template-columns: 1fr auto auto; gap: 8px; }
  .brand { font-size: 1.5rem; }
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    padding: 4px 16px 12px;
    background: var(--bg);
    box-shadow: 0 1px 0 var(--line), 0 20px 24px -16px oklch(0.25 0.02 160 / 0.18);
    opacity: 0;
    visibility: hidden;
    translate: 0 -6px;
    transition-property: opacity, translate, visibility;
    transition-duration: 180ms;
    transition-timing-function: var(--ease);
  }
  .nav-links.open { opacity: 1; visibility: visible; translate: 0 0; }
  .nav-links a { min-height: 48px; padding: 0 2px; border-bottom: 1px solid var(--line); font-size: 1rem; }
  .nav-links a:last-child { border-bottom: 0; }
  .header-cta { min-height: 44px; padding-inline: 14px; }

  .checkout-main { padding-block: 40px 72px; }
  .checkout-heading { gap: 18px 24px; padding-bottom: 32px; }
  .checkout-heading h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .checkout-heading > p:not(.eyebrow) { font-size: 1rem; }
  .checkout-progress { gap: 6px; }
  .checkout-progress li { padding-right: 10px; font-size: 0.75rem; }
  .checkout-progress span { width: 28px; height: 28px; }
  .checkout-layout { padding-top: 28px; }
  .checkout-flow { gap: 16px; }
  .checkout-card { padding: 24px 20px; }
  .checkout-card-head > div { display: flex; }
  .checkout-card-head h2 { font-size: 1.5rem; }
  .checkout-plan { padding: 18px; }
  .checkout-plan-top { flex-wrap: wrap; gap: 8px 20px; padding-right: 28px; }
  .checkout-plan-price { font-size: 1.5rem; }
  .checkout-plan-features { grid-template-columns: 1fr; }
  .checkout-fields,
  .scope-picker { grid-template-columns: 1fr; }
  .scope-panel { padding: 18px; }
  .scope-panel-head { align-items: flex-start; }
  .add-page-row { grid-template-columns: 1fr; }
  .add-page-row .btn { width: 100%; }
  .summary-card { padding: 20px; }
  .payment-stage { padding-top: 40px; }
  .payment-stage-head { align-items: flex-start; flex-direction: column; gap: 18px; }
  .payment-order-meta { text-align: start; }
  #nanswap-widget,
  .widget-loading { min-height: 520px; }
  .payment-status-card { padding: 24px 20px; }

  .report-main { padding-block: 32px 72px; }
  .report-page-heading { display: block; padding-bottom: 24px; }
  .report-page-heading h1 { font-size: clamp(2.5rem, 11vw, 3.25rem); }
  .report-page-heading p:not(.eyebrow) { margin-top: 14px; font-size: 0.9375rem; }
  .report-panel { border-radius: var(--radius-large); }
  .report-head { padding: 28px 20px; }
  .report-expiry { top: 16px; right: 16px; }
  .score-ring,
  .score-ring svg { width: 108px; height: 108px; }
  .score-label strong { font-size: 2.5rem; }
  .score-verdict strong { font-size: 1.5rem; }
  .summary-chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary-chip:nth-child(2n) { border-right: 0; }
  .summary-chip:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .summary-chip { padding: 16px; }
  .fix-prompt { grid-template-columns: 1fr; margin: 20px 20px 0; padding: 20px; }
  .fix-prompt.agent-setup-prompt { padding: 20px; }
  .fix-prompt-actions { justify-content: flex-start; }
  .report-categories { margin: 20px 20px 0; }
  .report-category { padding: 18px; }
  .report-grid { padding: 0 20px; }
  .report-sec { padding: 26px 0; }
  .report-actions { padding: 18px 20px; }
  .meta-grid { grid-template-columns: 1fr; }
  .compare-lists { grid-template-columns: 1fr; }
  .pages-table td:first-child { min-width: 180px; }
  .report-loading,
  .report-error { min-height: 0; padding: 32px 24px; align-items: flex-start; flex-direction: column; }
  .loading-copy h3 { font-size: 2.25rem; }

  .agents-hero { padding-block: 56px 48px; gap: 32px; }
  .agents-hero h1 { font-size: clamp(2.75rem, 11vw, 3.75rem); }
  .agents-hero .lead { font-size: 1rem; }
  .agent-discovery-card { padding: 24px 20px; }
  .agent-facts { grid-template-columns: 1fr; }
  .agent-facts > div { border-right: 0; border-bottom: 1px solid var(--line); }
  .agent-facts > div:last-child { border-bottom: 0; }
  .agents-section { padding-block: 56px; }
  .agents-section-head h2 { font-size: clamp(2.25rem, 9vw, 2.75rem); }
  .agent-code-card pre { min-height: 0; font-size: 0.75rem; }
  .agent-endpoint { grid-template-columns: 48px 1fr; gap: 8px 16px; }
  .agent-endpoint p { grid-column: 2; }
  .agent-plan-strip { grid-template-columns: 1fr; }
  .agent-contact { padding-block: 48px; }
  .legal-main { padding-block: 48px 72px; }
  .legal-hero h1 { font-size: clamp(2.75rem, 11vw, 3.75rem); }
  .legal-hero .lead { font-size: 1rem; }
  .legal-layout { padding-top: 28px; }
  .legal-toc { display: flex; align-items: center; gap: 8px; padding: 12px; overflow-x: auto; }
  .legal-toc strong { flex: 0 0 auto; margin: 0 4px 0 0; }
  .legal-toc a { flex: 0 0 auto; min-height: 44px; padding: 0 14px; background: var(--surface-soft); border-radius: 999px; }
  .legal-section h2 { font-size: 1.875rem; }
  .site-footer { padding-block: 44px 20px; }
  .footer-top { flex-direction: column; gap: 20px; padding-bottom: 28px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
  .footer-links a,
  .footer-bottom a { min-height: 44px; }
}

@media (max-width: 440px) {
  .checkout-main,
  .report-main,
  .agents-main,
  .legal-main { width: min(100% - 32px, var(--shell)); }
  .checkout-progress { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
  .checkout-progress li { justify-content: flex-start; }
  .checkout-card { padding: 20px 16px; }
  .checkout-card-head h2 { font-size: 1.375rem; }
  .checkout-plan-top { padding-right: 24px; }
  .checkout-plan-top strong { font-size: 1.375rem; }
  .scope-option-body { min-height: 0; padding: 16px; }
  .scope-panel-head { flex-direction: column; gap: 12px; }
  .scope-panel-head .btn { width: 100%; }
  .page-url-list strong,
  .page-choice strong { font-size: 0.75rem; }
  .fix-prompt-actions { align-items: stretch; flex-direction: column; }
  .fix-prompt-actions .btn { width: 100%; }
  .report-categories { grid-template-columns: 1fr; }
  .report-category { border-right: 0; }
  .score-wrap { gap: 16px; }
  .score-ring,
  .score-ring svg { width: 96px; height: 96px; }
  .score-label strong { font-size: 2.25rem; }
  .score-wrap { flex-wrap: wrap; align-items: flex-start; }
  .score-verdict { flex: 1 1 140px; max-width: none; }
  .report-loading { gap: 20px; }
  .loading-visual { width: 76px; height: 76px; }
  .agent-contact-actions { align-items: stretch; flex-direction: column; }
  .agent-contact-actions .btn { width: 100%; }
  .legal-section h2 { font-size: 1.625rem; }
  .legal-section p,
  .legal-list li { font-size: 0.9375rem; }
  .toast,
  .admin-toast { font-size: 0.8125rem; }
}

@media (prefers-reduced-motion: reduce) {
  .btn:active:not(:disabled):not(.is-loading) { scale: 1; }
  .checkout-plan:hover { translate: 0 0; }
  .summary-chips,
  .nav-links,
  .checkout-plan-radio,
  .checkout-plan,
  .nav-toggle span,
  .fix-prompt-preview > summary::after,
  .report-disclosure > summary::after,
  .finding-severity-group > summary::after,
  .finding-pages summary::after { transition-duration: 0.01ms; }
}

@media print {
  body.report-page { background: oklch(1 0 0); }
  .site-header,
  .site-footer,
  .report-page-heading,
  .report-actions,
  .fix-prompt,
  .report-expiry { display: none !important; }
  .report-main { width: 100%; padding: 0; }
  .report-panel { border: 0; border-radius: 0; box-shadow: none; }
  .report-head { color: oklch(0 0 0); background: oklch(1 0 0); border-bottom: 1px solid oklch(0.73 0 0); }
  .report-head h2,
  .score-label,
  .score-label strong,
  .score-verdict strong { color: oklch(0 0 0); }
  .score-verdict span,
  .report-url,
  .score-label span { color: oklch(0.32 0 0); }
  .ring-bg { stroke: oklch(0.87 0 0); }
  .ring-fg { stroke: var(--green); }
  .summary-chips { background: oklch(0.96 0 0); }
  .summary-chip { border-color: oklch(0.82 0 0); }
  .report-categories { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .report-category { background: oklch(0.97 0 0); box-shadow: inset 0 0 0 1px oklch(0.85 0 0); }
  .report-sec,
  .finding,
  .meta-item { break-inside: avoid; }
}

/* Contact */
.contact-main {
  width: min(100% - 48px, var(--shell));
  margin-inline: auto;
  padding-block: 72px 96px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
  gap: 64px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.contact-hero h1 {
  margin: 0 0 20px;
  font-size: clamp(3.5rem, 6.4vw, 5.75rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
}

.contact-hero .lead {
  max-width: 60ch;
  margin: 0;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.contact-hero-note {
  display: grid;
  gap: 0;
  padding: 6px 0;
}

.contact-hero-note > div {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.contact-hero-note > div:last-child { border-bottom: 1px solid var(--line); }
.contact-hero-note span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-hero-note strong {
  color: var(--ink);
  font-size: 0.9375rem;
  font-weight: 600;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(270px, 0.7fr);
  gap: 48px;
  align-items: start;
  padding-top: 48px;
}

.contact-card {
  min-width: 0;
  padding: clamp(24px, 4vw, 40px);
  background: var(--surface);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-sm);
}

.contact-card-head h2 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.4vw, 2.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}

.contact-card-head > p:not(.eyebrow) {
  max-width: 62ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.contact-form {
  display: grid;
  gap: 24px;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.contact-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-form .field label { font-size: 0.875rem; }
.contact-form .field small,
.contact-form .field-hint { font-size: 0.8125rem; }
.contact-form input,
.contact-form select,
.contact-form textarea { font-size: 1rem; }
.contact-form textarea { min-height: 190px; }
.contact-optional {
  margin-left: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}

.contact-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.55;
}

.contact-consent input {
  flex: 0 0 auto;
  width: 20px;
  min-height: 20px;
  margin-top: 2px;
}

.contact-consent a { color: var(--green); }

.contact-form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.contact-form-actions > p {
  max-width: 34ch;
  margin: 0;
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.55;
}

.contact-success {
  display: flex;
  gap: 20px;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  outline: none;
}

.contact-success-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--green-dark);
  background: var(--surface-green);
  border-radius: 50%;
  font-size: 1.5rem;
}

.contact-success h2 {
  margin: 0 0 8px;
  font-size: 2rem;
}

.contact-success p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.contact-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 18px;
}

.contact-aside-card {
  padding: 28px;
  background: var(--surface-green);
  border-radius: var(--radius-large);
  box-shadow: inset 0 0 0 1px oklch(0.425 0.079 166.6 / 0.12);
}

.contact-aside-card h2 {
  margin: 0 0 20px;
  font-size: 1.75rem;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.contact-aside-card ul {
  display: grid;
  gap: 16px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.contact-aside-card li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.contact-aside-card li > span {
  color: var(--green);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.contact-aside-card li p,
.contact-aside-card > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.6;
}

.contact-aside-card > p:not(.eyebrow) + p { margin-top: 14px; }
.contact-aside-card a { color: var(--green); }
.contact-aside-quiet { background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line); }

@media (max-width: 1040px) {
  .contact-hero { grid-template-columns: minmax(0, 1fr) minmax(250px, 0.58fr); gap: 40px; }
  .contact-layout { grid-template-columns: minmax(0, 1.18fr) minmax(250px, 0.82fr); gap: 32px; }
  .contact-aside-card { padding: 24px; }
}

@media (max-width: 860px) {
  .contact-hero { grid-template-columns: 1fr; gap: 32px; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .contact-main { width: min(100% - 32px, var(--shell)); padding-block: 48px 72px; }
  .contact-hero { gap: 24px; padding-bottom: 36px; }
  .contact-hero h1 { font-size: clamp(2.9rem, 12vw, 4rem); }
  .contact-hero .lead { font-size: 1rem; }
  .contact-hero-note > div { grid-template-columns: 8.5rem minmax(0, 1fr); padding: 12px 0; }
  .contact-layout { padding-top: 28px; }
  .contact-card { padding: 24px 20px; border-radius: var(--radius); }
  .contact-card-head h2 { font-size: 2rem; }
  .contact-form { gap: 20px; padding-top: 24px; margin-top: 24px; }
  .contact-form-row { grid-template-columns: 1fr; }
  .contact-form-actions { align-items: flex-start; flex-direction: column; gap: 14px; }
  .contact-form-actions .btn { width: 100%; }
  .contact-aside { grid-template-columns: 1fr; }
  .contact-aside-card { padding: 24px 20px; border-radius: var(--radius); }
  .contact-success { flex-direction: column; padding-top: 24px; margin-top: 24px; }
}

@media (max-width: 440px) {
  .contact-main { width: min(100% - 32px, var(--shell)); }
  .contact-hero h1 { font-size: 2.8rem; }
  .contact-hero-note > div { grid-template-columns: 1fr; gap: 4px; }
  .contact-success h2 { font-size: 1.75rem; }
}

/* ── Referrals ───────────────────────────────────────────────────────── */
.referrals-main {
  width: min(100% - 48px, var(--shell));
  padding-block: 56px 96px;
  margin-inline: auto;
}

.referrals-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}

.referrals-hero h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(3.5rem, 6.5vw, 5.75rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.referrals-hero-note {
  display: grid;
  gap: 16px;
  padding-bottom: 6px;
}

.referrals-hero-note p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.referrals-small {
  color: var(--muted) !important;
  font-size: 0.8125rem !important;
  line-height: 1.6 !important;
}

.referrals-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
  gap: 40px;
  align-items: start;
  padding-top: 40px;
}

.referrals-card,
.referrals-aside-card {
  padding: 32px;
  background: var(--surface);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-sm);
}

.referrals-card { min-width: 0; min-height: 320px; }

.referrals-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 250px;
  color: var(--muted);
  font-size: 0.875rem;
}

.referrals-loading p { margin: 0; }

.referrals-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.referrals-card-head h2,
.referrals-card > div > h2 {
  margin: 0;
  font-size: clamp(2rem, 3.3vw, 2.75rem);
  line-height: 1.02;
  text-wrap: balance;
}

.referrals-rate,
.referral-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  color: var(--green);
  background: var(--surface-green);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  white-space: nowrap;
}

.referral-status.is-paused { color: var(--danger); background: var(--danger-soft); }

.referrals-intro {
  max-width: 60ch;
  margin-bottom: 24px;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
  text-wrap: pretty;
}

.referrals-form { display: grid; gap: 20px; }
.referrals-form .field small { max-width: 60ch; }
.referrals-form .btn { justify-self: start; }

.referrals-facts,
.referral-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 28px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.referrals-facts > div,
.referral-account-grid > div {
  display: grid;
  align-content: start;
  gap: 6px;
  min-width: 0;
  padding: 18px 16px 18px 0;
}

.referrals-facts > div + div,
.referral-account-grid > div + div {
  padding-left: 16px;
  border-left: 1px solid var(--line);
}

.referrals-facts span,
.referral-account-grid span,
.referral-code-block > span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.referrals-facts strong,
.referral-account-grid strong {
  overflow: hidden;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
}

.referral-account-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.referral-account-grid > div:nth-child(3) { border-left: 0; }
.referral-account-grid > div:nth-child(n + 3) { border-top: 1px solid var(--line); }

.referral-code-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 20px;
  align-items: center;
  padding: 20px 24px;
  margin-bottom: 24px;
  background: var(--surface-green);
  border-radius: var(--radius);
}

.referral-code-block > span { grid-column: 1 / -1; }

.referral-code-block strong {
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.referral-link-field { margin-bottom: 0; }
.referral-link-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.referral-link-row input { font-family: var(--mono); font-size: 0.8125rem; }
.referrals-note { margin: 24px 0 0; color: var(--muted); font-size: 0.8125rem; line-height: 1.6; }

.referrals-closed p,
.referrals-card > div > p:not(.eyebrow) {
  max-width: 62ch;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.referrals-aside { display: grid; gap: 20px; position: sticky; top: calc(var(--header-height) + 24px); }
.referrals-aside-card { padding: 28px; box-shadow: var(--shadow-sm); }
.referrals-aside-card .eyebrow { margin-bottom: 20px; }

.referrals-aside-card ol {
  display: grid;
  gap: 0;
  padding: 0;
  margin: 0;
  list-style: none;
}

.referrals-aside-card li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  padding-block: 18px;
  border-top: 1px solid var(--line);
}

.referrals-aside-card li:first-child { padding-top: 0; border-top: 0; }
.referrals-aside-card li:last-child { padding-bottom: 0; }
.referrals-aside-card li > span { padding-top: 2px; color: var(--green); font-family: var(--mono); font-size: 0.75rem; }
.referrals-aside-card li strong { display: block; margin-bottom: 6px; font-size: 0.9375rem; }
.referrals-aside-card li p { margin: 0; color: var(--muted); font-size: 0.875rem; line-height: 1.6; }
.referrals-aside-quiet { background: var(--surface-soft); box-shadow: inset 0 0 0 1px var(--line); }
.referrals-aside-quiet p { margin: 0; }

@media (max-width: 1040px) {
  .referrals-hero { grid-template-columns: minmax(0, 1fr) minmax(260px, 0.6fr); gap: 40px; }
  .referrals-layout { grid-template-columns: minmax(0, 1.08fr) minmax(260px, 0.92fr); gap: 28px; }
  .referrals-card { padding: 28px; }
}

@media (max-width: 860px) {
  .referrals-hero { grid-template-columns: 1fr; gap: 24px; align-items: start; }
  .referrals-hero h1 { max-width: 14ch; }
  .referrals-layout { grid-template-columns: 1fr; }
  .referrals-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .referrals-main { width: min(100% - 32px, var(--shell)); padding-block: 40px 72px; }
  .referrals-hero { padding-bottom: 32px; }
  .referrals-hero h1 { font-size: clamp(2.9rem, 12vw, 4rem); }
  .referrals-hero-note p { font-size: 1rem; }
  .referrals-layout { padding-top: 28px; }
  .referrals-card { padding: 24px 20px; border-radius: var(--radius); }
  .referrals-card-head { gap: 16px; padding-bottom: 20px; margin-bottom: 20px; }
  .referrals-card-head h2 { font-size: 2rem; }
  .referrals-rate { display: none; }
  .referrals-facts { grid-template-columns: 1fr; }
  .referrals-facts > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .referral-account-grid { grid-template-columns: 1fr; }
  .referral-account-grid > div + div { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
  .referral-link-row { grid-template-columns: 1fr; }
  .referral-link-row .btn { width: 100%; }
  .referral-code-block { grid-template-columns: 1fr; padding: 18px 20px; }
  .referral-code-block .btn { justify-self: start; }
  .referrals-aside { grid-template-columns: 1fr; }
  .referrals-aside-card { padding: 24px 20px; border-radius: var(--radius); }
}

@media (max-width: 440px) {
  .referrals-main { width: min(100% - 32px, var(--shell)); }
  .referrals-hero h1 { font-size: 2.8rem; }
  .referrals-card { padding: 20px 16px; }
  .referral-code-block strong { font-size: 1.5rem; }
}
