/* VLYU website: Home only (layout "B · Wallet", render 042, with render 043's mark-to-wallet intro).
   The app's card stack is the hero: cards sit in a Forest pocket, the right one rises out with its answer. */

.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: center; padding-top: clamp(28px, 5vw, 72px); }
.hero .text { grid-column: 1 / span 7; }
.hero h1 { font-size: clamp(44px, 6.5vw, 88px); line-height: .96; }
.hero h1 .ln { display: block; }
.hero .lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.45; color: var(--ink2); margin-top: 28px; max-width: 30ch; }
.picker { margin-top: clamp(32px, 4vw, 48px); }
.picker .q { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.pilot { font-size: 16px; color: var(--ink2); margin-top: clamp(28px, 3.4vw, 40px); }
.pilot b { color: var(--ink); }
.hero .stage { grid-column: 8 / -1; justify-self: end; }

/* place picker chips (real buttons, aria-pressed); hidden without JS, where the wallet shows its default answer */
.places { display: flex; flex-wrap: wrap; gap: 10px; }
.places button { font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: var(--panel); border: 0; border-radius: 999px; padding: 12px 20px; min-height: 44px; cursor: pointer; transition: transform 150ms var(--arrive), background-color 180ms linear, color 180ms linear; }
.places button[aria-pressed="true"] { background: var(--forest); color: var(--peach); }
@media (hover: hover) { .places button:not([aria-pressed="true"]):hover { background: var(--inset); } }
.places button:active { transform: scale(.97); }
.js .picker.no-js-hide { display: block; }
@media (max-width: 420px) { .places { gap: 8px; } .places button { font-size: 15px; padding: 11px 13px; } }

/* the wallet: 22em wide, cards 20em; positions are transforms so the lift is transform-only */
.wallet { position: relative; width: 22em; height: 30.4em; font-size: clamp(15px, 1.6vw, 21px); }
.wallet .card { position: absolute; left: 1em; top: 0; transform: translateY(var(--y)); transition: transform 560ms var(--spring), translate 240ms var(--arrive); z-index: var(--z); }
.c-voy { --y: 0em; --z: 10; --k: 0; } .c-hor { --y: 13.2em; --z: 2; --k: 1; } .c-cash { --y: 15.4em; --z: 3; --k: 2; } .c-tm { --y: 17.6em; --z: 4; --k: 3; }
[data-active="groceries"] .c-voy, [data-active="travel"] .c-voy, [data-active="gas"] .c-voy { --y: 13.2em; --z: 2; }
[data-active="groceries"] .c-hor, [data-active="travel"] .c-hor { --y: 0em; --z: 10; }
[data-active="gas"] .c-hor { --y: 15.4em; --z: 3; }
[data-active="gas"] .c-cash { --y: 0em; --z: 10; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .wallet .card:hover { translate: 0 -6px; } }
.pocket { position: absolute; left: 0; right: 0; bottom: 0; height: 10.6em; border-radius: 1.3em; background: var(--forest-grad); z-index: 20; color: var(--ivory);
  padding: 1.25em 1.4em; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 1.4em 2.6em -1.6em rgba(0,0,0,.4); }
.pocket::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; border-radius: 1.3em 1.3em 0 0; background: rgba(183,235,205,.26); }
.pocket .ctx { font-size: max(13px, .72em); font-weight: 600; color: var(--bloom); }
.pocket .use { font-size: 1.36em; font-weight: 800; letter-spacing: -.035em; line-height: 1.05; margin-top: .15em; }
.pocket .row { display: flex; align-items: flex-end; justify-content: space-between; gap: 1em; }
.pocket .fig { display: flex; align-items: baseline; gap: .3em; }
.pocket .fig .n { font-size: 3.1em; font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--peach); font-variant-numeric: tabular-nums; }
.pocket .fig .u { font-size: max(14px, .8em); font-weight: 600; white-space: nowrap; }
.pocket .next { font-size: max(13px, .68em); color: var(--ivory); text-align: right; line-height: 1.4; }
.stage > .ex { margin-top: 14px; text-align: right; }

/* entry: the stack cascades in, then the answer settles (when the mark intro does not run) */
.js .wallet .card { animation: stackin 560ms var(--spring) both; animation-delay: calc(var(--k) * 60ms + 120ms); }
.js .wallet .pocket { animation: stackin 560ms var(--arrive) 60ms both; }
@keyframes stackin { from { opacity: 0; translate: 0 56px; } to { opacity: 1; translate: 0 0; } }
.js.rm .wallet .card, .js.rm .wallet .pocket { animation: fadein 300ms linear both; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@supports (animation-timeline: scroll()) {
  .js:not(.rm) .hero .stage { animation: drift linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
  @keyframes drift { to { translate: 0 -48px; } }
}

/* how it works: three real screens fanned like cards in a hand */
.how { padding-top: var(--sec); }
.how .head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px 24px; align-items: end; }
.how h2 { grid-column: 1 / span 6; font-size: clamp(40px, 5.6vw, 84px); line-height: .98; }
.how .head p { grid-column: 8 / -1; font-size: 19px; color: var(--ink2); max-width: 32ch; }
.fan { position: relative; height: calc(var(--pw) * 2.167 * .8 + 40px); padding-top: 40px; margin-top: clamp(16px, 3vw, 40px); overflow: hidden; --pw: clamp(150px, 21vw, 290px); }
.fan .phone { --w: var(--pw); position: absolute; top: 40px; left: 50%; transition: transform 300ms var(--arrive); }
/* --x1/--x3 place the side screens; narrower screens pull them in so all three stay whole */
.fan { --x1: -160%; --x3: 60%; --fy: 7%; }
.fan .p1 { transform: translateX(var(--x1)) translateY(var(--fy)) rotate(-7deg); z-index: 1; }
.fan .p2 { transform: translateX(-50%); z-index: 3; }
.fan .p3 { transform: translateX(var(--x3)) translateY(var(--fy)) rotate(7deg); z-index: 2; }
@media (hover: hover) and (prefers-reduced-motion: no-preference) { .fan .p1:hover { transform: translateX(var(--x1)) translateY(calc(var(--fy) - 3%)) rotate(-7deg); } .fan .p3:hover { transform: translateX(var(--x3)) translateY(calc(var(--fy) - 3%)) rotate(7deg); } .fan .p2:hover { transform: translateX(-50%) translateY(-3%); } }
.js .fan .phone { opacity: 0; transition: opacity 420ms var(--arrive), transform 640ms var(--spring); }
.js .fan.in .phone { opacity: 1; }
.js .fan:not(.in) .p1, .js .fan:not(.in) .p3 { transform: translateX(-50%) translateY(10%); }
.js .fan .p3 { transition-delay: 60ms; } .js .fan .p1 { transition-delay: 120ms; }
.js .fan .phone:hover { transition-delay: 0ms; }   /* the stagger is for the entrance only, never for hover */
.js.rm .fan .phone { transition: opacity 300ms linear; }
.js.rm .fan:not(.in) .p1 { transform: translateX(var(--x1)) translateY(var(--fy)) rotate(-7deg); } .js.rm .fan:not(.in) .p3 { transform: translateX(var(--x3)) translateY(var(--fy)) rotate(7deg); }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px clamp(24px, 3vw, 48px); position: relative; z-index: 6; margin-top: calc(var(--pw) * -.36); background: var(--panel); border-radius: 32px; padding: clamp(24px, 3vw, 40px); }
.steps li { position: relative; }
.steps .k { margin-bottom: 14px; }
.steps h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.03em; line-height: 1.1; }
.steps p { font-size: 17px; color: var(--ink2); margin-top: 6px; }
.how .foot-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 24px; margin-top: 16px; }

/* spending: a panel with the phone rising out of it */
.spend { padding-top: var(--sec); }
.spend .panel { border-radius: 40px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 32px 24px; padding: clamp(32px, 4.4vw, 64px); position: relative; }
.spend .text { grid-column: 1 / span 6; }
.spend h2 { font-size: clamp(38px, 4.8vw, 72px); line-height: .98; }
.spend .text > p { font-size: 19px; color: var(--ink2); margin-top: 16px; max-width: 30ch; }
.net { margin-top: 36px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.net .n { font-size: clamp(56px, 7vw, 100px); font-weight: 800; letter-spacing: -.05em; line-height: .9; color: var(--gtext); font-variant-numeric: tabular-nums; }
.net .u { font-size: 20px; font-weight: 600; }
.cats { display: grid; gap: 18px; margin-top: 36px; max-width: 520px; }
.cats li { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: baseline; }
.cats .l { font-size: 18px; font-weight: 600; }
.cats .v { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cats .bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--track); overflow: hidden; }
.cats .bar i { display: block; height: 100%; border-radius: 8px; }
.cats li:nth-child(1) { --i: 0; } .cats li:nth-child(2) { --i: 1; } .cats li:nth-child(3) { --i: 2; } .cats li:nth-child(4) { --i: 3; }
.cats li:nth-child(1) .bar i { width: 100%; background: var(--ink); }
.cats li:nth-child(2) .bar i { width: 74%; background: var(--dine); }
.cats li:nth-child(3) .bar i { width: 53%; background: var(--groc); }
.cats li:nth-child(4) .bar i { width: 49%; background: var(--trav); }
.js [data-bars] .bar i { transform: scaleX(0); transform-origin: left; transition: transform 700ms var(--glide); transition-delay: calc(var(--i, 0) * 70ms + 120ms); }
.js [data-bars].in .bar i { transform: none; }
.js.rm [data-bars] .bar i { transform: none; }
.spend .shot { grid-column: 8 / -1; position: relative; }
.spend .crop { position: absolute; left: 50%; top: calc(clamp(32px, 4.4vw, 64px) * -1 - 96px); bottom: calc(clamp(32px, 4.4vw, 64px) * -1); transform: translateX(-50%); overflow: hidden; padding-inline: 40px; }
.spend .phone { --w: clamp(240px, 32vw, 420px); }
.spend .text .ex { margin-top: 14px; }

/* security: heading, the three-step bank flow, and one grouped list */
.safe { padding-top: var(--sec); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px 24px; align-items: start; }
.safe .sh { grid-column: 1 / span 5; }
.safe h2 { font-size: clamp(38px, 4.8vw, 72px); line-height: .98; }
.safe .flow { margin-top: 32px; }
.safe .sh .go { margin-top: 22px; }
.safe .rows { grid-column: 6 / -1; }
.flow { display: grid; gap: 12px; }
.flow li { display: flex; align-items: center; gap: 14px; font-size: 18px; font-weight: 600; }
.flow .k { width: 32px; height: 32px; font-size: 15px; }

/* ---------- 043 · mark to wallet ----------
   The overlay (morph.js) is one fixed SVG that draws the mark and its shapes while they travel; the real wallet
   takes over when they land. Without JS or under reduced motion none of this applies. */
.morph { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 31; overflow: visible; }
.morph.off { display: none; }
.mk .wallet .card, .mk .wallet .pocket { animation: none; }
.morphing .hero .stage { position: relative; z-index: 32; }
/* start states, applied by motion-head.js before first paint; load.js animates out of them */
.intro .hero h1 .ln, .intro .hero .lede, .intro .hero .picker, .intro .hero .pilot, .intro .hero .wallet, .intro .hero .stage > .ex { opacity: 0; }

@media (max-width: 860px) {
  .hero, .how .head, .spend .panel, .safe { grid-template-columns: minmax(0, 1fr); }
  .hero .text, .hero .stage, .how h2, .how .head p, .spend .text, .spend .shot, .safe .sh, .safe .rows { grid-column: 1 / -1; }
  .hero .stage { justify-self: center; }
  .hero { gap: 0; }
  .hero .text { display: contents; }
  .hero h1 { order: 1; } .hero .lede { order: 2; } .hero .stage { order: 3; margin-top: 36px; } .hero .picker { order: 4; margin-top: 28px; } .hero .pilot { order: 5; }
  .wallet { font-size: min(calc((100vw - 40px) / 22), 22px); max-width: 100%; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .fan { --pw: 30vw; --x1: -118%; --x3: 18%; --fy: 8%; }
  .spend .shot { height: 360px; }
  .spend .crop { top: 0; }
  .spend .phone { --w: 230px; }
}
/* narrow desktop: the wallet is small, so the answer's figure and its runner-up stack, as on a phone */
@media (min-width: 861px) and (max-width: 1100px) {
  .pocket .row { flex-direction: column; align-items: flex-start; gap: .5em; }
  .pocket .fig .n { font-size: 2.6em; }
  .pocket .next { text-align: left; } .pocket .next br { display: none; }
}
@media (max-width: 359px) { .hero h1 { font-size: 37px; } }
@media (max-width: 560px) {
  .fan { --pw: 44vw; margin-inline: calc(var(--padl) * -1) calc(var(--padr) * -1); }   /* the side screens bleed off the screen edge, not off the margin */
  .spend .panel { border-radius: 30px; }
  .pocket .row { flex-direction: column; align-items: flex-start; gap: .5em; }
  .pocket .fig .n { font-size: 2.6em; }
  .pocket .next { text-align: left; } .pocket .next br { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wallet .card { transition: none; }
  .fan .phone { transition: opacity 300ms linear; }
  .places button:active { transform: none; }
}
