/* utxoproof Getting Started — static, local-first, no external assets. */
:root {
  --ink: #11161c;
  --ink-2: #26313d;
  --muted: #616b76;
  --muted-2: #7a8491;
  --paper: #f7f4ee;
  --paper-2: #fbfaf7;
  --card: #ffffff;
  --line: #e5dfd4;
  --line-strong: #d7cfc1;
  --orange: #f7931a;
  --orange-2: #ffad3d;
  --orange-soft: #fff2de;
  --orange-ink: #9a4d06;
  --teal: #0f766e;
  --teal-soft: #e2f5f0;
  --blue: #1d4ed8;
  --blue-soft: #e9efff;
  --red: #b42318;
  --red-soft: #fee9e7;
  --green: #087443;
  --green-soft: #e5f7ed;
  --navy: #0b1220;
  --navy-2: #121f32;
  --radius: 20px;
  --shadow: 0 18px 50px rgba(17, 22, 28, 0.08), 0 2px 8px rgba(17, 22, 28, 0.04);
  --shadow-sm: 0 8px 24px rgba(17, 22, 28, 0.07);
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.17em;
}

a:hover { color: var(--ink); }

img, svg { max-width: 100%; }

.icon svg,
.hero-facts svg,
.btn svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 10px;
}
.skip-link:focus { left: 12px; }

/* ── top bar ───────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 238, 0.9);
  border-bottom: 1px solid rgba(229, 223, 212, 0.8);
  backdrop-filter: blur(14px);
}

.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--orange);
  color: #fff;
  font-family: Georgia, serif;
  font-size: 21px;
  line-height: 1;
  box-shadow: 0 5px 12px rgba(247, 147, 26, 0.25);
}
.brand-sub {
  color: var(--muted);
  font-weight: 500;
  font-size: 13px;
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
  letter-spacing: 0;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
}
.topnav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 9px;
  white-space: nowrap;
}
.topnav a:hover { color: var(--ink); background: #fff; }
.topnav a.github {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  margin-left: 4px;
}
.topnav a.github:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }

/* ── hero ──────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 79% 38%, rgba(247, 147, 26, 0.2), transparent 35%),
    radial-gradient(circle at 12% 86%, rgba(15, 118, 110, 0.24), transparent 31%),
    linear-gradient(135deg, #0b1220 0%, #0c1727 55%, #111f33 100%);
  border-radius: 0 0 46px 46px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
  background-size: 27px 27px;
  opacity: 0.35;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.hero::after {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -180px;
  top: -230px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 66px 28px 92px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 52px;
  align-items: center;
}
.hero-copy { max-width: 660px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  color: #d8e2ee;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.14);
}
.hero h1 {
  margin: 22px 0 20px;
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.55rem);
  font-weight: 600;
  line-height: 0.99;
  letter-spacing: -0.045em;
}
.hero h1 em {
  color: var(--orange-2);
  font-style: normal;
  text-decoration: underline;
  text-decoration-color: rgba(247, 147, 26, 0.45);
  text-decoration-thickness: 0.09em;
  text-underline-offset: 0.08em;
}
.hero .lede {
  max-width: 59ch;
  margin: 0;
  color: #c7d2df;
  font-size: 1.09rem;
  line-height: 1.62;
}
.hero .lede strong { color: #fff; font-weight: 650; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 30px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 47px;
  padding: 0 20px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  color: #16120b;
  background: linear-gradient(180deg, var(--orange-2), var(--orange));
  box-shadow: 0 10px 24px rgba(247, 147, 26, 0.24);
}
.btn-primary:hover { color: #16120b; box-shadow: 0 14px 30px rgba(247, 147, 26, 0.32); }
.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
}
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, 0.1); }

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 22px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #9fb0c4;
  font-size: 12.5px;
}
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero-facts svg { width: 15px; height: 15px; color: #34d399; flex: none; }

.hero-art {
  position: relative;
  filter: drop-shadow(0 28px 45px rgba(0, 0, 0, 0.24));
}
.hero-art img { display: block; width: 100%; height: auto; }

.reality {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: -42px auto 0;
  padding: 0 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.reality-card {
  padding: 20px 21px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.reality-card .tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--orange-ink);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.reality-card .tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.reality-card p { margin: 7px 0 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.reality-card strong { font-weight: 750; }

/* ── page shell / toc ──────────────────────────────────────────────── */
.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 72px 28px 90px;
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 58px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 96px;
  font-size: 12.8px;
  line-height: 1.4;
}
.toc-title {
  margin: 0 0 12px;
  color: var(--muted-2);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.toc a {
  display: block;
  padding: 7px 0 7px 12px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  text-decoration: none;
}
.toc a:hover { color: var(--ink); border-left-color: var(--orange); }
.toc .toc-cta {
  margin-top: 16px;
  color: var(--orange-ink);
  font-weight: 750;
  border-left-color: var(--orange);
  background: linear-gradient(90deg, var(--orange-soft), transparent);
  border-radius: 0 8px 8px 0;
}
.toc .toc-meta {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11.5px;
}
.toc .toc-meta strong { display: block; color: var(--ink-2); font-size: 12px; margin-bottom: 2px; }

.article { min-width: 0; }
.article > section {
  padding-top: 8px;
  margin-bottom: 74px;
  scroll-margin-top: 92px;
}
.article > section + section {
  padding-top: 34px;
  border-top: 1px solid var(--line);
}
.section-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--orange-ink);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.section-kicker::after {
  content: "";
  height: 1px;
  flex: 1;
  max-width: 90px;
  background: var(--line-strong);
}
h2 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h3 {
  margin: 34px 0 10px;
  font-size: 1.16rem;
  font-weight: 750;
  letter-spacing: -0.015em;
}
h4 {
  margin: 24px 0 7px;
  font-size: 0.98rem;
  font-weight: 750;
}
.lede {
  max-width: 70ch;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}
p { margin: 0 0 15px; }
.article p a, .article li a { font-weight: 550; }
small, .small { font-size: 12.5px; color: var(--muted); }

.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 14px;
  margin: 22px 0;
}
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
  padding: 21px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
.card h3, .card h4 { margin: 0 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.52; }
.card .icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 13px;
  border-radius: 12px;
  background: var(--orange-soft);
  color: var(--orange-ink);
}
.card .icon svg { width: 20px; height: 20px; }
.card.teal .icon { background: var(--teal-soft); color: var(--teal); }
.card.blue .icon { background: var(--blue-soft); color: var(--blue); }
.card.red .icon { background: var(--red-soft); color: var(--red); }
.card.green .icon { background: var(--green-soft); color: var(--green); }
.card.dark { background: var(--navy); border-color: var(--navy-2); color: #fff; }
.card.dark h3 { color: #fff; }
.card.dark p { color: #b9c4d2; }

.callout {
  position: relative;
  margin: 24px 0;
  padding: 17px 20px 17px 22px;
  background: var(--orange-soft);
  border: 1px solid #f3d3a5;
  border-left: 4px solid var(--orange);
  border-radius: 0 14px 14px 0;
  color: #56320d;
  font-size: 14px;
  line-height: 1.55;
}
.callout strong { color: #3f2509; }
.callout p:last-child { margin-bottom: 0; }
.callout .label {
  display: block;
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange-ink);
}
.callout.good { background: var(--green-soft); border-color: #b7e4c8; border-left-color: var(--green); color: #0b4c32; }
.callout.good .label { color: var(--green); }
.callout.info { background: var(--blue-soft); border-color: #c9d7ff; border-left-color: var(--blue); color: #172a63; }
.callout.info .label { color: var(--blue); }
.callout.danger { background: var(--red-soft); border-color: #f3c3bf; border-left-color: var(--red); color: #5d1712; }
.callout.danger .label { color: var(--red); }
.callout.neutral { background: #f4f1eb; border-color: var(--line-strong); border-left-color: var(--muted-2); color: var(--ink-2); }
.callout.neutral .label { color: var(--muted); }

/* ── code / tree ───────────────────────────────────────────────────── */
pre {
  position: relative;
  margin: 18px 0;
  padding: 18px 20px;
  overflow-x: auto;
  background: #0c1420;
  color: #d8e2ee;
  border: 1px solid #1c2a3d;
  border-radius: 14px;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.58;
  tab-size: 2;
}
pre code { font: inherit; padding: 0; background: none; color: inherit; }
pre .c { color: #7f8b9a; }
pre .p { color: #f6c177; }
pre .v { color: #a7f3d0; }
pre .k { color: #93c5fd; }
pre.tree { background: #f4f1eb; color: #2b3540; border-color: var(--line); }
pre.tree .c { color: #8b94a0; }
pre.tree .v { color: var(--orange-ink); }
code {
  padding: 0.12em 0.35em;
  background: #efeae2;
  border: 1px solid #e1d9cd;
  border-radius: 5px;
  color: #3c2a16;
  font-family: var(--mono);
  font-size: 0.86em;
  word-break: break-word;
}
kbd {
  padding: 0.1em 0.4em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 5px;
  background: #fff;
  font-family: var(--mono);
  font-size: 0.82em;
}

/* ── tables ────────────────────────────────────────────────────────── */
.table-wrap {
  margin: 22px 0;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.48;
}
th {
  padding: 12px 15px;
  background: #f4f1eb;
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
td {
  padding: 13px 15px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
tr:hover td { background: #fdfcf9; }
td code { white-space: nowrap; }
td strong { font-weight: 750; }

/* ── figures ───────────────────────────────────────────────────────── */
figure.diagram {
  margin: 30px 0;
  padding: 14px 14px 12px;
  background: linear-gradient(180deg, #fff, #f5f1e9);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
figure.diagram img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
}
figcaption {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 7px 2px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
}
figcaption strong { color: var(--ink-2); font-weight: 750; white-space: nowrap; }

/* ── numbered steps ────────────────────────────────────────────────── */
.steps {
  counter-reset: step;
  display: grid;
  gap: 13px;
  margin: 24px 0;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  padding: 18px 20px 18px 17px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-top: 1px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--orange-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
}
.step h4 { margin: 0 0 4px; }
.step p { margin: 0; color: var(--muted); font-size: 13.5px; line-height: 1.55; }
.step pre { margin: 9px 0 0; padding: 11px 13px; font-size: 11.5px; }

/* ── preview cards ─────────────────────────────────────────────────── */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 24px 0;
}
.preview {
  display: block;
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.preview:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
  color: inherit;
}
.preview .shot {
  position: relative;
  height: 112px;
  background: linear-gradient(135deg, #f0ece4, #faf8f3);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.preview .shot.dark { background: linear-gradient(135deg, #0b1220, #18273d); }
.preview .shot .chrome {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 22px;
  padding: 0 9px;
  background: rgba(255, 255, 255, 0.65);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.preview .shot.dark .chrome { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.08); }
.preview .shot .chrome i { width: 5px; height: 5px; border-radius: 50%; background: #c9c2b6; }
.preview .shot.dark .chrome i { background: #50627a; }
.mini {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 12px;
  display: flex;
  align-items: flex-end;
  gap: 7px;
}
.mini .bar {
  flex: 1;
  border-radius: 5px 5px 2px 2px;
  background: var(--orange);
  opacity: 0.85;
}
.mini .bar:nth-child(2n) { background: var(--teal); }
.mini .bar:nth-child(3n) { background: var(--blue); }
.mini .bar:nth-child(4n) { background: var(--red); }
.mini .row { flex: 1; display: grid; gap: 5px; }
.mini .row span { display: block; height: 7px; border-radius: 4px; background: #d9d1c5; }
.mini .row span:nth-child(2n) { width: 70%; }
.mini .row span:nth-child(3n) { background: var(--orange); opacity: 0.55; }
.mini .donut {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: conic-gradient(var(--orange) 0 43%, var(--teal) 43% 72%, var(--blue) 72% 88%, var(--red) 88% 100%);
  border: 8px solid #fff;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.12);
}
.mini .list { flex: 1; display: grid; gap: 7px; }
.mini .list span { height: 8px; border-radius: 4px; background: #d8d0c4; }
.mini .list span:first-child { width: 64%; background: var(--orange); opacity: 0.6; }
.mini .list span:nth-child(3) { width: 82%; }
.mini .doc {
  width: 75px;
  height: 58px;
  margin: 0 auto;
  border-radius: 6px;
  background: #fff;
  border: 1px solid #d9d1c5;
  box-shadow: 6px 5px 0 #e9e3d9;
}
.mini .doc::before {
  content: "";
  display: block;
  margin: 10px 9px 6px;
  height: 5px;
  background: var(--orange);
  border-radius: 3px;
  box-shadow: 0 9px 0 #ded7cc, 0 18px 0 #ded7cc;
  opacity: 0.8;
}
.preview .body { padding: 14px 16px 15px; }
.preview .body h4 { margin: 0 0 3px; font-size: 14.5px; }
.preview .body p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.45; }
.preview .body .open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 9px;
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 700;
}

/* ── details ───────────────────────────────────────────────────────── */
details {
  margin: 16px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
summary {
  padding: 15px 18px;
  cursor: pointer;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 650;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  color: var(--orange-ink);
  font-family: var(--mono);
}
details[open] summary::before { content: "−"; }
details[open] summary { border-bottom: 1px solid var(--line); }
details .details-body { padding: 16px 18px 4px; }
details .details-body p:last-child { margin-bottom: 12px; }

/* ── checklists ────────────────────────────────────────────────────── */
.checklist {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}
.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.45;
}
.checklist input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
  accent-color: var(--orange);
}
.checklist li strong { font-weight: 750; }

/* ── misc ──────────────────────────────────────────────────────────── */
.pill-row { display: flex; flex-wrap: wrap; gap: 7px; margin: 16px 0; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
}
.pill.hot { background: var(--orange-soft); border-color: #f3d3a5; color: var(--orange-ink); }
.pill.good { background: var(--green-soft); border-color: #b7e4c8; color: var(--green); }
.pill.info { background: var(--blue-soft); border-color: #c9d7ff; color: var(--blue); }

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin: 22px 0;
}
.split > div { min-width: 0; }
.split h4 { margin-top: 0; }

.kv {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 18px;
  margin: 18px 0;
}
.kv dt { color: var(--muted); font-size: 12px; font-weight: 650; text-transform: uppercase; letter-spacing: 0.06em; }
.kv dd { margin: 0; font-size: 13.5px; }

.final-cta {
  position: relative;
  overflow: hidden;
  margin-top: 34px;
  padding: 34px 36px;
  background:
    radial-gradient(circle at 88% 20%, rgba(247, 147, 26, 0.24), transparent 38%),
    linear-gradient(135deg, #0b1220, #13233a);
  border-radius: 24px;
  color: #fff;
}
.final-cta::after {
  content: "₿";
  position: absolute;
  right: 26px;
  bottom: -52px;
  color: rgba(255, 255, 255, 0.06);
  font-family: Georgia, serif;
  font-size: 220px;
  line-height: 1;
}
.final-cta > * { position: relative; z-index: 1; }
.final-cta h2 { color: #fff; margin-bottom: 8px; }
.final-cta p { max-width: 62ch; color: #b9c4d2; }
.final-cta .hero-actions { margin-top: 18px; }

.footer {
  background: #0b1220;
  color: #9fb0c4;
  font-size: 12.5px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 28px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 30px;
}
.footer a { color: #d8e2ee; text-decoration-color: #50627a; }
.footer a:hover { color: #fff; }
.footer .fine { max-width: 63ch; color: #7f8b9a; }

/* ── responsive ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 34px; padding-top: 52px; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
  .hero-copy { max-width: 760px; }
  .reality { grid-template-columns: 1fr; margin-top: -34px; }
  .page { grid-template-columns: 1fr; gap: 30px; padding-top: 56px; }
  .toc {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 18px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
  }
  .toc-title { grid-column: 1 / -1; }
  .toc a { border-left: 0; border-bottom: 1px solid var(--line); padding: 7px 0; }
  .toc .toc-cta { border-left: 0; background: none; }
  .toc .toc-meta { display: none; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .topbar-inner { padding: 11px 18px; }
  .brand-sub { display: none; }
  .topnav a { padding: 8px; }
  .topnav a:nth-child(1) { display: none; }
  .hero { border-radius: 0 0 30px 30px; }
  .hero-inner { padding: 42px 19px 70px; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.4rem); }
  .hero .lede { font-size: 1rem; }
  .reality { padding: 0 18px; }
  .page { padding: 44px 18px 70px; }
  .toc { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4, .preview-grid, .split { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .article > section { margin-bottom: 54px; }
  .article > section + section { padding-top: 26px; }
  h2 { font-size: clamp(1.9rem, 9vw, 2.5rem); }
  figure.diagram { margin-left: -4px; margin-right: -4px; padding: 8px 8px 6px; border-radius: 18px; }
  figcaption { display: block; padding: 10px 5px 2px; }
  figcaption strong { display: block; margin-bottom: 2px; }
  .step { grid-template-columns: 34px minmax(0, 1fr); gap: 10px; padding: 15px; }
  .step::before { width: 28px; height: 28px; }
  .final-cta { padding: 26px 22px; }
  .final-cta::after { font-size: 160px; right: 10px; }
  .footer-inner { padding: 28px 18px; }
  pre { font-size: 11.5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

@media print {
  .topbar, .hero-actions, .toc, .final-cta, .footer { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .hero { color: #111; background: #fff; border-radius: 0; }
  .hero::before, .hero::after { display: none; }
  .hero .lede, .hero-facts { color: #333; }
  .hero h1 em { color: #111; }
  .reality { display: block; margin: 20px 0; }
  .reality-card { break-inside: avoid; margin-bottom: 10px; }
  .page { display: block; max-width: none; padding: 20px 0; }
  .article > section { break-inside: avoid; margin-bottom: 28px; }
  figure.diagram, .preview, .card, .callout, .step, .table-wrap { break-inside: avoid; box-shadow: none; }
  a { color: inherit; text-decoration: none; }
  .checklist { grid-template-columns: repeat(2, 1fr); }
}
