:root {
  color-scheme: light;
  --bg: #f4f8f7;
  --bg-raised: #ffffff;
  --bg-subtle: #e8f1ef;
  --bg-code: #102322;
  --text: #102928;
  --text-strong: #071a19;
  --muted: #49615f;
  --faint: #5c706d;
  --line: #c6d8d5;
  --line-strong: #99b8b3;
  --accent: #00675f;
  --accent-strong: #004b45;
  --accent-ink: #ffffff;
  --accent-soft: #d7eeea;
  --success: #08724f;
  --success-soft: #dff5ea;
  --denied: #a42b31;
  --denied-soft: #fbe8e9;
  --payment: #315eb8;
  --payment-soft: #e8efff;
  --shadow: 0 16px 38px rgba(14, 47, 44, 0.08);
  --shadow-small: 0 4px 14px rgba(14, 47, 44, 0.07);
  --radius: 18px;
  --radius-small: 10px;
  --page-gutter: clamp(1rem, 4vw, 2rem);
  --measure: 72ch;
}

:root[data-theme="light"] {
  color-scheme: light;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #081514;
  --bg-raised: #10201f;
  --bg-subtle: #132a28;
  --bg-code: #06100f;
  --text: #e5f1ef;
  --text-strong: #f4fbfa;
  --muted: #b3c6c3;
  --faint: #87a09c;
  --line: #2a4945;
  --line-strong: #47716a;
  --accent: #58c8b8;
  --accent-strong: #89e3d6;
  --accent-ink: #06211e;
  --accent-soft: #123a35;
  --success: #68d7a7;
  --success-soft: #103a2b;
  --denied: #ff9ca1;
  --denied-soft: #432327;
  --payment: #a8c0ff;
  --payment-soft: #1a2d55;
  --shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
  --shadow-small: 0 4px 14px rgba(0, 0, 0, 0.22);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --bg: #081514;
    --bg-raised: #10201f;
    --bg-subtle: #132a28;
    --bg-code: #06100f;
    --text: #e5f1ef;
    --text-strong: #f4fbfa;
    --muted: #b3c6c3;
    --faint: #87a09c;
    --line: #2a4945;
    --line-strong: #47716a;
    --accent: #58c8b8;
    --accent-strong: #89e3d6;
    --accent-ink: #06211e;
    --accent-soft: #123a35;
    --success: #68d7a7;
    --success-soft: #103a2b;
    --denied: #ff9ca1;
    --denied-soft: #432327;
    --payment: #a8c0ff;
    --payment-soft: #1a2d55;
    --shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
    --shadow-small: 0 4px 14px rgba(0, 0, 0, 0.22);
  }
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: var(--accent-ink);
}

a {
  color: inherit;
  text-underline-offset: 0.16em;
}

button,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

.skip-link {
  position: fixed;
  z-index: 50;
  top: 0.75rem;
  left: 0.75rem;
  transform: translateY(-180%);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius-small);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(1140px, calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.section {
  padding-block: clamp(4.75rem, 9vw, 8rem);
}

.section-border {
  border-top: 1px solid var(--line);
}

.eyebrow,
.step-label,
.card-kicker {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--text-strong);
  font-weight: 760;
  letter-spacing: -0.04em;
  line-height: 1.07;
}

h1 {
  max-width: 17ch;
  margin-bottom: 1.45rem;
  font-size: clamp(2.8rem, 5.4vw, 4.8rem);
}

h2 {
  max-width: 21ch;
  margin-bottom: 1rem;
  font-size: clamp(2.05rem, 4.2vw, 3.5rem);
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

p {
  color: var(--muted);
}

strong {
  color: var(--text-strong);
}

code {
  overflow-wrap: anywhere;
  color: var(--text-strong);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.9em;
}

.site-header {
  position: sticky;
  z-index: 10;
  top: 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  min-height: 4.5rem;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 0.55rem;
  color: var(--text-strong);
  font-size: 1.17rem;
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.55rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: Georgia, serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.1em;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2vw, 1.5rem);
  margin-inline: auto;
}

.site-nav a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
}

.theme-toggle {
  display: grid;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-raised);
  color: var(--text-strong);
}

.theme-toggle:hover {
  border-color: var(--line-strong);
  background: var(--bg-subtle);
}

.theme-toggle svg {
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.icon-moon {
  display: none;
}

:root[data-theme="dark"] .icon-sun {
  display: none;
}

:root[data-theme="dark"] .icon-moon {
  display: block;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .icon-sun {
    display: none;
  }

  :root:not([data-theme]) .icon-moon {
    display: block;
  }
}

.hero {
  overflow: hidden;
  padding-top: clamp(4.75rem, 9vw, 8.25rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(310px, 0.85fr);
  align-items: center;
  gap: clamp(2.75rem, 7vw, 7rem);
}

.hero-copy {
  position: relative;
}

.hero-copy::before {
  position: absolute;
  top: -3.4rem;
  left: -1.6rem;
  z-index: -1;
  width: 11rem;
  height: 11rem;
  border-radius: 50%;
  background: var(--accent-soft);
  content: "";
  filter: blur(1px);
  opacity: 0.8;
}

.hero-lead {
  max-width: 46ch;
  margin-bottom: 2rem;
  color: var(--text);
  font-size: clamp(1.08rem, 1.7vw, 1.34rem);
  line-height: 1.55;
}

.hero-actions,
.verifier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
}

@media (prefers-reduced-motion: no-preference) {
  .button,
  .theme-toggle,
  .receipt-details,
  .resource-link {
    transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 150ms ease;
  }
}

.button-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.button-primary:hover {
  background: var(--accent-strong);
  transform: translateY(-1px);
}

.button-secondary {
  border-color: var(--line-strong);
  background: var(--bg-raised);
  color: var(--text-strong);
}

.button-secondary:hover,
.button-quiet:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button-quiet {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.hero-footnote {
  max-width: 49ch;
  margin: 1.4rem 0 0;
  color: var(--faint);
  font-size: 0.88rem;
}

.hero-proof {
  position: relative;
  isolation: isolate;
  padding: clamp(1rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.hero-proof::after {
  position: absolute;
  z-index: -1;
  right: -5rem;
  bottom: -5rem;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: var(--accent-soft);
  content: "";
  filter: blur(4px);
}

.proof-label {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1.3rem;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.signal-dot {
  display: inline-block;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px var(--success-soft);
}

.proof-node {
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg-raised);
}

.proof-node strong,
.proof-node span:not(.node-index):not(.node-seal):not(.node-arrow) {
  display: block;
}

.proof-node strong {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
}

.proof-node div span {
  margin-top: 0.06rem;
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
}

.node-index {
  color: var(--faint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.72rem;
  font-weight: 800;
}

.node-seal,
.node-arrow {
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 900;
}

.proof-node-action .node-arrow {
  background: var(--payment-soft);
  color: var(--payment);
}

.proof-line {
  height: 1.4rem;
  margin-left: 1.9rem;
  border-left: 1px dashed var(--line-strong);
}

.proof-line span {
  display: block;
  width: 0.35rem;
  height: 0.35rem;
  margin-left: -0.2rem;
  border-radius: 50%;
  background: var(--line-strong);
}

.section-heading {
  max-width: var(--measure);
}

.section-heading > p:last-child {
  max-width: 61ch;
  margin-bottom: 0;
  font-size: 1.07rem;
}

.section-heading-wide {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(13rem, 0.82fr);
  column-gap: clamp(2rem, 8vw, 8rem);
  align-items: end;
  max-width: none;
  margin-bottom: clamp(2.3rem, 5vw, 4rem);
}

.section-heading-wide .eyebrow,
.section-heading-wide h2 {
  grid-column: 1;
}

.section-heading-wide > p:last-child {
  grid-row: 1 / span 2;
  grid-column: 2;
  margin-bottom: 0;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: stretch;
  gap: 0.9rem;
  padding: 0;
  margin: clamp(2.5rem, 5vw, 4rem) 0 0;
  list-style: none;
}

.flow-card {
  min-width: 0;
  padding: clamp(1.25rem, 2.5vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow-small);
}

.flow-card h3 {
  font-size: 1.25rem;
}

.flow-card p {
  margin: 0;
  font-size: 0.94rem;
}

.flow-number {
  display: inline-block;
  margin-bottom: 1.7rem;
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.flow-arrow {
  display: grid;
  width: 1.5rem;
  place-items: center;
  color: var(--accent);
  font-size: 1.3rem;
  font-weight: 700;
}

.run-section {
  background: linear-gradient(180deg, var(--bg) 0%, color-mix(in srgb, var(--bg-subtle) 50%, var(--bg)) 100%);
}

.run-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 70rem;
  padding: 0.9rem 1rem;
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg-raised);
}

.run-notice p {
  margin: 0;
  font-size: 0.88rem;
}

.notice-mark {
  display: grid;
  flex: 0 0 auto;
  width: 1.3rem;
  height: 1.3rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: 0.8rem;
  font-weight: 800;
}

.run-list {
  position: relative;
  max-width: 62rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.run-list::before {
  position: absolute;
  top: 1.35rem;
  bottom: 1.35rem;
  left: 1.3rem;
  border-left: 1px solid var(--line-strong);
  content: "";
}

.run-step {
  position: relative;
  display: grid;
  grid-template-columns: 2.7rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 1.7rem);
  padding-bottom: 1.2rem;
}

.run-step:last-child {
  padding-bottom: 0;
}

.run-marker {
  z-index: 1;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--bg);
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  font-weight: 900;
}

.run-marker-success,
.run-marker-verified {
  border-color: var(--success);
  background: var(--success-soft);
  color: var(--success);
}

.run-marker-denied {
  border-color: var(--denied);
  background: var(--denied-soft);
  color: var(--denied);
}

.run-marker-payment {
  border-color: var(--payment);
  background: var(--payment-soft);
  color: var(--payment);
}

.run-card {
  padding: clamp(1.25rem, 3vw, 1.8rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow-small);
}

.run-card .step-label {
  margin-bottom: 0.45rem;
}

.run-card h3 {
  margin-bottom: 0.7rem;
  font-size: clamp(1.27rem, 2.4vw, 1.65rem);
}

.run-card h3 span {
  color: var(--muted);
  font-size: 0.78em;
  letter-spacing: -0.025em;
}

.run-card > p {
  max-width: 62ch;
  margin-bottom: 1.1rem;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
}

.fact-list div {
  min-width: 0;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--bg-subtle);
}

.fact-list dt {
  margin-bottom: 0.15rem;
  color: var(--faint);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-list dd {
  margin: 0;
  color: var(--text-strong);
  font-size: 0.85rem;
  font-weight: 700;
}

.transaction-link {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.7rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  margin: 1.1rem 0;
  border: 1px solid color-mix(in srgb, var(--payment) 55%, var(--line));
  border-radius: 0.6rem;
  background: var(--payment-soft);
  color: var(--text-strong);
  font-size: 0.88rem;
  font-weight: 750;
  text-decoration: none;
}

.transaction-link:hover {
  border-color: var(--payment);
}

.transaction-label {
  color: var(--payment);
  font-weight: 850;
}

.receipt-details {
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--bg);
}

.receipt-details[open] {
  border-color: var(--line-strong);
}

.receipt-details summary {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.85rem;
  color: var(--text-strong);
  font-size: 0.89rem;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.receipt-details summary::-webkit-details-marker {
  display: none;
}

.receipt-details summary::before {
  color: var(--accent);
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}

.receipt-details[open] summary::before {
  content: "−";
}

.receipt-status {
  flex: 0 0 auto;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.02em;
}

.receipt-status-success {
  background: var(--success-soft);
  color: var(--success);
}

.receipt-status-denied {
  background: var(--denied-soft);
  color: var(--denied);
}

.receipt-json {
  max-height: 31rem;
  padding: 1rem;
  margin: 0;
  overflow: auto;
  border-top: 1px solid var(--line);
  border-radius: 0 0 0.55rem 0.55rem;
  background: var(--bg-code);
  color: #d9fff5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.73rem;
  line-height: 1.55;
  tab-size: 2;
  white-space: pre;
}

.receipt-json-short {
  max-height: 18rem;
}

.verifier-section {
  background: var(--bg-subtle);
}

.verifier-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  gap: clamp(2rem, 7vw, 7rem);
  align-items: start;
}

.verification-scope {
  display: flex;
  gap: 0.6rem;
  max-width: 55ch;
  padding: 0.85rem 0;
  margin-top: 1.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.85rem;
}

.verification-scope > span:first-child {
  color: var(--success);
  font-weight: 900;
}

.verifier-card {
  padding: clamp(1rem, 3vw, 1.5rem);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg-raised);
  box-shadow: var(--shadow);
}

.verifier-card label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-strong);
  font-size: 0.93rem;
  font-weight: 850;
}

.input-hint {
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.8rem;
}

#receipt-input {
  display: block;
  width: 100%;
  min-height: 18rem;
  padding: 0.8rem;
  resize: vertical;
  border: 1px solid var(--line-strong);
  border-radius: 0.65rem;
  background: var(--bg-code);
  color: #d9fff5;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.52;
}

#receipt-input::placeholder {
  color: #92aaa6;
}

#receipt-input[aria-invalid="true"] {
  border-color: var(--denied);
}

.verifier-actions {
  margin-top: 0.9rem;
}

.verify-result {
  display: grid;
  grid-template-columns: 1.9rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: start;
  padding: 0.9rem;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  background: var(--bg);
}

.verify-result-icon {
  display: grid;
  width: 1.9rem;
  height: 1.9rem;
  place-items: center;
  border-radius: 50%;
  background: var(--bg-subtle);
  color: var(--muted);
  font-weight: 900;
}

.verify-result strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.91rem;
}

.verify-result p {
  margin: 0;
  font-size: 0.82rem;
}

.verify-result[data-state="success"] {
  border-color: var(--success);
  background: var(--success-soft);
}

.verify-result[data-state="success"] .verify-result-icon {
  background: var(--success);
  color: var(--accent-ink);
}

.verify-result[data-state="error"] {
  border-color: var(--denied);
  background: var(--denied-soft);
}

.verify-result[data-state="error"] .verify-result-icon {
  background: var(--denied);
  color: #ffffff;
}

.verify-result[data-state="loading"] .verify-result-icon {
  color: var(--accent);
}

.tamper-note {
  margin: 0.8rem 0 0;
  color: var(--faint);
  font-size: 0.76rem;
}

.developer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 1rem;
}

.developer-card {
  min-width: 0;
  padding: clamp(1.15rem, 2.5vw, 1.55rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.developer-card-primary {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.developer-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.25rem;
}

.developer-card p:last-of-type {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.command-block {
  padding: 0.85rem;
  margin: 1.1rem 0;
  overflow: auto;
  border-radius: 0.55rem;
  background: var(--bg-code);
  color: #d9fff5;
  font-size: 0.83rem;
  line-height: 1.55;
}

.command-block code {
  color: inherit;
  white-space: pre;
}

.text-link {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  min-height: 40px;
  margin-top: 1rem;
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 850;
  text-decoration: none;
}

.text-link:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.resource-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.resource-link {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem;
  align-items: center;
  min-width: 0;
  min-height: 76px;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg-raised);
  color: var(--text-strong);
  text-decoration: none;
}

.resource-link:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.resource-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 0.45rem;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.78rem;
  font-weight: 850;
}

.resource-link strong,
.resource-link small {
  display: block;
}

.resource-link strong {
  font-size: 0.82rem;
  letter-spacing: -0.01em;
}

.resource-link small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.3;
}

.fit-table-wrap {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-raised);
}

.fit-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

.fit-table th,
.fit-table td {
  padding: 1rem;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}

.fit-table thead th {
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fit-table tbody th {
  width: 18%;
  color: var(--text-strong);
  font-size: 0.9rem;
}

.fit-table td {
  width: 41%;
  color: var(--muted);
  font-size: 0.9rem;
}

.fit-table tr:last-child th,
.fit-table tr:last-child td {
  border-bottom: 0;
}

.limits-section {
  background: var(--bg-subtle);
}

.limits-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 9vw, 10rem);
}

.limits-grid h2 {
  margin: 0;
}

.limits-list {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.limits-list li {
  position: relative;
  padding: 0.9rem 0.9rem 0.9rem 2.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--bg-raised);
  color: var(--muted);
  font-size: 0.92rem;
}

.limits-list li::before {
  position: absolute;
  top: 0.95rem;
  left: 0.95rem;
  color: var(--accent);
  content: "—";
  font-weight: 900;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem;
}

.footer-inner p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer-inner strong {
  font-weight: 850;
}

@media (max-width: 900px) {
  .hero-grid,
  .verifier-grid,
  .limits-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    max-width: 38rem;
  }

  .section-heading-wide {
    display: block;
  }

  .section-heading-wide > p:last-child {
    max-width: 58ch;
  }

  .developer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .developer-card-primary {
    grid-column: 1 / -1;
  }

  .resource-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    padding-block: 0.4rem;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 0.35rem;
  }

  .site-nav a {
    font-size: 0.76rem;
  }

  .theme-toggle {
    margin-left: auto;
  }

  h1 {
    font-size: clamp(2.15rem, 8.8vw, 2.9rem);
  }

  h2 {
    font-size: clamp(1.75rem, 7.6vw, 2.35rem);
  }

  .hero {
    padding-top: 3.8rem;
  }

  .hero-actions .button {
    width: 100%;
  }

  .flow {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .flow-arrow {
    width: 100%;
    height: 1.2rem;
    transform: rotate(90deg);
  }

  .flow-number {
    margin-bottom: 1rem;
  }

  .fact-list {
    grid-template-columns: 1fr;
  }

  .run-list::before {
    left: 1.1rem;
  }

  .run-step {
    grid-template-columns: 2.3rem minmax(0, 1fr);
    gap: 0.8rem;
  }

  .run-marker {
    width: 2.3rem;
    height: 2.3rem;
  }

  .run-card {
    padding: 1rem;
  }

  .transaction-link {
    grid-template-columns: 1fr auto;
  }

  .transaction-link code {
    grid-column: 1;
  }

  .transaction-link > span:last-child {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .receipt-details summary {
    font-size: 0.8rem;
  }

  .receipt-json {
    padding: 0.8rem;
    font-size: 0.69rem;
  }

  .developer-grid,
  .resource-row {
    grid-template-columns: 1fr;
  }

  .developer-card-primary {
    grid-column: auto;
  }

  .resource-link {
    min-height: 64px;
  }

  .footer-inner {
    display: grid;
  }
}

@media (max-width: 390px) {
  .site-nav a {
    font-size: 0.7rem;
  }

  .site-nav {
    gap: 0.25rem;
  }
}
