/*  Kept design system
    ─────────────────────────────────────────────────────────────── */

:root {
  /* surfaces */
  --bg:        #0a0c10;
  --bg-2:      #0d1015;
  --surface:   #12161d;
  --surface-2: #171c25;
  --surface-3: #1e2531;
  --line:      #222a36;
  --line-soft: #1a212b;

  /* text */
  --text:      #eaeef4;
  --text-2:    #9aa6b8;
  --text-3:    #626e80;

  /* brand */
  --brand:     #4ade80;
  --brand-2:   #22c55e;
  --brand-ink: #052e16;
  --brand-glow: rgba(74, 222, 128, .14);

  /* semantic */
  --ok:     #4ade80;
  --warn:   #fbbf24;
  --danger: #f87171;
  --info:   #60a5fa;

  --r-sm: 8px;
  --r:    12px;
  --r-lg: 16px;
  --r-xl: 22px;

  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --shadow:    0 1px 2px rgba(0,0,0,.35);
  --shadow-lg: 0 24px 64px rgba(0,0,0,.6);

  --nav-h: 66px;
}

* { box-sizing: border-box; }

/* A class like .stats{display:grid} would otherwise defeat the hidden attribute. */
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 20px); }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: 'cv02','cv03','cv04','ss01';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.18; letter-spacing: -.025em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); letter-spacing: -.04em; }
h2 { font-size: clamp(1.4rem, 2.6vw, 1.85rem); }
h3 { font-size: 1.12rem; }
h4 { font-size: .8rem; text-transform: uppercase; letter-spacing: .09em; color: var(--text-3); font-weight: 650; }

p { margin: 0 0 1em; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 22px; }
.num  { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.dim  { color: var(--text-3); }
.muted{ color: var(--text-2); }

/* Off-screen via clip-path rather than left:-9999px, which can widen the
   scrollable area in some engines. */
.skip {
  position: absolute; left: 0; top: 0; z-index: 200;
  background: var(--brand); color: var(--brand-ink); padding: 10px 18px;
  border-radius: 0 0 var(--r-sm) 0; font-weight: 650;
  clip-path: inset(50%); white-space: nowrap;
}
.skip:focus { clip-path: none; }

:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }

/* ─────────────────────────── topbar ─────────────────────────── */

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,12,16,.82);
  backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-inner { display: flex; align-items: center; gap: 26px; height: var(--nav-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 750; letter-spacing: -.03em; }
.brand:hover { text-decoration: none; }
/* No border-radius: the icon art already has rounded corners and alpha. */
.brand-mark { width: 32px; height: 32px; flex: 0 0 32px; display: block; }
.brand-name { font-size: 1.06rem; }

.topnav { display: flex; gap: 4px; }
.topnav a {
  color: var(--text-2); font-size: 14px; font-weight: 520;
  padding: 7px 12px; border-radius: var(--r-sm); transition: color .15s, background .15s;
}
.topnav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }
.topnav a.is-active { color: var(--text); background: var(--surface-2); font-weight: 600; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.mobilenav { display: none; flex-direction: column; padding: 8px 22px 16px; border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.mobilenav a { padding: 11px 0; color: var(--text-2); border-bottom: 1px solid var(--line-soft); }
.mobilenav a.is-active { color: var(--brand); }
.mobilenav a:last-child { border-bottom: 0; }
.mobilenav[hidden] { display: none; }

/* ─────────────────────────── buttons ─────────────────────────── */

.btn {
  font: inherit; font-size: 14px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 17px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface-2); color: var(--text);
  cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, opacity .15s;
}
.btn:hover:not(:disabled) { background: var(--surface-3); border-color: #2c3542; text-decoration: none; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .42; cursor: not-allowed; }

.btn-primary {
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
  border-color: var(--brand-2); color: var(--brand-ink);
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 18px rgba(34,197,94,.18);
}
.btn-primary:hover:not(:disabled) { background: linear-gradient(180deg, #6ef39c 0%, #2bd268 100%); border-color: #2bd268; }

.btn-ghost { background: transparent; }
.btn-sm  { padding: 6px 13px; font-size: 13px; }
.btn-lg  { padding: 13px 26px; font-size: 15px; }
.btn-block { width: 100%; padding: 12px; font-size: 15px; }
.btn-icon { padding: 8px; display: none; }

.link { background: none; border: 0; padding: 0; font: inherit; font-size: 12px; color: var(--brand); cursor: pointer; text-decoration: underline; }

/* ─────────────────────────── badges & pills ─────────────────────────── */

.badge {
  font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--text-2);
  white-space: nowrap; cursor: default;
}
.badge-ok     { color: var(--ok);     border-color: rgba(74,222,128,.32);  background: rgba(74,222,128,.09); }
.badge-warn   { color: var(--warn);   border-color: rgba(251,191,36,.32);  background: rgba(251,191,36,.09); }
.badge-danger { color: var(--danger); border-color: rgba(248,113,113,.32); background: rgba(248,113,113,.09); }
.badge-info   { color: var(--info);   border-color: rgba(96,165,250,.32);  background: rgba(96,165,250,.09); }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 550; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 5px 13px; border-radius: 999px;
}

/* ─────────────────────────── hero ─────────────────────────── */

.hero { position: relative; padding: 84px 0 64px; overflow: hidden; border-bottom: 1px solid var(--line-soft); }
.hero::before {
  content: ''; position: absolute; inset: -40% 30% 40% -20%;
  background: radial-gradient(closest-side, var(--brand-glow), transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line-soft) 1px, transparent 1px),
                    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 30% 0%, #000 20%, transparent 75%);
}
.hero > .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 15ch; margin-bottom: .35em; }
.hero-sub { font-size: 1.12rem; color: var(--text-2); max-width: 56ch; margin-bottom: 30px; }
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-note { font-size: 13px; color: var(--text-3); margin: 26px 0 0; }
.hero-note strong { color: var(--text-2); font-weight: 550; }

.page-head { padding: 54px 0 34px; border-bottom: 1px solid var(--line-soft); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: .3em; }
.page-head p { color: var(--text-2); max-width: 62ch; margin: 0; }
.eyebrow { font-size: 12px; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }

/* ─────────────────────────── stats ─────────────────────────── */

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.stat {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 20px;
}
.stat-k { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; margin-bottom: 6px; }
.stat-v { font-size: 1.6rem; font-weight: 700; font-family: var(--mono); letter-spacing: -.04em; line-height: 1.1; }
.stat-s { font-size: 12px; color: var(--text-3); margin-top: 5px; }

/* ─────────────────────────── sections ─────────────────────────── */

.section { padding: 56px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.section-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.section-head h2 { margin: 0; }
.section-head .spacer { margin-left: auto; }

.input {
  font: inherit; font-size: 14px; color: var(--text); width: 100%;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); padding: 10px 13px;
  transition: border-color .15s, box-shadow .15s;
}
.input:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 3px rgba(34,197,94,.13); }
.input::placeholder { color: var(--text-3); }
.search { max-width: 270px; }

/* ─────────────────────────── table ─────────────────────────── */

.table-wrap { border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 780px; }
.table thead th {
  text-align: left; font-size: 11px; font-weight: 650; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-3); white-space: nowrap;
  padding: 13px 18px; border-bottom: 1px solid var(--line); background: var(--bg-2);
  position: sticky; top: 0; z-index: 1;
}
.table thead th.num { text-align: right; }
.table tbody td { padding: 12px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table td.num { text-align: right; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.table .empty td { text-align: center; color: var(--text-3); padding: 44px; }

.tick { display: flex; align-items: center; gap: 11px; }
.tick-txt { display: flex; flex-direction: column; gap: 0; min-width: 0; }
.tick-sym { font-weight: 650; letter-spacing: -.015em; }
.tick-name { font-size: 12px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 210px; }

.logo { border-radius: 7px; background: #fff; object-fit: contain; padding: 2px; flex: 0 0 auto; }
.logo-mono {
  display: inline-grid; place-items: center; border-radius: 7px;
  font-weight: 750; font-family: var(--mono); letter-spacing: -.03em; padding: 0;
}

.thin { color: var(--warn); }

.hint {
  display: inline-grid; place-items: center; width: 14px; height: 14px; margin-left: 5px;
  border-radius: 50%; border: 1px solid var(--line); font-size: 9px;
  color: var(--text-3); cursor: help; vertical-align: middle; font-family: var(--sans);
}

.skel { display: inline-block; height: 1em; width: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ─────────────────────────── cards ─────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.cards:empty { display: none; }
.card {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 22px; box-shadow: var(--shadow);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }

.rows { display: grid; gap: 8px; font-size: 13.5px; }
.row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.row > span:first-child { color: var(--text-3); }
.row > span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; text-align: right; }
.row-sep { border-top: 1px solid var(--line-soft); padding-top: 9px; margin-top: 3px; }

.hbar { height: 6px; border-radius: 4px; background: var(--surface-3); overflow: hidden; margin: 14px 0; }
.hbar > i { display: block; height: 100%; border-radius: 4px; transition: width .4s ease; }

/* ─────────────────────────── prose (legal & articles) ─────────────────────────── */

.prose { max-width: 72ch; color: var(--text-2); font-size: 15.5px; line-height: 1.75; }
.prose h2 { color: var(--text); margin: 2.2em 0 .6em; font-size: 1.32rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); margin: 1.6em 0 .5em; font-size: 1.05rem; }
.prose strong { color: var(--text); font-weight: 620; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.2em 0; font-size: 14px; }
.prose th, .prose td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); }
.prose th { color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.prose code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 2px 6px; border-radius: 5px; color: var(--text); }
.legal-meta { font-size: 13px; color: var(--text-3); padding-bottom: 20px; margin-bottom: 28px; border-bottom: 1px solid var(--line-soft); }

.toc { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r); padding: 18px 22px; margin-bottom: 34px; }
.toc h4 { margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 1.2em; font-size: 14px; }
.toc li { margin-bottom: 4px; }

/* ─────────────────────────── callouts ─────────────────────────── */

.callout {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; margin: 0 0 16px; max-width: 78ch;
}
.callout h3 { margin-bottom: 8px; font-size: 1.02rem; }
.callout p { margin: 0 0 10px; color: var(--text-2); font-size: 14px; }
.callout p:last-child { margin-bottom: 0; }
.callout-warn   { border-left-color: var(--warn);   } .callout-warn h3   { color: var(--warn); }
.callout-danger { border-left-color: var(--danger); } .callout-danger h3 { color: var(--danger); }
.callout-info   { border-left-color: var(--info);   } .callout-info h3   { color: var(--info); }
.callout-ok     { border-left-color: var(--brand);  } .callout-ok h3     { color: var(--brand); }

.steps { counter-reset: s; list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 18px; max-width: 76ch; }
.steps li { position: relative; padding-left: 46px; color: var(--text-2); }
.steps li strong { color: var(--text); }
.steps li::before {
  counter-increment: s; content: counter(s);
  position: absolute; left: 0; top: -1px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line);
  display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--brand);
}

/* ─────────────────────────── address rows ─────────────────────────── */

.addr-list { display: grid; gap: 10px; }
.addr {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r); padding: 15px 18px;
}
.addr-main { flex: 1 1 260px; min-width: 0; }
.addr-name { font-weight: 620; font-size: 14.5px; display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.addr-desc { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.addr-val { display: flex; align-items: center; gap: 8px; }
.addr-hex { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); word-break: break-all; }
.copy {
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3);
  width: 28px; height: 28px; border-radius: 7px; cursor: pointer;
  display: grid; place-items: center; flex: 0 0 28px; transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--brand); border-color: var(--brand-2); }
.copy.done { color: var(--brand); border-color: var(--brand-2); }

/* ─────────────────────────── modal ─────────────────────────── */

.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 22px; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(4,6,9,.78); backdrop-filter: blur(4px); }
.modal-card {
  position: relative; width: 100%; max-width: 860px;
  max-height: calc(100vh - 44px); overflow-y: auto; overflow-x: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); box-shadow: var(--shadow-lg);
  animation: pop .18s cubic-bezier(.2,.8,.3,1);
}
.modal-card.narrow { max-width: 480px; }
@keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.985); } }

.modal-top {
  display: flex; align-items: center; gap: 13px;
  padding: 16px 22px; border-bottom: 1px solid var(--line-soft);
}
.modal-top .tick-txt { gap: 2px; }
.modal-title { font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; }
.modal-sub   { font-size: 12.5px; color: var(--text-3); }
.modal-x {
  margin-left: auto; width: 32px; height: 32px; border-radius: 9px; flex: 0 0 32px;
  background: none; border: 1px solid transparent; color: var(--text-3);
  font-size: 22px; line-height: 1; cursor: pointer;
}
.modal-x:hover { background: var(--surface-2); color: var(--text); border-color: var(--line); }

/* two-column body: inputs left, risk right */
.modal-body { display: grid; grid-template-columns: 1fr 300px; }
.modal-left  { padding: 20px 22px; }
.modal-right { padding: 20px 22px; background: var(--bg-2); border-left: 1px solid var(--line-soft); border-radius: 0 0 var(--r-xl) 0; }
.modal-foot  { padding: 0 22px 20px; }
.modal-fine  { font-size: 11.5px; color: var(--text-3); margin: 10px 0 0; line-height: 1.5; }

.field { display: block; margin-bottom: 16px; }
.field-label {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  font-size: 11.5px; font-weight: 650; color: var(--text-3);
  text-transform: uppercase; letter-spacing: .07em; margin-bottom: 8px;
}
.field-input { position: relative; display: block; }
.field-input .input { padding-right: 74px; font-family: var(--mono); font-size: 16px; font-weight: 550; padding-top: 9px; padding-bottom: 9px; }
.field-unit {
  position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
  font-size: 13px; font-weight: 650; color: var(--text-3); pointer-events: none;
}
.field-hint { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-3); margin-top: 6px; }

.slider { width: 100%; margin: 11px 0 1px; accent-color: var(--brand-2); cursor: pointer; }
.slider-ticks { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); font-family: var(--mono); margin-top: -2px; }
.slider-ticks button { background: none; border: 0; color: inherit; font: inherit; cursor: pointer; padding: 2px 4px; border-radius: 4px; }
.slider-ticks button:hover { color: var(--brand); background: var(--surface-2); }

.summary { margin: 0; padding: 12px 15px; background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r); font-size: 12.5px; }
.summary > div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.summary dt { color: var(--text-3); margin: 0; }
.summary dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.summary .big dd { font-size: 15px; font-weight: 650; color: var(--brand); }
.summary-sep { border-top: 1px solid var(--line-soft); margin-top: 7px; padding-top: 11px !important; }

/* ─────────────────────────── risk bar chart ─────────────────────────── */

.risk-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.risk-cap  { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.risk-num  {
  font-family: var(--mono); font-weight: 700; font-size: 1.5rem;
  letter-spacing: -.05em; line-height: 1; color: var(--text-3);
  transition: color .3s;
}

/* Bars grow left to right; the filled ones carry the risk colour. */
.riskbars { display: flex; align-items: flex-end; gap: 3px; height: 44px; margin: 12px 0 6px; }
.riskbars > i {
  flex: 1; display: block; border-radius: 2px;
  background: var(--surface-3);
  transform-origin: bottom;
  transition: background .3s ease, opacity .3s ease, transform .35s cubic-bezier(.3,.9,.4,1);
}
.riskbars > i.on { opacity: 1; }

.risk-scale {
  display: flex; justify-content: space-between;
  font-size: 9.5px; color: var(--text-3); font-family: var(--mono); margin-bottom: 14px;
}

.gauge-verdict { font-size: 14px; font-weight: 700; letter-spacing: -.02em; }
.gauge-note { font-size: 12.5px; color: var(--text-2); line-height: 1.45; margin: 6px 0 0; }

.risk-facts { display: grid; gap: 8px; font-size: 12.5px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.risk-fact { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.risk-fact > span:first-child { color: var(--text-3); }
.risk-fact > span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 550; }

.alert { font-size: 12.5px; padding: 10px 13px; border-radius: var(--r-sm); margin-bottom: 12px; word-break: break-word;
  background: rgba(248,113,113,.09); color: var(--danger); border: 1px solid rgba(248,113,113,.26); }
.alert-info { background: rgba(96,165,250,.09); color: var(--info); border-color: rgba(96,165,250,.26); }

/* Transaction progress: one row, arrows between steps.
   Two waits, two animations — a blink means "your turn, sign it", a spinner
   means "sent, the network has it". */
.steps-run { margin-bottom: 12px; }
.steps-run:empty { display: none; }

.steps-track {
  display: flex; align-items: center; justify-content: center;
  gap: 9px; flex-wrap: wrap;
  padding: 11px 12px; border-radius: var(--r-sm);
  background: var(--bg-2); border: 1px solid var(--line-soft);
}

.steps-arrow { color: var(--line); display: grid; place-items: center; flex: 0 0 auto; }

.srow {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--text-3); white-space: nowrap;
  transition: color .2s;
}
.srow .dot {
  position: relative; width: 19px; height: 19px; flex: 0 0 19px;
  border-radius: 50%; border: 1.5px solid var(--line);
  display: grid; place-items: center; font-size: 10px; line-height: 1;
  transition: border-color .2s, color .2s, background .2s;
}

/* their turn — the wallet is open and waiting for a click */
.srow.sign { color: var(--text); }
.srow.sign .dot {
  border-color: var(--info); color: var(--info);
  animation: stepBlink 1s ease-in-out infinite;
}
.srow.sign .dot::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1.5px solid var(--info);
  animation: stepPing 1.3s cubic-bezier(0, 0, .2, 1) infinite;
}

/* the network's turn — broadcast, waiting to be mined */
.srow.confirm { color: var(--text); }
.srow.confirm .dot { border-color: var(--line); }
.srow.confirm .dot::after {
  content: ''; position: absolute; inset: -1.5px; border-radius: 50%;
  border: 1.5px solid transparent; border-top-color: var(--info);
  animation: stepSpin .7s linear infinite;
}

.srow.done { color: var(--text-2); }
.srow.done .dot {
  border-color: var(--brand); color: var(--brand);
  background: rgba(74,222,128,.13);
  animation: stepPop .32s cubic-bezier(.2,.9,.3,1.3);
}
.srow.fail { color: var(--danger); }
.srow.fail .dot { border-color: var(--danger); color: var(--danger); background: rgba(248,113,113,.10); }

.steps-status {
  font-size: 12px; color: var(--text-3); text-align: center;
  margin: 9px 0 0; min-height: 1.1em;
}
.steps-status.blink { color: var(--info); animation: stepBlink 1s ease-in-out infinite; }

@keyframes stepBlink { 0%, 100% { opacity: 1; } 50% { opacity: .38; } }
@keyframes stepPing  { 0% { transform: scale(.85); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes stepSpin  { to { transform: rotate(360deg); } }
@keyframes stepPop   { 0% { transform: scale(.55); } 100% { transform: scale(1); } }

/* ─────────────────────────── toasts ─────────────────────────── */

.toasts { position: fixed; bottom: 22px; right: 22px; z-index: 120; display: grid; gap: 9px; max-width: 350px; }
.toast {
  background: var(--surface-2); border: 1px solid var(--line); border-left: 3px solid var(--info);
  border-radius: var(--r-sm); padding: 13px 15px; font-size: 13px;
  box-shadow: var(--shadow-lg); animation: slidein .22s ease-out; word-break: break-word;
}
.toast.ok  { border-left-color: var(--brand); }
.toast.err { border-left-color: var(--danger); }
.toast a { display: inline-block; margin-top: 5px; font-size: 12px; }
@keyframes slidein { from { opacity: 0; transform: translateX(18px); } }

/* ─────────────────────────── cookie bar ─────────────────────────── */

.cookiebar {
  position: fixed; left: 22px; right: 22px; bottom: 22px; z-index: 110;
  max-width: 620px; margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: var(--r); padding: 14px 18px; box-shadow: var(--shadow-lg);
}
.cookiebar[hidden] { display: none; }
.cookiebar p { margin: 0; font-size: 13px; color: var(--text-2); }

/* ─────────────────────────── footer ─────────────────────────── */

.footer { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding: 52px 0 30px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.7fr repeat(4, 1fr); gap: 30px; padding-bottom: 34px; }
.footer-brand .brand { margin-bottom: 13px; }
.footer-blurb { font-size: 13px; color: var(--text-3); max-width: 34ch; margin-bottom: 16px; }
.footer-social { display: flex; gap: 9px; }
.social {
  width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2);
  transition: color .15s, border-color .15s, background .15s;
}
.social:hover { color: var(--text); border-color: #313b4a; background: var(--surface-2); text-decoration: none; }

.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { margin-bottom: 4px; }
.footer-col a { font-size: 13.5px; color: var(--text-2); }
.footer-col a:hover { color: var(--text); text-decoration: none; }

.footer-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 22px; border-top: 1px solid var(--line-soft); font-size: 13px; color: var(--text-3);
}

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 550; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  padding: 6px 13px; border-radius: 999px;
}
.status:hover { text-decoration: none; border-color: #313b4a; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); position: relative; flex: 0 0 8px; }
.status-dot::after {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  background: currentColor; opacity: .3; animation: ping 2.2s cubic-bezier(0,0,.2,1) infinite;
}
.status-dot { color: var(--brand); }
.status-dot.warn   { background: var(--warn);   color: var(--warn); }
.status-dot.danger { background: var(--danger); color: var(--danger); }
@keyframes ping { 75%, 100% { transform: scale(1.9); opacity: 0; } }

.footer-disclaimer { font-size: 11.5px; color: #4e596a; line-height: 1.65; margin: 22px 0 0; max-width: 100ch; }
.footer-disclaimer a { color: var(--text-3); text-decoration: underline; }

/* ─────────────────────────── responsive ─────────────────────────── */

@media (max-width: 900px) {
  .modal-body { grid-template-columns: 1fr; }
  .modal-right { border-left: 0; border-top: 1px solid var(--line-soft); border-radius: 0; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .topnav { display: none; }
  .btn-icon { display: inline-flex; }
  .mobilenav:not([hidden]) { display: flex; }
  .hero { padding: 54px 0 44px; }
  .section { padding: 42px 0; }
  .search { max-width: none; width: 100%; }
  .section-head .spacer { margin-left: 0; width: 100%; }
  .modal { padding: 0; align-items: flex-end; }
  .modal-card { max-width: none; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 93vh; }
  .modal-right { border-radius: 0; }
  .toasts { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .cookiebar { left: 12px; right: 12px; bottom: 12px; flex-direction: column; align-items: stretch; }
  .footer-grid { grid-template-columns: 1fr; }
  .table { min-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}

/* ─────────────────────────── docs & FAQ ─────────────────────────── */

.docs { padding: 0 0 20px; }
.docs-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; }

.faq-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 44px; align-items: start; padding: 0 22px; }

.docs-side, .faq-side { position: sticky; top: calc(var(--nav-h) + 22px); align-self: start; }
.docs-side-inner { padding: 22px 0; }
.docs-side-inner h4 { margin-bottom: 12px; padding-left: 11px; }

.docs-nav { display: flex; flex-direction: column; gap: 2px; max-height: calc(100vh - var(--nav-h) - 170px); overflow-y: auto; scrollbar-width: thin; }
.docs-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 11px; border-radius: var(--r-sm);
  font-size: 13.5px; color: var(--text-2); line-height: 1.35;
  border-left: 2px solid transparent;
  transition: color .15s, background .15s, border-color .15s;
}
.docs-nav a svg { flex: 0 0 15px; opacity: .65; }
.docs-nav a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.docs-nav a.is-active {
  color: var(--brand); background: rgba(74,222,128,.07);
  border-left-color: var(--brand); font-weight: 600;
}
.docs-nav a.is-active svg { opacity: 1; }

.docs-side-foot { margin-top: 18px; padding: 0 11px; }

.faq-count {
  margin-left: auto; font-size: 11px; font-family: var(--mono);
  color: var(--text-3); background: var(--surface-2);
  padding: 1px 7px; border-radius: 999px;
}

.docs-body { padding: 22px 0 10px; min-width: 0; }
.docs-sec { padding-bottom: 46px; margin-bottom: 46px; border-bottom: 1px solid var(--line-soft); }
.docs-sec:last-of-type { border-bottom: 0; margin-bottom: 20px; }
.docs-sec > h2 { font-size: 1.55rem; margin-bottom: .7em; scroll-margin-top: calc(var(--nav-h) + 20px); }
.docs-sec .prose { max-width: 74ch; }
.docs-sec .prose h3:first-child { margin-top: 0; }
.docs-sec pre {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 14px 16px; overflow-x: auto; font-size: 12.5px; line-height: 1.7;
}
.docs-sec pre code { background: none; padding: 0; font-size: inherit; }

.anchor { opacity: 0; margin-left: 8px; color: var(--text-3); font-weight: 400; transition: opacity .15s; }
.docs-sec > h2:hover .anchor { opacity: 1; }
.anchor:hover { color: var(--brand); text-decoration: none; }

/* ─────────────────────────── FAQ ─────────────────────────── */

.faq-main { min-width: 0; }
.faq-search { position: relative; margin-bottom: 30px; max-width: 420px; }
.faq-search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.faq-search .input { padding-left: 38px; }
.faq-noresult { color: var(--text-3); font-size: 14px; padding: 18px 0; }

.faq-group { margin-bottom: 38px; scroll-margin-top: calc(var(--nav-h) + 20px); }
.faq-group > h2 { font-size: 1.25rem; margin-bottom: 14px; }
.faq-group[hidden] { display: none; }

.qa {
  border: 1px solid var(--line-soft); border-radius: var(--r);
  background: var(--surface); margin-bottom: 9px; overflow: hidden;
  transition: border-color .15s;
}
.qa[hidden] { display: none; }
.qa:hover { border-color: var(--line); }
.qa[open] { border-color: var(--line); }

.qa summary {
  display: flex; align-items: center; gap: 14px;
  padding: 15px 18px; cursor: pointer; list-style: none;
  font-size: 14.5px; font-weight: 600; color: var(--text); letter-spacing: -.01em;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { background: var(--surface-2); }
.qa-q { flex: 1; }
.qa-chev { flex: 0 0 16px; color: var(--text-3); transition: transform .2s ease, color .2s; }
.qa[open] .qa-chev { transform: rotate(180deg); color: var(--brand); }

.qa-a { padding: 0 18px 17px; }
.qa-a p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.68; max-width: 72ch; }

/* ─────────────────────────── press / brand ─────────────────────────── */

.brandgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.brandcard { margin: 0; border: 1px solid var(--line-soft); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.brandcard-art { display: grid; place-items: center; height: 138px; padding: 20px; }
.brandcard-art.bg-dark  { background: #0a0c10; background-image: linear-gradient(45deg, #11151c 25%, transparent 25%, transparent 75%, #11151c 75%), linear-gradient(45deg, #11151c 25%, transparent 25%, transparent 75%, #11151c 75%); background-size: 18px 18px; background-position: 0 0, 9px 9px; }
.brandcard-art.bg-light { background: #eaeef4; }
.brandcard-art.bg-photo { background: linear-gradient(135deg, #1f4b3a 0%, #2d6b52 40%, #14532d 100%); }
.brandcard figcaption { padding: 15px 17px; border-top: 1px solid var(--line-soft); }
.brandcard-name { font-weight: 650; font-size: 14px; }
.brandcard-note { font-size: 12.5px; color: var(--text-3); margin-top: 2px; }
.brandcard-dl { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 11px; }
.brandcard-dl a {
  font-size: 11.5px; font-weight: 600; font-family: var(--mono);
  padding: 4px 9px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-2);
}
.brandcard-dl a:hover { color: var(--brand); border-color: var(--brand-2); text-decoration: none; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-top: 22px; }
.swatch {
  display: flex; align-items: center; gap: 14px; text-align: left;
  padding: 12px; border: 1px solid var(--line-soft); border-radius: var(--r);
  background: var(--surface); cursor: pointer; font: inherit; color: inherit;
  transition: border-color .15s, background .15s;
}
.swatch:hover { border-color: var(--line); background: var(--surface-2); }
.swatch-chip {
  width: 50px; height: 50px; border-radius: var(--r-sm); flex: 0 0 50px;
  display: grid; place-items: center; font-weight: 700; font-size: 15px;
  border: 1px solid rgba(255,255,255,.08);
}
.swatch-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.swatch-name { font-size: 13.5px; font-weight: 620; }
.swatch-hex { font-size: 12px; font-family: var(--mono); color: var(--brand); }
.swatch-use { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }

.dos { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; font-size: 13.5px; }
.dos li { position: relative; padding-left: 26px; color: var(--text-2); line-height: 1.5; }
.dos li::before {
  position: absolute; left: 0; top: 0; width: 17px; height: 17px;
  border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700;
}
.dos .do::before   { content: '✓'; background: rgba(74,222,128,.13); color: var(--brand); }
.dos .dont::before { content: '✕'; background: rgba(248,113,113,.13); color: var(--danger); }

/* ─────────────────────────── docs/faq responsive ─────────────────────────── */

@media (max-width: 900px) {
  .docs-grid, .faq-layout { grid-template-columns: 1fr; gap: 0; }
  .docs-side, .faq-side {
    position: static; margin-bottom: 26px;
    border-bottom: 1px solid var(--line-soft);
  }
  .docs-nav { flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 12px; max-height: none; }
  .docs-nav a { white-space: nowrap; border-left: 0; border-bottom: 2px solid transparent; border-radius: var(--r-sm) var(--r-sm) 0 0; }
  .docs-nav a.is-active { border-left: 0; border-bottom-color: var(--brand); }
  .faq-count { display: none; }
  .docs-side-foot { display: none; }
  .docs-sec { padding-bottom: 34px; margin-bottom: 34px; }
}

/* ─────────────────────────── wallet picker ─────────────────────────── */

.wallet-list { display: grid; gap: 8px; margin-bottom: 16px; }
.wallet-list:empty { display: none; }

.wallet-opt {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line-soft); background: var(--surface-2);
  color: var(--text); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, transform .08s;
}
.wallet-opt:hover:not(:disabled) { border-color: var(--brand-2); background: var(--surface-3); }
.wallet-opt:active:not(:disabled) { transform: translateY(1px); }
.wallet-opt:disabled { opacity: .55; cursor: wait; }

.wallet-ico {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 34px;
  object-fit: contain; background: var(--surface-3);
}
.wallet-ico-fallback {
  display: grid; place-items: center; font-family: var(--mono);
  font-weight: 700; font-size: 14px; color: var(--brand);
  background: rgba(74,222,128,.12);
}
.wallet-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; overflow: hidden; }
.wallet-rdns { font-size: 11.5px; font-weight: 400; color: var(--text-3); font-family: var(--mono);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-tag { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--text-3); white-space: nowrap; }
.wallet-opt:hover .wallet-tag { color: var(--brand); }

.wallet-none p { font-size: 13.5px; color: var(--text-2); margin: 0 0 12px; }
.wallet-install { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet-install a {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 13px; border-radius: var(--r-sm);
  border: 1px solid var(--line-soft); background: var(--surface-2);
  font-size: 13.5px; font-weight: 600; color: var(--text);
}
.wallet-install a:hover { border-color: var(--brand-2); text-decoration: none; }
.wallet-install span { color: var(--text-3); font-size: 11px; }

/* ─────────────────────────── eligibility step ─────────────────────────── */

.verify-who {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border-radius: var(--r);
  background: var(--bg-2); border: 1px solid var(--line-soft); margin-bottom: 16px;
}
.verify-who .tick-name { font-size: 12px; overflow: hidden; text-overflow: ellipsis; }
.verify-lead { font-size: 14px; color: var(--text-2); margin: 0 0 14px; }

.verify-points { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 9px; }
.verify-points li {
  position: relative; padding-left: 27px; font-size: 13.5px; color: var(--text-2); line-height: 1.5;
}
.verify-points li::before {
  content: '✓'; position: absolute; left: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%;
  background: rgba(74,222,128,.13); color: var(--brand);
  display: grid; place-items: center; font-size: 10px; font-weight: 700;
}

.verify-msg summary {
  cursor: pointer; font-size: 12.5px; color: var(--text-3);
  padding: 8px 0; list-style: none;
}
.verify-msg summary::-webkit-details-marker { display: none; }
.verify-msg summary::before { content: '▸ '; }
.verify-msg[open] summary::before { content: '▾ '; }
.verify-msg summary:hover { color: var(--brand); }
.verify-msg pre {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: var(--r-sm);
  padding: 12px 14px; font-size: 11.5px; line-height: 1.6; color: var(--text-2);
  white-space: pre-wrap; word-break: break-word; margin: 4px 0 0; max-height: 190px; overflow-y: auto;
}

.badge-verified {
  display: inline-flex; align-items: center; gap: 5px;
}

@media (max-width: 720px) {
  .wallet-install { grid-template-columns: 1fr; }
}

/* ─────────────────────────── how it works ─────────────────────────── */

.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; position: relative; }
.flowstep {
  position: relative; padding: 24px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  transition: border-color .2s, transform .2s;
}
.flowstep:hover { border-color: var(--line); transform: translateY(-2px); }
.flowstep-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.flowstep-n {
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(74,222,128,.12); border: 1px solid rgba(74,222,128,.3);
  color: var(--brand); display: grid; place-items: center;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
}
.flowstep-ico { width: 26px; height: 26px; color: var(--text-3); }
.flowstep h3 { font-size: 1.08rem; margin-bottom: 8px; }
.flowstep p { font-size: 14px; color: var(--text-2); margin: 0 0 16px; line-height: 1.6; }
.flowstep p strong { color: var(--text); }
.flowstep-foot { margin-top: auto; }

/* text + panel section */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; }
.split.reverse .split-text { order: 2; }
.split-text h2 { margin-bottom: .5em; }
.split-text p { font-size: 15px; line-height: 1.7; max-width: 52ch; }

.ledger {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 8px 20px; box-shadow: var(--shadow);
}
.ledger-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 12px 0; font-size: 14px; border-bottom: 1px solid var(--line-soft);
}
.ledger-row:last-child { border-bottom: 0; }
.ledger-row > span:first-child { color: var(--text-2); }
.ledger-v { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 550; text-align: right; }
.ledger-v small { display: block; font-size: 11px; color: var(--text-3); font-weight: 400; margin-top: 2px; }
.ledger-v.ok { color: var(--brand); }
.ledger-v.dim { color: var(--text-3); }
.ledger-row.hl { background: rgba(74,222,128,.05); margin: 0 -20px; padding-left: 20px; padding-right: 20px; }
.ledger-row.total .ledger-v { font-size: 17px; font-weight: 700; }
.ledger-sep { height: 1px; background: var(--line); margin: 4px -20px; }

/* comparison */
.vs { display: grid; grid-template-columns: 1fr 52px 1fr; gap: 0; align-items: stretch; margin-top: 26px; }
.vs-col { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 22px 24px; }
.vs-head { margin-bottom: 16px; }
.vs-tag {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(74,222,128,.1); border: 1px solid rgba(74,222,128,.28);
  padding: 5px 12px; border-radius: 999px;
}
.vs-tag.muted-tag { color: var(--text-2); background: var(--surface-2); border-color: var(--line); }
.vs-or { display: grid; place-items: center; }
.vs-or span {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--line); color: var(--text-3);
  display: grid; place-items: center; font-size: 12px; font-weight: 700; text-transform: uppercase;
}
.vs-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.vs-list li { position: relative; padding-left: 28px; font-size: 14px; color: var(--text-2); line-height: 1.5; }
.vs-list li::before {
  position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 50%;
  display: grid; place-items: center; font-size: 11px; font-weight: 700;
}
.vs-list .yes::before { content: '✓'; background: rgba(74,222,128,.13); color: var(--brand); }
.vs-list .no::before  { content: '−'; background: rgba(248,113,113,.13); color: var(--danger); }

/* cost cards */
.costgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 24px; }
.costcard {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 22px;
}
.costcard.accent { border-color: rgba(74,222,128,.3); background: linear-gradient(180deg, rgba(74,222,128,.06), var(--surface)); }
.costcard-v { font-family: var(--mono); font-size: 1.9rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.costcard.accent .costcard-v { color: var(--brand); }
.costcard-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; margin: 8px 0 12px; }
.costcard p { font-size: 13px; color: var(--text-2); margin: 0; line-height: 1.55; }

/* risk band */
.riskband {
  border: 1px solid rgba(251,191,36,.26); border-radius: var(--r-xl);
  background: linear-gradient(180deg, rgba(251,191,36,.05), var(--surface) 55%);
  padding: 30px;
}
.riskband-head { display: flex; align-items: center; gap: 13px; margin-bottom: 14px; color: var(--warn); }
.riskband-head h2 { margin: 0; color: var(--text); }
.riskband-lead { font-size: 15.5px; color: var(--text-2); max-width: 72ch; line-height: 1.65; }
.riskband-lead strong { color: var(--warn); }
.riskband-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0 22px; }
.riskband-box {
  background: var(--bg-2); border: 1px solid var(--line-soft);
  border-left: 3px solid var(--line); border-radius: var(--r); padding: 18px 20px;
}
.riskband-box.ok   { border-left-color: var(--brand); }
.riskband-box.warn { border-left-color: var(--warn); }
.riskband-box h3 { font-size: .95rem; margin-bottom: 7px; }
.riskband-box.ok h3   { color: var(--brand); }
.riskband-box.warn h3 { color: var(--warn); }
.riskband-box p { font-size: 13.5px; color: var(--text-2); margin: 0; line-height: 1.6; }
.riskband-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-top: 20px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--text-2);
}

/* closing call to action */
.cta {
  text-align: center; padding: 48px 30px; border-radius: var(--r-xl);
  border: 1px solid var(--line-soft);
  background: radial-gradient(ellipse 70% 130% at 50% 0%, rgba(74,222,128,.09), transparent 70%), var(--surface);
}
.cta h2 { margin-bottom: .4em; }
.cta p { color: var(--text-2); max-width: 48ch; margin: 0 auto 26px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 900px) {
  .flow { grid-template-columns: 1fr; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; }
  .split.reverse .split-text { order: 0; }
  .vs { grid-template-columns: 1fr; gap: 12px; }
  .vs-or { display: none; }
  .costgrid { grid-template-columns: repeat(2, 1fr); }
  .riskband-grid { grid-template-columns: 1fr; }
  .riskband { padding: 22px; }
}
@media (max-width: 560px) {
  .costgrid { grid-template-columns: 1fr; }
}

/* ─────────────────────────── quote hero ─────────────────────────── */

.hero-quote { padding: 80px 0 62px; text-align: center; }

/* Centre the ambient glow and the grid fade to match the centred content. */
.hero-quote::before { inset: -55% 18% 35% 18%; }
.hero-quote::after  { mask-image: radial-gradient(ellipse 60% 62% at 50% 0%, #000 22%, transparent 76%); }

.hero-quote .eyebrow { margin-bottom: 18px; }

.hero-q {
  font-size: clamp(2.6rem, 7.4vw, 4.7rem);
  line-height: 1.04;
  letter-spacing: -.045em;
  margin: 0 auto 28px;
  max-width: 18ch;
  text-wrap: balance;
}
/* First line green, second white — the two-tone split reads as one phrase. */
.hero-q-in { color: var(--brand); }
.hero-q-2  { color: var(--text); }

/* Real typographic quotes. Inter draws these almost vertically; a display
   serif gives them the curl. Only the two glyphs are downloaded (924 bytes). */
.qm {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  color: var(--brand);
  font-size: 1.15em;
  line-height: 0;
  position: relative;
  opacity: .92;
}
.qm-open  { margin-right: .04em; top: .22em; }
.qm-close { margin-left: .01em;  top: .22em; }

.hero-quote .hero-sub {
  font-size: 1.14rem;
  max-width: 56ch;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 34px;
}
.hero-quote .hero-cta { justify-content: center; margin-bottom: 46px; }
.hero-quote .hero-note { text-align: center; }

@media (max-width: 720px) {
  .hero-quote { padding: 54px 0 44px; }
  .hero-q { max-width: none; margin-bottom: 24px; }
  .hero-quote .hero-cta .btn { flex: 1 1 100%; }
}

/* ─────────────────────────── simulator ─────────────────────────── */

.sim {
  display: grid; grid-template-columns: 1fr 380px; gap: 0;
  margin-top: 26px; border: 1px solid var(--line-soft); border-radius: var(--r-xl);
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow);
}
.sim-controls { padding: 26px 28px; }
.sim-out {
  padding: 26px 28px;
  background: linear-gradient(180deg, rgba(74,222,128,.05), var(--bg-2) 60%);
  border-left: 1px solid var(--line-soft);
}

.sim-val { font-family: var(--mono); font-size: 13px; color: var(--brand); font-weight: 650; text-transform: none; letter-spacing: 0; }

/* Six chips fit one row on desktop; still wraps on narrow screens. */
.sim-picks { display: flex; flex-wrap: wrap; gap: 7px; }
.sim-pick {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 11px 6px 7px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface-2);
  color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
  transition: border-color .15s, background .15s, color .15s;
}
.sim-pick:hover { border-color: #313b4a; color: var(--text); }
.sim-pick.on { border-color: var(--brand-2); background: rgba(74,222,128,.10); color: var(--text); }
.sim-pick .logo { width: 18px; height: 18px; border-radius: 5px; }
.sim-pick .logo-mono { font-size: 8px; }

.sim-risk { font-size: 13px; padding: 11px 14px; border-radius: var(--r-sm); line-height: 1.5; }
.sim-risk.ok   { background: rgba(74,222,128,.09); color: var(--brand); border: 1px solid rgba(74,222,128,.25); }
.sim-risk.warn { background: rgba(251,191,36,.09); color: var(--warn);  border: 1px solid rgba(251,191,36,.25); }
.sim-risk.bad  { background: rgba(248,113,113,.09); color: var(--danger); border: 1px solid rgba(248,113,113,.25); }

.sim-headline { display: flex; flex-direction: column; gap: 2px; padding-bottom: 18px; border-bottom: 1px solid var(--line-soft); margin-bottom: 16px; }
.sim-headline-k { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; }
.sim-headline-v { font-family: var(--mono); font-size: 2.35rem; font-weight: 700; letter-spacing: -.05em; color: var(--brand); line-height: 1.05; }
.sim-headline-s { font-size: 12.5px; color: var(--text-3); }

.sim-rows { display: grid; gap: 9px; font-size: 13.5px; }
.sim-row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.sim-row > span:first-child { color: var(--text-3); }
.sim-row > span:last-child { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 550; text-align: right; }
.sim-row.sep { border-top: 1px solid var(--line-soft); padding-top: 11px; margin-top: 3px; }

.sim-bar { margin-top: 20px; }
.sim-bar-track { position: relative; height: 8px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.sim-bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 5px; transition: width .35s ease, background .3s; }
.sim-bar-legend { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--text-3); font-family: var(--mono); margin-top: 6px; }

/* ─────────────────────────── token flywheel ─────────────────────────── */

.fly { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 0; align-items: stretch; margin-top: 26px; }
.fly-step {
  background: var(--surface); border: 1px solid var(--line-soft);
  border-radius: var(--r-lg); padding: 22px; position: relative;
}
.fly-step.accent { border-color: rgba(74,222,128,.3); background: linear-gradient(180deg, rgba(74,222,128,.06), var(--surface)); }
.fly-n { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: .1em; }
.fly-step h3 { font-size: 1.02rem; margin: 8px 0 8px; }
.fly-step p { font-size: 13.5px; color: var(--text-2); margin: 0 0 16px; line-height: 1.55; }
.fly-amt { font-family: var(--mono); font-size: 1.15rem; font-weight: 700; letter-spacing: -.03em; }
.fly-amt.ok { color: var(--brand); }
.fly-amt small { display: block; font-size: 11px; font-weight: 400; color: var(--text-3); margin-top: 3px; letter-spacing: 0; }
.fly-arrow { display: grid; place-items: center; color: var(--text-3); padding: 0 14px; }

@media (max-width: 980px) {
  .sim { grid-template-columns: 1fr; }
  .sim-out { border-left: 0; border-top: 1px solid var(--line-soft); }
  .fly { grid-template-columns: 1fr; gap: 12px; }
  .fly-arrow { transform: rotate(90deg); padding: 0; }
}

/* Quiet inline note — carries a caveat without an amber box shouting it. */
.flow-note {
  margin: 22px 0 0; font-size: 13px; color: var(--text-3);
  text-align: center; line-height: 1.6;
}
.flow-note a { color: var(--text-2); text-decoration: underline; }
.flow-note a:hover { color: var(--brand); }

/* ───────────────────── hero: copy left, animation right ───────────────────── */

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: 40px 56px;
  text-align: left;
}
.hero-quote .hero-grid .eyebrow { margin-bottom: 16px; }

/* The quote block was centred; inside the grid it anchors left. */
.hero-grid .hero-q   { margin-left: 0; margin-right: 0; max-width: 13ch; }
.hero-grid .hero-sub { margin-left: 0; margin-right: 0; max-width: 46ch; }
.hero-grid .hero-cta { justify-content: flex-start; margin-bottom: 0; }

/* Breathing room before the stat row. */
.hero-quote .stats { margin-top: 46px; }

/* Pull the ambient glow towards the animation so the right half is not flat. */
.hero-quote::before { inset: -55% -6% 32% 30%; }
.hero-quote::after  { mask-image: radial-gradient(ellipse 72% 64% at 42% 0%, #000 22%, transparent 78%); }

/* ───────────────────────────── the hero coin ─────────────────────────────

   One tokenized stock, held and lit, with USDG spilling out of it. The coin
   never shrinks and never leaves — that is the whole message, so everything
   else in here is subordinate to keeping it solid and central.             */

.hero-viz { width: 100%; display: flex; justify-content: center; container-type: inline-size; }

.viz-stage {
  position: relative;
  width: 470px; height: 300px;
  flex: 0 0 470px;
  transform-origin: top center;
  perspective: 900px;
}
.viz-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* The value of the held stock, compounding away behind everything else.
   Faded at the edges so it reads as backdrop rather than as a widget. */
.viz-chart {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  opacity: .7;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0%, #000 14%, #000 86%, transparent 100%);
}

/* Running value of the held stock, top right. Deliberately quiet: the coin is
   the subject, this is a readout. */
.viz-ticker {
  position: absolute; right: 16px; top: 14px; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-end; gap: 3px;
  pointer-events: none;
}
.viz-ticker-k {
  font-size: 9.5px; font-weight: 650; letter-spacing: .11em; text-transform: uppercase;
  color: var(--text-3);
}
.viz-ticker-v {
  font-family: var(--mono); font-size: 17px; font-weight: 600;
  letter-spacing: -.01em; color: var(--brand);
}

/* Odometer: each digit is a window onto a vertical reel of 0-9 plus a repeat
   of 0, so a 9 can roll forward into the next 0 instead of spinning back. */
.odo { display: inline-flex; align-items: baseline; font-variant-numeric: tabular-nums; }
.odo-d { display: inline-block; overflow: hidden; height: 1em; line-height: 1em; }
.odo-r { display: block; transition: transform .52s cubic-bezier(.22, .68, .3, 1); }
.odo-r > span { display: block; height: 1em; line-height: 1em; text-align: center; }
.odo-s { display: inline-block; }

/* Ambient light the coin sits in. */
.viz-aura {
  position: absolute; left: 50%; top: 122px;
  width: 400px; height: 400px; margin: -200px 0 0 -200px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(74, 222, 128, .17) 0%, rgba(74, 222, 128, .06) 34%, transparent 66%);
  animation: vizAura 7s ease-in-out infinite;
}

/* Slow rings breathing outward, so the coin reads as a source. */
.viz-pulse {
  position: absolute; left: 50%; top: 122px;
  width: 164px; height: 164px; margin: -82px 0 0 -82px;
  border-radius: 50%; border: 1px solid rgba(74, 222, 128, .34);
  opacity: 0; pointer-events: none;
  animation: vizPulse 4.8s cubic-bezier(.2, .5, .3, 1) infinite;
}
.viz-pulse-2 { animation-delay: -1.6s; }
.viz-pulse-3 { animation-delay: -3.2s; }

/* ── the coin ── */

.viz-coin { position: absolute; left: 50%; top: 122px; transform: translate(-50%, -50%); }
.viz-coin-float { animation: vizFloat 6s ease-in-out infinite; }
.viz-coin-flip  { transform-style: preserve-3d; }
.viz-coin-flip.is-flip { animation: vizFlip .72s cubic-bezier(.45, 0, .25, 1); }

.viz-coin-face {
  position: relative;
  width: 152px; height: 152px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 33% 25%, rgba(255, 255, 255, .13), transparent 48%),
    linear-gradient(158deg, #1c2431 0%, #10151d 60%, #0a0e14 100%);
  border: 1px solid rgba(255, 255, 255, .11);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .15),
    inset 0 -16px 30px rgba(0, 0, 0, .6),
    0 24px 48px rgba(0, 0, 0, .58),
    0 0 70px rgba(74, 222, 128, .15);
  overflow: hidden;
}
/* Milled inner rim. */
.viz-coin-face::before {
  content: ''; position: absolute; inset: 11px;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .07);
}
/* Specular sweep travelling across the face. */
.viz-coin-shine {
  position: absolute; inset: -40%;
  background: linear-gradient(74deg, transparent 38%, rgba(255, 255, 255, .11) 48%, transparent 58%);
  animation: vizShine 6s cubic-bezier(.5, 0, .5, 1) infinite;
  pointer-events: none;
}

.viz-coin-face img {
  position: absolute; width: 70px; height: 70px; border-radius: 50%;
  opacity: 0; transform: scale(.9);
  transition: opacity .18s ease, transform .18s ease;
}
.viz-coin-face img.is-on { opacity: 1; transform: scale(1); }

/* Contact shadow, so the coin sits in the scene rather than on top of it. */
.viz-shadow {
  position: absolute; left: 50%; top: 104px;
  width: 146px; height: 22px; margin-left: -73px;
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(ellipse, rgba(0, 0, 0, .55), transparent 72%);
  animation: vizShadow 6s ease-in-out infinite;
}

/* ── USDG spilling out ── */

.viz-drop {
  position: absolute; left: 50%; top: 122px;
  width: 42px; height: 42px; margin: -21px 0 0 -21px;
  border-radius: 50%;
  opacity: 0; pointer-events: none;
  background: var(--surface);
  box-shadow: 0 5px 16px rgba(0, 0, 0, .55), 0 0 22px rgba(74, 222, 128, .34);
  animation: vizDrop 3.4s cubic-bezier(.22, .62, .3, 1) infinite;
  animation-delay: calc(var(--i) * -.567s);   /* 3.4s / 6, evenly spaced */
}
.viz-drop img { width: 42px; height: 42px; border-radius: 50%; display: block; }

/* ── choreography ── */

@keyframes vizFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}
@keyframes vizShadow {
  0%, 100% { transform: scaleX(1);   opacity: .85; }
  50%      { transform: scaleX(.88); opacity: .55; }
}
@keyframes vizFlip {
  0%   { transform: rotateY(0deg); }
  50%  { transform: rotateY(90deg); }
  100% { transform: rotateY(0deg); }
}
@keyframes vizAura {
  0%, 100% { transform: scale(1);    opacity: .85; }
  50%      { transform: scale(1.08); opacity: 1; }
}
@keyframes vizPulse {
  0%   { transform: scale(.9);  opacity: 0; }
  18%  { opacity: .5; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes vizShine {
  0%, 62% { transform: translateX(-62%); }
  100%    { transform: translateX(62%); }
}
@keyframes vizDrop {
  0%   { transform: translate(0, 0) scale(.25);                     opacity: 0; }
  14%  { opacity: 1; }
  55%  { transform: translate(calc(var(--dx) * .62), calc(var(--dy) * .5)) scale(1); opacity: 1; }
  100% { transform: translate(var(--dx), var(--dy)) scale(.72);     opacity: 0; }
}

/* ── narrower containers: scale the stage, keep the geometry ── */

/* scale() shrinks the paint, not the layout box, so claw back the difference:
   300px tall unscaled, so the waste is 300 * (1 - scale).                    */
@container (max-width: 470px) { .viz-stage { transform: scale(.86); margin-bottom: -42px;  } }
@container (max-width: 400px) { .viz-stage { transform: scale(.74); margin-bottom: -78px;  } }
@container (max-width: 340px) { .viz-stage { transform: scale(.64); margin-bottom: -108px; } }
@container (max-width: 290px) { .viz-stage { transform: scale(.55); margin-bottom: -135px; } }

/* The readout shrinks with the stage, so grow the type to hold it steady at
   roughly its full-size rendered height. */
@container (max-width: 470px) { .viz-ticker-k { font-size: 11px; } .viz-ticker-v { font-size: 20px; } }
@container (max-width: 400px) { .viz-ticker-k { font-size: 13px; } .viz-ticker-v { font-size: 23px; } }
@container (max-width: 340px) { .viz-ticker-k { font-size: 15px; } .viz-ticker-v { font-size: 27px; } }
@container (max-width: 290px) { .viz-ticker-k { font-size: 17px; } .viz-ticker-v { font-size: 31px; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 30px; }
  .hero-grid .hero-q,
  .hero-grid .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-grid .hero-cta { justify-content: center; }
  .hero-quote::before { inset: -55% 18% 35% 18%; }
  .hero-quote::after  { mask-image: radial-gradient(ellipse 60% 62% at 50% 0%, #000 22%, transparent 76%); }
}

/* Motion off: the coin, lit and still. */
@media (prefers-reduced-motion: reduce) {
  .viz-coin-float, .viz-coin-shine, .viz-aura, .viz-pulse, .viz-drop, .viz-shadow { animation: none; }
  .viz-pulse { opacity: .22; }
  .viz-drop  { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(.85); }
  .viz-coin-face img { transition: none; }
}
