/* ==========================================================================
   Crinkel — design system. Plain CSS, no build step.
   Concept: black and silver, taken from the Crinkel logo. One signature: the
   crinkled brushed-silver card. Night panels (hero, sidebar, balance) stay black in
   both themes; black is the action colour on light, silver on dark.
   ========================================================================== */
:root {
  --bg: #f2f3f5;
  --surface: #ffffff;
  --surface-2: #eceef1;
  --surface-3: #e2e4e8;
  --ink: #111214;
  --ink-2: #4a4e56;
  --ink-3: #868a93;
  --line: #dfe1e5;
  --line-2: #cdd0d6;

  --accent: #111214;
  --accent-hover: #2c2e33;
  --accent-ink: #ffffff;
  --accent-soft: #e8eaee;
  --gold: #4b4f57;        /* graphite silver, readable as text on light */
  --gold-soft: #e3e5e9;

  --good: #0e7a54;   --good-soft: #e1f3eb;
  --warn: #a8670f;   --warn-soft: #fbf0dc;
  --bad: #c0362c;    --bad-soft: #fbe6e3;

  --night: #0d0e10;
  --night-2: #18191c;
  --night-3: #26282c;
  --night-ink: #f3f4f6;
  --night-ink-2: #a3a7ae;
  --foil-a: #c9cdd3;     /* silver */
  --foil-b: #8b9099;     /* dark silver */
  --foil-c: #f4f5f7;     /* highlight */

  --shadow-sm: 0 1px 2px rgba(18, 19, 24, .06);
  --shadow: 0 1px 2px rgba(18, 19, 24, .05), 0 12px 32px -16px rgba(18, 19, 24, .22);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .55);

  --f-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --f-body: "DM Sans", "Segoe UI", system-ui, sans-serif;
  --f-num: var(--f-body);
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0b0c; --surface: #141517; --surface-2: #1c1d20; --surface-3: #25272a;
    --ink: #eceef1; --ink-2: #a7abb2; --ink-3: #737780; --line: #24262a; --line-2: #313338;
    --accent: #d6d9de; --accent-hover: #f1f2f4; --accent-ink: #0d0e10; --accent-soft: #24262a;
    --gold: #b9bdc5; --gold-soft: #1f2124;
    --good: #3ccb93; --good-soft: #10291f; --warn: #f0b24f; --warn-soft: #2e2311; --bad: #f2786c; --bad-soft: #351816;
    --night: #0f1012; --night-2: #18191c; --night-3: #26282c;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 36px -18px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0b0c; --surface: #141517; --surface-2: #1c1d20; --surface-3: #25272a;
  --ink: #eceef1; --ink-2: #a7abb2; --ink-3: #737780; --line: #24262a; --line-2: #313338;
  --accent: #d6d9de; --accent-hover: #f1f2f4; --accent-ink: #0d0e10; --accent-soft: #24262a;
  --gold: #b9bdc5; --gold-soft: #1f2124;
  --good: #3ccb93; --good-soft: #10291f; --warn: #f0b24f; --warn-soft: #2e2311; --bad: #f2786c; --bad-soft: #351816;
  --night: #0f1012; --night-2: #18191c; --night-3: #26282c;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 14px 36px -18px rgba(0,0,0,.8);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }
img { max-width: 100%; }
h1, h2, h3 { line-height: 1.15; text-wrap: balance; margin: 0; font-family: var(--f-display); font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; letter-spacing: -.01em; }
h3 { font-size: 1rem; letter-spacing: 0; }
p { margin: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.ic { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mono, code { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.amount, .num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: .84rem; }
.eyebrow { font: 700 .7rem/1 var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 28px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid-3 { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.grid-4 { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.credit { color: var(--good); }
.debit { color: var(--ink); }
[hidden] { display: none !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: 700 .9rem/1.1 var(--f-body);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .1s, box-shadow .15s;
}
.btn:hover { border-color: var(--ink-3); color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--accent) 70%, transparent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-gold { background: linear-gradient(135deg, var(--foil-c), var(--foil-a) 45%, var(--foil-b)); border-color: transparent; color: #111214; }
.btn-gold:hover { color: #111214; filter: brightness(1.05); border-color: transparent; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-2); border-color: transparent; }
.btn-danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 45%, transparent); background: transparent; }
.btn-danger:hover { background: var(--bad-soft); color: var(--bad); border-color: var(--bad); }
.btn-sm { padding: 6px 12px; font-size: .8rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
button[disabled], .btn[aria-disabled="true"], fieldset[disabled] .btn { opacity: .45; cursor: not-allowed; }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.icon-btn .dot { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 .62rem/16px var(--f-body); text-align: center; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .label { font-weight: 700; font-size: .85rem; }
.hint { font-size: .8rem; color: var(--ink-3); }
input, select, textarea {
  width: 100%; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s;
}
textarea { resize: vertical; min-height: 96px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--accent); }
input[type="file"] { padding: 9px; background: var(--surface-2); border-style: dashed; }
.input-amount { font: 600 1.7rem/1.2 var(--f-num); padding: 14px 16px; letter-spacing: -.02em; }
.input-code { font: 600 1.5rem/1 var(--f-mono); letter-spacing: .4em; text-align: center; }
.error { color: var(--bad); font-size: .82rem; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { margin-top: 4px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

/* Toggle switch (settings) */
.switch { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.switch:last-child { border-bottom: 0; }
.switch .txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.switch .txt strong { font-weight: 700; font-size: .92rem; }
.switch input { appearance: none; -webkit-appearance: none; width: 44px; height: 26px; flex: none; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-2); position: relative; cursor: pointer; transition: background .2s; padding: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface); box-shadow: var(--shadow-sm); transition: transform .2s; }
.switch input:checked { background: var(--accent); border-color: var(--accent); }
.switch input:checked::after { transform: translateX(18px); background: #fff; }
.switch input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; box-shadow: none; }

/* ---------- Surfaces ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.panel-tight { padding: 0; overflow: hidden; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.panel-body { padding: 20px 22px; }
.panel-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--surface-2); }
.notice { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 13px 16px; border-radius: var(--r); font-size: .9rem; border: 1px solid transparent; }
.notice-ok { background: var(--good-soft); color: var(--ink); border-color: color-mix(in srgb, var(--good) 28%, transparent); }
.notice-info { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.notice-warn { background: var(--warn-soft); color: var(--ink); border-color: color-mix(in srgb, var(--warn) 32%, transparent); }
.notice-bad { background: var(--bad-soft); color: var(--ink); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.notice ul { margin: 6px 0 0; padding-left: 18px; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font: 700 .68rem/1.5 var(--f-body); letter-spacing: .05em; text-transform: uppercase; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill-ok { background: var(--good-soft); color: var(--good); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-gold { background: var(--gold-soft); color: var(--gold); }
.pill-plain::before { display: none; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th { text-align: left; font: 700 .68rem/1 var(--f-body); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 13px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); }
td { padding: 13px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
tr:last-child td { border-bottom: 0; }
td.num, th.num { text-align: right; white-space: nowrap; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.who .av { width: 32px; height: 32px; }
.who span { display: block; }

/* Avatar */
.av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--foil-c), var(--foil-a) 60%, var(--foil-b)); color: #111214; font: 800 .78rem var(--f-body); }

/* Ledger list */
.ledger { list-style: none; margin: 0; padding: 0; }
.ledger li a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 22px; color: inherit; border-bottom: 1px solid var(--line); }
.ledger li:last-child a { border-bottom: 0; }
.ledger li a:hover { background: var(--surface-2); color: inherit; }
.ledger .glyph { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.ledger .glyph.in { background: var(--good-soft); color: var(--good); }
.ledger .what { min-width: 0; }
.ledger .what strong { display: block; font-weight: 700; }
.ledger .what span { display: block; font-size: .8rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger .amt { text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; font-weight: 600; }
.ledger .amt small { display: block; font-size: .7rem; color: var(--ink-3); font-weight: 400; }
.empty { padding: 40px 22px; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ic { width: 28px; height: 28px; color: var(--ink-3); }

/* ==========================================================================
   App shell
   ========================================================================== */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--night) 264px, transparent 264px); }
.side { background: var(--night); color: var(--night-ink); padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; font: 700 1.25rem/1 var(--f-display); letter-spacing: -.03em; }
.brand:hover { color: inherit; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand .logo, .paycard .logo { display: block; width: auto; max-width: 220px; object-fit: contain; }
.logo-auto-white { filter: brightness(0) invert(1); }
.paycard .logo { max-width: 120px; }
.side .brand { padding: 0 8px; color: var(--night-ink); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: var(--r); background: var(--night-2); }
.side-user .meta { min-width: 0; display: flex; flex-direction: column; }
.side-user strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-user .meta span { font: 500 .72rem var(--f-mono); color: var(--night-ink-2); }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--night-ink-2); font-weight: 600; font-size: .9rem; transition: background .15s, color .15s; }
.nav a:hover { background: var(--night-2); color: var(--night-ink); }
.nav a.on { background: var(--night-3); color: var(--night-ink); }
.nav a.on .ic { color: var(--foil-a); }
.nav .count { margin-left: auto; font: 700 .68rem var(--f-mono); background: var(--foil-a); color: #111214; padding: 1px 7px; border-radius: 999px; }
.nav .count.soft { background: var(--night-3); color: var(--foil-a); }
.nav-label { padding: 14px 12px 6px; font: 700 .64rem/1 var(--f-body); letter-spacing: .16em; text-transform: uppercase; color: color-mix(in srgb, var(--night-ink-2) 70%, transparent); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.side-foot a, .side-foot button { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 10px; color: var(--night-ink-2); font: 600 .88rem var(--f-body); background: none; border: 0; cursor: pointer; text-align: left; width: 100%; }
.side-foot a:hover, .side-foot button:hover { background: var(--night-2); color: var(--night-ink); }

.main { padding-block: 22px 64px; padding-inline: clamp(16px, 3.5vw, 44px); display: flex; flex-direction: column; gap: 24px; max-width: 1240px; width: 100%; }
.appbar { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }
.appbar .admin-chip { margin-right: auto; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); }
.page-head .sub { color: var(--ink-2); margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.back:hover { color: var(--ink); }
.topbar { display: none; }
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: var(--r); background: var(--night); color: var(--night-ink); }
.banner .ic { color: var(--foil-a); margin-top: 2px; }
.banner.warning .ic { color: var(--warn); }
.banner strong { display: block; }
.banner p { color: var(--night-ink-2); font-size: .88rem; }

@media (max-width: 920px) {
  .shell { grid-template-columns: 1fr; background: none; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0; z-index: 40; height: 100%; padding-top: calc(22px + env(safe-area-inset-top, 0px)); }
  .topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top, 0px)); background: var(--night); color: var(--night-ink); position: sticky; top: 0; z-index: 30; }
  .topbar .brand { color: var(--night-ink); font-size: 1.1rem; }
  .topbar .icon-btn { background: var(--night-2); border-color: var(--night-3); color: var(--night-ink); }
  .appbar { display: none; }
}

/* ---------- Balance (night card) ---------- */
.balance { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: clamp(22px, 3vw, 32px); background: var(--night); color: var(--night-ink); display: flex; flex-direction: column; gap: 22px; box-shadow: var(--shadow); isolation: isolate; }
.balance::before { content: ""; position: absolute; inset: auto -20% -60% 40%; height: 140%; background: radial-gradient(closest-side, color-mix(in srgb, var(--foil-b) 38%, transparent), transparent 70%); z-index: -1; }
.balance::after { content: ""; position: absolute; inset: 0; background-image: var(--crinkle); opacity: .35; mix-blend-mode: overlay; z-index: -1; pointer-events: none; }
.balance .eyebrow { color: var(--night-ink-2); }
.balance-total { font: 700 clamp(2.2rem, 5.4vw, 3.4rem)/1 var(--f-num); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.balance-total small { font: 600 .9rem var(--f-body); letter-spacing: 0; color: var(--night-ink-2); margin-left: 10px; }
.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--night-ink); font-weight: 700; font-size: .84rem; transition: background .15s, transform .15s; }
.action:hover { background: rgba(255,255,255,.12); color: var(--night-ink); transform: translateY(-1px); }
.action .ic { width: 22px; height: 22px; color: var(--foil-a); }
.wallet-list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 120px), 1fr)); }
.wallet { padding: 14px 16px; border-radius: 14px; border: 1px solid rgba(255,255,255,.09); display: flex; flex-direction: column; gap: 4px; background: rgba(255,255,255,.03); }
.wallet .code { font: 700 .72rem var(--f-mono); color: var(--night-ink-2); letter-spacing: .08em; }
.wallet .amt { font: 600 1.18rem var(--f-num); font-variant-numeric: tabular-nums; }
.panel .wallet { border-color: var(--line); background: var(--surface-2); }
.panel .wallet .code { color: var(--ink-3); }

/* ---------- The Crinkel card (foil) ---------- */
:root { --crinkle: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .035' numOctaves='4' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .5 0 0 0 0 .5 0 0 0 1.6 -.35'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.paycard {
  --mx: 50%; --my: 30%;
  position: relative; aspect-ratio: 1.586; width: 100%; max-width: 400px; border-radius: 18px; padding: 22px 24px;
  color: #121316; isolation: isolate; overflow: hidden;
  background:
    radial-gradient(120% 90% at var(--mx) var(--my), rgba(255,255,255,.65), transparent 45%),
    conic-gradient(from 210deg at 70% 40%, var(--foil-c), var(--foil-a), var(--foil-b), #6b7079, var(--foil-a), var(--foil-c));
  display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-lg);
}
.paycard::before { content: ""; position: absolute; inset: 0; background-image: var(--crinkle); background-size: 260px; mix-blend-mode: soft-light; opacity: .9; z-index: -1; }
.paycard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.45), inset 0 -30px 60px -30px rgba(20,22,26,.35); pointer-events: none; }
.paycard.night { color: var(--night-ink); background: radial-gradient(110% 90% at var(--mx) var(--my), rgba(255,255,255,.14), transparent 45%), linear-gradient(140deg, #2c2e33, #0f1012 55%, #23252a); }
.paycard.night::after { box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); }
.paycard.frozen { filter: grayscale(.9) brightness(.85); }
.paycard .top { display: flex; justify-content: space-between; align-items: flex-start; }
.paycard .top .brand { font-size: 1.05rem; }
.paycard .chip { width: 40px; height: 30px; border-radius: 7px; background: linear-gradient(135deg, #eef0f3, #9aa0a9 55%, #dfe2e6); box-shadow: inset 0 0 0 1px rgba(30,32,36,.35); position: relative; }
.paycard .chip::after { content: ""; position: absolute; inset: 7px 9px; border: 1px solid rgba(30,32,36,.35); border-radius: 3px; }
.paycard .num { font: 600 clamp(.95rem, 3.6vw, 1.22rem) var(--f-mono); letter-spacing: .14em; }
.paycard .bottom { display: flex; justify-content: space-between; align-items: flex-end; font: 600 .72rem var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.paycard .bottom small { display: block; font-size: .58rem; opacity: .65; letter-spacing: .14em; }
.paycard .net { font: 800 1.35rem var(--f-display); font-style: italic; letter-spacing: -.03em; }

/* ---------- Bits ---------- */
.address { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); border: 1px dashed var(--line-2); }
.address code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .86rem; }
.seg { display: inline-flex; padding: 4px; background: var(--surface-2); border-radius: 999px; gap: 2px; flex-wrap: wrap; border: 1px solid var(--line); }
.seg label, .seg a { position: relative; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span, .seg a { display: block; padding: 7px 15px; border-radius: 999px; font: 700 .8rem var(--f-body); color: var(--ink-2); cursor: pointer; }
.seg a:hover { color: var(--ink); }
.seg input:checked + span, .seg a.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 700; font-size: .88rem; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a:hover { color: var(--ink); }
.tabs a.on { color: var(--ink); border-bottom-color: var(--accent); }
.summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 16px; font-size: .9rem; padding: 14px 16px; border-radius: var(--r); background: var(--surface-2); margin: 0; }
.summary dt { color: var(--ink-2); }
.summary dd { margin: 0; text-align: right; font-family: var(--f-num); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.summary .total { font-weight: 700; color: var(--ink); border-top: 1px solid var(--line-2); padding-top: 9px; }

.stat { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: inherit; box-shadow: var(--shadow-sm); transition: border-color .15s, transform .15s; }
a.stat:hover { border-color: var(--line-2); color: inherit; transform: translateY(-1px); }
.stat .top { display: flex; justify-content: space-between; align-items: center; color: var(--ink-3); }
.stat .v { font: 600 1.75rem/1 var(--f-num); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.stat .s { font-size: .8rem; color: var(--ink-3); }
.stat.attn { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: linear-gradient(180deg, var(--accent-soft), var(--surface) 70%); }
.stat.attn .v { color: var(--accent); }

.doc-frame { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface-2); }
.doc-frame img { display: block; width: 100%; max-height: 420px; object-fit: contain; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.inline-form input, .inline-form select { width: auto; flex: 1 1 160px; padding: 8px 12px; font-size: .86rem; }
.pager { display: flex; gap: 6px; justify-content: center; padding: 16px; flex-wrap: wrap; }
.pager a, .pager span { min-width: 36px; text-align: center; padding: 6px 12px; border-radius: 10px; border: 1px solid var(--line); font: 600 .84rem var(--f-num); color: var(--ink-2); }
.pager .on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.pager .off { opacity: .4; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 16px; font-size: .9rem; margin: 0; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; padding: 16px; border-radius: var(--r); background: var(--surface-2); font: 600 .95rem var(--f-mono); }
.qr { width: 184px; height: 184px; padding: 12px; background: #fff; border-radius: var(--r); border: 1px solid var(--line); display: grid; place-items: center; }
.qr svg { width: 160px; height: 160px; display: block; }

/* Chart (server-rendered SVG bars) */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart .bar { fill: var(--accent); }
.chart .bar.gold { fill: var(--gold); }
.chart .bar:hover { fill: var(--accent-hover); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart text { fill: var(--ink-3); font: 500 13px var(--f-mono); }
.spark .bar { fill: color-mix(in srgb, var(--accent) 75%, transparent); }

/* Messages (support) */
.thread { display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: min(640px, 92%); padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.msg.staff { align-self: flex-start; background: var(--surface); border-color: color-mix(in srgb, var(--gold) 40%, var(--line)); }
.msg.mine { align-self: flex-end; background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 22%, var(--line)); }
.msg .by { display: flex; gap: 8px; align-items: center; font-size: .78rem; color: var(--ink-3); margin-bottom: 6px; }
.msg .by strong { color: var(--ink); }
.msg p { white-space: pre-wrap; overflow-wrap: anywhere; }

/* Notifications list */
.notes { list-style: none; margin: 0; padding: 0; }
.notes li a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 14px; padding: 16px 22px; border-bottom: 1px solid var(--line); color: inherit; align-items: start; }
.notes li a:hover { background: var(--surface-2); color: inherit; }
.notes .tone { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--ink-3); }
.notes .tone.good { background: var(--good); }
.notes .tone.bad { background: var(--bad); }
.notes .tone.warn { background: var(--warn); }
.notes li a > span:nth-child(2) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notes strong { display: block; }
.notes .unread strong::after { content: " •"; color: var(--accent); }

/* ==========================================================================
   Public site
   ========================================================================== */
.site { background: var(--bg); }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.night-band { background: var(--night); color: var(--night-ink); position: relative; isolation: isolate; overflow: hidden; }
.night-band::before { content: ""; position: absolute; inset: 0; background-image: var(--crinkle); background-size: 420px; opacity: .22; mix-blend-mode: overlay; z-index: -1; }
.site-nav { display: flex; justify-content: space-between; align-items: center; padding-block: 20px; gap: 16px; }
.site-nav nav { display: flex; gap: 26px; align-items: center; }
.site-nav nav a.link { color: var(--night-ink-2); font-weight: 600; font-size: .92rem; }
.site-nav nav a.link:hover { color: var(--night-ink); }
.site-nav .brand { color: var(--night-ink); }
.btn-night { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: var(--night-ink); }
.btn-night:hover { background: rgba(255,255,255,.14); color: var(--night-ink); border-color: rgba(255,255,255,.24); }
@media (max-width: 760px) { .site-nav nav a.link { display: none; } }

.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(36px, 6vw, 80px) clamp(64px, 8vw, 110px); }
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); font-size: .84rem; color: var(--night-ink-2); }
.hero .kicker b { background: linear-gradient(135deg, var(--foil-c), var(--foil-a), var(--foil-b)); color: #111214; padding: 3px 10px; border-radius: 999px; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.6rem, 6.6vw, 5.2rem); line-height: .98; letter-spacing: -.045em; margin-top: 22px; font-weight: 700; }
.hero h1 .foil { background: linear-gradient(100deg, var(--foil-c) 0%, var(--foil-a) 30%, var(--foil-b) 55%, var(--foil-c) 80%); -webkit-background-clip: text; background-clip: text; color: transparent; font-style: italic; padding-right: .08em; }
.hero .lede { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--night-ink-2); max-width: 33em; margin-top: 22px; }
.hero .cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero .proof { margin-top: 36px; display: flex; gap: clamp(20px, 4vw, 44px); flex-wrap: wrap; }
.hero .proof div { display: flex; flex-direction: column; gap: 2px; }
.hero .proof strong { font: 600 1.5rem var(--f-num); letter-spacing: -.03em; }
.hero .proof span { font-size: .8rem; color: var(--night-ink-2); }
.stage { position: relative; perspective: 1200px; display: grid; place-items: center; min-height: 380px; }
.stage .paycard { max-width: 420px; transform: rotateX(var(--rx, 10deg)) rotateY(var(--ry, -16deg)) rotateZ(-4deg); transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.stage .float { position: absolute; background: rgba(22,23,26,.86); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-lg); font-size: .84rem; }
.stage .float .ic { color: var(--foil-a); width: 20px; height: 20px; }
.stage .float strong { display: block; font: 600 .95rem var(--f-num); }
.stage .float span { color: var(--night-ink-2); font-size: .74rem; }
.stage .f1 { left: -4%; bottom: 8%; }
.stage .f2 { right: -2%; top: 6%; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } .stage { min-height: 300px; } .stage .f1 { left: 0; } .stage .f2 { right: 0; } }
@media (prefers-reduced-motion: reduce) { .stage .paycard { transition: none; } html { scroll-behavior: auto; } }

.ticker { border-top: 1px solid rgba(255,255,255,.08); padding-block: 18px; display: flex; gap: clamp(20px, 5vw, 56px); flex-wrap: wrap; justify-content: center; color: var(--night-ink-2); font: 600 .8rem var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.ticker span { display: inline-flex; align-items: center; gap: 8px; }
.ticker span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--foil-a); }

.band { padding-block: clamp(64px, 9vw, 112px); }
.band + .band { border-top: 1px solid var(--line); }
.band-head { display: flex; flex-direction: column; gap: 14px; max-width: 680px; }
.band-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); line-height: 1.04; letter-spacing: -.035em; }
.band-head p { color: var(--ink-2); font-size: 1.05rem; }
.center { text-align: center; margin-inline: auto; align-items: center; }

.bento { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; position: relative; overflow: hidden; }
.tile .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 8px; }
.tile .ico .ic { width: 22px; height: 22px; }
.tile h3 { font-size: 1.2rem; font-family: var(--f-display); letter-spacing: -.02em; }
.tile p { color: var(--ink-2); }
.tile.span-3 { grid-column: span 3; }
.tile.span-2 { grid-column: span 2; }
.tile.span-4 { grid-column: span 4; }
.tile.dark { background: var(--night); color: var(--night-ink); border-color: transparent; }
.tile.dark p { color: var(--night-ink-2); }
.tile.dark .ico { background: rgba(255,255,255,.08); color: var(--foil-a); }
.tile .mini-ledger { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.tile .mini-ledger div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .84rem; }
.tile .mini-ledger b { font-family: var(--f-mono); }
.tile.dark .mini-ledger div { background: rgba(255,255,255,.05); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } .tile.span-2, .tile.span-3, .tile.span-4 { grid-column: auto; } }

.steps { display: grid; gap: 16px; margin-top: 44px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: s; }
.step { padding: 24px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 8px; }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); font: 600 .78rem var(--f-mono); color: var(--gold); letter-spacing: .1em; }
.step p { color: var(--ink-2); font-size: .92rem; }

.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split > * { min-width: 0; }
.ticks { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 14px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li .ic { color: var(--good); margin-top: 3px; }
.night-band .ticks li .ic { color: var(--foil-a); }
.night-band .band-head p { color: var(--night-ink-2); }
.shield-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.shield-grid div { padding: 20px; border-radius: var(--r-lg); background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; flex-direction: column; gap: 6px; }
.shield-grid .ic { color: var(--foil-a); width: 22px; height: 22px; }
.shield-grid strong { font-size: .95rem; }
.shield-grid span { color: var(--night-ink-2); font-size: .84rem; }
@media (max-width: 520px) { .shield-grid { grid-template-columns: 1fr; } }

.price { margin-top: 40px; border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.price .row-p { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); align-items: center; }
.price .row-p:last-child { border-bottom: 0; }
.price .row-p span { color: var(--ink-2); }
.price .row-p b { font: 600 1rem var(--f-num); text-align: right; }
.price .row-p b.free { color: var(--good); }

details.faq { border-bottom: 1px solid var(--line); padding-block: 20px; }
details.faq summary { cursor: pointer; font: 600 1.05rem var(--f-display); list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after { content: "+"; font: 400 1.4rem/1 var(--f-mono); color: var(--ink-3); transition: transform .2s; }
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq p { color: var(--ink-2); margin-top: 12px; max-width: 62ch; }

.cta-band { border-radius: var(--r-xl); padding: clamp(32px, 6vw, 64px); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); letter-spacing: -.035em; max-width: 16ch; }

.site-foot { padding-block: 48px 56px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(140px, 1fr)); font-size: .88rem; }
.site-foot h4 { margin: 0 0 12px; font: 700 .7rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.site-foot a { color: var(--ink-2); }
.site-foot a:hover { color: var(--ink); }
.legal { border-top: 1px solid var(--line); padding-block: 20px 40px; font-size: .8rem; color: var(--ink-3); display: flex; flex-direction: column; gap: 6px; }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); }
.auth-art { background: var(--night); color: var(--night-ink); padding: 40px clamp(24px, 4vw, 56px); display: flex; flex-direction: column; justify-content: space-between; gap: 32px; position: relative; isolation: isolate; overflow: hidden; }
.auth-art::before { content: ""; position: absolute; inset: 0; background-image: var(--crinkle); background-size: 420px; opacity: .25; mix-blend-mode: overlay; z-index: -1; }
.auth-art .brand { color: var(--night-ink); }
.auth-art blockquote { margin: 0; font: 600 clamp(1.4rem, 2.6vw, 2rem)/1.2 var(--f-display); letter-spacing: -.025em; max-width: 18ch; }
.auth-art .paycard { max-width: 340px; transform: rotate(-6deg); }
.auth-form { display: grid; place-items: center; padding-block: 40px; padding-inline: 16px; }
.auth-form .inner { width: 100%; max-width: 420px; display: flex; flex-direction: column; gap: 22px; }
.auth-form h1 { font-size: 1.9rem; letter-spacing: -.035em; }
.auth-form .mobile-brand { display: none; }
@media (max-width: 880px) { .auth { grid-template-columns: 1fr; } .auth-art { display: none; } .auth-form .mobile-brand { display: inline-flex; } }

.prose { max-width: 72ch; display: flex; flex-direction: column; gap: 14px; padding-block: 48px 72px; color: var(--ink-2); }
.prose h1 { color: var(--ink); font-size: clamp(2rem, 4vw, 2.6rem); letter-spacing: -.035em; }
.prose h2 { color: var(--ink); margin-top: 14px; }
.lone { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; text-align: center; }
.lone .inner { max-width: 460px; display: flex; flex-direction: column; gap: 16px; align-items: center; }

/* Main + aside layout (stacks on narrow screens) */
.grid-main { display: grid; gap: 20px; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); align-items: start; }
.grid-main.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); }
@media (max-width: 1080px) { .grid-main, .grid-main.even { grid-template-columns: minmax(0, 1fr); } }

/* Logo preview swatches (admin) */
.brand-swatch { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--line); min-width: 0; }
.brand-swatch.light { background: #ffffff; }
.brand-swatch.light .eyebrow { color: #868996; }
.brand-swatch.dark { background: var(--night); border-color: transparent; }
.brand-swatch.dark .eyebrow { color: var(--night-ink-2); }
.swatch-stage { min-height: 90px; display: grid; place-items: center; }
.swatch-stage img { max-width: 100%; width: auto; object-fit: contain; }
.brand-swatch.light strong { color: #121318; font: 700 1.4rem var(--f-display); }
.brand-swatch.dark strong { color: var(--night-ink); font: 700 1.4rem var(--f-display); }

/* Notification dot on the black mobile bar */
.topbar .icon-btn .dot { background: var(--foil-a); color: #111214; }

/* Font picker (admin) */
.font-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.font-opt { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.font-opt:hover { border-color: var(--line-2); transform: translateY(-1px); }
.font-opt input { position: absolute; opacity: 0; pointer-events: none; }
.font-opt:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.font-opt input:focus-visible + .sample { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.font-opt .sample { font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.font-opt .body { font-size: .9rem; color: var(--ink-2); }
.font-opt .meta { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--ink-3); }

/* Public stats band */
.stats-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 1px; margin-top: -40px; position: relative; z-index: 2; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow); }
.stat-big { background: var(--surface); padding: 26px 24px; display: flex; flex-direction: column; gap: 4px; }
.stat-big strong { font: 700 clamp(1.9rem, 3.6vw, 2.6rem)/1 var(--f-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.stat-big span { color: var(--ink-2); font-size: .9rem; }

/* ==========================================================================
   Motion. Everything below switches off for people who ask for less motion.
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sheen { 0% { transform: translateX(-130%) skewX(-18deg); } 55%, 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); opacity: .75; } 50% { transform: translate(-8%, -6%) scale(1.08); opacity: 1; } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* Hero: headline lines rise in one after another, the card pops in, the badges bob */
.hero > div:first-child > * { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero > div:first-child > :nth-child(2) { animation-delay: .08s; }
.hero > div:first-child > :nth-child(3) { animation-delay: .18s; }
.hero > div:first-child > :nth-child(4) { animation-delay: .28s; }
.hero > div:first-child > :nth-child(5) { animation-delay: .38s; }
.stage { animation: pop 1s .2s cubic-bezier(.2, .8, .2, 1) both; }
.stage .float { animation: bob 6s ease-in-out infinite; }
.stage .f2 { animation-delay: -3s; }
.hero h1 .foil { background-size: 200% 100%; animation: foilshift 6s ease-in-out infinite alternate; }
@keyframes foilshift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* A slow light sweep across every card */
.paycard .shine { position: absolute; inset: -20% auto -20% 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); mix-blend-mode: soft-light; animation: sheen 7s ease-in-out infinite; pointer-events: none; z-index: 1; }
.paycard.night .shine { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .14), transparent); mix-blend-mode: normal; }

/* Scrolling strip of networks */
.ticker { overflow: hidden; display: block; padding-inline: 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.ticker .track { display: flex; gap: clamp(28px, 5vw, 64px); width: max-content; animation: marquee 28s linear infinite; }
.ticker:hover .track { animation-play-state: paused; }

/* Sections slide up as they scroll into view (only when JavaScript runs, so nothing stays hidden) */
html.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
html.js .reveal.in { opacity: 1; transform: none; }
.bento .tile:nth-child(2) { --i: 1; } .bento .tile:nth-child(3) { --i: 2; } .bento .tile:nth-child(4) { --i: 3; } .bento .tile:nth-child(5) { --i: 4; }
.steps .step:nth-child(2) { --i: 1; } .steps .step:nth-child(3) { --i: 2; } .steps .step:nth-child(4) { --i: 3; }
details.faq:nth-child(2) { --i: 1; } details.faq:nth-child(3) { --i: 2; } details.faq:nth-child(4) { --i: 3; } details.faq:nth-child(5) { --i: 4; }
.tile { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
html.js .tile.reveal.in:hover { transform: translateY(-4px); }

/* Buttons: lift on hover, a light sweep on the silver ones */
.btn { position: relative; overflow: hidden; }
.btn-primary:hover, .btn-gold:hover { transform: translateY(-1px); }
.btn-gold::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent); transform: translateX(-130%) skewX(-18deg); }
.btn-gold:hover::after { animation: sheen 1.1s ease forwards; }

/* App: page content eases in, the balance glow drifts, rows arrive in sequence */
.main > * { animation: rise .55s cubic-bezier(.2, .8, .2, 1) both; }
.main > :nth-child(2) { animation-delay: .04s; } .main > :nth-child(3) { animation-delay: .08s; } .main > :nth-child(4) { animation-delay: .12s; }
.main > :nth-child(5) { animation-delay: .16s; } .main > :nth-child(6) { animation-delay: .2s; } .main > :nth-child(n+7) { animation-delay: .24s; }
.balance::before { animation: drift 14s ease-in-out infinite; }
.ledger li { animation: rise .45s ease both; }
.ledger li:nth-child(2) { animation-delay: .05s; } .ledger li:nth-child(3) { animation-delay: .1s; } .ledger li:nth-child(4) { animation-delay: .15s; }
.ledger li:nth-child(5) { animation-delay: .2s; } .ledger li:nth-child(6) { animation-delay: .25s; } .ledger li:nth-child(n+7) { animation-delay: .3s; }
.action .ic, .nav a .ic { transition: transform .2s ease; }
.action:hover .ic { transform: translateY(-2px) scale(1.08); }
.nav a:hover .ic { transform: translateX(2px); }
.notice, .banner { animation: rise .45s ease both; }
.auth-form .inner > * { animation: rise .6s cubic-bezier(.2, .8, .2, 1) both; }
.auth-form .inner > :nth-child(2) { animation-delay: .06s; } .auth-form .inner > :nth-child(3) { animation-delay: .12s; } .auth-form .inner > :nth-child(n+4) { animation-delay: .18s; }
.auth-art .paycard { animation: pop 1s .15s both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .ticker .track { flex-wrap: wrap; justify-content: center; width: auto; }
}
