/* site.css: MODUL "Blueprint" theme. Blueprint-blue paper, white grid, chalk-white lines.
   Colors and fonts live in :root. Solid outlines = enforced on-chain, dashed outlines = published plan. */
:root {
  --bg: #1B4478;            /* blueprint blue */
  --bg-elev: #173B69;       /* header, closing band, footer */
  --surface: #163864;       /* inputs, dialogs, menus */
  --surface-2: #1F4C84;     /* hover */
  --panel: rgba(12, 34, 66, .38);
  --ink: #F4F7FB;           /* chalk white */
  --muted: #C2D0E3;
  --faint: #9DB2CD;
  --line: rgba(255, 255, 255, .16);
  --border: rgba(255, 255, 255, .30);
  --border-strong: rgba(255, 255, 255, .58);
  --accent: #AFCBEB;        /* soft sky: highlights only */
  --accent-soft: rgba(175, 203, 235, .16);
  --success: #96DABD;
  --danger: #FFB4A9;
  --grid-minor: rgba(255, 255, 255, .055);
  --grid-major: rgba(255, 255, 255, .12);
  --hatch: repeating-linear-gradient(135deg, rgba(255, 255, 255, .62) 0 1.5px, transparent 1.5px 6px);
  --font-sans: 'Geist', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Righteous', 'Geist', system-ui, sans-serif;
  --font-hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  --font-mono: 'Geist Mono', 'SF Mono', Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid-minor) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-minor) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.mono { font-family: var(--font-mono); }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: 999px;
  font-size: 14px; font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Header: a solid bar across the top of the sheet ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg-elev);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: 72px; display: flex; align-items: center; gap: 48px; }
.logo { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.logo-mark {
  position: relative; flex-shrink: 0; width: 20px; height: 20px;
  border: 1.5px solid var(--ink); border-radius: 3px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 1.5px 100% no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 100% 1.5px no-repeat;
}
.logo-mark::after { content: ""; position: absolute; top: 0; right: 0; width: calc(50% - .75px); height: calc(50% - .75px); background: var(--accent); }
.logo-word { font-size: 14px; font-weight: 600; letter-spacing: .3em; }
.nav { display: flex; gap: 32px; }
.nav a { position: relative; color: var(--muted); text-decoration: none; font-size: 14px; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -25px; height: 2px; background: var(--ink); }
.header-actions { margin-left: auto; position: relative; }
/* The nav doubles as the mobile menu: a popover opened by .nav-toggle, no script needed.
   Without this reset the browser's popover defaults (fixed, inset 0, white box, border) apply on desktop. */
.nav[popover] { position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0; overflow: visible; background: none; color: inherit; }
.nav-toggle {
  display: none; place-items: center; flex-shrink: 0; width: 40px; height: 40px;
  border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer;
}
.nav-toggle:hover { background: var(--surface-2); }
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--ink); color: var(--bg-elev);
  font: inherit; font-size: 14px; font-weight: 600; letter-spacing: .01em; line-height: 1.2;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.btn:hover { background: #FFFFFF; box-shadow: 0 0 0 4px var(--accent-soft); }
.btn-outline { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--border-strong); }
.btn-outline:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.btn .i { width: 15px; height: 15px; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }

/* ---------- Wallet button + account menu ---------- */
.btn-wallet {
  min-height: 40px; padding: 0 18px; white-space: nowrap;
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn-wallet:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-wallet.is-connected { padding: 0 16px 0 7px; gap: 10px; }
.btn-wallet .mono { font-size: 13px; }
.wb-logo { width: 26px; height: 26px; border-radius: 7px; }
.logo-mono { display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: 13px; }

.acct-menu {
  position: absolute; right: 0; top: calc(100% + 12px); z-index: 60;
  width: 300px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(4, 14, 30, .45);
}
.acct-menu[hidden] { display: none; }
.am-head {
  display: flex; gap: 12px; align-items: center;
  padding: 12px 10px 14px; margin-bottom: 4px; border-bottom: 1px solid var(--line);
}
.am-logo { width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0; }
.am-who { min-width: 0; }
.am-name { font-size: 14px; font-weight: 500; }
.am-addr { font-size: 11.5px; color: var(--muted); line-height: 1.5; word-break: break-all; }
.am-item {
  width: 100%; min-height: 44px; display: flex; align-items: center; gap: 10px;
  padding: 0 10px; border: 0; border-radius: 10px; background: none;
  color: var(--ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer;
}
.am-item:hover, .am-item:focus-visible { background: var(--surface-2); }
.am-item .i { width: 16px; height: 16px; color: var(--muted); flex-shrink: 0; }
.am-item--danger, .am-item--danger .i { color: var(--danger); }

/* ---------- Wallet modal ---------- */
.wallet-dialog {
  padding: 0; border: 1px solid var(--border); border-radius: 20px;
  background: var(--surface); color: var(--ink);
  width: min(400px, calc(100vw - 24px)); max-width: none;
  max-height: min(640px, calc(100vh - 24px));
  margin: auto;
  box-shadow: 0 40px 100px rgba(4, 14, 30, .55);
  overflow: hidden;
}
.wallet-dialog::backdrop { background: rgba(8, 20, 40, .72); }
.wallet-dialog[open] { animation: wd-in .26s var(--ease); }
@keyframes wd-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.wd-inner { display: flex; flex-direction: column; max-height: inherit; }
.wd-head { display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 16px 14px 8px; }
.wd-head h2 { text-align: center; font-size: 17px; font-weight: 600; letter-spacing: .01em; }
.wd-icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; border-radius: 999px; background: none; color: var(--muted); cursor: pointer;
}
.wd-icon-btn:hover { background: var(--surface-2); color: var(--ink); }
.wd-icon-btn[hidden] { display: grid; visibility: hidden; }
.wd-icon-btn svg { width: 18px; height: 18px; }
.wd-body { padding: 6px 12px 8px; overflow-y: auto; overflow-x: hidden; }

.wd-list { list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; }
.wd-row {
  width: 100%; min-height: 56px; display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border: 0; border-radius: 12px; background: none;
  color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .15s;
}
.wd-row:hover, .wd-row:focus-visible { background: var(--surface-2); }
.wd-row:focus-visible, .am-item:focus-visible { outline-offset: -2px; }
.wd-logo { width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0; object-fit: cover; }
.wd-name { flex: 1; min-width: 0; font-size: 15px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-tag {
  font-size: 11px; font-weight: 500; letter-spacing: .02em; color: var(--muted);
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2); white-space: nowrap;
}
.wd-tag--ok { color: var(--success); background: rgba(150, 218, 189, .14); }
.wd-chev { width: 16px; height: 16px; color: var(--faint); flex-shrink: 0; }

.wd-panel { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 14px 8px 18px; text-align: center; }
.wd-biglogo { width: 64px; height: 64px; border-radius: 16px; font-size: 24px; }
.wd-biglogo.is-waiting { animation: wd-pulse 1.4s ease-in-out infinite; }
@keyframes wd-pulse { 50% { opacity: .5; } }
.wd-h { margin-top: 4px; font-size: 19px; font-weight: 600; line-height: 1.25; }
.wd-p { max-width: 300px; font-size: 14px; color: var(--muted); }
.wd-cta { min-width: 200px; margin-top: 6px; }
.wd-link { font-size: 13px; color: var(--muted); }
.wd-link:hover { color: var(--ink); }
.wd-fine { font-size: 12px; color: var(--muted); }
.wd-fine .mono { color: var(--ink); }
.wd-foot {
  margin-top: auto; padding: 14px 24px 20px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.55; color: var(--muted); text-align: center;
}

@media (max-width: 520px) {
  .wallet-dialog {
    width: 100%; max-height: 88vh; margin: auto 0 0;
    border-radius: 20px 20px 0 0; border-bottom: 0;
  }
  .wallet-dialog[open] { animation-name: wd-sheet; }
}
@keyframes wd-sheet { from { opacity: 0; transform: translateY(28px); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 144px 0 120px; border-bottom: 1px solid var(--line); }
.hero-orbit {
  position: absolute; top: 50%; right: -250px; z-index: 0;
  width: min(720px, 62vw); height: auto;
  transform: translateY(-50%);
  pointer-events: none;
  animation: fade 1.6s var(--ease) .2s both;
}
.hero-orbit circle { fill: none; stroke: var(--border); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hero-orbit .axis { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; }
.hero-orbit .arc { fill: none; stroke: var(--accent); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.hero-orbit .body { fill: var(--accent); stroke: none; }
.hero-inner { position: relative; z-index: 1; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 14px; margin-bottom: 36px;
  font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--border-strong); }
.hero h1 {
  max-width: 15ch; margin-bottom: 36px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(46px, 6.6vw, 96px); line-height: 1.02; letter-spacing: 0;
  text-wrap: balance;
}
.tone { color: var(--accent); }
.lead { max-width: 31rem; margin-bottom: 44px; font-size: 18px; line-height: 1.65; color: var(--muted); }
.hero-actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none;
}
.link-arrow span { transition: transform .25s var(--ease); }
.link-arrow:hover span { transform: translateX(3px); }
.hero-meta { display: flex; flex-wrap: wrap; margin-top: 80px; font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.hero-meta span + span::before { content: "/"; margin: 0 14px; color: var(--faint); }

.rise { animation: rise .9s var(--ease) both; }
.d1 { animation-delay: .05s; }
.d2 { animation-delay: .15s; }
.d3 { animation-delay: .25s; }
.d4 { animation-delay: .35s; }
.d5 { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Section heads ---------- */
.kicker { margin-bottom: 24px; font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.section-head h2, .closing h2 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(34px, 4.4vw, 58px); line-height: 1.06; letter-spacing: 0;
  text-wrap: balance;
}
.section-head .sub { margin-top: 24px; max-width: 26rem; font-size: 16px; color: var(--muted); }
.section-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px 64px; margin-bottom: 48px; }
.section-head--row .sub { margin-top: 0; }

/* ---------- How it works ---------- */
.how { padding: 136px 0; }
.how-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 96px; align-items: start; }
.how .section-head { position: sticky; top: 120px; }
.steps { list-style: none; border-bottom: 1px solid var(--line); }
.step {
  display: grid; grid-template-columns: 56px minmax(0, 1fr); column-gap: 16px; row-gap: 4px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.step-n { grid-row: span 2; padding-top: 12px; font-size: 12px; letter-spacing: .06em; color: var(--faint); }
.step h3 { font-family: var(--font-hand); font-weight: 600; font-size: 34px; line-height: 1.1; }
.step p { max-width: 34rem; font-size: 15px; color: var(--muted); }

/* ---------- Token blueprint: the six dials ---------- */
.blueprint { padding: 120px 0 136px; border-top: 1px solid var(--line); }
.dials {
  list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 40px; border: 1.5px solid var(--border-strong); background: var(--panel);
}
.dial { display: grid; align-content: start; gap: 8px; padding: 26px 28px 28px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dial:nth-child(3n) { border-right: 0; }
.dial:nth-last-child(-n+3) { border-bottom: 0; }
.dial-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dial-n { font-size: 12px; letter-spacing: .06em; color: var(--faint); }
.dial h3 { font-family: var(--font-hand); font-weight: 600; font-size: 31px; line-height: 1.1; }
.dial p { font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.tag {
  display: inline-flex; align-items: center; flex-shrink: 0; padding: 2px 9px; border-radius: 999px;
  border: 1px solid var(--border-strong); color: var(--ink);
  font-family: var(--font-sans); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.tag--plan { border-style: dashed; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Trade simulator ---------- */
.sim-section { padding: 120px 0 136px; border-top: 1px solid var(--line); }
.sim {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  border: 1.5px solid var(--border-strong); background: var(--panel);
}
.sim-controls { display: grid; align-content: start; gap: 26px; padding: 28px; border-right: 1px solid var(--border); }
.sim-out { display: grid; align-content: start; min-width: 0; }
.label { display: block; padding: 0; font-size: 13px; font-weight: 500; color: var(--ink); }
.field output { font-family: var(--font-mono); font-size: 13px; color: var(--ink); }
.sim-mcap { font-size: 12.5px; color: var(--muted); }
.sim-plan { padding-top: 18px; border-top: 1px dashed var(--border); font-size: 13px; color: var(--muted); }
.sim-plan a { color: var(--ink); }
.sim-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.sim-stats div { min-width: 0; padding: 22px 20px 24px; }
.sim-stats div + div { border-left: 1px solid var(--line); }
.sim-stats dt { margin-bottom: 8px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.sim-stats dd { overflow: hidden; font-size: 19px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.sim-stats dd.up { color: var(--success); }
.sim-stats dd.down { color: var(--danger); }
.flow { display: grid; gap: 14px; padding: 22px 24px 26px; }
.flow-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.flow-title { font-family: var(--font-hand); font-size: 26px; font-weight: 600; line-height: 1.1; }
.flow-rows { list-style: none; display: grid; gap: 12px; }
.flow-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 104px; align-items: center; gap: 14px; font-size: 14px; }
.flow-row.is-sub .flow-name { padding-left: 16px; color: var(--muted); }
.flow-row.is-sub .flow-name::before { content: "\2514\00a0"; color: var(--faint); }
.flow-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-bar { height: 12px; border: 1px solid var(--border-strong); }
.flow-bar span { display: block; width: var(--w, 0%); height: 100%; background: var(--ink); transition: width .25s var(--ease); }
.flow-row.is-plan .flow-bar { border-style: dashed; }
.flow-row.is-plan .flow-bar span { background: var(--hatch); }
.flow-sol { font-family: var(--font-mono); font-size: 12.5px; text-align: right; color: var(--muted); }
.flow-note { font-size: 12.5px; line-height: 1.55; color: var(--muted); }

.range {
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0;
  background: transparent; cursor: pointer;
}
.range::-webkit-slider-runnable-track {
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--ink) var(--fill, 50%), var(--border) var(--fill, 50%));
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; margin-top: -8px;
  border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--accent-soft);
}
.range::-moz-range-track { height: 2px; border-radius: 2px; background: var(--border); }
.range::-moz-range-progress { height: 2px; background: var(--ink); }
.range::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: var(--ink); box-shadow: 0 0 0 5px var(--accent-soft); }
.range:focus-visible { outline: none; }
.range:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px var(--accent); }
.range:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 4px var(--accent); }
.range:disabled { opacity: .4; cursor: not-allowed; }

/* ---------- Token spec ---------- */
.spec { padding: 0 0 136px; }
.spec-kicker { margin-bottom: 0; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.spec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.spec-item { padding: 28px 28px 32px 0; }
.spec-item + .spec-item { padding-left: 28px; border-left: 1px solid var(--line); }
.spec-item dt { margin-bottom: 12px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.spec-item dd { font-family: var(--font-hand); font-size: 36px; font-weight: 600; line-height: 1.05; }
.spec-item dd.mono { padding-top: 9px; font-family: var(--font-mono); font-size: 14px; font-weight: 400; color: var(--muted); }

/* ---------- Closing + footer ---------- */
.closing { padding: 136px 0; border-top: 1px solid var(--border); background: var(--bg-elev); }
.closing-inner { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; align-items: end; }
.closing-side p { max-width: 24rem; margin-bottom: 28px; color: var(--muted); }
.footer { border-top: 1px solid var(--border); padding: 56px 0 64px; background: var(--bg-elev); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.footer-brand .legal { margin-top: 20px; }
.legal { max-width: 440px; font-size: 12px; line-height: 1.8; color: var(--muted); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.fcol { display: grid; align-content: start; }
.fhead { margin-bottom: 6px; font-size: 11px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.fcol a { display: flex; align-items: center; gap: 8px; width: fit-content; min-height: 34px; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s; }
.fcol a[href]:hover { color: var(--ink); }
.fcol a:not([href]) { color: var(--faint); }
.soon { padding: 1px 7px; border-radius: 999px; border: 1px dashed var(--border); font-size: 10.5px; color: var(--faint); }

/* ---------- Forms (launch + design) ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-block { width: 100%; min-height: 52px; font-size: 15px; }
.btn-text { background: none; color: var(--muted); }
.btn-text:hover { background: var(--surface-2); color: var(--ink); box-shadow: none; }

.launch, .page { padding: 88px 0 128px; }
.launch-head, .page-head { margin-bottom: 48px; }
.launch-head .eyebrow, .page-head .eyebrow { margin-bottom: 28px; }
.launch-head h1, .page-head h1 {
  margin-bottom: 20px;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(42px, 5.6vw, 72px); line-height: 1.04; letter-spacing: 0;
}
.launch-head .lead, .page-head .lead { margin-bottom: 0; }
.launch-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }

.lf-sec { display: grid; gap: 20px; padding: 32px 0 40px; border-top: 1px solid var(--line); }
.lf-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; font-family: var(--font-hand); font-size: 32px; font-weight: 600; line-height: 1.1; }
.lf-title .mono { font-family: var(--font-mono); font-size: 12px; font-weight: 400; letter-spacing: .06em; color: var(--faint); }
.lf-title .tag { align-self: center; }
.opt { margin-left: 4px; font-family: var(--font-sans); font-size: 12px; font-weight: 400; letter-spacing: 0; color: var(--faint); }
.lf-token { display: grid; grid-template-columns: 168px minmax(0, 1fr); gap: 24px; align-items: start; }
.lf-fields { display: grid; gap: 16px; }
.lf-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lf-grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

fieldset.field { border: 0; min-width: 0; }
.field { display: grid; gap: 8px; min-width: 0; }
.field-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.field label, .field legend { padding: 0; font-size: 13px; font-weight: 500; color: var(--ink); }
.field legend { margin-bottom: 8px; }
.count { font-size: 11.5px; color: var(--faint); }
.count.over { color: var(--danger); }
.quote { font-size: 12px; color: var(--accent); }
.input {
  width: 100%; min-height: 48px; padding: 12px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  color: var(--ink); font: inherit; font-size: 15px; line-height: 1.4;
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input::placeholder { color: var(--faint); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-ticker { text-transform: uppercase; }
.input-ticker::placeholder { text-transform: none; }
.field.invalid .input, .input[aria-invalid="true"] { border-color: var(--danger); }
.field-err { font-size: 12.5px; color: var(--danger); }
.field-err:empty { display: none; }
.hint { font-size: 12.5px; color: var(--muted); }
.hint[hidden] { display: none; }
.affix { position: relative; display: flex; align-items: center; }
.affix > span { position: absolute; font-family: var(--font-mono); font-size: 13px; color: var(--faint); pointer-events: none; }
.affix--pre > span { left: 14px; }
.affix--pre .input { padding-left: 28px; }
.affix--post > span { right: 14px; }
.affix--post .input { padding-right: 52px; }

.drop { position: relative; width: 168px; height: 168px; }
.drop-input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.drop-face {
  display: grid; place-items: center; width: 100%; height: 100%; overflow: hidden;
  border: 1.5px dashed var(--border-strong); border-radius: 20px; background: var(--panel); color: var(--muted);
  transition: border-color .15s, background-color .15s, color .15s;
}
.drop:hover .drop-face, .drop.is-over .drop-face { border-color: var(--ink); background: var(--surface-2); color: var(--ink); }
.drop-input:focus-visible + .drop-face { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.drop.has-image .drop-face { border-style: solid; }
.drop.invalid .drop-face { border-color: var(--danger); }
.drop.is-busy .drop-face { opacity: .55; }
.drop-empty { display: grid; justify-items: center; gap: 8px; font-size: 12.5px; }
.drop-empty[hidden] { display: none; }
.drop-empty svg { width: 22px; height: 22px; }
.drop-img { width: 100%; height: 100%; object-fit: cover; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 34px; padding: 0 14px; border: 0; border-radius: 999px;
  background: none; box-shadow: inset 0 0 0 1px var(--border);
  color: var(--muted); font: inherit; font-size: 13px; cursor: pointer;
  transition: background-color .15s, color .15s;
}
.chip:hover { background: var(--surface-2); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--ink); box-shadow: none; color: var(--bg-elev); }
.chip:disabled { opacity: .4; cursor: not-allowed; }

.seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.seg-opt { position: relative; display: block; cursor: pointer; }
.seg-opt input { position: absolute; opacity: 0; pointer-events: none; }
.seg-body {
  display: grid; gap: 4px; height: 100%; padding: 16px;
  border: 1px solid var(--border); border-radius: 14px; background: var(--panel);
  transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.seg-opt:hover .seg-body { border-color: var(--border-strong); }
.seg-opt input:checked + .seg-body { border-color: var(--ink); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.seg-opt input:focus-visible + .seg-body { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.seg-opt input:disabled + .seg-body { opacity: .4; cursor: not-allowed; }
.seg-title { font-size: 14px; font-weight: 600; }
.seg-desc { font-size: 12.5px; line-height: 1.45; color: var(--muted); }

.lside { position: sticky; top: 104px; }
.lside-inner { display: grid; gap: 20px; }
.pcard { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; }
.pcard-top { display: flex; align-items: center; gap: 14px; }
.pcard-img {
  flex-shrink: 0; display: grid; place-items: center; width: 56px; height: 56px; overflow: hidden;
  border-radius: 14px; background: var(--surface-2); color: var(--muted);
  font-family: var(--font-hand); font-size: 30px; font-weight: 600;
}
.pcard-img img { width: 100%; height: 100%; object-fit: cover; }
.pcard-id { flex: 1; min-width: 0; }
.pcard-name { overflow: hidden; font-size: 19px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.pcard-tick { font-size: 12.5px; color: var(--muted); }
.pcard-desc {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-top: 16px; min-height: 2.9em; font-size: 13.5px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere;
}
.pcard-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.pcard-stats div { min-width: 0; }
.pcard-stats div + div { padding-left: 14px; border-left: 1px solid var(--line); }
.pcard-stats dt { margin-bottom: 6px; font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.pcard-stats dd { overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.net-pill {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 4px 10px;
  border-radius: 999px; box-shadow: inset 0 0 0 1px var(--border);
  font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); white-space: nowrap;
}
.net-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.net-pill.is-mainnet .dot { background: var(--success); }

.cost { display: grid; gap: 10px; padding: 0 2px; }
.cost div { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.cost div[hidden] { display: none; }
.cost dt { color: var(--muted); }
.cost .cost-total { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--line); font-weight: 600; }
.cost .cost-total dt { color: var(--ink); }
.fine { font-size: 12px; line-height: 1.55; color: var(--muted); }
.notice { padding: 12px 14px; border-radius: 12px; background: rgba(255, 180, 169, .12); color: var(--danger); font-size: 13px; line-height: 1.5; }
.notice[hidden] { display: none; }
.note {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px;
  margin-bottom: 8px; padding: 12px 16px; border: 1px dashed var(--border-strong); border-radius: 12px;
  font-size: 13.5px; color: var(--muted);
}
.note[hidden] { display: none; }
.note a { color: var(--ink); }

/* Launch dialog (shares the wallet dialog's frame) */
.launch-dialog { width: min(440px, calc(100vw - 24px)); max-height: min(720px, calc(100vh - 24px)); }
.launch-dialog.is-locked [data-ld-close] { visibility: hidden; }
.lsteps { list-style: none; display: grid; padding: 4px 12px 6px; }
.lstep { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; align-items: start; padding: 10px 0; }
.lsteps.is-compact .lstep { padding: 6px 0; }
.lstep-icon {
  position: relative; display: grid; place-items: center; width: 22px; height: 22px; margin-top: 1px;
  border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--border); color: var(--bg-elev);
}
.lstep-icon svg { width: 13px; height: 13px; stroke-width: 2.5; }
.lstep.is-active .lstep-icon { box-shadow: inset 0 0 0 1.5px var(--line); }
.lstep.is-active .lstep-icon::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: var(--ink); border-right-color: var(--ink);
  animation: spin .9s linear infinite;
}
.lstep.is-done .lstep-icon { background: var(--success); box-shadow: none; }
.lstep.is-ready .lstep-icon { box-shadow: inset 0 0 0 1.5px var(--ink); }
.lstep.is-error .lstep-icon { background: var(--danger); box-shadow: none; }
.lstep-label { font-size: 14.5px; color: var(--faint); }
.lstep.is-active .lstep-label, .lstep.is-ready .lstep-label, .lstep.is-done .lstep-label, .lstep.is-error .lstep-label { color: var(--ink); }
.lstep-note { margin-top: 2px; font-size: 12.5px; color: var(--muted); overflow-wrap: anywhere; }
.lstep.is-error .lstep-note { color: var(--danger); }
@keyframes spin { to { transform: rotate(360deg); } }

.review { margin: 6px 12px 0; padding: 16px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-elev); }
.review-coin { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.review-img { flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px; object-fit: cover; background: var(--surface-2); }
.review-id { flex: 1; min-width: 0; }
.review-name { overflow: hidden; font-size: 17px; font-weight: 600; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.review-tick { font-size: 12px; color: var(--muted); }
.review .cost div { font-size: 13.5px; }
.review .cost .cost-total { font-size: 15px; }
.review-mint { margin-top: 14px; font-size: 12px; color: var(--muted); }
.review-mint .mono { color: var(--ink); }
.ld-actions { display: grid; gap: 8px; padding: 16px 12px 10px; }
.ld-actions .btn { width: 100%; }
.ld-fine { padding: 0 20px 18px; font-size: 12px; line-height: 1.5; color: var(--muted); text-align: center; }
.done { display: grid; justify-items: center; gap: 10px; padding: 18px 12px 8px; text-align: center; }
.done .ld-actions { width: 100%; padding: 8px 0 6px; }
.done-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: rgba(150, 218, 189, .14); color: var(--success); }
.done-mark svg { width: 26px; height: 26px; }
.mint-box { display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 6px; padding: 10px 10px 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-elev); }
.mint-box .mono { flex: 1; min-width: 0; font-size: 12px; line-height: 1.5; text-align: left; overflow-wrap: anywhere; }
.mint-copy { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; color: var(--muted); cursor: pointer; }
.mint-copy:hover { background: var(--surface-2); color: var(--ink); }
.mint-copy.is-copied { color: var(--success); }
.mint-copy .i { width: 16px; height: 16px; }

/* ---------- Design page ---------- */
.design-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; }
.sheet-col { display: grid; gap: 16px; }
@media (min-height: 1000px) and (min-width: 961px) {
  .sheet-col { position: sticky; top: 104px; } /* only where the whole sheet and its buttons fit on screen */
}
.sheet { border: 1.5px solid var(--border-strong); background: var(--panel); }
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 16px 18px 14px; border-bottom: 1px solid var(--border); }
.sheet-name { min-width: 0; overflow: hidden; padding-right: .2em; font-family: var(--font-hand); font-size: 32px; font-weight: 600; line-height: 1.05; text-overflow: ellipsis; white-space: nowrap; }
.sheet-tick { flex-shrink: 0; font-size: 13px; color: var(--muted); }
.sheet-rows div { display: grid; grid-template-columns: 116px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.sheet-rows dt { padding: 10px 14px 10px 18px; border-right: 1px solid var(--line); font-size: 10.5px; letter-spacing: .14em; line-height: 1.9; text-transform: uppercase; color: var(--faint); }
.sheet-rows dd { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px 10px 14px; font-size: 14px; }
.sheet-rows dd .tag { font-size: 9.5px; }
.sheet-split { display: flex; height: 10px; margin: 0 18px; border: 1px solid var(--border-strong); }
.sheet-split span { width: var(--w, 0%); transition: width .25s var(--ease); }
.sheet-split .s-keep { background: var(--ink); }
.sheet-split .s-buyback { background: var(--accent); }
.sheet-split .s-treasury { background: var(--hatch); }
.sheet-split.is-holders .s-keep { background: var(--ink); }
.sheet-keys { display: flex; flex-wrap: wrap; gap: 4px 14px; padding: 10px 18px 0; font-size: 12px; color: var(--muted); }
.sheet-keys i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; vertical-align: -1px; border: 1px solid var(--border-strong); }
.sheet-keys .k-keep { background: var(--ink); }
.sheet-keys .k-buyback { background: var(--accent); }
.sheet-keys .k-treasury { background: var(--hatch); }
.sheet-line { padding: 16px 18px 18px; }
.sheet-line .label { margin-bottom: 6px; font-size: 10.5px; font-weight: 400; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.sheet-quote { font-size: 12.5px; line-height: 1.6; color: var(--ink); overflow-wrap: anywhere; }
.sheet-day { display: grid; gap: 10px; padding: 16px 18px 18px; border-top: 1px dashed var(--border); }
.sheet-day .field-top { align-items: center; }
.sheet-day label { font-size: 13px; font-weight: 500; }
.sheet-day .input { width: 120px; min-height: 36px; padding: 6px 12px; font-size: 14px; }
.sheet-day p { font-size: 13px; line-height: 1.55; color: var(--muted); }
.sheet-day strong { color: var(--ink); font-weight: 500; }
.sheet-actions { display: grid; gap: 10px; }
.sheet-actions-row { display: flex; gap: 8px; }
.sheet-actions-row .btn { flex: 1; }

.split { display: grid; gap: 14px; }
.split-keep { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.split-keep strong { font-family: var(--font-mono); font-size: 13px; font-weight: 400; color: var(--ink); }
.plan-off .plan-body { opacity: .4; pointer-events: none; }
.plan-off-note { padding: 12px 14px; border: 1px dashed var(--border-strong); border-radius: 12px; font-size: 13px; color: var(--muted); }
.plan-off-note[hidden] { display: none; }
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--panel); cursor: pointer; }
.switch-text { display: grid; gap: 2px; }
.switch-text strong { font-size: 14px; font-weight: 600; }
.switch-text span { font-size: 12.5px; color: var(--muted); }
.switch input {
  -webkit-appearance: none; appearance: none; position: relative; flex-shrink: 0; width: 42px; height: 24px; margin: 0;
  border: 1px solid var(--border-strong); border-radius: 999px; background: transparent; cursor: pointer;
  transition: background-color .15s;
}
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .2s var(--ease), background-color .15s; }
.switch input:checked { background: var(--ink); border-color: var(--ink); }
.switch input:checked::after { transform: translateX(18px); background: var(--bg-elev); }
.switch input:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 3px; }
.design-sim { padding-top: 96px; }
.design-sim .section-head { margin-bottom: 32px; }

/* ---------- Inner pages: explore, docs, legal, token, 404 ---------- */
.page-head--row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }

.xbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 20px; }
.xbar-end { display: flex; align-items: center; gap: 14px; }
.xsearch { width: 260px; min-height: 40px; padding: 8px 16px; border-radius: 999px; font-size: 14px; }
.xtable { width: 100%; border-collapse: collapse; }
.xtable th { padding: 0 0 12px 16px; font-size: 11px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); text-align: right; white-space: nowrap; }
.xtable td { padding: 14px 0 14px 16px; border-top: 1px solid var(--line); font-size: 14px; text-align: right; white-space: nowrap; }
.xtable th:first-child, .xtable td:first-child { padding-left: 0; text-align: left; }
.xtable td:first-child { width: 100%; max-width: 0; } /* the coin column takes the leftover width; long names truncate */
.xtable tbody tr:last-child td { border-bottom: 1px solid var(--line); }
.x-coin { display: flex; align-items: center; gap: 14px; }
.x-img { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 11px; background: var(--surface-2); color: var(--muted); font-family: var(--font-hand); font-size: 24px; font-weight: 600; }
.x-id { display: grid; min-width: 0; }
.x-line { display: flex; min-width: 0; }
.x-name { min-width: 0; overflow: hidden; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
a.x-name:hover { text-decoration: underline; text-underline-offset: 3px; }
.x-sub { display: flex; align-items: center; gap: 8px; }
.x-sym { font-size: 12px; color: var(--muted); }
.x-tag { padding: 1px 7px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 10.5px; letter-spacing: .04em; }
.up { color: var(--success); }
.down { color: var(--danger); }
.x-empty { padding: 56px 0; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.x-empty[hidden] { display: none; }
.x-count { margin-top: 16px; font-size: 12px; color: var(--faint); }

.doc { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 80px; align-items: start; }
.doc-toc { position: sticky; top: 104px; display: grid; }
.doc-toc a { padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: none; transition: color .2s; }
.doc-toc a:hover { color: var(--ink); }
.prose { max-width: 42rem; }
.prose section { padding: 32px 0 40px; border-top: 1px solid var(--line); scroll-margin-top: 96px; }
.prose h2 { margin-bottom: 14px; font-family: var(--font-hand); font-size: 36px; font-weight: 600; line-height: 1.1; }
.prose p, .prose li { color: var(--muted); font-size: 15.5px; }
.prose p + p, .prose p + ul, .prose p + ol, .prose ul + p, .prose ol + p { margin-top: 14px; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 20px; }
.prose li::marker { color: var(--faint); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--faint); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; color: var(--ink); font-size: 15.5px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--font-mono); color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding-bottom: 16px; }

.ca { max-width: 640px; padding: 20px 20px 18px; border: 1px solid var(--border-strong); border-radius: 20px; background: var(--panel); }
.ca-label { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--faint); }
.ca-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.ca-addr { flex: 1; min-width: 0; font-size: 15px; overflow-wrap: anywhere; }
.ca-note { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.mint-copy:disabled { opacity: .35; pointer-events: none; }
.tlinks { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.tlinks .btn:not([href]) { opacity: .4; pointer-events: none; }
.tsec { padding-top: 96px; scroll-margin-top: 72px; }
.buy-steps { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.buy-steps li { padding: 28px 28px 0 0; }
.buy-steps li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.buy-steps .step-n { display: block; padding: 0; }
.buy-steps h3 { margin: 12px 0 6px; font-family: var(--font-hand); font-size: 32px; font-weight: 600; line-height: 1.1; }
.buy-steps p { font-size: 14.5px; color: var(--muted); }
.spec-more { margin-top: 20px; }

.nf { padding: 160px 0; }
.nf .hero-actions { margin-top: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .dials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dial:nth-child(3n) { border-right: 1px solid var(--border); }
  .dial:nth-child(2n) { border-right: 0; }
  .dial:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .dial:nth-last-child(-n+2) { border-bottom: 0; }
  .sim { grid-template-columns: minmax(0, 1fr); }
  .sim-controls { border-right: 0; border-bottom: 1px solid var(--border); }
}
@media (max-width: 900px) {
  .how-grid, .closing-inner { grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .how .section-head { position: static; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .doc-toc { position: static; display: flex; flex-wrap: wrap; gap: 0 20px; }
}
@media (max-width: 960px) {
  .launch-grid, .design-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .lside, .sheet-col { position: static; }
}
@media (max-width: 520px) {
  .launch-dialog { width: 100%; max-height: 92vh; }
}
@media (max-width: 760px) {
  .wrap { padding: 0 20px; }
  .nav { display: none; }
  .header-inner { height: 64px; gap: 8px; }
  .nav a[aria-current="page"]::after { display: none; }
  .hero { padding: 96px 0 72px; }
  .hero-orbit { top: -40px; right: -250px; width: 480px; transform: none; opacity: .55; }
  .hero-meta { margin-top: 56px; }
  .hero-orbit .arc, .hero-orbit .body { display: none; }
  .how, .closing { padding: 88px 0; }
  .blueprint, .sim-section { padding: 88px 0; }
  .dials { grid-template-columns: minmax(0, 1fr); }
  .dial, .dial:nth-child(3n), .dial:nth-child(2n) { border-right: 0; border-bottom: 1px solid var(--border); }
  .dial:nth-last-child(-n+2) { border-bottom: 1px solid var(--border); }
  .dial:last-child { border-bottom: 0; }
  .sim-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sim-stats div:nth-child(3) { border-left: 0; }
  .sim-stats div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .sim-controls, .flow { padding: 22px 20px; }
  .flow-row { grid-template-columns: minmax(0, 1fr) 96px; gap: 6px 12px; }
  .flow-bar { grid-column: 1 / -1; grid-row: 2; }
  .spec { padding-bottom: 88px; }
  .spec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spec-item:nth-child(3) { padding-left: 0; border-left: 0; }
  .spec-item:nth-child(n+3) { border-top: 1px solid var(--line); }
  .spec-item dd { font-size: 28px; }
  .launch { padding: 56px 0 88px; }
  .lf-grid2, .lf-grid3, .seg { grid-template-columns: minmax(0, 1fr); }
  .lf-token { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .drop { width: 104px; height: 104px; }
  .nav-toggle { display: grid; }
  .nav[popover]:popover-open {
    display: grid; gap: 2px; position: fixed; inset: 64px 12px auto; padding: 8px;
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: 0 24px 60px rgba(4, 14, 30, .5);
  }
  .nav[popover]:popover-open a { display: flex; align-items: center; min-height: 48px; padding: 0 14px; border-radius: 10px; color: var(--ink); font-size: 15px; }
  .nav[popover]:popover-open a:hover { background: var(--surface-2); }
  .nav[popover]:popover-open a[aria-current="page"] { background: var(--accent-soft); }
  .page { padding: 56px 0 88px; }
  .design-sim { padding-top: 64px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .fcol a { min-height: 44px; }
  .xbar-end { width: 100%; }
  .xbar-end [role="search"] { flex: 1; }
  .xsearch { width: 100%; }
  .xtable .c-age, .xtable .c-fees { display: none; }
  .x-coin { gap: 12px; }
  .x-img { width: 36px; height: 36px; font-size: 20px; }
  .tlinks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .buy-steps { grid-template-columns: minmax(0, 1fr); }
  .buy-steps li, .buy-steps li + li { padding: 24px 0; border-left: 0; border-top: 1px solid var(--line); }
  .tsec { padding-top: 72px; }
  .nf { padding: 96px 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rise, .hero-orbit, .wallet-dialog[open], .wd-biglogo.is-waiting { animation: none; }
  .lstep.is-active .lstep-icon::after { animation-duration: 2.4s; }
  .btn, .wd-row, .link-arrow span, .chip, .seg-body, .drop-face, .input, .flow-bar span, .sheet-split span, .switch input::after { transition: none; }
}
