/* ==========================================================================
   Fundt · styles.css

   1. Tokens      every colour, size and curve, as variables. Dark mode only
                  swaps tokens, so components never need theme-specific rules.
   2. Base        resets and shared pieces (buttons, tags, glass, switches).
   3. Sections    in page order: nav, hero, statement, feature stack,
                  together, security, steps, FAQ, closing, footer.
   4. Motion      looping and entrance animations, all off for people who
                  ask their device for reduced motion.

   Look: light, airy and precise (after MacyePay), with glass UI floating on
   soft colour fields, one deep-night band, and Fundt blue as the only accent.
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --bg: #f2f4f8;
  --bg-2: #e7ebf2;
  --surface: #ffffff;
  --surface-2: #f6f8fb;
  --ink: #0a0e1a;
  --ink-2: rgba(10, 14, 26, 0.64);
  --ink-3: rgba(10, 14, 26, 0.42);
  --line: rgba(10, 14, 26, 0.08);
  --line-2: rgba(10, 14, 26, 0.14);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-line: rgba(255, 255, 255, 0.8);
  --glass-shadow: 0 40px 80px -40px rgba(20, 30, 70, 0.45), 0 12px 24px -16px rgba(20, 30, 70, 0.2);

  /* Brand: the app's blue, and the logo's blue-violet. */
  --accent: #0090ff;
  --accent-ink: #006cd4;
  --brand-a: #4a5df9;
  --brand-grad: linear-gradient(135deg, #4a5df9 0%, #0090ff 100%);
  --good: #12a150;
  --warn: #c26a00;

  /* Wallet colours (suggested by each provider, no logos). */
  --momo: #ffcb05;
  --momo-deep: #d9a400;
  --airtel: #e4002b;
  --bankc: #12274f;
  --bankc-bright: #3d6fe0;

  /* Spending categories, the same as the app. */
  --cat-transport: #f5a524;
  --cat-airtime: #9b7bf5;
  --cat-bills: #0090ff;
  --cat-food: #22b55e;
  --cat-people: #ec4899;
  --cat-data: #06b6d4;

  /* Aurora fields behind the product shots. */
  --au-1: #9cc4ff;
  --au-2: #c9b8ff;
  --au-3: #a5ecff;
  --au-opacity: 0.85;

  --night: #060a14;
  --night-2: #0d1322;

  --font: "Nunito", ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-h1: clamp(2.9rem, 1.5rem + 4.4vw, 5.6rem);
  --fs-h2: clamp(2.3rem, 1.4rem + 2.9vw, 4rem);
  --fs-lede: clamp(1.0625rem, 0.98rem + 0.4vw, 1.25rem);

  --r-xl: 36px;
  --r-lg: 28px;
  --r-md: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  /* A springy overshoot. Browsers without linear() keep the bezier above. */
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --nav-h: 64px;

  color-scheme: light;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, 0.009, 0.035 2.1%, 0.141, 0.281 6.7%, 0.723 12.9%, 0.938 16.7%, 1.017, 1.077, 1.121, 1.149 24.3%, 1.159, 1.163, 1.161, 1.154 29.9%, 1.129 32.8%, 1.051 39.6%, 1.017 43.1%, 0.991, 0.977 51%, 0.974 53.8%, 0.975 57.1%, 0.997 69.8%, 1.003 76.9%, 1);
  }
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080b12;
    --bg-2: #0e121b;
    --surface: #121722;
    --surface-2: #171d2a;
    --ink: #eef2f9;
    --ink-2: rgba(238, 242, 249, 0.66);
    --ink-3: rgba(238, 242, 249, 0.42);
    --line: rgba(255, 255, 255, 0.08);
    --line-2: rgba(255, 255, 255, 0.14);
    --glass: rgba(24, 30, 44, 0.66);
    --glass-line: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 12px 24px -16px rgba(0, 0, 0, 0.5);
    --accent-ink: #5cb4ff;
    --good: #34d36b;
    --warn: #ffb547;
    --au-1: #1d4fb8;
    --au-2: #4a2fa6;
    --au-3: #0a6d8a;
    --au-opacity: 0.6;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #080b12;
  --bg-2: #0e121b;
  --surface: #121722;
  --surface-2: #171d2a;
  --ink: #eef2f9;
  --ink-2: rgba(238, 242, 249, 0.66);
  --ink-3: rgba(238, 242, 249, 0.42);
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --glass: rgba(24, 30, 44, 0.66);
  --glass-line: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), 0 12px 24px -16px rgba(0, 0, 0, 0.5);
  --accent-ink: #5cb4ff;
  --good: #34d36b;
  --warn: #ffb547;
  --au-1: #1d4fb8;
  --au-2: #4a2fa6;
  --au-3: #0a6d8a;
  --au-opacity: 0.6;
  color-scheme: dark;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body::before { /* paints the strip under a phone's status bar */
  content: ""; position: fixed; inset: 0 0 auto; z-index: 60;
  height: env(safe-area-inset-top, 0px); background: var(--bg);
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--ink); color: var(--bg); }
.ico { width: 1.1em; height: 1.1em; flex: none; }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.nw { white-space: nowrap; }

.wrap {
  width: 100%; max-width: 1240px; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 640px) {
  .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); }
}

h1, h2 { font-weight: 500; letter-spacing: -0.045em; line-height: 1; text-wrap: balance; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }

/* Tag: the small pill that names a section. */
.tag {
  display: inline-flex; align-items: center; gap: 8px; width: fit-content;
  padding: 6px 14px 6px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 0.8125rem; font-weight: 700; color: var(--ink-2);
  box-shadow: 0 1px 2px rgba(10, 14, 26, 0.04);
}
.tag .ico { width: 15px; height: 15px; color: var(--accent-ink); }
.tag-dot { width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }

/* Buttons: a pill with an arrow badge that slides on hover. */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: 54px; padding: 0 7px 0 24px; border-radius: 999px;
  font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.5s var(--spring), background-color 0.25s ease, box-shadow 0.3s ease;
  translate: var(--mx, 0px) var(--my, 0px);
}
.btn-label { display: inline-flex; align-items: center; gap: 8px; }
.btn-label .ico { width: 18px; height: 18px; margin-top: -2px; }
.btn-arrow {
  position: relative; width: 40px; height: 40px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; background: var(--accent); color: #fff;
}
.btn-arrow svg { width: 18px; height: 18px; transition: transform 0.45s var(--ease); }
.btn-arrow::after { /* a second arrow waits off to the left */
  content: ""; position: absolute; inset: 0; margin: auto; width: 18px; height: 18px;
  background: currentColor; translate: -40px 0; transition: translate 0.45s var(--ease);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14m0 0-6-6m6 6-6 6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.btn:hover .btn-arrow svg { transform: translateX(40px); }
.btn:hover .btn-arrow::after { translate: 0 0; }
.btn:active { transform: scale(0.97); }
.btn-dark { background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px -14px rgba(10, 14, 26, 0.55); }
.btn-light { background: var(--surface); color: var(--ink); border-color: var(--line); padding-right: 24px; }
.btn-light:hover { border-color: var(--line-2); }
.btn-white { background: #fff; color: #0a0e1a; }
.btn-sm { height: 44px; padding-left: 18px; font-size: 0.9375rem; gap: 10px; padding-right: 5px; }
.btn-sm .btn-arrow { width: 34px; height: 34px; }

/* Glass: frosted panels that float over the colour fields. */
.glass {
  background: var(--glass);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
  backdrop-filter: blur(22px) saturate(1.7);
  border: 1px solid var(--glass-line);
  box-shadow: var(--glass-shadow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* Aurora: three soft blobs of colour, the "photograph" behind each product shot. */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%;
  filter: blur(60px); opacity: var(--au-opacity);
}
.aurora i:nth-child(1) { left: -12%; top: -14%; background: var(--au-1); }
.aurora i:nth-child(2) { right: -16%; top: 18%; background: var(--au-2); }
.aurora i:nth-child(3) { left: 18%; bottom: -28%; background: var(--au-3); }
[data-hue="violet"] { --au-1: #b7a2ff; --au-2: #ffb0d6; --au-3: #a3c7ff; }
[data-hue="green"] { --au-1: #a6f0c6; --au-2: #b9e3ff; --au-3: #ffe6a3; }
[data-hue="peach"] { --au-1: #ffc8a8; --au-2: #ffb6cf; --au-3: #b9d3ff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) [data-hue="violet"] { --au-1: #3b2a8f; --au-2: #7a1f5e; --au-3: #1d3f8c; }
  :root:not([data-theme="light"]) [data-hue="green"] { --au-1: #0f5c3a; --au-2: #12477a; --au-3: #6b5312; }
  :root:not([data-theme="light"]) [data-hue="peach"] { --au-1: #7a3a1c; --au-2: #6e1d43; --au-3: #1d3f8c; }
}
:root[data-theme="dark"] [data-hue="violet"] { --au-1: #3b2a8f; --au-2: #7a1f5e; --au-3: #1d3f8c; }
:root[data-theme="dark"] [data-hue="green"] { --au-1: #0f5c3a; --au-2: #12477a; --au-3: #6b5312; }
:root[data-theme="dark"] [data-hue="peach"] { --au-1: #7a3a1c; --au-2: #6e1d43; --au-3: #1d3f8c; }

/* Switch: iOS-style, with a springy knob. */
.switch {
  position: relative; width: 46px; height: 28px; flex: none; border-radius: 999px;
  background: var(--line-2); transition: background-color 0.3s ease;
}
.switch i {
  position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.22);
  transition: translate 0.5s var(--spring), width 0.25s ease;
}
.switch:active i { width: 27px; }
.switch.is-on { background: var(--accent); }
.switch.is-on i { translate: 18px 0; }
.switch.is-on:active i { translate: 13px 0; }

/* Spotlight: a soft light that follows the pointer across a card (main.js sets --sx/--sy). */
.spot { position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, -40%), color-mix(in srgb, var(--accent) 10%, transparent), transparent 60%);
  opacity: 0; transition: opacity 0.4s ease;
}
.spot:hover::after { opacity: 1; }

.ui-kicker { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-3); }

/* Wallet badge: the coloured circle used in lists. */
.s-w {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 0.875rem;
  background: var(--c); color: #fff;
}
.s-w[style*="--momo"] { color: #2a2100; }
.s-w svg { width: 17px; height: 17px; }
.s-w-fundt { background: var(--brand-grad); }
.s-w-fundt img { width: 15px; height: auto; }

/* 3. SECTIONS -------------------------------------------------------------- */

/* NAV ---------------------------------------------------------------------- */
.nav {
  position: fixed; z-index: 50; left: 0; right: 0;
  top: calc(env(safe-area-inset-top, 0px) + 12px);
  padding-left: max(12px, env(safe-area-inset-left, 0px));
  padding-right: max(12px, env(safe-area-inset-right, 0px));
  pointer-events: none;
}
.nav-bar {
  pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; height: var(--nav-h); margin-inline: auto; padding: 0 10px 0 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  backdrop-filter: blur(20px) saturate(1.6);
  border: 1px solid var(--line);
  box-shadow: 0 10px 30px -18px rgba(10, 14, 26, 0.35);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}
.nav.is-scrolled .nav-bar { background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: 0 16px 40px -20px rgba(10, 14, 26, 0.4); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.3rem; letter-spacing: -0.03em; }
.brand-mark { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-grad); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), 0 6px 14px -6px var(--brand-a); }
.brand-mark img { width: 16px; height: auto; }
.nav-links { position: relative; display: none; gap: 4px; font-weight: 700; font-size: 0.9375rem; color: var(--ink-2); }
.nav-links a { position: relative; z-index: 1; padding: 8px 14px; border-radius: 999px; transition: color 0.25s ease; }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); }
.nav-pill {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; border-radius: 999px;
  background: var(--bg-2); opacity: 0;
  transition: translate 0.45s var(--spring), width 0.45s var(--spring), opacity 0.25s ease;
}
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  color: var(--ink); background: transparent; border: 1px solid var(--line);
  transition: background-color 0.25s ease, transform 0.4s var(--spring);
}
.theme-toggle:hover { background: var(--bg-2); }
.theme-toggle:active { transform: scale(0.9); }
.theme-toggle .ico { width: 19px; height: 19px; }
.theme-is-light, .theme-is-dark { display: grid; place-items: center; }
.theme-is-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-is-light { display: none; }
  :root:not([data-theme="light"]) .theme-is-dark { display: grid; }
}
:root[data-theme="dark"] .theme-is-light { display: none; }
:root[data-theme="dark"] .theme-is-dark { display: grid; }
/* The theme switch spreads from the button as a circle (main.js drives it). */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* HERO --------------------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--nav-h) + 72px); padding-bottom: 48px; }
.hero::before { /* faint grid that fades out: a sense of precision */
  content: ""; position: absolute; inset: 0 0 20%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent 75%);
  mask-image: radial-gradient(70% 60% at 30% 30%, #000, transparent 75%);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1024px) { .hero-grid { grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr); gap: 48px; } }
.hero-copy { display: grid; gap: 26px; justify-items: start; min-width: 0; }
.hero h1 { font-size: var(--fs-h1); }
.h1-soft { color: var(--ink-3); }
.hero h1 em {
  font-style: normal; color: transparent;
  background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
}
.lede { font-size: var(--fs-lede); color: var(--ink-2); max-width: 31em; text-wrap: pretty; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.9375rem; font-weight: 700; color: var(--ink-3); }
.hero-proof li { display: inline-flex; align-items: center; gap: 8px; }
.w-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--w); box-shadow: 0 0 0 3px color-mix(in srgb, var(--w) 20%, transparent); }

/* The scene: a framed colour field with a fixed 640 x 640 stage inside. */
.scene-frame {
  position: relative; width: 100%; max-width: 640px; aspect-ratio: 1; justify-self: center;
  border-radius: var(--r-xl); overflow: hidden;
  background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: 0 50px 100px -60px rgba(20, 40, 100, 0.5);
}
.scene-fit { position: absolute; inset: 0; }
/* Centred by hand: a 640 px box inside a smaller frame, scaled down to fit. */
.scene { position: absolute; left: 50%; top: 50%; width: 640px; height: 640px; margin: -320px 0 0 -320px; scale: var(--s, 1); transform-origin: center; }
.links { position: absolute; inset: 0; width: 640px; height: 640px; overflow: visible; }
.links path { fill: none; stroke: var(--line-2); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; transition: stroke 0.5s ease; }
.links path.is-on { stroke: color-mix(in srgb, var(--accent) 60%, transparent); }
.flow {
  position: absolute; left: 0; top: 0; width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent), 0 0 14px var(--accent);
  offset-rotate: 0deg; offset-distance: 0%; opacity: 0;
}

/* Wallet cards on the left of the scene. */
.wcard {
  position: absolute; left: 24px; top: var(--y); width: 202px; height: 112px;
  padding: 13px 15px; border-radius: 16px; color: #fff;
  display: grid; grid-template-rows: auto 1fr auto; overflow: hidden;
  box-shadow: 0 22px 40px -22px rgba(10, 20, 50, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.6s var(--spring), box-shadow 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
  transform: perspective(700px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) rotate(var(--rot, 0deg));
  cursor: default;
}
.wcard::after { /* glossy sheen */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.28) 0%, transparent 38%), radial-gradient(120% 80% at 100% 100%, rgba(0, 0, 0, 0.18), transparent 60%);
}
.wcard-momo { --rot: -3deg; background: linear-gradient(135deg, #ffd84a 0%, #ffbf00 100%); color: #261d00; left: 30px; }
.wcard-airtel { --rot: 2deg; background: linear-gradient(135deg, #ff4058 0%, #c4001f 100%); left: 18px; }
.wcard-bank { --rot: -2deg; background: linear-gradient(135deg, #24457f 0%, #0d1d3d 100%); left: 34px; }
.wcard-fundt { --rot: 2.5deg; background: var(--brand-grad); left: 20px; }
.wc-top { display: flex; align-items: center; justify-content: space-between; }
.wc-logo { display: inline-flex; align-items: center; gap: 6px; font-weight: 900; font-size: 1rem; letter-spacing: -0.02em; }
.wcard-airtel .wc-logo { font-weight: 800; text-transform: lowercase; }
.wcard-airtel .wc-logo b { font-weight: 500; }
.wc-logo svg { width: 16px; height: 16px; }
.wc-logo img { width: 14px; height: auto; }
.wc-chip { width: 26px; height: 19px; border-radius: 5px; background: linear-gradient(135deg, #f8dc95, #c9993e); opacity: 0.9; }
.wc-nfc { width: 18px; height: 18px; opacity: 0.85; }
.wc-label { align-self: end; font-size: 0.6875rem; font-weight: 700; opacity: 0.72; }
.wc-amt { display: flex; align-items: baseline; gap: 4px; font-size: 1.375rem; font-weight: 800; line-height: 1.1; }
.wc-amt small { font-size: 0.625rem; font-weight: 800; opacity: 0.7; }
.scene .wcard:hover { --rot: 0deg; box-shadow: 0 30px 50px -22px rgba(10, 20, 50, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.25); z-index: 3; }

/* The phone: the fundt-landing handset, drawn at 252 px wide (60.4% of 417). */
.device {
  position: absolute; left: 364px; top: 56px; width: 252px; height: 529px;
  padding: 7.25px; border-radius: 38.7px;
  background: linear-gradient(150deg, #6a6a72 0%, #26262b 24%, #0f0f12 55%, #3a3a41 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 0 0 1px #000, 0 50px 90px -40px rgba(10, 20, 60, 0.7), 0 0 120px -30px color-mix(in srgb, var(--accent) 60%, transparent);
}
.device::before { content: ""; position: absolute; inset: 2.1px; border-radius: 36.6px; background: #050507; }
.dbtn { position: absolute; width: 2.4px; border-radius: 2px; background: linear-gradient(90deg, #1c1c20, #3a3a40); }
.dbtn-l1 { left: -1.8px; top: 80px; height: 18px; }
.dbtn-l2 { left: -1.8px; top: 118px; height: 35px; }
.dbtn-l3 { left: -1.8px; top: 161px; height: 35px; }
.dbtn-r { right: -1.8px; top: 137px; height: 56px; background: linear-gradient(270deg, #1c1c20, #3a3a40); }
.screen {
  position: relative; height: 100%; border-radius: 31.4px; overflow: hidden;
  background: #0d0e12; color: #eef0f4;
  padding: 40px 13px 0; display: flex; flex-direction: column; gap: 12px;
  font-size: 10px; line-height: 1.3;
}
.screen svg { width: 100%; height: 100%; }
.s-island { position: absolute; z-index: 5; top: 6.6px; left: 50%; width: 76px; height: 22px; translate: -50% 0; border-radius: 99px; background: #000; }
.s-status { position: absolute; inset: 0 0 auto; height: 32px; color: #fff; }
.s-clock { position: absolute; left: 0; width: 84px; top: 10px; text-align: center; font-weight: 700; font-size: 10.5px; }
.s-sys { position: absolute; right: 0; width: 84px; top: 12.5px; display: flex; justify-content: center; gap: 4px; }
.s-sys svg { width: auto; height: 7.5px; fill: #fff; }
.s-head { display: flex; align-items: center; gap: 8px; }
.s-head > div { flex: 1; }
.s-avatar { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 11px; background: var(--brand-grad); }
.s-hello { font-size: 8.5px; color: rgba(240, 240, 245, 0.55); }
.s-name { font-size: 12px; font-weight: 800; }
.s-icon { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); }
.s-icon svg { width: 12px; height: 12px; }
.s-total { padding: 12px; border-radius: 16px; background: linear-gradient(160deg, #1a1f2e, #121520); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06); }
.s-label { font-size: 8.5px; font-weight: 700; color: rgba(240, 240, 245, 0.55); }
.s-amount { display: flex; align-items: baseline; gap: 4px; margin-top: 2px; font-size: 27px; font-weight: 800; letter-spacing: -0.03em; }
.s-amount small { font-size: 9px; font-weight: 800; color: rgba(240, 240, 245, 0.55); letter-spacing: 0; }
.s-bar { display: flex; gap: 2px; height: 6px; margin-top: 9px; border-radius: 99px; overflow: hidden; background: rgba(255, 255, 255, 0.06); }
.s-bar i { width: calc(var(--w) * 1%); background: var(--c); transition: width 0.8s var(--ease), filter 0.3s ease, opacity 0.3s ease; }
.s-actions { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 8.5px; font-weight: 700; color: rgba(240, 240, 245, 0.6); }
.s-actions li { display: grid; justify-items: center; gap: 5px; }
.s-act { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #1d2029; color: #fff; }
.s-act svg { width: 14px; height: 14px; }
.s-act-main { background: var(--accent); }
.s-section { font-size: 9px; font-weight: 800; color: rgba(240, 240, 245, 0.55); margin-bottom: -4px; }
.s-wallets { display: grid; gap: 9px; }
.s-wallets li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; transition: opacity 0.5s ease, translate 0.6s var(--spring), filter 0.3s ease; }
.s-wallets .s-w { width: 26px; height: 26px; font-size: 10px; }
.s-wallets .s-w svg { width: 13px; height: 13px; }
.s-wallets .s-w-fundt img { width: 11px; }
.s-wallets p { font-size: 10.5px; font-weight: 700; }
.s-wallets small { font-size: 8px; color: rgba(240, 240, 245, 0.5); }
.s-wallets b { font-size: 10.5px; font-weight: 800; }
.s-today { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; margin-top: 2px; padding: 9px 10px; border-radius: 14px; background: #171a23; }
.s-tx-ic { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--cat-food) 24%, #171a23); color: #46e080; }
.s-tx-ic svg { width: 13px; height: 13px; }
.s-today p { font-size: 10px; font-weight: 700; }
.s-today small { font-size: 8px; color: rgba(240, 240, 245, 0.5); }
.s-today b { font-size: 10px; font-weight: 800; }
.js .scene.is-staged .s-today { opacity: 0; translate: 0 8px; transition: opacity 0.5s ease, translate 0.6s var(--spring); }
.js .scene.is-live .s-today { opacity: 1; translate: 0 0; }
.s-home { position: absolute; bottom: 5px; left: 50%; width: 80px; height: 3px; translate: -50% 0; border-radius: 3px; background: rgba(255, 255, 255, 0.85); }

.toast {
  position: absolute; left: 380px; top: 14px; z-index: 6;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
  background: var(--surface); color: var(--ink); font-size: 0.8125rem; font-weight: 800; white-space: nowrap;
  box-shadow: 0 20px 40px -20px rgba(10, 20, 50, 0.5), 0 0 0 1px var(--line);
  opacity: 0; translate: 0 -10px; scale: 0.9;
  transition: opacity 0.35s ease, translate 0.5s var(--spring), scale 0.5s var(--spring);
}
.toast.is-on { opacity: 1; translate: 0 0; scale: 1; }
.toast-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; }
.toast-ic svg { width: 12px; height: 12px; }

/* Scene story states (main.js adds these; without it everything simply shows). */
.js .scene.is-staged .wcard { opacity: 0; transform: translateX(-60px) rotate(-8deg) scale(0.92); }
.js .scene.is-staged .wcard.is-in { opacity: 1; transform: perspective(700px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)) rotate(var(--rot, 0deg)); }
.js .scene.is-staged .s-wallets li { opacity: 0; translate: 0 8px; }
.js .scene.is-staged .s-wallets li.is-in { opacity: 1; translate: 0 0; }
.js .scene.is-staged .s-bar i { width: 0; }
.js .scene.is-staged .s-bar i.is-in { width: calc(var(--w) * 1%); }
.scene.is-live .flow { animation: flow 2.8s linear infinite; animation-delay: var(--delay, 0s); }
/* Hovering a wallet card lights it up inside the phone too. */
.scene[data-hl] .s-wallets li:not(.is-hl), .scene[data-hl] .s-bar i:not(.is-hl) { opacity: 0.3; }
.scene[data-hl] .s-wallets li.is-hl { translate: 3px 0; }

/* STATEMENT --------------------------------------------------------------- */
.statement { padding-block: clamp(96px, 12vw, 180px); display: grid; justify-items: center; }
.statement-text {
  max-width: 21em; text-align: center; text-wrap: balance;
  font-size: clamp(1.75rem, 1rem + 2.7vw, 3.4rem); font-weight: 500; line-height: 1.28; letter-spacing: -0.035em;
}
.statement-text .w { transition: color 0.4s ease; }
.js .statement-text.is-split .w { color: var(--ink-3); }
.js .statement-text.is-split .w.is-lit { color: var(--ink); }
/* Glossy 3D orbs (from the last round), now a touch larger. */
.orb {
  position: relative; display: inline-grid; place-items: center;
  width: 1.4em; height: 1.4em; border-radius: 50%; vertical-align: -0.3em; margin-inline: 0.06em;
  color: #fff;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, 0.85) 0 7%, rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--t) 55%, #000) 0%, transparent 60%),
    radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--t) 55%, #fff), var(--t) 52%, color-mix(in srgb, var(--t) 70%, #000) 100%);
  box-shadow:
    inset -0.06em -0.1em 0.16em color-mix(in srgb, var(--t) 60%, #000),
    inset 0.05em 0.06em 0.1em rgba(255, 255, 255, 0.55),
    0 0.28em 0.42em -0.14em color-mix(in srgb, var(--t) 75%, transparent),
    0 0.55em 0.8em -0.4em rgba(13, 23, 38, 0.35);
  rotate: -8deg;
}
.orb::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 70% 78%, rgba(255, 255, 255, 0.35), transparent 32%); }
.orb:nth-of-type(even) { rotate: 8deg; }
.orb svg { position: relative; z-index: 1; width: 0.62em; height: 0.62em; filter: drop-shadow(0 0.05em 0.04em color-mix(in srgb, var(--t) 50%, #000)); }

/* FEATURE STACK ------------------------------------------------------------ */
.stack { display: grid; gap: 28px; padding-bottom: clamp(80px, 10vw, 140px); }
.panel {
  display: grid; gap: 12px; padding: 12px;
  border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 30px 80px -50px rgba(10, 20, 60, 0.4);
  transform-origin: center top;
}
.panel-copy { display: grid; align-content: center; gap: 20px; padding: clamp(20px, 4vw, 48px); }
.panel-copy h2 { font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.5rem); }
.panel-sub { font-size: 1.125rem; color: var(--ink-2); max-width: 26em; text-wrap: pretty; }
.panel-foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.9375rem; font-weight: 700; color: var(--ink-2); }
.panel-foot .ico { width: 18px; height: 18px; color: var(--good); }
.panel-visual {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 520px; border-radius: calc(var(--r-xl) - 10px);
  background: var(--bg-2);
  display: grid; place-items: center; padding: 40px 20px;
}
@media (min-width: 960px) {
  .panel {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    position: sticky; top: calc(var(--nav-h) + 28px + var(--i) * 14px);
    min-height: min(660px, calc(100svh - var(--nav-h) - 64px));
  }
  .panel-flip .panel-copy { order: 2; }
  .panel-visual { min-height: 0; }
}
.ui { position: relative; z-index: 1; width: min(380px, 100%); padding: 20px; border-radius: 26px; }
.ui-head { display: grid; gap: 4px; }
.ui-big { display: flex; align-items: baseline; gap: 6px; font-size: 2.4rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.ui-big small { font-size: 0.8125rem; font-weight: 800; color: var(--ink-3); letter-spacing: 0; }

/* Floating chips around the product shots. */
.float-chip {
  position: absolute; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 800; white-space: nowrap;
}
.fc-ic { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; }
.fc-ic svg { width: 13px; height: 13px; }
.fc-a { top: 9%; right: 7%; }
.fc-b { bottom: 8%; left: 7%; }
.fc-c { top: 8%; left: 7%; }
.fc-d { bottom: 9%; right: 6%; }
@media (max-width: 560px) { .float-chip { display: none; } }

/* Wallets UI */
.wl-list { display: grid; gap: 4px; margin-top: 16px; }
.wl-list li { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 14px; transition: opacity 0.35s ease; }
.wl-list li > div { flex: 1; display: grid; }
.wl-list p { font-weight: 800; font-size: 0.9375rem; }
.wl-list small { font-size: 0.8125rem; color: var(--ink-3); font-weight: 700; }
.wl-list li.is-off { opacity: 0.45; }
.add-wallet {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 10px; padding: 12px;
  border-radius: 14px; border: 1.5px dashed var(--line-2); color: var(--ink-3); font-weight: 800; font-size: 0.875rem;
}

/* Pay UI */
.pay-merchant { display: flex; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.pay-merchant > div { flex: 1; display: grid; }
.pay-merchant p { font-weight: 800; }
.pay-merchant small { font-size: 0.8125rem; color: var(--ink-3); font-weight: 700; }
.pm-logo { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--cat-food) 16%, var(--surface)); color: var(--cat-food); }
.pm-logo svg { width: 20px; height: 20px; }
.pay-amount { display: flex; align-items: baseline; gap: 4px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.pay-amount small { font-size: 0.6875rem; color: var(--ink-3); letter-spacing: 0; }
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.src {
  position: relative; display: grid; justify-items: start; gap: 2px; padding: 8px; border-radius: 14px; text-align: left;
  background: color-mix(in srgb, var(--surface) 60%, transparent); border: 1.5px solid var(--line);
  transition: transform 0.5s var(--spring), border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.3s ease;
}
.src:hover { transform: translateY(-3px); }
.src-card { width: 100%; height: 24px; border-radius: 6px; margin-bottom: 6px; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.src b { font-size: 0.8125rem; font-weight: 800; }
.src small { font-size: 0.6875rem; color: var(--ink-3); font-weight: 700; }
.src.is-on { border-color: var(--accent); background: var(--surface); transform: translateY(-4px); box-shadow: 0 14px 24px -14px color-mix(in srgb, var(--accent) 70%, transparent); }
.src.is-on::after {
  content: ""; position: absolute; top: -7px; right: -7px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
  animation: pop 0.45s var(--spring);
}
.src.is-short { opacity: 0.55; }
.pay-after { margin: 14px 0; font-size: 0.875rem; color: var(--ink-2); font-weight: 600; }
.pay-after .num { font-weight: 800; color: var(--ink); }
.pay-after.is-short { color: var(--warn); }
.hold {
  position: relative; width: 100%; height: 56px; border-radius: 999px; overflow: hidden;
  background: var(--ink); color: var(--bg); font-weight: 800; font-size: 1rem;
  touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform 0.4s var(--spring);
}
.hold:active { transform: scale(0.98); }
.hold-fill { position: absolute; inset: 0; background: var(--brand-grad); transform-origin: left; scale: var(--hold, 0) 1; }
.hold-label { position: relative; display: inline-flex; align-items: center; gap: 8px; color: inherit; }
.hold.is-holding .hold-label { color: #fff; }
.hold:disabled { opacity: 0.5; cursor: not-allowed; }

/* The success sheet shared by Pay and Send. */
.done {
  position: absolute; inset: 0; z-index: 3; border-radius: inherit;
  display: grid; place-content: center; justify-items: center; gap: 6px; text-align: center; padding: 24px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  opacity: 0; visibility: hidden; scale: 0.96;
  transition: opacity 0.35s ease, scale 0.5s var(--spring), visibility 0s 0.35s;
}
.done.is-on { opacity: 1; visibility: visible; scale: 1; transition: opacity 0.35s ease, scale 0.5s var(--spring); }
.done-ring { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px; background: var(--good); color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--good) 16%, transparent); }
.done-ring svg { width: 34px; height: 34px; stroke-dasharray: 30; stroke-dashoffset: 30; }
.done.is-on .done-ring { animation: pop 0.6s var(--spring); }
.done.is-on .done-ring svg { animation: draw 0.5s 0.2s ease forwards; }
.done-title { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; }
.done-sub { color: var(--ink-2); font-weight: 600; }
.cat-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px; border-radius: 999px; background: color-mix(in srgb, var(--c) 14%, var(--surface)); color: color-mix(in srgb, var(--c) 70%, var(--ink)); font-weight: 800; font-size: 0.875rem; }
.cat-chip i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.done.is-on .cat-chip { animation: chip-in 0.6s 0.55s var(--spring) both; }

/* Track UI */
.donut-wrap { position: relative; width: 236px; aspect-ratio: 1; margin: 0 auto 18px; }
.donut { width: 100%; height: 100%; rotate: -90deg; overflow: visible; }
.donut circle { fill: none; stroke-linecap: round; transition: stroke-width 0.45s var(--spring), opacity 0.3s ease, stroke-dashoffset 1s var(--ease); cursor: pointer; }
.donut.has-focus circle:not(.is-on) { opacity: 0.25; }
.donut circle.is-on { stroke-width: 24; }
.donut-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; }
.dc-amt { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1.15; }
.dc-sub { max-width: 120px; font-size: 0.6875rem; line-height: 1.3; color: var(--ink-3); font-weight: 700; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cats button {
  display: flex; align-items: center; gap: 7px; width: 100%; padding: 8px 10px; border-radius: 12px;
  font-size: 0.8125rem; font-weight: 800; color: var(--ink-2); background: color-mix(in srgb, var(--surface) 55%, transparent);
  border: 1.5px solid transparent; transition: border-color 0.25s ease, background-color 0.25s ease, color 0.25s ease, transform 0.4s var(--spring);
}
.cats button:hover { transform: translateY(-2px); }
.cats i { width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
.cats button.is-on { border-color: var(--c); color: var(--ink); background: var(--surface); }
.budget { margin-top: 16px; display: grid; gap: 8px; }
.budget-row { display: flex; justify-content: space-between; font-size: 0.8125rem; font-weight: 700; color: var(--ink-2); }
.budget-row b { color: var(--ink); }
.budget-track { height: 8px; border-radius: 99px; background: var(--line); overflow: hidden; }
.budget-track i { display: block; height: 100%; width: calc(var(--p) * 1%); border-radius: 99px; background: var(--c); transition: width 0.8s var(--ease), background-color 0.3s ease; }

/* Send UI */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.person { display: grid; justify-items: center; gap: 6px; font-size: 0.8125rem; font-weight: 800; color: var(--ink-2); transition: color 0.25s ease; }
.person span {
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.125rem; font-weight: 900; color: #fff;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  box-shadow: 0 0 0 0 var(--surface), 0 0 0 0 var(--c);
  transition: box-shadow 0.35s ease, transform 0.5s var(--spring);
}
.person:hover span { transform: translateY(-3px); }
.person.is-on { color: var(--ink); }
.person.is-on span { box-shadow: 0 0 0 3px var(--surface), 0 0 0 5.5px var(--c); transform: scale(1.06); }
.send-amount { display: flex; justify-content: center; align-items: baseline; gap: 6px; margin: 20px 0 12px; font-size: 2.8rem; font-weight: 800; letter-spacing: -0.045em; line-height: 1; }
.send-amount small { font-size: 0.875rem; color: var(--ink-3); letter-spacing: 0; }
.amounts { display: flex; justify-content: center; gap: 8px; margin-bottom: 18px; }
.amounts button { padding: 7px 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 800; color: var(--ink-2); border: 1.5px solid var(--line); background: color-mix(in srgb, var(--surface) 55%, transparent); transition: all 0.25s ease; }
.amounts button.is-on { border-color: var(--ink); color: var(--ink); background: var(--surface); }
.slider {
  --x: 0px;
  position: relative; height: 58px; border-radius: 999px; overflow: hidden;
  background: color-mix(in srgb, var(--ink) 8%, transparent); border: 1px solid var(--line);
  display: grid; place-items: center;
}
.slider::before { /* the fill that follows your thumb */
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--x) + 56px); border-radius: inherit;
  background: var(--brand-grad); opacity: 0.9;
}
.slider-text {
  position: relative; font-size: 0.875rem; font-weight: 800; padding-left: 40px;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(90deg, var(--ink-3) 0%, var(--ink-3) 40%, var(--ink) 50%, var(--ink-3) 60%, var(--ink-3) 100%);
  background-size: 250% 100%;
}
.slider-thumb {
  position: absolute; left: 4px; top: 4px; width: 50px; height: 48px; border-radius: 999px;
  display: grid; place-items: center; background: var(--ink); color: var(--bg);
  translate: var(--x) 0; touch-action: none; cursor: grab;
  box-shadow: 0 6px 14px -6px rgba(0, 0, 0, 0.5);
}
.slider-thumb svg { width: 20px; height: 20px; }
.slider.is-dragging .slider-thumb { cursor: grabbing; }
.slider.is-snapping .slider-thumb, .slider.is-snapping::before { transition: translate 0.5s var(--spring), width 0.5s var(--spring); }

/* TOGETHER (always dark) --------------------------------------------------- */
.night {
  position: relative; isolation: isolate; overflow: hidden;
  margin-inline: max(12px, env(safe-area-inset-left, 0px));
  border-radius: 44px; background: var(--night); color: #eef2f9;
  padding-block: clamp(80px, 10vw, 140px);
}
.night-glow {
  position: absolute; inset: -30% -10% auto; height: 80%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 30% 40%, rgba(74, 93, 249, 0.45), transparent 70%), radial-gradient(40% 50% at 75% 30%, rgba(0, 144, 255, 0.35), transparent 70%);
  filter: blur(20px);
}
.sec-head { display: grid; justify-items: center; gap: 18px; text-align: center; max-width: 46rem; margin: 0 auto clamp(40px, 6vw, 64px); }
.sec-sub { font-size: 1.125rem; color: var(--ink-2); max-width: 32em; text-wrap: pretty; }
.night .sec-sub { color: rgba(238, 242, 249, 0.62); }
.tag-dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.1); color: rgba(238, 242, 249, 0.75); box-shadow: none; }
.tag-dark .ico { color: #7cc0ff; }
.bento-dark { display: grid; gap: 16px; }
@media (min-width: 820px) { .bento-dark { grid-template-columns: 1fr 1fr; } .dcard-wide { grid-column: 1 / -1; } }
.dcard { display: grid; align-content: start; gap: 8px; padding: 12px 12px 26px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.035); border: 1px solid rgba(255, 255, 255, 0.08); }
.dcard h3 { margin-top: 14px; padding-inline: 12px; }
.dcard > p { padding-inline: 12px; color: rgba(238, 242, 249, 0.6); }
.dcard.spot::after { background: radial-gradient(460px circle at var(--sx, 50%) var(--sy, -40%), rgba(92, 170, 255, 0.14), transparent 60%); }
.dviz {
  min-height: 230px; border-radius: 20px; padding: 22px;
  display: grid; place-items: center;
  background: radial-gradient(120% 120% at 0% 0%, rgba(74, 93, 249, 0.22), transparent 55%), rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.split { width: min(340px, 100%); display: grid; gap: 10px; }
.split-top { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; color: rgba(238, 242, 249, 0.6); }
.split-top b { font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.split-people { display: grid; gap: 8px; }
.split-people li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); font-weight: 800; transition: background-color 0.4s ease; }
.split-people em { margin-left: auto; font-style: normal; font-weight: 800; font-size: 0.875rem; }
.is-paid em { color: #46e080; }
.is-due em { color: #ffb547; }
.av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 0.8125rem; font-weight: 900; color: #fff; background: var(--c); }
.pot { display: flex; align-items: center; gap: 22px; }
@property --pp { syntax: "<number>"; inherits: false; initial-value: 0; }
.pot-ring {
  --pp: var(--p);
  width: 132px; height: 132px; flex: none; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(from -90deg, #4a5df9, #0090ff calc(var(--pp) * 1%), rgba(255, 255, 255, 0.07) 0);
  transition: --pp 1.4s var(--ease);
}
.pot-ring > span { width: 104px; height: 104px; border-radius: 50%; background: var(--night-2); display: grid; place-content: center; text-align: center; }
.pot-ring b { font-size: 1.5rem; font-weight: 800; }
.pot-ring small { font-size: 0.6875rem; color: rgba(238, 242, 249, 0.55); font-weight: 700; }
.pot-info { display: grid; gap: 8px; }
.pot-info p { font-weight: 800; font-size: 1.0625rem; }
.pot-info small { color: rgba(238, 242, 249, 0.55); font-weight: 700; }
.faces { display: flex; }
.faces i { width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 0.75rem; background: var(--c); border: 2px solid var(--night-2); }
.faces i:first-child { margin-left: 0; }
.circle { display: grid; justify-items: center; gap: 26px; width: 100%; }
.circle-word { display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; column-gap: 0.3em; font-size: clamp(2rem, 1.2rem + 3vw, 3.6rem); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.cw-run { color: rgba(238, 242, 249, 0.5); }
.rotator { display: inline-grid; color: #fff; }
.rotator > span { grid-area: 1 / 1; opacity: 0; translate: 0 0.35em; filter: blur(6px); transition: opacity 0.5s ease, translate 0.6s var(--spring), filter 0.5s ease; background: linear-gradient(90deg, #8fb4ff, #5cc8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rotator > span.is-on { opacity: 1; translate: 0 0; filter: blur(0); }
.turns { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: min(560px, 100%); }
.turns li { display: grid; place-items: center; height: 58px; border-radius: 14px; font-weight: 800; font-size: 0.875rem; color: rgba(238, 242, 249, 0.45); border: 1.5px dashed rgba(255, 255, 255, 0.14); }
.turns li small { font-size: 0.625rem; margin-top: -10px; }
.turns .past { border-style: solid; color: rgba(238, 242, 249, 0.75); background: rgba(255, 255, 255, 0.05); }
.turns .you { border: 0; color: #fff; background: var(--brand-grad); box-shadow: 0 10px 24px -10px #4a5df9; }

/* SECURITY BENTO ---------------------------------------------------------- */
.trust { padding-block: clamp(96px, 12vw, 160px) clamp(48px, 6vw, 80px); }
.bento { display: grid; gap: 16px; }
@media (min-width: 680px) { .bento { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1100px) { .bento { grid-template-columns: repeat(4, 1fr); } }
.bcard { display: grid; align-content: start; gap: 6px; padding: 12px 12px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.bcard h3 { margin-top: 14px; padding-inline: 10px; font-size: 1.0625rem; }
.bcard > p { padding-inline: 10px; color: var(--ink-2); font-size: 0.9375rem; }
.bviz { position: relative; height: 200px; border-radius: 18px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(160deg, var(--bg-2), var(--surface-2)); }
.face-scan { position: relative; width: 96px; height: 96px; color: var(--accent-ink); }
.face-scan i { position: absolute; left: 8%; right: 8%; top: 50%; height: 2px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.bviz-freeze { gap: 18px; place-content: center; }
.mini-card {
  position: relative; width: 168px; height: 104px; border-radius: 14px; padding: 14px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; color: #fff;
  background: var(--brand-grad); box-shadow: 0 20px 40px -20px var(--brand-a);
}
.mini-card img { width: 16px; height: auto; }
.mini-card .num { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.04em; }
.frost {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px;
  font-size: 0.75rem; font-weight: 800; color: #0a2a55;
  background: rgba(225, 240, 255, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.45s ease;
}
.frost svg { width: 28px; height: 28px; transition: rotate 0.8s var(--spring); rotate: -90deg; }
.mini-card.is-frozen .frost { opacity: 1; }
.mini-card.is-frozen .frost svg { rotate: 0deg; }
.bviz-freeze .switch { justify-self: center; }
.orbit { position: relative; width: 170px; height: 170px; display: grid; place-items: center; }
.orbit::before { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1.5px dashed var(--line-2); }
.orbit-core { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-grad); color: #fff; box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 12%, transparent); }
.orbit-core svg { width: 24px; height: 24px; }
.orbit-path { position: absolute; inset: 0; }
.orbit-item { position: absolute; left: 50%; top: 50%; rotate: var(--a); }
.orbit-item b {
  display: block; translate: -50% -50%; margin-top: -73px; rotate: calc(var(--a) * -1);
  padding: 5px 10px; border-radius: 999px; font-size: 0.6875rem; font-weight: 800; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 14px -8px rgba(10, 20, 50, 0.4);
}
.alerts { position: relative; width: 88%; height: 160px; }
.alerts li {
  position: absolute; left: 0; right: 0; top: 0;
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 10px 20px -14px rgba(10, 20, 50, 0.4);
  font-size: 0.8125rem;
}
.alerts li:nth-child(2) { top: 56px; scale: 0.96; opacity: 0.85; }
.alerts li:nth-child(3) { top: 108px; scale: 0.92; opacity: 0.6; }
.alerts b { display: block; font-weight: 800; }
.alerts small { color: var(--ink-3); font-weight: 700; }

/* STEPS -------------------------------------------------------------------- */
.steps { padding-block: clamp(48px, 6vw, 80px); }
.step-list { display: grid; gap: 16px; counter-reset: step; }
@media (min-width: 760px) { .step-list { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; display: grid; gap: 8px; padding: 28px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.step-n { position: absolute; top: 24px; right: 26px; font-size: 3rem; font-weight: 300; line-height: 1; color: var(--line-2); }
.step-ic { width: 52px; height: 52px; margin-bottom: 14px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-grad); color: #fff; box-shadow: 0 12px 24px -12px var(--brand-a); }
.step-ic svg { width: 24px; height: 24px; }
.step p { color: var(--ink-2); }

/* FAQ ---------------------------------------------------------------------- */
.faq { display: grid; gap: 32px; padding-block: clamp(64px, 8vw, 120px); }
@media (min-width: 900px) { .faq { grid-template-columns: 0.8fr 1.2fr; gap: 64px; } }
.faq-list { min-width: 0; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-block: 24px; cursor: pointer; list-style: none;
  font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq-x { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); }
.faq-x::before, .faq-x::after { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 2px; border-radius: 2px; background: var(--ink); transition: rotate 0.45s var(--spring); }
.faq-x::after { rotate: 90deg; }
.faq details[open] .faq-x::after { rotate: 0deg; }
.faq details p { padding-bottom: 24px; color: var(--ink-2); max-width: 58ch; font-size: 1.0625rem; }
/* Smooth open and close where supported. */
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq details::details-content { height: 0; overflow: clip; transition: height 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
  .faq details[open]::details-content { height: auto; }
}

/* CLOSING ------------------------------------------------------------------ */
.closing { padding-bottom: clamp(64px, 8vw, 120px); }
.closing-card {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; align-items: center; gap: 32px;
  padding: clamp(40px, 6vw, 80px); border-radius: 44px;
  background: var(--night); color: #fff;
}
@media (min-width: 900px) { .closing-card { grid-template-columns: 1.1fr 0.9fr; } }
.aurora-night i { filter: blur(70px); opacity: 0.7; }
.aurora-night i:nth-child(1) { background: #4a5df9; }
.aurora-night i:nth-child(2) { background: #0090ff; }
.aurora-night i:nth-child(3) { background: #7b3ff2; opacity: 0.45; }
.closing-copy { position: relative; display: grid; gap: 18px; justify-items: start; }
.closing-copy h2 { font-size: clamp(2.6rem, 1.4rem + 4vw, 5rem); }
.closing-copy p { font-size: 1.1875rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 8px; }
.closing-card.spot::after { background: radial-gradient(500px circle at var(--sx, 50%) var(--sy, -40%), rgba(255, 255, 255, 0.08), transparent 60%); }
.closing-cards { position: relative; height: 260px; }
.cc {
  position: absolute; left: 50%; top: 50%; width: 230px; height: 144px; border-radius: 18px;
  display: flex; align-items: flex-start; padding: 18px; font-weight: 900; font-size: 1.1rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.7s var(--spring);
}
.cc-1 { background: linear-gradient(135deg, #ffd84a, #ffbf00); color: #261d00; transform: translate(-50%, -50%) translate(-70px, -34px) rotate(-14deg); }
.cc-2 { background: linear-gradient(135deg, #ff4058, #c4001f); text-transform: lowercase; transform: translate(-50%, -50%) translate(-10px, -8px) rotate(-4deg); }
.cc-2 b { font-weight: 500; margin-left: 4px; }
.cc-3 { background: var(--brand-grad); transform: translate(-50%, -50%) translate(52px, 22px) rotate(8deg); }
.cc-3 img { width: 26px; height: auto; }
.closing-card:hover .cc-1 { transform: translate(-50%, -50%) translate(-112px, -46px) rotate(-20deg); }
.closing-card:hover .cc-2 { transform: translate(-50%, -50%) translate(-14px, -18px) rotate(-6deg); }
.closing-card:hover .cc-3 { transform: translate(-50%, -50%) translate(86px, 30px) rotate(12deg); }

/* FOOTER ------------------------------------------------------------------- */
.footer { overflow: hidden; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
@media (min-width: 820px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-brand { grid-column: 1 / -1; display: grid; gap: 12px; align-content: start; }
@media (min-width: 820px) { .footer-brand { grid-column: auto; } }
.footer-brand p { color: var(--ink-2); }
.footer nav { display: grid; gap: 10px; align-content: start; color: var(--ink-2); font-weight: 600; }
.footer nav a { display: inline-flex; align-items: center; gap: 8px; width: fit-content; transition: color 0.2s ease; }
.footer nav a:hover { color: var(--ink); }
.footer-h { color: var(--ink); font-weight: 800; margin-bottom: 4px; }
.footer-mail { user-select: all; }
.footer-base { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 56px; padding-block: 20px; border-top: 1px solid var(--line); font-size: 0.875rem; font-weight: 700; color: var(--ink-3); }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-inline: 14px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); font-size: 0.8125rem; font-weight: 800; transition: background-color 0.2s ease; }
.motion-toggle:hover { background: var(--surface); }
.motion-toggle .ico { width: 13px; height: 13px; }
.wordmark {
  margin: 8px 0 -0.24em; text-align: center; line-height: 0.8;
  font-size: clamp(7rem, 30vw, 27rem); font-weight: 800; letter-spacing: -0.07em;
  color: transparent; -webkit-background-clip: text; background-clip: text;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--accent) 70%, var(--ink)) 0%, transparent 85%);
  opacity: 0.22; user-select: none;
}

/* 4. MOTION ---------------------------------------------------------------- */
/* Pausing from the footer freezes every CSS animation where it is. */
.motion-paused *, .motion-paused *::before, .motion-paused *::after { animation-play-state: paused !important; }

/* Entrance: things rise and sharpen into place. main.js adds .in. */
.js .reveal { opacity: 0; translate: 0 28px; filter: blur(8px); transition: opacity 0.9s var(--ease), translate 1s var(--ease), filter 0.9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
.js .reveal.in { opacity: 1; translate: 0 0; filter: blur(0); }

@media (prefers-reduced-motion: no-preference) {
  .tag-dot { animation: ping 2.4s ease-out infinite; }
  .float-chip { animation: bob 5s ease-in-out infinite; }
  .fc-b, .fc-d { animation-delay: -2.5s; }
  .orb { animation: bob-sm 3.4s ease-in-out infinite; }
  .orb:nth-of-type(2) { animation-delay: -1.1s; }
  .orb:nth-of-type(3) { animation-delay: -2.2s; }
  .scene.is-live .wcard:not(:hover) { animation: card-float 6s ease-in-out infinite; }
  .scene.is-live .wcard[data-wallet="1"] { animation-delay: -1.5s; }
  .scene.is-live .wcard[data-wallet="2"] { animation-delay: -3s; }
  .scene.is-live .wcard[data-wallet="3"] { animation-delay: -4.5s; }
  .slider-text { animation: shimmer 2.4s linear infinite; }
  .face-scan i { animation: scan 2.6s ease-in-out infinite; }
  .orbit-path { animation: spin 22s linear infinite; }
  .orbit-path .orbit-item b { animation: spin-back 22s linear infinite; }
  .alerts li { animation: alert-cycle 7.5s var(--ease) infinite; }
  .alerts li:nth-child(1) { --o: 0; }
  .alerts li:nth-child(2) { --o: 1; animation-delay: -5s; }
  .alerts li:nth-child(3) { --o: 2; animation-delay: -2.5s; }
  .is-wave .split-people li.is-due { animation: due-pulse 2s ease-in-out infinite; }
}
@keyframes flow {
  0% { offset-distance: 0%; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 0; }
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes bob-sm { 50% { translate: 0 -0.1em; } }
@keyframes card-float { 50% { translate: 0 -5px; } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }
@keyframes scan { 0%, 100% { top: 18%; } 50% { top: 82%; } }
@keyframes spin { to { rotate: 360deg; } }
@keyframes spin-back { to { rotate: calc(var(--a) * -1 - 360deg); } }
@keyframes pop { 0% { scale: 0.4; } 60% { scale: 1.12; } 100% { scale: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes chip-in { from { opacity: 0; translate: 0 14px; scale: 0.8; } }
@keyframes due-pulse { 50% { background: rgba(255, 181, 71, 0.12); } }
/* Three alerts take turns at the top of the stack. */
@keyframes alert-cycle {
  0%, 30% { top: 0; scale: 1; opacity: 1; z-index: 3; }
  33.3%, 63% { top: 108px; scale: 0.92; opacity: 0.6; z-index: 1; }
  66.6%, 97% { top: 56px; scale: 0.96; opacity: 0.85; z-index: 2; }
  100% { top: 0; scale: 1; opacity: 1; z-index: 3; }
}
