/* Homepage (28 Oct 2026 redesign): four full-screen sections, each with its own content.
   The receipt cards are the 3D ones from the old scroll story, standing in place and
   still animated. The old morphing version is git tag homepage-scroll-story-v1. */
.home-v2 .h-bar { position: fixed; left: 0; right: 0; top: env(safe-area-inset-top, 0px); }
.home-v2 .st { position: relative; height: 100vh; height: 100svh; min-height: 640px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; }
.home-v2 .st > .h-wrap { position: relative; z-index: 1; width: 100%; }
.home-v2 .st-splat { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.home-v2 .h2 { font-weight: 700; letter-spacing: -0.04em; line-height: 1.02; font-size: clamp(38px, min(4.6vw, 8vh), 92px); margin: 0; text-wrap: balance; text-shadow: 0 1px 0 #fff, 0 16px 36px rgba(26,20,20,.10); }
.home-v2 .sub { margin: 18px 0 0; font-size: clamp(17px, 1.35vw, 23px); line-height: 1.45; max-width: 30em; color: #4a3f41; }
.home-v2 .st-head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.home-v2 .st-head .sub { margin-inline: auto; }

/* 1. Hero: copy on the left (centred), the animated 3D receipt on the right */
.home-v2 .st-hero { padding-top: 70px; }
.home-v2 .st-hero-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: clamp(24px, 3vw, 64px); align-items: center; max-width: 1560px; padding-inline: max(24px, 4vw); }
.home-v2 .st-hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: clamp(16px, 2.6vh, 30px); }
.home-v2 .hero2-title { margin: 0; padding: 0; white-space: normal; overflow: visible; text-wrap: balance; text-align: center; font-weight: 700; font-size: clamp(44px, min(5.2vw, 9vh), 108px); line-height: 1; letter-spacing: -0.045em; text-shadow: 0 1px 0 #fff, 0 18px 40px rgba(26,20,20,.12); }
.home-v2 .hero2-lead { margin: 0; text-align: center; font-size: clamp(17px, min(1.32vw, 2.55vh), 23px); line-height: 1.35; font-weight: 500; letter-spacing: -0.015em; max-width: 31em; color: #3a3032; text-wrap: balance; }
.home-v2 .st-hero-copy .cta-group { align-items: center; }
.home-v2 .st-hero-copy .perks { justify-content: center; }
/* A gentler highlight going round the button */
.home-v2 .cta-wrap::before { opacity: .45; animation-duration: 6s; background: conic-gradient(from var(--a), #ff0742, #ff8fa9 30%, #ffd1dc 50%, #ff8fa9 70%, #ff0742); }
.home-v2 .cta-wrap::after { box-shadow: 0 0 16px 1px rgba(255,7,66,.16), 0 0 34px 6px rgba(255,120,150,.10); animation-duration: 5s; }
/* The receipt's top lines up with the headline; the pill sits just above it, the result line just below */
/* The pill and the result line ride on the 3D card (inside its tilt), so they turn and float with it as one piece */
.home-v2 .st-receipt { position: relative; display: flex; flex-direction: column; align-items: center; padding-block: 64px clamp(80px, 12vh, 110px); }
.home-v2 .st-pill { position: absolute; bottom: calc(100% + 16px); left: 50%; translate: -50% 0; white-space: nowrap; transform: translateZ(24px); }
.home-v2 .st-took { position: absolute; top: calc(100% + clamp(30px, 5vh, 50px)); left: -20%; right: -20%; margin: 0; font-size: clamp(26px, min(2.3vw, 4.2vh), 40px); font-weight: 700; letter-spacing: -0.025em; color: var(--ink); text-align: center; transform: translateZ(24px); }

/* The 3D cards, standing in place (their height is set from the panel by the script) */
.home-v2 .st-card { position: relative; left: auto; top: auto; width: min(580px, 100%); z-index: 2; will-change: auto; }
.home-v2 .st-card .tilt { transition: transform 600ms var(--ease-out, ease-out); }
.home-v2 .st-card-2 { width: min(560px, 100%); justify-self: end; }
.home-v2 .st-card-2 .p1 { opacity: 1; pointer-events: auto; }
.home-v2 .st-card .floor { --fb: -46px; }

/* 2. Creators: copy and card side by side, faces along the bottom */
.home-v2 .st-creators { justify-content: space-evenly; padding-top: 80px; }
.home-v2 .st-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr); gap: clamp(32px, 5vw, 90px); align-items: center; }
.home-v2 .st-creators .h2 { font-weight: 800; font-size: clamp(44px, min(5vw, 8.6vh), 104px); letter-spacing: -0.045em; line-height: .98; }
.home-v2 .st-faces { position: relative; left: auto; right: auto; bottom: auto; opacity: 1; pointer-events: auto; z-index: 1; }

/* 3. Comparison */
.home-v2 .st-compare { padding-top: 70px; }
.home-v2 .st-compare .st-head { margin-bottom: clamp(20px, 3.5vh, 40px); }
.home-v2 .s-wide { width: min(880px, 100%); margin: 0 auto; padding: 14px; background: #fff; border-radius: 24px; box-shadow: 0 2px 4px rgba(26,20,20,.04), 0 30px 60px -20px rgba(26,20,20,.25); }
.home-v2 .s-wide .cmp-row { padding-block: clamp(10px, 1.6vh, 18px); }

/* 4. Codes that actually work: bigger, filling the screen, shops and creators around it */
.home-v2 .st-search-in { display: flex; flex-direction: column; align-items: center; }
.home-v2 .st-search .h2 { font-size: clamp(48px, min(6vw, 10vh), 120px); }
.home-v2 .st-search .sub { font-size: clamp(19px, 1.6vw, 27px); }
.home-v2 .st-search .stats { width: auto; max-width: none; display: flex; justify-content: center; gap: clamp(36px, 7vw, 120px); margin: clamp(24px, 4vh, 44px) 0 clamp(28px, 5vh, 56px); }
.home-v2 .st-search .stat { gap: 6px; }
.home-v2 .st-search .stat strong { font-size: clamp(52px, min(5.4vw, 10vh), 104px); font-weight: 700; letter-spacing: -0.03em; }
.home-v2 .st-search .stat > span { font-size: clamp(15px, 1.2vw, 19px); }
.home-v2 .st-find { width: min(700px, 100%); margin: 0 auto; padding: 10px 10px 10px 26px; box-shadow: 0 2px 4px rgba(26,20,20,.04), 0 24px 50px -16px rgba(26,20,20,.22); }
.home-v2 .st-find input { font-size: 20px; }
.home-v2 .st-search .result { width: min(760px, 100%); margin: 16px auto 0; }
.home-v2 .st-search .find-more { margin-top: 14px; }

/* The button as wide as the paragraph, ticks centred under it */
.st-cta { align-items: stretch; width: min(100%, 29em); gap: 15px; }
.st-cta .cta-wrap, .st-cta .cta { width: 100%; justify-content: center; }
.home-v2 .st-hero-copy .st-cta .perks { justify-content: center; gap: 22px; width: 100%; }
.st-cta .cta { font-size: clamp(18px, 1.38vw, 22px); padding-block: 19px; gap: 11px; }
.st-cta .cta svg { width: 22px; height: 22px; }

/* Codes that actually work: numbers narrower than the headline (but wider than the search), line under the search */
.home-v2 .st-search .stats { gap: clamp(28px, 5vw, 84px); margin: clamp(20px, 3.4vh, 36px) 0 clamp(26px, 4.4vh, 48px); }
.home-v2 .st-search .stat strong { font-size: clamp(40px, min(4vw, 7.4vh), 76px); }
.home-v2 .st-under { margin: 18px auto 0; text-align: center; font-size: clamp(16px, 1.25vw, 20px); color: #4a3f41; }

@media (max-width: 860px) {
  .home-v2 .st { height: auto; min-height: 100svh; padding-block: 100px 60px; }
  .home-v2 .st-hero-in, .home-v2 .st-split { grid-template-columns: 1fr; }
  .home-v2 .st-card-2 { justify-self: center; }
}
@media (min-width: 861px) {
  .home-v2 .st-receipt { left: calc(-1 * clamp(0px, 2.4vw, 48px)); }
}

/* Headline as two whole lines */
.home-v2 .st-hero .hero2-title { font-size: clamp(42px, min(5.2vw, 9.2vh), 106px); line-height: .98; }
.home-v2 .st-line { display: block; }

/* "&" / "and" opening line 2 stays black */
.home-v2 .st-and { color: var(--ink); }

/* Looping animations rest while their section is off screen (home-v2.js). */
.anim-off .track, .anim-off .bg-code, .anim-off .bg-tile, .anim-off .bob, .anim-off .live, .anim-off .flow, .anim-off .spin,
.anim-off .cta-wrap::before, .anim-off .cta-wrap::after { animation-play-state: paused; }
