:root {
  --bg: #0f0e0c;
  --bg2: #171512;
  --ink: #efe9dd;
  --mute: #9a9183;
  --line: #2a2621;
  --hot: #ff5a1f;
  --hot2: #ff7b47;
  --warn: #e8c547;
  --ok: #7fd18b;
  --paper: #f1ead9;
  --paper-ink: #1b1813;
  --paper-mute: #6f675a;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Instrument Serif", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 900; text-transform: uppercase; }
section { padding: 88px max(16px, calc((100vw - 1180px) / 2)); }

/* ---------- nav */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, calc((100vw - 1180px) / 2));
  background: rgba(15, 14, 12, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: 0.08em; text-decoration: none; }
.brand-mark {
  width: 22px; height: 22px; border: 3px solid var(--hot); border-top-width: 8px; border-radius: 3px;
}
.nav nav { display: flex; gap: 22px; margin-left: auto; }
.nav nav a { color: var(--mute); text-decoration: none; font-size: 14px; }
.nav nav a:hover { color: var(--ink); }

/* ---------- buttons, fields */
.btn {
  font: 600 15px var(--display); border-radius: 999px; padding: 11px 20px;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn.solid { background: var(--hot); border-color: var(--hot); color: #140b06; }
.btn.solid:hover:not(:disabled) { background: var(--hot2); border-color: var(--hot2); }
.btn.ghost { border-color: var(--line); background: var(--bg2); }
.btn.link { border: 0; padding: 11px 6px; color: var(--mute); text-decoration: underline; }
.btn.wide { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.field { display: grid; gap: 8px; }
.field span { font-size: 13px; color: var(--mute); }
input {
  font: 500 15px var(--mono); color: var(--ink); background: var(--bg2);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 13px 14px; width: 100%;
}
input:focus { outline: none; border-color: var(--hot); }
.inline { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.inline input { flex: 1; min-width: 120px; }

/* ---------- hero */
.hero { position: relative; min-height: min(86vh, 760px); display: flex; align-items: center; overflow: hidden; padding-top: 40px; }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; max-width: 620px; }
.kicker { font: 500 13px var(--mono); color: var(--warn); margin: 0 0 18px; }
.hero h1 { font-size: clamp(54px, 9vw, 112px); line-height: 0.92; font-weight: 900; text-transform: uppercase; }
.lede { font-size: clamp(17px, 2vw, 20px); color: #d8d0c2; max-width: 520px; margin: 24px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.live-line { margin-top: 30px; font: 400 14px var(--mono); color: var(--mute); max-width: 520px; }
.live-line b { color: var(--ink); font-weight: 600; }

/* ---------- cover desk */
.desk { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; border-top: 1px solid var(--line); }
.desk-form { display: grid; gap: 24px; }
.coin-read { margin: 0; color: #d8d0c2; min-height: 52px; }
.coin-read b { color: var(--ink); }
.coin-read .bad { color: var(--hot2); }
.choose { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start; }
.choose-label { display: block; font-size: 13px; color: var(--mute); margin-bottom: 10px; }
.fall-shaft {
  position: relative; display: grid; gap: 10px; padding-left: 16px;
  border-left: 3px dashed var(--line);
}
.notch {
  font: 600 22px var(--mono); color: var(--mute); background: none; border: 0; cursor: pointer;
  text-align: left; padding: 6px 0; position: relative;
}
.notch::before {
  content: ""; position: absolute; left: -24px; top: 50%; width: 13px; height: 13px; margin-top: -6.5px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--line);
}
.notch[aria-checked="true"] { color: var(--hot); }
.notch[aria-checked="true"]::before { background: var(--hot); border-color: var(--hot); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 4px; margin-bottom: 22px; background: var(--bg2); }
.seg button { font: 600 14px var(--display); color: var(--mute); background: none; border: 0; border-radius: 999px; padding: 9px 16px; cursor: pointer; }
.seg button[aria-checked="true"] { background: var(--ink); color: var(--bg); }

/* the policy slip */
.slip {
  position: relative; background: var(--paper); color: var(--paper-ink);
  border-radius: 6px; padding: 28px 28px 24px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  transform: rotate(0.6deg);
  background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(27, 24, 19, 0.06) 31px 32px);
}
.slip-head { display: flex; justify-content: space-between; font: 600 12px var(--mono); letter-spacing: 0.14em; border-bottom: 2px solid var(--paper-ink); padding-bottom: 12px; }
.slip-body { font: 400 23px/1.35 var(--serif); margin: 20px 0; min-height: 124px; }
.slip-body em { font-style: normal; background: rgba(255, 90, 31, 0.18); padding: 0 4px; border-radius: 3px; }
.slip-terms { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 22px; font: 400 13px var(--mono); }
.slip-terms dt { color: var(--paper-mute); }
.slip-terms dd { margin: 0; text-align: right; }
.slip .btn.solid { color: #140b06; }
.slip-note { font: 400 13px var(--mono); color: var(--paper-mute); margin: 12px 0 0; min-height: 18px; }
.stamp {
  position: absolute; right: 26px; top: 64px; transform: rotate(-12deg);
  font: 900 30px var(--display); letter-spacing: 0.1em; color: var(--hot);
  border: 4px solid var(--hot); padding: 4px 14px; border-radius: 6px; opacity: 0.85;
}

/* ---------- policies */
.policies { border-top: 1px solid var(--line); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.sec-sub { color: var(--mute); margin: 0; }
.policy-list { display: grid; gap: 14px; }
.pol {
  display: grid; grid-template-columns: 1.4fr 2fr auto; gap: 24px; align-items: center;
  background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px;
}
.pol-title { font-weight: 800; font-size: 18px; }
.pol-sub { font: 400 13px var(--mono); color: var(--mute); }
.pol-state { font: 500 13px var(--mono); margin-top: 6px; }
.pol-state.hit { color: var(--hot); }
.pol-state.ok { color: var(--ok); }
.gauge { position: relative; height: 36px; }
.gauge-track { position: absolute; left: 0; right: 0; top: 17px; height: 2px; background: var(--line); }
.gauge-danger { position: absolute; left: 0; top: 13px; height: 10px; background: repeating-linear-gradient(135deg, rgba(255, 90, 31, 0.5) 0 6px, transparent 6px 12px); border-radius: 2px; }
.gauge-line { position: absolute; top: 4px; bottom: 4px; width: 2px; background: var(--warn); }
.gauge-now { position: absolute; top: 9px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ink); border: 3px solid var(--bg2); }
.gauge-now.hit { background: var(--hot); }
.gauge-lbl { position: absolute; top: -12px; font: 400 11px var(--mono); color: var(--mute); transform: translateX(-50%); white-space: nowrap; }
.pol-act { display: flex; gap: 8px; }
.empty { color: var(--mute); font-family: var(--serif); font-size: 22px; font-style: italic; margin: 0; }
.tape-title { font-size: 15px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--mute); margin: 56px 0 14px; font-weight: 600; }
.tape { font: 400 14px var(--mono); border-top: 1px solid var(--line); }
.tape-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tape-row .t-when { color: var(--mute); min-width: 84px; }
.tape-row .t-what { flex: 1; }
.tape-row .paid { color: var(--hot); }
.tape-row .held { color: var(--ok); }

/* ---------- pool */
.pool { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; border-top: 1px solid var(--line); align-items: start; }
.pool-prose { font: 400 26px/1.4 var(--serif); margin: 24px 0 0; }
.pool-prose b { font-family: var(--mono); font-size: 0.8em; font-weight: 600; color: var(--hot); }
.pool-prose.quiet { font: 400 16px/1.6 var(--display); color: var(--mute); }
.pool-box { display: grid; gap: 22px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.you { margin: 0; }
.you b { font-family: var(--mono); }
.exit { display: grid; gap: 12px; border-top: 1px dashed var(--line); padding-top: 18px; }
.exit-note { margin: 0; font-size: 14px; color: var(--mute); }

/* ---------- rules */
.rules { border-top: 1px solid var(--line); }
.rules-prose { columns: 2 340px; column-gap: 48px; margin-top: 30px; }
.rules-prose p { break-inside: avoid; margin: 0 0 22px; color: #d8d0c2; }
.rules-prose b { color: var(--ink); }

/* ---------- footer, toast */
.foot {
  display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: space-between;
  padding: 26px max(16px, calc((100vw - 1180px) / 2)); border-top: 1px solid var(--line);
  font: 400 13px var(--mono); color: var(--mute);
}
.foot a { color: var(--ink); }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 50;
  background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 10px;
  font: 500 14px var(--display); max-width: calc(100vw - 32px);
}

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .btn { margin-left: auto; }
  section { padding-top: 64px; padding-bottom: 64px; }
  .desk, .pool { grid-template-columns: 1fr; gap: 36px; }
  .slip { transform: none; }
  .pol { grid-template-columns: 1fr; gap: 16px; }
  .choose { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

[hidden] { display: none !important; }
@media (max-width: 900px) { #heroCanvas { opacity: 0.35; } }

/* ---------- buyers' pot */
.pot {
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: center; margin-top: 34px;
  border: 1.5px dashed var(--hot); border-radius: 14px; padding: 22px 24px;
  background: linear-gradient(120deg, rgba(255, 90, 31, 0.08), transparent 60%);
}
.pot h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--hot); font-weight: 800; }
.pot-prose { font: 400 22px/1.4 var(--serif); margin: 10px 0 0; }
.pot-prose b { font-family: var(--mono); font-size: 0.8em; font-weight: 600; color: var(--hot); }
.pot-act { display: grid; gap: 12px; justify-items: start; }
.pot-you { margin: 0; color: #d8d0c2; }
.pot-you b { font-family: var(--mono); color: var(--ink); }
@media (max-width: 900px) { .pot { grid-template-columns: 1fr; } }
