/* ===========================================================
   CO₹PU$ — landing page
   Uses the same tokens as the app (style.css), so it follows the
   light / dark theme. The one loud moment is the hero passbook:
   entries print in, the balance ticks, and the total is stamped.
   Everything else is quiet on purpose.
=========================================================== */

body.lp{ background: var(--bg); overflow-x: hidden; }
html:has(body.lp){ overflow-x: hidden; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){ html:has(body.lp){ scroll-behavior: auto; } }

/* ---------- nav ---------- */
.lp-nav{
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display:flex; align-items:center; justify-content:space-between; gap: 16px;
  padding: calc(14px + var(--safe-top)) 5vw 14px;
  transition: background-color .25s ease, border-color .25s ease, padding .25s ease;
  border-bottom: 1px solid transparent;
}
.lp-nav.scrolled{
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom-color: var(--line);
  padding-top: calc(10px + var(--safe-top)); padding-bottom: 10px;
}
.lp-nav-links{ display:flex; align-items:center; gap: 26px; }
.lp-nav-links a:not(.btn){ text-decoration:none; color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.lp-nav-links a:not(.btn):hover{ color: var(--ink); }
.lp-nav-cta{ min-height: 38px; padding: 8px 16px; font-size: 14px; }
@media (max-width: 760px){ .lp-nav-links a:not(.btn){ display:none; } }

/* ---------- hero ---------- */
.lp-hero{
  position: relative;
  padding: calc(130px + var(--safe-top)) 5vw 90px;
  min-height: min(100vh, 900px);
  display:flex; align-items:center;
  isolation: isolate;
}
/* faint passbook ruling behind the hero, fading out at the edges */
.lp-hero::before{
  content:''; position:absolute; inset: 0; z-index: -1;
  background-image: repeating-linear-gradient(to bottom, transparent 0 39px, var(--line) 39px 40px);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 0%, transparent 75%);
  opacity: .9;
}
.lp-hero-grid{
  display:grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 64px; align-items:center; max-width: 1240px; margin: 0 auto; width: 100%;
}

.lp-title{
  font-family: var(--display);
  font-weight: 760; font-stretch: 88%;
  font-size: clamp(42px, 6.4vw, 84px);
  line-height: 0.98; letter-spacing: -0.035em;
  color: var(--ink);
  margin: 0;
}
.lp-title .line{ display:block; overflow:hidden; padding-bottom: .06em; }
.lp-title .line > span{ display:inline-block; transform: translateY(105%); animation: lineUp .9s var(--ease) forwards; }
.lp-title .line:nth-child(2) > span{ animation-delay: .09s; }
.lp-title .line:nth-child(3) > span{ animation-delay: .18s; }
@keyframes lineUp{ to{ transform: none; } }

.lp-sub{ font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 50ch; margin: 26px 0 0; opacity: 0; animation: fadeIn .7s .45s var(--ease) forwards; }
@keyframes fadeIn{ to{ opacity: 1; } }
.lp-cta-row{ display:flex; align-items:center; gap: 22px; margin-top: 32px; flex-wrap: wrap; opacity: 0; animation: fadeIn .7s .6s var(--ease) forwards; }
.lp-cta{ min-height: 52px; padding: 14px 26px; font-size: 16px; font-weight: 650; }
.lp-link{ color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: underline; text-decoration-color: var(--brand); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.lp-link:hover{ text-decoration-color: var(--ink); }
.lp-trust{ list-style: none; display:flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 34px 0 0; opacity: 0; animation: fadeIn .7s .75s var(--ease) forwards; }
.lp-trust li{ display:flex; align-items:center; gap: 8px; font-size: 14px; color: var(--ink-2); font-weight: 500; }
.lp-trust svg{ width: 16px; height: 16px; color: var(--pos); }

/* ---------- the passbook ---------- */
.pb-wrap{ position: relative; display:flex; flex-direction: column; align-items: center; }
.pb{
  position: relative; margin: 0; width: 100%; max-width: 520px;
  background:
    linear-gradient(to right, transparent 0 46px, color-mix(in srgb, var(--brand) 55%, transparent) 46px 47.5px, transparent 47.5px),
    repeating-linear-gradient(to bottom, transparent 0 41px, var(--line) 41px 42px),
    var(--surface);
  background-position: 0 0, 0 92px, 0 0;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  padding: 20px 22px 26px;
  box-shadow: 0 1px 0 var(--line), 0 30px 60px -30px rgba(34,26,46,0.35);
  transform: rotate(-1.2deg);
  opacity: 0; animation: pbIn .8s .25s var(--ease) forwards;
}
@keyframes pbIn{ from{ opacity:0; transform: rotate(-1.2deg) translateY(18px); } to{ opacity:1; transform: rotate(-1.2deg); } }
.pb.thud{ animation: thud .35s ease; opacity: 1; }
@keyframes thud{ 0%{ transform: rotate(-1.2deg); } 30%{ transform: rotate(-1.2deg) translateY(4px) scale(.995); } 100%{ transform: rotate(-1.2deg); } }

.pb-head{ display:flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 0 12px 40px; border-bottom: 2px solid var(--ink); }
.pb-title{ font-family: var(--display); font-weight: 760; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.pb-acct{ font-size: 12.5px; color: var(--ink-3); font-weight: 500; }

.pb-row{
  display:grid; grid-template-columns: 54px minmax(0,1fr) 92px 112px; gap: 10px; align-items:center;
  height: 42px; padding-left: 40px; padding-right: 2px;
  font-size: 13.5px; color: var(--ink); font-variant-numeric: tabular-nums;
}
.pb-row > span:nth-child(2){ overflow:hidden; text-overflow: ellipsis; white-space: nowrap; }
.pb-row .r{ text-align: right; }
.pb-row .pos{ color: var(--pos); font-weight: 600; }
.pb-row .neg{ color: var(--neg); font-weight: 600; }
.pb-row .bal{ font-weight: 650; }
.pb-cols{ height: 34px; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.pb-rows .pb-row{ clip-path: inset(0 100% 0 0); transition: clip-path .45s cubic-bezier(.3,.7,.2,1); }
.pb-rows .pb-row.shown{ clip-path: inset(0 0 0 0); }
.pb-rows{ min-height: calc(42px * 7); }
.pb-replay[hidden]{ display: none; }

.pb-foot{ display:flex; align-items:center; justify-content: space-between; gap: 12px; min-height: 118px; padding: 6px 0 0 40px; }
.pb-cf{ font-size: 12.5px; color: var(--ink-3); font-weight: 600; align-self: flex-start; padding-top: 10px; }
.pb-stamp{
  color: var(--brand-ink);
  pointer-events: none; margin-right: -4px;
  opacity: 0; transform: rotate(-9deg) scale(2.1);
}
.pb-stamp.down{ animation: stampDown .5s cubic-bezier(.2,.9,.25,1.25) forwards; }
@keyframes stampDown{
  0%{ opacity: 0; transform: rotate(-14deg) scale(2.1); }
  60%{ opacity: .95; transform: rotate(-8deg) scale(.96); }
  100%{ opacity: .92; transform: rotate(-9deg) scale(1); }
}
.pb-stamp svg{ display:block; width: 230px; height: auto; }
.pb-replay{ margin-top: 16px; background: transparent; color: var(--ink-2); border: 1px solid var(--line-strong); min-height: 34px; padding: 6px 14px; font-size: 13px; }
.pb-replay:hover{ background: var(--surface); color: var(--ink); border-color: var(--ink-3); }

/* ---------- strip ---------- */
.lp-strip{ border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--surface); }
.lp-strip-track{ display:flex; width: max-content; animation: strip 40s linear infinite; }
.lp-strip-track span{ font-family: var(--display); font-weight: 600; font-size: 20px; color: var(--ink-2); padding: 0 26px; white-space: nowrap; display:flex; align-items:center; }
.lp-strip-track span::after{ content:''; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); margin-left: 52px; transform: rotate(45deg); }
@keyframes strip{ to{ transform: translateX(-50%); } }

/* ---------- sections ---------- */
.lp-section{ max-width: 1240px; margin: 0 auto; padding: 110px 5vw 0; }
.lp-h2{ font-family: var(--display); font-weight: 740; font-stretch: 92%; font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.03em; color: var(--ink); margin: 0; max-width: 18ch; }
.lp-center{ text-align: center; margin-left: auto; margin-right: auto; }
.lp-lede{ font-size: 17px; line-height: 1.65; color: var(--ink-2); max-width: 52ch; margin: 18px 0 22px; }

/* covers: a ruled ledger list instead of a grid of identical cards */
.lp-covers{ display:grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.lp-side{ position: sticky; top: 110px; }
.lp-ledger{ border-top: 2px solid var(--ink); }
.lp-entry{ display:grid; grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr); gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line-strong); }
.lp-entry .k{ font-family: var(--display); font-weight: 680; font-size: 18px; letter-spacing: -0.01em; color: var(--ink); }
.lp-entry .v{ color: var(--ink-2); font-size: 15px; line-height: 1.6; }

/* tools: four plain groups */
.lp-groups{ display:grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-top: 48px; border-top: 1px solid var(--line-strong); }
.lp-group{ padding: 26px 24px 8px 0; }
.lp-group + .lp-group{ padding-left: 24px; border-left: 1px solid var(--line); }
.lp-group h3{ font-size: 19px; margin-bottom: 14px; }
.lp-group ul{ list-style: none; padding: 0; margin: 0; }
.lp-group li{ position: relative; padding: 0 0 12px 18px; color: var(--ink-2); font-size: 15px; line-height: 1.5; }
.lp-group li::before{ content:''; position:absolute; left: 0; top: .55em; width: 7px; height: 7px; border-radius: 2px; background: var(--brand); transform: rotate(45deg); }

/* privacy */
.lp-privacy-card{ background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: clamp(28px, 5vw, 56px); }
.lp-privacy-grid{ display:grid; grid-template-columns: minmax(0,1.1fr) minmax(0,0.9fr); gap: 40px; margin-top: 10px; align-items: start; }
.lp-checks{ list-style: none; padding: 0; margin: 18px 0 0; }
.lp-checks li{ display:flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; color: var(--ink); }
.lp-checks li:last-child{ border-bottom: none; }
.lp-checks li::before{ content:''; flex-shrink:0; width: 20px; height: 20px; border-radius: 6px; margin-top: 1px;
  background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23221A2E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat; }

/* steps: a real sequence, so numbers are earned */
.lp-steps{ list-style: none; padding: 0; margin: 48px 0 0; display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.lp-steps li{ padding-top: 22px; border-top: 2px solid var(--ink); }
.lp-steps .n{ display:inline-grid; place-items:center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--on-brand); font-family: var(--display); font-weight: 760; font-size: 17px; margin-bottom: 14px; }
.lp-steps h3{ font-size: 20px; margin-bottom: 8px; }
.lp-steps p{ color: var(--ink-2); font-size: 15px; line-height: 1.6; margin: 0; }

/* final */
.lp-final{ max-width: 1240px; margin: 110px auto 0; padding: 0 5vw; text-align: center; }
.lp-final h2{ font-family: var(--display); font-weight: 780; font-stretch: 88%; font-size: clamp(40px, 7vw, 96px); letter-spacing: -0.04em; line-height: 1; }
.lp-final p{ color: var(--ink-2); font-size: 17px; margin: 16px 0 28px; }

.lp-footer{ max-width: 1240px; margin: 110px auto 0; padding: 28px 5vw calc(36px + var(--safe-bottom)); border-top: 1px solid var(--line); display:flex; align-items:center; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.lp-footer p{ color: var(--ink-3); font-size: 13.5px; margin: 0; }
.lp-footer .logo-mark{ width: 28px; height: 28px; }
.lp-footer .logo-word{ font-size: 18px; }
.lp-footer-links{ display:flex; gap: 20px; flex-wrap: wrap; }
.lp-footer-links a{ color: var(--ink-2); font-size: 14px; text-decoration: none; }
.lp-footer-links a:hover{ color: var(--ink); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 980px){
  .lp-hero-grid{ grid-template-columns: minmax(0,1fr); gap: 56px; }
  .lp-hero{ min-height: auto; padding-top: calc(110px + var(--safe-top)); }
  .pb{ max-width: 540px; }
  .lp-covers{ grid-template-columns: minmax(0,1fr); gap: 32px; }
  .lp-side{ position: static; }
  .lp-groups{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lp-group:nth-child(3){ padding-left: 0; border-left: none; }
  .lp-privacy-grid{ grid-template-columns: minmax(0,1fr); gap: 8px; }
}
@media (max-width: 640px){
  .lp-hero{ padding: calc(96px + var(--safe-top)) 18px 64px; }
  .lp-sub{ font-size: 16.5px; }
  .pb{ padding: 16px 12px 22px; border-radius: 16px; transform: none; animation-name: pbInFlat;
    background:
      linear-gradient(to right, transparent 0 30px, color-mix(in srgb, var(--brand) 55%, transparent) 30px 31.5px, transparent 31.5px),
      repeating-linear-gradient(to bottom, transparent 0 41px, var(--line) 41px 42px),
      var(--surface);
    background-position: 0 0, 0 84px, 0 0; }
  .pb.thud{ animation: none; }
  .pb-head{ padding-left: 26px; }
  .pb-row{ grid-template-columns: 44px minmax(0,1fr) 72px 90px; gap: 6px; font-size: 12px; padding-left: 26px; }
  .pb-foot{ padding-left: 26px; min-height: 100px; }
  .pb-stamp svg{ width: 178px; }
  .lp-section{ padding: 80px 18px 0; }
  .lp-entry{ grid-template-columns: minmax(0,1fr); gap: 6px; }
  .lp-groups{ grid-template-columns: minmax(0,1fr); }
  .lp-group, .lp-group + .lp-group{ padding: 22px 0 6px; border-left: none; border-top: 1px solid var(--line); }
  .lp-group:first-child{ border-top: none; }
  .lp-steps{ grid-template-columns: minmax(0,1fr); }
  .lp-final{ padding: 0 18px; }
  .lp-footer{ padding-left: 18px; padding-right: 18px; }
}
@keyframes pbInFlat{ from{ opacity:0; transform: translateY(18px); } to{ opacity:1; transform: none; } }

@media (prefers-reduced-motion: reduce){
  .lp-title .line > span, .lp-sub, .lp-cta-row, .lp-trust, .pb{ animation: none !important; opacity: 1 !important; transform: none !important; }
  .lp-strip-track{ animation: none; }
  .pb-rows .pb-row{ transition: none; }
}

/* ---------- import showcase ---------- */
.lp-import{ display:grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 56px; align-items:center; }
.lp-import .lp-lede{ margin: 18px 0 20px; }
.lp-import .lp-checks{ margin-bottom: 26px; }
.lp-import-demo{ position:relative; padding: 18px; border-radius: 26px; background: var(--brand-soft); }
.lpi-file{ display:flex; gap:12px; align-items:center; background: var(--surface); border:1px solid var(--line); border-radius: 14px; padding: 12px 14px; width: max-content; max-width:100%; box-shadow: var(--shadow-sm); transform: rotate(-2deg); margin: -34px 0 14px 8px; }
.lpi-ext{ display:grid; place-items:center; width:38px; height:46px; border-radius: 6px; background: var(--neg); color: var(--bg); font-size: 11px; font-weight: 800; letter-spacing:.04em; }
.lpi-file b{ display:block; font-size:14px; color: var(--ink); }
.lpi-file small{ color: var(--ink-3); font-size:12px; }
.lpi-card{ background: var(--surface); border:1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -36px rgba(34,26,46,.4); }
.lpi-head{ display:flex; justify-content:space-between; gap:10px; align-items:center; margin-bottom: 14px; }
.lpi-head b{ font-family: var(--display); font-size: 17px; color: var(--ink); }
.lpi-head span{ font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 20px; background: var(--pos-soft); color: var(--pos); white-space:nowrap; }
.lpi-grid{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; }
.lpi-grid div{ border:1px solid color-mix(in srgb, var(--pos) 40%, var(--line)); border-radius: 10px; padding: 8px 10px; }
.lpi-grid small{ display:block; font-size: 11.5px; color: var(--ink-3); }
.lpi-grid b{ font-variant-numeric: tabular-nums; color: var(--ink); font-size: 15px; }
.lpi-targets{ list-style:none; margin: 14px 0 0; padding: 0; display:grid; gap: 6px; }
.lpi-targets li{ position:relative; padding: 9px 10px 9px 34px; border:1px solid var(--line); border-radius: 10px; font-size: 13.5px; color: var(--ink-2); }
.lpi-targets li::before{ content:''; position:absolute; left: 10px; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 4px; background: var(--brand-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat; }
.lpi-targets b{ color: var(--ink); font-variant-numeric: tabular-nums; }

/* ---------- FAQ ---------- */
.lp-faq{ max-width: 820px; margin: 40px auto 0; }
.lp-faq .faq-item summary{ font-size: 17px; padding: 20px 2px; }
.lp-more{ margin-top: 22px; }
.lp-more a{ color: var(--accent); font-weight: 700; text-decoration: none; }
.lp-more a:hover{ text-decoration: underline; }

/* ---------- footer columns ---------- */
.lp-footer-cols{ display:grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; width: 100%; padding-top: 12px; }
.lp-footer-cols h3{ font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin: 0 0 10px; font-family: var(--sans); font-weight: 700; }
.lp-footer-cols a{ display:block; color: var(--ink-2); font-size: 14px; text-decoration:none; padding: 4px 0; }
.lp-footer-cols a:hover{ color: var(--accent); }
@media (max-width: 980px){
  .lp-import{ grid-template-columns: 1fr; gap: 50px; }
  .lp-footer-cols{ grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px){
  .lpi-grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .lp-faq .faq-item summary{ font-size: 16px; }
}

/* theme toggle in the landing nav */
.lp-theme-btn{ width: 40px; min-height: 40px; padding: 0; border-radius: 12px; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); box-shadow: none; display:inline-grid; place-items:center; }
.lp-theme-btn:hover{ background: var(--surface-3); border-color: var(--line-strong); transform: none; box-shadow: none; }
.lp-theme-btn svg{ width: 18px; height: 18px; animation: iconTurn .55s var(--spring); }

/* ---------- hero: rotating currency word ---------- */
.lp-money{ display:inline-grid; vertical-align: bottom; overflow: hidden; overflow: clip; height: 1.08em; line-height: 1.08; transition: width .5s var(--ease); color: var(--brand-ink); }
.lp-money-word{ grid-area: 1 / 1; white-space: nowrap; transition: transform .55s var(--ease), opacity .4s ease; }
.lp-money-word.in{ transform: translateY(115%); opacity: 0; }
.lp-money-word.out{ transform: translateY(-115%); opacity: 0; }

/* ---------- hero: countries ---------- */
.lp-countries-wrap{ margin-top: 30px; opacity: 0; animation: fadeIn .7s .7s var(--ease) forwards; }
.lp-countries-label{ display:flex; align-items:center; gap: 10px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin: 0 0 12px; }
.lp-pulse{ width: 8px; height: 8px; border-radius: 50%; background: var(--pos); box-shadow: 0 0 0 0 color-mix(in srgb, var(--pos) 60%, transparent); animation: lpPulse 2.2s ease-out infinite; flex: none; }
@keyframes lpPulse{ 0%{ box-shadow: 0 0 0 0 color-mix(in srgb, var(--pos) 55%, transparent); } 70%,100%{ box-shadow: 0 0 0 10px transparent; } }
.lp-countries{ display:flex; flex-wrap: wrap; gap: 8px; max-width: 560px; }
.lp-cty{ display:inline-flex; align-items:center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: 13.5px; font-weight: 600; text-decoration: none;
  opacity: 0; transform: translateY(8px) scale(.96); animation: ctyIn .5s var(--spring) forwards; transition: color .2s ease, border-color .2s ease; }
.lp-cty b{ display:inline-grid; place-items:center; min-width: 26px; height: 22px; padding: 0 5px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 10.5px; letter-spacing: .04em; font-family: var(--sans); }
.lp-cty:hover{ color: var(--ink); border-color: var(--line-strong); }
.lp-cty[aria-pressed="true"]{ color: var(--ink); border-color: transparent; }
.lp-cty[aria-pressed="true"] b{ background: var(--brand-ink); color: #fff; }
.lp-countries.has-slider .lp-cty{ background: transparent; }
.lp-countries .seg-slider{ border-radius: 999px; background: var(--brand-soft); box-shadow: inset 0 0 0 1.5px var(--brand); }
.lp-cty:nth-child(1){ animation-delay: .8s; } .lp-cty:nth-child(2){ animation-delay: .85s; } .lp-cty:nth-child(3){ animation-delay: .9s; } .lp-cty:nth-child(4){ animation-delay: .95s; }
.lp-cty:nth-child(5){ animation-delay: 1s; } .lp-cty:nth-child(6){ animation-delay: 1.05s; } .lp-cty:nth-child(7){ animation-delay: 1.1s; } .lp-cty:nth-child(8){ animation-delay: 1.15s; } .lp-cty:nth-child(9){ animation-delay: 1.2s; }
@keyframes ctyIn{ to{ opacity: 1; transform: none; } }
.lp-sub{ transition: opacity .18s ease, transform .18s ease; }
.lp-sub.swap{ opacity: 0 !important; transform: translateY(4px); }

/* ---------- hero: currency symbols drifting behind the passbook ---------- */
.lp-orbit{ position: absolute; inset: -40px -30px; pointer-events: none; z-index: 0; }
.lp-orbit span{ position: absolute; font-family: var(--display); font-weight: 760; color: var(--brand-ink); opacity: .13; font-size: 30px; animation: drift 9s ease-in-out infinite; transition: opacity .4s ease, transform .4s ease, color .4s ease; }
.lp-orbit span.on{ opacity: .55; color: var(--brand); }
.lp-orbit span:nth-child(1){ left: 2%; top: 8%; font-size: 44px; animation-delay: -1s; }
.lp-orbit span:nth-child(2){ right: 4%; top: 2%; font-size: 40px; animation-delay: -3s; }
.lp-orbit span:nth-child(3){ left: -2%; top: 52%; animation-delay: -5s; }
.lp-orbit span:nth-child(4){ right: -3%; top: 46%; font-size: 26px; animation-delay: -2s; }
.lp-orbit span:nth-child(5){ left: 10%; bottom: 2%; font-size: 24px; animation-delay: -6s; }
.lp-orbit span:nth-child(6){ right: 12%; bottom: 6%; font-size: 26px; animation-delay: -4s; }
.lp-orbit span:nth-child(7){ left: 46%; top: -4%; font-size: 22px; animation-delay: -7s; }
.lp-orbit span:nth-child(8){ left: 40%; bottom: -6%; font-size: 20px; animation-delay: -8s; }
@keyframes drift{ 0%,100%{ transform: translate(0, 0) rotate(-4deg); } 50%{ transform: translate(6px, -14px) rotate(4deg); } }
.pb-wrap .pb, .pb-wrap .pb-replay{ position: relative; z-index: 1; }

@media (max-width: 640px){
  .lp-countries{ flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; max-width: none; }
  .lp-countries::-webkit-scrollbar{ display: none; }
  .lp-cty{ scroll-snap-align: start; flex: none; }
  .lp-orbit{ inset: -20px -8px; }
  .lp-orbit span{ font-size: 22px !important; }
}
@media (prefers-reduced-motion: reduce){
  .lp-cty, .lp-countries-wrap{ animation: none !important; opacity: 1 !important; transform: none !important; }
  .lp-orbit span, .lp-pulse{ animation: none; }
  .lp-money, .lp-money-word{ transition: none; }
}
.lp-countries .seg-slider{ animation: fadeInSlider .5s 1s both; }
@keyframes fadeInSlider{ from{ opacity: 0; transform: scale(.9); } }

.lp-nav-cta{ white-space: nowrap; }
@media (max-width: 420px){ .lp-nav-cta{ font-size: 13px; padding: 8px 12px; min-height: 36px; } .lp-nav-links{ gap: 10px; } }

/* ---------- hero motion: aurora, tilt, glare, shine, parallax ---------- */
.lp-aurora{ position: absolute; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.lp-aurora i{ position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; opacity: .30; will-change: transform;
  background: radial-gradient(circle at center, var(--c) 0%, transparent 62%); animation: aurora 22s ease-in-out infinite alternate; }
.lp-aurora i:nth-child(1){ --c: color-mix(in srgb, var(--brand) 55%, transparent); left: 38%; top: -18%; }
.lp-aurora i:nth-child(2){ --c: color-mix(in srgb, var(--accent) 34%, transparent); left: -14%; top: 30%; animation-duration: 28s; animation-delay: -9s; }
.lp-aurora i:nth-child(3){ --c: color-mix(in srgb, var(--pos) 26%, transparent); right: -16%; bottom: -24%; animation-duration: 25s; animation-delay: -15s; }
@keyframes aurora{
  0%{ transform: translate3d(0,0,0) scale(1); }
  50%{ transform: translate3d(6vw,4vh,0) scale(1.12); }
  100%{ transform: translate3d(-4vw,-3vh,0) scale(.94); }
}
:root[data-theme="dark"] .lp-aurora i{ opacity: .22; }
@media (prefers-color-scheme: dark){ :root:not([data-theme="light"]) .lp-aurora i{ opacity: .22; } }

/* the passbook leans toward the pointer, with a soft light sliding over it */
.pb-tilt{ position: relative; z-index: 1; width: 100%; max-width: 520px; display: flex; justify-content: center;
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .6s cubic-bezier(.22,1,.36,1); transform-style: preserve-3d; }
.pb-tilt.live{ transition-duration: .18s; }
.pb-tilt::after{ content: ''; position: absolute; inset: 0; border-radius: 18px; pointer-events: none; z-index: 2;
  background: radial-gradient(420px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.22), transparent 55%);
  opacity: 0; transition: opacity .5s ease; transform: rotate(-1.2deg); mix-blend-mode: soft-light; }
.pb-tilt.live::after{ opacity: 1; }
/* country switch: the old page slides away before the new one is written */
.pb-rows.leaving{ animation: pbLeave .26s cubic-bezier(.4,0,1,1) forwards; }
.pb-stamp.leaving{ transition: opacity .22s ease; opacity: 0 !important; }
@keyframes pbLeave{ to{ opacity: 0; transform: translateY(-10px); filter: blur(2px); } }
.pb.flip{ animation: pbFlip .62s cubic-bezier(.22,1,.36,1); opacity: 1; }
@keyframes pbFlip{ 0%{ transform: rotate(-1.2deg); } 40%{ transform: rotate(-1.2deg) rotateY(-9deg) scale(.985); } 100%{ transform: rotate(-1.2deg); } }

/* the main button catches the light once after load, and again on hover */
.lp-cta{ position: relative; overflow: hidden; isolation: isolate; transition: transform .25s cubic-bezier(.22,1,.36,1), box-shadow .25s ease; }
.lp-cta::after{ content: ''; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,.45) 48%, transparent 66%);
  transform: translateX(-120%); animation: ctaShine 1.1s 1.6s cubic-bezier(.4,0,.2,1) both; }
.lp-cta:hover{ transform: translateY(-2px); box-shadow: 0 14px 30px -14px color-mix(in srgb, var(--brand) 80%, transparent); }
.lp-cta:hover::after{ animation: ctaShine .9s cubic-bezier(.4,0,.2,1) both; }
.lp-cta:active{ transform: translateY(0) scale(.98); }
@keyframes ctaShine{ from{ transform: translateX(-120%); } to{ transform: translateX(120%); } }

/* currency symbols drift a little against the pointer */
.lp-orbit{ transform: translate3d(var(--px, 0px), var(--py, 0px), 0); transition: transform .9s cubic-bezier(.22,1,.36,1); }

/* as the hero scrolls away the passbook eases up and fades, where supported */
@supports (animation-timeline: view()){
  .pb-wrap{ animation: heroAway linear both; animation-timeline: view(); animation-range: exit 10% exit 100%; }
  @keyframes heroAway{ to{ opacity: .35; transform: translateY(-50px) scale(.97); } }
}

@media (hover: none), (pointer: coarse){ .pb-tilt::after{ display: none; } }
@media (prefers-reduced-motion: reduce){
  .lp-aurora i, .lp-cta::after, .pb-wrap, .pb.flip{ animation: none !important; }
  .pb-tilt, .lp-orbit{ transform: none !important; transition: none; }
  .pb-rows.leaving{ animation: none; }
}
