/* ==========================================================================
   YouPay Wallet — Design System
   Brand: #662D8C (purple) · #ED1E79 (magenta) · #F7B00C (amber)
   ========================================================================== */

/* ---------- 1. Tokens ---------- */
:root {
  /* Brand */
  --purple: #662d8c;
  --purple-600: #56257a;
  --purple-700: #451d63;
  --purple-800: #33154a;
  --purple-900: #1e0c2c;
  --purple-100: #f2ebf8;
  --purple-200: #e0cdee;
  --purple-300: #c3a4dc;

  --pink: #ed1e79;
  --pink-600: #d1145f;
  --pink-100: #fde8f1;

  --amber: #f7b00c;
  --amber-600: #e09703;
  --amber-100: #fef4dc;

  /* Ink & surfaces */
  --ink: #1a1030;
  --ink-2: #453a5c;
  --ink-3: #6f6588;
  --ink-4: #9a92ad;
  --line: #ece7f3;
  --line-2: #ded6ea;

  --bg: #ffffff;
  --bg-soft: #faf7fd;
  --bg-tint: #f5f0fb;

  /* Effects */
  --grad-brand: linear-gradient(115deg, var(--purple) 0%, #9333a8 45%, var(--pink) 100%);
  --grad-warm: linear-gradient(115deg, var(--pink) 0%, var(--amber) 100%);
  --grad-deep: linear-gradient(160deg, #2a1140 0%, #4a1f6b 45%, #7b2582 100%);

  --shadow-sm: 0 1px 2px rgba(26, 16, 48, .06), 0 2px 6px rgba(26, 16, 48, .04);
  --shadow-md: 0 4px 12px rgba(26, 16, 48, .06), 0 12px 28px rgba(102, 45, 140, .08);
  --shadow-lg: 0 8px 24px rgba(26, 16, 48, .08), 0 32px 64px rgba(102, 45, 140, .14);
  --shadow-brand: 0 8px 24px rgba(102, 45, 140, .28);
  --shadow-pink: 0 8px 24px rgba(237, 30, 121, .28);

  /* Geometry */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 40px);
  --nav-h: 76px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ---------- 2. Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--pink); }
button { font: inherit; color: inherit; }
ul, ol { padding-left: 1.25em; }

h1, h2, h3, h4, h5 {
  margin: 0 0 .5em;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.022em;
}
h1 { font-size: clamp(2.4rem, 1.4rem + 3.6vw, 4.1rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 1.3rem + 2.2vw, 3rem); letter-spacing: -.03em; }
h3 { font-size: clamp(1.2rem, 1.05rem + .55vw, 1.5rem); }
h4 { font-size: 1.075rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

::selection { background: var(--pink); color: #fff; }

:focus-visible {
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 18px;
  border-radius: var(--r-sm); font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- 3. Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

.section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }

.sec-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.sec-head--left { margin-inline: 0; text-align: left; }
.sec-head p { color: var(--ink-3); font-size: 1.075rem; }

.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- 4. Bits ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 15px 7px 9px;
  border-radius: var(--r-pill);
  background: var(--purple-100);
  color: var(--purple);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 20px;
  border: 1px solid var(--purple-200);
}
.eyebrow .dot {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-brand); display: grid; place-items: center;
  color: #fff; flex: none;
}
.eyebrow .dot svg { width: 12px; height: 12px; }

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.amber-text {
  background: var(--grad-warm);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.lead { font-size: clamp(1.05rem, 1rem + .35vw, 1.2rem); color: var(--ink-3); }

/* ---------- 5. Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-weight: 700; font-size: .975rem;
  cursor: pointer; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease),
              background .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primary {
  background: var(--grad-brand); color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn--primary:hover { color: #fff; box-shadow: 0 12px 32px rgba(102, 45, 140, .38); }

.btn--pink { background: var(--pink); color: #fff; box-shadow: var(--shadow-pink); }
.btn--pink:hover { color: #fff; background: var(--pink-600); }

.btn--ghost {
  background: #fff; color: var(--purple);
  border-color: var(--line-2); box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--purple-300); color: var(--purple); box-shadow: var(--shadow-md); }

.btn--light {
  background: rgba(255, 255, 255, .12); color: #fff;
  border-color: rgba(255, 255, 255, .28);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.btn--light:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.btn--white { background: #fff; color: var(--purple); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.btn--white:hover { color: var(--pink); }

.btn--sm { padding: 10px 20px; font-size: .9rem; }
.btn--lg { padding: 17px 34px; font-size: 1.03rem; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---------- 6. Store badges ---------- */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; }

.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 20px 11px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .12);
  position: relative;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.store-badge:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 10px 28px rgba(26, 16, 48, .3); }
.store-badge svg { width: 26px; height: 26px; flex: none; }
.store-badge span { display: block; line-height: 1.2; }
.store-badge .sb-top { font-size: .66rem; letter-spacing: .09em; text-transform: uppercase; opacity: .72; }
.store-badge .sb-main { font-size: 1.02rem; font-weight: 700; letter-spacing: -.01em; }

.store-badge.is-soon { opacity: .78; cursor: default; }
.store-badge.is-soon:hover { transform: none; box-shadow: none; }
.store-badge.is-soon::after {
  content: "Soon";
  position: absolute; top: -9px; right: -6px;
  background: var(--amber); color: #3a2600;
  font-size: .62rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase;
  padding: 3px 8px; border-radius: var(--r-pill);
  box-shadow: 0 2px 8px rgba(0, 0, 0, .2);
}
/* On a coloured band only the pending badge goes translucent, so a live store
   badge stays solid and clearly reads as the primary action. */
.on-dark .store-badge.is-soon {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.on-dark .store-badge:not(.is-soon) {
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
}

/* White badge for use directly on the dark hero, where a near-black badge
   would sink into the background instead of leading. */
.store-badge--light {
  background: #fff;
  color: var(--ink);
  border-color: rgba(26, 16, 48, .08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
}
.store-badge--light:hover {
  color: var(--ink);
  box-shadow: 0 14px 36px rgba(0, 0, 0, .28);
}
.store-badge--light .sb-top { opacity: .62; }

/* matches .btn--lg height so the hero CTA row sits on one baseline */
.store-badge--lg { padding: 14px 26px 14px 22px; }
.store-badge--lg svg { width: 28px; height: 28px; }

/* ---------- 7. Navigation ---------- */
.topbar {
  background: var(--grad-brand);
  color: #fff;
  font-size: .85rem;
  text-align: center;
  padding: 9px var(--gutter);
  position: relative; z-index: 60;
}
.topbar a { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.topbar a:hover { color: var(--amber); }
.topbar strong { font-weight: 800; }

.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 4px 24px rgba(26, 16, 48, .06); }

.nav__inner {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 20px;
}

.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand img { height: 48px; width: auto; }
.brand:hover { opacity: .85; }

.nav__links {
  display: flex; align-items: center; gap: 4px;
  margin: 0 auto 0 12px; padding: 0; list-style: none;
}
/* :not(.btn) so the drawer CTA keeps its own button colours */
.nav__links a:not(.btn) {
  display: block; padding: 9px 14px;
  border-radius: var(--r-pill);
  color: var(--ink-2); font-weight: 600; font-size: .945rem;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.nav__links a:not(.btn):hover,
.nav__links a:not(.btn).is-active { background: var(--purple-100); color: var(--purple); }
/* CTA inside the list is only for the mobile drawer */
.nav__links .nav__links-cta { display: none; }

.nav__cta { display: flex; align-items: center; gap: 10px; flex: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: #fff; cursor: pointer;
  align-items: center; justify-content: center;
  color: var(--ink);
}
.nav__toggle svg { width: 22px; height: 22px; }
.nav__toggle .ic-close { display: none; }
.nav__toggle[aria-expanded="true"] .ic-close { display: block; }
.nav__toggle[aria-expanded="true"] .ic-menu { display: none; }

/* ---------- 8. Hero ---------- */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 104px) 0 clamp(72px, 9vw, 132px);
  background: var(--grad-deep);
  color: rgba(255, 255, 255, .82);
  overflow: hidden;
  isolation: isolate;
}
.hero h1, .hero h2, .hero h3 { color: #fff; }

.hero__bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .55;
  animation: float 18s ease-in-out infinite;
}
.blob--1 { width: 520px; height: 520px; background: var(--pink); top: -180px; right: -120px; }
.blob--2 { width: 460px; height: 460px; background: #8b31c9; bottom: -200px; left: -140px; animation-delay: -6s; }
.blob--3 { width: 300px; height: 300px; background: var(--amber); top: 42%; left: 44%; opacity: .22; animation-delay: -11s; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(34px, -32px) scale(1.08); }
  66% { transform: translate(-26px, 22px) scale(.95); }
}

.hero__grid-lines {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 20%, transparent 78%);
}

.hero__inner {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero .eyebrow {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .2);
  color: #fff;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero .eyebrow .dot { background: var(--amber); color: var(--purple-800); }

.hero p.lead { color: rgba(255, 255, 255, .78); max-width: 46ch; }

.hero__trust {
  display: flex; flex-wrap: wrap; gap: 10px 20px;
  margin-top: 34px; padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, .14);
  font-size: .855rem; color: rgba(255, 255, 255, .74);
}
/* nowrap keeps a single item from breaking mid-phrase, which is what made the
   row read as ragged rather than as one line of three */
.hero__trust li {
  display: flex; align-items: center; gap: 7px;
  list-style: none; white-space: nowrap;
}
.hero__trust svg { width: 16px; height: 16px; }
.hero__trust { padding-left: 0; margin-bottom: 0; }
.hero__trust svg { width: 17px; height: 17px; color: var(--amber); flex: none; }

.hero__wave {
  position: absolute; bottom: -1px; left: 0; right: 0;
  line-height: 0; color: var(--bg);
}
.hero__wave svg { width: 100%; height: clamp(40px, 6vw, 90px); }

/* ---------- 9. Phone mockup ---------- */
.phone-stage { position: relative; display: grid; place-items: center; }

.phone {
  position: relative;
  width: min(300px, 78vw);
  aspect-ratio: 300 / 612;
  background: linear-gradient(150deg, #2b2340, #150c22);
  border-radius: 44px;
  padding: 11px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, .16),
    0 40px 80px rgba(0, 0, 0, .45),
    0 0 90px rgba(237, 30, 121, .22);
  animation: bob 7s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 22px; border-radius: var(--r-pill);
  background: #0d0716; z-index: 4;
}

.phone__screen {
  height: 100%; border-radius: 34px; overflow: hidden;
  background: linear-gradient(175deg, #f7f2fc 0%, #ffffff 34%);
  display: flex; flex-direction: column;
  font-size: 11.5px; line-height: 1.4; color: var(--ink);
  text-align: left;
}

.ph-top {
  background: var(--grad-brand);
  padding: 40px 16px 46px;
  color: #fff; position: relative;
}
.ph-hi { font-size: 10.5px; opacity: .82; }
.ph-name { font-weight: 800; font-size: 13.5px; letter-spacing: -.01em; }
.ph-avatar {
  position: absolute; right: 16px; top: 40px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .4);
  display: grid; place-items: center; font-weight: 800; font-size: 11px;
}

.ph-card {
  margin: -32px 14px 0;
  background: #fff;
  border-radius: 18px;
  padding: 14px 15px;
  box-shadow: 0 12px 28px rgba(102, 45, 140, .18);
  position: relative; z-index: 2;
}
.ph-card__label { font-size: 9.5px; color: var(--ink-4); text-transform: uppercase; letter-spacing: .09em; font-weight: 700; }
.ph-card__bal { font-size: 24px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin-top: 2px; }
.ph-card__bal small { font-size: 14px; font-weight: 700; color: var(--ink-3); }
.ph-card__row { display: flex; gap: 7px; margin-top: 12px; }
.ph-chip {
  flex: 1; text-align: center; padding: 7px 4px;
  border-radius: 10px; font-size: 9.5px; font-weight: 700;
  background: var(--purple-100); color: var(--purple);
}
.ph-chip--pink { background: var(--pink-100); color: var(--pink-600); }

.ph-actions {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 10px 6px; padding: 18px 14px 6px;
}
.ph-action { text-align: center; font-size: 8.6px; font-weight: 600; color: var(--ink-3); }
.ph-action i {
  display: grid; place-items: center;
  width: 38px; height: 38px; margin: 0 auto 5px;
  border-radius: 13px; background: #fff;
  box-shadow: 0 3px 10px rgba(102, 45, 140, .12);
  color: var(--purple);
}
.ph-action:nth-child(2) i { color: var(--pink); }
.ph-action:nth-child(3) i { color: var(--amber-600); }
.ph-action:nth-child(6) i { color: var(--pink); }
.ph-action:nth-child(7) i { color: var(--amber-600); }
.ph-action i svg { width: 18px; height: 18px; }

.ph-list { padding: 12px 14px 0; }
.ph-list h5 { font-size: 10.5px; margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.ph-list h5 span { color: var(--pink); font-size: 9px; font-weight: 700; }
.ph-txn {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 0; border-bottom: 1px solid var(--line);
}
.ph-txn:last-child { border-bottom: 0; }
.ph-txn i {
  width: 28px; height: 28px; border-radius: 9px; flex: none;
  display: grid; place-items: center; background: var(--purple-100); color: var(--purple);
}
.ph-txn i svg { width: 14px; height: 14px; }
.ph-txn div { flex: 1; min-width: 0; }
.ph-txn b { display: block; font-size: 10px; font-weight: 700; }
.ph-txn small { font-size: 8.6px; color: var(--ink-4); }
.ph-txn .amt { font-size: 10.5px; font-weight: 800; color: #148a4e; }
.ph-txn .amt--out { color: var(--ink); }

/* Floating cards around phone */
.float-card {
  position: absolute; z-index: 3;
  background: rgba(255, 255, 255, .96);
  border-radius: 16px;
  padding: 11px 15px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .26);
  display: flex; align-items: center; gap: 10px;
  font-size: .8rem; color: var(--ink);
  animation: bob 7s ease-in-out infinite;
}
.float-card b, .float-card small { white-space: nowrap; }
.float-card i {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: grid; place-items: center; color: #fff;
}
.float-card i svg { width: 17px; height: 17px; }
.float-card b { display: block; font-weight: 800; font-size: .84rem; line-height: 1.25; }
.float-card small { color: var(--ink-4); font-size: .72rem; }

/* Anchored to the phone (half its 300px width from the stage centre) rather
   than to a percentage of the column, so changing the hero grid ratio cannot
   push a card back over the phone's screen. */
.float-card--a {
  top: 4%; left: auto; right: calc(50% + 130px);
  animation-delay: -2s;
}
.float-card--a i { background: linear-gradient(135deg, #16a34a, #0e7a39); }
.float-card--b {
  bottom: 14%; right: auto; left: calc(50% + 130px);
  animation-delay: -4.5s;
}
.float-card--b i { background: var(--grad-warm); }

/* ---------- 10. Logo marquee ---------- */
.marquee {
  overflow: hidden; position: relative;
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; gap: 56px; width: max-content; animation: scroll 32s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes scroll { to { transform: translateX(-50%); } }
.marquee__item {
  display: flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1.02rem; color: var(--ink-4);
  white-space: nowrap; letter-spacing: -.01em;
}
.marquee__item svg { width: 20px; height: 20px; color: var(--purple-300); }

/* ---------- 11. Cards ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--purple-200); }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--ink-3); font-size: .95rem; margin: 0; }

.card__icon {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--purple-100); color: var(--purple);
  transition: transform .3s var(--ease);
}
.card:hover .card__icon { transform: scale(1.08) rotate(-4deg); }
.card__icon svg { width: 25px; height: 25px; }
.card__icon--pink { background: var(--pink-100); color: var(--pink); }
.card__icon--amber { background: var(--amber-100); color: var(--amber-600); }
.card__icon--grad { background: var(--grad-brand); color: #fff; }

/* Service tiles */
.service {
  display: flex; flex-direction: column; align-items: flex-start;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 22px 20px;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service::after {
  content: ""; position: absolute; inset: auto -30% -60% auto;
  width: 130px; height: 130px; border-radius: 50%;
  background: var(--grad-brand); opacity: 0;
  transition: opacity .35s var(--ease);
  filter: blur(28px);
}
.service:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--purple-200); }
.service:hover::after { opacity: .16; }
.service i {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 14px;
  display: grid; place-items: center;
  background: var(--purple-100); color: var(--purple);
  transition: background .3s var(--ease), color .3s var(--ease);
}
.service i svg { width: 23px; height: 23px; }
.service:hover i { background: var(--grad-brand); color: #fff; }
.service h4 { margin: 0 0 4px; font-size: 1rem; font-weight: 700; letter-spacing: -.01em; position: relative; }
.service p { margin: 0; font-size: .86rem; color: var(--ink-3); position: relative; }

/* ---------- 12. Steps ---------- */
.steps { counter-reset: step; position: relative; }
.step { position: relative; padding-left: 76px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  width: 54px; height: 54px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--grad-brand); color: #fff;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-brand);
}
.step h3 { margin-bottom: 6px; }
.step p { color: var(--ink-3); margin: 0; font-size: .95rem; }

/* ---------- 13. Split feature ---------- */
.split {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px); align-items: center;
}
.split--rev > *:first-child { order: 2; }

.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; }
.check-list i {
  width: 24px; height: 24px; border-radius: 8px; flex: none; margin-top: 1px;
  display: grid; place-items: center;
  background: var(--purple-100); color: var(--purple);
}
.check-list i svg { width: 14px; height: 14px; }
.check-list b { color: var(--ink); display: block; font-weight: 700; }
.check-list span { color: var(--ink-3); font-size: .9rem; }

.on-dark .check-list i { background: rgba(255, 255, 255, .14); color: var(--amber); }
.on-dark .check-list b { color: #fff; }
.on-dark .check-list span { color: rgba(255, 255, 255, .68); }

/* ---------- 14. Security panel ---------- */
.panel-dark {
  background: var(--grad-deep);
  color: rgba(255, 255, 255, .78);
  position: relative; overflow: hidden; isolation: isolate;
}
.panel-dark h2, .panel-dark h3, .panel-dark h4 { color: #fff; }
.panel-dark .sec-head p, .panel-dark .lead { color: rgba(255, 255, 255, .74); }
.panel-dark .eyebrow {
  background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .2); color: #fff;
}
.panel-dark .eyebrow .dot { background: var(--amber); color: var(--purple-800); }

.glass {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  transition: transform .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.glass:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .11); border-color: rgba(255, 255, 255, .26); }
.glass h3, .glass h4 { color: #fff; }
.glass p { color: rgba(255, 255, 255, .7); font-size: .93rem; margin: 0; }
.glass .card__icon { background: rgba(255, 255, 255, .12); color: var(--amber); }

/* ---------- 15. Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 44px);
  box-shadow: var(--shadow-lg);
}
.stat { text-align: center; position: relative; }
.stat + .stat::before {
  content: ""; position: absolute; left: -12px; top: 12%; bottom: 12%;
  width: 1px; background: var(--line);
}
.stat b {
  display: block;
  font-size: clamp(1.9rem, 1.4rem + 1.8vw, 2.85rem);
  font-weight: 800; letter-spacing: -.035em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.05;
}
.stat b span { font: inherit; color: inherit; }
.stat > span { font-size: .875rem; color: var(--ink-3); font-weight: 600; }

/* ---------- 16. Testimonials ---------- */
.quote {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.quote:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.stars { display: flex; gap: 3px; color: var(--amber); }
.stars svg { width: 17px; height: 17px; }
.quote p { color: var(--ink-2); font-size: .96rem; margin: 0; flex: 1; }
.quote footer { display: flex; align-items: center; gap: 12px; }
.quote footer .av {
  width: 42px; height: 42px; border-radius: 50%; flex: none;
  display: grid; place-items: center; color: #fff;
  font-weight: 800; font-size: .95rem; background: var(--grad-brand);
}
.quote footer .av--2 { background: var(--grad-warm); }
.quote footer .av--3 { background: linear-gradient(135deg, #6366f1, var(--purple)); }
.quote footer b { display: block; color: var(--ink); font-size: .92rem; }
.quote footer small { color: var(--ink-4); font-size: .8rem; }

/* ---------- 17. FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); overflow: hidden;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.faq details[open] { border-color: var(--purple-200); box-shadow: var(--shadow-md); }
.faq summary {
  list-style: none; cursor: pointer;
  padding: 19px 56px 19px 22px;
  font-weight: 700; color: var(--ink); font-size: 1.005rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 22px; top: 50%;
  width: 11px; height: 11px; margin-top: -6px;
  border-right: 2.5px solid var(--purple); border-bottom: 2.5px solid var(--purple);
  transform: rotate(45deg); transform-origin: center;
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--purple); }
.faq .faq__body { padding: 0 22px 20px; color: var(--ink-3); font-size: .95rem; }
.faq .faq__body p:last-child { margin-bottom: 0; }

/* ---------- 18. CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--grad-brand);
  border-radius: var(--r-xl);
  padding: clamp(40px, 6vw, 72px);
  color: rgba(255, 255, 255, .86);
  text-align: center;
  box-shadow: var(--shadow-lg);
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, .84); max-width: 56ch; margin-inline: auto; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(circle at 15% 20%, rgba(247, 176, 12, .35), transparent 42%),
    radial-gradient(circle at 85% 85%, rgba(255, 255, 255, .22), transparent 46%);
}
.cta-band .store-row { justify-content: center; margin-top: 28px; }

/* ---------- 19. Footer ---------- */
.footer {
  background: var(--purple-900);
  color: rgba(255, 255, 255, .62);
  padding: clamp(56px, 7vw, 88px) 0 0;
  font-size: .93rem;
}
.footer h4 {
  color: #fff; font-size: .82rem; font-weight: 800;
  letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px;
}
.footer a { color: rgba(255, 255, 255, .62); }
.footer a:hover { color: var(--amber); }

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  padding-bottom: 48px;
}
.footer__brand img { height: auto; width: 170px; margin-bottom: 18px; }
.footer__brand p { max-width: 34ch; font-size: .9rem; line-height: 1.7; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }

.socials { display: flex; gap: 10px; margin-top: 20px; }
.socials a {
  width: 38px; height: 38px; border-radius: 11px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .12);
  color: rgba(255, 255, 255, .75);
  transition: all .25s var(--ease);
}
.socials a:hover { background: var(--grad-brand); color: #fff; border-color: transparent; transform: translateY(-3px); }
.socials svg { width: 17px; height: 17px; }

.footer__contact { display: grid; gap: 12px; }
.footer__contact li { display: flex; gap: 10px; align-items: flex-start; line-height: 1.55; }
.footer__contact svg { width: 16px; height: 16px; color: var(--amber); flex: none; margin-top: 4px; }

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 24px 0 30px;
  display: flex; flex-wrap: wrap; gap: 12px 26px;
  align-items: center; justify-content: space-between;
  font-size: .855rem;
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: 10px 22px; }

.footer__note {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 20px 0 28px;
  font-size: .78rem; line-height: 1.7;
  color: rgba(255, 255, 255, .42);
}

/* ---------- 20. Legal / doc pages ---------- */
.page-head {
  background: var(--grad-deep);
  color: rgba(255, 255, 255, .76);
  padding: clamp(52px, 7vw, 86px) 0 clamp(60px, 8vw, 96px);
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
}
.page-head h1 { color: #fff; margin-bottom: 12px; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
.page-head p { color: rgba(255, 255, 255, .74); max-width: 62ch; margin-inline: auto; }
.page-head .updated {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; padding: 7px 16px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .1);
  border: 1px solid rgba(255, 255, 255, .18);
  color: #fff; font-size: .82rem; font-weight: 600;
}
.page-head .updated svg { width: 15px; height: 15px; color: var(--amber); }

.crumbs {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 8px;
  font-size: .84rem; color: rgba(255, 255, 255, .6);
  margin-bottom: 18px;
}
.crumbs a { color: rgba(255, 255, 255, .8); }
.crumbs a:hover { color: var(--amber); }
.crumbs span { opacity: .5; }

.doc-layout {
  display: grid;
  grid-template-columns: 268px 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
/* grid items default to min-width:auto, which lets wide tables push the
   column past the viewport — this keeps overflow inside .table-wrap */
.doc-layout > * { min-width: 0; }

.toc {
  position: sticky; top: calc(var(--nav-h) + 24px);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px;
  max-height: calc(100vh - var(--nav-h) - 48px);
  overflow-y: auto;
}
.toc h4 {
  font-size: .74rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 14px; font-weight: 800;
}
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; counter-reset: toc; }
.toc a {
  display: block; padding: 7px 10px;
  border-radius: 8px; font-size: .875rem; font-weight: 600;
  color: var(--ink-3); line-height: 1.4;
  border-left: 2px solid transparent;
}
.toc a:hover { background: var(--purple-100); color: var(--purple); }
.toc a.is-active { background: var(--purple-100); color: var(--purple); border-left-color: var(--purple); }

.doc {
  font-size: 1rem; color: var(--ink-2); line-height: 1.78;
  max-width: 78ch;
}
.doc > section { scroll-margin-top: calc(var(--nav-h) + 24px); }
.doc h2 {
  font-size: clamp(1.35rem, 1.2rem + .6vw, 1.65rem);
  margin-top: 2.4em; margin-bottom: .6em;
  padding-bottom: .4em; border-bottom: 1px solid var(--line);
  letter-spacing: -.02em;
}
.doc > section:first-child h2, .doc > *:first-child { margin-top: 0; }
.doc h3 { font-size: 1.1rem; margin-top: 1.8em; margin-bottom: .5em; }
.doc h4 { font-size: .98rem; margin-top: 1.4em; margin-bottom: .4em; color: var(--ink); }
.doc ul, .doc ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.doc li { margin-bottom: .55em; }
.doc li::marker { color: var(--purple); font-weight: 700; }
.doc strong { color: var(--ink); font-weight: 700; }
.doc a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.doc .intro {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: var(--r-md);
  padding: 20px 24px;
  margin-bottom: 8px;
  font-size: .97rem;
}

.callout {
  border-radius: var(--r-md);
  padding: 18px 22px;
  margin: 1.6em 0;
  font-size: .94rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.callout strong { display: block; margin-bottom: 4px; }
.callout--warn { background: var(--amber-100); border-color: #f3dda4; }
.callout--warn strong { color: #8a5f00; }
.callout--info { background: var(--purple-100); border-color: var(--purple-200); }
.callout--info strong { color: var(--purple); }

.doc table {
  width: 100%; border-collapse: collapse;
  margin: 1.4em 0; font-size: .92rem;
  border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
}
.doc table th {
  background: var(--bg-tint); color: var(--ink);
  font-weight: 700; text-align: left; padding: 12px 16px;
  border-bottom: 1px solid var(--line-2);
}
.doc table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc table tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
/* scroll rather than crush the columns on narrow screens */
.table-wrap table { min-width: 32rem; }

.contact-card {
  background: var(--grad-deep); color: rgba(255, 255, 255, .8);
  border-radius: var(--r-lg); padding: 28px 30px; margin-top: 2.4em;
}
.contact-card h3 { color: #fff; margin-bottom: 12px; }
.contact-card a { color: var(--amber); }
.contact-card a:hover { color: #fff; }
.contact-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.contact-card li { display: flex; gap: 10px; align-items: flex-start; }
.contact-card svg { width: 17px; height: 17px; color: var(--amber); flex: none; margin-top: 4px; }

.legal-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.legal-nav a {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px 18px;
  color: var(--ink); font-weight: 700; font-size: .93rem;
  transition: all .25s var(--ease);
}
.legal-nav a:hover { border-color: var(--purple-200); box-shadow: var(--shadow-md); transform: translateY(-3px); color: var(--purple); }
.legal-nav i {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: grid; place-items: center; background: var(--purple-100); color: var(--purple);
}
.legal-nav i svg { width: 18px; height: 18px; }

/* ---------- 21. Contact page ---------- */
.info-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: all .3s var(--ease);
}
.info-card:hover { box-shadow: var(--shadow-md); transform: translateY(-4px); border-color: var(--purple-200); }
.info-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.info-card p { color: var(--ink-3); font-size: .92rem; margin-bottom: 12px; }
.info-card a { font-weight: 700; font-size: .95rem; word-break: break-word; }

.form-grid { display: grid; gap: 18px; }
.field label {
  display: block; font-weight: 700; font-size: .875rem;
  color: var(--ink); margin-bottom: 7px;
}
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--line-2); border-radius: 12px;
  font: inherit; font-size: .95rem; color: var(--ink);
  background: #fff;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(102, 45, 140, .1);
}
.field textarea { resize: vertical; min-height: 130px; }
.field .hint { font-size: .8rem; color: var(--ink-4); margin-top: 6px; }

/* ---- validation state ---- */
.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--pink);
  background: #fffafc;
}
.field.is-invalid input:focus,
.field.is-invalid select:focus,
.field.is-invalid textarea:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(237, 30, 121, .12);
}
.field.is-invalid label { color: var(--pink-600); }

/* An author `display` beats the UA stylesheet's [hidden]{display:none}, so a
   cleared slot would keep rendering its "!" bullet with no text beside it. */
.field-error[hidden] { display: none; }

.field-error {
  display: flex; align-items: flex-start; gap: 6px;
  margin: 7px 0 0;
  font-size: .82rem; font-weight: 600; line-height: 1.45;
  color: var(--pink-600);
}
.field-error::before {
  content: "!";
  flex: none;
  width: 15px; height: 15px; margin-top: 1px;
  border-radius: 50%;
  background: var(--pink); color: #fff;
  font-size: .66rem; font-weight: 800;
  display: grid; place-items: center;
}

.hint--split { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.char-count { flex: none; font-variant-numeric: tabular-nums; }
.char-count.is-near { color: var(--pink-600); font-weight: 700; }

/* The ticket reference in the success banner — the one thing a visitor may
   need to copy down, so it gets its own block rather than sitting in prose. */
.ticket-chip {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 12px; padding: 8px 16px;
  border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--purple-200);
  font-size: .85rem; color: var(--ink-3);
}
.ticket-chip b {
  color: var(--purple); font-weight: 800;
  letter-spacing: .04em; font-size: .95rem;
  user-select: all;
}

/* ---------- 22. Lending partners ---------- */
/* capped track, not 1fr: with a single partner a stretched full-width card
   reads as a broken layout rather than a directory entry */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(330px, 420px));
  justify-content: center;
  gap: 22px;
}

.partner-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.partner-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--purple-200);
}

.partner-card__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.partner-card__logo {
  width: 64px; height: 64px; flex: none;
  display: grid; place-items: center; overflow: hidden;
  padding: 9px; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-md);
}
/* logos arrive at every aspect ratio, so fit them rather than fill the box */
.partner-card__logo img { width: 100%; height: 100%; object-fit: contain; }
.partner-card__title { min-width: 0; }
.partner-card__title h3 { font-size: 1.12rem; margin: 0 0 7px; }

.partner-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--purple-100); color: var(--purple);
  font-size: .74rem; font-weight: 700;
}
.partner-tag svg { width: 13px; height: 13px; }
.partner-tag--amber { background: var(--amber-100); color: #8a5f00; }
/* A card carries two tags — what kind of partner, and their regulatory
   standing — so they need to wrap as a pair, not run off the card. */
.partner-tags { display: flex; flex-wrap: wrap; gap: 6px; }

.partner-card__desc { color: var(--ink-3); font-size: .93rem; margin-bottom: 18px; }

.partner-meta {
  margin: 0 0 20px; padding: 14px 16px;
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--r-md);
  display: grid; grid-template-columns: auto 1fr; gap: 8px 14px;
  font-size: .855rem;
}
.partner-meta dt { color: var(--ink-4); font-weight: 600; }
.partner-meta dd { margin: 0; color: var(--ink); font-weight: 700; text-align: right; word-break: break-word; }

/* pinned to the bottom so cards of unequal text length still line their actions up */
.partner-card__links { margin-top: auto; display: grid; gap: 10px; }

/* the agreement download has to read as a document, not a generic button */
.doc-link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 12px;
  border: 1px solid var(--line-2); background: #fff;
  color: var(--ink); font-weight: 700; font-size: .9rem;
  transition: border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
}
.doc-link:hover { border-color: var(--pink); color: var(--pink); box-shadow: var(--shadow-sm); }
.doc-link i {
  width: 36px; height: 36px; border-radius: 10px; flex: none;
  display: grid; place-items: center;
  background: var(--pink-100); color: var(--pink);
}
.doc-link i svg { width: 17px; height: 17px; }
.doc-link span { display: grid; line-height: 1.35; min-width: 0; }
.doc-link small { font-size: .74rem; font-weight: 600; color: var(--ink-4); }
.doc-link:hover small { color: inherit; opacity: .75; }

/* compact strip used on the home page */
.partner-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.partner-chip {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 12px; border-radius: var(--r-pill);
  background: #fff; border: 1px solid var(--line);
  color: var(--ink); font-weight: 700; font-size: .92rem;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.partner-chip:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--purple-200); color: var(--purple); }
.partner-chip img { width: 32px; height: 32px; flex: none; object-fit: contain; border-radius: 50%; background: #fff; }

/* ---------- 23. Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.reveal.d1 { transition-delay: .07s; }
.reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; }
.reveal.d4 { transition-delay: .28s; }
.reveal.d5 { transition-delay: .35s; }
.reveal.d6 { transition-delay: .42s; }
.reveal.d7 { transition-delay: .49s; }

/* ---------- 24. Back to top ---------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90;
  width: 46px; height: 46px; border-radius: 50%;
  border: none; cursor: pointer;
  background: var(--grad-brand); color: #fff;
  display: grid; place-items: center;
  box-shadow: var(--shadow-brand);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: all .3s var(--ease);
}
.to-top.is-on { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { transform: translateY(-3px); }
.to-top svg { width: 20px; height: 20px; }

/* ---------- 25. Responsive ---------- */
@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero .eyebrow, .hero .btn-row, .hero__trust { justify-content: center; }
  .hero p.lead { margin-inline: auto; }
  .hero__trust { justify-content: center; }
  .phone-stage { margin-top: 46px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .toc ol { grid-template-columns: repeat(2, 1fr); display: grid; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .stat:nth-child(3)::before { display: none; }
}

@media (max-width: 900px) {
  .nav__toggle { display: flex; }
  .nav__links {
    position: fixed; inset: calc(var(--nav-h)) 0 auto;
    flex-direction: column; align-items: stretch; gap: 4px;
    background: #fff; margin: 0; padding: 16px var(--gutter) 26px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 40px rgba(26, 16, 48, .12);
    transform: translateY(-12px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: all .28s var(--ease);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto;
  }
  body.nav-open .nav__links { transform: none; opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: 13px 16px; font-size: 1rem; border-radius: 12px; }
  .nav__links .nav__links-cta { display: block; margin-top: 10px; }
  .nav__links .btn { width: 100%; }
  .nav__cta .btn { display: none; }
  .nav__inner { justify-content: space-between; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split--rev > *:first-child { order: 0; }
  .legal-nav { grid-template-columns: repeat(2, 1fr); }
  .float-card--a { left: 0; }
  .float-card--b { right: 0; }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .stat + .stat { padding-top: 24px; border-top: 1px solid var(--line); }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .legal-nav { grid-template-columns: 1fr; }
  /* a 19-item contents list would push the document off screen — cap and scroll it */
  .toc ol { grid-template-columns: 1fr; max-height: 246px; overflow-y: auto; }
  .btn-row .btn { width: 100%; }
  /* the store badge is the primary action here, so it must not render
     narrower than the secondary button sitting under it */
  .btn-row .store-badge { width: 100%; justify-content: center; }
  .store-row { flex-direction: column; }
  .store-row .store-badge { justify-content: flex-start; }

  /* three items cannot fit one line at this width; a single centred column
     reads as deliberate, where a 2-then-1 wrap reads as ragged */
  .hero__trust { flex-direction: column; align-items: center; gap: 9px; }
  /* a single column keeps the logo box and the name from colliding */
  .partner-grid { grid-template-columns: 1fr; }
  .partner-card { padding: 22px; }
  .partner-meta { grid-template-columns: 1fr; gap: 3px; }
  .partner-meta dd { text-align: left; margin-bottom: 7px; }
  .partner-meta dd:last-child { margin-bottom: 0; }
  .partner-strip { flex-direction: column; align-items: stretch; }
  .partner-chip { justify-content: flex-start; }
  .float-card { display: none; }
  .step { padding-left: 0; padding-top: 66px; }
  .step::before { width: 48px; height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 26. Print ---------- */
@media print {
  .nav, .topbar, .footer, .to-top, .toc, .hero__bg, .cta-band { display: none !important; }
  .page-head { background: none; color: #000; padding: 0 0 24px; }
  .page-head h1, .page-head p { color: #000; }
  .doc-layout { grid-template-columns: 1fr; }
  body { font-size: 11pt; }
}
