@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(fonts/inter.woff2) format('woff2');
}

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

/* ------------------------------------------------------------------
   Design tokens — mirror of shop.ledger.com
   ------------------------------------------------------------------ */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-elev: #ffffff;
  --text: #000000;
  --text-soft: #4d4d4d;
  --muted: #767676;
  --border: #e8e8e8;
  --border-strong: #d5d5d5;
  --chip-bg: #f1f1f1;

  --btn-bg: #000000;
  --btn-text: #ffffff;
  --btn-bg-hover: #272727;

  --accent: #6a3794;
  --accent-soft: #f6ecff;
  --accent-deep: #4f2a6e;

  --green: #47883a;
  --green-soft: #f4fbf2;
  --red: #c24244;
  --red-soft: #fef1f1;
  --amber: #9b6109;

  --radius: 20px;
  --radius-sm: 12px;
  --radius-xs: 8px;
  --pill: 999px;

  --shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 12px 32px -20px rgba(0, 0, 0, .18);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .05), 0 22px 50px -24px rgba(0, 0, 0, .3);
}

body[data-theme="dark"],
body[data-theme="light"] {
  --bg: #ffffff;
  --bg-soft: #f7f7f7;
  --bg-elev: #ffffff;
  --text: #000000;
  --text-soft: #4d4d4d;
  --muted: #767676;
  --border: #e8e8e8;
  --border-strong: #d5d5d5;
  --chip-bg: #f1f1f1;
  --btn-bg: #000000;
  --btn-text: #ffffff;
  --btn-bg-hover: #272727;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  padding-bottom: 46px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

.container { width: 100%; max-width: 1216px; margin: 0 auto; padding: 0 32px; }
.container--narrow { max-width: 720px; }
.container--mid { max-width: 920px; }

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky; top: 0; z-index: 110;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 26px; width: auto; display: block; flex: 0 0 auto; }
.brand .app-tag {
  font-size: 11px; font-weight: 600; letter-spacing: .01em;
  padding: 3px 8px; border-radius: var(--pill);
  background: var(--chip-bg); color: var(--text-soft);
  transform: translateY(1px);
}
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.chip-lock {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 500; color: var(--text-soft);
  padding: 6px 12px; border-radius: var(--pill);
  border: 1px solid var(--border-strong); background: transparent;
  white-space: nowrap;
}
.chip-lock svg { color: var(--green); }

.ver-chip {
  font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  border: 1px solid var(--border); border-radius: var(--pill);
  padding: 5px 10px; white-space: nowrap;
}

/* language */
.lang-dd { position: relative; }
.lang-dd summary {
  list-style: none; display: flex; align-items: center; gap: 5px;
  font-size: 12px; font-weight: 600; color: var(--text-soft);
  cursor: pointer; padding: 6px 11px; border-radius: var(--pill);
  border: 1px solid var(--border-strong);
}
.lang-dd summary::-webkit-details-marker { display: none; }
.lang-dd[open] summary, .lang-dd summary:hover { background: var(--chip-bg); color: var(--text); }
.lang-dd .menu {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 120;
  background: var(--bg-elev); border: 1px solid var(--border-strong);
  border-radius: 14px; padding: 5px; min-width: 168px; box-shadow: var(--shadow-lift);
}
.lang-dd .menu button {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 8px;
  background: none; border: 0; color: var(--text-soft); font: inherit; font-size: 13.5px;
  padding: 9px 11px; border-radius: 9px; cursor: pointer; text-align: left;
}
.lang-dd .menu button:hover { background: var(--bg-soft); color: var(--text); }
.lang-dd .menu button.is-on { color: var(--text); font-weight: 600; }
.lang-dd .menu button .tick { opacity: 0; color: var(--green); }
.lang-dd .menu button.is-on .tick { opacity: 1; }

/* language banner */
.lang-banner {
  background: var(--accent-soft);
  border-bottom: 1px solid #eed9ff;
  font-size: 13.5px; color: var(--text-soft);
  position: relative; z-index: 2;
}
.lang-banner .inner { display: flex; align-items: center; gap: 12px; padding: 11px 0; }
.lang-banner p { margin: 0; flex: 1; }
.lang-banner a {
  color: var(--accent-deep); font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px; white-space: nowrap;
}
.lang-banner .x {
  background: none; border: 0; color: var(--muted); font-size: 18px;
  cursor: pointer; line-height: 1; padding: 0 2px;
}
.lang-banner .x:hover { color: var(--text); }
.lang-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  color: var(--accent-deep); border: 1px solid #ddb3ff;
  border-radius: var(--pill); padding: 2px 8px;
}

/* ------------------------------------------------------------------
   Buttons
   ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 1px solid transparent; border-radius: var(--pill);
  padding: 12px 22px; font-size: 14px; font-weight: 500;
  cursor: pointer; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .1s, box-shadow .2s;
}
.btn:active { transform: translateY(1px); }
.btn--block { width: 100%; }
.btn--primary { background: var(--btn-bg); color: var(--btn-text); }
.btn--primary:hover { background: var(--btn-bg-hover); }
.btn--accent { background: var(--btn-bg); color: var(--btn-text); }
.btn--accent:hover { background: var(--btn-bg-hover); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--chip-bg); border-color: var(--muted); }
.btn--lg { padding: 16px 26px; font-size: 16px; }
.btn--sm { padding: 8px 14px; font-size: 12.5px; }
.btn[disabled] { opacity: .4; cursor: not-allowed; }
.btn--accent[disabled], .btn--primary[disabled] { background: var(--border); color: var(--muted); opacity: 1; }
.btn--accent .arrow { transition: transform .18s ease; }
.btn--accent:hover .arrow { transform: translateX(3px); }
.btn:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

/* inverted button (on black surfaces) */
.cta-card .btn--accent { background: #fff; color: #000; }
.cta-card .btn--accent:hover { background: #f1f1f1; }
.cta-card .btn--accent[disabled] { background: rgba(255,255,255,.25); color: rgba(0,0,0,.55); }

/* ------------------------------------------------------------------
   Steps
   ------------------------------------------------------------------ */
.steps { border-bottom: 1px solid var(--border); background: var(--bg); font-size: 13px; }
.steps-inner {
  display: flex; align-items: center; flex-wrap: nowrap; gap: 8px;
  padding: 12px 0; overflow-x: auto; scrollbar-width: none;
}
.steps-inner::-webkit-scrollbar { display: none; }
.step { display: flex; align-items: center; gap: 7px; color: var(--muted); white-space: nowrap; flex: 0 0 auto; }
.step .num {
  width: 20px; height: 20px; border-radius: var(--pill);
  display: grid; place-items: center; font-size: 11px; font-weight: 600;
  border: 1px solid var(--border-strong);
}
.step-sep { color: var(--border-strong); flex: 0 0 auto; }
.step.is-done { color: var(--text-soft); }
.step.is-done .num { background: var(--green); border-color: var(--green); color: #fff; }
.step.is-active { color: var(--text); font-weight: 600; }
.step.is-active .num { background: #000; border-color: #000; color: #fff; }

/* ------------------------------------------------------------------
   Type
   ------------------------------------------------------------------ */
.crumbs { display: flex; gap: 8px; font-size: 12.5px; color: var(--muted); padding: 24px 0 0; flex-wrap: wrap; }
.crumbs .sep { opacity: .6; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--accent);
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

h1 { font-size: 48px; line-height: 1.06; letter-spacing: -1.5px; font-weight: 600; margin: 16px 0 0; }
h1.sm { font-size: 32px; letter-spacing: -1px; }
h2 { font-size: 28px; line-height: 1.15; letter-spacing: -1px; font-weight: 600; margin: 0 0 10px; }
h3 { font-size: 18px; line-height: 1.3; letter-spacing: -.2px; font-weight: 600; margin: 0 0 8px; }
p { margin: 0 0 16px; }
.lead { font-size: 18px; line-height: 1.5; color: var(--text-soft); max-width: 62ch; letter-spacing: -.1px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.center { text-align: center; }
.rule { height: 1px; background: var(--border); border: 0; margin: 32px 0; }

p code, .callout code {
  font-family: var(--mono); font-size: .88em;
  background: var(--chip-bg); border-radius: 6px;
  padding: 1px 6px; color: var(--text); white-space: nowrap;
}

/* ------------------------------------------------------------------
   Surfaces
   ------------------------------------------------------------------ */
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
}
.card--flat { background: var(--bg-soft); border-color: transparent; }

.callout {
  border-left: 3px solid var(--accent);
  background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 20px; font-size: 14.5px; color: var(--text-soft);
}
.callout strong { color: var(--text); }

.symptom-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.symptom-list li { display: flex; gap: 12px; font-size: 15px; color: var(--text-soft); }
.symptom-list li::before {
  content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-strong); margin-top: 9px;
}

/* ------------------------------------------------------------------
   Landing
   ------------------------------------------------------------------ */
.landing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; padding: 40px 0 88px; }

.cta-card {
  border-radius: var(--radius); padding: 30px;
  background: #000; color: #fff;
  box-shadow: var(--shadow-lift);
}
.cta-card h3 { color: #fff; }
.cta-card .small { color: rgba(255, 255, 255, .68); }
.cta-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cta-time {
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: #fff; background: rgba(255, 255, 255, .14);
  padding: 5px 11px; border-radius: var(--pill); white-space: nowrap;
}
.cta-card .btn--lg { font-size: 16px; margin-top: 18px; }
.cta-meta { display: flex; gap: 8px 18px; margin-top: 16px; flex-wrap: wrap; }
.cta-meta span {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: rgba(255, 255, 255, .62);
}
.ic { width: 14px; height: 14px; flex: 0 0 auto; opacity: .85; }

.affected {
  display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center;
  margin-top: 22px; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--bg-soft); font-size: 13px; color: var(--text-soft);
}
.affected code { font-family: var(--mono); font-size: 12.5px; color: var(--text); }
.affected .tag {
  font-weight: 700; font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--amber);
}
.affected .fixed { color: var(--green); font-weight: 600; }

.verified { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.verified svg { color: var(--green); flex: 0 0 auto; }

.aside-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.aside-card .top {
  padding: 14px 18px; font-size: 11px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border);
}
.aside-card ul { list-style: none; margin: 0; padding: 6px 0; }
.aside-card li { padding: 9px 18px; font-size: 13.5px; color: var(--text-soft); }

.helpful { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--muted); margin-top: 24px; }
.helpful .thanks { color: var(--green); font-weight: 600; }

.device-render {
  border-radius: var(--radius); overflow: hidden; background: var(--bg-soft);
  border: 1px solid var(--border);
}
.device-render img { width: 100%; }

.shot { margin: 26px 0 10px; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.shot img { width: 100%; }
.shot figcaption {
  font-size: 12.5px; color: var(--muted); padding: 10px 14px;
  border-top: 1px solid var(--border); background: var(--bg-soft);
}

.viewers { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }
.viewers .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }

/* ------------------------------------------------------------------
   Console shell
   ------------------------------------------------------------------ */
.shell { display: flex; flex: 1; align-items: flex-start; }
.rail {
  position: sticky; top: 64px; height: calc(100vh - 64px); width: 68px; flex: 0 0 68px;
  border-right: 1px solid var(--border); background: var(--bg);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 0 18px;
}
.rail .ricon { width: 40px; height: 40px; border-radius: var(--radius-xs); display: grid; place-items: center; color: var(--muted); }
.rail .ricon.is-on { background: var(--chip-bg); color: var(--text); }
.rail .rail-sep { flex: 1; }
.rail .rail-dev { width: 7px; height: 7px; border-radius: 50%; background: var(--red); margin-bottom: 8px; }
.rail .rail-ver { font-size: 9.5px; color: var(--muted); writing-mode: vertical-rl; font-family: var(--mono); letter-spacing: .06em; }

.console { min-height: 100vh; display: flex; flex-direction: column; }
.console-main {
  flex: 1; display: flex; flex-direction: column; align-items: center;
  padding: 40px 32px 96px; background: var(--bg-soft);
}
.dev-banner {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; color: var(--text-soft);
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--pill); padding: 7px 14px; margin-bottom: 18px;
}
.dev-banner .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.dev-banner code { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.console-card {
  width: 100%; max-width: 640px; background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.console-card--wide { max-width: 800px; }
.console-card.center { text-align: center; }

.line-progress { height: 4px; background: var(--bg-soft); border-radius: var(--pill); overflow: hidden; }
.line-progress > i { display: block; height: 100%; width: 0; background: #000; border-radius: var(--pill); transition: width .35s ease; }

.check-row {
  display: flex; align-items: center; gap: 12px; padding: 14px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 14.5px; background: var(--bg); transition: border-color .2s, background .2s;
}
.check-row + .check-row { margin-top: 8px; }
.check-row .label { flex: 1; color: var(--text-soft); min-width: 0; }
.check-row .status { font-size: 12px; font-weight: 500; color: var(--muted); font-family: var(--mono); }
.check-row .mark { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; }
.check-row.is-run { border-color: var(--text); }
.check-row.is-run .label { color: var(--text); }
.check-row.is-ok .mark, .check-row.is-ok .status { color: var(--green); }
.check-row.is-fail { border-color: #fec8c9; background: var(--red-soft); }
.check-row.is-fail .mark, .check-row.is-fail .status { color: var(--red); }
.check-row.is-fail .label { color: var(--text); }

.spinner {
  width: 15px; height: 15px; border-radius: 50%;
  border: 2px solid var(--border-strong); border-top-color: #000;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.err-box {
  margin-top: 20px; border: 1px solid #fec8c9; background: var(--red-soft);
  border-radius: var(--radius-sm); padding: 16px 18px; font-size: 13.5px; color: var(--text-soft);
}
.err-box code { font-family: var(--mono); font-size: 12px; color: var(--red); background: #fee1e2; padding: 2px 6px; border-radius: 5px; }
.err-box strong { color: var(--text); display: block; margin-bottom: 6px; font-weight: 600; }
.err-box .log {
  margin: 12px 0 0; padding: 12px 14px; background: #fff; border: 1px solid #fec8c9;
  border-radius: var(--radius-xs); font-family: var(--mono); font-size: 11.5px;
  line-height: 1.7; color: var(--text-soft); white-space: pre-wrap; overflow-x: auto;
}

/* tiles */
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tile {
  position: relative; display: block; text-align: left;
  border: 1px solid var(--border-strong); background: var(--bg);
  border-radius: var(--radius-sm); padding: 22px; cursor: pointer;
  transition: border-color .15s, background .15s, box-shadow .2s;
}
.tile:hover { border-color: #000; box-shadow: var(--shadow); }
.tile.is-primary { border-color: #000; background: #000; color: #fff; }
.tile.is-primary p { color: rgba(255, 255, 255, .66); }
.tile .ico {
  width: 38px; height: 38px; border-radius: var(--radius-xs);
  display: grid; place-items: center; background: var(--chip-bg); color: var(--text);
  margin-bottom: 16px;
}
.tile.is-primary .ico { background: rgba(255, 255, 255, .14); color: #fff; }
.tile h3 { font-size: 15.5px; margin-bottom: 5px; }
.tile p { font-size: 13.5px; color: var(--muted); margin: 0; }
.tile .badge {
  position: absolute; top: 16px; right: 16px;
  font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase;
  color: #000; background: #fff; padding: 4px 9px; border-radius: var(--pill);
}

.obj-list { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.obj { background: var(--bg); padding: 13px 16px; font-size: 13.5px; }
.obj b { display: block; color: var(--text); font-weight: 600; margin-bottom: 3px; }
.obj span { color: var(--muted); }
.obj-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.obj-link:hover { color: var(--accent-deep); }

/* ------------------------------------------------------------------
   Seed input
   ------------------------------------------------------------------ */
.seed-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.seg { display: inline-flex; background: var(--chip-bg); border-radius: var(--pill); padding: 3px; }
.seg button {
  border: 0; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--pill); cursor: pointer;
}
.seg button.is-on { background: #000; color: #fff; }

.phrase-wrap { position: relative; }
.seed-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.seed-cell {
  display: flex; align-items: center; gap: 9px;
  border: 1px solid var(--border-strong); background: var(--bg);
  border-radius: var(--radius-xs); padding: 0 12px; height: 44px;
  transition: border-color .12s, box-shadow .12s;
}
.seed-cell:focus-within { border-color: #000; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.seed-cell .idx { font-size: 11px; font-family: var(--mono); color: var(--muted); width: 14px; text-align: right; user-select: none; }
.seed-cell input {
  border: 0; background: transparent; outline: 0; width: 100%; min-width: 0;
  font-family: var(--mono); font-size: 13.5px; color: var(--text);
}
.seed-cell input:focus-visible { outline: none; }
.seed-cell.is-bad { border-color: var(--red); animation: shake .32s; }
@keyframes shake { 0%,100%{transform:translateX(0)} 25%{transform:translateX(-3px)} 75%{transform:translateX(3px)} }

.suggest {
  position: absolute; z-index: 40; min-width: 130px;
  background: var(--bg); border: 1px solid var(--border-strong);
  border-radius: var(--radius-xs); padding: 4px; box-shadow: var(--shadow-lift); display: none;
}
.suggest button {
  display: block; width: 100%; text-align: left;
  border: 0; background: transparent; color: var(--text-soft);
  font-family: var(--mono); font-size: 13px; padding: 7px 10px; border-radius: 6px; cursor: pointer;
}
.suggest button:hover, .suggest button.is-sel { background: var(--chip-bg); color: var(--text); }

.pass-row { display: flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 13.5px; color: var(--text-soft); cursor: pointer; user-select: none; }
.pass-row input[type="checkbox"] {
  appearance: none; -webkit-appearance: none; flex: 0 0 auto;
  width: 18px; height: 18px; border: 1.5px solid var(--border-strong);
  border-radius: 5px; background: #fff; display: grid; place-items: center; cursor: pointer;
}
.pass-row input[type="checkbox"]:checked { background: #000; border-color: #000; }
.pass-row input[type="checkbox"]::after {
  content: ""; width: 10px; height: 10px; background: #fff; opacity: 0;
  clip-path: polygon(14% 46%, 0 62%, 40% 100%, 100% 22%, 86% 8%, 39% 72%);
}
.pass-row input[type="checkbox"]:checked::after { opacity: 1; }
.pass-field { margin-top: 10px; }

.derived {
  margin-top: 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-xs);
  padding: 13px 15px; font-size: 12.5px; color: var(--muted);
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.derived code { font-family: var(--mono); color: var(--text); font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.derived .ok { color: var(--green); font-weight: 600; white-space: nowrap; }
.derived .copy {
  border: 1px solid var(--border-strong); background: #fff; color: var(--text-soft);
  font-size: 11px; font-weight: 600; padding: 5px 10px; border-radius: var(--pill); cursor: pointer; white-space: nowrap;
}
.derived .copy:hover { background: var(--chip-bg); }

.word-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; color: var(--muted); margin: 18px 0; }

.draft { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); margin-top: 14px; }
.draft button { background: none; border: 0; color: var(--text); text-decoration: underline; cursor: pointer; font-size: 12.5px; padding: 0; }

/* ------------------------------------------------------------------
   Result screen
   ------------------------------------------------------------------ */
.wallet-card { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.wallet-top { padding: 18px 22px; background: var(--bg-soft); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; }
.wallet-avatar { width: 40px; height: 40px; border-radius: var(--radius-xs); background: #000; display: grid; place-items: center; color: #fff; font-weight: 600; }
.wallet-bal { padding: 24px 22px; }
.wallet-bal .amount { font-size: 40px; font-weight: 600; letter-spacing: -1.5px; line-height: 1.1; }
.wallet-bal .fiat { color: var(--muted); font-size: 13px; margin-top: 4px; }

.asset { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--border); font-size: 14.5px; }
.asset .coin { width: 30px; height: 30px; border-radius: 50%; flex: 0 0 30px; }
.asset svg.coin { flex: 0 0 30px; }
.asset .name { flex: 1; }
.asset .name small { display: block; color: var(--muted); font-size: 11.5px; }
.asset .val { text-align: right; font-variant-numeric: tabular-nums; }
.asset .val small { display: block; color: var(--muted); font-size: 11.5px; }
.asset-total { border-top: 1px solid var(--border); padding: 14px 22px; display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); background: var(--bg-soft); }

.stamp { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--green); }

.stage-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 14px; font-size: 14.5px; }
.stage-list li { display: flex; align-items: center; gap: 12px; color: var(--muted); transition: color .2s; }
.stage-list li.is-on { color: var(--text); }
.stage-list li .tick { color: var(--green); opacity: 0; transition: opacity .2s; }
.stage-list li.is-done { color: var(--text-soft); }
.stage-list li.is-done .tick { opacity: 1; }
.stage-list li.is-done .spinner { display: none; }

.big-spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: #000;
  animation: spin .9s linear infinite; margin-bottom: 26px;
}

/* ------------------------------------------------------------------
   Reviews
   ------------------------------------------------------------------ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.quote { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; font-size: 13.5px; background: var(--bg); }
.quote p { color: var(--text-soft); margin: 0 0 14px; }
.quote .who { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.quote .who .av { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; flex: 0 0 auto; background: var(--chip-bg); }
.quote .who .av img { width: 100%; height: 100%; object-fit: cover; }
.quote .who .meta { display: block; font-size: 11px; color: var(--muted); margin-top: 1px; }
.stars { display: flex; gap: 2px; align-items: center; margin-bottom: 10px; }
.stars svg { width: 12px; height: 12px; fill: #f5a623; }
.stars svg.is-dim { fill: none; stroke: #f5a623; stroke-width: 1.6; }

/* ------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------ */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); padding: 36px 0 40px; font-size: 13px; color: var(--muted); }
.footer-top { display: flex; align-items: flex-start; gap: 28px; flex-wrap: wrap; }
.footer-top .brand img { height: 22px; }
.footer-desc { max-width: 44ch; margin: 0; line-height: 1.55; }
.footer-meta { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.footer-meta span {
  font-size: 11px; font-weight: 600; padding: 5px 11px;
  border: 1px solid var(--border-strong); border-radius: var(--pill);
  color: var(--text-soft); white-space: nowrap;
}
.footer-note {
  border-top: 1px solid var(--border); margin-top: 26px; padding-top: 20px;
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px;
}
.footer-note p { margin: 0; }
.footer-note .disclaimer { max-width: 64ch; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 12px; }
.footer-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.footer-links a:hover { color: var(--text); }

/* ------------------------------------------------------------------
   Legal
   ------------------------------------------------------------------ */
.legal { padding: 48px 0 88px; }
.legal h1 { font-size: 40px; }
.legal h2 { font-size: 20px; margin-top: 36px; }
.legal p, .legal li { font-size: 15px; color: var(--text-soft); }
.legal ul { padding-left: 20px; }
.legal li { margin: 8px 0; }
.legal .meta-line { font-size: 13px; color: var(--muted); margin-top: 12px; }
.legal a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal code { font-family: var(--mono); font-size: 13px; background: var(--chip-bg); padding: 1px 6px; border-radius: 5px; }

/* ------------------------------------------------------------------
   Misc
   ------------------------------------------------------------------ */
.mock-chip {
  display: inline-flex; margin: 20px 32px 8px;
  font-size: 11.5px; font-weight: 500; padding: 6px 12px; border-radius: var(--pill);
  background: var(--chip-bg); color: var(--text-soft);
}

/* ------------------------------------------------------------------
   Utilities
   ------------------------------------------------------------------ */
.row { display: flex; align-items: center; gap: 10px; }
.between { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.hide { display: none !important; }
.stack-14 > * + * { margin-top: 14px; }
.mt-8 { margin-top: 8px; } .mt-14 { margin-top: 14px; }
.mt-22 { margin-top: 22px; } .mt-30 { margin-top: 30px; }
#transfer { scroll-margin-top: 110px; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 4px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------
   Sticky CTA
   ------------------------------------------------------------------ */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 80;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(16px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform .28s ease;
  padding: 12px 0;
}
.sticky-cta.is-on { transform: translateY(0); }
.sticky-inner {
  display: flex; align-items: center; gap: 16px; justify-content: space-between;
  max-width: 1216px; margin: 0 auto; padding: 0 32px;
}
.sticky-text { min-width: 0; }
.sticky-text strong { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-text span { font-size: 12px; color: var(--muted); }
.sticky-cta .btn { flex: 0 0 auto; }
.has-sticky { padding-bottom: 104px; }

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .rail { display: none; }
  .landing-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
  .container { padding: 0 24px; }
}
@media (max-width: 900px) {
  .landing-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 28px; }
  aside { min-width: 0; }
  .aside-card { margin-top: 0 !important; }
  .quotes { grid-template-columns: 1fr; }
  h1 { font-size: 38px; letter-spacing: -1.2px; }
  h2 { font-size: 24px; }
}
@media (max-width: 620px) {
  .container { padding: 0 20px; }
  .brand .app-tag, .ver-chip { display: none; }
  .header-inner { height: 58px; gap: 14px; }
  .tiles { grid-template-columns: 1fr; }
  .seed-grid { grid-template-columns: repeat(2, 1fr); }
  .console-card { padding: 26px 20px; border-radius: 16px; }
  .console-main { padding: 26px 16px 76px; }
  h1 { font-size: 30px; letter-spacing: -1px; }
  h1.sm { font-size: 26px; }
  .lead { font-size: 16.5px; }
  .cta-card { padding: 22px; }
  .seed-cell { height: 48px; }
  .seed-cell input, #dest, #amt { font-size: 16px; }
  .sticky-text span { display: none; }
  .sticky-inner { padding: 0 16px; }
  .wallet-bal .amount { font-size: 34px; }
  .asset { padding: 12px 18px; }
  .wallet-bal, .asset-total { padding-left: 18px; padding-right: 18px; }
  .footer-meta { margin-left: 0; }
  .mock-chip { margin-left: 20px; }
}
@media (max-width: 460px) {
  .seed-grid { grid-template-columns: 1fr; }
  .lang-dd summary { padding: 6px 9px; }
  .crumbs { font-size: 12px; }
  .cta-meta { gap: 8px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

.mock-chip { align-self: flex-start; }

/* rail icons react to pointer */
.rail .ricon { cursor: pointer; transition: background .15s, color .15s; }
.rail .ricon:hover { background: var(--chip-bg); color: var(--text); }
.rail .ricon.is-on:hover { background: #e3e3e3; }

.ref-source{display:block;margin-top:10px;font-size:11px;letter-spacing:.02em;color:var(--muted);max-width:66ch}
.ref-source:empty{display:none}
