/* Don't Ask Again UI kit 1.1.1 (agent-wallet-data/ui-kit/dontaskagain-ui-kit-1.1.1): warm cream shell, graphite
   actions, soft yellow wallet. Rounded corners, soft shadows, Manrope for the interface, JetBrains Mono for addresses,
   amounts and commands. The mascot lives in the shell (hero, how it works, 404, access form states); the signing
   window shows only the strict transaction data with the small "waiting" mark in its title bar.
   Tokens: kit tokens/tokens.css (same names, both themes); components follow kit components/ui.css and SPEC.md. */
@font-face { font-family: "Manrope"; src: url(fonts/Manrope-latin.woff2?v=7907051969) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0020-00FF, U+2000-206F, U+20AC, U+2116, U+2190, U+2192, U+2212, U+2264-2265; }
@font-face { font-family: "Manrope"; src: url(fonts/Manrope-cyrillic.woff2?v=eb9731119f) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F; }
@font-face { font-family: "JetBrainsMono"; src: url(fonts/JetBrainsMono-latin.woff2?v=e8d8a5d553) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0020-00FF, U+2000-206F, U+20AC, U+2116, U+2190, U+2192, U+2212, U+2264-2265; }
@font-face { font-family: "JetBrainsMono"; src: url(fonts/JetBrainsMono-cyrillic.woff2?v=078877f3bb) format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap;
  unicode-range: U+0400-052F, U+2DE0-2DFF, U+A640-A69F; }

/* ---- tokens (kit tokens.css 1.1.1) ---- */
:root {
  color-scheme: light;
  --radius-sm: 8px; --radius: 14px; --radius-lg: 24px; --radius-pill: 999px;
  --font-sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrainsMono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --duration-fast: 100ms; --duration: 180ms; --easing: cubic-bezier(0.2,0,0,1);
  --focus-ring-width: 3px; --focus-ring-offset: 3px; --disabled-opacity: 0.55;
  --paper: #FAF7EF; --surface: #FFFFFF; --surface-2: #F2EEE5; --surface-3: #E9E3D7;
  --ink: #292936; --muted: #62616C; --subtle: #68646B; --line: #C9C3B7; --control-border: #81796F;
  --accent: #292936; --accent-hover: #414151; --accent-soft: #E9E7ED; --accent-fg: #FFFFFF;
  --pop: #FFD56A; --hero: #FFF1CB; --note: #EEE9DF; --brand: #FFD56A; --brand-ink: #292936;
  --success: #236346; --success-soft: #E4F2E8; --warning: #805000; --warning-soft: #FFF0D9;
  --danger: #B12B31; --danger-ink: #B12B31; --danger-fg: #FFFFFF; --danger-soft: #FBE8E8;
  --info: #225EB2; --info-soft: #E8EFFC;
  --energy: #B12B31; --energy-fg: #FFFFFF; --bandwidth: #225EB2; --bandwidth-fg: #FFFFFF;
  --inv: #252530; --inv-fg: #FAF7EF; --inv-pop: #FFD56A;
  --focus-ring: #225EB2; --focus-on-accent: #FFFFFF;
  --shadow-sm: 0 2px 4px rgba(41,41,54,0.05); --shadow: 0 6px 18px rgba(41,41,54,0.08); --shadow-lg: 0 16px 40px rgba(41,41,54,0.12);
  --address-mark-bg: #FFE18A; --address-mark-fg: #292936;
  /* site-only: the soft alternate band between sections */
  --band: #F5F1E8;
  --wrap: 1280px; --gutter: 40px;
}
/* dark theme: chosen in the header (data-theme, kept in localStorage) or, without JS, by the system setting */
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #19191F; --surface: #25252E; --surface-2: #30303B; --surface-3: #3B3B47;
  --ink: #F7F4EC; --muted: #C0BDC8; --subtle: #ABA7B6; --line: #565461; --control-border: #93909C;
  --accent: #414151; --accent-hover: #505064; --accent-soft: #363441; --accent-fg: #FFFFFF;
  --pop: #FFD56A; --hero: #332E23; --note: #30303B; --brand: #FFD56A; --brand-ink: #292936;
  --success: #8FD3AA; --success-soft: #213B2E; --warning: #F4B366; --warning-soft: #433222;
  --danger: #B12B31; --danger-ink: #FF9B9F; --danger-fg: #FFFFFF; --danger-soft: #46272D;
  --info: #A2C5FF; --info-soft: #25344E;
  --inv: #111116; --inv-fg: #F7F4EC; --inv-pop: #FFD56A;
  --focus-ring: #A2C5FF;
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.16); --shadow: 0 6px 18px rgba(0,0,0,0.24); --shadow-lg: 0 16px 40px rgba(0,0,0,0.32);
  --band: #1F1F26;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    color-scheme: dark;
    --paper: #19191F; --surface: #25252E; --surface-2: #30303B; --surface-3: #3B3B47;
    --ink: #F7F4EC; --muted: #C0BDC8; --subtle: #ABA7B6; --line: #565461; --control-border: #93909C;
    --accent: #414151; --accent-hover: #505064; --accent-soft: #363441; --accent-fg: #FFFFFF;
    --pop: #FFD56A; --hero: #332E23; --note: #30303B; --brand: #FFD56A; --brand-ink: #292936;
    --success: #8FD3AA; --success-soft: #213B2E; --warning: #F4B366; --warning-soft: #433222;
    --danger: #B12B31; --danger-ink: #FF9B9F; --danger-fg: #FFFFFF; --danger-soft: #46272D;
    --info: #A2C5FF; --info-soft: #25344E;
    --inv: #111116; --inv-fg: #F7F4EC; --inv-pop: #FFD56A;
    --focus-ring: #A2C5FF;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.16); --shadow: 0 6px 18px rgba(0,0,0,0.24); --shadow-lg: 0 16px 40px rgba(0,0,0,0.32);
    --band: #1F1F26;
  }
}
/* theme-specific pictures (the kit scenes have a light and a dark file) */
.th-dark { display: none; }
:root[data-theme="dark"] .th-dark { display: block; }
:root[data-theme="dark"] .th-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .th-dark { display: block; }
  :root:not([data-theme]) .th-light { display: none; }
}

/* ---- base ---- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; font-family: var(--font-sans); font-weight: 500; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--info); text-underline-offset: 4px; }
button, input, textarea { font: inherit; }
:where(button, a, input, textarea, summary, [tabindex]):focus-visible { outline: var(--focus-ring-width) solid var(--focus-ring); outline-offset: var(--focus-ring-offset); }
code, .mono { font-family: var(--font-mono); font-size: .88em; font-feature-settings: 'zero' 1, 'tnum' 1, 'liga' 0; }
p code, li code, td code { background: var(--surface-2); padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
h1, h2, h3, h4 { font-weight: 800; margin: 0; }
h1 { font-size: clamp(2.4rem, 4.4vw, 3.5rem); line-height: 1.12; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.5rem); line-height: 1.15; letter-spacing: -0.035em; }
h3 { font-size: 1.15rem; line-height: 1.4; letter-spacing: -0.02em; }
mark { background: var(--pop); color: var(--brand-ink); border-radius: 14px; padding: 0 .16em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.ico { width: 20px; height: 20px; flex: none; display: inline-block; vertical-align: middle; }
.ico.sm { width: 16px; height: 16px; }
.eyebrow { display: inline-block; padding: 5px 12px; border-radius: var(--radius-pill); background: var(--pop); color: var(--brand-ink); font-size: 12px; line-height: 18px; letter-spacing: .07em; font-weight: 800; text-transform: uppercase; margin-bottom: 18px; }
.eyebrow.red { background: var(--danger-soft); color: var(--danger-ink); }
.eyebrow.blue { background: var(--info-soft); color: var(--info); }
.lead { font-size: 1.125rem; line-height: 1.7; color: var(--muted); max-width: 44rem; margin: 16px 0 0; }
.soon { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--warning-soft); color: var(--warning); border-radius: var(--radius-pill); padding: 0 8px; line-height: 1.7; vertical-align: 1px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; border-radius: var(--radius-pill); padding: 3px 9px; font-size: 11px; font-weight: 700; line-height: 18px; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.badge.ok { background: var(--success-soft); color: var(--success); }
.badge.info { background: var(--info-soft); color: var(--info); }
.badge.bad { background: var(--danger-soft); color: var(--danger-ink); }
.badge.warn { background: var(--warning-soft); color: var(--warning); }

/* ---- header ---- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 20px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.04em; white-space: nowrap; }
.logo-mark { width: 44px; height: 44px; }
.top nav { display: flex; gap: 2px; margin-left: auto; }
.top nav a { color: var(--ink); text-decoration: none; font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: var(--radius-pill); transition: background var(--duration-fast) var(--easing); }
.top nav a:hover { background: var(--surface-2); }
.top nav a[aria-current="page"] { background: var(--surface-3); }
.top-tools { display: flex; align-items: center; gap: 8px; }
.lang, .theme-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 38px; color: var(--ink); background: var(--surface); border: 1px solid var(--control-border); border-radius: 12px; text-decoration: none; cursor: pointer; transition: background var(--duration-fast) var(--easing); }
.lang { padding: 0 12px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .02em; }
.theme-btn { width: 38px; padding: 0; }
.lang:hover, .theme-btn:hover { background: var(--surface-2); }
.lang .ico, .theme-btn .ico { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: block; }
:root[data-theme="dark"] .theme-btn .i-moon { display: none; }

/* ---- buttons (kit .btn: md 44+, radius 14, 800) ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 11px 20px; font: inherit; font-weight: 800; font-size: 15px; line-height: 22px; text-decoration: none; white-space: nowrap; cursor: pointer;
  color: var(--ink); background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--radius);
  transition: background var(--duration-fast) var(--easing), box-shadow var(--duration-fast) var(--easing), transform var(--duration-fast) var(--easing); }
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); box-shadow: inset 0 2px 3px rgba(0,0,0,.18); }
.btn.primary { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
:root[data-theme="dark"] .btn.primary { border-color: var(--control-border); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.pop { background: var(--pop); color: var(--brand-ink); border-color: var(--pop); }
.btn.pop:hover { filter: brightness(.96); }
.btn.sm { min-height: 36px; padding: 6px 12px; border-radius: var(--radius-sm); font-size: 13px; }
.btn.sm .ico { width: 16px; height: 16px; }
.btn[disabled] { opacity: var(--disabled-opacity); cursor: progress; transform: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ---- hero ---- */
.hero { padding: 56px 0 80px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero-mascot { width: 152px; height: 152px; margin: 0 0 8px -8px; }
.scene { width: 100%; height: auto; }
.hero h1 { margin-top: 2px; }
.hero h1 mark { line-height: 1.24; }
.hero .lead { margin-top: 22px; max-width: 36rem; }
/* The marked line stays on one row on wide screens, so the headline is sized by its own column (container units),
   never by the viewport alone: it can not run under the signing window at any width. */
.hero-copy { container-type: inline-size; }
@media (min-width: 761px) {
  .hero h1 mark { white-space: nowrap; }
  .hero h1 { font-size: min(clamp(2.4rem, 4.4vw, 3.5rem), 9.6cqi); }
  html[lang="ru"] .hero h1 { font-size: min(clamp(2.2rem, 4vw, 3.3rem), 8.6cqi); }
}
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.facts li { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; background: var(--success-soft); color: var(--success); border-radius: var(--radius-pill); padding: 5px 12px 5px 10px; }

/* ---- the signing window (kit components/signature-*.html) ---- */
.sig { background: var(--surface); border: 1px solid var(--line); border-radius: 28px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 520px; width: 100%; justify-self: end; font-size: 14px; line-height: 20px; }
.sig-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
.sig-mascot { width: 28px; height: 28px; }
.sig-app { font-size: 13px; font-weight: 800; }
.sig-top .badge { margin-left: auto; }
.sig-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; }
.sig-kicker { font-size: 11px; line-height: 16px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.sig-title { font-size: 22px; line-height: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: -8px; }
.plate { padding: 10px 12px; border-radius: var(--radius); border: 1px dashed var(--control-border); background: var(--surface-2); display: flex; align-items: center; gap: 10px; min-width: 0; }
.agent-avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: var(--hero); color: var(--ink); flex: none; }
.sig-cmd { font-family: var(--font-mono); font-size: 12px; line-height: 18px; font-feature-settings: 'zero' 1, 'tnum' 1, 'liga' 0; min-width: 0; overflow-wrap: anywhere; }
.quote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--control-border); background: var(--surface-2); border-radius: 0 10px 10px 0; }
.quote small { display: block; color: var(--muted); font-size: 11px; line-height: 16px; margin-bottom: 2px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.quote b { font-size: 15px; line-height: 22px; font-weight: 700; }
.data-block { padding: 2px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); margin: 0; }
.kv { display: grid; grid-template-columns: minmax(64px, .5fr) minmax(0, 1.5fr); gap: 10px; padding: 9px 0; align-items: baseline; border-bottom: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.kv:last-child { border-bottom: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; min-width: 0; font-family: var(--font-mono); font-size: 12.5px; font-feature-settings: 'zero' 1, 'tnum' 1, 'liga' 0; overflow-wrap: anywhere; }
.addr { white-space: nowrap; }
.address-edge { background: var(--address-mark-bg); color: var(--address-mark-fg); border-radius: 3px; padding-inline: 2px; font-weight: 700; }
.notice { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--radius); font-size: 13px; line-height: 20px; background: var(--info-soft); color: var(--info); border: 1px solid currentColor; font-weight: 600; }
.notice .ico { margin-top: 0; }
.sig-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.sig-actions .opt { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 10px 16px; border-radius: var(--radius); font-weight: 800; font-size: 15px; border: 2px solid var(--accent); background: var(--accent); color: var(--accent-fg); position: relative; }
:root[data-theme="dark"] .sig-actions .opt.yes { border-color: var(--control-border); }
.sig-actions .opt .k { position: absolute; left: 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; min-width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; background: var(--surface); color: var(--ink); }
.sig-actions .opt.yes .k { background: #FFFFFF; color: #292936; }
.sig-actions .opt.no { background: var(--surface); color: var(--danger-ink); border-color: var(--danger-ink); }
.sig-actions .opt.no .k { background: var(--danger-soft); color: var(--danger-ink); }
.sig-actions .opt.fake { border: 1px dashed var(--control-border); background: var(--surface-2); color: var(--muted); font-weight: 700; justify-content: flex-start; min-height: 44px; }
.sig-actions .opt.fake .t { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: var(--danger-ink); }
.sig-actions .opt .box { width: 20px; height: 20px; border: 1.5px solid var(--control-border); border-radius: 5px; background: var(--surface); position: relative; flex: none; }
.sig-actions .opt .box.off::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; margin-top: -1px; background: var(--danger-ink); transform: rotate(-45deg); border-radius: 2px; }
.fake-note { font-size: 13px; line-height: 19px; font-weight: 700; color: var(--ink); margin: 0 2px; text-align: center; }

/* ---- sections ---- */
section.band { padding: 88px 0; }
section.band.alt, section.band.sec { background: var(--band); }
.head { margin-bottom: 40px; max-width: 52rem; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; min-width: 0; }
.card h3 { margin-bottom: 8px; }
.card p { margin: 0; color: var(--muted); }
.step-n { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; background: var(--hero); color: var(--ink); border-radius: 14px; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.step-tag { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.how .card:nth-child(2) { background: var(--pop); border-color: var(--pop); }
.how .card:nth-child(2), .how .card:nth-child(2) p, .how .card:nth-child(2) .step-tag { color: var(--brand-ink); }
.how .card:nth-child(2) .step-tag { border-color: rgba(41,41,54,.25); }
.how .card:nth-child(2) .step-n { background: var(--surface); color: var(--brand-ink); }
:root[data-theme="dark"] .how .card:nth-child(2) .step-n { background: #FFFFFF; }
.how .card:nth-child(2) code { background: rgba(255,255,255,.55); border-color: rgba(41,41,54,.25); color: var(--brand-ink); }
.how-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; max-width: none; }
.how-mascot { width: 200px; flex: none; margin-bottom: -8px; }

/* ---- two halves: for agents | for people ---- */
.split-band { padding: 88px 0; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.half { border-radius: 28px; padding: 40px; border: 1px solid var(--line); min-width: 0; }
.half.agents { background: var(--surface); box-shadow: var(--shadow-sm); }
.half.people { background: var(--hero); border-color: transparent; }
.half h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.half .lead { font-size: 1.05rem; }
.items { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; }
.items li { border: 1px solid var(--line); background: var(--surface-2); padding: 14px 16px; border-radius: 16px; }
.half.people .items li { background: var(--surface); }
.items li b { display: block; font-size: 16px; margin-bottom: 2px; font-weight: 800; }
.items li span.d { color: var(--muted); font-size: 15px; }
.code { position: relative; margin-top: 28px; }
.code-label { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.code-label a { display: inline-flex; align-items: center; gap: 4px; text-transform: none; letter-spacing: 0; font-size: 14px; font-weight: 700; }
pre.cmd { margin: 0; background: var(--inv); color: var(--inv-fg); border-radius: 16px; padding: 18px 20px; font-family: var(--font-mono); font-size: 13px; line-height: 22px; white-space: pre-wrap; word-break: break-all; font-feature-settings: 'zero' 1, 'liga' 0; }
pre.cmd .v { color: var(--inv-pop); }
.tools { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 4px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tools td { border-top: 1px solid var(--line); padding: 8px 12px; vertical-align: top; }
.tools tr:first-child td { border-top: 0; }
.tools td:first-child { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; font-size: 13px; }
.tools td:last-child { color: var(--muted); }
.people .split-res { display: flex; gap: 10px; margin-top: 24px; }
.res { flex: 1; border-radius: 16px; background: var(--surface); padding: 12px 14px; min-width: 0; }
.res b { display: inline-block; font-size: 11px; line-height: 18px; text-transform: uppercase; letter-spacing: .07em; border-radius: var(--radius-pill); padding: 1px 9px; }
.res.e b { background: var(--energy); color: var(--energy-fg); }
.res.b b { background: var(--bandwidth); color: var(--bandwidth-fg); }
.res .bar { height: 8px; border-radius: 99px; margin-top: 10px; background: var(--surface-3); overflow: hidden; }
.res .bar i { display: block; height: 100%; width: 100%; border-radius: 99px; }
.res.e .bar i { background: var(--energy); }
.res.b .bar i { background: var(--bandwidth); }
.res small { display: block; font-family: var(--font-mono); font-size: 12px; margin-top: 8px; color: var(--muted); }

/* ---- security ---- */
.sec .card:first-child { background: var(--pop); border-color: var(--pop); }
.sec .card:first-child, .sec .card:first-child p { color: var(--brand-ink); }
.sec .card:first-child code { background: rgba(255,255,255,.55); border-color: rgba(41,41,54,.25); color: var(--brand-ink); }
.sec-list { margin-top: 24px; border: 2px solid var(--danger-ink); border-radius: var(--radius-lg); background: var(--surface); padding: 24px 28px; }
.sec-list h3 { margin-bottom: 12px; }
.sec-list ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 32px; }
.sec-list li { padding-left: 22px; position: relative; }
.sec-list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--danger-ink); }

/* ---- networks ---- */
.nets { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--surface); padding: 4px 24px; }
.net { display: grid; grid-template-columns: 220px 1fr 130px; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.net:first-child { border-top: 0; }
.net b { font-size: 18px; font-weight: 800; letter-spacing: -0.02em; }
.net .d { color: var(--muted); }
.net .st { justify-self: end; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.net .st.now { background: var(--success-soft); color: var(--success); }
.net .st.soon { background: var(--surface-2); color: var(--muted); }
.net.is-soon b { color: var(--muted); }

/* ---- install ---- */
.install { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.install .card { padding: 28px; }
.install .card h3 { font-size: 1.4rem; margin-bottom: 18px; }
.install ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 14px; }
.install ol li { counter-increment: s; padding-left: 40px; position: relative; color: var(--ink); }
.install ol li::before { content: counter(s); position: absolute; left: 0; top: 0; min-width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-weight: 800; font-size: 13px; }
.install .card .btn { margin-top: 24px; }
.install-note { margin-top: 24px; color: var(--muted); font-size: 15px; }

/* ---- faq ---- */
.faq { display: grid; gap: 10px; max-width: 920px; }
.faq details { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 800; font-size: 17px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border-radius: 18px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--surface-2); }
.faq-ico { transition: transform var(--duration) var(--easing); color: var(--muted); }
.faq details[open] summary .faq-ico { transform: rotate(90deg); }
.faq details[open] summary { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* ---- footer ---- */
footer { background: var(--inv); color: var(--inv-fg); padding: 48px 0 40px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-start; justify-content: space-between; }
footer a { color: var(--inv-pop); }
footer a .ico { margin-left: 3px; vertical-align: -2px; }
footer .f-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -0.03em; }
footer .f-brand img { width: 32px; height: 32px; }
footer .f-tag { opacity: .8; margin-top: 6px; }
footer .f-col { font-size: 15px; display: grid; gap: 6px; }
footer .f-col b { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
footer .f-legal { width: 100%; border-top: 1px solid rgba(247,244,236,.2); padding-top: 18px; font-size: 14px; opacity: .85; }

/* ---- why this wallet exists: three dead ends, then the third way ---- */
.why .card { position: relative; }
.why-x { position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; background: var(--danger-soft); color: var(--danger-ink); border-radius: 12px; }
.why .card h3 { padding-right: 44px; }
.why-now { display: flex; gap: 20px; align-items: flex-start; margin-top: 24px; background: var(--pop); color: var(--brand-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 28px; }
.why-now h3 { font-size: 1.45rem; margin-bottom: 6px; }
.why-now p { margin: 0; font-size: 1.08rem; }
.why-ok { flex: none; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--brand-ink); color: var(--pop); border-radius: 14px; }
.why-ok .ico { width: 24px; height: 24px; }
.why-story { display: flex; align-items: center; gap: 14px; margin-top: 16px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 14px 20px; transition: box-shadow var(--duration-fast) var(--easing), border-color var(--duration-fast) var(--easing); }
.why-story:hover { border-color: var(--control-border); box-shadow: var(--shadow); }
.why-story .eyebrow { margin: 0; flex: none; }
.why-story b { font-size: 1.12rem; letter-spacing: -0.02em; font-weight: 800; }
.why-story .arr { margin-left: auto; display: flex; }
.nets-more { margin-top: 20px; }

/* ---- story page ---- */
.story-hero .wrap { grid-template-columns: 1.25fr .75fr; }
.trap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.trap-bar { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding: 12px 16px; background: var(--paper); font-weight: 800; font-size: 14px; }
.trap-bar .ico { color: var(--danger-ink); }
.trap-body { padding: 4px 16px; }
.trap-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--font-mono); font-size: 13.5px; }
.trap-row:first-child { border-top: 0; }
.trap-row b { font-family: var(--font-sans); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.trap-row b.bad { background: var(--danger-soft); color: var(--danger-ink); }
.trap-row b.wait { background: var(--warning-soft); color: var(--warning); }
.story-cols { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.story-text p { margin: 0 0 14px; font-size: 1.08rem; }
.detour { border: 1px dashed var(--control-border); border-radius: 20px; background: var(--surface-2); padding: 18px 22px; margin: 6px 0 24px; }
.detour-h { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 10px; }
.detour ol { margin: 0; padding: 0; list-style: none; counter-reset: d; display: grid; gap: 8px; }
.detour li { counter-increment: d; padding-left: 36px; position: relative; color: var(--muted); text-decoration: line-through; text-decoration-color: var(--danger-ink); text-decoration-thickness: 2px; }
.detour li::before { content: counter(d); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--control-border); font-weight: 800; font-size: 12px; color: var(--ink); background: var(--surface); text-decoration: none; }
.wanted { margin: 0; background: var(--pop); color: var(--brand-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px 26px; font-size: 1.15rem; font-weight: 700; line-height: 1.5; }
.needs { border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--surface); padding: 4px 24px; }
.need { display: grid; grid-template-columns: 220px 1fr 200px; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); }
.need:first-child { border-top: 0; }
.need b { font-size: 18px; font-weight: 800; }
.need .d { color: var(--muted); }
.need .gas { justify-self: end; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; border-radius: var(--radius-pill); padding: 3px 10px; white-space: nowrap; }
.need .gas.no { background: var(--success-soft); color: var(--success); }
.need .gas.yes { background: var(--danger-soft); color: var(--danger-ink); }
.needs-note { margin: 24px 0 0; font-size: 1.12rem; font-weight: 800; }
.steps { display: grid; gap: 20px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.step-h { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.step-h .step-n { margin: 0; flex: none; }
.step-h h3 { font-size: 1.3rem; }
.bdr { display: grid; grid-template-columns: 1fr 1.3fr 1fr; }
.bdr .col { padding: 16px 20px; }
.bdr .col + .col { border-left: 1px solid var(--line); }
.bdr small { display: block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.bdr p { margin: 0; }
.bdr .was { background: var(--surface-2); }
.bdr .was small { color: var(--danger-ink); }
.bdr .was p { color: var(--muted); }
.bdr .did small { color: var(--info); }
.bdr .res { background: var(--success-soft); border-radius: 0; flex: none; }
.bdr .res small { color: var(--success); }
.bdr .res p { font-weight: 700; }
.ops-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); background: var(--surface); }
.ops { width: 100%; border-collapse: collapse; font-size: 15px; }
.ops th { text-align: left; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; background: var(--surface-2); color: var(--muted); padding: 12px 14px; }
.ops td { border-top: 1px solid var(--line); padding: 12px 14px; vertical-align: top; }
.ops td:first-child { font-weight: 800; white-space: nowrap; }
.ops td:nth-child(2) { color: var(--muted); }
.ops td:nth-child(3) { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; font-size: 14px; }
.ops td:nth-child(4) { font-family: var(--font-mono); font-size: 13.5px; }
.rough { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.rough .card { border: 2px solid var(--danger-ink); }
.sec .rough .card:first-child { background: var(--surface); border-color: var(--danger-ink); }
.sec .rough .card:first-child p { color: var(--muted); }
.sec .rough .card:first-child h3 { color: var(--ink); }
.story-two { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.tips { background: var(--pop); color: var(--brand-ink); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 26px 28px; }
.tips h3 { font-size: 1.4rem; margin-bottom: 12px; }
.tips ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.tips li { display: flex; gap: 10px; align-items: flex-start; }
.tips li .ico { margin-top: 3px; }
.tips .ctas { margin-top: 24px; }
.tips .btn:not(.primary) { background: #FFFFFF; color: #292936; border-color: rgba(41,41,54,.35); }
.story-hero .wrap > *, .story-cols > *, .story-two > *, .rough > * { min-width: 0; }

/* ---- access request ---- */
.access-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.access-grid > * { min-width: 0; }
.access-points { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 10px; }
.access-points li { padding-left: 28px; position: relative; }
.access-points li::before { content: ""; position: absolute; left: 3px; top: .38em; width: 6px; height: 11px; border: solid var(--success); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.access-card { box-shadow: var(--shadow-lg); border-radius: 28px; padding: 28px; }
.access-form { display: grid; gap: 16px; }
.access-contacts { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: end; }
.access-or { font-size: 13px; font-weight: 700; padding-bottom: 12px; color: var(--muted); }
.fld { display: grid; gap: 6px; min-width: 0; }
.fld > span { font-size: 13px; line-height: 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.fld small { font-family: var(--font-mono); font-weight: 600; color: var(--muted); }
.fld input, .fld textarea { font-size: 16px; line-height: 22px; color: var(--ink); background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px; width: 100%; min-width: 0; transition: border-color var(--duration-fast) var(--easing); }
.fld input:hover, .fld textarea:hover { border-color: var(--ink); }
.fld textarea { resize: vertical; min-height: 96px; }
.fld input::placeholder, .fld textarea::placeholder { color: var(--subtle); opacity: 1; }
.fld input:disabled, .fld textarea:disabled { background: var(--surface-3); color: var(--muted); }
.fld [aria-invalid="true"] { border: 2px solid var(--danger-ink); padding: 9px 11px; }
.access-consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 21px; color: var(--muted); cursor: pointer; }
.access-consent input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 20px; height: 20px; margin: 1px 0 0; border: 1.5px solid var(--control-border); background: var(--surface); border-radius: 5px; cursor: pointer; }
.access-consent input:checked { background: var(--accent); border-color: var(--accent); }
:root[data-theme="dark"] .access-consent input:checked { border-color: var(--control-border); }
.access-consent input:checked::before { content: ""; position: absolute; width: 6px; height: 10px; border: solid var(--accent-fg); border-width: 0 2px 2px 0; left: 5.5px; top: 2px; transform: rotate(45deg); }
.access-form .btn { justify-self: start; }
.access-progress { display: grid; gap: 6px; }
.access-progress .bar { height: 8px; border: 1px solid var(--control-border); border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.access-progress .bar i { display: block; height: 100%; width: 0; background: var(--ink); border-radius: 99px; transition: width .2s; }
.access-progress .t { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }
.access-alert { display: flex; align-items: center; gap: 12px; }
.access-err-mascot { width: 64px; height: 64px; flex: none; }
.access-status { margin: 0; min-height: 1.4em; font-weight: 700; font-size: 15px; }
.access-status.err { color: var(--danger-ink); }
.access-nojs { margin: 0; font-weight: 700; border-left: 3px solid var(--danger-ink); padding-left: 12px; }
.access-done { display: flex; gap: 18px; align-items: center; }
.access-done-mascot { width: 96px; height: 96px; flex: none; }
.access-done h3 { font-size: 1.45rem; margin-bottom: 6px; }
.access-done p { margin: 0; color: var(--ink); }

/* ---- roadmap: "Recently shipped" and "Next"; title and description are separate blocks ---- */
.roadmap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.roadmap > * { min-width: 0; }
.road-col h3 { font-size: 1.35rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.road-tag { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 10px; }
.road-tag.done { background: var(--success-soft); color: var(--success); }
.road-tag.next { background: var(--pop); color: var(--brand-ink); }
.road { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.road li { border: 1px solid var(--line); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-sm); padding: 14px 18px 15px 58px; position: relative; }
.road li h4 { margin: 0 0 4px; font-size: 16px; font-weight: 800; line-height: 1.35; letter-spacing: -0.015em; }
.road li p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.road.next { counter-reset: r; }
.road.next li { counter-increment: r; }
.road.next li::before { content: counter(r); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 9px; background: var(--accent); color: var(--accent-fg); font-weight: 800; font-size: 13px; }
.road.next li:first-child { background: var(--pop); border-color: var(--pop); }
.road.next li:first-child, .road.next li:first-child p { color: var(--brand-ink); }
.road.next li:first-child::before { background: var(--brand-ink); color: var(--pop); }
.road.next li:first-child code { background: rgba(255,255,255,.55); border-color: rgba(41,41,54,.25); color: var(--brand-ink); }
.road.done li { background: var(--success-soft); border-color: transparent; box-shadow: none; }
.road.done li p { color: var(--ink); opacity: .85; }
.road-ico { position: absolute; left: 16px; top: 14px; width: 28px; height: 28px; padding: 4px; border-radius: 9px; background: var(--surface); color: var(--success); }

/* ---- 404 ---- */
.nf-hero { padding: 72px 0 96px; }
.nf-hero .wrap { grid-template-columns: .8fr 1.2fr; }
.nf-scene { max-width: 320px; width: 100%; justify-self: center; }

/* ---- responsive ---- */
@media (max-width: 1180px) {
  .top nav a { padding: 7px 9px; font-size: 13.5px; }
}
@media (max-width: 1080px) {
  .top nav { display: none; }
  .top-tools { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .sig { justify-self: start; max-width: 560px; }
  .split { grid-template-columns: 1fr; }
  .story-hero .wrap, .story-cols, .story-two { grid-template-columns: 1fr; gap: 32px; }
  .access-grid, .roadmap { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 900px) {
  :root { --gutter: 24px; }
  .grid3, .install, .rough { grid-template-columns: 1fr; }
  .how-mascot { width: 150px; }
  .nf-hero .wrap { grid-template-columns: 1fr; gap: 24px; }
  .nf-scene { max-width: 220px; justify-self: start; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .top .wrap { gap: 12px; height: 64px; }
  .logo { font-size: 18px; gap: 8px; }
  .logo-mark { width: 32px; height: 32px; }
  .hero { padding: 28px 0 56px; }
  .hero-mascot { width: 116px; height: 116px; }
  section.band, .split-band { padding: 60px 0; }
  .half { padding: 28px 20px; border-radius: 24px; }
  .sec-list ul { grid-template-columns: 1fr; }
  .net { grid-template-columns: 1fr auto; }
  .net .d { grid-column: 1 / -1; grid-row: 2; }
  .nets, .needs { padding: 4px 18px; }
  .sig { border-radius: 24px; }
  .sig-body { padding: 16px; }
  .ctas .btn { width: 100%; }
  .how-head { flex-direction: column-reverse; align-items: flex-start; }
  .how-mascot { width: 128px; margin: 0; }
  .why-story { flex-wrap: wrap; }
  .need { grid-template-columns: 1fr; gap: 6px; }
  .need .gas { justify-self: start; }
  .bdr { grid-template-columns: 1fr; }
  .bdr .col + .col { border-left: 0; border-top: 1px solid var(--line); }
  .ops-wrap { overflow: visible; border: 0; box-shadow: none; background: none; border-radius: 0; }
  .ops thead { display: none; }
  .ops, .ops tbody, .ops tr, .ops td { display: block; width: 100%; }
  .ops tr { border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-sm); background: var(--surface); margin-bottom: 12px; overflow: hidden; }
  .ops td { border-top: 1px solid var(--line); padding: 8px 14px; white-space: normal !important; }
  .ops td:first-child { border-top: 0; background: var(--surface-2); }
  .ops td:not(:first-child)::before { content: attr(data-l); display: block; font-family: var(--font-sans); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
  .tips { padding: 22px 20px; }
  .access-card { padding: 20px; border-radius: 24px; }
  .access-contacts { grid-template-columns: 1fr; gap: 8px; }
  .access-or { padding: 0; }
  .access-form .btn { width: 100%; }
  .access-done { flex-direction: column; align-items: flex-start; }
  .logo-name { white-space: normal; line-height: 1.1; }
  p code, li code, td code { white-space: normal; overflow-wrap: anywhere; }
  .road li { padding: 12px 14px 13px 54px; }
  footer .wrap { gap: 20px 32px; }
}
@media (max-width: 360px) {
  :root { --gutter: 16px; }
}
/* grid children may shrink below their content (long mono lines wrap inside their own box) */
.hero .wrap > *, .grid3 > *, .install > *, .split > * { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* install card: the sha256 of the zip is one long word — let it wrap (/dl/) */
.install ol li code { white-space: normal; overflow-wrap: anywhere; }
.install code.hash { word-break: break-all; }
.install ol li a { overflow-wrap: anywhere; }
