/* ============================================================================
   TOPPER — v1
   Tokens and values from the handoff's v2 design (Apple Card-inspired).
   v1 in the handoff used a different design system and is reference only.
   ========================================================================== */

/* ---------------------------------------------------------------- tokens -- */
:root {
  --bg:      #FAFAFB;
  --white:   #FFFFFF;
  --ink:     #16202E;
  --deep:    #101E33;
  --deep-hov:#1C304F;

  --accent:      #1F7AE0;
  --accent-hov:  #155FB3;
  --accent-lite: #3DA5FF;
  --accent-tint: #D6EAFF;

  --muted:  #5B6572;
  --faint:  #8A93A0;
  --dim:    #B9C2CD;
  --line:   #E1E8F0;
  --tint:   #F3F6FA;

  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --container: 1160px;
  --gutter: 24px;
}

/* ------------------------------------------------------------------ base -- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
body.lp-locked { overflow: hidden; }

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hov); }
button { font-family: inherit; }
input { font-family: inherit; outline: none; }

::selection { background: var(--accent-tint); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

@keyframes boostPop { 0% { opacity: 0; transform: translateY(14px) scale(.97); } 100% { opacity: 1; transform: none; } }
@keyframes notifIn  { 0% { opacity: 0; transform: translateY(-12px); } 100% { opacity: 1; transform: none; } }
@keyframes floatSoft { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

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

/* ------------------------------------------------------------ primitives -- */
.wrap { max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding-top: 80px; padding-bottom: 80px; }

.h2 {
  font-size: clamp(27px, 3.8vw, 42px); font-weight: 800;
  letter-spacing: -.03em; line-height: 1.08; margin: 0; text-wrap: balance;
}
.lede { font-size: 17px; line-height: 1.55; color: var(--muted); margin: 0; text-wrap: pretty; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--deep); color: #fff; border: none; border-radius: 999px;
  font-weight: 700; cursor: pointer; transition: background .15s ease;
}
.btn:hover { background: var(--deep-hov); }
.btn--nav  { padding: 11px 22px; font-size: 15px; white-space: nowrap; flex: none; }
.btn--hero { padding: 16px 34px; font-size: 17px; box-shadow: 0 8px 24px rgba(16, 30, 51, .18); }
.btn--md   { padding: 14px 28px; font-size: 16px; }
.btn--light { background: var(--white); color: var(--deep); }
.btn--light:hover { background: #EDF2F8; }

/* -------------------------------------------------------------------- nav -- */
.nav {
  max-width: var(--container); margin: 0 auto;
  padding: 22px var(--gutter); display: flex; align-items: center; gap: 18px;
}
.nav__brand {
  font-weight: 800; font-size: 21px; letter-spacing: -.02em; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.nav__mark {
  width: 22px; height: 22px; border-radius: 7px; background: var(--deep);
  display: inline-grid; place-items: center;
}
.nav__mark span { width: 8px; height: 8px; border-radius: 3px; background: var(--accent-lite); }
.nav__spacer { flex: 1; }
.nav-link { font-size: 15px; font-weight: 600; color: var(--muted); }
.nav-link:hover { color: var(--ink); }

/* ------------------------------------------------------------------- hero -- */
.hero {
  max-width: var(--container); margin: 0 auto;
  padding: 64px 28px 40px;
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 26px;
}
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px); font-weight: 800;
  letter-spacing: -.035em; line-height: 1.02; margin: 0;
  max-width: 15ch; text-wrap: balance;
}
.hero__sub {
  font-size: clamp(16px, 1.8vw, 19px); line-height: 1.5; color: var(--muted);
  max-width: 46ch; margin: 0; text-wrap: pretty;
}
.hero__earn { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__earn b { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.hero__earn span { font-size: 16px; font-weight: 700; color: var(--accent); }
.hero__row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.hero__note { font-size: 14px; color: var(--faint); font-weight: 500; }

/* the payday moment — the concept in one loop. A panel, not a phone: the bezel
   read as a device (or a watch) rather than as "your account, on payday". */
.moment-wrap { margin-top: 34px; display: flex; justify-content: center; width: 100%; }
.moment {
  width: min(520px, 100%); text-align: left;
  background: var(--white); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 22px 20px; box-shadow: 0 24px 60px -28px rgba(16, 30, 51, .28);
}
.moment__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.moment__date { font-size: 13px; font-weight: 700; color: var(--faint); }
.moment__live {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent); background: var(--tint); border-radius: 999px; padding: 5px 11px;
}
.moment__dot { width: 7px; height: 7px; border-radius: 999px; background: var(--accent); }
.moment__bal-l { font-size: 12.5px; color: var(--faint); margin-top: 18px; }
.moment__bal {
  font-size: 34px; font-weight: 800; letter-spacing: -.03em;
  margin: 2px 0 0; font-variant-numeric: tabular-nums;
}
.notif {
  display: flex; align-items: center; gap: 12px;
  background: var(--tint); border-radius: 16px; padding: 13px 14px; margin-top: 14px;
  animation: notifIn .45s ease both;
}
.notif--boost { background: var(--deep); animation: boostPop .5s ease both; }
.notif__icon {
  width: 36px; height: 36px; border-radius: 12px; flex: none;
  display: grid; place-items: center; background: var(--accent); color: #fff;
  font-weight: 800; font-size: 15px;
}
.notif--boost .notif__icon { background: var(--accent-lite); color: var(--deep); }
.notif__body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.notif__t { font-size: 14px; font-weight: 700; }
.notif__s { font-size: 12.5px; color: var(--faint); }
.notif--boost .notif__t { color: #fff; }
.notif--boost .notif__s { color: #93A3B8; }
.notif__amt { font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.notif__amt--in { color: var(--accent); }
.notif--boost .notif__amt { color: var(--accent-lite); }
.notif--ghost { visibility: hidden; }

/* --------------------------------------------------------- 2 · big idea -- */
.big-idea__h {
  font-size: clamp(27px, 3.8vw, 42px); font-weight: 800; letter-spacing: -.03em;
  line-height: 1.08; margin: 0 auto 56px; max-width: 20ch;
  text-align: center; text-wrap: balance;
}
.two-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.icard {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 28px; padding: 30px;
}
.icard--dark { background: var(--deep); border-color: var(--deep); color: #fff; }
.icard__h { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.icard--dark .icard__h { color: #fff; }
.icard__p { font-size: 15.5px; line-height: 1.55; color: var(--muted); margin: 12px 0 0; }
.icard--dark .icard__p { color: #93A3B8; }

.prog-box { background: var(--tint); border-radius: 18px; padding: 20px; margin-top: 22px; }
.prog-head { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 700; }
.prog-head span:last-child { color: var(--accent); }
.prog-track {
  height: 8px; border-radius: 999px; background: var(--line);
  margin: 12px 0 18px; overflow: hidden;
}
.prog-fill {
  height: 100%; border-radius: 999px; background: var(--accent);
  width: 8%; transition: width 1.4s cubic-bezier(.3, .8, .3, 1);
}
.mrow {
  display: flex; align-items: center; gap: 9px;
  font-size: 13.5px; font-weight: 600; margin-bottom: 10px;
  opacity: .4; transition: opacity .5s ease;
}
.mrow.on { opacity: 1; }
.mdot {
  width: 19px; height: 19px; border-radius: 999px; flex: none;
  display: grid; place-items: center; font-size: 11px;
  background: var(--line); color: var(--dim); transition: all .4s ease;
}
.mrow.done .mdot { background: var(--accent); color: #fff; }
.mrow .mtext { color: var(--faint); }
.mrow.done .mtext { color: var(--ink); }
.prog-next { font-size: 13px; font-weight: 700; color: var(--accent); margin-top: 4px; }

.boost-line {
  background: rgba(255, 255, 255, .07); border-radius: 18px;
  padding: 20px; margin-top: 22px; text-align: center;
}
.boost-line__amt {
  font-size: 40px; font-weight: 800; letter-spacing: -.03em;
  color: var(--accent-lite); font-variant-numeric: tabular-nums;
}
.boost-line__t { font-size: 14.5px; font-weight: 600; color: #C3D0DF; margin-top: 4px; }
.boost-line__s { font-size: 13px; color: #93A3B8; margin-top: 8px; }
.boost-line__fine { font-size: 12px; color: #7E8FA3; margin-top: 12px; }
.boost-fine { font-size: 12.5px; color: #93A3B8; margin: 16px 0 0; }

/* ---------------------------------------------------- 3 · payday boost --- */
.band-dark { background: var(--deep); color: #fff; }
.band-dark .lede { color: #93A3B8; }
.boost-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.boost-eyebrow {
  display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-lite);
  background: rgba(61, 165, 255, .12); border-radius: 999px; padding: 7px 15px;
}
.paydays { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-top: 38px; }
.payday {
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 22px; padding: 22px; text-align: left;
}
.payday__d { font-size: 12.5px; font-weight: 700; color: #93A3B8; }
.payday__a {
  font-size: 30px; font-weight: 800; letter-spacing: -.03em;
  color: var(--accent-lite); margin: 8px 0 2px; font-variant-numeric: tabular-nums;
}
.payday__n { font-size: 12.5px; color: #93A3B8; }
.boost-foot { font-size: 15.5px; color: #C3D0DF; margin-top: 34px; }

/* --------------------------------------------------- 4 · the account ---- */
.acct { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 44px; align-items: start; }
.bens { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.ben {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 22px;
}
.ben__icon {
  width: 42px; height: 42px; border-radius: 13px; background: var(--tint);
  display: grid; place-items: center; margin-bottom: 14px;
}
.ben__t { font-size: 16px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.ben__b { font-size: 14px; line-height: 1.55; color: var(--muted); }
.acct-note {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 20px; padding: 20px; margin-top: 18px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14.5px; font-weight: 600;
}
.acct-note__dot { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }

/* ------------------------------------------------- 5 · switching steps -- */
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 40px; }
.step3 {
  background: var(--white); border: 1px solid var(--line);
  border-radius: 24px; padding: 26px;
}
.step3__n {
  width: 34px; height: 34px; border-radius: 999px; background: var(--deep); color: #fff;
  display: grid; place-items: center; font-weight: 800; font-size: 15px; margin-bottom: 16px;
}
.step3__t { font-size: 18px; font-weight: 800; letter-spacing: -.01em; margin-bottom: 6px; }
.step3__b { font-size: 14.5px; line-height: 1.55; color: var(--muted); }

/* ---------------------------------------------------------- 6 · final --- */
.final-inner { max-width: 760px; margin: 0 auto; text-align: center; }
.final-inner .h2 { color: #fff; max-width: 22ch; margin: 0 auto 18px; }

/* ------------------------------------------------------------- 7 · foot -- */
/* trust strip above the footer: the "this is a real checking account" row */
.trust { border-top: 1px solid var(--line); background: var(--white); }
.trust__row {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px 32px; padding-top: 30px; padding-bottom: 30px;
}
.trust__item { display: flex; align-items: center; gap: 12px; }
.trust__icon {
  width: 38px; height: 38px; border-radius: 11px; background: var(--tint); color: var(--ink);
  flex: none; display: flex; align-items: center; justify-content: center;
}
.trust__item b { display: block; font-size: 14.5px; font-weight: 700; }
.trust__item span span { display: block; font-size: 13px; color: var(--faint); }

.footer { border-top: 1px solid var(--line); }
.footer__inner {
  max-width: var(--container); margin: 0 auto; padding: 26px var(--gutter);
  display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
  font-size: 13px; color: var(--faint);
}

/* ------------------------------------------------------------------ modal */
.scrim {
  position: fixed; inset: 0; z-index: 100; background: rgba(16, 30, 51, .55);
  display: grid; place-items: center; padding: 20px; overflow: auto;
}
.scrim[hidden] { display: none; }

.modal {
  background: var(--white); border-radius: 28px; padding: 32px;
  width: 100%; max-width: 520px; max-height: 90vh; overflow: auto;
  position: relative; box-shadow: 0 30px 80px rgba(16, 30, 51, .3);
  animation: boostPop .3s ease both;
}
.modal__close {
  position: absolute; top: 20px; right: 20px;
  background: none; border: none; cursor: pointer;
  font-size: 17px; color: var(--faint); padding: 6px; line-height: 1;
}
.modal__close:hover { color: var(--ink); }
.modal__eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent);
}
.modal__h { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 8px 0 0; text-wrap: pretty; }
.modal__s { font-size: 14.5px; color: var(--muted); margin: 6px 0 0; line-height: 1.5; }

.reasons { display: grid; gap: 9px; margin-top: 22px; }
.reason {
  width: 100%; text-align: left; cursor: pointer;
  background: var(--white); border: 1.5px solid var(--line); border-radius: 16px;
  padding: 15px 18px; font-size: 15px; font-weight: 600; color: var(--ink);
  transition: border-color .15s ease, background .15s ease;
}
.reason:hover { border-color: var(--accent); background: #F5FAFF; }
.reason[aria-pressed="true"] { border-color: var(--accent); background: #F5FAFF; }

.email-input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 16px;
  padding: 15px 18px; font-size: 16px; background: var(--white); color: var(--ink);
  margin-top: 20px; transition: border-color .15s ease;
}
.email-input:focus { border-color: var(--accent); }
.email-error { margin: 9px 0 0; font-size: 13px; color: #B4552D; min-height: 1.1em; }
.modal__actions { display: flex; gap: 10px; margin-top: 16px; align-items: center; }
.modal__actions .btn { flex: 1; padding: 15px; font-size: 16px; }
.back-link {
  background: none; border: none; cursor: pointer;
  font-size: 14px; font-weight: 700; color: var(--faint); padding: 10px 4px;
}
.back-link:hover { color: var(--ink); }
.is-busy { opacity: .6; pointer-events: none; }

.done-badge {
  width: 52px; height: 52px; border-radius: 999px; background: var(--accent);
  color: #fff; display: grid; place-items: center; font-size: 24px;
  margin-bottom: 16px; animation: boostPop .35s ease both;
}

/* ------------------------------------------------------------- responsive */
@media (max-width: 560px) {
  .nav-link { display: none; }
  .nav { padding: 18px var(--gutter); }
  .btn--nav { padding: 9px 16px; font-size: 14px; }
  .hero { padding: 40px var(--gutter) 28px; gap: 20px; }
  .section { padding-top: 60px; padding-bottom: 60px; }
  .icard, .step3 { padding: 24px; }
  .modal { padding: 24px 20px; }
  .btn, .reason { min-height: 44px; }
  .hero__row .btn { flex: 1 1 100%; }
}
