/* Page sections, in page order. */

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

.hero {
  padding: clamp(28px, 4.5vw, 60px) 0 clamp(48px, 6vw, 84px);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.hero-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.hero h1 {
  margin-top: 18px;
  font-size: clamp(42px, 5.4vw, 80px);
}

.hero h1 span,
.hero h1 em {
  display: block;
}

.hero-tagline {
  margin-top: 18px;
  max-width: 32ch;
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--fg);
}

.hero-lede {
  margin-top: 12px;
  max-width: 56ch;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
  color: var(--fg-2);
}

.hero .formula {
  margin-top: 22px;
}

.hero-actions {
  margin-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-note {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 62ch;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.hero-note svg {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  flex-shrink: 0;
  color: var(--accent);
}

.hero-visual {
  width: 100%;
}

.hero .fact-strip {
  margin-top: clamp(36px, 5vw, 56px);
}

/* Short laptop screens: keep the CTA inside the first viewport. */
@media (min-width: 961px) and (max-height: 860px) {
  .hero {
    padding-top: 24px;
  }

  .hero h1 {
    margin-top: 14px;
    font-size: clamp(40px, 4.9vw, 70px);
  }

  .hero-tagline {
    margin-top: 12px;
    font-size: clamp(18px, 1.7vw, 22px);
  }

  .hero-lede {
    margin-top: 8px;
    font-size: 16px;
  }

  .hero .formula,
  .hero-actions {
    margin-top: 16px;
  }

  .formula-term {
    padding-block: 11px;
  }

  .hero-note {
    margin-top: 10px;
  }
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    max-width: 640px;
    margin-inline: auto;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- Your Crate ---------- */

.your-crate-grid {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.62fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: start;
}

.check-notes {
  display: grid;
  gap: 22px;
}

.check-notes h3 {
  font-size: 15px;
  letter-spacing: 0.04em;
}

.check-notes ul {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.check-notes li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.check-notes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 1px;
  background: var(--primary);
}

.check-notes .is-negative li::before {
  background: transparent;
  border: 1px solid var(--muted);
}

.record {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.record-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}

.record-title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 16px;
}

.record-title h3 {
  font: 700 12px/1.2 var(--font-mono);
  letter-spacing: 0.12em;
  color: var(--fg);
}

.record-wallet {
  font: 400 12.5px/1.2 var(--font-mono);
  color: var(--muted);
  overflow-wrap: anywhere;
}

.record-fields {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.record-field {
  padding: 18px 20px 20px;
  border-bottom: 1px solid var(--border);
  min-width: 0;
}

.record-field + .record-field {
  border-left: 1px solid var(--border);
}

.record-field dt,
.record-label {
  font: 700 11px/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.record-field dd {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 26px;
  flex-wrap: wrap;
  font: 700 17px/1.25 var(--font-mono);
  color: var(--fg);
  overflow-wrap: break-word;
}

.record-field dd small {
  display: block;
  font: 400 12.5px/1.4 var(--font-sans);
  color: var(--muted);
}

.record[data-state="locked"] .record-field dd,
.record[data-state="connecting"] .record-field dd,
.record[data-state="loading"] .record-field dd {
  color: var(--muted);
  font-weight: 400;
  font-size: 15px;
}

.record:not([data-state="locked"]):not([data-state="connecting"]):not([data-state="loading"]):not([data-state="error"]) .redacted {
  display: none;
}

.record-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--well);
}

.record-status dd {
  font: 700 14px/1.3 var(--font-mono);
  color: var(--fg);
}

.record-body {
  display: grid;
  grid-template-columns: 1fr;
}

.record-track,
.record-ladder {
  padding: 18px 20px 20px;
  min-width: 0;
}

.record-ladder {
  border-top: 1px solid var(--border);
}

.record-row-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.record-row-head span:last-child {
  font: 400 12.5px/1.3 var(--font-mono);
  color: var(--muted);
}

.track {
  position: relative;
  margin-top: 16px;
  height: 64px;
  border-bottom: 1px dashed var(--border-3);
  background-image: repeating-linear-gradient(90deg, var(--border) 0 1px, transparent 1px calc(100% / 24));
  background-size: 100% 10px;
  background-position: bottom;
  background-repeat: no-repeat;
}

.track-bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  gap: 2px;
}

.track-bars span {
  flex: 1;
  min-width: 2px;
  background: var(--seg-on, #cbb6f7);
  opacity: 0.85;
  border-radius: 1px 1px 0 0;
}

.track-empty {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 400 12.5px var(--font-mono);
  color: var(--muted);
}

.ladder {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.ladder li {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 10px 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--bg-2);
  font: 700 12.5px/1.2 var(--font-sans);
  color: var(--muted);
  min-width: 0;
}

.ladder li span {
  max-width: 100%;
  overflow: hidden;
  text-overflow: clip;
  white-space: nowrap;
}

.ladder li::before {
  content: "";
  width: 100%;
  height: 3px;
  border-radius: 2px;
  background: var(--border-2);
}

.ladder li.is-passed::before {
  background: var(--metal, var(--border-3));
  opacity: 0.55;
}

.ladder li.is-current {
  border-color: var(--metal, var(--accent));
  color: var(--fg);
  background: var(--card-2);
}

.ladder li.is-current::before {
  background: var(--metal, var(--accent));
}

.ladder [data-tier="copper"] { --metal: var(--copper); }
.ladder [data-tier="bronze"] { --metal: var(--bronze); }
.ladder [data-tier="silver"] { --metal: var(--silver); }
.ladder [data-tier="gold"] { --metal: var(--gold); }
.ladder [data-tier="platinum"] { --metal: var(--platinum); }

.record-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  padding: 18px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}

.record-foot p {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 52ch;
}

.record-actions {
  margin-top: 0;
}

.record-message {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--fg-2);
}

@media (max-width: 1080px) {
  .your-crate-grid {
    grid-template-columns: 1fr;
  }


  .check-notes {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  .record-fields {
    grid-template-columns: 1fr 1fr;
  }

  .record-field {
    padding: 16px 16px 18px;
  }

  .record .redacted {
    width: 40px;
  }

  .record-field:nth-child(3) {
    border-left: 0;
  }


  .check-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .ladder {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 3px;
  }

  .ladder li {
    padding: 8px 4px 6px;
    font-size: 11px;
  }
}

/* ---------- How it works ---------- */

.steps-grid {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 980px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Method ---------- */

.method-grid {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}

.method-list {
  border-top: 1px solid var(--border);
}

.method-item {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.method-item h3 {
  font-size: 22px;
}

.method-item p {
  margin-top: 10px;
  color: var(--fg-2);
  font-size: 16px;
  line-height: 1.6;
  max-width: 58ch;
}

.method-meta {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.method-meta div {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-2);
}

.method-meta dt {
  font: 700 10.5px/1.3 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.method-meta dd {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--fg);
}

.program-record {
  position: sticky;
  top: calc(var(--header-h) + 20px);
}

.program-record .card-top {
  margin-bottom: 14px;
}

.program-record h3 {
  font-size: 18px;
}

.program-record .spec-list > div {
  grid-template-columns: minmax(118px, 0.75fr) minmax(0, 1.25fr);
  padding: 12px 0;
}

.program-record .spec-list dd {
  font-size: 14.5px;
}

.program-record .fineprint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--muted);
}

.method-note {
  margin-top: 14px;
}

.pipeline {
  margin-top: clamp(28px, 4vw, 44px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--border);
}

.pipeline li {
  position: relative;
  padding: 18px 18px 20px 20px;
  background: var(--bg-2);
  display: grid;
  gap: 6px;
  align-content: start;
}

.pipeline li + li {
  margin-left: 1px;
}

.pipeline .code-label {
  color: var(--muted);
}

.pipeline strong {
  font: 800 16px/1.1 var(--font-sans);
  letter-spacing: -0.01em;
  text-transform: uppercase;
  color: var(--fg);
}

.pipeline span:last-child {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}

.pipeline .op {
  position: absolute;
  top: 50%;
  left: -13px;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid var(--border-2);
  border-radius: 50%;
  background: var(--card-2);
  font: 700 12px/1 var(--font-mono);
  color: var(--accent-soft);
}

.pipeline li.is-result {
  background: linear-gradient(180deg, rgb(138 80 232 / 0.1), var(--bg-2));
}

@media (max-width: 1080px) {
  .method-grid {
    grid-template-columns: 1fr;
  }

  .program-record {
    position: static;
  }
}

@media (max-width: 860px) {
  .pipeline {
    grid-template-columns: 1fr;
  }

  .pipeline li + li {
    margin-left: 0;
    margin-top: 1px;
  }

  .pipeline .op {
    top: -13px;
    left: 20px;
    transform: none;
  }

  .pipeline li {
    padding-top: 22px;
  }
}

@media (max-width: 600px) {
  .method-item {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .method-meta {
    grid-template-columns: 1fr;
  }
}

/* ---------- Progression preview ---------- */

.preview-grid {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(20px, 3vw, 36px);
  align-items: start;
}

.controls {
  display: grid;
  gap: 22px;
}

.control-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.control-head label {
  font: 700 12px/1.3 var(--font-mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--fg);
}

.control-head output {
  font: 400 12.5px/1.3 var(--font-mono);
  color: var(--accent-soft);
  text-align: right;
}

.control-ends {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.range {
  --fill: 50%;
  width: 100%;
  height: 44px;
  margin: 2px 0 0;
  background: transparent;
  -webkit-appearance: none;
  appearance: none;
  cursor: pointer;
  touch-action: pan-y;
}

.range:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 8px;
}

.range::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent) 0 var(--fill), var(--border-2) var(--fill) 100%);
}

.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--fg);
  border: 5px solid var(--primary);
  box-shadow: 0 0 0 5px rgb(138 80 232 / 0.18);
}

.range::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border-2);
}

.range::-moz-range-progress {
  height: 6px;
  border-radius: 3px;
  background: var(--accent);
}

.range::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--fg);
  border: 5px solid var(--primary);
  box-shadow: 0 0 0 5px rgb(138 80 232 / 0.18);
}

.presets {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.presets .btn {
  min-height: 40px;
  padding: 9px 13px;
  font-size: 13.5px;
  white-space: normal;
  text-align: left;
}

.presets .btn[aria-pressed="true"] {
  border-color: var(--primary);
  background: var(--card-2);
}

.preview-readout {
  border-top: 1px solid var(--border);
}

.preview-readout > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
}

.preview-readout dt {
  font: 700 11px/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.preview-readout dd {
  font: 700 13.5px/1.4 var(--font-mono);
  color: var(--fg);
  text-align: right;
}

.meter {
  position: relative;
  width: 120px;
  height: 6px;
  margin-top: 6px;
  border-radius: 3px;
  background: var(--border-2);
  overflow: hidden;
}

.meter span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value, 0%);
  background: var(--accent);
  transition: width 0.35s var(--ease);
}

.preview-visual .bay-stage {
  padding-top: clamp(14px, 2.5vw, 28px);
}

.noscript-note {
  margin-top: 20px;
}

@media (max-width: 960px) {
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-visual {
    order: -1;
  }
}

/* ---------- Tiers ---------- */

.tiers {
  position: relative;
  margin-top: clamp(32px, 4vw, 52px);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.tiers::before {
  content: "";
  position: absolute;
  top: 31px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, var(--border-2), var(--border-3), var(--border-2));
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.tier[data-tier="copper"] { --metal: var(--copper); }
.tier[data-tier="bronze"] { --metal: var(--bronze); }
.tier[data-tier="silver"] { --metal: var(--silver); }
.tier[data-tier="gold"] { --metal: var(--gold); }
.tier[data-tier="platinum"] { --metal: var(--platinum); }

.tier-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.tier-class {
  font: 700 11px/1.2 var(--font-mono);
  letter-spacing: 0.1em;
  color: var(--muted);
}

.tier-swatch {
  width: 22px;
  height: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--metal), color-mix(in srgb, var(--metal) 55%, #000));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12);
}

.tier-figure {
  margin: 14px 0 6px;
  display: grid;
  place-items: center;
  padding: 10px 6px;
  border-radius: var(--radius-sm);
  background: radial-gradient(70% 70% at 50% 20%, rgb(255 255 255 / 0.035), transparent 70%), var(--well);
  border: 1px solid var(--border);
}

.tier h3 {
  margin-top: 12px;
  font-size: 22px;
}

.tier h3 span {
  color: var(--metal);
}

.tier p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}

.tier-spec {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 8px;
}

.tier-spec div {
  display: grid;
  gap: 3px;
  font-size: 13.5px;
}

.tier-spec dt {
  font: 700 10.5px/1.5 var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.tier-spec dd {
  color: var(--fg-2);
}

.pips {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
}

.pips i {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  border: 1px solid var(--border-3);
}

.pips i.on {
  background: var(--metal);
  border-color: var(--metal);
}

.tiers-note {
  margin-top: 18px;
}

@media (max-width: 1100px) {
  .tiers {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-left: 28px;
  }

  .tiers::before {
    top: 20px;
    bottom: 20px;
    left: 10px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--border-2), var(--border-3), var(--border-2));
  }

  .tier {
    display: grid;
    grid-template-columns: 200px minmax(0, 1fr);
    grid-template-areas:
      "fig top"
      "fig title"
      "fig body"
      "fig spec";
    column-gap: 22px;
    align-items: start;
  }

  .tier::before {
    content: "";
    position: absolute;
    left: -23px;
    top: 26px;
    width: 9px;
    height: 9px;
    border-radius: 2px;
    background: var(--metal);
    box-shadow: 0 0 0 4px var(--bg);
  }

  .tier-top { grid-area: top; }
  .tier-figure { grid-area: fig; margin: 0; align-self: stretch; }
  .tier h3 { grid-area: title; }
  .tier p { grid-area: body; }
  .tier-spec { grid-area: spec; }
}

@media (max-width: 600px) {
  .tiers {
    padding-left: 22px;
  }

  .tiers::before {
    left: 7px;
  }

  .tier {
    grid-template-columns: 112px minmax(0, 1fr);
    grid-template-areas:
      "top top"
      "fig title"
      "fig body"
      "spec spec";
    column-gap: 14px;
    padding: 14px;
  }

  .tier::before {
    left: -19px;
  }

  .tier h3 {
    font-size: 19px;
    margin-top: 10px;
  }

  .tier p {
    font-size: 14px;
  }

  .tier-figure {
    margin-top: 10px;
    padding: 8px 4px;
    align-self: start;
  }

  .tier-spec {
    grid-template-columns: 1fr auto;
    align-items: end;
  }
}

/* ---------- Existing rewards ---------- */

.programs {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.program {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.program.is-new {
  background: linear-gradient(180deg, rgb(138 80 232 / 0.07), var(--card) 40%);
  border-color: var(--border-2);
}

.program h3 {
  margin-top: 16px;
  font-size: clamp(22px, 2.4vw, 28px);
}

.program > p {
  margin-top: 10px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.program .spec-list {
  margin-top: 18px;
}

.program .spec-list > div {
  grid-template-columns: minmax(110px, 0.7fr) minmax(0, 1.3fr);
}

.program-foot {
  margin-top: auto;
  padding-top: 18px;
  font-size: 13px;
  color: var(--muted);
}

.record-link {
  margin-top: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: center;
  padding: 22px 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--band);
}

.record-link h3 {
  margin-top: 14px;
  font-size: 20px;
}

.record-link p {
  margin-top: 8px;
  max-width: 70ch;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

@media (max-width: 860px) {
  .programs {
    grid-template-columns: 1fr;
  }

  .record-link {
    grid-template-columns: 1fr;
  }
}

/* ---------- Why it fits ---------- */

.why {
  background: var(--band);
}

.why-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}

.why h2 {
  margin-top: 18px;
  font-size: clamp(32px, 3.6vw, 48px);
}

.why-copy p {
  margin-top: 18px;
  color: var(--fg-2);
  font-size: 17px;
  line-height: 1.6;
  max-width: 56ch;
}

.why-copy blockquote {
  margin-top: 18px;
  padding: 14px 18px;
  border-left: 2px solid var(--primary);
  background: rgb(7 6 11 / 0.45);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.why-copy blockquote p {
  margin: 0;
  font-size: 16px;
  color: var(--fg);
}

.why-copy cite {
  display: block;
  margin-top: 6px;
  font: 400 12px var(--font-mono);
  font-style: normal;
  color: var(--muted);
}

.why-figure {
  padding: 18px 18px 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.why-figure svg {
  width: 100%;
  height: auto;
}

.why-figure .fig-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.why-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

.legend {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-size: 13.5px;
  color: var(--fg-2);
}

.legend li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.legend .key {
  width: 22px;
  height: 0;
  border-top: 2px solid var(--accent-soft);
}

.legend .key.is-dashed {
  border-top: 2px dashed var(--muted);
}

.dg-axis { stroke: var(--border-3); stroke-width: 1; }
.dg-grid { stroke: var(--border); stroke-width: 1; }
.dg-a { fill: none; stroke: var(--accent-soft); stroke-width: 2.25; }
.dg-a-area { fill: var(--accent); opacity: 0.08; }
.dg-b { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 6 5; }
.dg-snap { stroke: var(--accent); stroke-width: 1.25; stroke-dasharray: 3 4; }
.dg-mark { fill: var(--bg); stroke: var(--accent); stroke-width: 2; }
.dg-rec-a { fill: var(--accent-soft); opacity: 0.8; }
.dg-rec-b { fill: var(--muted); opacity: 0.8; }
.dg-text { font: 700 10px var(--font-mono); letter-spacing: 0.1em; fill: var(--muted); }
.dg-text.is-strong { fill: var(--fg); }
.dg-text.is-accent { fill: var(--accent-soft); }
.dg-short { display: none; }

@media (max-width: 600px) {
  .dg-text { font-size: 18px; }
  .dg-long { display: none; }
  .dg-short { display: inline; }
}

.statements {
  margin-top: clamp(36px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.statements li {
  padding: 22px 22px 24px;
  background: var(--bg);
}

.statements .code-label {
  color: var(--muted);
}

.statements p {
  margin-top: 10px;
  font: 800 clamp(19px, 1.65vw, 22px)/1.12 var(--font-sans);
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--fg);
}

.statements p em {
  font-style: normal;
  color: var(--accent);
}

.sequence {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sequence div {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgb(7 6 11 / 0.45);
}

.sequence ol {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  font: 700 13px/1.3 var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg);
}

.sequence ol li:not(:last-child)::after {
  content: "/";
  margin-left: 10px;
  color: var(--dim);
}

@media (max-width: 960px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .statements {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .sequence {
    grid-template-columns: 1fr;
  }
}

/* ---------- DarkSwap context ---------- */

.context-grid {
  margin-top: clamp(32px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.context-list {
  border-top: 1px solid var(--border);
}

.context-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.context-list .status-tag {
  margin-top: 4px;
}

.context-list h3 {
  font-size: 16px;
  letter-spacing: 0;
}

.context-list p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.privacy-box h3 {
  margin-top: 16px;
  font-size: 22px;
}

.privacy-box ul {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.privacy-box li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}

.privacy-box li strong {
  color: var(--fg);
}

.context-links {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

@media (max-width: 960px) {
  .context-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .context-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

/* ---------- Official token ---------- */

.token-card {
  margin-top: clamp(32px, 4vw, 44px);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.token-main {
  padding: clamp(20px, 3vw, 30px);
}

.token-id {
  display: flex;
  align-items: center;
  gap: 14px;
}

.token-id img {
  width: 44px;
  height: 44px;
}

.token-id .t-brand {
  font: 700 11px/1.2 var(--font-sans);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.token-id .t-name {
  margin-top: 3px;
  font: 800 26px/1 var(--font-sans);
  letter-spacing: -0.01em;
  color: var(--fg);
}

.token-id .t-name span {
  margin-left: 8px;
  font: 700 12px var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent-soft);
  vertical-align: middle;
}

.mint-label {
  margin-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.mint-field {
  margin-top: 10px;
  padding: 16px 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: var(--well);
}

.mint-field code {
  display: block;
  font: 700 clamp(14px, 1.65vw, 18px)/1.5 var(--font-mono);
  letter-spacing: 0.02em;
  color: var(--fg);
  word-break: break-all;
  user-select: all;
  -webkit-user-select: all;
}

.token-actions {
  margin-top: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.token-safety {
  margin-top: 16px;
}

.token-facts {
  padding: clamp(20px, 3vw, 30px);
  border-left: 1px solid var(--border);
  background: var(--bg-2);
}

.token-facts .spec-list > div {
  grid-template-columns: minmax(112px, 0.8fr) minmax(0, 1.2fr);
  padding: 12px 0;
}

.token-facts .spec-list dd {
  font-size: 14.5px;
  overflow-wrap: anywhere;
}

.token-facts .fineprint {
  margin-top: 14px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}

@media (max-width: 960px) {
  .token-card {
    grid-template-columns: 1fr;
  }

  .token-facts {
    border-left: 0;
    border-top: 1px solid var(--border);
  }
}

@media (max-width: 480px) {
  .token-actions .btn {
    flex: 1 1 100%;
  }
}

/* ---------- FAQ ---------- */

.faq-wrap .faq-list {
  max-width: 1040px;
}

/* ---------- Closing CTA ---------- */

.closing {
  padding: clamp(64px, 9vw, 120px) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: radial-gradient(70% 120% at 50% 0%, rgb(138 80 232 / 0.16), transparent 70%);
}

.closing h2 {
  margin-top: 18px;
  font-size: clamp(36px, 6vw, 72px);
}

.closing p {
  margin-top: 18px;
  font-size: clamp(17px, 1.8vw, 21px);
  font-weight: 700;
  color: var(--fg-2);
}

.closing .hero-actions {
  justify-content: center;
  margin-top: 30px;
}

.closing-note {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font: 700 10.5px var(--font-sans);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.closing-note svg {
  width: 14px;
  height: 14px;
}

/* ---------- 404 ---------- */

.notfound {
  padding: clamp(80px, 14vw, 180px) 0;
}

.notfound h1 {
  margin-top: 18px;
  font-size: clamp(44px, 8vw, 96px);
}

.notfound p {
  margin-top: 18px;
  color: var(--fg-2);
  font-size: 18px;
}

.notfound .hero-actions {
  margin-top: 28px;
}
