/* Pledgebook design system ------------------------------------------------ */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/static/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Jakarta"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("/static/fonts/plus-jakarta-sans-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --bg: #f6f4ee; --bg-deep: #efece3; --surface: #ffffff; --surface-2: #f8f6f1; --surface-3: #f0ede5;
  --ink: #0f1f19; --ink-2: #33443c; --muted: #66756d; --faint: #95a39b; --line: #e5e1d6; --line-strong: #d3cec1;
  --brand: #0b7a55; --brand-strong: #075c40; --brand-ink: #055238; --brand-soft: #e2f2ea; --brand-glow: rgba(11, 122, 85, .18);
  --gold: #e0a22a; --gold-strong: #b47a0e; --gold-soft: #fcf1d9;
  --amber: #b45309; --amber-soft: #fff4dc; --red: #c0352b; --red-soft: #fdecea; --blue: #2457c5; --blue-soft: #e8efff; --violet: #6d4bd8; --violet-soft: #efeaff;
  --shadow-sm: 0 1px 2px rgba(15, 31, 25, .06), 0 1px 1px rgba(15, 31, 25, .04);
  --shadow: 0 1px 2px rgba(15, 31, 25, .05), 0 8px 24px -8px rgba(15, 31, 25, .12);
  --shadow-lg: 0 24px 60px -20px rgba(15, 31, 25, .32);
  --radius: 16px; --radius-sm: 10px; --radius-lg: 24px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Jakarta", "Inter", ui-sans-serif, system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1310; --bg-deep: #08100d; --surface: #111c17; --surface-2: #14211b; --surface-3: #1a2a22;
    --ink: #e9f1ed; --ink-2: #c7d4cd; --muted: #93a39b; --faint: #6d7d75; --line: #22332b; --line-strong: #2e4238;
    --brand: #2fbf8a; --brand-strong: #46d19c; --brand-ink: #8ce6c1; --brand-soft: #123528; --brand-glow: rgba(47, 191, 138, .22);
    --gold: #f2b544; --gold-strong: #f6c76a; --gold-soft: #33280f;
    --amber: #f0a64a; --amber-soft: #33240f; --red: #f07167; --red-soft: #3a1714; --blue: #7aa2ff; --blue-soft: #16223d; --violet: #a891ff; --violet-soft: #231c3d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1310; --bg-deep: #08100d; --surface: #111c17; --surface-2: #14211b; --surface-3: #1a2a22;
  --ink: #e9f1ed; --ink-2: #c7d4cd; --muted: #93a39b; --faint: #6d7d75; --line: #22332b; --line-strong: #2e4238;
  --brand: #2fbf8a; --brand-strong: #46d19c; --brand-ink: #8ce6c1; --brand-soft: #123528; --brand-glow: rgba(47, 191, 138, .22);
  --gold: #f2b544; --gold-strong: #f6c76a; --gold-soft: #33280f;
  --amber: #f0a64a; --amber-soft: #33240f; --red: #f07167; --red-soft: #3a1714; --blue: #7aa2ff; --blue-soft: #16223d; --violet: #a891ff; --violet-soft: #231c3d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4); --shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 10px 30px -10px rgba(0, 0, 0, .6); --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.55 var(--font); font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3, h4 { font-family: var(--display); letter-spacing: -.02em; line-height: 1.15; margin: 0; color: var(--ink); }
p { margin: 0; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-glow); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
code { font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-3); padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum", "cv11"; }
.icon { width: 18px; height: 18px; flex: none; vertical-align: -3px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.eyebrow { font: 700 11.5px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--brand); }
.eyebrow.gold { color: var(--gold-strong); }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent; border-radius: 12px; padding: 10px 16px; font-weight: 650; font-size: 14.5px; line-height: 1.2; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s; text-decoration: none !important; }
.btn:active:not(:disabled) { transform: translateY(1px) scale(.99); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: linear-gradient(180deg, var(--brand), var(--brand-strong)); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .18) inset, 0 6px 16px -6px var(--brand-glow), var(--shadow-sm); }
:root[data-theme="dark"] .btn-primary, :root:not([data-theme="light"]) .btn-primary { color: #fff; }
.btn-primary:hover:not(:disabled) { box-shadow: 0 1px 0 rgba(255, 255, 255, .2) inset, 0 10px 24px -8px var(--brand-glow), var(--shadow-sm); transform: translateY(-1px); }
.btn-gold { background: linear-gradient(180deg, #f3bd52, var(--gold)); color: #2b1d02; box-shadow: 0 1px 0 rgba(255, 255, 255, .35) inset, 0 8px 20px -8px rgba(224, 162, 42, .6); }
.btn-gold:hover:not(:disabled) { transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line); color: var(--ink-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover:not(:disabled) { border-color: var(--line-strong); background: var(--surface-2); color: var(--ink); }
.btn-quiet { background: transparent; color: var(--ink-2); padding: 8px 10px; }
.btn-quiet:hover:not(:disabled) { background: var(--surface-3); color: var(--ink); }
.btn-danger { background: var(--red); color: #fff; }
.btn-danger-quiet { background: transparent; color: var(--red); padding: 8px 10px; }
.btn-danger-quiet:hover { background: var(--red-soft); }
.btn-sm { padding: 7px 11px; font-size: 13px; border-radius: 10px; gap: 6px; }
.btn-sm .icon { width: 16px; height: 16px; }
.btn-lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-icon { padding: 8px; border-radius: 10px; }

/* Chips and states */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.4; background: var(--surface-3); color: var(--ink-2); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.brand, .state-confirmed, .state-redeemed, .state-live { background: var(--brand-soft); color: var(--brand-ink); }
.state-corrected { background: var(--blue-soft); color: var(--blue); }
.state-flagged, .state-paused, .chip.amber { background: var(--amber-soft); color: var(--amber); }
.state-provisional { background: var(--violet-soft); color: var(--violet); }
.state-rejected, .state-ended, .state-archived, .state-setup { background: var(--surface-3); color: var(--muted); }
.chip.gold { background: var(--gold-soft); color: var(--gold-strong); }
.chip.red { background: var(--red-soft); color: var(--red); }
.state-live .dot, .pulse-dot { animation: pulse 1.6s infinite; }
.count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; font-size: 11.5px; font-weight: 800; background: var(--amber); color: #fff; }

/* Avatars */
.avatar { display: inline-grid; place-items: center; flex: none; width: 38px; height: 38px; border-radius: 12px; font: 750 13px/1 var(--display); letter-spacing: .02em; color: #fff; background: #3d7a64; }
.avatar.sm { width: 30px; height: 30px; border-radius: 9px; font-size: 11.5px; }
.avatar.lg { width: 52px; height: 52px; border-radius: 16px; font-size: 18px; }
.avatar[data-hue="0"] { background: linear-gradient(135deg, #0e8a62, #065a40); } .avatar[data-hue="1"] { background: linear-gradient(135deg, #d99a20, #a56a07); }
.avatar[data-hue="2"] { background: linear-gradient(135deg, #3b6fd8, #264da3); } .avatar[data-hue="3"] { background: linear-gradient(135deg, #8a5cf0, #5c35c0); }
.avatar[data-hue="4"] { background: linear-gradient(135deg, #d9534f, #a4302c); } .avatar[data-hue="5"] { background: linear-gradient(135deg, #1597a5, #0c6c77); }
.avatar[data-hue="6"] { background: linear-gradient(135deg, #c2618f, #93406a); } .avatar[data-hue="7"] { background: linear-gradient(135deg, #5b7a2e, #3e561d); }
.avatar.anon { background: var(--surface-3); color: var(--muted); }

/* Cards and panels */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; }
.card.flat { box-shadow: none; }
.card.tight { padding: 16px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-head h2 { font-size: 18px; }
.card-head h3 { font-size: 16px; }
.card-head p { margin-top: 4px; }
.section-title { display: flex; align-items: center; gap: 10px; }
.section-title .icon-tile { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.section-title .icon-tile .icon { width: 18px; height: 18px; }
.notice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; font-size: 14px; background: var(--brand-soft); color: var(--brand-ink); }
.notice.amber { background: var(--amber-soft); color: var(--amber); }
.notice.gold { background: var(--gold-soft); color: var(--gold-strong); }
.notice.red { background: var(--red-soft); color: var(--red); }
.notice.plain { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.notice .icon { margin-top: 2px; }

/* Forms */
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-weight: 500; color: var(--faint); }
.input, .field input, .field select, .field textarea, select.input { width: 100%; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 12px; padding: 11px 13px; font-size: 15px; font-weight: 450; transition: border-color .15s, box-shadow .15s; }
.field textarea { resize: vertical; min-height: 84px; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-glow); }
.input::placeholder, .field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid.single { grid-template-columns: 1fr; }
.check-field { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; font-weight: 550; color: var(--ink-2); padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); cursor: pointer; }
.check-field input { width: 18px; height: 18px; accent-color: var(--brand); margin-top: 1px; }
.search-box { position: relative; display: flex; align-items: center; }
.search-box .icon { position: absolute; left: 12px; color: var(--faint); pointer-events: none; }
.search-box input { padding-left: 38px; }
.segmented { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line); }
.segmented button { border: 0; background: transparent; border-radius: 9px; padding: 7px 13px; font-weight: 650; font-size: 13.5px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; }
.segmented button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.toolbar .search-box { flex: 1; min-width: 200px; max-width: 360px; }

/* Progress */
.bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #2fbf8a); transition: width 1s var(--ease); }
.bar.gold > span { background: linear-gradient(90deg, var(--gold), #f6cf7a); }
.ring { --p: 0; width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--p) * 1%), var(--surface-3) 0); transition: --p 1s; position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.ring > * { position: relative; text-align: center; }
.ring strong { font: 800 24px/1 var(--display); display: block; }
.ring span { font-size: 11px; color: var(--muted); font-weight: 650; }

/* Toasts */
.toasts { position: fixed; z-index: 100; top: 76px; right: 20px; display: grid; gap: 10px; width: min(380px, calc(100vw - 32px)); }
.toast { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-radius: 14px; background: var(--ink); color: var(--bg); box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 550; animation: toast-in .35s var(--ease); }
.toast.error { background: var(--red); color: #fff; }
.toast.leaving { animation: toast-out .25s var(--ease) forwards; }
.toast .icon { margin-top: 1px; }

/* Dialog */
.dialog { border: 0; padding: 0; border-radius: 20px; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.dialog.wide { width: min(760px, calc(100vw - 32px)); }
.dialog[open] { animation: dialog-in .28s var(--ease); }
.dialog::backdrop { background: rgba(8, 18, 14, .5); backdrop-filter: blur(4px); animation: fade-in .2s; }
.dialog-form { padding: 24px; display: grid; gap: 16px; }
.dialog-form h2 { font-size: 21px; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 4px; }
.dialog-body { display: grid; gap: 12px; }
.dialog .activity { max-height: 50vh; overflow: auto; }
.qr-frame { display: grid; place-items: center; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--line); width: fit-content; margin: 0 auto; }
.qr-frame svg { width: 200px; height: 200px; display: block; }

/* Skeletons and empty states */
.skeleton { border-radius: 10px; background: linear-gradient(90deg, var(--surface-3) 0%, var(--surface-2) 40%, var(--surface-3) 80%); background-size: 200% 100%; animation: shimmer 1.4s infinite linear; }
.sk-line { height: 14px; margin: 8px 0; }
.sk-block { height: 120px; }
.empty { display: grid; place-items: center; text-align: center; gap: 10px; padding: 36px 20px; color: var(--muted); }
.empty svg.art { width: 120px; height: 90px; }
.empty h3 { font-size: 16px; color: var(--ink); }
.empty p { max-width: 380px; font-size: 14px; }

/* Waveform player */
.wave-player { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); width: 100%; max-width: 460px; }
.wave-player .play { width: 38px; height: 38px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--brand); color: #fff; flex: none; transition: transform .15s; }
.wave-player .play:hover { transform: scale(1.06); }
.wave-player .play .icon { width: 16px; height: 16px; fill: currentColor; stroke-width: 0; }
.wave-player .play.playing .icon { fill: none; stroke-width: 2.5; }
.wave-bars { flex: 1; height: 34px; display: flex; align-items: center; gap: 2px; cursor: pointer; min-width: 0; }
.wave-bars i { flex: 1; min-width: 2px; border-radius: 2px; background: var(--line-strong); height: 20%; transition: background .15s, height .4s var(--ease); }
.wave-bars i.on { background: var(--brand); }
.wave-player .time { font-size: 12px; font-weight: 650; color: var(--muted); min-width: 34px; text-align: right; }
.wave-player.error .wave-bars { opacity: .4; }

/* Signed-out site ---------------------------------------------------------- */
.site-nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px max(20px, calc((100vw - 1180px) / 2)); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.site-nav.scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px/1 var(--display); letter-spacing: -.02em; color: var(--ink); text-decoration: none !important; }
.site-nav nav { display: flex; align-items: center; gap: 6px; }
.site-nav nav a.link { padding: 8px 12px; border-radius: 10px; color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.site-nav nav a.link:hover { background: var(--surface-3); text-decoration: none; }
.hero { position: relative; overflow: hidden; padding: 72px max(20px, calc((100vw - 1180px) / 2)) 84px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 56px; align-items: center; }
.hero::before { content: ""; position: absolute; inset: -30% -10% auto 40%; height: 720px; background: radial-gradient(closest-side, var(--brand-glow), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; background: radial-gradient(closest-side, rgba(224, 162, 42, .16), transparent 70%); pointer-events: none; }
.hero > * { position: relative; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); font-size: 13px; font-weight: 650; color: var(--ink-2); }
.hero-badge .chip { padding: 3px 8px; }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.02; letter-spacing: -.045em; margin: 22px 0 20px; font-weight: 800; }
.hero h1 .accent { background: linear-gradient(100deg, var(--brand) 10%, #2fbf8a 55%, var(--gold) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lede { font-size: 18.5px; line-height: 1.6; color: var(--ink-2); max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.hero-proof span { display: inline-flex; gap: 7px; align-items: center; }
.hero-proof .icon { color: var(--brand); width: 17px; height: 17px; }

/* The animated product preview in the hero */
.preview { position: relative; border-radius: 26px; padding: 18px; background: linear-gradient(160deg, #0d2a20, #06140f 70%); box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06) inset; color: #e8f3ee; overflow: hidden; }
.preview::before { content: ""; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.045'%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3Ccircle cx='30' cy='30' r='22'/%3E%3Cpath d='M0 30h60M30 0v60'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.preview > * { position: relative; }
.pv-top { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 650; color: rgba(232, 243, 238, .7); }
.pv-live { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border-radius: 999px; background: rgba(47, 191, 138, .16); color: #7de3b7; }
.pv-live i { width: 7px; height: 7px; border-radius: 50%; background: #2fbf8a; animation: pulse 1.4s infinite; }
.pv-total { margin: 18px 0 4px; font: 800 44px/1 var(--display); letter-spacing: -.03em; }
.pv-total small { font: 600 13px/1 var(--font); color: rgba(232, 243, 238, .6); display: block; margin-bottom: 8px; letter-spacing: 0; }
.pv-bar { height: 7px; border-radius: 99px; background: rgba(255, 255, 255, .08); margin: 14px 0 18px; overflow: hidden; }
.pv-bar span { display: block; height: 100%; width: 38%; background: linear-gradient(90deg, #2fbf8a, #f2b544); border-radius: inherit; transition: width 1.2s var(--ease); }
.pv-wave { display: flex; align-items: center; gap: 3px; height: 44px; padding: 0 4px; margin-bottom: 14px; }
.pv-wave i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, #2fbf8a, #0e8a62); animation: wave 1.1s ease-in-out infinite; transform-origin: center; }
.pv-heard { font-size: 13px; color: rgba(232, 243, 238, .75); padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); min-height: 42px; }
.pv-heard b { color: #fff; }
.pv-feed { display: grid; gap: 8px; margin-top: 14px; }
.pv-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .06); animation: slide-down .5s var(--ease); }
.pv-row .who { flex: 1; min-width: 0; font-weight: 650; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-row .amt { font: 750 15px/1 var(--display); }
.pv-row .st { font-size: 11px; font-weight: 750; padding: 3px 8px; border-radius: 99px; transition: background .4s, color .4s; }
.pv-row .st.prov { background: rgba(168, 145, 255, .18); color: #c9bbff; }
.pv-row .st.ok { background: rgba(47, 191, 138, .2); color: #7de3b7; }
.pv-row .st.flag { background: rgba(240, 166, 74, .2); color: #ffc98a; }
.pv-float { position: absolute; right: -18px; bottom: 36px; width: 230px; padding: 14px; border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); border: 1px solid var(--line); animation: float 6s ease-in-out infinite; }
.pv-float .t { font-size: 12px; color: var(--muted); font-weight: 650; }
.pv-float .a { font: 800 24px/1.1 var(--display); margin: 4px 0 8px; }

.section { padding: 84px max(20px, calc((100vw - 1180px) / 2)); }
.section.alt { background: var(--bg-deep); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); letter-spacing: -.035em; margin: 12px 0 14px; }
.section-head p { font-size: 17px; color: var(--ink-2); }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: step; }
.step { position: relative; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step .tile { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px; background: var(--brand-soft); color: var(--brand-ink); }
.step:nth-child(2) .tile { background: var(--blue-soft); color: var(--blue); }
.step:nth-child(3) .tile { background: var(--amber-soft); color: var(--amber); }
.step:nth-child(4) .tile { background: var(--gold-soft); color: var(--gold-strong); }
.step .tile .icon { width: 22px; height: 22px; }
.step h3 { font-size: 17px; margin-bottom: 8px; }
.step p { font-size: 14.5px; color: var(--muted); }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 20px; right: 20px; font: 800 13px/1 var(--display); color: var(--faint); }
.rules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.rule { display: flex; gap: 14px; padding: 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.rule .icon { width: 22px; height: 22px; color: var(--brand); margin-top: 2px; }
.rule h3 { font-size: 16px; margin-bottom: 4px; }
.rule p { font-size: 14.5px; color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split ul.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.split ul.ticks li { display: flex; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.split ul.ticks .icon { color: var(--brand); margin-top: 3px; }
.phone { width: 300px; margin: 0 auto; padding: 12px; border-radius: 42px; background: #0b1512; box-shadow: var(--shadow-lg), 0 0 0 2px #1d2a25 inset; }
.phone-screen { border-radius: 32px; overflow: hidden; background: var(--bg); min-height: 520px; }
.phone .ps-head { padding: 26px 20px 20px; color: #fff; background: linear-gradient(150deg, #0e8a62, #064331); }
.phone .ps-head small { opacity: .75; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.phone .ps-head h4 { color: #fff; font-size: 20px; margin: 6px 0 12px; }
.phone .ps-head .amt { font: 800 34px/1 var(--display); }
.phone .ps-body { padding: 16px; display: grid; gap: 12px; }
.phone .ps-card { padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); font-size: 13px; }
.cta-band { margin: 0 max(20px, calc((100vw - 1180px) / 2)) 80px; padding: 48px; border-radius: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; color: #fff; background: radial-gradient(600px 300px at 90% 0%, rgba(242, 181, 68, .35), transparent), linear-gradient(135deg, #0e8a62, #053a29); box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); max-width: 620px; }
.cta-band p { color: rgba(255, 255, 255, .8); margin-top: 8px; }
.site-foot { padding: 28px max(20px, calc((100vw - 1180px) / 2)) 40px; display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13.5px; border-top: 1px solid var(--line); }

/* Auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side { position: relative; overflow: hidden; padding: 40px 56px; display: flex; flex-direction: column; justify-content: space-between; color: #eaf5f0; background: radial-gradient(500px 400px at 100% 100%, rgba(242, 181, 68, .25), transparent), linear-gradient(160deg, #0e6e4f, #04291d); }
.auth-side::before { content: ""; position: absolute; inset: 0; opacity: .5; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Ccircle cx='40' cy='40' r='16'/%3E%3Ccircle cx='40' cy='40' r='30'/%3E%3Cpath d='M0 40h80M40 0v80'/%3E%3C/g%3E%3C/svg%3E"); }
.auth-side > * { position: relative; }
.auth-side .brand { color: #fff; }
.auth-side h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.035em; max-width: 480px; }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.auth-side li { display: flex; gap: 12px; font-size: 15px; color: rgba(234, 245, 240, .88); }
.auth-side li .icon { color: #f2b544; margin-top: 2px; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-card { width: min(420px, 100%); display: grid; gap: 22px; animation: rise .5s var(--ease); }
.auth-card h1 { font-size: 30px; letter-spacing: -.035em; }
.auth-card .switch { font-size: 14px; color: var(--muted); text-align: center; }

/* Signed-in app shell ------------------------------------------------------ */
.topbar { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 16px; padding: 0 24px; background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--line); }
.topbar .nav-links { display: flex; gap: 4px; margin-left: 12px; }
.topbar .nav-links a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; font-weight: 650; font-size: 14px; color: var(--muted); }
.topbar .nav-links a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.topbar .nav-links a.active { background: var(--brand-soft); color: var(--brand-ink); }
.conn { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--muted); padding: 6px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.conn i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); }
.conn.on i { background: #22b27a; box-shadow: 0 0 0 4px rgba(34, 178, 122, .18); }
.conn.rec i { background: #e5484d; animation: pulse 1.2s infinite; }
.conn.wait i { background: var(--gold); animation: pulse 1s infinite; }
.menu { position: relative; }
.menu-button { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; padding: 5px 10px 5px 5px; }
.menu-button .who { text-align: left; line-height: 1.2; }
.menu-button .who b { display: block; font-size: 13.5px; }
.menu-button .who span { font-size: 12px; color: var(--muted); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .18s var(--ease); z-index: 40; }
.menu-list button, .menu-list a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: transparent; border-radius: 9px; font-size: 14px; font-weight: 550; color: var(--ink-2); text-align: left; }
.menu-list button:hover, .menu-list a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.menu-list .label { padding: 8px 10px 4px; font-size: 11px; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.menu-list hr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.menu-list .current { color: var(--brand-ink); }
.page { max-width: 1240px; margin: 0 auto; padding: 28px 24px 80px; animation: fade-up .35s var(--ease); }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { font-size: clamp(26px, 3vw, 34px); letter-spacing: -.035em; }
.page-head .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; font-size: 13.5px; color: var(--muted); font-weight: 550; }
.page-head .actions { display: flex; flex-wrap: wrap; gap: 8px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 650; }
.banner { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 14px; margin-bottom: 18px; background: var(--gold-soft); color: var(--gold-strong); font-size: 14px; font-weight: 550; border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent); }

/* Event grid */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.event-card { position: relative; display: grid; gap: 14px; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s; overflow: hidden; }
.event-card::after { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--brand), var(--gold)); opacity: 0; transition: opacity .2s; }
.event-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); text-decoration: none; }
.event-card:hover::after { opacity: 1; }
.event-card h3 { font-size: 19px; }
.event-card .stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.event-card .stats div { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.event-card .stats b { display: block; font: 800 18px/1.1 var(--display); }
.event-card .stats span { font-size: 12px; color: var(--muted); font-weight: 600; }
.new-card { display: grid; place-items: center; text-align: center; gap: 10px; padding: 28px; border-radius: 20px; border: 1.5px dashed var(--line-strong); color: var(--muted); background: transparent; min-height: 230px; transition: border-color .2s, background .2s, color .2s; }
.new-card:hover { border-color: var(--brand); color: var(--brand-ink); background: var(--brand-soft); }
.new-card .tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); }

/* Workspace */
.workspace { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.side-nav { position: sticky; top: 88px; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.side-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 11px; font-weight: 650; font-size: 14px; color: var(--muted); }
.side-nav a:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.side-nav a.active { background: var(--ink); color: var(--bg); }
.side-nav a.active .icon { color: var(--gold); }
.side-nav a .count { margin-left: auto; }
.side-nav .sep { height: 1px; background: var(--line); margin: 6px 8px; }
.content { min-width: 0; display: grid; gap: 18px; animation: fade-up .3s var(--ease); }

/* KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); display: grid; gap: 6px; }
.kpi .label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; color: var(--muted); }
.kpi .label .icon { width: 16px; height: 16px; }
.kpi .value { font: 800 26px/1.1 var(--display); letter-spacing: -.02em; }
.kpi .sub { font-size: 12.5px; color: var(--muted); }
.kpi.hero-kpi { grid-column: span 2; color: #eaf5f0; background: radial-gradient(400px 200px at 100% 0%, rgba(242, 181, 68, .28), transparent), linear-gradient(150deg, #0e7a57, #06402d); border: 0; }
.kpi.hero-kpi .label, .kpi.hero-kpi .sub { color: rgba(234, 245, 240, .78); }
.kpi.hero-kpi .value { font-size: 40px; color: #fff; }
.kpi.hero-kpi .bar { background: rgba(255, 255, 255, .14); margin-top: 6px; }
.kpi.hero-kpi .bar span { background: linear-gradient(90deg, #7de3b7, #f2b544); }
.flash { animation: flash 1s var(--ease); }

/* Live console */
.console { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 18px; }
.mic-card { display: grid; gap: 16px; align-content: start; }
.mic-button { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; border: 0; border-radius: 18px; padding: 20px; font: 750 17px/1 var(--display); color: #fff; background: linear-gradient(180deg, var(--brand), var(--brand-strong)); box-shadow: 0 12px 30px -12px var(--brand-glow); transition: transform .15s var(--ease), box-shadow .2s; }
.mic-button:hover:not(:disabled) { transform: translateY(-1px); }
.mic-button:disabled { opacity: .5; cursor: not-allowed; }
.mic-button .mic-orb { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.mic-button.recording { background: linear-gradient(180deg, #e5484d, #b8262b); box-shadow: 0 12px 30px -12px rgba(229, 72, 77, .6); }
.mic-button.recording .mic-orb { animation: ring 1.6s infinite; }
.meter { display: flex; align-items: flex-end; gap: 3px; height: 54px; padding: 8px 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.meter i { flex: 1; border-radius: 3px; height: 8%; background: var(--line-strong); transition: height .08s linear, background .2s; }
.meter.on i { background: linear-gradient(180deg, #2fbf8a, var(--brand)); }
.live-words { min-height: 96px; padding: 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 17px; line-height: 1.5; color: var(--ink); }
.live-words .caret { display: inline-block; width: 2px; height: 1.1em; background: var(--brand); vertical-align: -3px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
.live-words.idle { color: var(--faint); font-size: 15px; }

/* Pledge rows */
.feed { display: grid; gap: 8px; }
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); transition: border-color .2s, background .2s; }
.prow:hover { border-color: var(--line-strong); }
.prow.enter { animation: row-in .6s var(--ease); }
.prow .who { min-width: 0; }
.prow .who b { font-size: 15px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.prow .said { margin-top: 3px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.prow .said q { quotes: "“" "”"; font-style: italic; }
.prow .side { text-align: right; display: grid; justify-items: end; gap: 4px; }
.prow .amt { font: 800 17px/1.1 var(--display); letter-spacing: -.01em; }
.prow .actions { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--violet); }

/* Review cards */
.review-card { display: grid; gap: 14px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--amber); box-shadow: var(--shadow); animation: fade-up .35s var(--ease); }
.review-card.resolving { opacity: .5; pointer-events: none; }
.review-top { display: flex; gap: 14px; align-items: flex-start; }
.review-top h3 { font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.review-reason { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--amber); font-weight: 600; margin-top: 4px; }
.passes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pass { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.pass .label { display: flex; gap: 6px; align-items: center; font-size: 11.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.pass mark { background: var(--gold-soft); color: var(--gold-strong); padding: 0 3px; border-radius: 4px; font-weight: 700; }
.resolve-bar { display: grid; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.guest-picker { position: relative; max-width: 440px; }
.picker-list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 20; max-height: 260px; overflow: auto; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); animation: pop .15s var(--ease); }
.picker-list button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px; border: 0; background: transparent; border-radius: 10px; text-align: left; font-weight: 600; font-size: 14px; }
.picker-list button:hover, .picker-list button.hl { background: var(--surface-3); }
.picker-list .none { padding: 10px; font-size: 13px; color: var(--muted); }

/* Guests */
.guest-row { display: grid; grid-template-columns: auto minmax(0, 1.4fr) minmax(0, 1fr) auto auto; align-items: center; gap: 14px; padding: 11px 12px; border-radius: 14px; transition: background .15s; }
.guest-row:hover { background: var(--surface-2); }
.guest-row + .guest-row { border-top: 1px solid var(--line); }
.guest-row .contact { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropzone { display: grid; place-items: center; gap: 8px; text-align: center; padding: 22px; border-radius: 16px; border: 1.5px dashed var(--line-strong); color: var(--muted); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.dropzone .icon { width: 26px; height: 26px; }

/* Tables */
.table-wrap { overflow-x: auto; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 750; padding: 11px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--surface-2); }
tr.duplicate td { background: var(--amber-soft); }
tr.invalid td { background: var(--red-soft); }
td .cell-who { display: flex; align-items: center; gap: 10px; }

/* Follow-up */
.fu-card { display: grid; gap: 12px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.fu-top { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; }
.fu-money { display: grid; gap: 6px; }
.fu-money .nums { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); font-weight: 600; }
.timeline { list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 8px; }
.timeline li { position: relative; display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-2); padding-left: 16px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.timeline li time { color: var(--faint); min-width: 110px; font-size: 12.5px; }
.fu-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* Settlement */
.settle-top { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 22px; align-items: center; }
.donut { position: relative; width: 200px; height: 200px; }
.donut svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 18; }
.donut .track { stroke: var(--surface-3); }
.donut .got { stroke: var(--brand); stroke-linecap: round; transition: stroke-dasharray 1.2s var(--ease); }
.donut .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut .center strong { font: 800 30px/1 var(--display); display: block; }
.donut .center span { font-size: 12px; color: var(--muted); font-weight: 650; }
.legend { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.legend div { padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.legend b { display: block; font: 800 20px/1.2 var(--display); }
.legend span { font-size: 12.5px; color: var(--muted); font-weight: 600; }

/* Activity */
.activity { list-style: none; margin: 0; padding: 0; display: grid; }
.activity li { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); animation: fade-in .3s; }
.activity li:last-child { border-bottom: 0; }
.activity .a-icon { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); }
.activity .a-icon.ai { background: var(--violet-soft); color: var(--violet); }
.activity .a-icon.person { background: var(--brand-soft); color: var(--brand-ink); }
.activity .a-icon.money { background: var(--gold-soft); color: var(--gold-strong); }
.activity .a-icon.guest { background: var(--blue-soft); color: var(--blue); }
.activity .a-icon .icon { width: 16px; height: 16px; }
.activity b { font-size: 14.5px; }
.activity .detail { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; margin-top: 2px; }
.activity time { font-size: 12.5px; color: var(--faint); white-space: nowrap; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.usage-list { display: grid; gap: 16px; }
.usage-item .row { justify-content: space-between; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.member-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.member-row:last-child { border-bottom: 0; }

/* Big screen for the hall ---------------------------------------------------- */
.bigscreen { position: fixed; inset: 0; z-index: 60; overflow: hidden; color: #eef7f2; background: radial-gradient(1000px 600px at 85% -10%, rgba(242, 181, 68, .22), transparent 60%), radial-gradient(900px 700px at -10% 110%, rgba(47, 191, 138, .22), transparent 60%), linear-gradient(160deg, #06251a, #020c08); display: grid; grid-template-rows: auto 1fr auto; padding: clamp(20px, 3vw, 48px); gap: clamp(16px, 2vw, 32px); }
.bigscreen::before { content: ""; position: absolute; inset: 0; opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.035'%3E%3Ccircle cx='60' cy='60' r='24'/%3E%3Ccircle cx='60' cy='60' r='44'/%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3C/g%3E%3C/svg%3E"); pointer-events: none; }
.bigscreen > * { position: relative; }
.bs-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bs-top .brand { color: #fff; }
.bs-title { text-align: center; }
.bs-title small { font-size: clamp(12px, 1.2vw, 16px); letter-spacing: .14em; text-transform: uppercase; color: #f2b544; font-weight: 750; }
.bs-title h1 { color: #fff; font-size: clamp(22px, 2.6vw, 40px); margin-top: 6px; }
.bs-main { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 48px); align-items: center; min-height: 0; }
.bs-total small { display: block; font-size: clamp(14px, 1.4vw, 22px); color: rgba(238, 247, 242, .7); font-weight: 650; letter-spacing: .02em; margin-bottom: 10px; }
.bs-total .num { font: 800 clamp(64px, 10vw, 168px)/.95 var(--display); letter-spacing: -.05em; color: #fff; text-shadow: 0 10px 50px rgba(47, 191, 138, .35); }
.bs-bar { height: clamp(12px, 1.4vw, 20px); border-radius: 99px; background: rgba(255, 255, 255, .1); overflow: hidden; margin: clamp(18px, 2.4vw, 34px) 0 12px; }
.bs-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #2fbf8a, #f2b544); transition: width 1.4s var(--ease); box-shadow: 0 0 30px rgba(242, 181, 68, .5); }
.bs-sub { display: flex; justify-content: space-between; gap: 16px; font-size: clamp(14px, 1.4vw, 22px); color: rgba(238, 247, 242, .75); font-weight: 600; }
.bs-newest { padding: clamp(20px, 2.4vw, 36px); border-radius: 28px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); backdrop-filter: blur(8px); text-align: center; }
.bs-newest.pop { animation: big-pop .9s var(--ease); }
.bs-newest small { font-size: clamp(12px, 1.1vw, 16px); letter-spacing: .14em; text-transform: uppercase; color: #7de3b7; font-weight: 750; }
.bs-newest h2 { color: #fff; font-size: clamp(26px, 3.2vw, 52px); margin: 14px 0 10px; letter-spacing: -.03em; }
.bs-newest .amt { font: 800 clamp(34px, 4.6vw, 76px)/1 var(--display); color: #f2b544; letter-spacing: -.03em; }
.bs-ticker { display: flex; gap: 12px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.bs-ticker div { flex: none; display: inline-flex; gap: 10px; align-items: center; padding: 12px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); font-size: clamp(14px, 1.3vw, 20px); font-weight: 650; animation: slide-down .6s var(--ease); }
.bs-ticker b { color: #f2b544; font-family: var(--display); }
.bs-exit { position: absolute; top: 16px; right: 16px; z-index: 2; opacity: .25; transition: opacity .2s; }
.bigscreen:hover .bs-exit { opacity: 1; }
.spark { position: absolute; width: 10px; height: 10px; border-radius: 2px; pointer-events: none; animation: spark 1.4s ease-out forwards; }

/* Guest pledge page ---------------------------------------------------------- */
.guest-page { min-height: 100vh; background: var(--bg); }
.gp-hero { position: relative; overflow: hidden; padding: 28px 20px 88px; color: #eef7f2; background: radial-gradient(500px 280px at 100% 0%, rgba(242, 181, 68, .32), transparent), linear-gradient(155deg, #0e7a57, #04291d); }
.gp-hero::before { content: ""; position: absolute; inset: 0; opacity: .7; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='70' height='70'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.06'%3E%3Ccircle cx='35' cy='35' r='14'/%3E%3Ccircle cx='35' cy='35' r='26'/%3E%3C/g%3E%3C/svg%3E"); }
.gp-hero > * { position: relative; max-width: 620px; margin: 0 auto; }
.gp-hero .brand { color: #fff; font-size: 16px; }
.gp-org { margin-top: 26px; font-size: 12.5px; letter-spacing: .12em; text-transform: uppercase; color: #f2b544; font-weight: 750; }
.gp-hero h1 { color: #fff; font-size: clamp(26px, 6vw, 36px); margin: 8px 0 4px; letter-spacing: -.03em; }
.gp-hero p { color: rgba(238, 247, 242, .78); }
.gp-shell { max-width: 620px; margin: -64px auto 0; padding: 0 16px 60px; display: grid; gap: 16px; position: relative; }
.gp-amount { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; }
.gp-amount .big { font: 800 clamp(34px, 9vw, 48px)/1 var(--display); letter-spacing: -.035em; }
.gp-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.gp-chips button { border: 1px solid var(--line-strong); background: var(--surface); border-radius: 999px; padding: 7px 13px; font-weight: 650; font-size: 13.5px; }
.gp-chips button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.amount-input { position: relative; }
.amount-input span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); font-weight: 750; color: var(--muted); font-size: 18px; }
.amount-input input { padding-left: 34px !important; font: 750 22px/1.2 var(--display) !important; }
.secure { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.orb { width: 92px; height: 92px; margin: 6px auto; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #7de3b7, #0e8a62 55%, #064331); box-shadow: 0 0 0 0 rgba(47, 191, 138, .5); transition: transform .1s linear; }
.orb.talking { animation: orb 1.8s infinite; }
.transcript { max-height: 240px; overflow: auto; display: grid; gap: 8px; padding: 4px; }
.transcript p { padding: 10px 12px; border-radius: 14px; font-size: 14px; max-width: 86%; animation: fade-up .3s var(--ease); }
.transcript p.agent { background: var(--surface-3); justify-self: start; border-bottom-left-radius: 4px; }
.transcript p.you { background: var(--brand); color: #fff; justify-self: end; border-bottom-right-radius: 4px; }
.success-check { width: 76px; height: 76px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); animation: pop .5s var(--ease); }
.success-check .icon { width: 38px; height: 38px; stroke-width: 3; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .2s var(--ease) forwards; }
details.plain summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; align-items: center; gap: 8px; }
details.plain summary::-webkit-details-marker { display: none; }
details.plain[open] summary .icon { transform: rotate(180deg); }
details.plain summary .icon { transition: transform .2s; margin-left: auto; }

/* Motion ---------------------------------------------------------------------- */
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.85); } }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.96) translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(24px); } }
@keyframes row-in { 0% { opacity: 0; transform: translateY(-10px) scale(.98); background: var(--gold-soft); } 60% { opacity: 1; transform: none; background: var(--gold-soft); } 100% { background: var(--surface); } }
@keyframes slide-down { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
@keyframes flash { 0% { color: var(--gold); transform: scale(1.04); } 100% { transform: none; } }
@keyframes wave { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .45); } 100% { box-shadow: 0 0 0 16px rgba(255, 255, 255, 0); } }
@keyframes big-pop { 0% { transform: scale(.92); opacity: 0; } 50% { transform: scale(1.03); opacity: 1; } 100% { transform: none; } }
@keyframes spark { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(540deg); } }
@keyframes orb { 0% { box-shadow: 0 0 0 0 rgba(47, 191, 138, .45); } 100% { box-shadow: 0 0 0 26px rgba(47, 191, 138, 0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }

/* Responsive ------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 48px; }
  .pv-float { right: 12px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .console { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bs-main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .workspace { grid-template-columns: 1fr; }
  .side-nav { position: sticky; top: 64px; z-index: 20; display: flex; overflow-x: auto; border-radius: 14px; scrollbar-width: none; }
  .side-nav a { white-space: nowrap; }
  .side-nav .sep { display: none; }
  .split, .settings-grid, .rules { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .settle-top { grid-template-columns: 1fr; justify-items: center; }
  .topbar .nav-links span { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .site-nav nav a.link { display: none; }
  .hero { padding: 36px 16px 56px; }
  .hero .lede { font-size: 16.5px; }
  .preview { padding: 14px; }
  .pv-float { display: none; }
  .section { padding: 56px 16px; }
  .steps { grid-template-columns: 1fr; }
  .cta-band { margin: 0 16px 48px; padding: 28px; }
  .topbar { padding: 0 12px; gap: 8px; }
  .topbar .conn span, .menu-button .who { display: none; }
  .page { padding: 18px 14px 60px; }
  .card { padding: 16px; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi.hero-kpi { grid-column: 1 / -1; }
  .kpi.hero-kpi .value { font-size: 34px; }
  .form-grid { grid-template-columns: 1fr; }
  .passes { grid-template-columns: 1fr; }
  .prow { grid-template-columns: auto minmax(0, 1fr); }
  .prow .side { grid-column: 2; justify-items: start; text-align: left; }
  .guest-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .guest-row .contact, .guest-row .consent { display: none; }
  .fu-top { grid-template-columns: auto minmax(0, 1fr); }
  .fu-top > :last-child { grid-column: 1 / -1; }
  .timeline li time { min-width: 0; }
  .activity li { grid-template-columns: 32px minmax(0, 1fr); }
  .activity time { grid-column: 2; }
  .toasts { top: auto; bottom: 16px; right: 16px; }
  .bs-sub { flex-direction: column; gap: 4px; }
}

/* Layout helpers ---------------------------------------------------------------- */
.grow { flex: 1; min-width: 0; }
.between { justify-content: space-between; }
.push { margin-left: auto; }
.mb { margin-bottom: 14px; }
.mt { margin-top: 16px; }
.gap { height: 18px; }
.center { text-align: center; }
.block { display: block !important; }
.warn { color: var(--amber); font-weight: 600; }
.ok-text { color: var(--brand); }
.gold-text { color: var(--gold-strong); }
.amt-lg { font: 800 20px/1 var(--display); letter-spacing: -.01em; }
.tight-row { gap: 2px; }
.stack.top { align-content: start; }
.scroll-y { max-height: 280px; overflow: auto; }
.segmented.scroll { overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.input.compact { width: auto; padding: 7px 10px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.console.wide-left { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.console.solo { grid-template-columns: 1fr; }
.reading-card { display: grid; gap: 14px; align-content: start; }
.import-preview { margin-top: 16px; display: grid; gap: 12px; }
.split-title { font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 14px; letter-spacing: -.035em; }
.split-lede { font-size: 17px; }
.rules.single { grid-template-columns: 1fr; }
.auth-foot { font-size: 13px; opacity: .7; }
.auth-brand { font-size: 17px; }
.auth-card p.muted { margin-top: 6px; }
.danger-card { border-color: color-mix(in srgb, var(--red) 30%, var(--line)); }
.icon-tile.danger { background: var(--red-soft); color: var(--red); }
.bs-full { background: rgba(255, 255, 255, .08); color: #fff; border: 1px solid rgba(255, 255, 255, .15); }
.bs-full:hover { background: rgba(255, 255, 255, .16); }
.wave-player.mini { margin-top: 8px; padding: 6px; }
.wave-player.mini .play { width: 30px; height: 30px; }
.phone .gp-chips { margin-top: 8px; }
.phone .ps-card p { margin-top: 4px; }
.channels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.channel { position: relative; cursor: pointer; }
.channel input { position: absolute; opacity: 0; pointer-events: none; }
.channel span { display: grid; place-items: center; gap: 6px; padding: 14px 8px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 650; color: var(--ink-2); text-align: center; transition: border-color .15s, background .15s; }
.channel span .icon { width: 22px; height: 22px; }
.channel input:checked + span { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-ink); }
.channel input:focus-visible + span { outline: 3px solid var(--brand-glow); }
.channel.off { opacity: .45; cursor: not-allowed; }
@media (max-width: 860px) { .console.wide-left { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .kpis.three { grid-template-columns: 1fr 1fr; } .kpis.three .kpi:first-child { grid-column: 1 / -1; } .channels { grid-template-columns: repeat(2, 1fr); } .brand-word { display: none; } }
.rule-line { border: 0; border-top: 1px solid var(--line); margin: 20px 0 14px; }
.said-quote { margin-top: 12px; font-size: 14.5px; font-style: italic; color: var(--muted); }
.mt-sm { margin-top: 10px; }
.gp-shell .wave-player { max-width: none; margin-top: 10px; }
.gp-shell .ring { width: 104px; height: 104px; }
.gp-shell .inline-form .field { min-width: 180px; }

/* Refinements after review */
h1, h2, h3, h4 { letter-spacing: -.012em; }
.hero h1 { letter-spacing: -.032em; }
.page-head h1, .auth-card h1, .gp-hero h1 { letter-spacing: -.022em; }
.section-head h2, .split-title, .cta-band h2, .auth-side h2 { letter-spacing: -.025em; }
.section-title { align-items: flex-start; }
.section-title .icon-tile { flex: none; }
.bs-main { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.bs-total { min-width: 0; }
.bs-total .num { font-size: clamp(56px, 7.4vw, 150px); white-space: nowrap; }
.bs-bar.none { visibility: hidden; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .mic-button:not(.recording), :root:not([data-theme="light"]) .wave-player .play { background: linear-gradient(180deg, #17915f, #0b6b48); } }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .mic-button:not(.recording), :root[data-theme="dark"] .wave-player .play { background: linear-gradient(180deg, #17915f, #0b6b48); }
.onboard { display: grid; gap: 18px; margin-bottom: 20px; background: radial-gradient(500px 200px at 100% 0%, var(--gold-soft), transparent), var(--surface); }
.onboard h2 { font-size: 22px; margin-top: 8px; }
.onboard-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.onboard-steps li { display: flex; gap: 12px; align-items: flex-start; }
.onboard-steps .icon-tile { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-ink); }
.onboard-steps p { margin-top: 2px; }
@media (max-width: 860px) { .onboard-steps { grid-template-columns: 1fr; } }
h1, h2 { word-spacing: .06em; }
.hero h1 { word-spacing: .08em; }
.hero-badge .chip { font-size: 12px; line-height: 1.3; font-family: var(--font); }
.preview { overflow: visible; }
.preview::before { border-radius: inherit; }
.pv-float { right: -28px; bottom: -44px; }
.hero { padding-bottom: 110px; }
@media (max-width: 1080px) { .pv-float { right: 12px; bottom: -40px; } }
.pv-heard { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .pv-float { bottom: -72px; }
