/* Lotry on XO. Brand carried over from lotry.fun: black, a faint grid, mint, paper tickets, the clover. */

@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("fonts/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("fonts/inter-tight.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #0b0b0a;
  --bg-2: #131311;
  --bg-3: #1a1a17;
  --line: rgba(243, 241, 234, 0.12);
  --line-2: rgba(243, 241, 234, 0.2);
  --text: #f3f1ea;
  --soft: #d6d3c9;
  --muted: #9c998f;
  --paper: #ebe7dc;
  --paper-2: #ddd8ca;
  --ink: #121210;
  --ink-soft: #55534c;
  --mint: #2fe68f;
  --mint-ink: #04180d;

  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 14px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--soft);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { color: var(--text); margin: 0; font-weight: 400; }
p { margin: 0; }
code, pre { font-family: var(--mono); }

:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 4px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.i {
  width: 0.95em;
  height: 0.95em;
  display: inline-block;
  vertical-align: -0.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.eyebrow {
  font-size: 12.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow b { color: var(--mint); font-weight: 600; }

/* ---------- BLAZE banner ---------- */

.blaze {
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  line-height: 1.4;
  border-bottom: 1px solid #000;
}
.blaze__inner {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 8px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  text-align: center;
}
.blaze a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: rgba(18, 18, 16, 0.35);
  text-underline-offset: 3px;
  font-weight: 500;
}
.blaze a:hover { text-decoration-color: var(--ink); }
.blaze__tag {
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  background: var(--ink);
  color: var(--mint);
  padding: 3px 8px;
  border-radius: 4px;
}
.blaze__sep { color: var(--ink-soft); }
.blaze__group { color: var(--ink-soft); }

.ember {
  font: inherit;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink);
  background: rgba(18, 18, 16, 0.06);
  border: 1px solid rgba(18, 18, 16, 0.25);
  border-radius: 6px;
  padding: 2px 4px 2px 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  vertical-align: middle;
}
.ember:hover { background: rgba(18, 18, 16, 0.1); }
#ember-address { overflow-wrap: anywhere; text-align: left; }
.ember__hint {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--paper);
  border-radius: 4px;
  padding: 1px 6px;
}
.ember.is-copied .ember__hint { background: var(--mint); color: var(--mint-ink); }

/* ---------- Header ---------- */

.top { border-bottom: 1px solid var(--line); }
.top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: -0.01em;
}
.brand em { color: var(--muted); }
.top__nav { display: flex; gap: 26px; font-size: 14.5px; }
.top__nav a { text-decoration: none; color: var(--muted); }
.top__nav a:hover { color: var(--text); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  text-decoration: none;
  transition: transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 160ms ease, border-color 160ms ease;
  user-select: none;
  -webkit-user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn--solid { background: var(--mint); color: var(--mint-ink); }
.btn--solid:hover { background: #4bf0a2; }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn--ghost:hover { border-color: var(--text); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: clamp(56px, 9vw, 112px) 0 clamp(48px, 6vw, 72px);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(243, 241, 234, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(243, 241, 234, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 70% at 60% 35%, #000 20%, transparent 75%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(50px, 7.4vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin-top: 22px;
  text-wrap: balance;
}
.hero h1 em { color: var(--mint); }
.hero__sub {
  margin-top: 26px;
  max-width: 34em;
  font-size: clamp(17px, 1.5vw, 19.5px);
  color: var(--soft);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__credit { margin-top: 22px; font-size: 14.5px; color: var(--muted); }
.hero__credit a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ---------- Ticket (paper, perforated, like lotry.fun) ---------- */

.ticket {
  --hole: 9px;
  position: relative;
  background: var(--paper);
  color: var(--ink);
  border-radius: 6px;
  padding: 26px 30px 24px;
  /* perforated left and right edges */
  -webkit-mask:
    radial-gradient(circle var(--hole) at 0 50%, transparent 98%, #000) left / 51% 26px repeat-y,
    radial-gradient(circle var(--hole) at 100% 50%, transparent 98%, #000) right / 51% 26px repeat-y;
  mask:
    radial-gradient(circle var(--hole) at 0 50%, transparent 98%, #000) left / 51% 26px repeat-y,
    radial-gradient(circle var(--hole) at 100% 50%, transparent 98%, #000) right / 51% 26px repeat-y;
}
.ticket--hero {
  transform: rotate(-2.5deg);
  padding: 30px 40px 28px;
}
.hero__ticket { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); }
.ticket__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ticket__label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.ticket__stamp {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 2px 8px;
  transform: rotate(3deg);
  background: var(--mint);
}
.ticket__big {
  margin-top: 20px;
  font-family: var(--serif);
  font-size: clamp(64px, 7vw, 92px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.ticket__unit { font-style: italic; font-size: 0.45em; letter-spacing: 0; color: var(--ink-soft); }
.ticket__line { margin-top: 14px; font-size: 17px; }
.ticket__mono {
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.ticket__foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1.5px dashed rgba(18, 18, 16, 0.3);
  font-size: 14px;
  font-weight: 600;
}
.ticket__foot a { text-decoration: none; color: var(--ink); }
.ticket__foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.ticket--hero .ticket__line,
.ticket--hero .ticket__mono { padding-right: 88px; }
.ticket__clover {
  position: absolute;
  right: 22px;
  bottom: 62px;
  width: 84px;
  height: 84px;
  transform: rotate(10deg);
}

/* ---------- Stats ---------- */

.stats {
  position: relative;
  margin: clamp(56px, 7vw, 88px) 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}
.stats > div { padding: 22px 20px 0 0; }
.stats > div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.stats dt { font-size: 13px; color: var(--muted); }
.stats dd {
  margin: 6px 0 0;
  font-family: var(--serif);
  font-size: clamp(40px, 4.2vw, 56px);
  line-height: 1;
  color: var(--text);
}

/* ---------- Sections ---------- */

.section {
  padding: clamp(80px, 10vw, 136px) 0 0;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(42px, 5.4vw, 72px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin-top: 16px;
  text-wrap: balance;
}
.h2 em { color: var(--mint); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: 24px clamp(40px, 6vw, 96px);
  align-items: end;
}
.prose p + p { margin-top: 14px; }
.prose { color: var(--soft); max-width: 36em; }
.prose a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.prose a:hover { text-decoration-color: var(--text); }
.footnote {
  margin-top: 28px;
  font-size: 14px;
  color: var(--muted);
  max-width: 52em;
}
.footnote code, .prose code {
  font-size: 0.9em;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
}

/* ---------- Steps rail ---------- */

.steps {
  list-style: none;
  margin: clamp(48px, 6vw, 72px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
}
.step {
  position: relative;
  padding: 0 22px 0 0;
}
.step::before {
  /* the rail */
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  border-top: 1px solid var(--line-2);
}
.step:first-child::before { left: 20px; }
.step:nth-child(4)::before { border-top-style: dashed; border-top-color: var(--muted); }
.step--alt::before { display: none; }
.step__num {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line-2);
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
}
.step:nth-child(4) .step__num { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.step--alt .step__num { border-style: dashed; border-color: var(--muted); }
.step__or {
  position: absolute;
  top: 6px;
  right: calc(100% + 6px);
  line-height: 1;
  white-space: nowrap;
  font-style: italic;
  font-family: var(--serif);
  font-size: 16px;
  color: var(--muted);
  background: var(--bg);
  padding: 0 8px;
}
.step__name {
  margin-top: 22px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1.05;
}
.step__who {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint);
}
.step--alt .step__who { color: var(--muted); }
.step__text { margin-top: 12px; font-size: 15px; line-height: 1.5; color: var(--soft); }
.step__state {
  margin-top: 16px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
}
.step__state span { color: var(--muted); }

/* ---------- Live rounds ---------- */

.rounds { margin-top: clamp(44px, 5vw, 64px); }
.rounds__status { color: var(--muted); font-size: 15px; }
.rounds__status a { color: var(--text); }
.rounds__rest {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.round {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 28px 22px;
}
.round__grid { display: grid; gap: 26px; }
.round--featured .round__grid {
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 4vw, 56px);
}
.round__flag {
  font-family: var(--serif);
  font-style: italic;
  font-size: 18px;
  color: var(--mint);
  margin-bottom: 10px;
}
.round__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.round__kicker {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}
.round__id {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  opacity: 0.8;
}
.round__title {
  margin-top: 8px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.02;
}
.round__summary { margin-top: 14px; font-size: 15.5px; }
.round__note {
  margin-top: 14px;
  font-size: 14px;
  color: var(--soft);
  border-left: 2px solid var(--mint);
  padding: 2px 0 2px 12px;
}
.round__facts {
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
}
.round__facts > div { padding: 10px 0; border-bottom: 1px solid var(--line); }
.round__facts > div:nth-child(odd) { padding-right: 12px; }
.round__facts dt { font-size: 12px; color: var(--muted); }
.round__facts dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.round__foot {
  margin-top: 18px;
  font-size: 12.5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.round__foot code { font-size: 11.5px; color: var(--soft); }
.round__foot a { color: var(--soft); text-decoration: none; white-space: nowrap; }
.round__foot a:hover { color: var(--text); }

.pill {
  flex: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  color: var(--soft);
}
.pill--claimed { background: var(--mint); border-color: var(--mint); color: var(--mint-ink); }
.pill--refunded { border-style: dashed; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 0 14px;
  padding: 0 0 18px;
}
.tl::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 16px;
  bottom: -2px;
  border-left: 1px solid var(--line-2);
}
.tl:last-child { padding-bottom: 0; }
.tl:last-child::before { display: none; }
.tl__dot {
  margin-top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  position: relative;
}
.tl--buy .tl__dot { transform: scale(0.65); background: var(--soft); border-color: var(--soft); }
.tl--draw .tl__dot { border: 2px solid var(--mint); }
.tl--claim .tl__dot { background: var(--mint); border-color: var(--mint); }
.tl--refund .tl__dot { border-style: dashed; border-color: var(--soft); }
.tl__title { font-size: 15px; font-weight: 600; color: var(--text); }
.tl__time { font-weight: 400; font-size: 12.5px; color: var(--muted); margin-left: 4px; white-space: nowrap; }
.tl__desc { margin-top: 2px; font-size: 14px; color: var(--soft); line-height: 1.45; }
.tl__note { margin-top: 6px; font-size: 12.5px; color: var(--muted); font-style: italic; }
.tl__tx {
  align-self: start;
  margin-top: 1px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
  white-space: nowrap;
  transition: border-color 140ms ease, color 140ms ease;
}
.tl__tx:hover { border-color: var(--mint); color: var(--mint); }

/* invitation files */
.invites {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.invites summary {
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.invites summary::-webkit-details-marker { display: none; }
.invites summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  font-weight: 400;
  line-height: 1;
}
.invites[open] summary::before { content: "\2212"; }
.invites__legend { margin-top: 10px; font-size: 13px; color: var(--muted); }
.invites__legend code { color: var(--soft); font-size: 12px; }
.invites__list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 6px 16px;
}
.invites__list li { display: flex; gap: 8px; align-items: baseline; font-family: var(--mono); font-size: 12.5px; }
.invites__list a { color: var(--soft); text-decoration: none; }
.invites__list a:hover { color: var(--mint); }
.invites__raw { font-size: 11px; color: var(--muted) !important; }

.round__ver {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  border: 1px solid currentColor;
  border-radius: 4px;
  padding: 1px 6px;
}
.rounds__note {
  margin-bottom: 18px;
  font-size: 14px;
  color: var(--muted);
  max-width: 56em;
}
.rounds__divider { margin: 44px 0 0; border-top: 1px solid var(--line-2); padding-top: 22px; }
.rounds__divider h3 { font-family: var(--serif); font-size: 30px; }
.rounds__divider p { margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 56em; }

/* featured round: a paper ticket, like lotry.fun's */
.round--featured {
  --hole: 9px;
  background: var(--paper);
  color: var(--ink);
  border: 0;
  border-radius: 8px;
  padding: clamp(28px, 3.4vw, 44px) clamp(28px, 4vw, 56px) 28px;
  -webkit-mask:
    radial-gradient(circle var(--hole) at 0 50%, transparent 98%, #000) left / 51% 28px repeat-y,
    radial-gradient(circle var(--hole) at 100% 50%, transparent 98%, #000) right / 51% 28px repeat-y;
  mask:
    radial-gradient(circle var(--hole) at 0 50%, transparent 98%, #000) left / 51% 28px repeat-y,
    radial-gradient(circle var(--hole) at 100% 50%, transparent 98%, #000) right / 51% 28px repeat-y;
}
.round--featured .round__flag { color: #0f7a46; }
.round--featured .round__kicker,
.round--featured .round__facts dt,
.round--featured .round__foot,
.round--featured .tl__time,
.round--featured .tl__note,
.round--featured .invites__legend,
.round--featured .invites__raw { color: var(--ink-soft) !important; }
.round--featured .round__title,
.round--featured .tl__title,
.round--featured .round__facts dd,
.round--featured .invites summary { color: var(--ink); }
.round--featured .round__summary,
.round--featured .tl__desc,
.round--featured .invites__list a,
.round--featured .round__foot a,
.round--featured .round__foot code,
.round--featured .invites__legend code { color: #2b2a26; }
.round--featured .round__title { font-size: clamp(36px, 3.6vw, 48px); }
.round--featured .round__facts,
.round--featured .round__facts > div,
.round--featured .invites { border-color: rgba(18, 18, 16, 0.16); }
.round--featured .invites { border-top-style: dashed; border-top-width: 1.5px; }
.round--featured .pill--claimed { border: 1.5px solid var(--ink); }
.round--featured .tl::before { border-left-color: rgba(18, 18, 16, 0.25); }
.round--featured .tl__dot { background: var(--paper); border-color: rgba(18, 18, 16, 0.4); }
.round--featured .tl--buy .tl__dot { background: var(--ink); border-color: var(--ink); }
.round--featured .tl--draw .tl__dot { border: 2px solid var(--ink); background: var(--mint); }
.round--featured .tl--claim .tl__dot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px var(--mint); }
.round--featured .tl__tx { color: var(--ink); border-color: rgba(18, 18, 16, 0.22); background: rgba(255, 255, 255, 0.35); }
.round--featured .tl__tx:hover { border-color: var(--ink); color: var(--ink); background: var(--mint); }
.round--featured .invites summary::before { border-color: rgba(18, 18, 16, 0.35); }
.round--featured .invites__list a:hover { color: #0f7a46; }
.round--featured .round__note { color: #2b2a26; }
.round--featured :focus-visible { outline-color: var(--ink); }

/* ---------- Migration table ---------- */

.compare {
  margin-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line-2);
}
.compare__row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15.5px;
  align-items: baseline;
}
.compare__row > span:nth-child(2) { color: var(--muted); }
.compare__row > span:nth-child(3) { color: var(--text); }
.compare__row--head {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 14px 0;
}
.compare__row--head > span:nth-child(3) { color: var(--mint); }
.compare__what { font-family: var(--serif); font-size: 24px; color: var(--text); line-height: 1.1; }
.compare code {
  font-size: 0.86em;
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
  color: var(--soft);
}
.footnote a { color: var(--soft); text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ---------- Why XO ---------- */

.why {
  margin-top: clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.why__item {
  border-top: 1px solid var(--line-2);
  padding-top: 20px;
}
.why__num { font-family: var(--serif); font-style: italic; font-size: 20px; color: var(--mint); }
.why__item h3 { margin-top: 8px; font-family: var(--serif); font-size: 30px; line-height: 1.05; }
.why__item p:last-child { margin-top: 12px; font-size: 15.5px; }
.why__item a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.why__item code { font-size: 0.88em; }

.shot {
  margin: clamp(48px, 6vw, 72px) 0 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 20px clamp(28px, 4vw, 56px);
  align-items: end;
}
.shot img {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  opacity: 0.94;
}
.shot figcaption {
  grid-column: 1;
  grid-row: 1;
  font-size: 14px;
  color: var(--muted);
  border-top: 1px solid var(--line-2);
  padding-top: 16px;
}
.shot figcaption strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 24px; color: var(--text); margin-bottom: 8px; line-height: 1.1; }
.shot figcaption a { color: var(--soft); }
.shot figcaption code { font-size: 0.92em; color: var(--soft); }

/* ---------- Limits + finding ---------- */

.limits {
  list-style: none;
  margin: clamp(40px, 5vw, 60px) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.limits li { border-top: 1px solid var(--line-2); padding-top: 20px; }
.limits h3 { font-family: var(--serif); font-size: 28px; line-height: 1.08; }
.limits p { margin-top: 12px; font-size: 15.5px; }

.finding {
  margin-top: clamp(48px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 32px clamp(32px, 5vw, 64px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(26px, 3.6vw, 44px);
}
.finding h3 {
  margin-top: 12px;
  font-family: var(--serif);
  font-size: clamp(30px, 3vw, 40px);
  line-height: 1.05;
}
.finding__copy p:not(.eyebrow) { margin-top: 14px; font-size: 15.5px; }
.finding__copy strong { color: var(--text); }
.finding__copy a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.finding code, .limits code {
  font-size: 0.88em;
  color: var(--text);
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 0 5px;
}
.finding__viz { align-self: center; }
.finding__label { font-size: 12.5px; color: var(--muted); margin: 18px 0 8px; }
.finding__label:first-child { margin-top: 0; }
.ticks { display: grid; gap: 4px; height: 34px; }
.ticks--blocks { grid-template-columns: repeat(20, 1fr); }
.ticks--locks { grid-template-columns: repeat(2, 1fr); }
.ticks span { border-radius: 3px; background: var(--bg-3); border: 1px solid var(--line-2); }
.ticks--locks span { background: rgba(47, 230, 143, 0.14); border-color: var(--mint); }
.finding__formula {
  margin: 22px 0 0;
  font-size: 12.5px;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  white-space: pre-wrap;
}

/* ---------- Try it ---------- */

.code {
  position: relative;
  margin-top: clamp(36px, 4.5vw, 52px);
  background: #070707;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.code pre {
  margin: 0;
  padding: 26px 28px;
  font-size: 13.5px;
  line-height: 1.75;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.c-cmd { color: var(--text); }
.c-com { color: #6f6c64; }
.code__copy {
  position: absolute;
  top: 14px;
  right: 14px;
  font: 600 12px var(--sans);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--soft);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}
.code__copy:hover { color: var(--text); border-color: var(--text); }
.code__copy.is-copied { background: var(--mint); color: var(--mint-ink); border-color: var(--mint); }

/* ---------- Team + footer ---------- */

.section--last { padding-bottom: clamp(80px, 10vw, 136px); }
.team {
  margin-top: clamp(36px, 4.5vw, 52px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.person { border-top: 1px solid var(--line-2); padding-top: 20px; }
.person h3 { font-family: var(--serif); font-size: 36px; line-height: 1.05; }
.person p { margin-top: 10px; font-size: 15.5px; }
.person a { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--muted); text-underline-offset: 3px; }
.person a:hover { color: var(--text); }

.foot { border-top: 1px solid var(--line); padding: 40px 0 48px; }
.foot__inner { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.foot__brand { display: flex; align-items: center; gap: 14px; }
.foot__brand p { display: flex; flex-direction: column; }
.foot__name { font-family: var(--serif); font-size: 26px; color: var(--text); line-height: 1.1; }
.foot__name em { color: var(--muted); }
.foot__tag { font-size: 14px; color: var(--muted); }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14.5px; }
.foot__links a { color: var(--soft); text-decoration: none; }
.foot__links a:hover { color: var(--mint); }
.foot__small { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); }

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .top__nav a:not(:nth-child(2)) { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .round--featured .round__grid { grid-template-columns: minmax(0, 1fr); }
  .rounds__rest { grid-template-columns: minmax(0, 1fr); }
  .why { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .shot { grid-template-columns: minmax(0, 1fr); }
  .shot img, .shot figcaption { grid-column: 1; grid-row: auto; }
  .limits { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .finding { grid-template-columns: minmax(0, 1fr); }
  .foot__inner { grid-template-columns: minmax(0, 1fr); }
  .compare__row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 18px; }
  .compare__what { grid-column: 1 / -1; font-size: 22px; }
  .compare__row--head > span:first-child { display: none; }
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .step { padding: 0 0 34px 64px; }
  .step::before { top: 0; bottom: 0; left: 19px; right: auto; border-top: 0; border-left: 1px solid var(--line-2); }
  .step:first-child::before { left: 19px; top: 20px; }
  .step:nth-child(4)::before { border-top: 0; border-left-style: dashed; border-left-color: var(--muted); }
  .step--alt::before { display: none; }
  .step__num { position: absolute; left: 0; top: 0; }
  .step__name { margin-top: 4px; }
  .step__or { position: static; display: block; padding: 0; margin-top: 2px; background: none; }
  .step--alt .step__name { margin-top: 2px; }
  .hero__grid { grid-template-columns: minmax(0, 1fr); }
  .hero__ticket { max-width: 460px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .stats > div:nth-child(n + 3) { margin-top: 18px; border-top: 1px solid var(--line); }
}

@media (max-width: 520px) {
  body { font-size: 16px; }
  .blaze { font-size: 12.5px; }
  .blaze__inner { justify-content: flex-start; text-align: left; padding-top: 9px; padding-bottom: 9px; }
  .blaze__sep { display: none; }
  .blaze__inner > a, .blaze__group { margin-right: 6px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .round { padding: 24px 20px 20px; }
  .round--featured { padding: 28px 26px 24px; }
  .tl { grid-template-columns: 18px minmax(0, 1fr); }
  .tl__tx { grid-column: 2; justify-self: start; margin-top: 8px; }
  .compare__row { grid-template-columns: minmax(0, 1fr); font-size: 15px; }
  .compare__row--head { display: none; }
  .team { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .code pre { padding: 54px 18px 22px; font-size: 12.5px; }
  .code__copy { top: 10px; right: 10px; }
  .compare__row > span:nth-child(2)::before { content: "Base: "; color: var(--muted); font-weight: 600; }
  .compare__row > span:nth-child(3)::before { content: "BCH: "; color: var(--mint); font-weight: 600; }
  .ticket--hero { padding: 26px 28px 24px; transform: rotate(-1.5deg); }
  .ticket__clover { width: 64px; height: 64px; bottom: 66px; right: 16px; }
}
