@font-face {
  font-family: "Plus Jakarta Sans";
  src: url(/fonts/jakarta.woff2) format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url(/fonts/fraunces.woff2) format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f7f4ec;
  --bg-deep: #ece7dc;
  --surface: #fffdf8;
  --surface-raised: #ffffff;
  --surface-soft: #f2ecdf;
  --ink: #141109;
  --muted: #574f42;
  --faint: #675e4f;
  --line: #e0d7c5;
  --line-strong: #c9bda2;
  --accent: #b88a2a;
  --accent-bright: #8c6516;
  --accent-soft: #f4e8c6;
  --allow: #287a57;
  --sanitize: #9a6412;
  --block: #b64045;
  --mint: #287a57;
  --amber: #9a6412;
  --danger: #b64045;
  --focus: #8c6516;
  --on-accent: #241a06;
  --on-mint: #ffffff;
  --on-amber: #ffffff;
  --on-danger: #ffffff;
  --control-border: #8a7c64;
  --error-text: #9f3038;
  --source-live: #287a57;
  --source-dated: #8c6516;
  --source-illustrative: #6f665a;
  --source-degraded: #9a6412;
  --source-unknown: #6f665a;
  --sans:
    "Plus Jakarta Sans", "Segoe UI Variable Text", "Aptos", "Segoe UI",
    system-ui, sans-serif;
  --mono:
    "Cascadia Code", "Cascadia Mono", "JetBrains Mono", Consolas, monospace;
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --radius-sm: 4px;
  --radius: 7px;
  --radius-lg: 10px;
  --content: 1180px;
  --reading: 760px;
  --page-section-gap: clamp(64px, 8vw, 104px);
  font-family: var(--sans);
  font-size: 16px;
}

:root:not([data-theme]),
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0a07;
  --bg-deep: #070603;
  --surface: #14110b;
  --surface-raised: #1b1710;
  --surface-soft: #211c13;
  --ink: #f6f0e1;
  --muted: #bfb6a2;
  --faint: #8d8472;
  --line: #2c2619;
  --line-strong: #463f2c;
  --accent: #d7aa49;
  --accent-bright: #f1c766;
  --accent-soft: #241d0f;
  --allow: #59b98a;
  --sanitize: #e5852a;
  --block: #ef6f5b;
  --mint: #59b98a;
  --amber: #e0a23a;
  --danger: #ef6f5b;
  --focus: #f1c766;
  --on-accent: #1c1503;
  --on-mint: #06150e;
  --on-amber: #1c1203;
  --on-danger: #1f0b06;
  --control-border: #7a6f58;
  --error-text: #ef9a86;
  --source-live: #59b98a;
  --source-dated: #d7aa49;
  --source-illustrative: #948b78;
  --source-degraded: #e0a23a;
  --source-unknown: #948b78;
}

:root[data-theme="light"] {
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  position: relative;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      120% 82% at 78% -8%,
      color-mix(in srgb, var(--accent) 15%, transparent),
      transparent 58%
    ),
    radial-gradient(
      92% 60% at 8% 4%,
      color-mix(in srgb, var(--accent-bright) 7%, transparent),
      transparent 52%
    );
}

@media (prefers-reduced-motion: no-preference) {
  body::before {
    animation: aurora 22s ease-in-out infinite alternate;
  }
}

@keyframes aurora {
  from {
    opacity: 0.72;
    transform: translate3d(0, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(-1.5%, 1.2%, 0);
  }
}

[hidden] {
  display: none !important;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

::selection {
  color: var(--on-accent);
  background: var(--accent);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  min-height: 44px;
  padding: 11px 14px;
  color: var(--on-accent);
  background: var(--accent);
  border-radius: var(--radius);
  transform: translateY(-160%);
  text-decoration: none;
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.page-shell {
  width: min(var(--content), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 26px;
  align-items: center;
  min-height: 68px;
  padding-block: 10px;
  background: color-mix(in srgb, var(--bg) 96%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
}

.site-nav {
  display: flex;
  gap: 2px;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 12px;
  font-weight: 680;
}

.nav-link:hover,
.nav-link.is-active-section,
.nav-link[aria-current="page"] {
  color: var(--ink);
  background: var(--surface-soft);
}

.nav-link[aria-current="page"] {
  box-shadow: inset 0 -2px 0 var(--accent);
}

.header-actions {
  display: flex;
  gap: 7px;
  align-items: center;
}

.status-pill,
.theme-toggle,
.nav-toggle,
.nav-close,
.header-integrate,
.header-scan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 11px;
  color: var(--muted);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}

.status-pill:hover,
.theme-toggle:hover {
  color: var(--ink);
  background: var(--surface-soft);
  border-color: var(--line);
}

.header-scan {
  padding-inline: 14px;
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.header-integrate {
  padding-inline: 12px;
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line-strong);
}

.header-integrate:hover {
  background: var(--surface-soft);
  border-color: var(--accent);
}

.nav-toggle,
.nav-close,
.nav-mobile-actions {
  display: none;
}

.live-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  background: var(--faint);
  border-radius: 50%;
}

.live-dot.is-ok {
  background: var(--allow);
}

.live-dot.is-offline {
  background: var(--block);
}

.live-dot.is-unknown {
  background: var(--faint);
}

.site-main {
  min-height: calc(100vh - 180px);
  padding-block: clamp(52px, 7vw, 88px) 96px;
}

.site-main > section + section,
.site-main > .page-shell > section + section {
  margin-top: var(--page-section-gap);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(210px, 0.5fr) minmax(0, 1fr);
  gap: 72px;
  padding-block: 34px 48px;
  color: var(--faint);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.site-footer > div {
  display: grid;
  gap: 8px;
  align-content: start;
}

.site-footer strong {
  color: var(--ink);
  font-size: 14px;
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(5, minmax(100px, 1fr));
  gap: 28px;
}

.site-footer__col {
  display: grid;
  gap: 7px;
  align-content: start;
}

.site-footer__label {
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 11px;
  font-weight: 750;
}

.site-footer a {
  min-height: 28px;
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  margin-bottom: 14px;
  font-family: var(--sans);
  text-wrap: balance;
}

h1 {
  max-width: 900px;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(44px, 6.3vw, 72px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 560;
}

h2 {
  max-width: 820px;
  font-family: var(--display);
  font-optical-sizing: auto;
  font-size: clamp(31px, 4.3vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-weight: 540;
}

h3 {
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-weight: 700;
}

p,
li {
  line-height: 1.65;
}

.hero-text,
.section-copy,
.note {
  max-width: 720px;
  color: var(--muted);
  font-size: 17px;
  overflow-wrap: anywhere;
}

.eyebrow,
.console-label,
.service-id,
.reason-code {
  margin: 0 0 12px;
  color: var(--accent-bright);
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.num,
.snapshot-note {
  font-variant-numeric: tabular-nums;
}

.snapshot-note,
.source-link,
.boundary-note,
.privacy-note,
.field-help,
.field-hint,
.decision-note {
  color: var(--faint);
  font-size: 12px;
  line-height: 1.55;
}

.page-hero,
.index-hero,
.landing-hero {
  max-width: 920px;
  margin-bottom: 42px;
}

.page-hero--compact {
  max-width: 800px;
}

.page-hero--compact h1 {
  font-size: clamp(38px, 5.2vw, 58px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.55fr);
  gap: 40px;
  align-items: end;
  max-width: none;
  margin: 0 0 28px;
}

.section-heading > :only-child {
  grid-column: 1 / -1;
}

.hero-actions,
.record-actions,
.status-check-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-top: 24px;
}

.button,
.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  transition:
    color 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover,
.copy-button:hover:not(:disabled) {
  background: var(--surface-soft);
  border-color: var(--accent);
}

.button.primary {
  color: var(--on-accent);
  background: var(--accent);
  border-color: var(--accent);
}

.button.primary:hover {
  background: var(--accent-bright);
  border-color: var(--accent-bright);
}

.button.secondary,
.copy-button {
  background: var(--surface);
}

.button--hero {
  min-height: 48px;
  padding-inline: 20px;
}

.button:disabled,
.copy-button:disabled {
  color: var(--faint);
  background: var(--surface-soft);
  border-color: var(--line);
  cursor: not-allowed;
}

.text-link,
.action-link {
  color: var(--accent-bright);
  font-size: 13px;
  font-weight: 700;
  text-underline-offset: 4px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--control-border);
  border-radius: var(--radius);
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--accent);
}

textarea {
  min-height: 148px;
  resize: vertical;
  font-family: var(--mono);
  line-height: 1.55;
}

pre {
  max-width: 100%;
  margin: 12px 0 0;
  padding: 17px;
  overflow: auto;
  color: var(--ink);
  background: var(--bg-deep);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

code {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}

:not(pre) > code {
  padding: 0.12em 0.34em;
  color: var(--accent-bright);
  background: var(--surface-soft);
  border-radius: var(--radius-sm);
  overflow-wrap: anywhere;
}

.source-stamp {
  --source-tone: var(--source-unknown);

  display: inline-flex;
  gap: 6px;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 3px 7px;
  color: var(--muted);
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--source-tone) 40%, var(--line));
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.35;
  text-transform: none;
}

.source-stamp::before {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--source-tone);
  border-radius: 50%;
  content: "";
}

.source-stamp[data-source-state="LIVE"],
.source-stamp[data-source-stamp="LIVE"],
.source-stamp--live {
  --source-tone: var(--source-live);
}

.source-stamp[data-source-state="DATED"],
.source-stamp[data-source-stamp="DATED"],
.source-stamp--dated {
  --source-tone: var(--source-dated);
}

.source-stamp[data-source-state="ILLUSTRATIVE"],
.source-stamp[data-source-stamp="ILLUSTRATIVE"],
.source-stamp--illustrative {
  --source-tone: var(--source-illustrative);
}

.source-stamp[data-source-state="DEGRADED"],
.source-stamp[data-source-stamp="DEGRADED"],
.source-stamp--degraded {
  --source-tone: var(--source-degraded);
}

.source-stamp[data-source-state="UNKNOWN"],
.source-stamp[data-source-stamp="UNKNOWN"],
.source-stamp--unknown {
  --source-tone: var(--source-unknown);
}

.status-label,
.verdict-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  padding: 0 9px;
  color: var(--on-danger);
  background: var(--block);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.status-label--allow,
.risk-label--none,
.risk-label--low {
  color: var(--on-mint);
  background: var(--allow);
}

.status-label--sanitize,
.status-label--pending,
.risk-label--medium {
  color: var(--on-amber);
  background: var(--sanitize);
}

.risk-label--high,
.risk-label--critical {
  color: var(--on-danger);
  background: var(--block);
}

.receipt-state--candidate {
  color: var(--on-amber);
  background: var(--sanitize);
}

.receipt-state--duplicate {
  color: var(--on-accent);
  background: var(--accent);
}

.receipt-state--detected {
  color: var(--on-danger);
  background: var(--block);
}

.caveat,
.callout,
.inline-notice,
.surface-callout,
.empty-state,
.scan-error {
  margin-block: 18px;
  padding: 14px 16px;
  color: var(--muted);
  background: var(--surface-soft);
  border-left: 2px solid var(--line-strong);
  font-size: 13px;
  line-height: 1.6;
}

.caveat,
.spend-boundary {
  border-left-color: var(--sanitize);
}

.field-error,
.scan-error {
  color: var(--error-text);
}

.data-list {
  display: grid;
  margin: 18px 0;
}

.data-list > div {
  display: grid;
  grid-template-columns: minmax(120px, 0.35fr) minmax(0, 1fr);
  gap: 18px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}

.data-list dt,
.data-list dd {
  margin: 0;
}

.data-list dt {
  color: var(--faint);
  font-size: 12px;
}

.data-list dd {
  min-width: 0;
  overflow-wrap: anywhere;
}

.linked-evidence-ledger {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.linked-evidence-ledger > div {
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  align-content: start;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.linked-evidence-ledger > div[data-evidence="linked"] {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 6%, var(--surface)),
    var(--surface) 96px
  );
  border-color: color-mix(in srgb, var(--accent) 32%, var(--line));
}

.linked-evidence-ledger dt {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.linked-evidence-ledger dd {
  display: grid;
  gap: 8px;
  align-items: start;
}

.linked-evidence-ledger dd > * {
  width: fit-content;
}

.linked-evidence-ledger small {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.55;
}

.proof-strip,
.data-grid,
.result-grid,
.status-grid,
.status-source-grid,
.metric-line {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
}

.proof-strip > div,
.data-grid > div,
.result-grid > div,
.status-grid > div,
.status-source-grid > div,
.metric-line > div {
  display: grid;
  gap: 7px;
  min-width: 0;
  min-height: 104px;
  align-content: space-between;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.proof-strip > div:last-child,
.data-grid > div:last-child,
.result-grid > div:last-child,
.status-grid > div:last-child,
.status-source-grid > div:last-child,
.metric-line > div:last-of-type {
  border-right: 0;
}

.proof-strip span,
.data-grid span,
.result-grid span,
.status-grid span,
.metric-line span,
.status-source-grid dt {
  color: var(--faint);
  font-size: 11px;
}

.proof-strip strong,
.data-grid strong,
.result-grid strong,
.status-grid strong,
.metric-line strong {
  align-self: end;
  font-size: 19px;
  overflow-wrap: anywhere;
}

.metric-line {
  position: relative;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 38px;
  margin-bottom: 46px;
}

.metric-line > p {
  position: absolute;
  right: 0;
  bottom: -28px;
  margin: 0;
  color: var(--faint);
  font-size: 10px;
}

.feature-panel,
.console-card,
.snippet-card,
.breaker-card,
.badge-card,
.reason-card,
.card-grid > article,
.readiness-panel,
.integration-catalog,
.status-live-panel {
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.marketplace-service__description {
  overflow-wrap: anywhere;
}

.marketplace-service-list {
  margin-top: 20px;
  border-top: 1px solid var(--line-strong);
}

.marketplace-service {
  border-bottom: 1px solid var(--line);
}

.marketplace-service > summary {
  min-height: 44px;
  padding: 17px 4px;
  cursor: pointer;
}

.marketplace-service > summary::marker {
  color: var(--accent);
}

.marketplace-service__summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  margin-left: 4px;
}

.marketplace-service__identity {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.marketplace-service__identity strong {
  overflow-wrap: anywhere;
}

.marketplace-service__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  color: var(--muted);
  font-size: 12px;
}

.marketplace-service__body {
  padding: 0 4px 20px 22px;
}

.marketplace-service__description {
  max-width: var(--reading);
  color: var(--muted);
}

.feature-panel,
.readiness-panel,
.integration-catalog,
.status-live-panel {
  margin-block: 28px;
}

.card-grid,
.service-grid,
.docs-grid,
.badge-grid,
.docs-decision-grid,
.badge-evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.badge-detail {
  position: relative;
  padding: 0;
  overflow: clip;
  background: linear-gradient(
    176deg,
    color-mix(in srgb, var(--accent) 6%, var(--surface)),
    var(--surface) 132px
  );
  border-color: var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 26px 64px -34px rgba(8, 5, 0, 0.72),
    inset 0 1px 0 color-mix(in srgb, var(--accent) 18%, transparent);
}

.badge-detail::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--accent);
  content: "";
}

.badge-detail > .section-heading {
  align-items: start;
  margin: 0;
  padding: 26px 28px 22px;
  border-bottom: 1px solid var(--line-strong);
}

.badge-detail .badge-evidence-grid {
  gap: 0;
  border-bottom: 1px solid var(--line-strong);
}

.badge-detail .badge-evidence {
  min-width: 0;
  padding: 24px 26px;
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.badge-detail .badge-evidence:nth-child(even) {
  border-right: 0;
}

.badge-detail .badge-evidence:first-child {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 8%, var(--surface)),
    var(--surface) 112px
  );
  box-shadow: inset 3px 0 0 var(--accent);
}

.badge-detail .badge-evidence:last-child {
  grid-column: 1 / -1;
  background: color-mix(in srgb, var(--accent) 4%, var(--surface));
  border-right: 0;
  border-bottom: 0;
}

.badge-detail .badge-evidence h3 {
  margin-bottom: 18px;
  font-size: 17px;
}

.badge-detail .badge-evidence .data-list {
  margin-bottom: 0;
}

.badge-detail .badge-evidence code {
  overflow-wrap: anywhere;
}

.badge-detail > .snippet-card {
  margin: 24px 28px 0;
}

.badge-detail > .record-actions {
  padding-inline: 28px;
}

.badge-detail > .evidence-boundary {
  margin: 24px 28px 28px;
}

.filter-bar,
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.filter-bar {
  margin: 22px 0 16px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}

.methodology-drawer,
.result-disclosure {
  margin-block: 18px;
  border-block: 1px solid var(--line);
}

.methodology-drawer > summary,
.result-disclosure > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 50px;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}

.methodology-drawer > summary::after,
.result-disclosure > summary::after {
  color: var(--accent);
  content: "+";
}

.methodology-drawer[open] > summary::after,
.result-disclosure[open] > summary::after {
  content: "−";
}

.methodology-drawer > :not(summary),
.result-disclosure > :not(summary) {
  margin-top: 0;
}

.breadcrumbs {
  margin: -18px 0 24px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.breadcrumbs ol {
  display: flex;
  width: max-content;
  min-width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumbs li {
  display: inline-flex;
  align-items: center;
  color: var(--faint);
  font-size: 11px;
}

.breadcrumbs li + li::before {
  margin-inline: 9px;
  content: "/";
}

.breadcrumbs a,
.breadcrumbs [aria-current="page"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.breadcrumbs a {
  color: var(--muted);
  text-decoration: none;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.75fr);
  gap: clamp(48px, 7vw, 96px);
  align-items: center;
  padding-block: 8px 76px;
}

.home-hero-copy {
  max-width: 720px;
}

.home-hero-copy h1 {
  max-width: 690px;
}

.home-hero-copy .hero-text {
  max-width: 650px;
  font-size: 18px;
}

.control-trace {
  min-width: 0;
  background: linear-gradient(
    176deg,
    color-mix(in srgb, var(--accent) 5%, var(--surface)),
    var(--surface) 128px
  );
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 26px 64px -30px rgba(8, 5, 0, 0.72),
    inset 0 1px 0 color-mix(in srgb, var(--accent) 16%, transparent);
}

.control-trace__header {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.control-trace__row {
  padding: 22px 20px 25px;
}

.control-trace__row > span,
.control-trace__decision > span:first-child,
.control-trace__meta dt {
  color: var(--faint);
  font-size: 10px;
}

.control-trace__decision > span.status-label {
  color: var(--on-danger);
}

.control-trace__row p {
  margin: 12px 0 0;
  font-size: 15px;
}

.control-trace__decision {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--block) 9%, transparent);
  border-block: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--block);
}

.control-trace__decision div {
  display: grid;
  gap: 4px;
}

.control-trace__decision strong {
  font-size: 17px;
}

.control-trace__decision small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
}

.control-trace__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
}

.control-trace__meta div {
  min-width: 0;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.control-trace__meta div:last-child {
  border-right: 0;
}

.control-trace__meta dt,
.control-trace__meta dd {
  margin: 0;
}

.control-trace__meta dd {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.incident-console {
  padding: clamp(24px, 4vw, 40px);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 4%, var(--surface)),
    var(--surface) 180px
  );
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.incident-console__stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line-strong);
}

.incident-input,
.incident-outcome {
  min-width: 0;
  padding: 28px 24px;
}

.incident-input {
  border-right: 1px solid var(--line);
}

.incident-input blockquote {
  margin: 24px 0;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.incident-input dl {
  margin: 0;
}

.incident-input dl div {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.incident-input dt,
.incident-input dd {
  margin: 0;
  font-size: 11px;
}

.incident-input dt {
  color: var(--faint);
}

.incident-outcome {
  align-content: center;
}

.incident-verdict-line {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

.incident-verdict-line > span {
  color: var(--faint);
  font-size: 11px;
}

.incident-verdict-line > strong {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding-inline: 12px;
  color: var(--on-danger);
  background: var(--block);
  border-radius: var(--radius-sm);
  box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--block) 70%, transparent);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
}

@media (prefers-reduced-motion: no-preference) {
  .incident-console[data-state="complete"] .incident-verdict-line > strong {
    animation: verdict-land 420ms cubic-bezier(0.2, 0.9, 0.25, 1.05);
  }
}

@keyframes verdict-land {
  from {
    opacity: 0;
    transform: scale(0.82);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.incident-outcome h3 {
  margin-bottom: 9px;
  font-size: 25px;
}

.incident-status {
  max-width: 480px;
  min-height: 48px;
  color: var(--muted);
  font-size: 13px;
}

.incident-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.incident-readout {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--line);
}

.incident-readout div {
  min-width: 0;
  padding: 15px;
  border-right: 1px solid var(--line);
}

.incident-readout div:last-child {
  border-right: 0;
}

.incident-readout dt,
.incident-readout dd {
  margin: 0;
}

.incident-readout dt {
  color: var(--faint);
  font-size: 11px;
}

.incident-readout dd {
  margin-top: 7px;
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.incident-sanitized,
.incident-console .raw-evidence {
  grid-column: 1 / -1;
}

.raw-evidence {
  margin-top: 0;
  border-top: 1px solid var(--line);
}

.raw-evidence summary {
  min-height: 46px;
  padding-block: 13px;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
}

.raw-evidence pre {
  margin-top: 0;
}

.action-boundary-section {
  padding-top: 8px;
}

.action-boundary {
  display: grid;
  grid-template-columns:
    minmax(120px, 1fr) 30px minmax(150px, 1fr) 30px minmax(140px, 1fr)
    30px minmax(130px, 0.9fr);
  align-items: stretch;
  border-block: 1px solid var(--line);
}

.action-boundary__node,
.action-boundary__gate {
  display: grid;
  gap: 8px;
  min-width: 0;
  min-height: 150px;
  align-content: center;
  padding: 18px;
}

.action-boundary__node > span,
.action-boundary__gate > span {
  color: var(--faint);
  font-size: 10px;
}

.action-boundary__node small,
.action-boundary__gate small {
  color: var(--muted);
  line-height: 1.45;
}

.action-boundary__gate {
  border-inline: 2px solid var(--accent);
}

.action-boundary__flow {
  display: grid;
  place-items: center;
  color: var(--accent);
}

.decision-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.decision-ledger > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.decision-ledger > div:last-child {
  border-right: 0;
}

.decision-ledger p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.integration-decision-ledger {
  border-top: 1px solid var(--line);
}

.framework-reference,
.operating-policy {
  margin: 0;
  border-top: 1px solid var(--line);
}

.framework-reference__item {
  border-bottom: 1px solid var(--line);
}

.framework-reference__item > summary {
  display: grid;
  grid-template-columns: minmax(170px, 0.45fr) minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 56px;
  padding-inline: 2px;
  cursor: pointer;
  list-style: none;
}

.framework-reference__item > summary::-webkit-details-marker {
  display: none;
}

.framework-reference__item > summary::after {
  color: var(--accent);
  font-family: var(--mono);
  content: "+";
}

.framework-reference__item[open] > summary::after {
  content: "−";
}

.framework-reference__item > summary strong {
  font-size: 13px;
}

.framework-reference__item > summary span {
  color: var(--faint);
  font-size: 11px;
}

.framework-reference__body {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 0 0 18px;
}

.framework-reference__body p,
.operating-policy dd p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.framework-reference__body pre {
  margin: 0;
}

.operating-policy > div {
  display: grid;
  grid-template-columns: minmax(140px, 0.35fr) minmax(0, 1fr);
  gap: 28px;
  padding: 18px 2px;
  border-bottom: 1px solid var(--line);
}

.operating-policy dt,
.operating-policy dd {
  margin: 0;
}

.operating-policy dt {
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.operating-policy dd strong {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
}

.offline-proof {
  padding-block: clamp(48px, 7vw, 76px);
  border-block: 1px solid var(--line);
}

.offline-proof__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.offline-proof__grid article {
  min-width: 0;
  min-height: 170px;
  padding: 22px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offline-proof__grid article:last-child {
  border-right: 0;
}

.offline-proof__grid article > span {
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
}

.offline-proof__grid article > strong {
  display: block;
  margin-top: 32px;
  font-size: 17px;
}

.offline-proof__grid article > p {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.offline-proof__grid article {
  transition:
    background 260ms ease,
    box-shadow 260ms ease;
}

.offline-proof__grid article[data-state="verified"],
.offline-proof__grid article[data-state="rejected"] {
  background: color-mix(in srgb, var(--allow) 9%, transparent);
  box-shadow: inset 0 2px 0 var(--allow);
}

.offline-proof__grid article[data-state="verified"] > strong,
.offline-proof__grid article[data-state="rejected"] > strong {
  color: var(--allow);
}

.offline-proof__grid article[data-state="failed"] {
  background: color-mix(in srgb, var(--block) 10%, transparent);
  box-shadow: inset 0 2px 0 var(--block);
}

.offline-proof__grid article[data-state="failed"] > strong {
  color: var(--block);
}

.offline-proof__evidence {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--line);
}

.offline-proof__evidence div {
  min-width: 0;
  padding: 13px 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.offline-proof__evidence div:nth-child(3n) {
  border-right: 0;
}

.offline-proof__evidence dt,
.offline-proof__evidence dd {
  margin: 0;
}

.offline-proof__evidence dt {
  color: var(--faint);
  font-size: 11px;
}

.offline-proof__evidence dd {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.offline-proof__status {
  max-width: 340px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.integration-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(380px, 1.15fr);
  gap: 48px;
  align-items: start;
}

.integration-preview__intro {
  padding-top: 12px;
}

.integration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 14px;
  margin-block: 22px;
}

.integration-pills a {
  color: var(--muted);
  font-size: 12px;
  text-underline-offset: 4px;
}

.integration-preview__code {
  min-width: 0;
}

.code-label {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 10px 8px 14px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-bottom: 0;
  font-family: var(--mono);
  font-size: 10px;
}

.code-label + pre,
.integration-preview__code pre {
  margin: 0;
  border-radius: 0;
}

.service-list {
  grid-column: 1 / -1;
  margin-top: 34px;
  border-top: 1px solid var(--line-strong);
}

.service-list__heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  padding-block: 26px 18px;
}

.service-list__heading h3 {
  margin: 0;
  font-size: 22px;
}

.service-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 28px;
  align-items: center;
  padding-block: 20px;
  border-top: 1px solid var(--line);
}

.service-list article h3,
.service-list article p {
  margin-bottom: 5px;
}

.service-list article p {
  color: var(--muted);
  font-size: 13px;
}

.final-cta {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
  gap: 72px;
  align-items: end;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.final-cta h2 {
  max-width: 680px;
  font-size: clamp(38px, 5vw, 60px);
}

.final-cta > div > p:not(.eyebrow) {
  max-width: 630px;
  color: var(--muted);
}

.route-index {
  display: grid;
  border-top: 1px solid var(--line);
}

.route-index a {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 16px;
  min-height: 64px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}

.route-index a:hover strong {
  color: var(--accent-bright);
}

.route-index span {
  color: var(--faint);
  font-size: 10px;
}

.route-index strong {
  font-size: 13px;
}

.scan-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.scan-input-panel,
.scan-result-panel {
  min-width: 0;
  padding: clamp(20px, 3vw, 28px);
}

.scan-result-panel {
  position: sticky;
  top: 78px;
  background: var(--bg-deep);
  border-left: 1px solid var(--line);
}

.scan-panel-heading,
.verdict-heading-row,
.receipt-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  justify-content: space-between;
}

.scan-input-panel > label,
.address-fieldset {
  margin-top: 18px;
}

.address-fieldset {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.address-fieldset legend {
  padding-inline: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

.address-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.address-chip-list,
.reason-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 32px;
  margin-top: 11px;
}

.address-chip,
.reason-chip {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  max-width: 100%;
  padding: 6px 8px;
  color: var(--accent-bright);
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.address-chip {
  padding: 0 0 0 8px;
}

.address-chip-remove {
  display: grid;
  flex: 0 0 44px;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding: 0;
  color: inherit;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.scan-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 11px;
}

.scan-empty-state {
  display: grid;
  min-height: 360px;
  align-content: center;
  padding: clamp(24px, 5vw, 54px);
}

.scan-empty-state p:last-child {
  max-width: 500px;
  color: var(--muted);
}

.scan-result {
  display: grid;
  gap: 20px;
}

.verdict-summary {
  padding: 20px;
  background: var(--surface);
  border-top: 2px solid var(--line-strong);
}

.verdict-summary[data-verdict="ALLOW"] {
  border-top-color: var(--allow);
}

.verdict-summary[data-verdict="ALLOW"] .verdict-label {
  color: var(--on-mint);
  background: var(--allow);
}

.verdict-summary[data-verdict="SANITIZE"] {
  border-top-color: var(--sanitize);
}

.verdict-summary[data-verdict="SANITIZE"] .verdict-label {
  color: var(--on-amber);
  background: var(--sanitize);
}

.verdict-summary[data-verdict="BLOCK"] {
  border-top-color: var(--block);
}

.verdict-heading-copy {
  display: grid;
  min-width: 0;
  gap: 10px;
}

.verdict-summary h2 {
  margin-bottom: 0;
  font-size: clamp(22px, 3vw, 30px);
}

.payload-diff {
  border-top: 1px solid var(--line);
}

.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.diff-grid > div {
  min-width: 0;
  padding: 14px;
  background: var(--surface);
}

.diff-label {
  color: var(--faint);
  font-size: 10px;
}

.detection-list {
  display: grid;
  gap: 8px;
}

.detection-item {
  padding: 13px;
  background: var(--surface-soft);
  border-left: 2px solid var(--sanitize);
}

del[data-diff="removed"],
ins[data-diff="added"] {
  padding: 0.06em 0.22em;
  text-decoration-thickness: 1.5px;
}

del[data-diff="removed"] {
  color: var(--error-text);
  background: color-mix(in srgb, var(--block) 10%, transparent);
}

ins[data-diff="added"] {
  color: var(--ink);
  background: color-mix(in srgb, var(--allow) 14%, transparent);
  text-decoration-color: var(--allow);
}

.theater-main,
.showcase-main {
  padding-top: 42px;
}

.theater-intro,
.showcase-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.4fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 32px;
}

.theater-boundary {
  padding: 18px 0;
  border-block: 1px solid var(--line);
}

.theater-boundary > span {
  color: var(--accent-bright);
  font-size: 10px;
  font-weight: 700;
}

.theater-boundary strong {
  display: block;
  margin-top: 8px;
}

.theater-boundary p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.theater-console {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
}

.theater-console__bar {
  display: flex;
  gap: 28px;
  align-items: end;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.theater-console__bar h2 {
  margin: 0;
  font-size: 30px;
}

.theater-readouts {
  display: grid;
  grid-template-columns: repeat(2, minmax(110px, 1fr));
  margin: 0;
  border: 1px solid var(--line);
}

.theater-readouts div {
  padding: 10px 12px;
}

.theater-readouts div + div {
  border-left: 1px solid var(--line);
}

.theater-readouts dt,
.theater-readouts dd {
  margin: 0;
}

.theater-readouts dt {
  color: var(--faint);
  font-size: 10px;
}

.theater-readouts dd {
  margin-top: 4px;
  font-family: var(--mono);
  font-size: 14px;
}

.theater-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(200px, 0.42fr);
  gap: 22px;
  align-items: center;
  min-height: 240px;
  padding: clamp(22px, 4vw, 36px);
  border-bottom: 1px solid var(--line);
}

.theater-stage__signal {
  display: grid;
  gap: 7px;
}

.theater-stage__signal span {
  width: 7px;
  height: 7px;
  background: var(--line-strong);
  border-radius: 50%;
}

.theater-stage[data-state="scanning"] .theater-stage__signal span {
  background: var(--accent);
}

.theater-stage__copy h3 {
  margin-block: 6px 9px;
  font-size: 28px;
}

.theater-stage__copy p {
  margin: 0;
  color: var(--muted);
}

.theater-stage__gate {
  display: grid;
  gap: 8px;
  min-height: 128px;
  align-content: center;
  padding: 18px;
  border-left: 2px solid var(--accent);
}

.theater-stage__gate strong,
.theater-stage__gate small {
  font-family: var(--mono);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.theater-stage[data-state="complete"] .theater-stage__gate {
  border-left-color: var(--allow);
}

.theater-stage[data-state="unexpected"] .theater-stage__gate,
.theater-stage[data-state="error"] .theater-stage__gate {
  border-left-color: var(--block);
}

.theater-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding-inline: 22px;
  color: var(--faint);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.theater-progress strong {
  color: var(--ink);
  font-family: var(--mono);
}

.theater-status {
  min-height: 24px;
  margin: 18px 22px 0;
  color: var(--muted);
  font-size: 12px;
}

.theater-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 22px 22px;
}

.theater-feed-panel {
  display: grid;
  grid-template-columns: minmax(230px, 0.5fr) minmax(0, 1fr);
  gap: 42px;
  margin-top: 24px;
  padding-block: 30px;
  border-block: 1px solid var(--line);
}

.theater-feed {
  display: grid;
  gap: 8px;
  align-content: start;
  margin: 0;
  padding: 0;
  list-style: none;
}

.theater-feed:empty::before {
  padding: 18px;
  color: var(--faint);
  background: var(--surface-soft);
  content: "No live results yet.";
}

.theater-feed__item {
  display: grid;
  grid-template-columns:
    minmax(120px, 0.8fr) minmax(140px, 1fr) minmax(170px, 1.1fr)
    auto;
  gap: 12px;
  align-items: center;
  min-height: 62px;
  padding: 12px 14px;
  background: var(--surface);
  border-left: 2px solid var(--accent);
}

.theater-feed__item[data-verdict="SANITIZE"] {
  border-left-color: var(--sanitize);
}

.theater-feed__item[data-verdict="BLOCK"] {
  border-left-color: var(--block);
}

.theater-feed__item span {
  color: var(--muted);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.theater-standard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  margin-top: 24px;
  padding-block: 28px;
  border-block: 1px solid var(--line);
}

.showcase-settings {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.showcase-stage {
  border-block: 1px solid var(--line-strong);
}

.showcase-scene {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 54px;
  align-items: center;
  min-height: 430px;
  padding-block: 38px;
}

.showcase-scene[hidden] {
  display: none;
}

.scene-copy > p:not(.eyebrow, .source-stamp) {
  color: var(--muted);
}

.recipient-compare {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--line);
}

.recipient-compare > div {
  display: grid;
  gap: 9px;
  min-width: 0;
  min-height: 160px;
  align-content: center;
  padding: 20px;
}

.recipient-compare > div + div {
  border-left: 1px solid var(--line);
}

.recipient-compare span,
.recipient-compare small {
  color: var(--faint);
  font-size: 10px;
}

.recipient-compare strong {
  font-family: var(--mono);
  overflow-wrap: anywhere;
}

.recipient-compare > p {
  grid-column: 1 / -1;
  margin: 0;
  padding: 13px 18px;
  color: var(--block);
  border-top: 1px solid var(--line);
  font-size: 12px;
}

.showcase-scan-status {
  min-height: 48px;
  margin-top: 14px;
  padding: 12px 14px;
  color: var(--muted);
  background: var(--surface-soft);
  border-left: 2px solid var(--line-strong);
  font-size: 12px;
}

.showcase-controls {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 16px;
}

.challenge-form-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
  gap: 36px;
}

.challenge-form-panel > .section-heading,
.challenge-form-panel > .inline-notice,
.challenge-form-panel > details {
  grid-column: 1;
}

.challenge-form-panel > .section-heading {
  display: block;
}

.challenge-form-panel > form {
  grid-row: 1 / span 4;
  grid-column: 2;
}

.gauntlet-example-grid {
  display: grid;
  gap: 8px;
}

.gauntlet-example {
  display: grid;
  gap: 6px;
  padding: 14px;
  color: var(--ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}

.confirmation,
.spend-boundary {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin-block: 14px;
  padding: 13px;
  background: var(--surface-soft);
  border-left: 2px solid var(--line-strong);
}

.confirmation input,
.spend-boundary input {
  width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
}

.gauntlet-receipt {
  max-width: 900px;
}

.receipt-data {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

[data-breaker-board] {
  padding-block: 32px;
  border-block: 1px solid var(--line);
}

[data-breaker-list] {
  display: grid;
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--line);
}

[data-breaker-row] {
  display: grid;
  grid-template-columns: minmax(150px, 0.6fr) minmax(0, 1.7fr) auto;
  gap: 18px;
  align-items: center;
  padding: 16px 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
}

[data-breaker-row] > .data-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

[data-breaker-row] > .data-list > div {
  grid-template-columns: 1fr;
  gap: 5px;
  padding: 7px 12px;
  border-top: 0;
  border-left: 1px solid var(--line);
}

[data-breaker-certificate] {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 36px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--accent);
}

[data-breaker-certificate] .receipt-data {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-block: 22px;
  border-top: 1px solid var(--line);
}

[data-breaker-certificate] .receipt-data > div {
  grid-template-columns: 1fr;
  padding: 14px;
  border-right: 1px solid var(--line);
}

.doc-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

.doc-nav,
.legal-nav {
  position: sticky;
  top: 88px;
  display: grid;
  max-height: calc(100vh - 112px);
  overflow: auto;
  border-top: 1px solid var(--line);
}

.doc-nav a,
.legal-nav a {
  padding: 10px 2px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  font-size: 11px;
}

.doc-nav a:hover,
.doc-nav a[aria-current="page"],
.legal-nav a:hover,
.legal-nav a[aria-current="page"] {
  color: var(--ink);
}

.prose,
.legal-copy {
  min-width: 0;
}

.prose > section,
.legal-copy > section {
  margin-bottom: 44px;
}

.prose > section > p,
.legal-copy p,
.legal-copy li {
  max-width: var(--reading);
  color: var(--muted);
  font-size: 16px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 42px;
  align-items: start;
}

.docs-metadata {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  color: var(--faint);
  font-size: 11px;
}

.table-of-contents {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  align-items: baseline;
  padding-block: 14px;
  border-block: 1px solid var(--line);
}

.table-of-contents strong {
  flex-basis: 100%;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.table-of-contents a {
  color: var(--accent-bright);
  font-size: 13px;
  text-decoration: none;
}

.table-of-contents a:hover {
  text-decoration: underline;
}

.docs-reference-table,
.table-shell,
.reason-matrix {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-block: 1px solid var(--line);
}

.docs-reference-table table,
.table-shell table,
.reason-matrix table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: transparent;
}

.docs-reference-table caption,
.table-shell caption,
.reason-matrix caption {
  padding: 10px 12px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 700;
  text-align: left;
  caption-side: top;
}

.docs-reference-table th,
.docs-reference-table td,
.table-shell th,
.table-shell td,
.reason-matrix th,
.reason-matrix td {
  padding: 13px 12px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.5;
  text-align: left;
  vertical-align: top;
}

.docs-reference-table thead th,
.table-shell thead th,
.reason-matrix thead th {
  color: var(--faint);
  background: var(--surface-soft);
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.heading-anchor {
  margin-left: 7px;
  color: var(--faint);
  text-decoration: none;
  opacity: 0;
}

h2:hover .heading-anchor,
h3:hover .heading-anchor,
.heading-anchor:focus-visible {
  opacity: 1;
}

.doc-pagination {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 44px;
}

.doc-pagination a {
  display: grid;
  gap: 4px;
  min-height: 78px;
  align-content: center;
  padding: 14px;
  border: 1px solid var(--line);
  text-decoration: none;
}

.marketplace-filter-bar {
  grid-template-columns:
    minmax(200px, 1.4fr) repeat(3, minmax(130px, 0.75fr))
    auto;
  align-items: end;
}

.agent-ledger {
  margin-top: 18px;
  overflow: clip;
  background: linear-gradient(
    176deg,
    color-mix(in srgb, var(--accent) 5%, var(--surface)),
    var(--surface) 128px
  );
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 26px 64px -30px rgba(8, 5, 0, 0.72),
    inset 0 1px 0 color-mix(in srgb, var(--accent) 16%, transparent);
}

.agent-row {
  --match-tone: var(--faint);

  position: relative;
  display: grid;
  grid-template-columns:
    52px minmax(160px, 1.25fr) minmax(105px, 0.75fr) minmax(64px, 0.45fr)
    minmax(150px, 0.95fr) minmax(130px, 0.8fr) minmax(100px, 0.65fr);
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 13px 18px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  text-decoration: none;
}

.agent-row[data-match="none"] {
  --match-tone: var(--allow);
}

.agent-row[data-match="signal"] {
  --match-tone: var(--sanitize);
}

.agent-row--no-evidence {
  grid-template-columns:
    52px minmax(160px, 1.25fr) minmax(105px, 0.8fr)
    minmax(64px, 0.45fr) minmax(160px, 1fr) minmax(100px, 0.65fr);
}

.agent-row::before {
  display: block;
  width: 40px;
  height: 40px;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 12%, var(--surface-soft)),
    var(--surface-soft)
  );
  border: 1px solid color-mix(in srgb, var(--accent) 26%, var(--line));
  border-radius: var(--radius);
  content: "";
}

.agent-row::after {
  position: absolute;
  top: 50%;
  left: 38px;
  width: 2ch;
  overflow: hidden;
  color: var(--accent-bright);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  content: attr(data-name);
}

.agent-row--header {
  min-height: 46px;
  color: var(--faint);
  background: color-mix(in srgb, var(--accent) 4%, var(--surface-soft));
  border-bottom: 1px solid var(--line-strong);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.agent-row--header::before {
  width: auto;
  height: auto;
  background: none;
  border: 0;
}

.agent-row--header::after {
  content: none;
}

.agent-row:hover {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 3%, var(--surface-raised));
  box-shadow: inset 2px 0 0 var(--accent);
}

[data-agent-results] .agent-row:last-child {
  border-bottom: 0;
}

.agent-row > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.agent-row strong,
.agent-row small {
  display: block;
}

.agent-row strong {
  color: var(--ink);
}

.agent-row > span:first-of-type strong {
  font-size: 14px;
  font-weight: 650;
}

.agent-row small {
  margin-top: 3px;
  color: var(--faint);
}

.agent-row > span:first-of-type small {
  font-family: var(--mono);
  font-size: 10.5px;
}

.agent-row .num {
  font-variant-numeric: tabular-nums;
}

.agent-row [data-label="Public text"] strong {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 2px 10px;
  color: color-mix(in srgb, var(--match-tone) 76%, var(--ink));
  background: color-mix(in srgb, var(--match-tone) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--match-tone) 38%, var(--line));
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
}

.agent-row [data-label="Public text"] strong::before {
  flex: none;
  width: 6px;
  height: 6px;
  background: var(--match-tone);
  border-radius: 50%;
  content: "";
}

.agent-row [data-label="Endpoint evidence"] strong,
.agent-row [data-label="Endpoint evidence"] small {
  font-size: 11.5px;
  font-weight: 500;
}

.agent-row[data-audit="audited"] [data-label="Endpoint evidence"] strong,
.agent-row[data-apa="attested"] [data-label="Endpoint evidence"] small {
  color: var(--accent-bright);
}

.agent-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.agent-avatar {
  display: grid;
  width: 84px;
  height: 84px;
  place-items: center;
  color: var(--accent-bright);
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--accent) 14%, var(--surface-soft)),
    var(--surface-soft)
  );
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--accent) 20%, transparent);
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 800;
}

.scan-verdict {
  --verdict-tone: var(--faint);

  padding: 0;
  overflow: clip;
  background: linear-gradient(
    176deg,
    color-mix(in srgb, var(--accent) 5%, var(--surface)),
    var(--surface) 128px
  );
  border-color: var(--line-strong);
  border-radius: var(--radius-lg);
  box-shadow:
    0 26px 64px -30px rgba(8, 5, 0, 0.72),
    inset 0 1px 0 color-mix(in srgb, var(--accent) 16%, transparent);
}

.scan-verdict[data-verdict="ALLOW"] {
  --verdict-tone: var(--allow);
}

.scan-verdict[data-verdict="SANITIZE"] {
  --verdict-tone: var(--sanitize);
}

.scan-verdict[data-verdict="BLOCK"] {
  --verdict-tone: var(--block);
}

.scan-verdict__head {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  box-shadow: inset 4px 0 0 var(--verdict-tone);
}

.scan-verdict__head h2 {
  margin: 8px 0 0;
}

.scan-verdict__body {
  padding: 6px 24px 22px;
}

.status-label--unscanned {
  color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line-strong);
}

.snapshot-summary,
.record-kicker {
  max-width: 760px;
  color: var(--muted);
  font-size: 13px;
}

.surface-tabs {
  display: flex;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-bottom: 1px solid var(--line-strong);
}

.surface-tab {
  flex: 0 0 auto;
  min-height: 48px;
  padding: 0 16px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}

.surface-tab[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

.surface-panel {
  margin-top: 0;
}

.action-sequence,
.command-flow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
  counter-reset: command-step;
}

.action-sequence {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.action-sequence li,
.command-flow li {
  position: relative;
  min-width: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  counter-increment: command-step;
}

.command-flow li {
  padding-left: 68px;
  border-right: 0;
}

.command-flow li::before {
  position: absolute;
  top: 20px;
  left: 18px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--accent-bright);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 10px;
  content: counter(command-step, decimal-leading-zero);
}

.command-stage-state {
  padding: 4px 6px;
  color: var(--faint);
  background: var(--surface-soft);
  font-family: var(--mono);
  font-size: 10px;
}

.readiness-checklist {
  display: grid;
  gap: 7px;
  margin-block: 18px;
  padding: 0;
  border: 0;
}

.readiness-checklist label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  min-height: 44px;
  align-items: start;
  padding: 10px 11px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.readiness-checklist input {
  width: 20px;
  min-height: 20px;
  margin: 1px 0 0;
}

.readiness-checklist label:has(input:checked) {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.segmented-control {
  margin-top: 15px;
  padding: 0;
  border: 0;
}

.segmented-control-options {
  display: flex;
  width: fit-content;
  padding: 3px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.segmented-control label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding-inline: 13px;
  cursor: pointer;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.segmented-control label:has(input:checked) {
  color: var(--ink);
  background: var(--surface);
}

.evidence-boundary {
  border-left: 2px solid var(--accent);
}

.signed-receipt {
  padding: clamp(20px, 4vw, 32px);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-top: 2px solid var(--accent);
}

.async-state-panel {
  min-height: 84px;
  padding: 16px;
  color: var(--muted);
  background: var(--surface-soft);
  border-left: 2px solid var(--faint);
}

.async-state-panel[data-state="loading"] {
  border-left-color: var(--accent);
}

.async-state-panel[data-state="ready"] {
  border-left-color: var(--allow);
}

.async-state-panel[data-state="error"] {
  border-left-color: var(--block);
}

body[data-page-archetype="landing"],
.page-archetype--landing {
  --page-section-gap: clamp(72px, 9vw, 112px);
}

body[data-page-archetype="lab"],
.page-archetype--lab {
  --page-section-gap: clamp(44px, 6vw, 72px);
}

body[data-page-archetype="evidence"],
.page-archetype--evidence {
  --page-section-gap: clamp(48px, 7vw, 82px);
}

body[data-page-archetype="commerce"],
.page-archetype--commerce {
  --page-section-gap: clamp(52px, 7vw, 86px);
}

body[data-page-archetype="marketplace"],
.page-archetype--marketplace {
  --page-section-gap: clamp(36px, 5vw, 62px);
}

body[data-page-archetype="docs"],
body[data-page-archetype="legal"],
.page-archetype--docs,
.page-archetype--legal {
  --page-section-gap: clamp(42px, 6vw, 70px);
}

.toast-region {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(350px, calc(100% - 36px));
  color: var(--ink);
  background: var(--surface-raised);
  border: 0 solid var(--line-strong);
  border-radius: var(--radius);
  font-size: 12px;
}

.toast-region:not(:empty) {
  padding: 12px 14px;
  border-width: 1px;
  box-shadow: 0 16px 42px rgba(8, 5, 0, 0.28);
}

@media (max-width: 1060px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .site-nav {
    grid-row: 2;
    grid-column: 1 / -1;
    flex-wrap: wrap;
    justify-content: flex-start;
    padding-bottom: 8px;
  }

  .header-actions {
    grid-row: 1;
    grid-column: 2;
  }

  .js-enabled .site-header {
    grid-template-columns: auto auto minmax(0, 1fr);
  }

  .js-enabled .nav-toggle {
    display: inline-flex;
    grid-row: 1;
    grid-column: 2;
    justify-self: start;
  }

  .js-enabled .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    z-index: 40;
    display: none;
    align-content: start;
    width: min(390px, calc(100% - 28px));
    max-width: 100vw;
    height: 100dvh;
    padding: 20px 16px calc(24px + env(safe-area-inset-bottom));
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    border-left: 1px solid var(--line-strong);
    box-shadow: -16px 0 44px rgba(8, 5, 0, 0.3);
  }

  .js-enabled .site-nav.is-open {
    display: grid;
  }

  .js-enabled .header-actions {
    grid-row: 1;
    grid-column: 3;
  }

  body.nav-open {
    overflow: hidden;
  }

  body.nav-open .site-header {
    backdrop-filter: none;
  }

  .nav-close {
    display: inline-flex;
    justify-self: end;
  }

  .nav-link {
    justify-content: flex-start;
    min-height: 50px;
    padding-inline: 6px;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    font-size: 14px;
  }

  .nav-mobile-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding-top: 18px;
  }

  .home-hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-hero-copy {
    max-width: 820px;
  }

  .control-trace {
    max-width: 720px;
  }

  .integration-preview,
  .final-cta {
    grid-template-columns: 1fr;
  }

  .service-list {
    grid-column: auto;
  }

  .action-boundary {
    grid-template-columns: 1fr;
  }

  .action-boundary__flow {
    min-height: 30px;
    transform: rotate(90deg);
  }

  .action-boundary__node,
  .action-boundary__gate {
    min-height: 112px;
  }

  .action-boundary__gate {
    border-inline: 0;
    border-block: 2px solid var(--accent);
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .site-footer nav {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .marketplace-filter-bar {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .agent-ledger {
    overflow: visible;
    background: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .agent-row,
  .agent-row--no-evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 14px;
    margin-bottom: 10px;
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
  }

  .agent-row--header {
    display: none;
  }

  .agent-row::before {
    position: absolute;
    top: 16px;
    right: 16px;
  }

  .agent-row::after {
    top: 36px;
    right: 36px;
    left: auto;
    transform: translate(50%, -50%);
  }

  [data-agent-results] .agent-row:last-child {
    border-bottom: 1px solid var(--line);
  }

  .agent-row > span:first-child {
    grid-column: 1 / -1;
    padding-right: 56px;
  }

  .agent-row [data-label]::before {
    display: block;
    margin-bottom: 3px;
    color: var(--faint);
    font-size: 11px;
    text-transform: uppercase;
    content: attr(data-label);
  }

  .linked-evidence-ledger {
    grid-template-columns: 1fr;
  }

  .theater-intro,
  .theater-feed-panel,
  .theater-standard,
  .showcase-header,
  .showcase-scene,
  .challenge-form-panel {
    grid-template-columns: 1fr;
  }

  .challenge-form-panel > .section-heading,
  .challenge-form-panel > .inline-notice,
  .challenge-form-panel > details,
  .challenge-form-panel > form {
    grid-row: auto;
    grid-column: auto;
  }

  .theater-stage {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .theater-stage__gate {
    grid-column: 1 / -1;
  }

  .showcase-scene {
    min-height: 0;
  }
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 24px, var(--content));
  }

  .site-header {
    gap: 7px;
  }

  .status-pill span:last-child,
  .header-integrate,
  .header-scan {
    display: none;
  }

  .status-pill {
    width: 44px;
    padding: 0;
  }

  .status-pill::after {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 800;
    content: "?";
  }

  .status-pill[data-health-state="live"]::after,
  .status-pill[data-health-state="ok"]::after {
    content: "UP";
  }

  .status-pill[data-health-state="unavailable"]::after {
    content: "OFF";
  }

  .status-pill .live-dot {
    margin-right: 5px;
  }

  .header-actions {
    justify-self: end;
  }

  .site-main {
    padding-block: 42px 72px;
  }

  h1 {
    font-size: clamp(38px, 11vw, 54px);
  }

  h2 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .hero-text,
  .section-copy,
  .note {
    font-size: 15px;
  }

  .section-heading,
  .offline-proof__heading {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .incident-console__stage,
  .scan-workspace {
    grid-template-columns: 1fr;
  }

  .incident-input {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .scan-result-panel {
    position: static;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .incident-readout,
  .proof-strip,
  .data-grid,
  .result-grid,
  .status-grid,
  .status-source-grid,
  .metric-line,
  .offline-proof__grid,
  .offline-proof__evidence,
  .decision-ledger,
  .card-grid,
  .service-grid,
  .marketplace-service__summary,
  .docs-grid,
  .badge-grid,
  .docs-decision-grid,
  .badge-evidence-grid,
  .filter-bar,
  .form-grid,
  .receipt-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .incident-readout div:nth-child(2n),
  .proof-strip > div:nth-child(2n),
  .data-grid > div:nth-child(2n),
  .result-grid > div:nth-child(2n),
  .status-grid > div:nth-child(2n),
  .metric-line > div:nth-child(2n),
  .offline-proof__grid article:nth-child(2n),
  .offline-proof__evidence div:nth-child(2n) {
    border-right: 0;
  }

  .offline-proof__evidence div:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .service-list__heading,
  .service-list article {
    grid-template-columns: 1fr auto;
  }

  .service-list article .button {
    grid-column: 1 / -1;
    width: fit-content;
  }

  .doc-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .doc-nav,
  .legal-nav {
    position: static;
    max-height: 240px;
  }

  .action-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  [data-breaker-row] {
    grid-template-columns: 1fr;
  }

  [data-breaker-row] > .data-list,
  [data-breaker-certificate] .receipt-data {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer nav {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 560px) {
  .site-nav {
    width: calc(100% - 16px);
  }

  .theme-toggle {
    width: 44px;
    padding: 0;
    font-size: 0;
  }

  .theme-toggle::after {
    font-size: 10px;
    content: "MODE";
  }

  .home-hero {
    gap: 34px;
    padding-block: 12px 52px;
  }

  .control-trace__meta,
  .incident-readout,
  .proof-strip,
  .data-grid,
  .result-grid,
  .status-grid,
  .status-source-grid,
  .metric-line,
  .offline-proof__grid,
  .offline-proof__evidence,
  .decision-ledger,
  .card-grid,
  .service-grid,
  .marketplace-service__summary,
  .docs-grid,
  .badge-grid,
  .docs-decision-grid,
  .badge-evidence-grid,
  .filter-bar,
  .form-grid,
  .receipt-data,
  .diff-grid,
  .recipient-compare,
  .doc-pagination,
  .action-sequence,
  [data-breaker-row] > .data-list,
  [data-breaker-certificate] .receipt-data {
    grid-template-columns: 1fr;
  }

  .control-trace__meta div,
  .incident-readout div,
  .proof-strip > div,
  .data-grid > div,
  .result-grid > div,
  .status-grid > div,
  .status-source-grid > div,
  .metric-line > div,
  .offline-proof__grid article,
  .offline-proof__evidence div,
  .offline-proof__evidence div:nth-child(3n),
  .decision-ledger > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .control-trace__meta div:last-child,
  .incident-readout div:last-child,
  .proof-strip > div:last-child,
  .data-grid > div:last-child,
  .result-grid > div:last-child,
  .status-grid > div:last-child,
  .status-source-grid > div:last-child,
  .metric-line > div:last-of-type,
  .offline-proof__grid article:last-child,
  .offline-proof__evidence div:last-child,
  .decision-ledger > div:last-child {
    border-bottom: 0;
  }

  .control-trace__decision,
  .address-entry,
  .data-list > div {
    grid-template-columns: 1fr;
  }

  .badge-detail .badge-evidence {
    border-right: 0;
  }

  .badge-detail > .section-heading,
  .badge-detail .badge-evidence {
    padding: 20px;
  }

  .badge-detail > .snippet-card {
    margin: 20px 20px 0;
  }

  .badge-detail > .record-actions {
    padding-inline: 20px;
  }

  .badge-detail > .evidence-boundary {
    margin: 20px;
  }

  .marketplace-service__body {
    padding-left: 4px;
  }

  .framework-reference__item > summary {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 4px 12px;
    padding-block: 13px;
  }

  .framework-reference__item > summary span {
    grid-row: 2;
    grid-column: 1 / -1;
  }

  .framework-reference__body,
  .operating-policy > div {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .incident-input,
  .incident-outcome,
  .scan-input-panel,
  .scan-result-panel {
    padding: 18px;
  }

  .incident-controls,
  .showcase-controls,
  .theater-controls {
    display: grid;
  }

  .button,
  .copy-button {
    width: 100%;
  }

  .service-list__heading,
  .service-list article {
    grid-template-columns: 1fr;
  }

  .service-list article .button {
    width: 100%;
  }

  .theater-console__bar,
  .theater-stage {
    display: grid;
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .theater-stage__gate {
    grid-column: auto;
  }

  .theater-stage__signal {
    display: flex;
  }

  .theater-readouts {
    grid-template-columns: 1fr;
  }

  .theater-readouts div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .theater-feed__item {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .route-index a {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .site-footer nav {
    grid-template-columns: 1fr;
  }

  .segmented-control-options {
    width: 100%;
  }

  .segmented-control label {
    flex: 1;
  }

  .agent-row,
  .agent-row--no-evidence {
    grid-template-columns: 1fr;
  }

  .agent-row > span:first-child {
    grid-column: auto;
  }
}

@media (max-width: 380px) {
  .page-shell {
    width: calc(100% - 16px);
  }

  .brand span {
    display: none;
  }

  .brand {
    min-width: 44px;
    justify-content: center;
  }

  .site-header,
  .header-actions {
    gap: 3px;
  }

  .nav-toggle {
    padding-inline: 9px;
  }

  .feature-panel,
  .console-card,
  .snippet-card,
  .breaker-card,
  .badge-card,
  .reason-card,
  .readiness-panel,
  .integration-catalog,
  .status-live-panel {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .hero-actions,
  .copy-button,
  .theme-toggle,
  .nav-toggle {
    display: none !important;
  }

  body {
    color: #141109;
    background: #ffffff;
  }

  .page-shell {
    width: 100%;
  }

  .legal-layout,
  .doc-layout {
    grid-template-columns: 1fr;
  }
}
