/* =========================================================
   $AGENCY Holder Crates · sections
   Hero, crate glyphs, readout, develop, preview, tiers,
   method, about, comparison, steps, FAQ, final CTA
   ========================================================= */

/* ---------- ASCII crate glyph ---------- */
.crate {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.28;
  color: var(--fg-2);
  white-space: pre;
  overflow: hidden;
  font-variant-ligatures: none;
  letter-spacing: 0;
}
.crate .cr-frame { color: var(--fg-3); }
.crate .cr-label { color: var(--fg); }
.crate .cr-q { color: #4b4b46; }
.crate .cr-seal { color: var(--fg); }
.crate .cr-off { color: #3a3a36; }
.crate .cr-on { color: var(--fg); }
.crate .cr-status { color: var(--fg-2); }
.crate .cr-row.is-scan .cr-q { color: var(--fg-2); }
.crate .cr-row { transition: color .2s; }

.crate-lg { font-size: clamp(11px, 1.08vw, 15.5px); }

/* Tier tone on occupied cells (always paired with a text label) */
.tone-copper .cr-on { color: var(--t-copper); }
.tone-bronze .cr-on { color: var(--t-bronze); }
.tone-silver .cr-on { color: var(--t-silver); }
.tone-gold .cr-on { color: var(--t-gold); }
.tone-platinum .cr-on { color: var(--t-platinum); text-shadow: 0 0 10px rgba(233, 238, 242, .25); }
.tone-platinum .cr-frame { color: var(--fg-2); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(28px, 4.5vh, 56px) clamp(36px, 5vh, 64px);
  background: radial-gradient(circle at 1px 1px, #1a1a18 1px, transparent 0) 0 0 / 22px 22px;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(5,5,5,0) 55%, var(--bg) 100%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
  gap: clamp(28px, 4vw, 64px); align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  color: var(--fg-2); margin-bottom: clamp(14px, 2.2vh, 22px);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--signal); }
.hero h1 { font-size: clamp(2.6rem, 4.7vw, 4.75rem); }
.hero h1 span { display: block; }
.hero h1 .h1-ticker { color: var(--fg-2); }
.hero-tag {
  margin-top: clamp(14px, 2vh, 20px);
  font-size: clamp(1.1rem, 1.6vw, 1.35rem); font-weight: 500; letter-spacing: -0.015em;
}
.lede { margin-top: 12px; max-width: 54ch; color: var(--fg-2); font-size: clamp(15px, 1.15vw, 17px); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(18px, 2.8vh, 28px); }

.factors {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: clamp(18px, 3vh, 30px);
  border: 1px solid var(--line-2); border-radius: var(--radius); max-width: 560px;
}
.factor { padding: 12px 14px; }
.factor + .factor { border-left: 1px solid var(--line-2); }
.factor dt { font-weight: 600; font-size: 15px; display: flex; align-items: baseline; gap: 10px; }
.factor dt .idx { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); font-weight: 400; }
.factor dd { color: var(--fg-2); font-size: 14px; margin-top: 2px; }
.equation {
  max-width: 560px; border: 1px solid var(--line-2); border-top: 0; padding: 10px 14px;
  font-size: 13px; color: var(--fg); background: var(--bg-1);
}
.equation b { font-weight: 500; color: var(--fg-3); }

/* Crate panel (hero) */
.crate-panel { border: 1px solid var(--line-2); background: var(--bg-1); border-radius: var(--radius); }
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--fg-3);
}
.panel-body { padding: clamp(18px, 2.6vw, 30px) clamp(14px, 2vw, 28px); display: flex; justify-content: center; }
.panel-foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--fg-2);
}
.panel-foot .mono { font-size: 12px; color: var(--fg-3); }
.cursor::after { content: "_"; animation: blink 1.1s steps(1) infinite; margin-left: 1px; }
@keyframes blink { 50% { opacity: 0; } }

/* Market snapshot strip (AGENCY-style stat row) */
.hero-stats {
  position: relative; z-index: 1; margin-top: clamp(28px, 4vh, 48px);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.hero-stats > div { padding: 14px 16px 14px 0; }
.hero-stats > div + div { padding-left: 16px; border-left: 1px solid var(--line); }
.hero-stats dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--fg-3); }
.hero-stats dd { font-size: 17px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hero-stats dd small { font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); font-weight: 400; }
.hero-stats .src a { font-size: 13px; font-weight: 500; display: inline-block; padding: 3px 0; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-crate { max-width: 560px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stats > div:nth-child(4) { padding-left: 0; border-left: 0; }
  .hero-stats > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) {
  .factors { grid-template-columns: 1fr; }
  .factor + .factor { border-left: 0; border-top: 1px solid var(--line-2); }
  .cta-row .btn { flex: 1 1 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats > div { padding-left: 0 !important; border-left: 0 !important; }
  .hero-stats > div:nth-child(even) { padding-left: 14px !important; border-left: 1px solid var(--line) !important; }
  .hero-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .hero-stats .src { grid-column: 1 / -1; padding-left: 0 !important; border-left: 0 !important; }
  .panel-body { padding-inline: 8px; }
  .crate-lg { font-size: clamp(9.5px, 3vw, 13px); }
}

/* ---------- Your Crate: readout ---------- */
.readout-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(20px, 3vw, 40px); }
.readout { border: 1px solid var(--line-2); background: var(--bg-1); border-radius: var(--radius); }
.readout-state {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.readout-state .big { font-family: var(--font-mono); font-size: clamp(18px, 2vw, 24px); letter-spacing: .04em; }
.readout dl { padding: 6px 20px; }
.readout dl > div {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline;
  padding: 13px 0; border-bottom: 1px dashed var(--line-2);
}
.readout dl > div:last-child { border-bottom: 0; }
.readout dt { font-size: 15px; }
.readout dt small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 2px; }
.readout dd { font-family: var(--font-mono); font-size: 14px; color: var(--fg-3); text-align: right; }
.readout-foot { padding: 16px 20px 20px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between; }
.readout-foot p { font-size: 14px; color: var(--fg-2); max-width: 40ch; }

.pipeline { border: 1px solid var(--line-2); border-radius: var(--radius); }
.pipeline-head { padding: 14px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.pipeline li { display: grid; grid-template-columns: 40px 1fr; gap: 6px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.pipeline li:last-child { border-bottom: 0; }
.pipeline .n { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); padding-top: 3px; }
.pipeline h3 { font-size: 16px; font-weight: 600; }
.pipeline p { color: var(--fg-2); font-size: 14px; margin-top: 2px; }
.pipeline .tags { margin-top: 6px; }

@media (max-width: 900px) { .readout-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .readout dl > div { grid-template-columns: 1fr; gap: 2px; }
  .readout dd { text-align: left; }
}

/* ---------- How your Crate develops ---------- */
.develop-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--radius); }
.develop-card { padding: clamp(18px, 2vw, 26px); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.develop-card + .develop-card { border-left: 1px solid var(--line-2); }
.develop-card .n { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.develop-card .glyph {
  display: block; font-family: var(--font-mono); font-size: clamp(11px, 1.1vw, 13px); line-height: 1.3;
  white-space: pre; color: var(--fg-2); padding: 16px; background: var(--bg-1);
  border: 1px solid var(--line); overflow: hidden; min-height: 112px;
}
.develop-card .glyph b { color: var(--fg); font-weight: 400; }
.develop-card p { color: var(--fg-2); font-size: 15px; }
.develop-card .tags { margin-top: auto; }

.rule {
  margin-top: clamp(20px, 3vw, 32px);
  display: grid; grid-template-columns: auto 1fr; gap: 20px 40px; align-items: center;
  border: 1px solid var(--line-2); padding: clamp(18px, 2.4vw, 28px); border-radius: var(--radius); background: var(--bg-1);
}
.rule pre { font-family: var(--font-mono); font-size: clamp(13px, 1.4vw, 17px); line-height: 1.45; color: var(--fg); }
.rule pre .k { color: var(--fg-3); }
.rule p { color: var(--fg-2); max-width: 52ch; }
.rule p strong { color: var(--fg); font-weight: 600; }

@media (max-width: 900px) {
  .develop-grid { grid-template-columns: 1fr; }
  .develop-card + .develop-card { border-left: 0; border-top: 1px solid var(--line-2); }
  .rule { grid-template-columns: 1fr; }
}

/* ---------- Preview ---------- */
.preview { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); border: 1px solid var(--line-2); border-radius: var(--radius); }
.controls { padding: clamp(20px, 2.6vw, 32px); border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 28px; }
.control-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.control-top label { font-weight: 600; font-size: 16px; }
.control-top output { font-family: var(--font-mono); font-size: 13px; color: var(--fg); padding: 2px 8px; border: 1px solid var(--line-2); border-radius: var(--radius); }
.control-hint { font-size: 13px; color: var(--fg-3); margin-top: 10px; }
.scale { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--fg-3); margin-top: 8px; }

/* Range input */
.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; cursor: pointer; margin: 0;
  --pct: 30%;
}
.range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 0;
  background: linear-gradient(90deg, var(--fg) 0 var(--pct), var(--line-2) var(--pct) 100%);
}
.range::-moz-range-track { height: 4px; background: var(--line-2); }
.range::-moz-range-progress { height: 4px; background: var(--fg); }
.range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -9px;
  background: var(--bg); border: 2px solid var(--fg); border-radius: 2px;
  transition: transform .15s var(--ease);
}
.range::-moz-range-thumb { width: 18px; height: 18px; background: var(--bg); border: 2px solid var(--fg); border-radius: 2px; }
.range:hover::-webkit-slider-thumb { transform: scale(1.1); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--signal); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--signal); }

.meters { font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); border-top: 1px solid var(--line); padding-top: 20px; display: grid; gap: 6px; }
.meters div { display: grid; grid-template-columns: 74px 1fr; gap: 10px; white-space: pre; overflow: hidden; }
.meters span:first-child { color: var(--fg-3); }

.preview-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

.stage { display: flex; flex-direction: column; min-width: 0; }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--line); font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); flex-wrap: wrap; }
.stage-body { padding: clamp(18px, 2.4vw, 32px) 12px; display: flex; justify-content: center; background: var(--bg-1); flex: 1; align-items: center; }
.stage-class { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.stage-class .cls { font-family: var(--font-mono); font-size: 13px; color: var(--fg-2); }
.stage-class .cls strong { color: var(--fg); font-weight: 500; letter-spacing: .06em; }
.ladder { display: flex; gap: 4px; }
.ladder span { width: 26px; height: 6px; background: var(--line-2); }
.ladder span.on { background: var(--fg); }
.feed { border-top: 1px solid var(--line); padding: 12px 18px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); min-height: 96px; }
.feed li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 2px 0; }
.feed li:first-child { color: var(--fg-2); }
.feed b { color: var(--fg); font-weight: 400; }
.disclaimer { margin-top: 16px; font-size: 13px; color: var(--fg-3); font-family: var(--font-mono); }

@media (max-width: 900px) {
  .preview { grid-template-columns: 1fr; }
  .controls { border-right: 0; border-bottom: 1px solid var(--line-2); order: 2; }
  .stage { order: 1; }
}
@media (max-width: 480px) {
  .stage-body .crate { font-size: clamp(9.5px, 3vw, 13px); }
}

/* ---------- Tiers: a classification list, not prize cards ---------- */
.tier-list { border-top: 1px solid var(--line-2); }
.tier {
  display: grid; grid-template-columns: 56px minmax(220px, auto) minmax(0, 1fr) 200px;
  gap: 20px 32px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line-2);
}
.tier .n { font-family: var(--font-mono); font-size: 13px; color: var(--fg-3); align-self: start; padding-top: 4px; }
.tier .crate { font-size: 12px; }
.tier-name { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tier-name h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; letter-spacing: -0.02em; }
.swatch { width: 10px; height: 10px; border-radius: 1px; display: inline-block; }
.tier p { color: var(--fg-2); margin-top: 6px; max-width: 46ch; font-size: 15px; }
.tier .potential { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.tier .potential .bar { display: block; color: var(--fg); font-size: 14px; margin-top: 6px; letter-spacing: .02em; }
.tier-note { margin-top: 20px; font-size: 14px; color: var(--fg-3); max-width: 70ch; }

@media (max-width: 1100px) {
  .tier { grid-template-columns: 44px auto minmax(0, 1fr); }
  .tier .potential { grid-column: 3; }
}
@media (max-width: 720px) {
  .tier { grid-template-columns: 1fr; gap: 14px; padding: 24px 0; }
  .tier .n { padding-top: 0; }
  .tier .potential { grid-column: auto; }
  .tier .crate { font-size: clamp(11px, 3.2vw, 13px); }
}

/* ---------- Method ---------- */
.method-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.method-copy p { color: var(--fg-2); font-size: 17px; max-width: 56ch; }
.method-copy p + p { margin-top: 16px; }
.method-copy p strong { color: var(--fg); font-weight: 600; }
.pull {
  margin-top: 32px; padding: 22px 0 0; border-top: 1px solid var(--line-2);
  font-size: clamp(1.4rem, 2.6vw, 2rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.2;
}
.pull p { color: var(--fg) !important; font-size: inherit !important; }
.pull cite { display: block; margin-top: 10px; font-style: normal; font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.principles { border: 1px solid var(--line-2); border-radius: var(--radius); }
.principles li { padding: 20px 22px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 34px 1fr; gap: 4px 10px; }
.principles li:last-child { border-bottom: 0; }
.principles .n { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); padding-top: 4px; }
.principles p { color: var(--fg-2); font-size: 15px; margin-top: 4px; }
.principles .tags { margin-top: 8px; }
.loop {
  margin-top: 16px; padding: 16px 22px; border: 1px solid var(--line-2); border-radius: var(--radius);
  font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); line-height: 1.7;
}
.loop strong { color: var(--fg); font-weight: 400; }

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

/* ---------- About AGENCY ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.about-lead { font-size: clamp(1.15rem, 1.8vw, 1.45rem); line-height: 1.4; letter-spacing: -0.01em; max-width: 44ch; }
.about-lead .q { color: var(--fg-2); }
.facts { margin-top: 28px; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line-2); border-radius: var(--radius); }
.fact { padding: 18px 20px; border-bottom: 1px solid var(--line-2); }
.fact:nth-child(odd) { border-right: 1px solid var(--line-2); }
.fact:nth-last-child(-n+2) { border-bottom: 0; }
.fact h3 { font-size: 15px; font-weight: 600; }
.fact p { color: var(--fg-2); font-size: 14px; margin-top: 6px; }
.fact .tags { margin-top: 8px; }
.about-links { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 22px; font-family: var(--font-mono); font-size: 13px; }
.about-links a {
  display: inline-block; padding: 6px 0 4px;
  color: var(--fg-2); border-bottom: 1px solid var(--line-2); transition: color .15s, border-color .15s;
}
.about-links a:hover { color: var(--fg); border-color: var(--fg); }

.token-card { border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--bg-1); overflow: hidden; }
.token-banner { aspect-ratio: 3 / 1; background: var(--bg-2); border-bottom: 1px solid var(--line); overflow: hidden; }
.token-banner img { width: 100%; height: 100%; object-fit: cover; }
.token-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.token-head img { width: 40px; height: 40px; border-radius: 3px; object-fit: cover; background: var(--bg-3); }
.token-head .t { font-weight: 600; font-size: 16px; }
.token-head .s { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.token-card dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 18px; border-bottom: 1px dashed var(--line-2); font-size: 14px; }
.token-card dt { color: var(--fg-3); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .04em; padding-top: 2px; }
.token-card dd { font-variant-numeric: tabular-nums; text-align: right; }
.mint { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.mint-row { display: flex; gap: 8px; align-items: stretch; margin-top: 8px; }
.mint code {
  flex: 1; min-width: 0; font-family: var(--font-mono); font-size: 12px; color: var(--fg);
  background: var(--bg); border: 1px solid var(--line-2); padding: 9px 10px;
  overflow-wrap: anywhere; word-break: break-all; border-radius: var(--radius);
}
.copy-btn { font-family: var(--font-mono); font-size: 12px; padding: 0 12px; min-width: 64px; min-height: 40px; border: 1px solid var(--line-3); border-radius: var(--radius); transition: border-color .15s; }
.copy-btn:hover { border-color: var(--fg); }
.token-src { padding: 12px 18px 16px; font-size: 12px; color: var(--fg-3); font-family: var(--font-mono); }
.token-src a { color: var(--fg-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); }

@media (max-width: 960px) {
  .about-grid { grid-template-columns: 1fr; }
  .token-card { max-width: 560px; }
}
@media (max-width: 600px) {
  .facts { grid-template-columns: 1fr; }
  .fact:nth-child(odd) { border-right: 0; }
  .fact:nth-last-child(2) { border-bottom: 1px solid var(--line-2); }
}

/* ---------- Mind rewards vs Holder Crates ---------- */
.compare { border: 1px solid var(--line-2); border-radius: var(--radius); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 16px 20px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--fg-3); text-transform: uppercase; letter-spacing: .05em; background: var(--bg-1); }
.compare thead th.col-crates { color: var(--fg); }
.compare tbody th { width: 18%; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--fg-3); text-transform: uppercase; letter-spacing: .04em; padding-top: 19px; }
.compare td { color: var(--fg-2); width: 41%; }
.compare td.crates { color: var(--fg); background: rgba(237, 237, 230, .025); border-left: 1px solid var(--line-2); }
.compare td + td { border-left: 1px solid var(--line-2); }
.compare-note { margin-top: 18px; font-size: 14px; color: var(--fg-3); max-width: 75ch; }

/* Mobile: each row becomes a labelled block, no tiny table */
@media (max-width: 760px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 1px solid var(--line-2); padding: 6px 0 10px; }
  .compare tr:last-child { border-bottom: 0; }
  .compare tbody th { padding: 14px 16px 6px; border: 0; }
  .compare td { border: 0 !important; padding: 8px 16px; }
  .compare td::before {
    content: attr(data-label); display: block; font-family: var(--font-mono); font-size: 11px;
    text-transform: uppercase; letter-spacing: .05em; color: var(--fg-3); margin-bottom: 4px;
  }
  .compare td.crates { background: transparent; border-left: 2px solid var(--fg) !important; margin-left: 16px; width: calc(100% - 32px); padding-left: 12px; }
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line-2); border-left: 1px solid var(--line-2); }
.step { padding: 22px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 8px; min-height: 190px; min-width: 0; }
.step .n { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.step .glyph { font-family: var(--font-mono); font-size: 12px; line-height: 1.3; color: var(--fg-2); white-space: pre; margin: 4px 0 6px; }
.step p { color: var(--fg-2); font-size: 15px; }
.step .tags { margin-top: auto; padding-top: 6px; }
.step.is-reveal { background: var(--bg-1); }

@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step { min-height: 0; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq-aside p { color: var(--fg-2); margin-top: 14px; max-width: 34ch; }
.faq-aside .btn { margin-top: 20px; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 34px 1fr 24px; gap: 8px; align-items: baseline;
  padding: 18px 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .n { font-family: var(--font-mono); font-size: 12px; color: var(--fg-3); }
.faq-item summary .pm { font-family: var(--font-mono); color: var(--fg-3); text-align: right; }
.faq-item summary .pm::before { content: "+"; }
.faq-item[open] summary .pm::before { content: "\2212"; }
.faq-item summary:hover h3 { color: #fff; }
.faq-item summary h3 { font-size: inherit; font-weight: inherit; }
.faq-item .a { padding: 0 32px 20px 42px; color: var(--fg-2); max-width: 70ch; }
.faq-item .a p + p { margin-top: 10px; }

@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
@media (max-width: 480px) {
  .faq-item .a { padding-left: 0; padding-right: 0; }
  .faq-item summary { grid-template-columns: 28px 1fr 20px; font-size: 16px; }
}

/* ---------- Final CTA ---------- */
.final { text-align: center; padding-block: clamp(72px, 10vw, 140px); border-top: 1px solid var(--line); }
.final .crate { display: inline-block; text-align: left; font-size: clamp(10px, 1.2vw, 14px); }
.final h2 { font-size: clamp(2.4rem, 6.5vw, 5.4rem); margin-top: clamp(28px, 4vw, 44px); }
.final p { color: var(--fg-2); margin: 18px auto 0; max-width: 46ch; font-size: 17px; }
.final .cta-row { justify-content: center; }
.final .disclaimer { margin-top: 22px; }
@media (max-width: 480px) { .final .crate { font-size: clamp(9.5px, 3vw, 12px); } }

/* ---------- Touch targets (links outside running text) ---------- */
.footer li a { display: inline-block; padding: 4px 0; }
.nav-ext { padding: 10px 0; }
