/*
 * The app's base styles: a dark treasury console.
 *
 * One accent, hairline separation, and weight carried by type and space rather than boxes.
 * Controls behave like macOS controls: a fill that darkens on hover, a slight press, a focus
 * ring beside the control rather than moving it, and short motion that stops under
 * prefers-reduced-motion. The blues, hairlines and motion curves come from veyns.css so the app
 * matches the marketing site. The dark ground lets the one blue accent mark the action and
 * makes a mono amount the brightest thing on screen. light.css re-tokenises this for the light
 * theme.
 */
:root {
  /* surfaces: near-black with a blue cast */
  --page: #070a12;
  --surface: #0d1220;
  --surface-2: #121a2b;
  --surface-3: #0a101c;
  /* hairlines from veyns.css: blue-grey, since neutral grey looks wrong on blue-black */
  --hair: rgba(150, 185, 240, .14);
  --hair-strong: rgba(150, 185, 240, .26);

  /* ink */
  --text: #ffffff;
  --text-2: rgba(223, 234, 250, .78);
  --muted: rgba(196, 214, 238, .6);
  --faint: rgba(196, 214, 238, .36);

  /* accent and its states */
  --brand: #1272ff;
  --brand-hover: #3488ff;
  --brand-press: #0b59d2;
  /* Translucent tints sit on any surface without banding. */
  --brand-tint: rgba(18, 114, 255, .14);
  --brand-tint-2: rgba(18, 114, 255, .24);
  --ring: rgba(79, 157, 255, .45);

  /* Lighter than #d70015 and #0a7d46, which are legible on white but vanish on black. */
  --danger: #ff6170;
  --danger-hover: #ff8692;
  --danger-tint: rgba(255, 97, 112, .12);
  --ok: #3ddc97;
  --ok-tint: rgba(61, 220, 151, .13);

  --sans: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', 'Cascadia Mono', monospace;

  /* radii: controls, cards, sheets */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --pill: 980px;

  /*
   * A drop shadow is invisible on a dark ground, so each lift is a hairline of light along the
   * top edge (which separates the panel) plus a deep ambient pool underneath (which gives height).
   */
  --lift-1: inset 0 1px 0 rgba(255, 255, 255, .05), 0 1px 2px rgba(0, 0, 0, .5);
  --lift-2: inset 0 1px 0 rgba(255, 255, 255, .06), 0 10px 30px -12px rgba(0, 0, 0, .8);
  --lift-3: inset 0 1px 0 rgba(255, 255, 255, .08), 0 30px 80px -24px rgba(0, 0, 0, .9);
  /* the accent's own glow, for primary actions */
  --glow: 0 0 0 1px rgba(79, 157, 255, .3), 0 8px 26px -8px rgba(18, 114, 255, .55);

  /*
   * One measure for the whole site. It lives on :root because the header is a sibling of the
   * pages; defined lower down, the header couldn't see it and lost its padding.
   */
  --measure: 1240px;
  --gutter: max(20px, 5vw, calc((100% - var(--measure)) / 2));

  --ease: cubic-bezier(.4, 0, .2, 1);
  --quick: .16s var(--ease);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page);
  color: var(--text);
  font: 400 16px/1.47 var(--sans);
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/*
 * Two wide, faint pools of accent so the flat #070a12 doesn't look switched off: top left and
 * far right. Fixed and behind everything, so no panel has to opt out.
 *
 * `pointer-events: none` is required: without it this layer swallows every click on the page.
 */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 12% -5%, rgba(18, 114, 255, .16), transparent 60%),
    radial-gradient(700px 500px at 100% 0%, rgba(79, 157, 255, .08), transparent 55%);
}

/*
 * Mono face and tabular figures for every number, so amounts, fees, countdowns and txids align
 * in columns and a live countdown doesn't jitter.
 */
.mono, .amount, .sats, .txid, .countdown, code, kbd, samp {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum' 1, 'zero' 1;
}

/* the faintest wash of accent, top of page only */
.field {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(64vw 40vh at 82% -14%, rgba(10, 98, 255, .06), transparent 66%),
    radial-gradient(48vw 34vh at 4% -8%, rgba(10, 98, 255, .045), transparent 68%);
}

/* ------------------------------------------------------------ type scale */

h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.12; letter-spacing: -.025em; }
h2 { font-size: 17px; letter-spacing: -.018em; }
p { margin: 0; }
a { color: var(--brand); text-underline-offset: 2px; }
code { font-family: var(--mono); font-size: .9em; letter-spacing: -.01em; }

.eyebrow {
  font: 600 11px/1.2 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--muted);
}
.quiet { color: var(--text-2); }
.fine { font-size: 13px; line-height: 1.5; color: var(--muted); }
.small { font-size: 13px; }
.muted { color: var(--muted); }
.error { min-height: 1.35em; font-size: 13.5px; line-height: 1.45; color: var(--danger); }

/* Hide empty boxes; they would still take their parent's gap. */
.error:empty, .ranges:empty, .invites:empty, .rule-rows:empty, .requests:empty,
.member-rows:empty, .accounts:empty, .sheet-foot:empty, .row:empty, .ticks:empty,
.fiat:empty { display: none; }
.danger-text { color: var(--danger); }

/* --------------------------------------------------------------- header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 28px;
  background: rgba(13, 18, 32, .72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--hair);
}
.mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.02em;
}
.mark img { display: block; }
.who { display: flex; align-items: center; gap: 14px; font-size: 14px; }

/* ---------------------------------------------------------------- chips */

.chip {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border: 0;
  border-radius: var(--pill);
  background: var(--surface-3);
  font: 500 11px/1 var(--sans);
  letter-spacing: .02em;
  color: var(--text-2);
  white-space: nowrap;
}
.chip.soft { background: var(--surface-3); color: var(--muted); }
.chip.muted { color: var(--faint); }
.chip.warn { background: var(--danger-tint); color: var(--danger); }

/* -------------------------------------------------------------- buttons */

.btn {
  --btn-bg: var(--surface);
  --btn-fg: var(--text);
  --btn-edge: var(--hair-strong);
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 19px;
  border: 1px solid var(--btn-edge);
  border-radius: var(--pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 500 15px/1 var(--sans);
  letter-spacing: -.012em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--quick), border-color var(--quick), color var(--quick),
    transform .1s var(--ease), box-shadow var(--quick);
}
.btn:hover:not(:disabled) { background: var(--surface-3); }
.btn:active:not(:disabled) { transform: scale(.972); }
.btn:disabled { opacity: .4; cursor: default; }

.btn.brand {
  --btn-bg: var(--brand);
  --btn-fg: #fff;
  --btn-edge: transparent;
  box-shadow: 0 1px 2px rgba(10, 98, 255, .24);
}
.btn.brand:hover:not(:disabled) { background: var(--brand-hover); }
.btn.brand:active:not(:disabled) { background: var(--brand-press); }

.btn.ghost { --btn-bg: var(--surface); --btn-edge: var(--hair-strong); }
.btn.ghost:hover:not(:disabled) { background: var(--surface-3); }

.btn.sm, .btn.small { height: 32px; padding: 0 14px; font-size: 13.5px; }
.btn.lg { height: 48px; padding: 0 26px; font-size: 16px; }
.btn.wide { width: 100%; }

.btn.danger { --btn-fg: var(--danger); --btn-edge: rgba(215, 0, 21, .28); }
.btn.danger:hover:not(:disabled) { background: var(--danger-tint); }
.btn.danger-solid { --btn-bg: var(--danger); --btn-fg: #fff; --btn-edge: transparent; }
.btn.danger-solid:hover:not(:disabled) { background: var(--danger-hover); }

.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: 500 14px/1.3 var(--sans);
  letter-spacing: -.01em;
  cursor: pointer;
  transition: color var(--quick);
}
.link:hover { color: var(--brand-hover); text-decoration: underline; text-underline-offset: 2px; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: 400 16px/1 var(--sans);
  cursor: pointer;
  transition: background-color var(--quick), color var(--quick), border-color var(--quick), transform .1s var(--ease);
}
.icon-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:hover:not(:disabled) { background: var(--surface-3); color: var(--text); }
.icon-btn:active:not(:disabled) { transform: scale(.92); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.icon-btn.danger:hover { background: var(--danger-tint); color: var(--danger); }
.side-head .icon-btn { border-color: var(--hair-strong); }
.side-head .icon-btn:hover { border-color: transparent; background: var(--brand-tint); color: var(--brand); }

/* One focus ring everywhere, drawn as an outline so controls with their own box-shadow (a
   selected tab, an account card) don't lose it. */
:where(.btn, .link, .icon-btn, .nav, .account, .tab, .seg-item, .chip.pick, .network-choice,
  .account-card, input, textarea, select):focus-visible {
  outline: 4px solid var(--ring);
  outline-offset: 0;
}

/* --------------------------------------------------------------- fields */

label {
  display: block;
  margin-bottom: 6px;
  font: 500 13px/1.3 var(--sans);
  letter-spacing: -.008em;
  color: var(--text-2);
}
label .optional { color: var(--faint); font-weight: 400; }

input, textarea, select {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--hair-strong);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text);
  font: 400 15px/1.4 var(--sans);
  letter-spacing: -.01em;
  transition: border-color var(--quick), box-shadow var(--quick);
}
input::placeholder, textarea::placeholder { color: var(--faint); }
input:hover:not(:focus), textarea:hover:not(:focus) { border-color: var(--hair-strong); }
input:focus, textarea:focus, select:focus { border-color: var(--brand); }
textarea { height: auto; min-height: 92px; padding: 11px 13px; font-family: var(--mono); font-size: 14px; resize: vertical; }
select { padding: 0 10px; }

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
  font: 400 14px/1.35 var(--sans);
  color: var(--text-2);
}
.check input { width: 17px; height: 17px; accent-color: var(--brand); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row { display: grid; }

/* ---------------------------------------------------------------- cards */

.card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-1);
}
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; }
.stack.tight { gap: 3px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
/* Card text often holds an address, which has no break point on a phone. */
.card p, .card li { overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.kv-card { display: grid; }
.kv {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
}
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--muted); }
.kv code, .kv b { overflow-wrap: anywhere; text-align: right; }
.kv code { font-size: 12.5px; color: var(--text-2); }

/* ---------------------------------------------------------------- views */

.view { position: relative; max-width: 1120px; margin: 0 auto; padding: 26px 28px 96px; }
.view.narrow { max-width: 600px; padding-top: 7vh; }
.view.narrow > * + * { margin-top: 18px; }
.lede { max-width: 46ch; color: var(--text-2); font-size: 17px; }

.facts { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.facts li { position: relative; padding-left: 25px; font-size: 14.5px; color: var(--text-2); }
.facts li::before {
  content: '';
  position: absolute;
  left: 3px;
  top: .55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.facts b { font-weight: 600; color: var(--text); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 14px; color: var(--text-2); }
.steps code { font-size: 13px; color: var(--brand); overflow-wrap: anywhere; }

/* ------------------------------------------------------------ app shell */

.shell {
  display: grid;
  grid-template-columns: 252px minmax(0, 1fr);
  gap: 30px;
  max-width: 1340px;
  margin: 0 auto;
  padding: 26px 28px 100px;
}
.side {
  position: sticky;
  top: 78px;
  align-self: start;
  display: grid;
  gap: 1px;
  padding: 12px 10px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-1);
}
.side-label {
  margin: 5px 0 7px 10px;
  font: 600 11px/1 var(--sans);
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--faint);
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-right: 2px; }
.side-head.spaced { margin-top: 20px; }
.side-head .side-label { margin-bottom: 7px; }
.side-note { margin: 14px 10px 2px; font-size: 11.5px; line-height: 1.45; color: var(--faint); }
.account-list { display: grid; gap: 1px; }

.nav, .account {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 8px 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text-2);
  font: 500 14px/1.2 var(--sans);
  letter-spacing: -.012em;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--quick), color var(--quick), transform .1s var(--ease);
}
.nav:active, .account:active { transform: scale(.985); }
.nav svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; color: var(--faint); }
.nav:hover, .account:hover { background: var(--surface-3); color: var(--text); }
.nav.active { background: var(--brand-tint); color: var(--brand); }
.nav.active svg { color: var(--brand); }

.account { gap: 10px; padding: 7px 9px; }
.account-mark {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font: 600 13px/1 var(--sans);
}
.account-text { display: grid; gap: 2px; min-width: 0; }
.account-text b { font-weight: 550; font-size: 13.5px; color: var(--text); letter-spacing: -.012em; }
.account-text small { font: 500 10px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.account-amount { margin-left: auto; font: 500 12px/1 var(--sans); color: var(--muted); font-variant-numeric: tabular-nums; }
.account.active { background: var(--brand-tint); }
.account.active .account-text b { color: var(--brand); }

/* ---------------------------------------------------------------- panes */

.panes { min-width: 0; }
.pane > * + * { margin-top: 22px; }
.pane-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 2px; }
.pane-head .eyebrow { margin-bottom: 6px; }
.pane-title { font-size: clamp(26px, 3.3vw, 34px); letter-spacing: -.032em; }
.account-head { align-items: center; }
.account-title { display: flex; align-items: center; gap: 14px; }
.account-title .account-mark.big { width: 46px; height: 46px; font-size: 21px; }

.tabs {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  background: var(--surface-3);
  border-radius: 11px;
  flex-wrap: wrap;
  max-width: 100%;
}
.tab {
  flex: none;
  padding: 7px 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font: 500 13.5px/1.2 var(--sans);
  letter-spacing: -.012em;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--quick), color var(--quick), box-shadow var(--quick),
    transform .1s var(--ease);
}
.tab:hover { color: var(--text); }
.tab:active { transform: scale(.97); }
.tab.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-strong), inset 0 1px 0 rgba(255, 255, 255, .06); }
.subpane > * + * { margin-top: 18px; }

.lane { padding-top: 28px; border-top: 1px solid var(--hair); }
.lane.no-top { padding-top: 4px; border-top: 0; }
.lane-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 13px; }
.lane-head .quiet { font-size: 13px; color: var(--muted); }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 16px; }

/* ------------------------------------------------------------- numbers */

.amount {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font: 600 clamp(32px, 4.6vw, 46px)/1 var(--sans);
  letter-spacing: -.042em;
  font-variant-numeric: tabular-nums;
}
.amount .unit { font: 500 13px/1 var(--sans); letter-spacing: -.005em; color: var(--faint); }
.balance-card .amount { font-size: clamp(28px, 3.3vw, 36px); }
.chart-price { font: 600 25px/1 var(--sans); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }

.total { display: grid; gap: 18px; padding: 24px; }
.total-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.total-head .amount { margin-bottom: 7px; }
.total-change { text-align: right; }
.total-change .chart-price { margin-bottom: 5px; }
#price-change.up { color: var(--ok); }
#price-change.down { color: var(--danger); }

.ranges { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-3); border-radius: 10px; }
.chip.pick {
  height: 28px;
  padding: 0 13px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--text-2);
  font: 500 12.5px/1 var(--sans);
  letter-spacing: -.008em;
  text-transform: none;
  cursor: pointer;
  transition: background-color var(--quick), color var(--quick), box-shadow var(--quick);
}
.chip.pick:hover { color: var(--text); }
.chip.pick.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-strong), inset 0 1px 0 rgba(255, 255, 255, .06); }

.chart { display: grid; gap: 10px; min-height: 230px; }
.price-chart { display: block; width: 100%; height: auto; }
.chart-area { fill: url(#priceFade); stroke: none; }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart-dot { fill: var(--brand); stroke: #fff; stroke-width: 2.5; }
.chart-guide { stroke: var(--hair); stroke-width: 1; }
.chart-label { fill: var(--faint); font: 400 11px var(--sans); }
.chart-axis { display: flex; justify-content: space-between; font: 400 11px/1 var(--sans); color: var(--faint); }

/* -------------------------------------------------------- things to say */

.notice, .alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  border-color: var(--brand-tint-2);
  background: linear-gradient(180deg, var(--brand-tint) 0%, var(--surface) 78%);
}
.alert { box-shadow: var(--lift-1), 0 0 0 3px rgba(10, 98, 255, .06); }
.notice-body, .alert-body { display: grid; gap: 6px; max-width: 70ch; }
.notice .btn, .alert .btn { flex: none; }
.notice-line {
  padding: 12px 14px;
  background: var(--brand-tint);
  border-radius: var(--r);
  font-size: 14px;
  color: var(--brand);
}
.danger-card { border-color: rgba(215, 0, 21, .18); }

/* ------------------------------------------------------- account cards */

.accounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 294px), 1fr)); gap: 14px; }
.account-card {
  display: grid;
  gap: 9px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-1);
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease);
}
.account-card:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }
.account-card:active { transform: translateY(0); }
.account-card header { display: flex; align-items: center; gap: 11px; }
.account-card header div { display: grid; gap: 2px; margin-right: auto; }
.account-card header b { font-weight: 600; font-size: 15px; letter-spacing: -.018em; }
.account-card header small { font: 500 10px/1 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.account-card header .chip { flex: none; }
.account-mark.big { width: 38px; height: 38px; font-size: 17px; }
.account-mark.ghost { background: var(--surface-3); color: var(--faint); }
.account-balance {
  display: flex;
  align-items: baseline;
  gap: 7px;
  font: 600 24px/1 var(--sans);
  letter-spacing: -.032em;
  font-variant-numeric: tabular-nums;
}
.account-balance .unit { font: 500 11px/1 var(--sans); color: var(--faint); }
.account-address { font: 400 11.5px/1.5 var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.rule-line { min-height: 2.3em; color: var(--muted); }
.account-card.add {
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  border-style: dashed;
  border-color: var(--hair-strong);
  box-shadow: none;
}
.account-card.add:hover { background: var(--surface); border-color: var(--brand); transform: none; box-shadow: var(--lift-1); }

/* ------------------------------------------------------------ requests */

.requests { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 350px), 1fr)); gap: 12px; }
.request {
  display: grid;
  gap: 9px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--brand);
  border-radius: var(--r);
  box-shadow: var(--lift-1);
}
.request-what { font-size: 14.5px; font-weight: 500; letter-spacing: -.014em; overflow-wrap: anywhere; }
.meter { height: 3px; border-radius: var(--pill); background: var(--surface-3); overflow: hidden; }
.meter span { display: block; height: 100%; background: var(--brand); transition: width .3s var(--ease); }

/* --------------------------------------------------- send and receive */

.send { display: grid; gap: 14px; }
.wide-card { display: grid; grid-template-columns: 208px minmax(0, 1fr); gap: 26px; align-items: start; }
.receive { display: grid; gap: 16px; }
.receive-body { display: grid; gap: 11px; }
.qr { display: grid; place-items: center; padding: 13px; background: #fff; border: 1px solid var(--hair); border-radius: var(--r); }
.qr svg { display: block; width: 100%; max-width: 182px; height: auto; }
.address {
  padding: 11px 13px;
  background: var(--surface-3);
  border-radius: var(--r);
  font: 400 13px/1.5 var(--mono);
  color: var(--text);
  overflow-wrap: anywhere;
}

/* ------------------------------------------------ signers and thresholds */

.member-rows, .invites { display: grid; gap: 7px; }
.member-row, .invite-row {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  background: var(--surface-2);
  border: 1px solid var(--hair);
  border-radius: var(--r);
  font-size: 14px;
}
.invite-row { background: transparent; border-style: dashed; border-color: var(--hair-strong); }
.member-who { display: grid; gap: 2px; margin-right: auto; min-width: 0; }
.member-who b { font-weight: 550; letter-spacing: -.012em; }
.member-who small { font: 400 11px/1.35 var(--mono); color: var(--faint); overflow-wrap: anywhere; }
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  font: 600 11px/1 var(--sans);
}
.avatar.ghost { background: var(--surface-3); color: var(--faint); }
.signer-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.signer-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 12px 3px 3px;
  border-radius: var(--pill);
  background: var(--surface-3);
  font-size: 13px;
  letter-spacing: -.01em;
}
.signer-chip .avatar { width: 24px; height: 24px; font-size: 10px; background: var(--surface); }
.signer-chip small { font: 500 10px/1 var(--sans); letter-spacing: .04em; text-transform: uppercase; color: var(--faint); }

.seg { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface-3); border-radius: 11px; flex-wrap: wrap; }
.seg-item {
  padding: 8px 15px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font: 500 13.5px/1 var(--sans);
  letter-spacing: -.01em;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background-color var(--quick), color var(--quick), box-shadow var(--quick),
    transform .1s var(--ease);
}
.seg-item:hover { color: var(--text); }
.seg-item:active { transform: scale(.97); }
.seg-item.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--hair-strong), inset 0 1px 0 rgba(255, 255, 255, .06); }

.rule-rows { display: grid; gap: 7px; }
.rule-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  padding: 9px 11px;
  background: var(--surface-2);
  border: 1px solid var(--hair);
  border-radius: var(--r);
}
.rule-when { font-size: 13px; color: var(--muted); white-space: nowrap; }
.amount-input { height: 36px; font-size: 14px; font-family: var(--mono); }
.stepper {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 2px;
  background: var(--surface);
  border: 1px solid var(--hair-strong);
  border-radius: var(--pill);
}
.stepper .icon-btn { width: 26px; height: 26px; }
.stepper-value {
  min-width: 64px;
  text-align: center;
  font: 500 13px/1 var(--sans);
  font-variant-numeric: tabular-nums;
}

/* shown when there are unsaved changes */
.save-bar {
  position: sticky;
  bottom: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 20px auto 0;
  max-width: 1340px;
  padding: 12px 12px 12px 20px;
  background: rgba(13, 18, 32, .86);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--lift-3);
}
.save-what { font-size: 13.5px; color: var(--text-2); }

/* --------------------------------------------------------------- ledger */

.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li {
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 13px 2px;
  border-bottom: 1px solid var(--hair);
  font-size: 14px;
}
.ledger .what { min-width: 0; flex: 1; overflow-wrap: anywhere; letter-spacing: -.012em; }
.ledger .what small { display: block; margin-top: 2px; color: var(--faint); font: 400 11.5px/1.5 var(--mono); }
.ledger .what .link { display: inline-block; margin-top: 5px; font-size: 12.5px; }
.ledger time { flex: none; font: 400 11.5px/1 var(--sans); color: var(--faint); white-space: nowrap; }
.ledger .amt { flex: none; font: 500 14.5px/1 var(--sans); font-variant-numeric: tabular-nums; text-decoration: none; letter-spacing: -.015em; }
.ledger .amt.plus { color: var(--ok); }
.ledger .amt.minus { color: var(--text-2); }
.ledger .empty, .ledger li.empty { color: var(--faint); border: 0; }
.ledger .failed { color: var(--danger); }

/* -------------------------------------------------------------- dialogs */

dialog {
  width: min(540px, calc(100% - 28px));
  max-height: min(90vh, 860px);
  max-height: min(90dvh, 860px);
  margin: auto;                 /* dead-centre in the viewport for showModal() */
  padding: 0;
  border: 0;
  border-radius: var(--r-xl);
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--lift-3);
  overflow: hidden;             /* keep the rounded corners; the sheet scrolls inside */
}
dialog::backdrop { background: rgba(3, 5, 10, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

@media (prefers-reduced-motion: no-preference) {
  dialog[open] { animation: sheet-in .22s var(--ease); }
  dialog[open]::backdrop { animation: fade-in .22s var(--ease); }
  @keyframes sheet-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
  @keyframes fade-in { from { opacity: 0; } }
}

.sheet { display: grid; gap: 13px; padding: 0 24px 18px; max-height: min(90vh, 860px); max-height: inherit; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; }
.sheet > * { min-width: 0; }
/* the header is the sheet's first child, so nothing scrolls above it in any browser */
.sheet-head { position: sticky; top: 0; z-index: 2; margin: 0 -24px; padding: 18px 24px 12px; background: var(--surface); border-bottom: 1px solid var(--hair); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sheet-head .icon-btn.close { margin: -4px -8px -4px 0; flex: none; }
.pulseline { display: flex; align-items: center; gap: 9px; }
.pulseline::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-tint);
}
.eyebrow.seal { color: var(--brand); }
.statement { font: 600 clamp(18px, 2.9vw, 22px)/1.25 var(--sans); letter-spacing: -.03em; overflow-wrap: anywhere; }
.quorum { font-size: 13.5px; color: var(--brand); }

/* Two columns on desktop so a long approval fits without scrolling; one on a phone. */
.details {
  margin: 0;
  border-top: 1px solid var(--hair);
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 26px;
}
.details > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3px;
  padding: 9px 0;
  border-bottom: 1px solid var(--hair);
  font-size: 13.5px;
  min-width: 0;
}
@media (max-width: 560px) { .details { grid-template-columns: 1fr; } }
.details dt { font: 500 11px/1.6 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.details dd { margin: 0; font-family: var(--mono); font-size: 12.5px; color: var(--text-2); overflow-wrap: anywhere; min-width: 0; }

.wait { display: grid; grid-template-columns: auto 1fr; gap: 8px 13px; align-items: center; }
.wait p { font-size: 14px; color: var(--text-2); }
.wait .link { grid-column: 2; justify-self: start; }
.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px var(--brand-tint); }
@media (prefers-reduced-motion: no-preference) {
  .pulse { animation: pulse 1.5s var(--ease) infinite; }
  @keyframes pulse { 50% { transform: scale(.5); } }
}

.sheet-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid var(--hair);
}
.sheet-foot.end { justify-content: flex-end; }
.sheet-foot .btn.sm, .sheet-foot .btn.small { height: 38px; padding: 0 18px; font-size: 14px; }

/* the on-chain verifier panel inside the receipt */
.verify-result { border-radius: 12px; padding: 12px 14px; font: 500 13px/1.5 var(--sans); border: 1px solid var(--hair); background: var(--surface-2); display: grid; gap: 7px; }
.verify-result.ok { border-color: rgba(12, 138, 82, .4); background: rgba(12, 138, 82, .07); }
.verify-result.bad { border-color: rgba(212, 51, 74, .4); background: rgba(212, 51, 74, .07); }
.verify-head { margin: 0; font-weight: 700; font-size: 14px; letter-spacing: -.01em; }
.verify-result.ok .verify-head { color: var(--ok); }
.verify-result.bad .verify-head { color: var(--danger); }
.verify-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; color: var(--text-2); }
.verify-list li.ok { color: var(--ok); }
.verify-list li.bad { color: var(--danger); }
.verify-result .fine.mono { margin: 0; font-family: var(--mono); font-size: 11px; color: var(--faint); overflow-wrap: anywhere; }

.network-list { display: grid; gap: 7px; }
.network-choice {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--text-2);
  font: 500 14px/1.2 var(--sans);
  letter-spacing: -.012em;
  text-align: left;
  cursor: pointer;
  transition: background-color var(--quick), border-color var(--quick), transform .12s var(--ease);
}
.network-choice:hover { background: var(--brand-tint); border-color: var(--brand-tint-2); color: var(--text); }
.network-choice:active { transform: scale(.99); }
.network-choice .chip { margin-left: auto; }

.wizard-steps { display: flex; gap: 7px; margin: 0; padding: 0; list-style: none; }
.wizard-step {
  flex: 1;
  padding-top: 8px;
  border-top: 2px solid var(--surface-3);
  font: 600 10.5px/1.3 var(--sans);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--faint);
  transition: color var(--quick), border-color var(--quick);
}
.wizard-step.done { border-color: var(--brand-tint-2); color: var(--muted); }
.wizard-step.on { border-color: var(--brand); color: var(--brand); }
#wizard { display: grid; gap: 13px; }
#wizard .details, #wizard .network-list, #wizard .member-rows, #wizard .seg { margin: 0; }

.ticks { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 25px; font-size: 14px; color: var(--text-2); }
.ticks li::before { content: '✓'; position: absolute; left: 3px; color: var(--ok); font-weight: 600; }
.ticks li.unchecked { color: var(--danger); }
.ticks li.unchecked::before { content: '!'; color: var(--danger); }
.eyebrow.verified { display: flex; align-items: center; gap: 8px; color: var(--ok); }
.eyebrow.verified::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-tint); }

.code-block {
  padding: 18px;
  background: var(--surface-3);
  border-radius: var(--r);
  font: 600 clamp(19px, 4vw, 25px)/1.3 var(--mono);
  letter-spacing: .08em;
  text-align: center;
  overflow-wrap: anywhere;
}

.words { display: grid; grid-template-columns: repeat(auto-fit, minmax(114px, 1fr)); gap: 7px; margin: 0; padding: 0; counter-reset: word; }
.words li {
  list-style: none;
  padding: 10px 12px;
  background: var(--surface-2);
  border: 1px solid var(--hair);
  border-radius: 10px;
  font: 500 14px/1 var(--mono);
}
.words li::before { counter-increment: word; content: counter(word) '. '; color: var(--faint); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 50;
  max-width: calc(100% - 28px);
  padding: 12px 20px;
  border-radius: var(--pill);
  background: rgba(29, 29, 31, .92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #fff;
  font-size: 14px;
  letter-spacing: -.012em;
  box-shadow: var(--lift-3);
}
.toast.stay {
  display: flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  padding: 10px 10px 10px 20px;
  border-radius: 18px;
  line-height: 1.4;
}
.toast-close {
  flex: none;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff;
  font: 400 18px/1 var(--sans, inherit);
  cursor: pointer;
}
.toast-close:hover { background: rgba(255, 255, 255, .24); }
.toast-close:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: no-preference) {
  .toast:not([hidden]) { animation: toast-in .24s var(--ease); }
  @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 10px); } }
}

/* -------------------------------------------------------------- smaller */

@media (max-width: 1040px) {
  .shell { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 16px 16px 80px; }
  .side { position: static; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 8px; align-items: center; }
  .side-label, .side-note, .side-head { display: none; }
  #account-list { display: flex; gap: 4px; }
  .nav, .account { width: auto; white-space: nowrap; }
  .account-amount { margin-left: 8px; }
  .save-bar { margin-left: 0; margin-right: 0; }
}

@media (max-width: 860px) {
  .top { padding: 11px 16px; }
  .view { padding: 16px 16px 72px; }
  .wide-card { grid-template-columns: minmax(0, 1fr); }
  .qr svg { max-width: 210px; margin: 0 auto; }
  .notice, .alert { flex-direction: column; align-items: flex-start; }
  .notice .btn, .alert .btn { width: 100%; }
}

@media (max-width: 520px) {
  .card { padding: 17px; }
  .total { padding: 18px; }
  .sheet { padding: 0 17px 16px; }
  .sheet-head { margin: 0 -17px; padding: 16px 17px 12px; }
  .two { grid-template-columns: minmax(0, 1fr); }
  .details > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ledger li { flex-wrap: wrap; gap: 5px 12px; }
  .sheet-foot { flex-direction: column-reverse; align-items: stretch; }
  .sheet-foot .btn { width: 100%; }
  .rule-row { grid-template-columns: 1fr auto auto; }
  .rule-row .amount-input { grid-column: 1 / -1; }
  .chart { min-height: 0; }
  .tabs { width: 100%; }
}



/* ================================================== the home hero, at night */

/*
 * A room after dark: a window wall, a city below, and a polished surface the reader sits on.
 * Built in CSS so it weighs nothing and scales to any window; `--hero-plate` swaps in a photograph.
 */
.home .hero {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0;
  isolation: isolate;
  overflow: hidden;
  background: #04070e;
  color: #fff;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  padding: clamp(18px, 3vw, 44px) clamp(20px, 5vw, 68px) clamp(28px, 4vw, 56px);
}

/* ------------------------------------------------------------ the words */

.hero-copy { min-width: 0; }
.home .hero-copy { max-width: 640px; }
.home .hero .eyebrow.spaced { color: rgba(255, 255, 255, .58); }
.home .hero h1 {
  margin: 18px 0 20px;
  font-size: clamp(38px, 4.6vw, 62px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.036em;
  color: #fff;
}
.home .hero h1 em { font-style: normal; color: #4f9dff; }
.home .hero .lede { max-width: 27em; color: rgba(255, 255, 255, .76); }
.home .hero .rule { background: rgba(120, 175, 255, .5); margin: 26px 0 16px; }

.watch {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #fff;
  font: 600 16px/1 var(--sans);
  letter-spacing: -.012em;
  text-decoration: none;
}
.watch .play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, .34);
  border-radius: 50%;
  transition: background-color var(--quick), border-color var(--quick);
}
.watch .play svg { width: 16px; height: 16px; fill: #fff; }
.watch:hover .play { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .6); }

.home .hero .hero-marks { margin-top: 34px; gap: clamp(14px, 1.8vw, 26px); }
.home .hero .hero-marks li { flex-direction: column; align-items: flex-start; gap: 10px; }
.home .hero .hero-marks span:last-child { color: rgba(255, 255, 255, .88); font-size: 13px; }
.home .hero .glyph {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(120, 175, 255, .34);
  border-radius: 14px;
  background: rgba(20, 48, 92, .46);
  color: #7cb6ff;
}
.home .hero .palm-link { color: rgba(255, 255, 255, .52); }
.home .hero .palm-link:hover { color: #7cb6ff; }

/* ------------------------------------------------------------ the strip */

.trust {
  position: relative;
  z-index: 1;
  padding: clamp(14px, 2vw, 22px) clamp(20px, 5vw, 68px) clamp(22px, 3vw, 34px);
  border-top: 1px solid rgba(150, 195, 255, .14);
  text-align: center;
}
.trust .eyebrow.spaced { color: rgba(255, 255, 255, .5); }
.trust ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.trust li {
  display: flex;
  align-items: center;
  gap: 11px;
  flex: 1 1 190px;
  justify-content: center;
  padding: 8px 18px;
  border-left: 1px solid rgba(150, 195, 255, .14);
  font: 600 10.5px/1.3 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.trust li:first-child { border-left: 0; }
.glyph.sm {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  border: 1px solid rgba(120, 175, 255, .3);
  background: rgba(20, 48, 92, .4);
  color: #7cb6ff;
  display: grid;
  place-items: center;
}
.glyph.sm svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* --------------------------------------------- the header, over the dark */

.home-top { position: relative; z-index: 5; }
.home-top .home-mark b { color: #fff; }
.home-top .home-mark small { color: rgba(255, 255, 255, .52); }
.home-nav a { color: rgba(255, 255, 255, .82); }
.home-nav a:hover, .home-nav a.on { color: #fff; }
.home-nav a.on { box-shadow: inset 0 -2px 0 #4f9dff; }
.home-top-cta { display: flex; align-items: center; gap: 12px; }
.btn.outline {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-edge: rgba(255, 255, 255, .5);
}
.btn.outline:hover:not(:disabled) { background: rgba(255, 255, 255, .12); }

@media (max-width: 1040px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); }
  .hero-stage { order: -1; aspect-ratio: 1 / .78; }
  .stage-note.at-left, .stage-note.at-right { display: none; }
}
@media (max-width: 760px) {
  .home-nav { display: none; }
  /*
   * The hand and reader are absolutely positioned and take no room, so the stage gets an
   * explicit height and the card goes to its bottom; otherwise the card covers the hand.
   */
  .hero-stage {
    aspect-ratio: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 78vw;
  }
  .assets-card {
    position: static;
    order: 9;
    width: 100%;
    margin-top: 16px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .hand-frame.reaching { width: 56%; }
  .stage-note.at-foot { display: none; }
  .trust li { flex-basis: 100%; justify-content: flex-start; border-left: 0; }
  .scene-window, .scene-city { left: 0; }
}

/* ------------------------------------------------------------- about us */

.sr-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.about { background: var(--surface); }
.eyebrow.ruled { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.eyebrow.ruled::before { content: ""; width: 34px; height: 2px; background: var(--brand); flex: none; }
.eyebrow.ruled.light { color: rgba(255, 255, 255, .72); }
.eyebrow.ruled.light::before { background: #5aa2ff; }
.rule { display: block; width: 36px; height: 2px; margin: 30px 0 22px; background: #5aa2ff; }

/*
 * A dark band with the world curving away under the same hand as the home page. The curve at
 * its foot is the footer's, upside down, so the two ends of the page match.
 */
.about-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 4vw, 48px);
  padding: clamp(36px, 5vw, 78px) clamp(20px, 5vw, 68px) clamp(48px, 7vw, 96px);
  border-radius: 0;
  background:
    radial-gradient(70% 90% at 50% 118%, rgba(52, 140, 255, .42), transparent 64%),
    radial-gradient(40% 55% at 78% 28%, rgba(46, 130, 255, .26), transparent 70%),
    linear-gradient(180deg, #04101f 0%, #071a35 52%, #082445 100%);
  color: #fff;
  overflow: hidden;
}
.about-hero-copy { position: relative; z-index: 1; min-width: 0; }
.about-hero .eyebrow.spaced { color: rgba(255, 255, 255, .6); }
.about-hero h1 {
  margin: 18px 0 22px;
  font-size: clamp(34px, 4.6vw, 58px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.035em;
  color: #fff;
}
.about-hero h1 em { font-style: normal; color: #4f9dff; }
.about-hero .lede { max-width: 27em; color: rgba(255, 255, 255, .8); font-size: clamp(15px, 1.15vw, 17.5px); }

.about-hero-art { position: relative; display: flex; justify-content: center; min-width: 0; perspective: 1400px; }
.hand-frame.about-hand { width: min(100%, 470px); }
/* On a dark ground the hand needs a halo rather than a shadow. */
.hand-frame.about-hand img:first-of-type { filter: drop-shadow(0 0 60px rgba(60, 150, 255, .34)); }
.hand-frame.about-hand::before { display: none; }

.stack-note {
  position: absolute;
  top: 16%;
  right: 0;
  z-index: 1;
  padding-left: 14px;
  border-left: 1px solid rgba(255, 255, 255, .28);
  font: 600 10.5px/2 var(--sans);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .72);
}
.stack-note.light { position: static; border-left: 0; padding-left: 0; }

/* ----------------------------------------------------------- our purpose */

.about-purpose {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding: clamp(46px, 6vw, 86px) clamp(20px, 5vw, 68px) clamp(24px, 3vw, 40px);
}
.about-purpose h2 {
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.032em;
  color: var(--navy, #0a1f44);
}
.about-purpose .lede { max-width: 34em; font-size: clamp(15px, 1.1vw, 17px); color: var(--text-2); }

.about-features { padding-top: clamp(28px, 3vw, 44px); }
.about-features h2 { font-size: 17.5px; }
.about-features p { font-size: 14.5px; }

/* ------------------------------------------------------------ our vision */

.about-vision {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  margin: clamp(28px, 4vw, 52px) clamp(20px, 5vw, 68px);
  padding: clamp(36px, 5vw, 62px) clamp(26px, 4vw, 54px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(80% 120% at 88% 108%, rgba(60, 130, 220, .38), transparent 62%),
    linear-gradient(120deg, #04101f 0%, #061a31 46%, #0b2b4e 100%);
  color: #fff;
}
.about-vision-copy { min-width: 0; max-width: 34em; }
.about-vision h2 {
  margin-bottom: 18px;
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: #fff;
}
.about-vision p { color: rgba(255, 255, 255, .78); font-size: clamp(14.5px, 1.05vw, 16.5px); line-height: 1.6; }
.about-vision-list {
  margin: 0;
  padding: 0 0 0 16px;
  list-style: none;
  border-left: 1px solid rgba(255, 255, 255, .26);
  display: grid;
  gap: 9px;
  font: 600 10.5px/1.4 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .74);
  text-align: left;
}

/* ------------------------------------------------------------- the count */

.about-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  padding: clamp(18px, 2.4vw, 34px) clamp(20px, 5vw, 68px);
}
.about-stats div {
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 10px 14px;
  border-left: 1px solid var(--hair);
  text-align: center;
}
.about-stats div:first-child { border-left: 0; }
.about-stats b { font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.02em; color: var(--brand); }
.about-stats small {
  font: 600 9.5px/1 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------- our story */

.about-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(26px, 4vw, 60px);
  padding: clamp(40px, 5vw, 72px) clamp(20px, 5vw, 68px) clamp(54px, 7vw, 92px);
}
.about-story h2 {
  margin-bottom: 20px;
  font-size: clamp(26px, 3.1vw, 38px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--navy, #0a1f44);
}
.about-story .lede { max-width: 32em; font-size: clamp(14.5px, 1.05vw, 16.5px); color: var(--text-2); }
.about-story .hero-cta { margin-top: 30px; }

/* A placeholder for a photograph: the hero's night with the mark in it, rather than a hole. */
.about-story-art {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 40px;
  min-height: clamp(260px, 30vw, 330px);
  margin: 0;
  padding: clamp(24px, 3vw, 38px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(70% 80% at 22% 14%, rgba(120, 165, 215, .30), transparent 66%),
    linear-gradient(160deg, #24384f 0%, #142639 44%, #0a1929 100%);
  color: #fff;
  overflow: hidden;
}
.about-story-art::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% -10%;
  height: 62%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(10, 25, 45, .9), transparent 70%);
  pointer-events: none;
}
.about-story-mark { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; align-self: flex-end; }
.about-story-mark span { display: grid; gap: 3px; }
.about-story-mark b { font-size: 21px; font-weight: 700; letter-spacing: -.026em; }
.about-story-mark small {
  font: 600 8.5px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .58);
}

@media (max-width: 900px) {
  .about-hero, .about-purpose, .about-story { grid-template-columns: minmax(0, 1fr); }
  .about-hero-art { order: -1; }
  .hand-frame.about-hand { width: min(100%, 320px); }
  .stack-note { display: none; }
  .stack-note.light { display: block; }
  .about-vision { flex-direction: column; align-items: flex-start; }
  .about-vision-list { border-left: 0; padding-left: 0; }
  .about-stats div { border-left: 0; }
}


/* ============================================ the marketing page, section by section */

/* Everything below is built on these colours, so a palette change moves the whole page. */
.home, .about {
  --quvault-blue: #1e6bff;
  --quvault-blue-bright: #4f9dff;
  --quvault-cyan: #7cd4ff;
  --quvault-navy: #0a1f44;
  --quvault-dark: #04070e;
  --quvault-text: #1d2939;
  --quvault-muted: #667085;
  --quvault-light: #f4f8fd;
  --quvault-border: rgba(16, 42, 86, .10);
}

/* Centred eyebrows carry a rule on each side. */
.eyebrow.centred { justify-content: center; }
.eyebrow.ruled.centred::before,
.eyebrow.ruled.centred::after {
  content: "";
  width: 34px;
  height: 1px;
  flex: none;
  background: var(--quvault-border);
}

/* ------------------------------------------------------------ why quvault */

.why {
  padding: clamp(48px, 6vw, 86px) clamp(20px, 5vw, 68px) clamp(40px, 5vw, 70px);
  background: #fff;
  text-align: center;
}
.why > .eyebrow { color: var(--quvault-muted); }
.why h2 {
  max-width: 18em;
  margin: 14px auto 0;
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.032em;
  color: var(--quvault-navy);
}
.why h2 em { font-style: normal; color: var(--quvault-blue); }
.why-lede {
  max-width: 44em;
  margin: 14px auto 0;
  font-size: clamp(14.5px, 1.1vw, 16.5px);
  color: var(--quvault-muted);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: clamp(24px, 3vw, 40px);
  margin: clamp(32px, 4vw, 54px) 0 0;
  padding: 0;
  list-style: none;
}
.why-grid li { display: grid; justify-items: center; gap: 14px; }
.why-grid h3 { font-size: 16.5px; font-weight: 700; letter-spacing: -.02em; color: var(--quvault-navy); }
.why-grid p { font-size: 14px; line-height: 1.6; color: var(--quvault-muted); }

.glyph.round {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #eaf2ff;
  color: var(--quvault-blue);
}
.glyph.round svg { width: 31px; height: 31px; stroke-width: 1.5; }

/* ----------------------------------------------------------- how it works */

.how {
  margin: 0 clamp(20px, 5vw, 68px);
  padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3vw, 46px) clamp(30px, 3.6vw, 48px);
  border-radius: var(--r-lg);
  background: var(--quvault-light);
}
.how header { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.how .eyebrow.spaced { color: var(--quvault-muted); }
.how h2 {
  margin-top: 10px;
  font-size: clamp(24px, 2.6vw, 33px);
  font-weight: 700;
  letter-spacing: -.03em;
  color: var(--quvault-navy);
}
.how-nav { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--quvault-muted); }
.round-btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--quvault-border);
  border-radius: 50%;
  background: #fff;
  color: var(--quvault-muted);
  cursor: pointer;
  transition: background-color var(--quick), color var(--quick), border-color var(--quick);
}
.round-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.round-btn.on { background: var(--quvault-blue); border-color: transparent; color: #fff; }
.round-btn:disabled { opacity: .45; cursor: default; }
.round-btn:hover:not(:disabled):not(.on) { border-color: var(--quvault-blue); color: var(--quvault-blue); }

.how-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(18px, 2.4vw, 34px);
  margin: clamp(22px, 2.6vw, 34px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: none;
}
.how-steps li { position: relative; display: flex; align-items: flex-start; gap: 16px; }
/* a thin line between steps */
.how-steps li + li::before {
  content: "";
  position: absolute;
  top: 24px;
  left: calc(clamp(9px, 1.2vw, 17px) * -1);
  width: clamp(18px, 2.4vw, 34px);
  height: 1px;
  background: var(--quvault-border);
  transform: translateX(-100%);
}
.step-no {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: none;
  border-radius: 50%;
  background: #e5eeff;
  font: 700 19px/1 var(--sans);
  color: var(--quvault-blue);
}
.how-steps h3 { margin-bottom: 6px; font-size: 16px; font-weight: 700; letter-spacing: -.018em; color: var(--quvault-navy); }
.how-steps p { font-size: 13.5px; line-height: 1.55; color: var(--quvault-muted); }

/* --------------------------------------------------------- built for today */

.built {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 64px);
  padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 68px);
  background: #fff;
}
.built .eyebrow.spaced { color: var(--quvault-muted); }
.built h2 {
  margin: 16px 0 18px;
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.032em;
  color: var(--quvault-navy);
}
.built-copy p { max-width: 30em; font-size: clamp(14.5px, 1.05vw, 16px); line-height: 1.6; color: var(--quvault-muted); }
.built-copy .btn { margin-top: 26px; }

.built-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
  border-left: 1px solid var(--quvault-border);
}
.built-stats div {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: clamp(20px, 2.6vw, 34px) 14px;
  text-align: center;
}
.built-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--quvault-border); }
.built-stats div:nth-child(odd) { border-right: 1px solid var(--quvault-border); }
.built-stats dt { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.028em; color: var(--quvault-blue); }
.built-stats dd {
  margin: 0;
  font: 600 10px/1.3 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--quvault-muted);
}

/* ------------------------------------------------------------- testimonial */

.voices {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(20px, 3vw, 40px);
  padding: clamp(40px, 5vw, 70px) 0 clamp(40px, 5vw, 70px) clamp(20px, 5vw, 68px);
  background: linear-gradient(90deg, #eef4fb 0%, #e7eff8 52%, #dfe9f4 100%);
}
.voices .eyebrow.spaced { color: var(--quvault-muted); }
.voices blockquote {
  margin: 18px 0 0;
  max-width: 20em;
  font-size: clamp(19px, 1.9vw, 25px);
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: -.024em;
  color: var(--quvault-navy);
}
.voice-who { display: flex; align-items: center; gap: 14px; margin: 26px 0 0; }
.voice-who figcaption { display: grid; gap: 3px; }
.voice-who b { font-size: 14.5px; font-weight: 600; color: var(--quvault-navy); }
.voice-who small { font-size: 12.5px; color: var(--quvault-muted); }
.portrait {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 50%;
  background: #cfdbea;
}
.dots { display: flex; gap: 8px; margin-top: 26px; }
.dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #c3d2e4;
  cursor: pointer;
}
.dot.on { background: var(--quvault-blue); }

.voices-art {
  position: relative;
  align-self: stretch;
  min-height: clamp(220px, 24vw, 300px);
  background: linear-gradient(160deg, #a7bbd1 0%, #8299b6 40%, #5c748f 100%);
}
.voices-art .stack-note { position: absolute; right: clamp(16px, 3vw, 46px); bottom: 22%; text-align: right; }

/* ----------------------------------------------------------- the final call */

.join {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: center;
  gap: clamp(22px, 3vw, 46px);
  padding: clamp(48px, 6vw, 88px) clamp(20px, 5vw, 68px);
  background:
    radial-gradient(90% 130% at 62% 128%, rgba(46, 130, 255, .5), transparent 62%),
    linear-gradient(180deg, #061224 0%, #04101f 62%, #030a15 100%);
  color: #fff;
}
.join .eyebrow.spaced { color: rgba(255, 255, 255, .6); }
.join h2 {
  margin: 16px 0 16px;
  font-size: clamp(28px, 3.3vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.032em;
  color: #fff;
}
.join-copy p { color: rgba(255, 255, 255, .76); font-size: clamp(14.5px, 1.05vw, 16px); line-height: 1.6; }
.join-cta { display: grid; justify-items: center; gap: 12px; }
.join-cta .fine { color: rgba(255, 255, 255, .6); }

/* ----------------------------------------------------------------- footer */

.site-foot {
  padding: clamp(28px, 5vw, 66px) clamp(20px, 5vw, 68px) clamp(16px, 2.4vw, 30px);
  background: #030a15;
  color: #fff;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 2.1fr) minmax(0, 1.25fr);
  gap: clamp(26px, 3.4vw, 54px);
}
.foot-brand .home-mark { margin-bottom: 16px; }
.foot-brand .home-mark img { width: 40px; height: 40px; }
.foot-brand .home-mark b { font-size: 23px; color: #fff; }
.foot-brand .home-mark small { color: rgba(255, 255, 255, .5); }
.foot-brand > p { max-width: 24em; font-size: 13px; line-height: 1.62; color: rgba(255, 255, 255, .62); }

.socials { display: flex; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; }
.socials a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .78);
  transition: background-color var(--quick), color var(--quick);
}
.socials svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.socials a:hover { background: var(--quvault-blue); color: #fff; }

.foot-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 36px); }
.foot-cols div { display: grid; align-content: start; gap: 8px; }
.foot-cols h3,
.foot-signup h3 {
  margin-bottom: 4px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: #fff;
}
.foot-cols a {
  font-size: 13px;
  color: rgba(255, 255, 255, .62);
  text-decoration: none;
  transition: color var(--quick);
}
.foot-cols a:hover { color: var(--quvault-blue-bright); }

.foot-signup > p { margin-bottom: 14px; font-size: 13px; color: rgba(255, 255, 255, .62); }
.signup-row { display: flex; gap: 8px; }
.signup-row input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: #fff;
  font: 400 13.5px/1 var(--sans);
}
.signup-row input::placeholder { color: rgba(255, 255, 255, .42); }
.signup-row input:focus { border-color: var(--quvault-blue); }
.signup-row .round-btn { width: 44px; height: 44px; border-radius: 9px; flex: none; }
.foot-signup .check { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; font-size: 12px; color: rgba(255, 255, 255, .6); }
.foot-signup .check input { margin: 1px 0 0; accent-color: var(--quvault-blue); }
.foot-signup .fine { margin-top: 8px; color: var(--quvault-blue-bright); }

.secured-by {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
}
.secured-by img {
  width: auto;
  height: 17px;
  opacity: .8;
  transition: opacity var(--quick);
}
.secured-by:hover img { opacity: 1; }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: clamp(18px, 3vw, 44px);
  padding-top: clamp(12px, 1.6vw, 22px);
  border-top: 1px solid rgba(255, 255, 255, .1);
  font-size: 12.5px;
  color: rgba(255, 255, 255, .5);
}

/* ------------------------------------------------------------- responsive */

@media (max-width: 1040px) {
  .built, .voices, .join { grid-template-columns: minmax(0, 1fr); }
  .voices { padding-right: clamp(20px, 5vw, 68px); }
  .voices-art { min-height: 220px; border-radius: var(--r-lg); }
  .join-cta { justify-items: start; }
  .foot-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .foot-signup { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .how-steps li + li::before { display: none; }
  .built-stats { border-left: 0; }
  .foot-top { grid-template-columns: minmax(0, 1fr); }
  .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------- less motion */

/* Hover lifts and presses are motion too, not only keyframes. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; }
  .btn:active, .icon-btn:active, .tab:active, .seg-item:active, .nav:active, .account:active,
  .network-choice:active, .account-card:hover, .account-card:active { transform: none; }
}

/* ----------------------------------------------------------- the home page */

/*
 * One screen: a hand, a mark pulsing in its palm, and the product's one sentence. The pulse is
 * the only motion and stops under prefers-reduced-motion.
 */
.home {
  --navy: #0a1f44;
  max-width: none;
  margin: 0;
  padding: 0;
  background:
    radial-gradient(70vw 52vh at 76% -6%, rgba(10, 98, 255, .10), transparent 62%),
    radial-gradient(48vw 40vh at 2% 6%, rgba(10, 98, 255, .06), transparent 64%),
    var(--surface);
}

/*
 * The header shares the hero's dark ground so they read as one surface; the logo and outlined
 * button are light for that reason. The nav must fit between the mark and the buttons at every
 * width, or it pushes them against the window edge.
 */
.home-top {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 32px);
  padding: 22px clamp(20px, 5vw, 68px);
  background: #04070e;
}
.home-mark { display: flex; align-items: center; gap: 13px; text-decoration: none; color: inherit; }
.home-mark img { width: 52px; height: 52px; }
.home-mark span { display: grid; gap: 3px; }
.home-mark b { font-size: 27px; font-weight: 700; letter-spacing: -.028em; color: #fff; }
.home-mark small {
  font: 600 9.5px/1 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--muted);
}

.home-nav { display: flex; min-width: 0; gap: clamp(14px, 2vw, 38px); margin-inline: auto; }
.home-nav a {
  white-space: nowrap;
  color: rgba(255, 255, 255, .82);
  font: 500 15px/1 var(--sans);
  letter-spacing: -.01em;
  text-decoration: none;
  padding: 6px 2px;
  border-radius: 6px;
  transition: color var(--quick);
}
.home-nav a:hover { color: var(--brand); }
.home-top .btn { padding: 0 30px; height: 44px; font-size: 15px; }

/* ------------------------------------------------------------------- hero */

.eyebrow.spaced { letter-spacing: .26em; font-size: 11.5px; color: var(--muted); }

.hero h1 {
  margin: 20px 0 22px;
  font-size: clamp(38px, 5.4vw, 68px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.035em;
  color: var(--navy);
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lede { max-width: 30em; font-size: clamp(16px, 1.25vw, 18.5px); line-height: 1.55; color: var(--text-2); }

.hero-marks {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 2.4vw, 34px);
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.hero-marks li { display: flex; align-items: center; gap: 12px; }
.hero-marks span:last-child { font: 500 13.5px/1.35 var(--sans); letter-spacing: -.01em; color: var(--text); }

.glyph {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex: none;
  border-radius: 15px;
  background: var(--brand-tint);
  color: var(--brand);
}
.glyph svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(16px, 2.5vw, 38px); margin-top: 38px; }
.btn.xl { height: 66px; padding: 0 38px; font-size: 19px; font-weight: 600; }
.btn .chev, .link .chev { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.btn.xl .chev { width: 20px; height: 20px; margin-left: 4px; }
.link.go { display: inline-flex; align-items: center; gap: 7px; font-size: 16px; font-weight: 600; }
.link.palm-link { display: block; margin-top: 18px; font-size: 14px; color: var(--muted); }
.link.palm-link:hover { color: var(--brand); }
.home .error { margin-top: 10px; }
.eyebrow.foot-note { margin-top: 26px; }

/* ---------------------------------------------------------- the hand, in 3D */

.hero-hand { position: relative; display: flex; justify-content: center; min-width: 0; perspective: 1400px; }
.hand-note {
  position: absolute;
  top: 24%;
  right: 0;
  z-index: 2;
  font: 600 10.5px/1.7 var(--sans);
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/*
 * The frame keeps the photograph's proportions because every overlay is placed in percentages
 * of the image; with the wrong ratio the mark drifts off the palm at some widths.
 */
.hand-frame {
  position: relative;
  width: min(100%, 580px);
  aspect-ratio: 1145 / 1374;
  transform-style: preserve-3d;
  transform:
    perspective(1400px)
    rotateY(var(--tilt-x, 0deg))
    rotateX(var(--tilt-y, 0deg))
    translateZ(0);
  will-change: transform;
}
/*
 * No transition while following the pointer: a transition fighting per-frame updates holds the
 * transform where it started. It eases only on the way back to rest.
 */
.hand-frame.settling { transition: transform .6s cubic-bezier(.22, .61, .36, 1); }
.hand-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  /* The render is cut out on white, so depth has to be added. */
  filter: drop-shadow(0 34px 44px rgba(9, 44, 110, .26)) drop-shadow(0 4px 10px rgba(9, 44, 110, .12));
}

/* A floor shadow, which reads as depth. */
.hand-frame::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2%;
  width: 62%;
  height: 7%;
  transform: translateX(-50%) translateZ(-40px);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(9, 44, 110, .26), transparent 78%);
  filter: blur(6px);
}
.hand-frame::after { content: none; }

/* A placeholder shape until the photograph loads, so the frame doesn't look broken. */
.hand-fallback {
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 34% 34% / 46% 46% 54% 54%;
  background:
    radial-gradient(46% 38% at 50% 46%, rgba(10, 98, 255, .20), transparent 70%),
    linear-gradient(180deg, rgba(10, 98, 255, .10), rgba(10, 98, 255, .03) 60%, transparent);
  border: 1px solid rgba(10, 98, 255, .14);
}
.hand-frame.has-image .hand-fallback { display: none; }

/*
 * Anchored on the Q in the photograph, measured from the pixels: 49.9% across, 59.8% down. The
 * overlay is 62% of the image wide, so one unit of its 400-unit box is a fixed fraction of the
 * hand at any size.
 */
.palm-q {
  position: absolute;
  left: 49.9%;
  top: 59.8%;
  width: 62%;
  transform: translate(-50%, -50%) translateZ(30px);
  overflow: visible;
  pointer-events: none;
}
/* Screen only brightens, so the photographed Q lights up and the palm around it is untouched. */
.palm-q { mix-blend-mode: screen; }
.palm-q .glow { transform-origin: 200px 200px; opacity: .5; }

@media (prefers-reduced-motion: no-preference) {
  /* The hand stays still; only the veins and the mark answering them move. */
  .palm-q .glow { animation: q-pulse 7s ease-in-out infinite; }

  /* Half a beat behind the vein pulse reaching the palm. */
  @keyframes q-pulse {
    0%, 100% { opacity: .38; transform: scale(.93); }
    38% { opacity: 1; transform: scale(1.1); }
    62% { opacity: .56; transform: scale(1); }
  }
}

/*
 * The veins, lit, from the same image rather than a tracing. The render's veins are about four
 * times brighter than the skin (239 against 58), so high contrast turns the hand black and the
 * veins white. Black adds nothing under screen, so only the veins light up, in perfect register.
 */
.hand-frame .vein-glow,
.hand-frame .vein-flow {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  mix-blend-mode: screen;
  filter: brightness(.72) contrast(5) saturate(2.4);
  /* No drop shadow: the hand underneath already casts one. */
}

/* a faint resting glow across all the veins */
.hand-frame .vein-glow { opacity: .2; }

/*
 * A pulse travelling up: the mask is three times the hand's height with one bright band, so
 * sliding it from bottom to top runs the band from wrist to fingertips.
 */
.hand-frame .vein-flow {
  opacity: 0;
  -webkit-mask-image: linear-gradient(to top, transparent 20%, rgba(0, 0, 0, .35) 28%, #000 34%, rgba(0, 0, 0, .35) 40%, transparent 48%);
  mask-image: linear-gradient(to top, transparent 20%, rgba(0, 0, 0, .35) 28%, #000 34%, rgba(0, 0, 0, .35) 40%, transparent 48%);
  -webkit-mask-size: 100% 300%;
  mask-size: 100% 300%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: 0% 100%;
  mask-position: 0% 100%;
  /* Moving a mask repaints rather than composites; warn the browser. */
  will-change: mask-position, opacity;
}

@media (prefers-reduced-motion: no-preference) {
  /* One slow pass up the hand over a resting glow; kept subtle, noticed on a second look. */
  .hand-frame .vein-glow { animation: vein-rest 7s ease-in-out infinite; }
  .hand-frame .vein-flow { animation: vein-rise 7s cubic-bezier(.45, .05, .35, 1) infinite; }

  @keyframes vein-rest {
    0%, 100% { opacity: .14; }
    38% { opacity: .34; }
  }
  /* Dim from the wrist, brightest over the palm where the mark is, thinning into the fingers. */
  @keyframes vein-rise {
    0% { -webkit-mask-position: 0% 100%; mask-position: 0% 100%; opacity: 0; }
    14% { opacity: .46; }
    36% { opacity: .88; }
    58% { opacity: .66; }
    80% { opacity: .36; }
    94%, 100% { -webkit-mask-position: 0% 0%; mask-position: 0% 0%; opacity: 0; }
  }
}

/* Without blend modes the layers would cover the hand as flat copies, so drop them. */
@supports not (mix-blend-mode: screen) {
  .hand-frame .vein-glow, .hand-frame .vein-flow { display: none; }
}

/* ----------------------------------------- features, shared with the about page */

.home-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  gap: clamp(24px, 3vw, 46px);
  padding: clamp(30px, 4vw, 54px) clamp(20px, 5vw, 68px) clamp(54px, 7vw, 92px);
}
.home-features article { display: grid; gap: 12px; align-content: start; }
.home-features h2 { font-size: 21px; font-weight: 700; letter-spacing: -.024em; color: var(--navy); }
.home-features p { font-size: 15px; line-height: 1.5; color: var(--text-2); }

/* ----------------------------------------------------------------- footer */

.home-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding: clamp(64px, 9vw, 120px) clamp(20px, 5vw, 68px) clamp(40px, 5vw, 62px);
  border-radius: 0;
  background:
    radial-gradient(120% 90% at 50% 130%, rgba(46, 130, 255, .38), transparent 62%),
    linear-gradient(180deg, #071630, #04101f);
  color: #fff;
}
.home-foot-line {
  font: 600 10.5px/2 var(--sans);
  letter-spacing: .22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}
.home-foot-mark { display: flex; align-items: center; gap: 12px; text-align: right; }
.home-foot-mark span { display: grid; gap: 3px; }
.home-foot-mark b { font-size: 21px; font-weight: 700; letter-spacing: -.026em; }
.home-foot-mark small {
  font: 600 9px/1 var(--sans);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .5);
}

@media (max-width: 1100px) {
  .home-nav { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-hand { order: -1; }
  .hand-note { display: none; }
  .hand-frame { width: min(100%, 380px); }
  .home-foot { flex-direction: column; align-items: flex-start; }
  .home-foot-mark { text-align: left; }
}
@media (max-width: 520px) {
  .home-top { gap: 14px; }
  .home-mark img { width: 42px; height: 42px; }
  .home-mark b { font-size: 22px; }
  .btn.xl { width: 100%; height: 58px; padding: 0 28px; font-size: 17px; }
  .hero-cta { gap: 18px; }
}

/* ------------------------------------------------- the menu, on a small screen */

/* Below the width the nav fits at, it folds behind a button instead of disappearing. */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  margin-left: auto;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 11px;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 1.6px;
  border-radius: 2px;
  background: #fff;
  transition: transform var(--quick), opacity var(--quick);
}
.home-top.open .nav-toggle span:nth-child(1) { transform: translateY(6.6px) rotate(45deg); }
.home-top.open .nav-toggle span:nth-child(2) { opacity: 0; }
.home-top.open .nav-toggle span:nth-child(3) { transform: translateY(-6.6px) rotate(-45deg); }

@media (max-width: 1100px) {
  .home-top { flex-wrap: wrap; gap: 14px 18px; }
  .nav-toggle { display: flex; order: 2; }
  .home-top-cta { order: 3; width: 100%; }
  .home-top-cta .btn { flex: 1; }

  /* hidden at this width; the button opens it */
  .home-nav {
    display: none;
    order: 4;
    width: 100%;
    flex-direction: column;
    gap: 2px;
    margin-inline: 0;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, .12);
  }
  .home-top.open .home-nav { display: flex; }
  .home-nav a { padding: 11px 2px; font-size: 16px; }
}

/* ----------------------------------------------- footer, matched to the design */

/* keep the tagline on one line */
.home-mark small { white-space: nowrap; }

/* The field and its button form one rounded well with the arrow inside. */
.signup-row {
  gap: 0;
  padding: 5px 5px 5px 0;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 11px;
  background: rgba(255, 255, 255, .06);
}
.signup-row input { height: 34px; border: 0; background: transparent; }
.signup-row input:focus { outline: none; }
.signup-row:focus-within { border-color: var(--quvault-blue); }
.signup-row .round-btn { width: 34px; height: 34px; border-radius: 8px; }
.foot-bottom .palm-link { font-size: 12px; color: rgba(255, 255, 255, .55); }
.foot-bottom .palm-link:hover { color: var(--quvault-blue-bright); }
.foot-bottom .error { min-height: 0; flex-basis: 100%; text-align: center; }

/* ============================================ one measure for the whole site */

/*
 * Bands still span the window, but their content is held to one centred measure, so lines stay
 * readable and the text's left edge is the same from the nav to the copyright.
 */


.home-top,
.hero-inner,
.trust,
.why,
.built,
.join,
.site-foot,
.about-hero,
.about-purpose,
.home-features,
.about-stats,
.about-story {
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.how,
.about-vision { margin-left: var(--gutter); margin-right: var(--gutter); }

/* The testimonial's picture bleeds off the right edge. */
.voices { padding-left: var(--gutter); padding-right: 0; }
@media (max-width: 1040px) { .voices { padding-right: var(--gutter); } }

/* ======================================================== the hero photograph */

/*
 * Shows only the text-free rectangle of the photograph: x 600 to 1536, y 100 to 870, clear of
 * the header drawn along its top and the trust strip along its foot. Percentages place it at
 * any width without cropping the file.
 */
.home .hero {
  position: relative;
  display: block;
  padding: 0;
  overflow: hidden;
  background: linear-gradient(180deg, #04080f 0%, #061020 52%, #040b14 100%);
  color: #fff;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(66%, 1060px);
  background-image: url("/hero-scene.webp");
  background-repeat: no-repeat;
  /* x=600 of 1536 across; y=100 of 1024 down, clearing the header drawn into the picture */
  background-position: 100% 39.3701%;
  background-size: 164.1026% 132.9870%;
  /* the cut edge is near-black, so a short fade hides it */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 9%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 9%);
}

/* The reader's ring, pulsing under the palm. */
.reader-pulse {
  position: absolute;
  left: 21.5%;
  top: 56%;
  width: 26%;
  aspect-ratio: 1 / .34;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(150, 215, 255, .55), rgba(60, 150, 255, .18) 58%, transparent 78%);
  mix-blend-mode: screen;
  opacity: .35;
  pointer-events: none;
}

.home .hero .hero-inner {
  position: relative;
  z-index: 1;
  display: block;
  padding-top: clamp(34px, 5vw, 76px);
  padding-bottom: clamp(30px, 4vw, 58px);
}
.home .hero-copy { max-width: min(46%, 620px); }

@media (prefers-reduced-motion: no-preference) {
  .reader-pulse { animation: reader-breathe 3.4s var(--ease) infinite; }
  @keyframes reader-breathe {
    0%, 100% { opacity: .26; transform: scale(.94); }
    46% { opacity: .62; transform: scale(1.06); }
  }
}

@media (max-width: 1040px) {
  .hero-photo {
    /* already a child of the full-width band, so it reaches the edge */
    position: relative;
    width: 100%;
    aspect-ratio: 936 / 770;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .home .hero-copy { max-width: none; }
  .home .hero .hero-inner { padding-bottom: 18px; }
}

/* The Veyns lockup in the app header, at its own proportions. */
.mark-veyns { width: auto; height: 24px; }

/* ───────────────────────────────────────────────────────────────────────────
 * Dashboard layout: how the screen spends its space, beyond the colour tokens.
 * ─────────────────────────────────────────────────────────────────────────── */

/*
 * The price chart reserved 230px by 950px even when empty, and on testnet4 it always is: the
 * price service isn't authorised for this build, and test coins have no price. So it collapses
 * when empty. `:empty` is reliable here: the chart holds an SVG or nothing.
 */
.chart:empty { min-height: 0; height: 0; margin: 0; }

/* Without a chart the price change is noise; hide it but keep the elements, which the script writes to. */
.chart:empty ~ .total-head .total-change,
.total:has(.chart:empty) .total-change { display: none; }

/* A failed price lookup reads as an aside, not an error, in the main card. */
#chart-note { color: var(--faint); font-size: 12px; }

/* The balance is the first thing to read: mono, tabular, large, with a quiet unit after it. */
.card.total .amount {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0;
}
.card.total .amount .unit {
  font-family: var(--sans);
  font-size: .3em;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-left: .5em;
  vertical-align: .55em;
}

/* Panels sit on the page: a hairline of light, not a drop shadow. */
.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  box-shadow: var(--lift-1);
}

/* The primary action carries the accent's glow. */
.btn.primary, .btn.brand-solid { box-shadow: var(--glow); }

/* Eyebrows are labels: small, spaced, quiet. */
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------ who holds a new vault's palm key */
.nc { margin: 18px 0 4px; }
.nc-q { margin: 18px 0 6px; color: var(--text); font: 600 15px/1.3 var(--sans); letter-spacing: -.01em; }
.nc .fine { margin: 0 0 10px; }
.nc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nc-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 3px; align-content: start;
  padding: 13px 14px; border: 1px solid var(--hair-strong); border-radius: var(--r); background: var(--surface);
  color: var(--text-2); font: 400 13px/1.45 var(--sans); text-align: left; cursor: pointer;
  transition: border-color var(--quick), background-color var(--quick);
}
.nc-card[hidden] { display: none; }
.nc-card svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--text); }
.nc-card b { color: var(--text); font-size: 14px; font-weight: 600; }
.nc-card span { grid-column: 2; }
.nc-size { grid-template-columns: 1fr; }
.nc-size span { grid-column: 1; }
.nc-card:hover { border-color: var(--brand); }
.nc-card[aria-checked="true"] { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand) inset; background: var(--brand-tint); }
.nc-note { min-height: 1.4em; margin-top: 12px !important; }
.nc-team { margin: 6px 0 14px; padding: 16px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--surface); }
.nc-team .nc-q { margin-top: 0; }
.nc-steps { margin: 0 0 14px; padding-left: 20px; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.nc-steps li + li { margin-top: 4px; }
.nc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-bottom: 12px; }
.nc-phone { padding: 10px; border: 1px solid var(--hair); border-radius: 10px; background: var(--surface-2); }
.nc-phone-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; color: var(--text); font-size: 13px; }
.nc-state { color: var(--text-2); font-size: 12px; }
.nc-phone.joined .nc-state { color: var(--ok); font-weight: 600; }
.nc-qr { border-radius: 8px; overflow: hidden; background: #fff; line-height: 0; }
.nc-qr svg { display: block; width: 100%; height: auto; }
.nc-code { display: grid; gap: 4px; padding: 10px 0 4px; }
.nc-code span { color: var(--text-2); font-size: 12px; }
.nc-code b { color: var(--text); font: 600 15px/1.3 var(--mono, ui-monospace, monospace); letter-spacing: .04em; }
@media (max-width: 560px) {
  .nc-row { grid-template-columns: 1fr; }
}

/* the payment and its fees, at the top of a receipt */
.receipt-payment { margin: 4px 0 14px; }

/* the Rules page: one row per daily limit */
.limit-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); }
.limit-row:first-child { border-top: 0; }
.limit-what { display: grid; gap: 2px; }
.limit-what small { color: var(--text-2); }
.limit-set { display: flex; align-items: center; gap: 8px; }
.limit-set input { width: 120px; }
