/* Portly - Own. Move. Compound.
   Near-black ground, warm white text, Portly lime signal color.
   Direction: Bloomberg meets Apple, rebuilt for onchain portfolios -
   premium, technical, quietly confident, with a pixel accent inherited
   from the brand's brick/pixel identity. */

:root {
  --bg: #0d0d0d;
  --bg-2: #111214;
  --surface: #16181a;
  --surface-2: #1e2023;
  --line: #26282c;
  --line-2: #33363b;
  --text: #f5f5f5;
  --muted: #a2a8b3;
  --faint: #8b93a0;
  --lime: #a6ff4d;
  --lime-2: #dcff4f;
  --lime-dim: rgba(166, 255, 77, 0.14);
  --red: #ff6b6b;
  --amber: #ffc857;
  --blue: #6aa8ff;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  background:
    radial-gradient(1100px 500px at 70% -10%, rgba(166, 255, 77, 0.05), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

::selection { background: var(--lime); color: #0d0d0d; }

/* ------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(13, 13, 13, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 26px; height: 62px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo img, .logo svg { width: 27px; height: 27px; display: block; }
.logo .word { font-family: var(--mono); font-weight: 800; letter-spacing: 0.16em; font-size: 17px; }
.logo .word .accent { color: var(--lime); }
nav.main { display: flex; gap: 4px; margin-left: auto; font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.08em; }
nav.main a { color: var(--muted); padding: 7px 13px; border-radius: 7px; transition: color 0.15s, background 0.15s; }
nav.main a:hover { color: var(--text); background: var(--surface-2); }
nav.main a.active { color: var(--lime); background: var(--lime-dim); }
.pill {
  display: inline-flex; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em;
  border: 1px solid var(--line-2); color: var(--muted);
  border-radius: 999px; padding: 6px 13px; white-space: nowrap;
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); margin-right: 8px; }
.pill .dot.on { background: var(--lime); box-shadow: 0 0 8px rgba(166, 255, 77, 0.8); animation: pulse 2.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }

/* --------------------------------------------------------------- hero */
.hero { position: relative; padding: 96px 0 72px; overflow: hidden; }
.hero-canvas {
  position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%;
  opacity: 0.55;
  mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, transparent 34%, black 62%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 18%, black 82%, transparent 100%),
    linear-gradient(to right, transparent 0%, transparent 34%, black 62%);
  mask-composite: intersect;
  -webkit-mask-composite: source-in;
}
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.24em;
  color: var(--lime); text-transform: uppercase; margin-bottom: 22px;
  border: 1px solid rgba(166, 255, 77, 0.25); background: rgba(166, 255, 77, 0.06);
  padding: 8px 16px; border-radius: 999px;
}
.pixel-title { margin: 6px 0 0; line-height: 0; }
.pixel-title svg { width: min(680px, 92%); height: auto; display: block; }
h1.display {
  font-family: var(--mono); font-weight: 800;
  font-size: clamp(34px, 6.4vw, 64px); line-height: 1.04;
  letter-spacing: 0.015em; text-transform: uppercase; margin-top: 26px;
}
h1.display .accent { color: var(--lime); text-shadow: 0 0 28px rgba(166, 255, 77, 0.35); }
.tagline { margin-top: 22px; font-size: clamp(16.5px, 2.1vw, 20px); color: var(--muted); max-width: 620px; }
.tagline strong { color: var(--text); font-weight: 600; }
.cta-row { margin-top: 38px; display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.06em; font-weight: 600;
  padding: 13px 26px; border-radius: 9px; border: 1px solid var(--line-2);
  color: var(--text); background: var(--surface); cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); }
.btn:active { transform: translateY(2px); }
.btn.primary {
  background: var(--lime); border-color: var(--lime); color: #0c0d0a;
  box-shadow: 0 4px 0 0 #5c9427, 0 10px 30px rgba(166, 255, 77, 0.22);
}
.btn.primary:hover { background: var(--lime-2); border-color: var(--lime-2); }
.btn.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 0 #5c9427; }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.hero-note { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 20px; }
.hero-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------ sections */
section.block { padding: 72px 0; border-top: 1px solid var(--line); }
h2.section {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.26em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 10px;
}
.section-lead { font-size: clamp(20px, 3vw, 28px); font-weight: 650; max-width: 720px; margin-bottom: 34px; letter-spacing: -0.01em; }
.section-lead .accent { color: var(--lime); }

.grid { display: grid; gap: 16px; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 880px) { .grid.cols-4, .grid.cols-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid.cols-4, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 14px; padding: 24px;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: var(--shadow); }
.card h3 { font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px; display: flex; align-items: center; gap: 9px; }
.card h3 .glyph { color: var(--lime); font-size: 15px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card code { font-family: var(--mono); font-size: 12.5px; color: var(--lime); background: var(--lime-dim); border-radius: 5px; padding: 1.5px 6px; }

/* flow diagram */
.flow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; font-family: var(--mono); font-size: 13.5px; }
.flow .step {
  border: 1px solid var(--line-2); background: var(--surface);
  padding: 11px 18px; border-radius: 9px; color: var(--text);
  box-shadow: 0 3px 0 0 rgba(0, 0, 0, 0.35);
}
.flow .step small { display: block; color: var(--faint); font-size: 11px; margin-top: 2px; }
.flow .arrow { color: var(--lime); font-weight: 700; }

/* accumulator diagram */
.acc-diagram {
  font-family: var(--mono); font-size: 13.5px; line-height: 2.1;
  border: 1px solid var(--line); border-radius: 14px;
  background: #0a0b0c; padding: 26px 30px; overflow-x: auto;
}
.acc-diagram .lvl { display: flex; align-items: center; gap: 14px; white-space: nowrap; }
.acc-diagram .node { color: var(--text); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 7px; padding: 3px 12px; }
.acc-diagram .node.hot { color: #0d0d0d; background: var(--lime); border-color: var(--lime); font-weight: 700; }
.acc-diagram .down { color: var(--faint); padding-left: 34px; }
.acc-diagram .eq { color: var(--muted); padding-left: 34px; }
.acc-diagram .eq b { color: var(--lime); font-weight: 600; }

/* mandates */
.mandates { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 980px) { .mandates { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .mandates { grid-template-columns: repeat(2, 1fr); } }
.mandate {
  border: 1px solid var(--line); background: var(--surface); border-radius: 13px;
  padding: 20px 14px; text-align: center; position: relative; overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.mandate:hover { transform: translateY(-3px); border-color: var(--line-2); }
.mandate::before {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 2px;
  background: var(--mc, var(--lime)); opacity: 0.9;
}
.mandate .name { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.12em; font-weight: 700; color: var(--mc, var(--lime)); }
.mandate .motto { font-size: 12.5px; color: var(--faint); margin-top: 6px; }
.mandate.defensive { --mc: #8be36a; }
.mandate.balanced { --mc: #6aa8ff; }
.mandate.growth { --mc: #b58aff; }
.mandate.aggressive { --mc: #ff6b6b; }
.mandate.income { --mc: #ffc857; }
.mandate.explorer { --mc: #5fd7d0; }

/* terminal */
.terminal {
  background: #0a0b0c; border: 1px solid var(--line); border-radius: 14px;
  font-family: var(--mono); font-size: 13.5px; overflow: hidden; box-shadow: var(--shadow);
}
.terminal .bar {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 18px; border-bottom: 1px solid var(--line); color: var(--faint); font-size: 11.5px;
  letter-spacing: 0.1em;
}
.terminal .bar .tl { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.terminal pre { padding: 22px 26px; overflow-x: auto; line-height: 1.75; color: var(--muted); }
.terminal .g { color: var(--lime); }
.terminal .w { color: var(--text); }
.terminal .r { color: var(--red); }
.terminal .dim { color: var(--faint); }

/* ------------------------------------------------------------ app UI */
.page-title { font-family: var(--mono); font-size: clamp(20px, 3vw, 26px); letter-spacing: 0.1em; text-transform: uppercase; padding: 44px 0 6px; }
.page-sub { color: var(--faint); font-size: 14px; margin-bottom: 26px; }
.statusbar {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 26px;
  font-family: var(--mono); font-size: 12px;
}
.statusbar .chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); background: var(--surface); color: var(--muted);
  border-radius: 8px; padding: 8px 14px;
}
.statusbar .chip b { color: var(--text); font-weight: 600; }
.statusbar .chip.ok { border-color: rgba(166, 255, 77, 0.35); }
.statusbar .chip.ok b { color: var(--lime); }
.statusbar .spacer { flex: 1; }

.tabs { display: flex; gap: 6px; margin: 6px 0 26px; flex-wrap: wrap; }
.tabs button {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.07em; font-weight: 600;
  background: none; border: 1px solid var(--line); color: var(--muted);
  border-radius: 9px; padding: 10px 20px; cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.tabs button.active { background: var(--lime); border-color: var(--lime); color: #0c0d0a; }
.tabs button:hover:not(.active) { color: var(--text); background: var(--surface-2); }

.tbl { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.tbl th {
  text-align: left; font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 11px 16px; border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.015);
}
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); color: var(--text); }
.tbl tbody tr { transition: background 0.12s; }
.tbl tbody tr:hover { background: rgba(255, 255, 255, 0.025); }
.tbl tr:last-child td { border-bottom: none; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .up { color: var(--lime); }
.tbl .down { color: var(--red); }
.tbl .muted { color: var(--faint); }
.tbl-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.tbl-scroll .tbl td, .tbl-scroll .tbl th { white-space: nowrap; }

.badge {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--muted); text-transform: uppercase;
}
.badge.lime { color: var(--lime); border-color: rgba(166, 255, 77, 0.4); background: var(--lime-dim); }
.badge.red { color: var(--red); border-color: rgba(255, 107, 107, 0.4); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 26px; }
@media (max-width: 880px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 13px; padding: 18px 20px;
}
.stat .label { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.stat .value { font-family: var(--mono); font-size: 26px; font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.stat .value.lime { color: var(--lime); }
.stat .sub { font-size: 11.5px; color: var(--faint); margin-top: 5px; font-family: var(--mono); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; }
.panel h3 { font-family: var(--mono); font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 16px; }

.offline {
  border: 1px solid var(--line-2); border-radius: 16px; padding: 44px 36px;
  background:
    radial-gradient(600px 200px at 50% 0%, rgba(166, 255, 77, 0.05), transparent 70%),
    var(--surface);
  text-align: center;
}
.offline .mark { font-family: var(--mono); font-size: 12px; letter-spacing: 0.3em; color: var(--amber); text-transform: uppercase; }
.offline h2 { font-family: var(--mono); font-size: 22px; letter-spacing: 0.08em; margin: 14px 0 12px; text-transform: uppercase; }
.offline p { color: var(--muted); max-width: 560px; margin: 0 auto 10px; font-size: 14.5px; }
.offline code { font-family: var(--mono); font-size: 12.5px; background: #0a0b0c; border: 1px solid var(--line); padding: 8px 14px; border-radius: 8px; color: var(--lime); display: inline-block; margin-top: 10px; word-break: break-all; }

.field { margin-bottom: 16px; }
.field label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 8px; }
.field input, .field select {
  width: 100%; background: #0a0b0c; color: var(--text); font-family: var(--mono); font-size: 14px;
  border: 1px solid var(--line-2); border-radius: 9px; padding: 12px 14px; outline: none;
  transition: border-color 0.15s;
}
.field input:focus, .field select:focus { border-color: var(--lime); }

.txpreview {
  font-family: var(--mono); font-size: 12.5px; color: var(--muted);
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 14px 16px; margin: 14px 0;
  line-height: 1.9;
}
.txpreview b { color: var(--text); float: right; }
.txpreview .hl { color: var(--lime); }

.toast-zone { position: fixed; bottom: 22px; right: 22px; z-index: 100; display: flex; flex-direction: column; gap: 10px; max-width: 380px; }
.toast {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: 11px; padding: 13px 17px; box-shadow: var(--shadow);
  animation: slidein 0.22s ease;
}
.toast.ok { border-color: rgba(166, 255, 77, 0.5); }
.toast.err { border-color: rgba(255, 107, 107, 0.5); }
@keyframes slidein { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }

.notice {
  border: 1px solid rgba(255, 200, 87, 0.3); background: rgba(255, 200, 87, 0.05);
  border-radius: 12px; padding: 15px 18px; font-size: 13px; color: var(--muted); margin: 20px 0;
}
.notice strong { color: var(--amber); font-family: var(--mono); letter-spacing: 0.06em; }

/* ------------------------------------------------------------- legal */
.legal { max-width: 840px; }
.legal h2 { font-family: var(--mono); font-size: 14.5px; letter-spacing: 0.12em; text-transform: uppercase; margin: 36px 0 12px; color: var(--text); }
.legal p, .legal li { color: var(--muted); font-size: 14.5px; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 10px; }
.legal .capsule {
  border: 1px solid var(--line); background: var(--surface); border-radius: 13px;
  padding: 20px 22px; margin: 20px 0; font-size: 13.5px;
}
.legal .capsule.hard { border-color: rgba(255, 107, 107, 0.4); }
.legal .capsule.hard strong { color: var(--red); }

/* ------------------------------------------------------------ reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.shown { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .pill .dot.on { animation: none; }
}

/* ------------------------------------------------------------ portraits */
.phero { position: relative; padding: 84px 0 64px; overflow: hidden;
  background: radial-gradient(900px 500px at 78% 20%, rgba(166, 255, 77, 0.07), transparent 60%), var(--bg); }
.phero-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .phero-grid { grid-template-columns: 1fr; } }
.phero-art img { width: 100%; max-width: 440px; display: block; margin: 0 auto;
  border: 2px solid rgba(166, 255, 77, 0.2); border-radius: 14px; box-shadow: var(--shadow); }
.phero .tagline code { font-family: var(--mono); font-size: 0.85em; color: var(--lime);
  background: rgba(166, 255, 77, 0.08); padding: 2px 7px; border-radius: 6px; }
.factrow { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.factrow span { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; color: var(--muted);
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 18px; }
.factrow b { color: var(--lime); font-weight: 700; }

.mint-wrap { max-width: 720px; }
.mint-state { border: 1px solid var(--line); background: var(--surface); border-radius: 16px; padding: 34px 38px; }
.mint-state.coming { border-color: rgba(166, 255, 77, 0.25); box-shadow: 0 0 60px rgba(166, 255, 77, 0.06); }
.mint-state .big { font-family: var(--mono); font-weight: 800; font-size: clamp(26px, 4vw, 40px);
  text-transform: uppercase; margin: 14px 0 12px; }
.mint-state .big .accent { color: var(--lime); text-shadow: 0 0 24px rgba(166, 255, 77, 0.35); }
.mint-note { color: var(--faint); font-size: 14.5px; line-height: 1.65; }
.mint-note a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.phase-pill { display: inline-block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.22em;
  color: var(--faint); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 14px; }
.phase-pill.on { color: var(--lime); border-color: rgba(166, 255, 77, 0.4); }
.supply-line { font-family: var(--mono); font-size: 20px; margin: 18px 0 10px; color: var(--muted); }
.supply-line b { color: var(--text); font-size: 26px; }
.supply-bar { height: 10px; border-radius: 999px; background: #101113; border: 1px solid var(--line); overflow: hidden; }
.supply-bar span { display: block; height: 100%; background: linear-gradient(90deg, #5c9427, var(--lime)); }
.pricing { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 6px; }
.pricing span { font-family: var(--mono); font-size: 13px; color: var(--faint);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; }
.pricing span.now { color: #0d0d0d; background: var(--lime); border-color: var(--lime); font-weight: 700; }
.qty-row { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }
.qty-row .qty { font-family: var(--mono); font-size: 22px; font-weight: 700; min-width: 34px; text-align: center; }
.vault-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 980px) { .vault-grid { grid-template-columns: repeat(2, 1fr); } }
.vault-card { border: 1px solid var(--line); background: var(--surface); border-radius: 14px;
  overflow: hidden; transition: transform 0.12s ease, border-color 0.15s; }
.vault-card:hover { transform: translateY(-3px); border-color: rgba(166, 255, 77, 0.4); }
.vault-card img { width: 100%; display: block; }
.vault-card .vname { font-family: var(--mono); font-weight: 700; font-size: 15px; color: var(--lime);
  padding: 14px 16px 2px; text-transform: uppercase; letter-spacing: 0.06em; }
.vault-card .vnote { color: var(--faint); font-size: 12.5px; padding: 4px 16px 16px; }

/* ------------------------------------------------------------ outro hero */
.outro {
  position: relative;
  padding: 110px 0 124px;
  border-top: 1px solid var(--line);
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(760px 360px at 50% 118%, rgba(166, 255, 77, 0.10), transparent 65%),
    linear-gradient(var(--bg), var(--bg-2));
}
.outro .display {
  font-family: var(--mono); font-weight: 800;
  font-size: clamp(30px, 5.4vw, 56px); line-height: 1.08;
  letter-spacing: 0.015em; text-transform: uppercase; margin-top: 4px;
}
.outro .display .accent { color: var(--lime); text-shadow: 0 0 28px rgba(166, 255, 77, 0.35); }
.outro .tagline { margin-left: auto; margin-right: auto; max-width: 640px; }
.outro .cta-row { justify-content: center; }
.outro .hero-note { margin-top: 24px; }

/* ------------------------------------------------------------ footer */
.site-footer { border-top: 1px solid var(--line); margin-top: 80px; padding: 44px 0 60px; }
main:has(.outro) + .site-footer { margin-top: 0; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }
.site-footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--faint); margin-bottom: 13px; }
.site-footer a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 9px; transition: color 0.15s; }
.site-footer a:hover { color: var(--text); }
.site-footer .brandline { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.site-footer .brandline img { width: 24px; height: 24px; }
.site-footer .brandline span { font-family: var(--mono); font-weight: 800; letter-spacing: 0.16em; font-size: 15px; }
.fineprint {
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line);
  color: var(--faint); font-size: 12px; line-height: 1.75;
}
.fineprint strong { color: var(--muted); }
.fineprint a { display: inline; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------- audit additions */
/* Keyboard focus is a first-class state on a dark UI. */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }

/* Loading skeletons: the terminal feels alive while RPC answers. */
.skel {
  height: 18px; border-radius: 6px; margin: 12px 0;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--line-2) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}
.skel:nth-child(odd) { width: 82%; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }

/* Toast dismiss + richer content. */
.toast { position: relative; padding-right: 34px; }
.toast a { color: var(--lime); text-decoration: underline; text-underline-offset: 3px; }
.toast b { color: var(--text); }
.toast-close {
  position: absolute; top: 6px; right: 8px;
  background: none; border: none; color: var(--faint); font-size: 16px;
  cursor: pointer; line-height: 1; padding: 4px;
}
.toast-close:hover { color: var(--text); }

/* Arm-to-confirm for irreversible actions. */
.btn.armed { background: var(--red); border-color: var(--red); color: #fff; font-weight: 700; }

/* Address links inside tables. */
.addr-link { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.addr-link:hover { color: var(--lime); }
a.chip:hover { border-color: var(--lime); color: var(--text); }

/* Trust strip under the landing hero. */
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px;
  font-family: var(--mono); font-size: 12px;
}
.trust-strip .titem {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
  border-radius: 8px; padding: 8px 14px;
}
.trust-strip .titem b { color: var(--text); font-weight: 600; }
.trust-strip .titem.hot { border-color: rgba(166, 255, 77, 0.4); }
.trust-strip .titem.hot b { color: var(--lime); }
.trust-strip a.titem:hover { border-color: var(--lime); }

/* ------------------------------------------------- mandate character cards */
.explain { color: var(--muted); font-size: 15px; max-width: 760px; margin: -10px 0 30px; line-height: 1.7; }
.explain.small { font-size: 12.5px; color: var(--faint); margin: 22px 0 0; }
.explain a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.mandate-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .mandate-cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .mandate-cards { grid-template-columns: 1fr; } }

.mcard {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.mcard:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--mc, #fff) 55%, var(--line));
  box-shadow: 0 22px 48px -20px color-mix(in srgb, var(--mc, #000) 45%, transparent), var(--shadow);
}
.mcard.defensive { --mc: #8be36a; }
.mcard.balanced { --mc: #6aa8ff; }
.mcard.growth { --mc: #b58aff; }
.mcard.aggressive { --mc: #ff6b6b; }
.mcard.income { --mc: #ffc857; }
.mcard.explorer { --mc: #5fd7d0; }

.mcard-media { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.mcard-scene {
  background:
    radial-gradient(300px 120px at 50% 100%, color-mix(in srgb, var(--mc) 10%, transparent), transparent 75%),
    #0a0b0c;
  padding: 14px 14px 0;
  line-height: 0;
}
.mcard-plate {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 44px 16px 12px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 6, 7, 0.55) 45%, rgba(5, 6, 7, 0.92) 100%);
  pointer-events: none;
}
.mcard-plate .mcard-name { font-size: 16px; text-shadow: 0 1px 6px rgba(0, 0, 0, 0.8); }
.mcard-plate .mcard-motto { color: #d9ded9; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.9); }
.mcard-scene svg { width: 100%; height: auto; display: block; }
.mcard:hover .mcard-scene svg { animation: mbob 1.6s ease-in-out infinite; }
@keyframes mbob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.px-fx { animation: pxflicker 0.9s steps(2) infinite; }
@keyframes pxflicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) {
  .px-fx { animation: none; }
  .mcard:hover .mcard-scene svg { animation: none; }
}

.mcard-body { padding: 15px 18px 17px; }
.mcard-name { font-family: var(--mono); font-size: 14px; letter-spacing: 0.14em; font-weight: 800; color: var(--mc, var(--lime)); }
.mcard-motto { font-family: var(--mono); font-size: 11.5px; color: var(--faint); letter-spacing: 0.04em; }
.mcard-line { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; min-height: 2.6em; }
.mcard-cta {
  display: inline-block; margin-top: 13px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  color: var(--mc, var(--lime)); text-decoration: none;
  border-bottom: 1px solid color-mix(in srgb, var(--mc, #fff) 30%, transparent);
  padding-bottom: 2px;
  transition: border-color 0.15s ease;
}
.mcard-cta:hover { border-bottom-color: var(--mc, var(--lime)); }

.alloc-bar {
  display: flex; height: 10px; border-radius: 5px; overflow: hidden;
  background: #0a0b0c; border: 1px solid var(--line);
}
.alloc-bar span { display: block; height: 100%; }
.alloc-legend {
  display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 9px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted);
}
.alloc-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

/* Real character art (activates when /mandates/<key>.jpg loads). Crops are
   cut 440x358 from the brand banner, one character per file. */
.mcard-scene.photo {
  padding: 0;
  aspect-ratio: 440 / 358;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  image-rendering: auto;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mcard:hover .mcard-scene.photo { transform: scale(1.05); }
@media (prefers-reduced-motion: reduce) {
  .mcard:hover .mcard-scene.photo { transform: none; }
}
