/* LEASH design system. See ../../DESIGN.md. Built 2026-09-16. */

:root {
  --paper: #F4F5F7;
  --white: #FFFFFF;
  --slate: #0C0E12;
  --slate2: #151A22;
  --ink: #0C0E12;
  --ink2: #5B6371;
  --ink3: #8A93A1;
  --line: #E1E4E9;
  --line-d: #232935;
  --allow: #1B4DFF;
  --allow-lift: #4B76FF;
  --stop: #FF2D20;
  --hold: #FFA51F;
  --ok: #00A870;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Inter", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", Consolas, Menlo, monospace;
  --shadow: 0 2px 8px rgba(12,14,18,.06);
  --shadow-up: 0 6px 22px rgba(12,14,18,.10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 27px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4, p, figure { margin: 0; }
img { max-width: 100%; display: block; }
a { color: var(--allow); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- type ---------- */
.dp { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 112; letter-spacing: -0.022em; line-height: 1.04; }
.h1 { font-size: 68px; line-height: 1.0; letter-spacing: -0.03em; }
.h2 { font-size: 46px; }
.h3 { font-size: 32px; }
.h4 { font-size: 22px; line-height: 1.2; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.kick { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink3); }
.lede { font-size: 20px; line-height: 31px; color: var(--ink2); }
.sm { font-size: 15px; line-height: 24px; }
.xs { font-family: var(--mono); font-size: 12px; line-height: 20px; color: var(--ink2); }
.dim { color: var(--ink2); }
.dim3 { color: var(--ink3); }
.c-allow { color: var(--allow); } .c-stop { color: var(--stop); } .c-hold { color: var(--hold); } .c-ok { color: var(--ok); }
.up { text-transform: uppercase; letter-spacing: .1em; }
.nowrap { white-space: nowrap; }

/* ---------- layout ---------- */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 40px; }
.sec { padding: 112px 0; }
.sec-tight { padding: 72px 0; }
.head { max-width: 780px; display: flex; flex-direction: column; gap: 18px; }
.head .kick { margin-bottom: 2px; }
.cols { display: grid; grid-template-columns: repeat(12, minmax(0,1fr)); gap: 32px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; }
.grid5 { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mt { margin-top: 24px; } .mt2 { margin-top: 48px; } .mt3 { margin-top: 72px; }

/* section rule with anchors */
.rule { position: relative; height: 1px; background: var(--line); max-width: 1180px; margin: 0 auto; }
.rule i { position: absolute; top: -3px; width: 6px; height: 6px; background: var(--ink); }
.rule i:first-child { left: 40px; } .rule i:last-child { right: 40px; }
.dark .rule { background: var(--line-d); } .dark .rule i { background: var(--white); }

/* ---------- dark blocks ---------- */
.dark { background: var(--slate); color: var(--white); }
.dark .kick { color: var(--ink3); }
.dark .lede, .dark .dim { color: #A9B1BF; }
.dark a { color: var(--allow-lift); }
.dark .sheet { background: var(--slate2); border-color: var(--line-d); color: var(--white); box-shadow: none; }
.dark .sheet-hd { border-bottom-color: var(--line-d); }
.dark .kv b, .dark .kv span { border-color: var(--line-d); }
.dark .meter { background: #202634; }
.dark .pill-draft { color: #A9B1BF; border-color: #3A424F; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40; background: rgba(244,245,247,.92);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line);
}
.nav-in { max-width: 1180px; margin: 0 auto; padding: 0 40px; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand .dp { font-size: 20px; letter-spacing: .02em; }
.nav-links { display: flex; gap: 22px; margin-left: 20px; }
.nav-links a { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--ink2); text-transform: uppercase; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 20px; border-radius: 4px; font-family: var(--mono);
  font-size: 13px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid transparent; transition: background .12s, border-color .12s, color .12s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--allow); color: #fff; }
.btn-primary:hover { background: #1440DD; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--white); }
.btn-ghost:hover { border-color: var(--ink3); }
.dark .btn-ghost { background: transparent; border-color: var(--line-d); color: var(--white); }
.dark .btn-ghost:hover { border-color: #49525F; }
.btn-stop { border-color: var(--stop); color: var(--stop); background: transparent; }
.btn-stop:hover { background: var(--stop); color: #fff; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 11px; border-radius: 3px; }
.btn[disabled] { opacity: .35; pointer-events: none; }

/* ---------- pills ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px;
  border-radius: 2px; font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; border: 1px solid transparent; white-space: nowrap;
}
.pill-draft { color: var(--ink3); border-color: var(--line); }
.pill-active { background: var(--allow); color: #fff; }
.pill-held { background: var(--hold); color: #2A1B00; }
.pill-ended { background: var(--stop); color: #fff; }
.pill-settled { color: var(--ok); border-color: var(--ok); }
.pill-live { color: var(--ok); border-color: var(--line); background: var(--white); }
.pill-live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.pill-preview { color: var(--hold); border-color: var(--hold); }
.dark .pill-live { background: transparent; border-color: var(--line-d); }

/* ---------- the sheet ---------- */
.sheet {
  background: var(--white); border: 1px solid var(--line); border-radius: 4px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden;
}
.sheet-hd { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.sheet-hd .ttl { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 112; font-size: 16px; letter-spacing: -.01em; }
.sheet-hd .pill { margin-left: auto; }
.sheet-bd { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.sheet-ft { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dark .sheet-ft { border-top-color: var(--line-d); }
.sheet-hover:hover { box-shadow: var(--shadow-up); }
.sheet.is-stop { border-color: var(--stop); }

/* key/value lines */
.kv { display: flex; flex-direction: column; gap: 0; font-family: var(--mono); font-size: 12px; line-height: 20px; }
.kv > div { display: flex; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.kv > div:first-child { border-top: 0; padding-top: 0; }
.dark .kv > div { border-top-color: var(--line-d); }
.kv span { color: var(--ink3); flex: 0 0 auto; min-width: 88px; }
.kv b { font-weight: 500; margin-left: auto; text-align: right; }

/* meters */
.meter-wrap { display: flex; flex-direction: column; gap: 6px; }
.meter-lab { display: flex; align-items: baseline; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--ink3); }
.meter-lab b { margin-left: auto; color: var(--ink); font-weight: 500; }
.dark .meter-lab b { color: var(--white); }
.meter { position: relative; height: 6px; background: var(--line); border-radius: 1px; overflow: hidden; }
.meter i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--allow); transition: width .35s ease, background .2s; }
.meter.over i { background: var(--stop); }

/* stop block */
.stopblock {
  display: flex; align-items: center; gap: 10px; background: var(--stop); color: #fff;
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: .1em;
  padding: 8px 10px; text-transform: uppercase;
}
.stopblock em { font-style: normal; font-weight: 400; letter-spacing: .02em; text-transform: none; opacity: .92; margin-left: auto; }
.stopblock.in { animation: pop .18s ease-out 1; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.okblock {
  display: flex; align-items: center; gap: 10px; background: rgba(0,168,112,.08);
  border: 1px solid rgba(0,168,112,.3); color: #06603F;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 8px 10px;
}
.dark .okblock { background: rgba(0,168,112,.12); color: #5BE0AE; border-color: rgba(0,168,112,.35); }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: start; }
.hero h1 { max-width: 12ch; }
.hero .lede { max-width: 46ch; margin-top: 22px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-family: var(--mono); font-size: 12px; color: var(--ink3); }
.taut-lab { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; color: var(--ink3); text-transform: uppercase; margin-bottom: 8px; }
.taut { display: flex; align-items: center; height: 14px; margin-bottom: 18px; }
.taut i { width: 6px; height: 6px; background: var(--ink); flex: 0 0 auto; }
.taut u { flex: 1 1 auto; height: 2px; background: var(--ink); position: relative; transform: scaleX(0); transform-origin: left; animation: taut .5s ease-out .1s forwards; }
@keyframes taut { to { transform: scaleX(1); } }
.taut.is-stop u { background: var(--stop); }
.taut.is-stop i { background: var(--stop); }
.taut.is-stop u::after { content: ""; position: absolute; left: 50%; top: -5px; width: 12px; height: 12px; background: var(--stop); transform: translateX(-50%) rotate(45deg); }
.dark .taut i { background: var(--white); } .dark .taut u { background: var(--white); }
.hero-sheet { animation: rise .24s ease-out .18s both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* full bleed photo band */
.band { width: 100%; height: 360px; overflow: hidden; position: relative; background: var(--slate); }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 40px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em; color: #fff;
  background: linear-gradient(transparent, rgba(12,14,18,.55));
}

/* ---------- comparison ---------- */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.vs-x { display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; color: var(--ink3); }

/* the authorization line */
.authline { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 28px 32px; box-shadow: var(--shadow); }
.authline .row-a { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 14px; }
.authline .row-a:first-of-type { border-top: 0; }
.box { width: 18px; height: 18px; border: 2px solid var(--ink); flex: 0 0 auto; position: relative; border-radius: 2px; }
.box.on::after { content: ""; position: absolute; left: 3px; top: 1px; width: 7px; height: 12px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(42deg); }
.box.off { border-color: var(--ink3); }

/* ---------- clause cards ---------- */
.clause .ic { width: 20px; height: 20px; flex: 0 0 auto; }
.clause .ic path, .clause .ic circle, .clause .ic rect, .clause .ic line { stroke: var(--ink); stroke-width: 1.5; fill: none; stroke-linecap: square; }
.dark .clause .ic path, .dark .clause .ic circle, .dark .clause .ic rect, .dark .clause .ic line { stroke: var(--white); }

/* ---------- states ---------- */
.states { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.state { flex: 1 1 0; min-width: 150px; padding: 18px 16px; border-left: 1px solid var(--line-d); display: flex; flex-direction: column; gap: 8px; }
.state:first-child { border-left: 0; padding-left: 0; }
.state h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; }
.state p { font-size: 13px; line-height: 20px; color: #A9B1BF; }

/* the purse diagram */
.purse { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; align-items: center; }
.purse-box { border: 1px solid var(--line-d); border-radius: 4px; padding: 20px; background: var(--slate2); }
.arrow { display: flex; align-items: center; gap: 0; padding: 0 12px; color: #A9B1BF; font-family: var(--mono); font-size: 11px; }

/* ---------- console ---------- */
.console {
  background: #08090C; border: 1px solid var(--line-d); border-radius: 4px;
  font-family: var(--mono); font-size: 12.5px; line-height: 21px; overflow: hidden;
}
.console-hd { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line-d); color: var(--ink3); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.console-bd { padding: 14px; min-height: 348px; display: flex; flex-direction: column; gap: 2px; }
.cline { display: grid; grid-template-columns: 74px 96px minmax(0,1fr); gap: 12px; padding: 4px 0; opacity: 0; animation: cin .2s ease-out forwards; }
@keyframes cin { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }
.cline .t { color: #545C6B; }
.cline .k { font-weight: 600; letter-spacing: .08em; }
.cline .m { color: #C3CAD6; word-break: break-word; }
.cline.act .k { color: var(--allow-lift); }
.cline.ref .k { color: var(--stop); }
.cline.held .k { color: var(--hold); }
.cline.end .k { color: var(--stop); }
.cline.set .k { color: var(--ok); }
.cline .hash { color: #545C6B; }
.console-ft { padding: 10px 14px; border-top: 1px solid var(--line-d); display: flex; align-items: center; gap: 10px; }


/* kv variants */
.kv-stack > div { flex-direction: column; gap: 2px; }
.kv-stack b { margin-left: 0; text-align: left; }
.kv-num span { min-width: 18px; }
.kv-num b { margin-left: 0; text-align: left; }
.clause .sheet-bd .kv { margin-top: auto; }
.console { align-self: start; }

/* ---------- agent cards ---------- */
.agent { display: flex; gap: 0; }
.agent .por { width: 108px; height: 108px; flex: 0 0 auto; background: var(--paper); border-right: 1px solid var(--line); }
.dark .agent .por { border-right-color: var(--line-d); }
.agent .por img { width: 100%; height: 100%; object-fit: cover; }
.agent .bd p.sm { min-height: 38px; }
.agent .bd { padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.agent .rate { margin-left: auto; text-align: right; }
.agent .rate b { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 112; font-size: 30px; line-height: 1; letter-spacing: -.02em; display: block; }

.bignum { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 112; font-size: 132px; line-height: .86; letter-spacing: -.045em; }

/* ---------- stepper ---------- */
.step { display: flex; gap: 0; flex-wrap: wrap; }
.step > div { flex: 1 1 0; min-width: 140px; padding: 16px 14px 0; border-top: 2px solid var(--line); }
.step > div.on { border-top-color: var(--allow); }
.step > div.done { border-top-color: var(--ink); }
.step h4 { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 6px; min-height: 32px; }
.step p { font-size: 13px; line-height: 20px; color: var(--ink2); }

/* ---------- tables ---------- */
table { border-collapse: collapse; width: 100%; }
th, td { text-align: left; padding: 12px 16px 12px 0; font-size: 14px; line-height: 22px; border-top: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); font-weight: 500; }
td.mono, th.mono { font-family: var(--mono); font-size: 12px; }
.dark th, .dark td { border-top-color: var(--line-d); }
.tbl-wrap { overflow-x: auto; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); padding: 56px 0 72px; }
.addr { font-family: var(--mono); font-size: 12px; }
.addr div { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.addr div:first-child { border-top: 0; }
.addr span { color: var(--ink3); flex: 0 0 132px; }
.addr code { color: var(--ink); word-break: break-all; }
.addr .pill { margin-left: auto; }

/* ---------- app ---------- */
.app-body { background: var(--paper); }
.app-head { position: sticky; top: 0; z-index: 30; background: var(--white); border-bottom: 1px solid var(--line); }
.app-head-in { max-width: 1240px; margin: 0 auto; padding: 0 24px; height: 60px; display: flex; align-items: center; gap: 18px; }
.app-tabs { display: flex; gap: 4px; margin-left: 16px; }
.app-tabs a { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink2); padding: 8px 12px; border-radius: 3px; }
.app-tabs a:hover { background: var(--paper); text-decoration: none; }
.app-tabs a.on { background: var(--ink); color: #fff; }
.app-main { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; }
.app-foot { max-width: 1240px; margin: 0 auto; padding: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; line-height: 19px; color: var(--ink3); }
.view { display: none; } .view.on { display: block; }
.two-col { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; align-items: start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink3); }
.field .hint { font-family: var(--mono); font-size: 11px; color: var(--ink3); }
input[type=text], input[type=number], select {
  width: 100%; height: 40px; padding: 0 12px; background: var(--white);
  border: 1px solid var(--line); border-radius: 3px; font-family: var(--mono); font-size: 13px; color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--allow); box-shadow: 0 0 0 3px rgba(27,77,255,.12); }
input[type=range] { width: 100%; accent-color: var(--allow); }
.check { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.check:first-of-type { border-top: 0; }
.check input { accent-color: var(--allow); width: 16px; height: 16px; }
.ledger { font-family: var(--mono); font-size: 12px; line-height: 20px; }
.ledger .lrow { display: grid; grid-template-columns: 70px 92px minmax(0,1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.ledger .lrow:first-child { border-top: 0; }
.ledger .k { font-weight: 600; letter-spacing: .06em; }
.ledger .k.ACT { color: var(--allow); } .ledger .k.REFUSED, .ledger .k.ENDED, .ledger .k.REVOKED { color: var(--stop); }
.ledger .k.HELD { color: #A66A00; } .ledger .k.SETTLED, .ledger .k.ACTIVATED { color: var(--ok); }
.ledger .t { color: var(--ink3); }
.ledger .m { color: var(--ink2); }
.ledger .m b { color: var(--ink); font-weight: 500; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; display: flex; flex-direction: column; gap: 8px; max-width: 380px; }
.toast > div { background: var(--ink); color: #fff; border-radius: 4px; padding: 12px 14px; font-family: var(--mono); font-size: 12px; line-height: 19px; box-shadow: var(--shadow-up); border-left: 3px solid var(--allow); }
.toast > div.bad { border-left-color: var(--stop); }
.toast > div.good { border-left-color: var(--ok); }
.empty { padding: 48px 20px; text-align: center; color: var(--ink3); font-family: var(--mono); font-size: 13px; }

/* ---------- docs ---------- */
.doc { max-width: 760px; }
.doc h2 { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 112; font-size: 30px; letter-spacing: -.02em; margin: 52px 0 16px; }
.doc h3 { font-family: var(--display); font-weight: 700; font-variation-settings: "wdth" 112; font-size: 20px; margin: 34px 0 10px; }
.doc p { margin: 0 0 18px; color: #2C323C; }
.doc ul { margin: 0 0 18px; padding-left: 20px; }
.doc li { margin-bottom: 10px; color: #2C323C; }
.doc .lead { font-size: 20px; line-height: 31px; color: var(--ink); }
.doc table { margin-bottom: 24px; }
.doc-side { position: sticky; top: 92px; font-family: var(--mono); font-size: 12px; line-height: 26px; }
.doc-side a { display: block; color: var(--ink2); }
.doc-side a:hover { color: var(--ink); text-decoration: none; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .cols { grid-template-columns: minmax(0,1fr); gap: 28px; }
  .cols > * { grid-column: 1 / -1 !important; }
  .h1 { font-size: 52px; } .h2 { font-size: 36px; } .h3 { font-size: 26px; }
  .bignum { font-size: 96px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .nav-links { display: none; }
  .grid5, .grid4, .grid3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .two-col { grid-template-columns: 1fr; }
  .band { height: 260px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; line-height: 26px; }
  .wrap { padding: 0 20px; }
  .nav-in, .app-head-in { padding: 0 16px; }
  .rule i:first-child { left: 20px; } .rule i:last-child { right: 20px; }
  .sec { padding: 64px 0; } .sec-tight { padding: 48px 0; } .hero { padding: 48px 0 40px; }
  .h1 { font-size: 40px; } .h2 { font-size: 30px; } .h3 { font-size: 22px; } .lede { font-size: 17px; line-height: 27px; }
  .bignum { font-size: 68px; }
  .grid5, .grid4, .grid3, .grid2, .vs, .purse { grid-template-columns: 1fr; }
  .vs-x { display: none; }
  .purse .arrow { padding: 8px 0; justify-content: center; }
  .band { height: 200px; } .band figcaption { padding: 12px 20px; }
  .states { flex-direction: column; }
  .state { border-left: 0; border-top: 1px solid var(--line-d); padding-left: 0; }
  .state:first-child { border-top: 0; }
  .step > div { min-width: 100%; }
  .cline, .ledger .lrow { grid-template-columns: 62px 88px minmax(0,1fr); gap: 8px; }
  .console-bd { min-height: 0; font-size: 11.5px; }
  .agent .por { width: 84px; height: 84px; }
  .app-main { padding: 20px 16px 60px; }
  .app-head-in { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 10px; gap: 10px; }
  .app-tabs { margin-left: 0; order: 3; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .app-tabs a { white-space: nowrap; }
  .nav-right { gap: 8px; }
  .nav-right .pill { font-size: 10px; padding: 0 6px; }
  .authline { padding: 20px; }
  .stopblock { flex-direction: column; align-items: flex-start; gap: 4px; }
  .stopblock em { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; animation-delay: 0ms !important; transition-duration: .001ms !important; }
  .tautline .ln { stroke-dashoffset: 0; }
}

/* ---------- wallet picker ---------- */
.wsheet-back { position: fixed; inset: 0; z-index: 80; background: rgba(12,14,18,.55);
               backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center;
               padding: 20px; animation: wfade .14s ease-out; }
@keyframes wfade { from { opacity: 0; } to { opacity: 1; } }
.wsheet { background: var(--white); border: 1px solid var(--line); border-radius: 6px;
          box-shadow: var(--shadow-up); width: 100%; max-width: 420px; overflow: hidden;
          animation: wrise .16s ease-out; }
@keyframes wrise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wclose { margin-left: auto; font-size: 26px; line-height: 1; color: var(--ink3); padding: 0 4px; }
.wclose:hover { color: var(--ink); }
.wlist { display: flex; flex-direction: column; gap: 8px; }
.wrow { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
        background: var(--white); border: 1px solid var(--line); border-radius: 4px;
        padding: 13px 14px; transition: border-color .12s, background .12s; }
.wrow:hover { border-color: var(--allow); background: #FAFBFF; }
.wrow img { width: 26px; height: 26px; border-radius: 5px; flex: 0 0 auto; }
.wrow .wdot { width: 26px; height: 26px; border-radius: 5px; background: var(--paper);
              border: 1px solid var(--line); flex: 0 0 auto; }
.wrow b { font-weight: 500; font-size: 15px; }
.wrow .pill { margin-left: auto; }
.wdisc { align-self: flex-start; }
