/* ─── Bank Pay splash page styles ───────────────────────────────────
   Programme page: full-viewport colour-blocked beats, headline left,
   copy right, one phone pinned dead-centre. ABC Areal, flat colour. */

html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-brand);
  -webkit-font-smoothing: antialiased;
}
.splash { overflow-x: clip; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 40px; }

/* ── Type ── */
.h1 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(44px, 4.6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.h2 {
  margin: 0;
  font-weight: 500;
  font-size: clamp(36px, 4.2vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.eyebrow {
  display: block;
  font: 500 15px/20px var(--font-brand);
  letter-spacing: 0.4px;
  color: var(--bankpay-ink);
  margin-bottom: 16px;
}
.body {
  font: 400 19px/30px var(--font-brand);
  letter-spacing: var(--tracking-body);
  color: var(--text-secondary);
  max-width: 480px;
  margin: 0;
  text-wrap: pretty;
}
.lede {
  font: 400 20px/32px var(--font-brand);
  letter-spacing: var(--tracking-body);
  margin: 0;
  text-wrap: pretty;
  max-width: 52ch;
}
.hl { text-decoration: none; }
.no-hl .hl { text-decoration: none; }

/* ── CTA slabs (square corners, per brand) ── */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 36px;
  font: 500 16px/24px var(--font-brand);
  letter-spacing: var(--tracking-button);
  text-decoration: none;
  border-radius: var(--radius-none);
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
}
.cta:hover { transform: translateY(-2px); }
.cta:active { transform: translateY(0px) scale(0.98); }
.cta.on-brand { background: var(--white); color: var(--bankpay-pink-deep); }
.cta.on-brand:hover { background: rgb(253, 227, 236); }
.cta.brand { background: var(--bankpay-pink-deep); color: var(--white); }
.cta.brand:hover { background: var(--bankpay-pink); }
.cta.on-ink { background: var(--white); color: var(--bankpay-ink); }
.cta.on-ink:hover { background: rgb(238, 238, 236); }

/* ── Nav (sits over the hero beat) ── */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
  max-width: 1480px;
  color: var(--bankpay-ink);
}
.nav .brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.nav .wordmark { font: 700 26px/28px var(--font-brand); white-space: nowrap; color: var(--text-primary); }
.nav .nav-link { white-space: nowrap; }
.hero-owner { display: block; font: 400 15px/1.3 var(--font-brand); margin-bottom: 8px; }
.hero-eyebrow { color: inherit; }
.beat.t-paper .hero-eyebrow { color: var(--bankpay-ink); opacity: 1; }
.strap { font: 400 15px/1.5 var(--font-brand); margin: 14px 0 0; max-width: 44ch; }
.links-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 24px; }
.link-plain { font: 500 16px/1 var(--font-brand); color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.nav .nav-link {
  font: 500 16px/24px var(--font-brand);
  letter-spacing: var(--tracking-button);
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav .nav-link:hover { border-bottom-color: currentColor; }
.nav--on-brand .container, .nav--on-brand .wordmark, .nav--on-brand .nav-link { color: var(--white); }
.h1-break { display: none; }

/* ── Sticky scrolly story ── */
.scrolly { position: relative; }
.scrolly-phone {
  position: sticky;
  top: calc(50vh - var(--phone-h) / 2);
  width: fit-content;
  margin: 0 auto;
  z-index: 5;
}
/* Beats reclaim the phone's flow slot; the phone keeps its real margin box
   so sticky releases INSIDE the container, never hanging over what follows. */
.scrolly-beats { margin-top: calc(-1 * var(--phone-h)); }
.scrolly-stack {
  position: relative;
  filter: drop-shadow(0 26px 52px rgba(0, 0, 0, 0.16));
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  /* Promote to its own GPU layer so the scale transforms a cached texture
     (drop-shadow + phone baked in) instead of re-rasterising ~220 nodes and
     the shadow every frame — that per-frame re-raster is what read as jagged. */
  will-change: transform;
  backface-visibility: hidden;
}
/* Hero presence: phone anchored near the top and ~50% larger (cash.app
   hero — handset dominates and bleeds past the fold), settling to true
   center size once the story starts. */
.scrolly.at-hero .scrolly-stack {
  transform: scale(1.5) translateY(14%);
  transform-origin: top center;
}
@media (max-width: 1280px) {
  .scrolly.at-hero .scrolly-stack { transform: scale(1.3) translateY(14%); }
}
/* One handset, screen swapping. Every beat is a full opaque phone; we never
   cross-fade the whole stack (that made the handset go translucent and read as
   a second phone). Instead the outgoing screen (.prev) is held fully opaque
   directly beneath the incoming one (.live), which settles in on top — the
   shared stack-scale is what actually shrinks the one phone. */
.screen-layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  z-index: 1;
  transform: scale(0.985);
}
.screen-layer.prev { opacity: 1; z-index: 2; transform: none; }
.screen-layer.live { opacity: 1; z-index: 3; transform: none; }

/* ── Beats: full-viewport color blocks ── */
.beat {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0;
  box-sizing: border-box;
}
.beat.t-brand { color: var(--white); }
.beat.t-paper { color: var(--text-primary); }
.beat.t-ink { color: var(--white); }
.beat.t-white { color: var(--text-primary); }
/* Fixed background layer; colour interpolated + faded in/out from scroll in JS. */
.scrolly-bg { position: fixed; inset: 0; z-index: 0; background-color: var(--bankpay-pink); pointer-events: none; opacity: 1; transition: opacity 0.25s ease; }
.beat { position: relative; z-index: 1; }
.beat .container { max-width: 1480px; width: 100%; box-sizing: border-box; }
.beat-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 460px) minmax(0, 1fr);
  column-gap: 64px;
  align-items: center;
  width: 100%;
}
.beat-lead { grid-column: 1; justify-self: start; max-width: 520px; }
.beat-side { grid-column: 3; justify-self: end; max-width: 400px; }
.beat-title {
  margin: 0;
  font-weight: 500;
  font-size: clamp(36px, 3.4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.beat.t-brand .eyebrow { color: var(--white); }
.beat.t-ink .eyebrow { color: var(--bankpay-yellow); }
.no-hl .beat .eyebrow { color: inherit; }
.beat .body { color: inherit; max-width: 52ch; }
.beat.t-paper .body, .beat.t-white .body { color: var(--text-secondary); opacity: 1; }
.beat-bullets {
  margin: 0;
  padding-left: 1.1em;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font: 400 18px/26px var(--font-brand);
  color: var(--text-secondary);
  max-width: 52ch;
}
.beat-side .body + .beat-bullets { margin-top: 22px; }
.beat-side .cta { margin-top: 32px; }
.beat-hint { display: block; margin-top: 18px; font: 400 15px/22px var(--font-brand); max-width: 52ch; }

/* ── Choreography ── */
.h1.masked { display: flex; flex-wrap: wrap; column-gap: 0.24em; }
.w-mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.w-inner { display: inline-block; }
@keyframes splash-word { from { transform: translateY(115%); } }
@keyframes splash-rise { from { opacity: 0; transform: translateY(28px); } }
@keyframes splash-phone { from { opacity: 0; transform: translateY(90px) scale(0.97); } }
@media (prefers-reduced-motion: no-preference) {
  .scrolly .w-inner { animation: splash-word 0.9s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .beat-hero .lede { animation: splash-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.5s both; }
  .beat-hero .cta { animation: splash-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.62s both; }
  .scrolly .nav { animation: splash-rise 0.7s ease 0.85s both; }
  .scrolly .scrolly-stack { animation: splash-phone 1s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both; }
  .scrolly .screen-layer { transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
}
/* Dim the beats beside the pinned phone. Narrow beats stack and are each read
   in full, so nothing dims there. */
@media (prefers-reduced-motion: no-preference) and (width > 920px) {
  .beat:not(.is-active):not(.beat-hero) .beat-lead,
  .beat:not(.is-active):not(.beat-hero) .beat-side { opacity: 0.28; }
  .beat:not(.is-active):not(.beat-hero) .beat-lead > *,
  .beat:not(.is-active):not(.beat-hero) .beat-side > * { transform: translateY(22px); }
}
/* Narrow hero: the rest of the words rise in order after the lede, then the
   chat phone rises inside its crop. */
@media (prefers-reduced-motion: no-preference) and (max-width: 920px) {
  .beat-hero .strap { animation: splash-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.56s both; }
  .beat-hero .link-plain { animation: splash-rise 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.68s both; }
  .beat-phone--hero > * { animation: splash-phone 1s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both; }
}
.beat-lead, .beat-side { transition: opacity 0.5s ease; }
.beat-lead > *, .beat-side > * { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.beat.is-active .beat-title { transition-delay: 0.07s; }
.beat.is-active .beat-side .body,
.beat.is-active .beat-side .beat-bullets,
.beat.is-active .beat-side .beat-hint { transition-delay: 0.15s; }
.beat.is-active .beat-side .cta { transition-delay: 0.22s; }
.no-motion .beat-lead > *, .no-motion .beat-side > * { transform: none !important; transition: none; }
.no-motion .scrolly .w-inner, .no-motion .beat-hero .lede, .no-motion .beat-hero .cta,
.no-motion .scrolly .nav, .no-motion .scrolly .scrolly-stack,
.no-motion .beat-hero .strap, .no-motion .beat-hero .link-plain, .no-motion .beat-phone--hero > * { animation: none; }
.no-motion .screen-layer { transform: none !important; transition: none; }
.no-motion .beat-lead, .no-motion .beat-side { opacity: 1 !important; transform: none !important; transition: none; }

/* ── What it is (three columns on ink) ── */
.what { background: var(--bankpay-ink); color: var(--white); padding: 140px 0 150px; }
.what .container { max-width: 1480px; }
.what .eyebrow { color: var(--bankpay-yellow); }
.what__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 56px; }
.what__col { border-top: 1px solid rgba(255, 255, 255, 0.18); padding-top: 24px; }
.what__col h3 { font: 500 24px/1.2 var(--font-brand); margin: 18px 0 10px; }
.what__col p { font: 400 16px/1.55 var(--font-brand); margin: 0; max-width: 38ch; }

/* ── In-phone playlet motion ── */
@keyframes msg-pop {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.msg-pop { animation: msg-pop 0.42s cubic-bezier(0.16, 1, 0.3, 1) both; }
.no-motion .msg-pop { animation: none; }

@keyframes tdot-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}
.tdot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gray-500);
  animation: tdot-bounce 1.1s ease-in-out infinite;
}
.tdot:nth-child(2) { animation-delay: 0.15s; }
.tdot:nth-child(3) { animation-delay: 0.3s; }
.no-motion .tdot { animation: none; }

@keyframes screen-reveal {
  from { transform: scale(0.985); }
  to { transform: scale(1); }
}
.reveal-screen { opacity: 1; }
.screen-layer.live .reveal-screen { animation: none; }
.no-motion .reveal-screen { opacity: 1 !important; transform: none !important; animation: none; }
@media (prefers-reduced-motion: reduce) {
  .msg-pop, .tdot { animation: none; }
  .reveal-screen { opacity: 1; }
}

/* ── Footer CTA ── */
.footer-cta {
  background: var(--warm-50);
  color: var(--bankpay-ink);
  text-align: center;
  padding: 150px 0 130px;
}
.footer-cta .body { color: var(--text-secondary); margin: 24px auto 0; max-width: 480px; }
.footer-cta .cta { margin-top: 48px; }

/* ── Reveal motion (footer) ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.no-motion .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ── Responsive ── */
@media (max-width: 920px) {
  html { scroll-padding-top: 60px; }
  .container { padding: 0 24px; }

  /* A slim fixed header (NAV_H in splash-scrolly.jsx). It wears the hero's
     ground until the hero's own button has passed under it (.cta-away), then
     turns white and offers the prototype itself. */
  .nav { position: fixed; background: var(--warm-50); transition: background-color 0.25s ease, box-shadow 0.25s ease; }
  .nav--on-brand { background: var(--bankpay-pink); }
  .nav .container { height: 60px; transition: color 0.25s ease; }
  .nav .brand-lockup { gap: 8px; min-height: 44px; }
  .nav .wordmark { font-size: 22px; line-height: 24px; transition: color 0.25s ease; }
  .nav .nav-link {
    display: inline-flex;
    align-items: center;
    height: 44px;
    padding: 0 16px;
    border: 0;
    font-size: 15px;
    background: var(--bankpay-pink-deep);
    color: var(--white);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }
  .scrolly.cta-away .nav { background: var(--white); box-shadow: 0 1px 0 var(--gray-200); }
  .scrolly.cta-away .nav .container { color: var(--bankpay-ink); }
  .scrolly.cta-away .nav .wordmark { color: var(--text-primary); }
  .scrolly.cta-away .nav .nav-link { opacity: 1; visibility: visible; }

  /* The story stacks: each beat is a solid block of its own colour, holding
     its phone and its words, and nothing is pinned over anything. */
  .scrolly-bg { display: none; }
  .scrolly-beats { margin-top: 0; }
  .beat { min-height: 0; display: block; padding: 72px 0; }
  .beat.t-brand { background: var(--bankpay-pink); }
  .beat.t-paper { background: var(--warm-50); }
  .beat.t-ink { background: var(--bankpay-ink); }
  .beat.t-white { background: var(--white); }
  .beat-cols { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .beat-lead, .beat-side {
    grid-column: 1;
    justify-self: stretch;
    max-width: 100%;
  }
  .beat-phone { justify-self: center; margin-bottom: 40px; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.14)); }
  .beat-title { font-size: clamp(30px, 7.5vw, 40px); }
  .beat .body, .beat-bullets { font-size: 17px; line-height: 24px; }
  .beat-bullets { gap: 8px; }

  /* Hero: words first, then the chat phone, cropped by the hero's bottom edge. */
  .beat-hero { padding: 92px 0 0; overflow: hidden; }
  /* Cropped just under the last message; the hairline marks the cut against
     the paper beat below, which is nearly the chat's own grey. */
  .beat-phone--hero { height: 300px; margin: 32px 0 0; overflow: hidden; border-bottom: 1px solid var(--gray-200); }
  .hero-eyebrow { text-wrap: balance; }
  .beat-hero .h1 { font-size: clamp(40px, 11vw, 48px); }
  .h1-break { display: block; flex-basis: 100%; height: 0; }
  .beat-hero .lede { font-size: 18px; line-height: 26px; }
  .beat-hero .links-row { flex-direction: column; align-items: flex-start; gap: 0; margin-top: 32px; }
  .beat-hero .links-row .cta { width: 100%; max-width: 400px; box-sizing: border-box; margin-top: 0; }
  .beat-hero .link-plain { display: inline-flex; align-items: center; min-height: 44px; margin-top: 4px; }

  .what__grid { grid-template-columns: 1fr; }
}
/* Tablets: the phones hang from the same left edge as the words, and the
   headline has room to lead the section titles. */
@media (min-width: 600px) and (max-width: 920px) {
  .beat-phone { justify-self: start; }
  .beat-hero .h1 { font-size: clamp(40px, 8vw, 64px); }
}
@media (max-width: 359px) {
  .container { padding: 0 16px; }
  .nav .wordmark { font-size: 20px; }
  .nav .nav-link { padding: 0 10px; letter-spacing: 0; }
}

/* ═══ Extended marketing sections ═══ */

/* Who it is for */
.audiences { padding: 100px 0; }
.audiences__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.audiences__card {
  border-radius: 20px; padding: 26px; min-height: 230px; text-decoration: none;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
  transition: transform 160ms ease;
}
.audiences__card:hover { transform: translateY(-4px); }
.audiences__card h3 { font: 500 22px/1.15 var(--font-brand); margin: 0 0 8px; }
.audiences__card p { font: 400 15px/1.45 var(--font-brand); margin: 0; opacity: 0.85; }
.audiences__more { font: 500 14px/1 var(--font-brand); opacity: 0.9; }

/* The road so far */
.road { padding: 100px 0; }
.road__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.road-card { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); padding-bottom: 20px; }
.road-card__art { height: 110px; display: flex; align-items: center; justify-content: center; }
.road-card time { display: block; font: 400 13px/1 var(--font-brand); color: var(--gray-500, #8e8e93); padding: 18px 20px 8px; }
.road-card h3 { font: 500 18px/1.3 var(--font-brand); margin: 0; padding: 0 20px 14px; max-width: 28ch; }
.road-card a { font: 500 14px/1 var(--font-brand); color: var(--bankpay-ink); text-decoration: none; padding: 0 20px; }

/* Have your say */
.say { padding: 100px 0; background: var(--warm-50); }
.say__inner { max-width: 880px; }
.say .link-plain { color: var(--bankpay-ink); }

/* FAQ */
.faq { padding: 100px 0; }
.faq__inner { max-width: 880px; }
.faq__list { margin-top: 28px; }
.faq__item { border-top: 1px solid var(--gray-200); }
.faq__item:last-child { border-bottom: 1px solid var(--gray-200); }
.faq__q {
  width: 100%; background: none; border: none; cursor: pointer; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 26px 4px; font: 500 clamp(19px, 2.2vw, 26px)/1.25 var(--font-brand); color: var(--text-primary);
}
.faq__sign { font-weight: 400; color: var(--bankpay-ink); font-size: 28px; flex: none; line-height: 1; }
.faq__a { font: 400 16px/1.6 var(--font-brand); color: var(--text-secondary); max-width: 64ch; margin: 0; padding: 0 4px 26px; }

/* Rich footer */
.footer-rich { background: var(--bankpay-ink); color: var(--white); padding: 80px 0 56px; }
.footer-rich__grid { display: grid; grid-template-columns: minmax(0, 280px) 1fr; gap: 64px; align-items: start; }
.footer__qr { text-decoration: none; color: rgba(255,255,255,0.7); display: inline-flex; flex-direction: column; gap: 14px; font: 500 14px/1 var(--font-brand); }
.footer__qrtile { width: 178px; height: 178px; border-radius: 18px; background: rgba(255,255,255,0.05); padding: 8px; }
.footer__qrimg { width: 100%; height: 100%; display: block; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.footer__cols h4 { font: 500 13px/1 var(--font-brand); letter-spacing: 0.4px; color: rgba(255,255,255,0.5); margin: 0 0 18px; text-transform: uppercase; }
.footer__cols a { display: block; font: 500 16px/1 var(--font-brand); color: #fff; text-decoration: none; margin-bottom: 14px; }
.footer__cols a:hover { color: var(--bankpay-yellow); }
.footer__contact { font: 400 14px/1.5 var(--font-brand); color: rgba(255,255,255,0.6); margin: 18px 0 0; }
.footer-rich__legal { display: flex; gap: 16px; align-items: flex-start; margin-top: 56px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.12); }
.footer-rich__legal p { font: 400 12px/1.6 var(--font-brand); color: rgba(255,255,255,0.55); margin: 0; max-width: 70ch; }
.footer-lockup { display: flex; align-items: baseline; gap: 10px; flex: none; color: #fff; }
.footer-lockup svg { align-self: center; }
.footer-lockup__name { font: 700 18px/1 var(--font-brand); }
.footer-lockup__owner { font: 400 13px/1.3 var(--font-brand); opacity: 0.7; }

@media (max-width: 920px) {
  .footer-rich__grid { grid-template-columns: 1fr; gap: 36px; }
  .audiences__grid, .road__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

