@font-face { font-family: "Archivo"; font-style: normal; font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo.woff2) format("woff2-variations"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/dm-mono-400.woff2) format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url(/fonts/dm-mono-500.woff2) format("woff2"); }

:root {
  --night: #070B14;
  --panel: #0F1626;
  --panel-2: #17213A;
  --line: #22304E;
  --paper: #F2EFE6;
  --ink: #0B0F1A;
  --ink-soft: #555E72;
  --text: #EEF2FF;
  --soft: #C6CFE8;
  --muted: #8C98B8;
  --stamp-ink: #2443C4;
  --focus: #8DB8FF;
  --loss: #FF5A6B;
  --display: "Archivo", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
  --gutter: max(20px, calc((100vw - 1160px) / 2));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--night); color: var(--text); font-family: var(--display); font-size: 1.125rem; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul, dl, dd { margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

h2 { font-size: clamp(2.4rem, 5.6vw, 4rem); line-height: 0.95; font-weight: 800; font-stretch: 68%; letter-spacing: -0.005em; text-wrap: balance; }
h3 { font-size: 1.5rem; line-height: 1.15; font-weight: 800; font-stretch: 86%; }
.example { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin-top: 0.9rem; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px var(--gutter); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { width: 30px; height: 30px; }
.bname { font-size: 1.35rem; font-weight: 900; font-stretch: 120%; }
.toplink { font-weight: 700; font-size: 1rem; text-underline-offset: 4px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 0 1.4rem; border-radius: 14px; border: 2px solid var(--line); background: transparent; color: var(--text); font: 800 1.05rem/1.1 var(--display); text-decoration: none; text-align: center; cursor: pointer; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn.primary:hover { background: #fff; border-color: #fff; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn.dark:hover { background: #1B2233; border-color: #1B2233; }
.btn[disabled] { opacity: 0.6; cursor: default; }

/* Hero */
.hero { overflow-x: clip; display: grid; gap: 2.5rem; align-items: center; padding: clamp(1.5rem, 5vw, 4rem) var(--gutter) clamp(3rem, 7vw, 5.5rem); background: radial-gradient(80% 60% at 50% 0%, #152240 0%, rgba(21, 34, 64, 0) 70%); }
/* One beat per line: sized so the longest beat always fits its column. */
.hero h1 { font-size: min(13vw, 5.2rem); line-height: 0.9; font-weight: 800; font-stretch: 64%; letter-spacing: -0.012em; }
.hero h1 span { display: block; white-space: nowrap; }
.lede { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--soft); max-width: 34rem; margin-top: 1.6rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.fine { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin-top: 1.2rem; max-width: 34rem; }
.hero-card { justify-self: center; width: min(100%, 420px); text-align: center; }

/* Verified slip. Inner sizes use container units so the card scales as one piece.
   Mirrors .slip in tools/render.css. */
.slip { container-type: inline-size; position: relative; background: var(--paper); color: var(--ink); border-radius: 22px; border-top: 12px solid var(--tier); padding: 20px 26px 22px; text-align: left; transform: rotate(-3deg); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55); }
.slip-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 3.75cqw; color: var(--ink-soft); }
.slip-head .bname { font-family: var(--display); font-size: 4.8cqw; color: var(--ink); }
.slip .badge { width: 41cqw; height: 41cqw; margin: 1cqw auto 0; }
.rank { text-align: center; font-size: 13.5cqw; line-height: 1; font-weight: 900; font-stretch: 76%; text-transform: uppercase; }
.who { text-align: center; font-family: var(--mono); font-size: 4.3cqw; color: var(--ink-soft); margin-top: 1.8cqw; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 4.6cqw; border-top: 2px solid var(--ink); }
.stat { padding-top: 2.8cqw; }
.stat dt { font-family: var(--mono); font-size: 3.4cqw; color: var(--ink-soft); }
.stat dd { font-size: 8.6cqw; line-height: 1.05; font-weight: 800; font-stretch: 76%; font-variant-numeric: tabular-nums; }
.perf { margin: 4.3cqw -26px 0; border-top: 2px dashed rgba(11, 15, 26, 0.3); position: relative; }
.perf::before, .perf::after { content: ""; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--night); }
.perf::before { left: -11px; }
.perf::after { right: -11px; }
.slip-foot { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 3.6cqw; font-family: var(--mono); font-size: 3.4cqw; line-height: 1.45; color: var(--ink-soft); }
.barcode { width: 37cqw; height: 9.6cqw; background: repeating-linear-gradient(90deg, var(--ink) 0 3px, transparent 3px 6px, var(--ink) 6px 7px, transparent 7px 11px, var(--ink) 11px 16px, transparent 16px 18px, var(--ink) 18px 19px, transparent 19px 23px); }

.stamp { display: inline-block; border: 4px solid currentColor; border-radius: 10px; padding: 0.7em 1em 0.6em; font-weight: 900; font-stretch: 112%; letter-spacing: 0.14em; text-transform: uppercase; line-height: 1; white-space: nowrap; outline: 2px solid currentColor; outline-offset: -9px; }
.slip .stamp { position: absolute; right: 3%; top: 20%; font-size: 4.1cqw; color: var(--stamp-ink); opacity: 0.88; transform: rotate(11deg); animation: slam 0.42s cubic-bezier(0.2, 1.4, 0.4, 1) 0.55s both; }
@keyframes slam { from { opacity: 0; transform: rotate(11deg) scale(1.8); } to { opacity: 0.88; transform: rotate(11deg) scale(1); } }

/* Shared section rhythm */
.ladder, .split, .steps, .waitlist { padding: clamp(2.8rem, 7vw, 5rem) var(--gutter); }
.sec-lede { color: var(--soft); max-width: 40rem; margin-top: 1rem; }

/* Rank ladder */
.ladder { border-top: 1px solid var(--line); }
.tiers { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(92px, 1fr); gap: 10px; margin-top: 2rem; overflow-x: auto; padding-bottom: 10px; scrollbar-width: thin; }
.tiers li { text-align: center; }
.tiers .badge { width: 78px; height: 78px; margin: 0 auto; }
.tiers .tname { display: block; font-size: 0.82rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tier); margin-top: 6px; }

/* Copy beside a panel */
.split { display: grid; gap: 2rem; align-items: center; border-top: 1px solid var(--line); }
.split-copy p { color: var(--soft); max-width: 34rem; margin-top: 1.1rem; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 1.3rem 1.4rem 1.2rem; }
.panel-h { font-size: 1.9rem; font-stretch: 70%; margin-bottom: 0.4rem; }
.cl { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; column-gap: 12px; padding: 0.42rem 0; border-top: 1px solid var(--line); }
.cl .badge { width: 40px; height: 40px; }
.cl .tname { font-size: 0.86rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tier); }
.cl .val { font-size: 1.5rem; font-weight: 800; font-stretch: 72%; font-variant-numeric: tabular-nums; }
.st { display: grid; grid-template-columns: 1.4rem 44px 1fr auto; align-items: center; column-gap: 12px; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.st .pos { font-size: 1.3rem; font-weight: 800; font-stretch: 70%; color: var(--muted); text-align: center; }
.st .badge { width: 44px; height: 44px; }
.st .pname { font-size: 1.25rem; font-weight: 700; font-stretch: 88%; line-height: 1.1; }
.st .ptier { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--tier); }
.st .val { font-size: 1.5rem; font-weight: 800; font-stretch: 72%; font-variant-numeric: tabular-nums; }
.tag { display: inline-block; margin-left: 8px; vertical-align: middle; font-family: var(--mono); font-size: 0.7rem; background: var(--loss); color: #fff; border-radius: 6px; padding: 2px 7px 3px; }
.stampwrap { display: grid; place-items: center; min-height: 200px; }
.stamp.big { font-size: clamp(1.1rem, 3.4vw, 1.9rem); color: var(--paper); transform: rotate(-5deg); border-width: 5px; outline-offset: -11px; }

/* Steps: a real sequence, so it is numbered. */
.steps { border-top: 1px solid var(--line); }
.steps ol { list-style: none; counter-reset: step; display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); margin-top: 2rem; }
.steps li { counter-increment: step; }
.steps li::before { content: counter(step); display: block; font-size: 4.2rem; line-height: 1; font-weight: 800; font-stretch: 64%; color: var(--muted); }
.steps li h3 { margin-top: 0.4rem; }
.steps li p { color: var(--soft); margin-top: 0.5rem; }

/* Founding members: printed on slip paper with a perforated top edge. */
.founding { position: relative; background: var(--paper); color: var(--ink); padding: clamp(3rem, 7vw, 4.6rem) var(--gutter) clamp(2.6rem, 6vw, 4rem); }
.founding::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: radial-gradient(circle at 50% 0, var(--night) 10px, transparent 10.6px) center top / 24px 12px repeat-x; }
.founding ul { list-style: none; margin-top: 1.4rem; max-width: 40rem; }
.founding li { padding: 0.8rem 0; border-top: 2px solid var(--ink); font-size: 1.15rem; font-weight: 600; }
.founding li:last-child { border-bottom: 2px solid var(--ink); }
.founding .btn { margin-top: 1.6rem; }
.founding :focus-visible { outline-color: var(--stamp-ink); }
.soon { font-family: var(--mono); font-size: 0.95rem; color: var(--ink-soft); margin-top: 1.4rem; }

/* Waitlist */
.waitlist { display: grid; gap: 2rem; align-items: start; }
.waitlist-copy p { color: var(--soft); max-width: 30rem; margin-top: 1rem; }
form label { display: block; font-weight: 700; font-size: 1rem; margin: 1rem 0 0.4rem; }
form label:first-child { margin-top: 0; }
.opt { font-weight: 500; color: var(--muted); }
input, select { width: 100%; min-height: 54px; padding: 0 0.9rem; border-radius: 12px; border: 2px solid var(--line); background: #0A101D; color: var(--text); font: 500 1rem var(--display); }
input:focus-visible, select:focus-visible { border-color: var(--focus); outline-offset: 1px; }
form .btn { width: 100%; margin-top: 1.3rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { margin-top: 0.9rem; color: #FF9AA6; font-weight: 600; }
#done p { color: var(--soft); margin-top: 0.7rem; }
#done strong { color: var(--text); font-size: 1.4em; font-stretch: 72%; font-weight: 800; }
.copyrow { display: grid; grid-template-columns: 1fr auto; gap: 10px; margin-top: 1.1rem; }
.copyrow input { font-family: var(--mono); font-size: 0.9rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 2rem var(--gutter) 3rem; font-family: var(--mono); font-size: 0.82rem; line-height: 1.6; color: var(--muted); }
.foot p + p { margin-top: 0.5rem; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.15fr 0.85fr; }
  .hero h1 { font-size: clamp(3.6rem, 6.9vw, 5.3rem); }
  .split { grid-template-columns: 1fr 1fr; gap: 4rem; }
  .split.flip .split-copy { order: 2; }
  .waitlist { grid-template-columns: 1fr 1fr; gap: 4rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slip .stamp { animation: none; }
}
