/* 2. How it works. One long pinned sequence: the phone (spot, track, walk), the screen flooding
   out into the whole frame, the sealed LIT charging and breaking open, the reward and its code.
   how.js sets --fx / --fy (the point the phone, the hexagon and the ticket are centred on) and
   --k / --uk / --tk (their scales), and switches the state classes (.p-sheet, .u-burst, …) on the
   stage as the scroll passes each moment; the moves themselves are transitions between those
   states, so they land in the right place however fast or in whichever direction you scroll.
   The phone's screen is the app's own UI, drawn in its real 390 × 844 points and scaled whole. */
.s-how .stage { background: var(--blue); color: #fff; }

/* ---------- the words ---------- */
.how-copy { position: absolute; z-index: 60; left: var(--gut); top: calc(50% + var(--nav-h) / 2); transform: translateY(-50%); width: min(46vw, 900px); pointer-events: none; }
.how-eb { display: flex; align-items: center; gap: 10px; height: 40px; opacity: 0; transform: translateX(-20px); transition: opacity 0.5s, transform 0.7s var(--glide); }
.h-in .how-eb { opacity: 1; transform: none; }
.how-eb .eyebrow { margin-left: 8px; font-size: clamp(13px, 1.15vw, 22px); color: rgba(255, 255, 255, 0.85); }
.steps-hex { display: flex; gap: 8px; }
.steps-hex .st { position: relative; width: 34px; height: 34px; }
.steps-hex .st svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.steps-hex .st .w, .steps-hex .st .y { transform: scale(0); transition: transform 0.3s cubic-bezier(0.55, 0, 1, 0.45); }
.steps-hex .st.done .w { transform: scale(1); transition: transform 0.3s var(--glide); }
.steps-hex .st.on .y { transform: scale(1); transition: transform 0.6s cubic-bezier(0.34, 1.9, 0.64, 1) 0.3s; }

.how-steps { list-style: none; display: grid; margin-top: clamp(14px, 2.4vw, 34px); }
.step { grid-area: 1 / 1; }
.step .hl { font-size: clamp(52px, 9.1vw, 178px); width: max-content; }
.step .sub { margin-top: clamp(14px, 1.9vw, 34px); font-size: clamp(17px, 2.05vw, 40px); max-width: 18.6em; color: rgba(255, 255, 255, 0.92); }
/* A step waits below its mask, slides up when it is its turn, and leaves upwards. */
html.js .step .ln-i { transform: translateY(110%) rotate(5deg); }
html.js .step .sub { opacity: 0; transform: translateY(26px); }
html.js .step.on .ln-i { transform: none; transition: transform 0.95s var(--glide) 0.3s; }
html.js .step.on .sub { opacity: 1; transform: none; transition: opacity 0.6s 0.46s, transform 0.9s var(--glide) 0.46s; }
html.js .step.after .ln-i { transform: translateY(-130%) rotate(-3deg); transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45); }
html.js .step.after .sub { opacity: 0; transform: translateY(-18px); transition: opacity 0.25s, transform 0.3s ease-in; }
html.js .step.before .ln-i { transition: transform 0.4s cubic-bezier(0.55, 0, 1, 0.45); }
html.js .step.before .sub { transition: opacity 0.25s, transform 0.3s ease-in; }
html:not(.js) .step { grid-area: auto; margin-bottom: 40px; }

/* ---------- the rig ---------- */
.how-rig { position: absolute; left: var(--fx); top: var(--fy); width: 0; height: 0; transform: translateY(calc(var(--rise, 0) * 80vh)) scale(var(--k)); perspective: 2600px; }
.rig-t { position: absolute; width: 0; height: 0; }
/* will-change: the phone tilts a little on every frame, and without the hint Chrome re-rasters the
   whole phone at each new angle; with it, the phone is rastered once and only its layer turns. */
.phone { will-change: transform; position: absolute; left: -209px; top: -436px; width: 418px; height: 872px; border-radius: 68px; background: #0A0F18; box-shadow: 0 0 0 2px #2B3545, 0 0 0 5px #0A0F18, 0 70px 110px -20px rgba(4, 28, 60, 0.55), 0 30px 50px -10px rgba(4, 28, 60, 0.35); }
.phone .side { position: absolute; width: 5px; background: #0A0F18; border-radius: 3px; }
.screen { position: absolute; left: 14px; top: 14px; width: 390px; height: 844px; border-radius: 54px; overflow: hidden; background: #fff; color: var(--ink); isolation: isolate; }
.island { position: absolute; left: 134px; top: 12px; width: 122px; height: 35px; border-radius: 20px; background: #05080d; z-index: 40; }
.status { position: absolute; left: 0; right: 0; top: 0; height: 54px; z-index: 39; display: flex; justify-content: space-between; align-items: center; padding: 6px 30px 0 40px; font-weight: 700; font-size: 16.5px; color: var(--ink); }
.status .r { display: flex; gap: 6px; align-items: center; }

.mapwrap { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.mapcam { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.mapcam > svg { position: absolute; left: 0; top: 0; }
.mpin { position: absolute; width: 0; height: 0; transform: scale(var(--inv, 1)); }
.mpin-i { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; transform-origin: 32px 32px; transform: translateY(-26px) scale(0); transition: transform 0.25s ease-in, opacity 0.5s; }
.p-pins .mpin-i { transform: none; transition: transform 0.6s cubic-bezier(0.34, 1.7, 0.64, 1) var(--d, 0s), opacity 0.5s; }
.p-track .mpin.other .mpin-i { opacity: 0.45; transition-delay: 0s, 0.6s; }
.p-sheet:not(.p-track) .mpin.target .mpin-i { transform: scale(1.22); transition: transform 0.5s cubic-bezier(0.34, 1.9, 0.64, 1) 0.36s; }
.mpin .pin-track { transition: opacity 0.3s; }
.p-track .mpin.target .pin-track { opacity: 1; transition-delay: 0.85s; }
.mpin .pin-cat, .mpin .pin-q { transition: opacity 0.01s 0.16s; }
.p-300 .mpin.target .pin-cat { opacity: 1; }
.p-300 .mpin.target .pin-q { opacity: 0; }
.p-300 .mpin.target .mpin-i { animation: how-flip 0.78s both; }
@keyframes how-flip { 0% { transform: scaleX(1); } 20% { transform: scaleX(0); animation-timing-function: cubic-bezier(0.2, 2.2, 0.4, 1); } 100% { transform: scaleX(1); } }
.mpin-ring { position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--blue); opacity: 0; }
.p-300:not(.p-here) .mpin-ring { animation: how-ring 0.9s 0.16s ease-out both; }
.p-here .mpin-ring { animation: how-ring2 1.1s ease-out 3 both; }
@keyframes how-ring { 0% { opacity: 0.9; transform: scale(0.6); } 100% { opacity: 0; transform: scale(2.6); } }
@keyframes how-ring2 { 0% { opacity: 0.9; transform: scale(0.7); } 100% { opacity: 0; transform: scale(2.4); } }
.me { position: absolute; width: 0; height: 0; transform: scale(var(--inv, 1)); }
.me .halo { position: absolute; left: -34px; top: -34px; width: 68px; height: 68px; border-radius: 50%; background: rgba(45, 156, 235, 0.16); animation: how-halo 1.8s ease-out infinite; }
@keyframes how-halo { 0% { transform: scale(0.6); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }
.me .cone { position: absolute; left: -40px; top: -40px; width: 80px; height: 80px; }
.me .dot { position: absolute; left: -11px; top: -11px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); border: 3.5px solid #fff; box-shadow: 0 2px 6px rgba(15, 29, 46, 0.3); }
.s-how:not(.is-live) .me .halo { animation-play-state: paused; }

.chips { position: absolute; top: 62px; left: 16px; right: 16px; display: flex; justify-content: space-between; z-index: 5; }
.chip { height: 38px; padding: 0 13px 0 11px; border-radius: 19px; background: #fff; display: flex; align-items: center; gap: 7px; font-weight: 600; font-size: 14px; color: var(--ink2); box-shadow: 0 4px 14px rgba(15, 29, 46, 0.12); }
.chip b { font-weight: 800; color: var(--ink); }
.tabbar { position: absolute; left: 22px; right: 22px; bottom: 24px; height: 62px; border-radius: 31px; background: rgba(255, 255, 255, 0.96); box-shadow: 0 8px 28px rgba(15, 29, 46, 0.16), 0 0 0 0.5px rgba(15, 29, 46, 0.08); display: flex; align-items: center; justify-content: space-around; padding: 0 8px; z-index: 6; }
.tab { width: 78px; height: 50px; border-radius: 25px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-weight: 600; font-size: 10.5px; color: var(--ink2); }
.tab.on { background: rgba(45, 156, 235, 0.12); color: var(--blue); font-weight: 700; }

.slot { position: absolute; left: 16px; right: 16px; bottom: 98px; z-index: 7; }
/* the white "nearest LIT" card */
.s-how .card { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 12px 12px 14px; border-radius: 20px; background: #fff; box-shadow: 0 8px 24px rgba(15, 29, 46, 0.16); transform: translateY(130px); opacity: 0; transition: transform 0.35s ease-in, opacity 0.3s; }
.p-card:not(.p-sheet) .card { transform: none; opacity: 1; transition: transform 0.8s var(--glide), opacity 0.4s; }
.p-sheet .card { transition-delay: 0.38s; }
.card .tx { flex: 1; }
.card .eb { font-weight: 700; font-size: 11.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink3); }
.card .ds { font-weight: 800; font-size: 19px; margin-top: 1px; }
.card .cp { font-weight: 500; font-size: 13px; color: var(--ink2); }
.card .cta { height: 40px; padding: 0 16px; border-radius: 20px; background: var(--sun); display: flex; align-items: center; font-weight: 800; font-size: 14.5px; color: var(--ink); }

/* the navy tracking card */
.live { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px; border-radius: 22px; background: var(--navy); box-shadow: 0 10px 28px rgba(15, 29, 46, 0.3); color: #fff; transform: translateY(240px); opacity: 0; transition: transform 0.35s ease-in, opacity 0.3s; }
.p-track .live { transform: none; opacity: 1; transition: transform 0.8s var(--glide) 0.85s, opacity 0.3s 0.85s; }
.live .top { display: flex; align-items: center; gap: 12px; }
.dial { position: relative; width: 68px; height: 68px; margin: -10px -4px; flex: none; }
.dial > * { position: absolute; }
.dial .ringc, .dial .ptr { inset: 0; }
.dial .art { left: 15px; top: 15px; }
.p-300 .dial { animation: how-bump 0.7s 0.1s both; }
@keyframes how-bump { 0% { transform: scale(1); } 28% { transform: scale(1.18); animation-timing-function: cubic-bezier(0.34, 1.9, 0.64, 1); } 100% { transform: scale(1); } }
.live .tx { flex: 1; min-width: 0; }
.live .ebr { display: flex; align-items: center; gap: 6px; font-weight: 800; font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--sun); white-space: nowrap; }
.live .ebr i { width: 7px; height: 7px; border-radius: 4px; background: var(--sun); }
.live .dist { font-weight: 900; font-size: 22px; line-height: 28px; white-space: nowrap; }
.live .dist small { font-weight: 600; font-size: 13.5px; color: rgba(255, 255, 255, 0.7); margin-left: 6px; }
.live .stop { height: 36px; padding: 0 13px 0 11px; border-radius: 18px; background: rgba(255, 255, 255, 0.16); display: flex; align-items: center; gap: 5px; font-weight: 700; font-size: 13.5px; transition: opacity 0.3s; }
.p-here .live .stop { opacity: 0; }
.live .walkpart { overflow: hidden; height: 54px; transition: height 0.45s var(--swift), opacity 0.3s; }
.p-here .live .walkpart { height: 0; opacity: 0; }
.live .bar { position: relative; height: 14px; margin-top: 12px; }
.live .bar .ln0 { position: absolute; left: 0; right: 0; top: 4px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.live .bar .fill { height: 100%; width: 0; border-radius: 3px; background: var(--sun); }
.live .bar .mk { position: absolute; top: 0; width: 14px; height: 14px; border-radius: 7px; background: var(--navy); border: 2.5px solid rgba(255, 255, 255, 0.4); }
.live .bar .mk.mid { left: 50%; margin-left: -7px; } .live .bar .mk.end { right: 0; }
.live .bar .mk.on { background: var(--sun); border-color: var(--navy); }
.live .lfoot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13.5px; }
.live .trend { display: flex; align-items: center; gap: 6px; font-weight: 700; color: #6FE3B4; }
.live .trend i { width: 7px; height: 7px; border-radius: 4px; background: #6FE3B4; }
.live .next { font-weight: 600; font-size: 12.5px; color: rgba(255, 255, 255, 0.6); }
.live .openbtn { height: 0; margin-top: 0; opacity: 0; border-radius: 15px; background: var(--sun); color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; overflow: hidden; transition: height 0.4s var(--swift), margin-top 0.4s var(--swift), opacity 0.3s; }
.p-here .live .openbtn { height: 46px; margin-top: 12px; opacity: 1; transition: height 0.55s cubic-bezier(0.34, 1.5, 0.64, 1) 0.1s, margin-top 0.55s cubic-bezier(0.34, 1.5, 0.64, 1) 0.1s, opacity 0.3s 0.1s; }
.p-open .live .openbtn { animation: how-press 0.5s 0.3s both; }
@keyframes how-press { 0% { transform: scale(1); } 30% { transform: scale(0.95); } 100% { transform: scale(1); } }

.edge { position: absolute; left: 10px; height: 34px; padding: 0 12px 0 8px; border-radius: 17px; background: var(--navy); color: #fff; display: flex; align-items: center; gap: 5px; font-weight: 800; font-size: 13px; z-index: 4; box-shadow: 0 4px 12px rgba(15, 29, 46, 0.3); }
.edge svg { transform: rotate(-90deg); }

/* the LIT's sheet */
.dimmer { position: absolute; inset: 0; background: rgba(15, 29, 46, 0.28); z-index: 19; opacity: 0; transition: opacity 0.4s; }
.p-sheet:not(.p-track) .dimmer { opacity: 1; transition: opacity 0.5s 0.45s; }
.p-track .dimmer { transition-delay: 0.5s; }
.sheet { position: absolute; left: 8px; right: 8px; bottom: 8px; border-radius: 40px; background: #fff; padding: 10px 14px 16px; z-index: 20; box-shadow: 0 -8px 40px rgba(15, 29, 46, 0.2); transform: translateY(660px); transition: transform 0.5s cubic-bezier(0.55, 0, 1, 0.45); }
.p-sheet:not(.p-track) .sheet { transform: none; transition: transform 0.85s var(--glide) 0.48s; }
.p-track .sheet { transition-delay: 0.5s; }
.sheet > :not(.grab):not(.touch) { opacity: 0; transform: translateY(26px); transition: opacity 0.3s 0.5s, transform 0.3s 0.5s; }
.p-sheet .sheet > :not(.grab):not(.touch) { opacity: 1; transform: none; transition: opacity 0.6s calc(0.66s + var(--i) * 0.06s), transform 0.6s var(--glide) calc(0.66s + var(--i) * 0.06s); }
.sheet .grab { width: 36px; height: 5px; border-radius: 3px; background: #D3D9E1; margin: 0 auto 12px; }
.sheet .hero { padding: 16px; border-radius: 24px; background: var(--blue); color: #fff; }
.sheet .hero .row { display: flex; gap: 14px; align-items: center; }
.sheet .hero .eb { font-weight: 800; font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.8); }
.sheet .hero .tt { font-weight: 900; font-size: 22px; line-height: 27px; margin-top: 3px; }
.sheet .hero .tz { font-weight: 500; font-size: 15.5px; line-height: 22px; color: rgba(255, 255, 255, 0.94); margin-top: 14px; }
.sheet .hero .hc { display: inline-flex; margin-top: 14px; height: 28px; padding: 0 11px; border-radius: 14px; background: rgba(255, 255, 255, 0.2); align-items: center; font-weight: 800; font-size: 12.5px; }
.sheet .drow { display: flex; align-items: baseline; gap: 10px; margin: 16px 4px 0; }
.sheet .drow b { font-weight: 900; font-size: 27px; letter-spacing: -0.02em; }
.sheet .drow span { font-weight: 500; font-size: 13.5px; color: var(--ink2); }
.ladder { display: flex; margin: 14px 4px 0; position: relative; }
.ladder::before { content: ''; position: absolute; left: 17px; right: 17px; top: 16px; height: 2px; background: var(--line); }
.ladder .nd { flex: 1; position: relative; }
.ladder .nd:nth-child(2) { text-align: center; } .ladder .nd:nth-child(3) { text-align: right; }
.ladder .nd i { display: inline-flex; width: 34px; height: 34px; border-radius: 17px; background: #fff; border: 2px solid var(--line); align-items: center; justify-content: center; }
.ladder .nd.done i { background: var(--blue); border-color: var(--blue); }
.ladder .nd b { display: block; font-weight: 800; font-size: 13px; margin-top: 5px; }
.ladder .nd span { display: block; font-weight: 500; font-size: 12px; color: var(--ink3); }
.sheet .bigbtn { margin-top: 16px; height: 54px; border-radius: 16px; background: var(--sun); display: flex; align-items: center; justify-content: center; gap: 9px; font-weight: 800; font-size: 16.5px; }

/* the finger: a one-shot that plays when its state arrives */
.s-how .touch { opacity: 0; }
.s-how .touch i { opacity: 0; }
.p-sheet:not(.p-track) .tap-pin, .p-track:not(.p-300) .tap-track, .p-open .tap-open, .u-flip:not(.u-scan) .tap-view { animation: how-tap 1.1s both; }
.p-sheet:not(.p-track) .tap-pin i, .p-track:not(.p-300) .tap-track i, .p-open .tap-open i, .u-flip:not(.u-scan) .tap-view i { animation: how-tap-ring 0.55s 0.44s ease-out both; }
@keyframes how-tap { 0% { opacity: 0; transform: scale(1.5); } 29% { opacity: 1; transform: scale(1); } 33% { transform: scale(1); } 40% { transform: scale(0.78); } 62% { transform: scale(1); opacity: 1; } 90%, 100% { opacity: 0; transform: scale(1); } }
@keyframes how-tap-ring { 0% { opacity: 0.7; transform: scale(1); } 100% { opacity: 0; transform: scale(2.6); } }

/* callouts beside the phone */
.callout { position: absolute; height: 64px; padding: 0 26px 0 20px; border-radius: 32px; background: #fff; color: var(--ink); display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 27px; letter-spacing: -0.01em; box-shadow: 0 18px 40px rgba(4, 28, 60, 0.3); white-space: nowrap; transform-origin: 100% 50%; opacity: 0; transform: translateX(-20px); transition: opacity 0.3s, transform 0.3s ease-in; }
.callout em { font-style: normal; color: var(--ink3); font-weight: 700; }
.callout.c1 { left: 128px; top: -234px; }
.callout.c2 { left: 66px; top: 94px; }
.c-300 .callout.c1, .c-here .callout.c2 { opacity: 1; transform: none; animation: how-pop 0.6s cubic-bezier(0.34, 1.7, 0.64, 1) both; }
@keyframes how-pop { 0% { opacity: 0; transform: translateX(40px) scale(0.6); } 100% { opacity: 1; transform: none; } }

/* ---------- the reveal ---------- */
.navflood { position: absolute; inset: 0; background: var(--navy); z-index: 55; opacity: 0; pointer-events: none; }
.unlock { position: absolute; inset: 0; z-index: 56; pointer-events: none; overflow: hidden; }
.unlock canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.uat { position: absolute; left: var(--fx); top: var(--fy); width: 0; height: 0; }
/* the brand's colour pouring out: three hexagons, one behind the other */
.uflood { position: absolute; left: calc(var(--fl) * -0.5); top: calc(var(--fl) * -0.5); width: var(--fl); height: var(--fl); clip-path: polygon(50% 0, 93.3% 25%, 93.3% 75%, 50% 100%, 6.7% 75%, 6.7% 25%); transform: scale(0); transition: transform 0.35s ease-in; }
.u-burst .uflood { transform: scale(1) rotate(30deg); transition: transform 1.05s cubic-bezier(0.16, 1, 0.3, 1) calc(0.02s + var(--i) * 0.09s); }
.uhexs { transform: scale(var(--uk)); }
.uhexs > * { position: absolute; }
.uring { left: -215px; top: -215px; opacity: 0; transition: opacity 0.3s; }
.u-hex:not(.u-burst) .uring { opacity: 1; transition: opacity 0.4s 0.4s; }
.ubody { left: -190px; top: -190px; width: 380px; height: 380px; transform: scale(0) rotate(-50deg); transition: transform 0.3s ease-in; pointer-events: none; }
.u-hex .ubody { transform: none; transition: transform 1s cubic-bezier(0.3, 1.5, 0.45, 1); }
.u-hex:not(.u-burst) .ubody { pointer-events: auto; cursor: pointer; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.u-burst .ubody { visibility: hidden; transition: none; }
.ushake, .ucharge { width: 380px; height: 380px; }
.ulabel { left: -200px; width: 400px; top: 236px; text-align: center; font-weight: 700; font-size: 28px; color: rgba(255, 255, 255, 0.72); letter-spacing: 0.01em; opacity: 0; transform: translateY(14px); transition: opacity 0.2s, transform 0.3s; }
.u-hex:not(.u-burst) .ulabel { opacity: 1; transform: none; transition: opacity 0.5s 0.45s, transform 0.5s var(--glide) 0.45s; }
.ushard { left: -190px; top: -190px; opacity: 0; }
.u-burst .ushard { transform: translate(var(--dx), var(--dy)) rotate(var(--rot)) scale(0.5); transition: transform 1.1s cubic-bezier(0.16, 1, 0.3, 1); animation: how-shard 0.95s both; }
@keyframes how-shard { 0% { opacity: 1; } 47% { opacity: 1; } 100% { opacity: 0; } }
.uflash { position: absolute; inset: 0; background: #FFF6D6; opacity: 0; }
.u-burst .uflash { animation: how-flash 0.55s both; }
@keyframes how-flash { 0% { opacity: 0; } 13% { opacity: 0.75; } 100% { opacity: 0; } }

/* the ticket, and on its back the code */
/* zoom, not a transform: the ticket's text is laid out at its final size, so it stays sharp */
.tkrig { position: absolute; width: 0; height: 0; zoom: var(--tk); perspective: 2200px; }
.tkflip { position: absolute; width: 0; height: 0; transform-style: preserve-3d; transform: translateY(1100px) rotate(9deg); opacity: 0; transition: transform 0.4s ease-in, opacity 0.2s 0.2s; }
.u-burst .tkflip { transform: none; opacity: 1; transition: transform 1.15s cubic-bezier(0.22, 1.28, 0.36, 1) 0.3s, opacity 0.01s 0.3s; }
.u-flip .tkflip { transform: rotateY(180deg); transition: transform 1s var(--swift) 0.42s; }
.tkfloat { position: absolute; width: 0; height: 0; transform-style: preserve-3d; }
.u-burst:not(.u-flip) .tkfloat { animation: how-float 5.2s ease-in-out 1.5s infinite alternate; }
@keyframes how-float { from { transform: none; } to { transform: translateY(-8px) rotate(-1.2deg); } }
.face { position: absolute; left: -179px; top: 0; width: 358px; transform: translateY(-50%); backface-visibility: hidden; -webkit-backface-visibility: hidden; filter: drop-shadow(0 26px 40px rgba(60, 10, 6, 0.32)); color: var(--ink); }
.face.back { transform: translateY(-50%) rotateY(180deg); }
.tk-top { background: #fff; border-radius: 28px 28px 0 0; padding: 22px 22px 16px; }
.brow { display: flex; align-items: center; gap: 11px; }
.tile { width: 38px; height: 38px; border-radius: 11px; background: var(--bors); color: #fff; font-weight: 900; font-size: 14.5px; display: flex; align-items: center; justify-content: center; flex: none; }
.bn { font-weight: 800; font-size: 15px; line-height: 18px; } .bc { font-weight: 600; font-size: 13px; line-height: 17px; color: var(--ink3); margin-top: 1px; }
.offer { margin-top: 14px; font-weight: 900; font-size: 31px; line-height: 38px; letter-spacing: -0.025em; }
.meta { margin-top: 12px; display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; color: var(--ink2); }
.perf { height: 24px; background: #fff; position: relative; }
.perf::before, .perf::after { content: ''; position: absolute; top: 1px; width: 22px; height: 22px; border-radius: 11px; background: var(--bors); }
.perf::before { left: -11px; } .perf::after { right: -11px; }
.perf i { position: absolute; left: 22px; right: 22px; top: 11px; border-top: 2px dashed var(--line); }
.tk-bot { background: #fff; border-radius: 0 0 28px 28px; padding: 10px 18px 14px; position: relative; }
.tchips { display: flex; align-items: center; gap: 8px; margin: 2px 2px 14px; }
.tchip { height: 30px; padding: 0 12px; border-radius: 15px; background: #E3F5EC; color: #11895D; font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; }
.tchips .sv { margin-left: auto; font-weight: 600; font-size: 13px; color: var(--ink3); }
.tbtn { height: 54px; border-radius: 16px; background: var(--sun); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16.5px; }
.tbtn.sec { height: 46px; background: none; font-weight: 700; color: var(--ink2); margin-top: 4px; }
/* the front's contents arrive a beat after the ticket */
.front .offer, .front .meta, .front .sv, .front .tbtn { opacity: 0; transform: translateY(16px); }
.front .tchip { transform: scale(0); }
.u-burst .front .offer, .u-burst .front .meta, .u-burst .front .sv, .u-burst .front .tbtn { opacity: 1; transform: none; transition: opacity 0.5s var(--d), transform 0.5s var(--glide) var(--d); }
.u-burst .front .tchip { transform: none; transition: transform 0.5s cubic-bezier(0.34, 1.9, 0.64, 1) 0.85s; }

.code { background: #fff; border-radius: 28px; padding: 22px; position: relative; overflow: hidden; }
.code .offer { font-size: 23px; line-height: 28px; margin-top: 12px; }
.qrbox { position: relative; width: 222px; height: 222px; margin: 18px auto 0; }
.qrbox svg.qr { position: absolute; inset: 0; }
.qrbox .br { position: absolute; inset: -14px; opacity: 0; transform: scale(1.25); transition: opacity 0.15s, transform 0.2s; }
.u-scan:not(.u-done) .qrbox .br { opacity: 1; transform: none; transition: opacity 0.3s, transform 0.45s cubic-bezier(0.34, 1.7, 0.64, 1); }
.qrbox .beam { position: absolute; left: -10px; right: -10px; top: 0; height: 4px; border-radius: 2px; background: var(--blue); box-shadow: 0 0 18px 4px rgba(45, 156, 235, 0.55); opacity: 0; }
.u-scan:not(.u-done) .qrbox .beam { opacity: 1; animation: how-beam 0.9s 0.25s ease-in-out infinite alternate; }
@keyframes how-beam { from { transform: translateY(0); } to { transform: translateY(218px); } }
.count { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.count b { font-weight: 900; font-size: 30px; letter-spacing: -0.02em; width: 70px; }
.count .cb { flex: 1; height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.count .cb i { display: block; height: 100%; background: var(--blue); border-radius: 4px; }
.code .hint { margin-top: 12px; text-align: center; font-weight: 600; font-size: 14px; color: var(--ink3); }
.code .okl { position: absolute; inset: 0; background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.2s; }
.u-done .code .okl { opacity: 1; transition: opacity 0.25s; }
.okl .okh { transform: scale(0) rotate(-90deg); transition: transform 0.2s; }
.u-done .okl .okh { transform: none; transition: transform 0.8s cubic-bezier(0.3, 1.6, 0.45, 1) 0.05s; }
.okl .eb { margin-top: 22px; font-weight: 800; font-size: 14px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.okl .sv { margin-top: 6px; font-weight: 900; font-size: 38px; letter-spacing: -0.03em; }
.okl .at { margin-top: 4px; font-weight: 600; font-size: 15px; color: var(--ink2); }
.okl .tchip { margin-top: 18px; }
.okl .eb, .okl .sv, .okl .at, .okl .tchip { opacity: 0; transform: translateY(20px); }
.u-done .okl .eb, .u-done .okl .sv, .u-done .okl .at, .u-done .okl .tchip { opacity: 1; transform: none; transition: opacity 0.5s var(--d), transform 0.5s var(--glide) var(--d); }

/* ---------- narrow screens: the words on top, the rig below ---------- */
@media (max-width: 899px) {
  .how-copy { top: calc(var(--nav-h) + 14px); transform: none; width: auto; right: var(--gut); }
  .how-eb { height: 26px; gap: 6px; }
  .steps-hex { gap: 5px; }
  .steps-hex .st { width: 22px; height: 22px; }
  .how-eb .eyebrow { font-size: 12px; margin-left: 6px; }
  .how-steps { margin-top: 10px; }
  .step .hl { font-size: clamp(40px, 13.4vw, 84px); }
  .step .sub { margin-top: 10px; font-size: clamp(15px, 4.1vw, 21px); line-height: 1.3; max-width: 22em; }
  .callout.c1 { left: auto; right: -238px; top: -330px; }
  .callout.c2 { left: auto; right: -238px; top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  .me .halo, .tkfloat { animation: none !important; }
}
