/* HERO BLOCK — page-v2/hero/hero.css
   Copied from hero-r2/b-cinematic-v2/index.html (6 Nov, the perf pass), unchanged except:
   - image urls point at ../img/
   - --bc-display reads the page's one display-font variable (--font-display, css/page.css)
   - the page-wide resets (*, html/body, a, :focus-visible) live in css/glossi.css instead
   The previous hero (b-cinematic) is in ../_before-hero-swap/. */
:root {
  --bc-bg: #fdf3f9;        /* page blush */
  --bc-ink: #111111;       /* 17.4:1 on bg */
  --bc-ink-2: #5f5257;     /* 6.84:1 on bg */
  --bc-pink: #d10a8f;      /* CTA fill, white text 5.06:1 */
  --bc-pink-text: #ca0280; /* pink words on bg 5.05:1 */
  --bc-glow: #e0129b;      /* glow only */
  --bc-display: var(--font-display);   /* page-v2: one display-font switch, css/page.css */
  --bc-sans: "Inter", -apple-system, "Segoe UI", sans-serif;
  --bc-ios: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", sans-serif;
  --bc-chrome: linear-gradient(135deg, #fbfbfd 0%, #c9cbd2 22%, #f4f5f8 40%, #9ea1aa 58%, #eceef2 76%, #b9bcc4 100%);
}

/* ---------- hero frame ---------- */
.bc-hero { position: relative; height: 100svh; min-height: 640px; max-height: 1080px; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(60% 55% at 50% 38%, #fbd6ea 0%, rgba(251,214,234,.0) 70%),
    var(--bc-bg); }
.bc-nav { position: absolute; z-index: 20; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 5vw, 72px); }
.bc-nav img { height: 40px; width: auto; display: block; }
.bc-nav nav { display: flex; align-items: center; gap: 32px; font: 500 15px/1 var(--bc-sans); }
.bc-nav nav a:not(.bc-btn) { text-decoration: none; color: var(--bc-ink); }
.bc-btn { display: inline-flex; align-items: center; height: 44px; padding: 0 20px; border-radius: 999px; background: var(--bc-pink); color: #fff;
  font: 600 15px/1 var(--bc-sans); text-decoration: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 10px 24px -8px var(--bc-glow); }

/* the stage: one perspective, everything in it positioned from the origin (set by JS as --ox/--oy) */
.bc-stage { position: absolute; inset: 0; perspective: var(--bc-p, 2000px); perspective-origin: var(--ox) var(--oy); }
.bc-world { position: absolute; left: var(--ox); top: var(--oy); width: 0; height: 0; transform-style: preserve-3d; }
.bc-floor { position: absolute; left: 50%; top: var(--floor-y, 62%); width: 120vw; height: 46vh; transform: translate(-50%, -50%); pointer-events: none;
  background: radial-gradient(closest-side, rgba(247,170,214,.75), rgba(247,170,214,.32) 45%, rgba(253,243,249,0) 100%); }

/* ---------- phone (round 1's gl-phone, em = 1/402 of its width) ---------- */
.bc-phone { --w: 360px; position: absolute; width: var(--w); height: calc(var(--w) * 874 / 402); left: calc(var(--w) / -2); top: calc(var(--w) * -437 / 402);
  font-size: calc(var(--w) / 402); border-radius: 64em; padding: 5em; background: var(--bc-chrome);
  box-shadow: 0 4em 10em rgba(80,20,55,.10), 0 60em 120em -20em rgba(150,10,95,.35); transform-style: flat; will-change: transform; }
.bc-phone__keys i { position: absolute; width: 6em; border-radius: 3em; background: linear-gradient(90deg, #8e919a, #f1f2f5 45%, #a9acb4); z-index: -1; }
.bc-phone__bezel { position: absolute; inset: 5em; border-radius: 59em; background: #0b0b0d; padding: 11em; }
.bc-screen { position: relative; width: 100%; height: 100%; border-radius: 49em; overflow: hidden; background: #e9e1e6; font-family: var(--bc-ios); }
.bc-island { position: absolute; top: 11em; left: 50%; width: 124em; height: 36em; margin-left: -62em; border-radius: 20em; background: #000; z-index: 9; }
.bc-sb { position: absolute; top: 0; left: 0; right: 0; height: 58em; display: flex; align-items: center; justify-content: space-between; padding: 0 30em 0 40em; z-index: 8; }
.bc-sb b { font: 600 17em/1 var(--bc-ios); letter-spacing: -.01em; }
.bc-sb svg { height: 12em; width: auto; margin-left: 6em; }
.bc-sb .bc-ic { display: flex; align-items: center; margin-left: auto; }

/* lock screen: pearl daylight */
.bc-lock { position: absolute; inset: 0; color: #fff; }
.bc-lock__wall { position: absolute; inset: -20em; background: url(../img/bd-1.jpg) 30% 50% / auto 112% no-repeat; filter: blur(3em) saturate(1.05); }
.bc-lock__tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(112,6,68,.72), rgba(122,8,74,.56) 34%, rgba(150,20,90,.12) 54%, rgba(120,10,70,.22)); }
.bc-lock__date, .bc-lock__time { position: absolute; width: 100%; text-align: center; }
.bc-lock__date { top: 74em; } .bc-lock__time { top: 94em; }
.bc-lock__date span { font: 600 20em/1 var(--bc-ios); text-shadow: 0 1px 6px rgba(60,20,40,.25); }
.bc-lock__time span { font: 700 104em/1 var(--bc-ios); letter-spacing: -.02em; text-shadow: 0 2px 16px rgba(60,20,40,.2); }
.bc-note { position: absolute; left: 12em; right: 12em; top: 262em; display: grid; grid-template-columns: 38em 1fr auto; gap: 10em; align-items: start;
  padding: 13em 14em 14em; border-radius: 24em; background: rgba(250,246,249,.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: #111; box-shadow: 0 6em 24em rgba(60,10,40,.16); transform-origin: 50% 50%; }
.bc-note__icon { width: 38em; height: 38em; border-radius: 9em; background: #fff url(../img/logo-demo.png) center/cover; box-shadow: inset 0 0 0 1em #e7d9e1; }
.bc-note__t { font: 600 15em/1.3 var(--bc-ios); }
.bc-note__b { font: 400 15em/1.3 var(--bc-ios); }
.bc-note__time { font: 400 13em/1.3 var(--bc-ios); color: #5f5257; }
.bc-tap { position: absolute; width: 56em; height: 56em; margin: -28em 0 0 -28em; border-radius: 50%; left: 58%; top: 300em;
  background: radial-gradient(circle, rgba(90,20,60,.30) 0 44%, rgba(90,20,60,.12) 46% 64%, rgba(90,20,60,0) 66%);
  box-shadow: 0 0 0 2.5em rgba(255,255,255,.9), 0 4em 12em rgba(90,20,60,.25); opacity: 0; z-index: 7; }
.bc-lock__dock { position: absolute; bottom: 44em; left: 46em; right: 46em; display: flex; justify-content: space-between; }
.bc-lock__dock span { width: 50em; height: 50em; border-radius: 50%; background: rgba(40,20,32,.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.bc-homebar { position: absolute; bottom: 9em; left: 50%; width: 140em; height: 5em; margin-left: -70em; border-radius: 3em; background: #fff; z-index: 8; }
/* wallet: opens out of the notification (clip-path set by JS) */
.bc-wallet { position: absolute; inset: 0; background: #f2f2f7; color: #111; z-index: 6; }
.bc-wallet .bc-homebar { background: #111; }
.bc-wallet__stack { position: absolute; left: 12em; right: 12em; bottom: 28em; height: 64em; }
.bc-wallet__stack i { position: absolute; left: 0; right: 0; height: 60em; border-radius: 12em 12em 0 0; box-shadow: 0 -1em 4em rgba(0,0,0,.12); }

/* ---------- the card (an Apple Wallet store card: header / strip / OFFER), em = 1/320 of its width ---------- */
.bc-c { --cw: 310px; position: absolute; width: var(--cw); height: calc(var(--cw) * 215 / 320); left: calc(var(--cw) / -2); top: calc(var(--cw) * -107.5 / 320);
  font-size: calc(var(--cw) / 320); transform-style: preserve-3d; will-change: transform; }
.bc-f { position: absolute; inset: 0; border-radius: 12em; overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.bc-front { background: var(--bg, #f2b6cf); color: var(--ink, #111);
  box-shadow: 0 2em 6em rgba(80,20,55,.10), 0 26em 50em -14em rgba(120,20,80,.38), inset 0 0 0 .8em rgba(255,255,255,.45); }
.bc-back { transform: rotateY(180deg); background: url(../img/bd-10.jpg) center/cover; display: grid; place-items: center;
  box-shadow: 0 26em 50em -14em rgba(120,20,80,.30), inset 0 0 0 .8em rgba(255,255,255,.7); }
.bc-back img { width: 56%; filter: drop-shadow(0 2em 3em rgba(60,40,60,.35)); }
.bc-head { display: flex; align-items: center; gap: 9em; height: 46em; padding: 0 13em; }
.bc-logo { width: 26em; height: 26em; border-radius: 6em; background: #fff; display: grid; place-items: center; flex: none;
  color: #111; box-shadow: inset 0 0 0 .75em rgba(0,0,0,.08); }
.bc-logo span { font: italic 400 19em/1 var(--bc-display); }
.bc-logo--img { background: #fff url(../img/logo-demo.png) center/cover; }
.bc-name { font: 600 14em/1 var(--bc-sans); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-vis { text-align: right; }
.bc-vis small, .bc-field small { display: block; font: 600 7.5em/1 var(--bc-sans); letter-spacing: .06em; color: var(--lab, #3b2a33); }
.bc-vis b { display: block; font: 600 17em/1.05 var(--bc-sans); }
.bc-strip { position: relative; height: 123em; background: center/cover no-repeat; }
.bc-stamps { position: absolute; inset: 5% 10%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr 1fr; place-items: center; }
.bc-stamps img { position: relative; width: 88%; aspect-ratio: 1; object-fit: contain; }
.bc-stamps img.g { filter: drop-shadow(0 1px 1.5px rgba(120,30,80,.45)) drop-shadow(0 0 6px rgba(150,40,100,.18)); }
.bc-chip { position: absolute; right: 3.5%; font: 700 8.5em/1 var(--bc-sans); color: #fff; padding: .45em .8em; border-radius: 99em;
  background: linear-gradient(180deg, #c83c69, #b32659); box-shadow: inset 0 0 0 .12em rgba(255,255,255,.75), 0 .2em .5em rgba(90,0,30,.3); }
.bc-chip--h { top: 37%; } .bc-chip--f { bottom: 6%; }
.bc-field { padding: 9em 13em 0; }
.bc-field small { margin-bottom: .55em; }
.bc-field b { font: 600 13em/1.2 var(--bc-sans); }
/* light: one sheen per card, its position follows the card's angle (--sh set by JS) */
.bc-sheen { position: absolute; top: 0; left: 0; bottom: 0; width: 260%; pointer-events: none; will-change: transform; transform: translateX(-98.46%);
  background: linear-gradient(105deg, rgba(255,255,255,0) 36%, rgba(255,255,255,.34) 47%, rgba(255,255,255,.5) 50%, rgba(255,255,255,0) 62%); }
/* v2: background-position p% on a 260% image == translateX(-(1.6/2.6)·p%) of a 260%-wide layer, so the sweep sits exactly where it did, without repainting the card */
/* v2: baked faces. Each ring card's front and the shared back are one pre-rendered image (img/face-*.webp, 960 px wide,
   made from this same markup by ?bake=), so a card is one texture instead of ~20 nodes, 8 stamp PNGs and their filters.
   The inset light ring is baked in; the outer shadows stay CSS, unchanged. */
.bc-face { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bc-front--baked { box-shadow: 0 2em 6em rgba(80,20,55,.10), 0 26em 50em -14em rgba(120,20,80,.38); }
.bc-back--baked { background: none; box-shadow: 0 26em 50em -14em rgba(120,20,80,.30); }
.bc-back.bc-back--baked img { width: 100%; filter: none; }
.bc-bake .bc-front { box-shadow: inset 0 0 0 .8em rgba(255,255,255,.45); }
.bc-bake .bc-back { box-shadow: inset 0 0 0 .8em rgba(255,255,255,.7); }
.bc-bake .bc-sheen { display: none; }
/* the barcode half of the hero pass: hangs under the face, rolls up into it on the lift */
.bc-code { position: absolute; left: 0; right: 0; top: calc(100% - 12em); height: 152em; border-radius: 0 0 12em 12em; background: var(--bg); display: grid; place-items: center;
  backface-visibility: hidden; transform: translateZ(-.5px); box-shadow: 0 26em 40em -18em rgba(120,20,80,.30); }
.bc-code img { width: 96em; height: 96em; padding: 7em; background: #fff; border-radius: 6em; margin-top: 8em; }

/* ---------- copy ---------- */
.bc-copy { position: absolute; z-index: 10; left: 0; right: 0; bottom: 0; padding: 120px clamp(20px, 5vw, 72px) var(--bc-pb, 40px);
  background: linear-gradient(180deg, rgba(253,243,249,0) 0, rgba(253,243,249,.92) 96px, var(--bc-bg) 120px); text-align: center; }
.bc-kicker { margin: 0 0 10px; font: 600 15px/1.3 var(--bc-sans); color: var(--bc-ink-2); }
.bc-slot { position: relative; height: var(--slot-h, 92px); }
.bc-line { position: absolute; left: 0; right: 0; top: 0; margin: 0; font: 400 var(--d1, 84px)/1 var(--bc-display); letter-spacing: -.02em; text-wrap: balance; }
.bc-line em { font-style: italic; color: var(--bc-pink-text); }
.bc-cta { display: flex; align-items: center; justify-content: center; gap: 28px; margin-top: 22px; flex-wrap: wrap; }
.bc-store { line-height: 0; border-radius: 12px; }
.bc-store img { height: 54px; width: auto; }
.bc-qr { display: flex; align-items: center; gap: 12px; text-align: left; }
.bc-qr img { width: 72px; height: 72px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 1px 2px rgba(80,20,55,.06), 0 4px 12px rgba(80,20,55,.06); }
.bc-qr p, .bc-price small { margin: 0; font-size: 14px; line-height: 1.35; color: var(--bc-ink-2); }
.bc-price { margin: 0; text-align: left; font: 600 20px/1.2 var(--bc-sans); }
.bc-price small { display: block; font-weight: 400; }
.bc-sep { width: 1px; height: 48px; background: #ecdbe5; }
/* page-v2: the settled CTA. One primary button (white on --bc-pink 5.06:1; hover #b8087d 6.23:1). The whole .bc-cta row
   fades and rises in with the settled ring (hero.js, 8.8–9.4 s); with JS off it is simply there. */
.bc-get { display: inline-flex; align-items: center; gap: 10px; height: 58px; padding: 0 30px 0 26px; border-radius: 999px; background: var(--bc-pink);
  color: #fff; text-decoration: none; font: 600 19px/1 var(--bc-sans); letter-spacing: -.005em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 30px -10px var(--bc-glow); transition: background-color .2s, transform .2s; }
.bc-get svg { width: 19px; height: 23px; fill: currentColor; margin-top: -3px; flex: none; }
.bc-get:hover { background: #b8087d; transform: translateY(-1px); }
.bc-get:focus-visible { outline-offset: 4px; border-radius: 999px; }
.bc-ctl { position: absolute; z-index: 21; right: clamp(20px, 5vw, 72px); bottom: 24px; display: flex; gap: 4px; }
.bc-ctl button { appearance: none; border: 0; background: transparent; color: var(--bc-ink-2); font: 500 14px/1 var(--bc-sans); padding: 10px 10px; border-radius: 999px; cursor: pointer; }
.bc-ctl button:hover { background: rgba(255,255,255,.7); color: var(--bc-ink); }
.bc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* phone-width layout */
@media (max-width: 700px) {
  .bc-nav { padding: 14px 16px; }
  .bc-nav img { height: 32px; }
  .bc-nav nav a:not(.bc-btn) { display: none; }
  .bc-btn { height: 40px; padding: 0 16px; }
  .bc-copy { padding: 80px 16px var(--bc-pb, 22px); background: linear-gradient(180deg, rgba(253,243,249,0) 0, rgba(253,243,249,.92) 64px, var(--bc-bg) 80px); }
  .bc-kicker { font-size: 14px; margin-bottom: 8px; }
  .bc-qr, .bc-sep { display: none; }
  .bc-cta { gap: 18px; margin-top: 18px; }
  .bc-get { height: 52px; padding: 0 24px 0 21px; font-size: 18px; }
  .bc-price { font-size: 18px; }
  .bc-ctl { display: none; }
}
@media (max-width: 700px) and (max-height: 700px) { .bc-kicker { display: none; } }
