:root {
  color-scheme: dark;
  --ink: #0b0b0c;
  --ink-soft: #111214;
  --paper: #f7f7f4;
  --paper-strong: #ffffff;
  --text: #f4f4f1;
  --text-dark: #111214;
  --muted: #a4a5a7;
  --muted-dark: #55585e;
  --rule: #424448;
  --rule-light: #c9c9c4;
  --proof: #e54836;
  --proof-dark: #b72e21;
  --pass: #36b86d;
  --unknown: #e1a338;
  --sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  --page: min(1500px, calc(100vw - 64px));
  --section-y: clamp(84px, 9vw, 144px);
  --focus: 0 0 0 3px rgba(229, 72, 54, 0.4);
}

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

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 2px solid var(--proof);
  outline-offset: 4px;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--proof-dark);
  transform: translateY(-160%);
}

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

.site-header {
  position: relative;
  z-index: 10;
  width: var(--page);
  min-height: 94px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--paper);
  font-size: clamp(1.3rem, 2vw, 1.75rem);
  font-weight: 750;
  letter-spacing: -0.055em;
  text-decoration: none;
}

.brand-mark {
  color: var(--proof);
  font-family: var(--mono);
  font-size: 0.8em;
  font-weight: 500;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3.4vw, 58px);
}

.site-header nav a {
  color: #e5e5e2;
  font-size: 0.98rem;
  text-decoration: none;
}

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

.section-dark,
.section-paper {
  padding: var(--section-y) max(32px, calc((100vw - min(1500px, calc(100vw - 64px))) / 2));
}

.section-dark {
  color: var(--text);
  background: var(--ink);
}

.section-paper {
  color: var(--text-dark);
  background: var(--paper);
}

.hero {
  min-height: calc(100svh - 94px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(560px, 1.14fr);
  align-items: center;
  gap: clamp(54px, 7vw, 120px);
  padding-top: clamp(68px, 8vw, 118px);
  padding-bottom: clamp(74px, 8vw, 118px);
}

.hero-copy h1,
.section-intro h2,
.incident-heading h2,
.trust-copy h2,
.closing h2 {
  margin: 0;
  font-weight: 760;
  letter-spacing: -0.06em;
  line-height: 0.99;
}

.hero-copy h1 {
  max-width: 760px;
  font-size: clamp(3.8rem, 7vw, 7.7rem);
}

.hero-copy > p {
  max-width: 650px;
  margin: 36px 0 0;
  color: #d2d2cf;
  font-size: clamp(1.15rem, 1.7vw, 1.58rem);
  line-height: 1.48;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

.button {
  min-height: 58px;
  padding: 16px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #a9aaac;
  color: var(--text);
  font-size: 1rem;
  font-weight: 620;
  text-decoration: none;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--proof);
  background: var(--proof-dark);
}

.button-primary:hover {
  border-color: #ff6a59;
  background: var(--proof);
}

.button-ghost:hover {
  border-color: var(--paper);
  color: var(--ink);
  background: var(--paper);
}

.terminal {
  min-width: 0;
  border: 1px solid #65676a;
  background: #090a0b;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.28);
  font-family: var(--mono);
}

.terminal-titlebar {
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 11px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.terminal-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--proof);
  box-shadow: 16px 0 0 #e6b63a, 32px 0 0 var(--pass);
  margin-right: 31px;
}

.state-toggle {
  margin-left: auto;
  padding: 7px 9px;
  border: 1px solid #505256;
  color: #d8d8d4;
  background: transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0;
  text-transform: none;
  cursor: pointer;
}

.state-toggle:hover {
  border-color: var(--proof);
  color: #fff;
}

.terminal-command {
  padding: 24px 26px 18px;
  color: #ecece9;
  font-size: clamp(0.86rem, 1.1vw, 1rem);
}

.terminal-command span {
  color: var(--muted);
}

.terminal-command b {
  color: var(--proof);
  font-weight: 650;
}

.receipt {
  margin: 0 26px 26px;
  border-top: 1px solid #505256;
}

.receipt[hidden] {
  display: none;
}

.verdict {
  margin: 0;
  padding: 20px 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 650;
}

.verdict span:last-child {
  color: var(--muted);
  font-weight: 400;
}

.verdict-pass {
  color: var(--pass);
}

.verdict-stale {
  color: var(--proof);
}

.receipt dl,
.event-detail dl {
  margin: 0;
}

.receipt dl div {
  display: grid;
  grid-template-columns: minmax(108px, 0.42fr) 1fr;
  gap: 18px;
  padding: 5px 0;
}

.receipt dt,
.event-detail dt {
  color: var(--muted);
}

.receipt dd,
.event-detail dd {
  min-width: 0;
  margin: 0;
  overflow-wrap: anywhere;
}

.receipt-note {
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid #34363a;
  color: #b9bab8;
  font-size: 0.78rem;
}

.receipt-note-red {
  color: #ff7668;
}

.proof-sequence {
  border-top: 1px solid #d6d6d1;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(380px, 0.72fr);
  align-items: end;
  gap: 8vw;
}

.section-intro h2,
.incident-heading h2,
.trust-copy h2 {
  font-size: clamp(3rem, 5.6vw, 6.3rem);
}

.section-intro > p,
.incident-heading p,
.trust-copy > p {
  margin: 0;
  color: var(--muted-dark);
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
}

.gate-steps {
  margin: clamp(64px, 7vw, 108px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  border-top: 2px solid var(--text-dark);
  border-bottom: 1px solid var(--rule-light);
}

.gate-steps li {
  position: relative;
  min-height: 310px;
  padding: 28px 26px 34px;
  border-right: 1px solid var(--rule-light);
}

.gate-steps li:last-child {
  border-right: 0;
}

.gate-steps li::after {
  content: "→";
  position: absolute;
  top: 49%;
  right: -15px;
  z-index: 2;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--proof);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 1.5rem;
}

.gate-steps li:last-child::after {
  display: none;
}

.step-number {
  color: var(--proof-dark);
  font-family: var(--mono);
  font-size: 0.88rem;
}

.gate-steps h3 {
  margin: 35px 0 12px;
  font-size: clamp(1.08rem, 1.5vw, 1.38rem);
  line-height: 1.18;
}

.gate-steps p {
  margin: 0;
  color: var(--muted-dark);
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.55;
}

.step-alert {
  background: rgba(229, 72, 54, 0.045);
}

.stamp {
  margin-top: 28px;
  padding: 7px 9px;
  display: inline-block;
  border: 2px solid currentColor;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.stamp-red {
  color: var(--proof-dark);
}

.stamp-green {
  color: #187a42;
}

.receipt-anatomy {
  margin-top: clamp(52px, 6vw, 88px);
  display: grid;
  grid-template-columns: minmax(260px, 0.56fr) minmax(0, 1.1fr);
  gap: 7vw;
  align-items: start;
}

.receipt-anatomy h3 {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 2vw, 2.1rem);
}

.receipt-anatomy p {
  margin: 0;
  color: var(--muted-dark);
}

.receipt-anatomy pre {
  margin: 0;
  padding: 24px 26px;
  overflow: auto;
  border: 1px solid #9a9b98;
  color: #1b1d21;
  background: var(--paper-strong);
  font: 0.87rem/1.7 var(--mono);
  box-shadow: 8px 8px 0 rgba(229, 72, 54, 0.12);
}

.incident {
  border-top: 1px solid var(--rule);
}

.incident-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
}

.incident-heading > div {
  max-width: 1040px;
}

.incident-heading h2 {
  max-width: 1000px;
}

.incident-heading p {
  max-width: 720px;
  margin-top: 25px;
  color: #bfc0bd;
}

.text-link {
  flex: 0 0 auto;
  color: #ecece9;
  font-family: var(--mono);
  font-size: 0.87rem;
}

.text-link:hover {
  color: var(--proof);
}

.report-shell {
  margin-top: clamp(54px, 6vw, 86px);
  border: 1px solid #5a5c5f;
  background: #0e0f10;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
}

.report-toolbar {
  min-height: 52px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--rule);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.report-layout {
  display: grid;
  grid-template-columns: minmax(400px, 1.08fr) minmax(300px, 0.82fr) minmax(250px, 0.62fr);
}

.timeline {
  margin: 0;
  padding: 22px 0;
  list-style: none;
  border-right: 1px solid var(--rule);
}

.timeline li {
  position: relative;
  min-height: 104px;
  padding: 17px 22px;
  display: grid;
  grid-template-columns: 48px 122px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-family: var(--mono);
  font-size: 0.77rem;
}

.timeline li::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 86px;
  width: 1px;
  background: #56585c;
}

.timeline li::after {
  content: "";
  position: absolute;
  top: 24px;
  left: 82px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #d7d7d4;
}

.timeline time,
.event-index {
  position: relative;
  z-index: 1;
  color: #c4c5c2;
}

.timeline b,
.timeline small,
.timeline strong {
  display: block;
}

.timeline b {
  color: #efefec;
  font-size: 0.82rem;
}

.timeline small {
  margin-top: 7px;
  color: #9d9e9c;
  font-size: 0.72rem;
}

.timeline strong {
  margin-top: 9px;
  color: var(--proof);
  font-size: 0.68rem;
}

.timeline .divergence {
  border-left: 4px solid var(--proof);
  background: linear-gradient(90deg, rgba(229, 72, 54, 0.14), rgba(229, 72, 54, 0));
}

.timeline .divergence::after {
  left: 78px;
  background: var(--proof);
}

.timeline .correction::after {
  background: var(--pass);
}

.timeline .correction b,
.timeline .correction .event-index {
  color: var(--pass);
}

.event-detail {
  padding: 30px;
  border-right: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: 0.77rem;
}

.detail-label {
  margin: 0 0 22px;
  color: #dededb;
  font-weight: 650;
}

.event-detail dl div {
  margin-bottom: 20px;
}

.event-detail dt {
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

.event-detail dd {
  padding: 10px 12px;
  border: 1px solid #424448;
  color: #e3e3df;
  background: #0a0b0c;
}

.evidence-matrix {
  padding: 30px 24px;
}

.evidence-matrix h3 {
  margin: 0 0 18px;
  font-size: 1.02rem;
}

.evidence-matrix ul {
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
}

.evidence-matrix li {
  padding: 14px 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #424448;
  font-size: 0.75rem;
}

.evidence-matrix li:last-child {
  border-bottom: 1px solid #424448;
}

.evidence-matrix b {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
}

.supported {
  color: var(--pass);
}

.unsupported {
  color: var(--proof);
}

.unknown {
  color: var(--unknown);
}

.evidence-matrix > p {
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
}

.precision {
  display: block;
  margin-top: 4px;
  color: var(--proof);
  font-family: var(--mono);
  font-size: 1.55rem;
  font-weight: 500;
}

.install-intro {
  align-items: start;
}

.install-switcher {
  margin-top: clamp(58px, 7vw, 96px);
  border: 1px solid #8d8e8b;
  background: var(--paper-strong);
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #8d8e8b;
}

.tab-list button {
  min-height: 86px;
  padding: 0 28px;
  border: 0;
  border-right: 1px solid #8d8e8b;
  color: #2b2d31;
  background: transparent;
  font-family: var(--mono);
  font-size: 1rem;
  text-align: left;
  cursor: pointer;
}

.tab-list button:last-child {
  border-right: 0;
}

.tab-list button span {
  margin-right: 20px;
  color: var(--proof-dark);
}

.tab-list button[aria-selected="true"] {
  box-shadow: inset 0 -4px 0 var(--proof);
  background: #f0f0ec;
}

.tab-list button:hover {
  background: #f3f3ef;
}

.tab-panel {
  min-height: 350px;
  padding: clamp(36px, 5vw, 70px);
}

.tab-panel[hidden] {
  display: none;
}

.tab-panel h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.4vw, 2.5rem);
  letter-spacing: -0.035em;
}

.tab-panel > p {
  max-width: 700px;
  margin: 14px 0 34px;
  color: var(--muted-dark);
}

.tab-panel > a {
  display: inline-block;
  margin-top: 26px;
  color: var(--proof-dark);
  font-family: var(--mono);
  font-size: 0.85rem;
}

.copy-row {
  max-width: 960px;
  margin: 12px 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border: 1px solid #8d8e8b;
  color: #202226;
  background: #fafaf8;
}

.copy-row code {
  min-width: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font: 0.85rem/1.5 var(--mono);
  white-space: nowrap;
}

.copy-row button {
  min-width: 95px;
  padding: 0 18px;
  border: 0;
  border-left: 1px solid #8d8e8b;
  color: var(--proof-dark);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.copy-row button:hover {
  color: #fff;
  background: var(--proof-dark);
}

.trust {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(460px, 1.16fr);
  gap: 9vw;
  border-top: 1px solid var(--rule);
}

.trust-copy > p {
  max-width: 630px;
  margin-top: 30px;
  color: #bfc0bd;
}

.trust-list {
  margin: 48px 0 0;
  padding: 0;
  list-style: none;
}

.trust-list li {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 16px;
  border-top: 1px solid var(--rule);
  font-family: var(--mono);
  font-size: clamp(0.9rem, 1.2vw, 1.08rem);
}

.trust-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.trust-list span {
  color: var(--proof);
}

.faq-list > h3 {
  margin: 9px 0 20px;
  color: var(--proof);
  font-family: var(--mono);
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.faq-list details {
  border-top: 1px solid var(--rule);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--rule);
}

.faq-list summary {
  position: relative;
  padding: 27px 46px 27px 0;
  color: #f0f0ed;
  font-size: clamp(1.08rem, 1.7vw, 1.42rem);
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 23px;
  right: 3px;
  color: var(--proof);
  font-family: var(--mono);
  font-size: 1.8rem;
  font-weight: 400;
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  max-width: 800px;
  margin: 0;
  padding: 0 40px 28px 0;
  color: #bfc0bd;
  font-family: var(--mono);
  font-size: 0.85rem;
}

.faq-list code {
  color: #fff;
}

.closing {
  padding-top: 74px;
  padding-bottom: 74px;
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  align-items: center;
  gap: 7vw;
  border-top: 1px solid var(--rule);
}

.closing h2 {
  position: relative;
  font-size: clamp(2.5rem, 4.2vw, 5.2rem);
}

.closing h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: min(100%, 420px);
  height: 4px;
  background: var(--proof);
  transform: rotate(1.2deg);
  transform-origin: left;
}

.closing-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.closing-links a {
  min-width: 0;
  padding: 18px 30px;
  border-left: 1px solid var(--rule);
  color: #e9e9e6;
  font-family: var(--mono);
  font-size: clamp(0.76rem, 1.1vw, 0.95rem);
  overflow-wrap: anywhere;
}

.closing-links small {
  margin-bottom: 8px;
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  width: var(--page);
  min-height: 96px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--rule);
  color: #86878a;
  background: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.site-footer p {
  margin: 0;
}

.site-footer div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.site-footer a:hover {
  color: var(--paper);
}

.legal-page {
  min-height: calc(100svh - 190px);
  padding: clamp(70px, 9vw, 130px) max(32px, calc((100vw - min(1040px, calc(100vw - 64px))) / 2));
  color: var(--text-dark);
  background: var(--paper);
}

.legal-page article {
  max-width: 860px;
}

.legal-page h1 {
  margin: 0 0 28px;
  font-size: clamp(3rem, 7vw, 6rem);
  letter-spacing: -0.06em;
  line-height: 1;
}

.legal-page h2 {
  margin-top: 42px;
  font-size: 1.4rem;
}

.legal-page p,
.legal-page li {
  color: #3f4247;
}

.legal-page code {
  color: var(--proof-dark);
}

@media (max-width: 1180px) {
  :root {
    --page: min(100% - 48px, 1120px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy {
    max-width: 880px;
  }

  .terminal {
    max-width: 920px;
  }

  .gate-steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .gate-steps li {
    min-height: 245px;
    border-bottom: 1px solid var(--rule-light);
  }

  .gate-steps li:nth-child(2n) {
    border-right: 0;
  }

  .gate-steps li::after {
    display: none;
  }

  .gate-steps li:last-child {
    grid-column: 1 / -1;
    min-height: 180px;
  }

  .report-layout {
    grid-template-columns: 1.1fr 0.9fr;
  }

  .evidence-matrix {
    grid-column: 1 / -1;
    border-top: 1px solid var(--rule);
  }
}

@media (max-width: 820px) {
  :root {
    --page: calc(100% - 32px);
    --section-y: 76px;
  }

  .site-header {
    min-height: 76px;
  }

  .site-header nav {
    gap: 18px;
  }

  .site-header nav a:nth-child(1),
  .site-header nav a:nth-child(3) {
    display: none;
  }

  .section-dark,
  .section-paper {
    padding-right: 16px;
    padding-left: 16px;
  }

  .hero-copy h1 {
    font-size: clamp(3.2rem, 13vw, 5.6rem);
  }

  .section-intro,
  .incident-heading,
  .trust,
  .closing {
    grid-template-columns: 1fr;
  }

  .section-intro {
    gap: 28px;
  }

  .section-intro h2,
  .incident-heading h2,
  .trust-copy h2 {
    font-size: clamp(2.8rem, 11vw, 5rem);
  }

  .incident-heading {
    display: grid;
    align-items: start;
  }

  .text-link {
    justify-self: start;
  }

  .receipt-anatomy {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .report-layout {
    grid-template-columns: 1fr;
  }

  .timeline,
  .event-detail {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

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

  .tab-list button {
    min-height: 64px;
    border-right: 0;
    border-bottom: 1px solid #8d8e8b;
  }

  .tab-list button:last-child {
    border-bottom: 0;
  }

  .tab-list button[aria-selected="true"] {
    box-shadow: inset 4px 0 0 var(--proof);
  }

  .trust {
    gap: 72px;
  }

  .closing {
    gap: 70px;
  }

  .closing-links {
    grid-template-columns: 1fr;
  }

  .closing-links a {
    border-top: 1px solid var(--rule);
  }

  .site-footer {
    padding: 26px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer div {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    gap: 54px;
  }

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

  .terminal-titlebar > span:not(.terminal-dot) {
    display: none;
  }

  .terminal-command {
    padding-right: 16px;
    padding-left: 16px;
  }

  .receipt {
    margin-right: 16px;
    margin-left: 16px;
  }

  .receipt dl div {
    grid-template-columns: 1fr;
    gap: 2px;
    margin-bottom: 8px;
  }

  .gate-steps {
    grid-template-columns: 1fr;
  }

  .gate-steps li,
  .gate-steps li:nth-child(2n) {
    min-height: 210px;
    border-right: 0;
  }

  .gate-steps li:last-child {
    grid-column: auto;
  }

  .timeline li {
    grid-template-columns: 44px 1fr;
  }

  .timeline time {
    display: none;
  }

  .timeline li::before,
  .timeline li::after {
    display: none;
  }

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

  .copy-row button {
    min-height: 50px;
    border-top: 1px solid #8d8e8b;
    border-left: 0;
  }

  .closing-links a {
    padding-left: 0;
    border-left: 0;
  }
}

@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,
  .hero-actions,
  .state-toggle,
  .site-footer {
    display: none;
  }

  body,
  .section-dark,
  .section-paper {
    color: #000;
    background: #fff;
  }
}

/* Long-form guide */

.guide-body {
  background:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--ink);
  background-size: 44px 44px;
}

.guide-main {
  width: var(--page);
  margin: 0 auto;
}

.guide-hero {
  padding: clamp(64px, 6vw, 96px) 0 clamp(44px, 5vw, 72px);
  border-bottom: 1px solid var(--rule);
}

.guide-hero-copy {
  max-width: 980px;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: var(--mono);
  font-size: clamp(3rem, 7.2vw, 7.4rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.94;
}

.guide-hero h1 span {
  color: var(--proof);
}

.guide-hero-copy > p {
  max-width: 790px;
  margin: 34px 0 0;
  color: #c6c7c8;
  font-family: var(--mono);
  font-size: clamp(1rem, 1.45vw, 1.26rem);
  line-height: 1.7;
}

.guide-hero .hero-actions {
  margin-top: 38px;
}

.guide-metadata {
  margin: clamp(40px, 5vw, 64px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--rule);
}

.guide-metadata div {
  min-height: 92px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  border-right: 1px solid var(--rule);
}

.guide-metadata div:last-child {
  border-right: 0;
}

.guide-metadata dt,
.guide-metadata dd {
  margin: 0;
}

.guide-metadata dt {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.guide-metadata dd {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.95rem;
}

.guide-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: clamp(48px, 6vw, 104px);
  align-items: start;
  min-width: 0;
}

.guide-toc {
  position: sticky;
  top: 24px;
  padding: 46px 0 40px;
  max-height: calc(100svh - 48px);
  overflow-y: auto;
}

.guide-toc > p {
  margin: 0 0 18px;
  color: #6f7176;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.guide-toc nav {
  display: grid;
}

.guide-toc nav a {
  padding: 8px 0 8px 14px;
  border-left: 1px solid #303237;
  color: #b8b9bb;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.35;
  text-decoration: none;
}

.guide-toc nav a:hover,
.guide-toc nav a:focus-visible {
  border-left-color: var(--proof);
  color: var(--paper);
}

.guide-toc-note {
  margin-top: 36px;
  padding: 24px 18px;
  border: 1px solid #303237;
  color: #8f9195;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.guide-toc-note p {
  margin: 0 0 16px;
}

.guide-toc-note a,
.guide-inline-link,
.guide-readme-fallback a {
  color: var(--proof);
  font-weight: 700;
  text-decoration: none;
}

.guide-content {
  min-width: 0;
  max-width: 100%;
  padding-bottom: clamp(90px, 10vw, 160px);
}

.guide-section {
  position: relative;
  padding: clamp(70px, 8vw, 118px) 0;
  border-bottom: 1px solid var(--rule);
  scroll-margin-top: 28px;
}

.guide-number {
  display: block;
  margin-bottom: 18px;
  color: var(--proof);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.guide-section h2 {
  max-width: 900px;
  margin: 0;
  color: var(--paper);
  font-family: var(--mono);
  font-size: clamp(2rem, 4.3vw, 4.2rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 1;
}

.guide-section > p,
.guide-section-heading p {
  max-width: 860px;
  margin: 26px 0 0;
  color: #b5b6b8;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  line-height: 1.75;
}

.guide-code-block {
  margin-top: 34px;
  border: 1px solid #393b40;
  background: rgba(3, 4, 6, 0.76);
}

.guide-code-head {
  min-height: 48px;
  padding-left: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #393b40;
  color: #8e9095;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.guide-code-head button {
  align-self: stretch;
  padding: 0 20px;
  border: 0;
  border-left: 1px solid #393b40;
  color: var(--paper);
  background: transparent;
  font-family: var(--mono);
  font-size: 0.72rem;
  cursor: pointer;
}

.guide-code-head button:hover {
  color: var(--ink);
  background: var(--paper);
}

.guide-code-block pre,
.guide-readme {
  margin: 0;
  padding: clamp(20px, 3vw, 34px);
  overflow: auto;
  color: #d9dadd;
  background: transparent;
  font-family: var(--mono);
  font-size: clamp(0.78rem, 1vw, 0.92rem);
  line-height: 1.72;
  white-space: pre;
}

.guide-callout {
  padding: 22px 24px;
  border-left: 3px solid var(--proof);
  color: #b9babc;
  background: #121316;
}

.guide-callout strong {
  color: var(--paper);
}

.guide-flow {
  margin: 42px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  border: 1px solid #393b40;
}

.guide-flow li {
  position: relative;
  min-height: 168px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 22px;
  border-right: 1px solid #393b40;
}

.guide-flow li:last-child {
  border-right: 0;
  box-shadow: inset 0 -3px 0 var(--pass);
}

.guide-flow li:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -11px;
  width: 22px;
  color: #77797d;
  background: var(--ink);
  text-align: center;
  transform: translateY(-50%);
}

.guide-flow strong {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.8rem;
}

.guide-flow span {
  color: #919398;
  font-size: 0.78rem;
  line-height: 1.5;
}

.guide-split {
  margin-top: 38px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 28px;
}

.guide-split > * {
  min-width: 0;
}

.guide-split .guide-code-block {
  margin-top: 0;
}

.guide-definitions {
  margin: 0;
  border-top: 1px solid #393b40;
}

.guide-definitions div {
  padding: 18px 0;
  display: grid;
  grid-template-columns: 108px 1fr;
  gap: 20px;
  border-bottom: 1px solid #393b40;
}

.guide-definitions dt,
.guide-definitions dd {
  margin: 0;
}

.guide-definitions dt {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.guide-definitions dd {
  color: #9b9da1;
  font-size: 0.84rem;
}

.guide-command-grid {
  margin-top: 38px;
  border-top: 1px solid #393b40;
}

.guide-command-grid div {
  padding: 24px 0;
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 30px;
  border-bottom: 1px solid #393b40;
}

.guide-command-grid code {
  color: var(--paper);
  font-size: 0.82rem;
}

.guide-command-grid span {
  color: #9b9da1;
  font-size: 0.88rem;
}

.guide-inline-link {
  margin-top: 28px;
  display: inline-block;
}

.guide-table-wrap {
  margin-top: 38px;
  overflow-x: auto;
  border: 1px solid #393b40;
}

.guide-table-wrap table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.guide-table-wrap th,
.guide-table-wrap td {
  padding: 18px 20px;
  border-right: 1px solid #393b40;
  border-bottom: 1px solid #393b40;
  text-align: left;
  vertical-align: top;
}

.guide-table-wrap th:last-child,
.guide-table-wrap td:last-child {
  border-right: 0;
}

.guide-table-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.guide-table-wrap th {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.guide-table-wrap td {
  color: #a9aaad;
}

.guide-table-wrap td:first-child {
  color: var(--paper);
}

.guide-boundaries {
  margin: 38px 0 0;
  padding: 0;
  display: grid;
  list-style: none;
  border-top: 1px solid #393b40;
}

.guide-boundaries li {
  padding: 20px 0;
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  border-bottom: 1px solid #393b40;
  color: #9b9da1;
}

.guide-boundaries strong {
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.82rem;
}

.guide-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}

.guide-section-heading p {
  margin-bottom: 0;
}

.guide-section-heading .button {
  flex: 0 0 auto;
}

.guide-readme {
  max-height: 920px;
  margin-top: 38px;
  border: 1px solid #393b40;
  background: rgba(3, 4, 6, 0.78);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.guide-readme [data-load-error="true"] {
  color: var(--unknown);
}

.guide-readme-fallback {
  font-size: 0.82rem !important;
}

@media (max-width: 1100px) {
  .guide-layout {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .guide-toc {
    position: relative;
    top: auto;
    z-index: 2;
    max-height: none;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    padding: 24px 0;
    border-bottom: 1px solid var(--rule);
    background: var(--ink);
    overflow: visible;
  }

  .guide-toc > p,
  .guide-toc-note {
    display: none;
  }

  .guide-toc nav {
    width: 100%;
    max-width: 100%;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
  }

  .guide-toc nav a {
    flex: 0 0 auto;
    padding: 8px 12px;
    border: 1px solid #303237;
  }
}

@media (max-width: 820px) {
  .guide-main {
    width: min(100% - 40px, 1500px);
  }

  .guide-metadata {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-metadata div:nth-child(2) {
    border-right: 0;
  }

  .guide-metadata div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--rule);
  }

  .guide-flow {
    grid-template-columns: 1fr;
  }

  .guide-flow li {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid #393b40;
  }

  .guide-flow li:last-child {
    border-bottom: 0;
  }

  .guide-flow li:not(:last-child)::after {
    top: auto;
    right: 20px;
    bottom: -12px;
    transform: rotate(90deg);
  }

  .guide-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .guide-hero h1 {
    font-size: clamp(2.75rem, 15vw, 4.5rem);
  }

  .guide-metadata {
    grid-template-columns: 1fr;
  }

  .guide-metadata div,
  .guide-metadata div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--rule);
  }

  .guide-metadata div:last-child {
    border-bottom: 0;
  }

  .guide-definitions div,
  .guide-command-grid div,
  .guide-boundaries li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .guide-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media print {
  .guide-toc,
  .guide-section-heading .button {
    display: none;
  }

  .guide-layout {
    display: block;
  }

  .guide-readme {
    max-height: none;
  }
}
