/* ─── Dolla splash page styles ─────────────────────────────────────
   Cash.app anatomy: full-viewport color-blocked beats, headline left,
   copy right, one phone pinned dead-center. Beo Supreme, flat color. */

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(--dolla-blue);
  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;
  opacity: 0.92;
  text-wrap: pretty;
}
.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-blue { background: var(--white); color: var(--dolla-blue); }
.cta.on-blue:hover { background: rgb(238, 242, 252); }
.cta.brand { background: var(--dolla-blue); color: var(--white); }
.cta.brand:hover { background: var(--dolla-blue-deep); }
.cta.on-ink { background: var(--white); color: var(--dolla-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;
}
.nav .brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.nav .wordmark { font: 700 26px/28px var(--font-brand); }
.nav .nav-link {
  font: 500 16px/24px var(--font-brand);
  letter-spacing: var(--tracking-button);
  color: inherit;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  padding-bottom: 2px;
}
.nav .nav-link:hover { border-bottom-color: currentColor; }

/* ── 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);
}
/* 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%); }
}
.screen-layer {
  position: absolute;
  inset: 0;
  transform: translateY(16px) scale(0.98);
  transition: opacity 0.5s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.screen-layer.live { transform: translateY(0) scale(1); }

/* ── Beats: full-viewport color blocks ── */
.beat {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 110px 0;
  box-sizing: border-box;
}
.beat.t-blue { 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(--dolla-blue); 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-blue .eyebrow, .beat.t-ink .eyebrow { color: var(--dolla-yellow); }
.no-hl .beat .eyebrow { color: inherit; opacity: 0.7; }
.beat .body { color: inherit; opacity: 0.9; max-width: none; }
.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);
}
.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); opacity: 0.75; }

/* ── 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:not(.live) { transform: translateY(16px) scale(0.98); }
  .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); }
}
.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 { 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; }

/* ── Tile grid (cash.app card-row anatomy) ── */
.tiles {
  background: var(--dolla-ink);
  color: var(--white);
  padding: 140px 0 150px;
}
.tiles .container { max-width: 1480px; }
.tiles-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 72px;
}
.tiles-sub { color: inherit; opacity: 0.85; margin-top: 18px; max-width: 520px; }
.tiles-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.tile-cell { margin: 0; }
.tile {
  aspect-ratio: 1 / 0.92;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px;
  box-sizing: border-box;
  overflow: hidden;
}
.t-tile-blue { background: var(--dolla-blue); }
.t-tile-white { background: var(--white); }
.t-tile-yellow { background: var(--dolla-yellow); }
.t-tile-warm { background: var(--warm-50); }
.tile-pill {
  background: var(--white);
  color: var(--dolla-blue);
  font: 500 clamp(34px, 2.6vw, 48px)/1 var(--font-brand);
  letter-spacing: -0.02em;
  padding: 0.42em 0.75em;
  border-radius: 999px;
  white-space: nowrap;
}
.tile-chip {
  width: 338px;
  flex: none;
  transform: rotate(-3deg) scale(0.72);
  filter: drop-shadow(0 10px 24px rgba(34, 30, 30, 0.12));
}
.tile-avatars { display: flex; }
.tile-avatars > * + * { margin-left: -14px; }
.tile-tag {
  background: var(--dolla-blue);
  color: var(--white);
  font: 500 24px/1 var(--font-brand);
  padding: 12px 26px;
  border-radius: 999px;
}
.tile-cell figcaption {
  margin-top: 20px;
  font: 400 17px/25px var(--font-brand);
  opacity: 0.92;
  max-width: 30ch;
  text-wrap: pretty;
}
@media (max-width: 1180px) {
  .tiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-chip { transform: rotate(-3deg) scale(0.9); }
}
@media (max-width: 920px) {
  .tiles { padding: 96px 0; }
  .tiles-head { flex-direction: column; align-items: flex-start; margin-bottom: 48px; }
  .tiles-grid { grid-template-columns: 1fr; }
  .tile { aspect-ratio: 1 / 0.8; }
}

/* ── 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(--dolla-blue);
  color: var(--white);
  text-align: center;
  padding: 150px 0 130px;
}
.footer-cta .body { color: var(--white); opacity: 0.92; 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) {
  .container { padding: 0 24px; }
  .scrolly-phone { top: 88px; }
  .beat-cols { grid-template-columns: 1fr; row-gap: 18px; }
  .beat-lead, .beat-side {
    grid-column: 1;
    justify-self: stretch;
    max-width: 100%;
  }
  .beat { align-items: flex-end; padding: 0 0 7vh; }
  .beat-hero { align-items: flex-start; padding-top: calc(88px + var(--phone-h) + 32px); padding-bottom: 7vh; }
  .beat-hero .h1 { font-size: clamp(38px, 9.5vw, 54px); }
  .beat-title { font-size: clamp(30px, 7.5vw, 40px); }
  .scrolly.at-hero .scrolly-stack { transform: none; }
}

/* ═══ Extended marketing sections (original Dolla) ═══ */

/* Customise beat */
.beat-card { background: var(--dolla-blue); color: var(--white); padding: 110px 0; }
.beat-card__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.beat-card__art { display: flex; justify-content: center; }
.dolla-cardface {
  position: relative; width: 100%; max-width: 380px; aspect-ratio: 1.585 / 1;
  border-radius: 20px; background: rgba(0,0,0,0.18); box-shadow: 0 30px 70px rgba(0,0,0,0.28);
  padding: 24px; display: flex; flex-direction: column; justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.25);
}
.dolla-cardface__top { display: flex; justify-content: space-between; align-items: flex-start; }
.dolla-cardface__chip { width: 38px; height: 28px; border-radius: 6px; background: rgba(255,255,255,0.28); }
.dolla-cardface__tag { font: 500 20px/1 var(--font-brand); color: #fff; }
.doodle { position: absolute; }
.doodle--heart { width: 44px; top: 26%; right: 16%; }
.doodle--star { width: 40px; bottom: 30%; left: 18%; }
.doodle--squiggle { width: 76px; top: 14%; left: 40%; }

/* Explore more */
.explore { padding: 100px 0; }
.explore__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.explore__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;
}
.explore__card:hover { transform: translateY(-4px); }
.explore__card h3 { font: 500 22px/1.15 var(--font-brand); margin: 0 0 8px; }
.explore__card p { font: 400 15px/1.45 var(--font-brand); margin: 0; opacity: 0.85; }
.explore__more { font: 500 14px/1 var(--font-brand); opacity: 0.9; }

/* Updates */
.updates { padding: 100px 0; }
.updates__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.update-card { background: var(--white); border-radius: 18px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); padding-bottom: 20px; }
.update-card__art { height: 150px; display: flex; align-items: center; justify-content: center; }
.update-card time { display: block; font: 400 13px/1 var(--font-brand); color: var(--gray-500, #8e8e93); padding: 18px 20px 8px; }
.update-card h3 { font: 500 18px/1.3 var(--font-brand); margin: 0; padding: 0 20px 14px; }
.update-card a { font: 500 14px/1 var(--font-brand); color: var(--dolla-blue); text-decoration: none; padding: 0 20px; }

/* 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(--dolla-blue); 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(--dolla-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(--dolla-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; }

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

