/* ==========================================================================
   Landing — "night game" cinematic scroll story.
   Everything dynamic is driven by CSS custom properties written from landing.js (--p, --sp ...).
   ========================================================================== */
@font-face { font-family: "Fraunces"; src: url("/static/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("/static/fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("/static/fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-display: swap; }

:root {
  --ink: #0b0a12; --ink-2: #14111f; --paper: #f6f1e6; --muted: #a79fb4; --lime: #f1fe44; --orange: #ff7a2f; --violet: #6b03b9;
  --line: rgba(246, 241, 230, .14);
  --display: "Fraunces", Georgia, serif; --ui: "Instrument Sans", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink); }
body { margin: 0; color: var(--paper); font: 17px/1.55 var(--ui); background: var(--ink); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
em { font-style: normal; color: var(--lime); }
.mono { font-family: var(--mono); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 8px; }

/* ------------------------------------------------------------ ball + shadow (fixed) */
#ball { position: fixed; left: 0; top: 0; width: 86px; height: 86px; z-index: 6; pointer-events: none; will-change: transform, opacity; transition: opacity .35s; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .45)); }
#ball svg { width: 100%; height: 100%; display: block; }
#ball-shadow { position: fixed; left: 0; top: 0; width: 70px; height: 14px; z-index: 5; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); will-change: transform, opacity; }
.no-js #ball, .no-js #ball-shadow { display: none; }

/* ------------------------------------------------------------ top bar */
.topbar { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px clamp(18px, 4vw, 56px);
  backdrop-filter: blur(14px); background: linear-gradient(to bottom, rgba(11, 10, 18, .85), rgba(11, 10, 18, 0)); }
.logo { text-decoration: none; font: 700 1.6rem/1 var(--display); letter-spacing: -.03em; } .logo i { font-style: normal; color: var(--orange); }
.topbar nav { display: flex; gap: 28px; } .topbar nav a { text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--muted); transition: color .2s; } .topbar nav a:hover { color: var(--paper); }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; font-weight: 700; text-decoration: none; border: 2px solid var(--paper); transition: transform .2s var(--ease), background .2s, color .2s; }
.btn:hover { transform: translateY(-2px) scale(1.02); }
.btn-lime { background: var(--lime); border-color: var(--lime); color: var(--ink); } .btn-lime:hover { background: var(--paper); border-color: var(--paper); }
.btn-ghost { background: transparent; } .btn-ghost:hover { background: var(--paper); color: var(--ink); }
.btn.big { padding: 16px 28px; font-size: 1.05rem; }

/* ------------------------------------------------------------ shared type */
.eyebrow { font: 600 .78rem var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--orange); margin: 0 0 18px; } .eyebrow.center { text-align: center; }
.mega { font: 800 clamp(3.4rem, 11.5vw, 11rem)/.9 var(--display); letter-spacing: -.045em; margin: 0; font-variation-settings: "opsz" 144; }
.small-mega { font-size: clamp(2.6rem, 7.5vw, 7rem); }
.big { font: 700 clamp(2.2rem, 5.4vw, 4.6rem)/1 var(--display); letter-spacing: -.035em; margin: 0 0 22px; font-variation-settings: "opsz" 144; } .big.center { text-align: center; }
.lead { font-size: clamp(1.05rem, 1.5vw, 1.3rem); color: #d7d0e2; max-width: 38em; }
section { position: relative; }

/* ------------------------------------------------------------ hero */
.hero { min-height: 100vh; display: grid; align-items: center; padding: 120px clamp(18px, 6vw, 96px) 80px; overflow: hidden;
  background: radial-gradient(900px 600px at 78% 30%, rgba(255, 122, 47, .28), transparent 60%), radial-gradient(800px 700px at 10% 90%, rgba(107, 3, 185, .35), transparent 60%), linear-gradient(160deg, #1a0f2e, var(--ink) 55%); }
.court { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--paper); opacity: .08; transform: translateY(calc(var(--hero, 0) * 120px)) scale(calc(1 + var(--hero, 0) * .12)); }
.hero-inner { position: relative; z-index: 4; max-width: 1200px; }
.mega .line { display: block; overflow: hidden; padding: .03em 0 .3em; margin-bottom: -.22em; }
.mega .word { display: inline-block; transform: translateY(105%); opacity: 0; animation: up .95s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 150ms); }
.mega .accent { color: var(--lime); }
.reveal { opacity: 0; transform: translateY(24px); animation: up .9s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 110ms + 550ms); }
.no-js .mega .word, .no-js .reveal { opacity: 1; transform: none; animation: none; }
@keyframes up { to { transform: none; opacity: 1; } }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font: 600 .7rem var(--mono); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); z-index: 4; }
.scroll-cue i { width: 2px; height: 46px; background: linear-gradient(var(--lime), transparent); animation: cue 1.8s ease-in-out infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------ marquee */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #0f0d18; padding: 22px 0; z-index: 4; position: relative; }
.track { display: flex; gap: 40px; width: max-content; white-space: nowrap; font: 800 clamp(2rem, 5vw, 4rem)/1 var(--display); letter-spacing: -.02em; animation: slide 38s linear infinite; }
.track i { font-style: normal; color: var(--orange); font-size: .5em; align-self: center; }
.track span:nth-child(4n+1) { color: transparent; -webkit-text-stroke: 1.5px var(--paper); }
@keyframes slide { to { transform: translateX(-50%); } }

/* ------------------------------------------------------------ pinned sections */
.pin { height: 420vh; } .map-sec { height: 340vh; }
.stage { position: sticky; top: 0; height: 100vh; display: grid; align-items: center; padding: 90px clamp(18px, 6vw, 96px) 40px; overflow: hidden; z-index: 4; }
#how .stage { background: linear-gradient(180deg, var(--ink), #130f1f); }
.how-grid, .map-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 80px); align-items: center; max-width: 1300px; margin: 0 auto; width: 100%; }
.steps { display: grid; grid-template-columns: 1fr; position: relative; }
.step { grid-column: 1; grid-row: 1; opacity: 0; transform: translateY(34px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.step.on { opacity: 1; transform: none; pointer-events: auto; }
.step .num { font: 600 .9rem var(--mono); color: var(--orange); letter-spacing: .2em; }
.step h2 { font: 700 clamp(2rem, 4.2vw, 3.6rem)/1 var(--display); letter-spacing: -.035em; margin: 10px 0 16px; }
.step p { color: #d7d0e2; font-size: 1.12rem; max-width: 30em; margin-bottom: 0; }
.progress { margin-top: 26px; height: 4px; width: min(320px, 70%); background: var(--line); border-radius: 4px; overflow: hidden; position: relative; z-index: 2; }
.progress i { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--orange), var(--lime)); transform-origin: left; transform: scaleX(var(--p, 0)); }
.how-visual { position: relative; height: min(64vh, 560px); }
.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; transform: scale(.94) translateY(26px); transition: opacity .55s var(--ease), transform .7s var(--ease); }
.scene.on { opacity: 1; transform: none; }

/* scene 1: PDF + scanner + chips */
.sheet { position: relative; width: min(330px, 70%); aspect-ratio: .74; background: #f6f1e6; color: #1b1630; border-radius: 12px; padding: 22px 20px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .1); transform: rotate(-4deg) translateX(calc((1 - var(--sp, 0)) * 0px - var(--sp, 0) * 70px)); overflow: hidden; }
.sheet-head { display: grid; gap: 2px; margin-bottom: 16px; } .sheet-head b { font: 800 .72rem var(--mono); letter-spacing: .04em; } .sheet-head span { font: 600 .66rem var(--mono); color: #6a6280; }
.ln { height: 9px; border-radius: 5px; background: #d9d0c0; margin: 11px 0; } .w90 { width: 90%; } .w80 { width: 80%; } .w75 { width: 75%; } .w70 { width: 70%; } .w60 { width: 60%; } .w50 { width: 50%; } .w40 { width: 40%; }
.scanner { position: absolute; left: 0; right: 0; height: 56px; top: calc(var(--sp, 0) * 115% - 10%); background: linear-gradient(transparent, rgba(255, 122, 47, .45), transparent); border-bottom: 2px solid var(--orange); }
.chips { position: absolute; inset: 0; pointer-events: none; }
.chip { position: absolute; padding: 10px 14px; border-radius: 12px; background: rgba(20, 17, 31, .92); border: 1px solid var(--line); font-weight: 700; font-size: .95rem; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .8); opacity: 0; transform: translateX(-30px) scale(.9); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.chip small { display: block; font: 600 .58rem var(--mono); letter-spacing: .14em; color: var(--lime); }
.scene.on[data-prog="1"] .c1, .scene.on[data-prog="2"] .c1, .scene.on[data-prog="3"] .c1, .scene.on[data-prog="4"] .c1, .scene.on[data-prog="5"] .c1 { opacity: 1; transform: none; }
.scene.on[data-prog="2"] .c2, .scene.on[data-prog="3"] .c2, .scene.on[data-prog="4"] .c2, .scene.on[data-prog="5"] .c2 { opacity: 1; transform: none; }
.scene.on[data-prog="3"] .c3, .scene.on[data-prog="4"] .c3, .scene.on[data-prog="5"] .c3 { opacity: 1; transform: none; }
.scene.on[data-prog="4"] .c4, .scene.on[data-prog="5"] .c4 { opacity: 1; transform: none; }
.scene.on[data-prog="5"] .c5 { opacity: 1; transform: none; }
.c1 { right: 4%; top: 8%; } .c2 { right: 0; top: 26%; } .c3 { right: 10%; top: 44%; } .c4 { right: 2%; top: 60%; } .c5 { right: 12%; top: 78%; }

/* scene 2: calendar */
.cal { width: min(520px, 94%); background: #f6f1e6; color: #1b1630; border-radius: 16px; padding: 18px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); transform: rotate(2deg); }
.cal-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; } .cal-head b { font: 700 1.2rem var(--display); } .cal-head span { font: 600 .7rem var(--mono); color: #6a6280; }
.cal-days { display: grid; grid-template-columns: repeat(7, 1fr); font: 600 .7rem var(--mono); color: #6a6280; text-align: center; padding-bottom: 6px; border-bottom: 1px solid #ddd3c0; }
.cal-grid { position: relative; height: 270px; background: repeating-linear-gradient(90deg, transparent 0 calc(100% / 7 - 1px), #e4dccb calc(100% / 7 - 1px) calc(100% / 7)); }
.ev { position: absolute; left: 0; width: calc(100% / 7 - 6px); padding: 6px 7px; border-radius: 8px; font: 700 .64rem/1.2 var(--ui); color: #fff; background: var(--violet); opacity: 0; transform: translateY(-40px); transition: opacity .45s var(--ease), transform .6s cubic-bezier(.3, 1.5, .5, 1); }
.ev.e1 { left: calc(5 * 100% / 7 + 2px); top: 62%; background: var(--orange); } .ev.e2 { left: calc(5 * 100% / 7 + 2px); top: 80%; background: #1b7a46; }
.ev.e3 { left: calc(6 * 100% / 7 + 2px); top: 66%; background: var(--violet); } .ev.e4 { left: calc(5 * 100% / 7 + 2px); top: 28%; background: #2a78d6; }
.scene.on[data-prog="1"] .e1, .scene.on[data-prog="2"] .e1, .scene.on[data-prog="3"] .e1, .scene.on[data-prog="4"] .e1, .scene.on[data-prog="5"] .e1 { opacity: 1; transform: none; }
.scene.on[data-prog="2"] .e2, .scene.on[data-prog="3"] .e2, .scene.on[data-prog="4"] .e2, .scene.on[data-prog="5"] .e2 { opacity: 1; transform: none; }
.scene.on[data-prog="3"] .e3, .scene.on[data-prog="4"] .e3, .scene.on[data-prog="5"] .e3 { opacity: 1; transform: none; }
.scene.on[data-prog="4"] .e4, .scene.on[data-prog="5"] .e4 { opacity: 1; transform: none; }

/* scene 3: chat */
.phone-card { width: min(380px, 92%); background: #1c1830; border: 1px solid var(--line); border-radius: 26px; padding: 18px; display: grid; gap: 10px; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8); }
.who { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); } .who i { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--orange); color: var(--ink); font: 800 1.1rem var(--display); font-style: normal; } .who small { display: block; color: var(--muted); font-size: .76rem; }
.bubble { max-width: 82%; padding: 10px 14px; border-radius: 16px; font-size: .94rem; opacity: 0; transform: translateY(14px); transition: opacity .4s var(--ease), transform .5s var(--ease); }
.b-in { background: #2a2542; border-bottom-left-radius: 4px; } .b-out { background: #1f6f43; justify-self: end; border-bottom-right-radius: 4px; }
.scene.on[data-prog="1"] .bubble:nth-of-type(1), .scene.on[data-prog="2"] .bubble:nth-of-type(-n+2), .scene.on[data-prog="3"] .bubble, .scene.on[data-prog="4"] .bubble, .scene.on[data-prog="5"] .bubble { opacity: 1; transform: none; }
.wa { text-align: center; font: 600 .68rem var(--mono); letter-spacing: .1em; color: var(--lime); padding-top: 4px; }

/* ------------------------------------------------------------ map */
.map-sec .stage { background: radial-gradient(900px 700px at 80% 50%, rgba(255, 122, 47, .18), transparent 60%), #0e0b17; }
.rank { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 16px; max-width: 520px; }
.rank li { position: relative; display: grid; grid-template-columns: 34px 1fr auto; align-items: baseline; gap: 4px 12px; opacity: calc(.25 + var(--p, 0) * 2); }
.rank span { font: 800 1.5rem var(--display); color: var(--orange); } .rank b { font-weight: 700; } .rank em { font: 700 1.3rem var(--display); }
.rank i { grid-column: 2 / 4; height: 8px; border-radius: 6px; background: linear-gradient(90deg, var(--orange), var(--lime)); transform-origin: left; transform: scaleX(calc(var(--v, 0) * var(--bar, 0))); }
.cat { width: 100%; max-height: 66vh; }
.outline { fill: rgba(246, 241, 230, .04); stroke: rgba(246, 241, 230, .5); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 2600; stroke-dashoffset: calc(2600 - var(--draw, 0) * 2600); }
.spot { fill: url(#heat); transform-box: fill-box; transform-origin: center; transform: scale(calc(var(--grow, 0) * var(--k, 1))); opacity: calc(var(--grow, 0)); mix-blend-mode: screen; }
.pins circle { fill: #fff; stroke: var(--ink); stroke-width: 2; opacity: var(--grow, 0); }
.maplabel { fill: var(--paper); font: 600 13px var(--mono); letter-spacing: .1em; opacity: var(--grow, 0); }

/* ------------------------------------------------------------ wrapped */
.wrapped { padding: 140px clamp(18px, 6vw, 96px); background: linear-gradient(180deg, #0e0b17, var(--ink-2, #14111f)); z-index: 4; overflow: hidden; }
.wrap-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .8fr); gap: clamp(30px, 6vw, 90px); align-items: center; max-width: 1200px; margin: 0 auto; }
.facts { list-style: none; display: flex; gap: 34px; padding: 0; margin: 36px 0 0; flex-wrap: wrap; }
.facts b { display: block; font: 800 3.4rem/1 var(--display); color: var(--lime); } .facts span { color: var(--muted); font-size: .9rem; }
.phone { position: relative; justify-self: center; width: min(340px, 80vw); perspective: 1200px; }
.phone-frame { border-radius: 38px; padding: 10px; background: linear-gradient(145deg, #2c2742, #0c0a14); box-shadow: 0 60px 120px -30px rgba(255, 122, 47, .45), 0 0 0 1px rgba(255, 255, 255, .12);
  transform: rotateY(calc(var(--ry, -14) * 1deg)) rotateX(calc(var(--rx, 6) * 1deg)) translateY(calc(var(--py, 0) * 1px)); will-change: transform; }
/* the scroll parallax is already damped in landing.js: a CSS transition on top made it trail behind; it eases only back to rest */
.phone-frame.settling { transition: transform .3s cubic-bezier(.23, 1, .32, 1); }
.phone-frame img { display: block; width: 100%; height: auto; border-radius: 30px; }
.glow { position: absolute; inset: 10% -20% -10%; background: radial-gradient(closest-side, rgba(255, 122, 47, .35), transparent); z-index: -1; filter: blur(30px); }

/* ------------------------------------------------------------ privacy + plans */
.privacy { padding: 120px clamp(18px, 6vw, 96px); background: var(--ink-2, #14111f); z-index: 4; overflow-x: clip; }   /* the tilted sheet never widens a phone page */
.privacy-inner { max-width: 1200px; margin: 0 auto; }
.plans { padding: 130px clamp(18px, 6vw, 96px); background: linear-gradient(180deg, var(--ink-2, #14111f), var(--ink)); z-index: 4; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; max-width: 1100px; margin: 40px auto 0; perspective: 1200px; }
.plan { position: relative; border: 1px solid var(--line); border-radius: 26px; padding: 30px; background: rgba(255, 255, 255, .035); transform: rotateX(calc(var(--rx, 0) * 1deg)) rotateY(calc(var(--ry, 0) * 1deg)); transition: transform .2s ease-out, border-color .3s; }
.plan:hover { border-color: var(--lime); }
.plan.hot { background: linear-gradient(160deg, rgba(255, 122, 47, .2), rgba(107, 3, 185, .2)); border-color: var(--orange); }
.plan h3 { font: 700 1.2rem var(--mono); letter-spacing: .12em; margin: 0; } .price { font: 800 3rem/1.1 var(--display); margin: 8px 0 14px; color: var(--lime); } .price small { font: 600 .9rem var(--ui); color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; } .plan li::before { content: "✓"; color: var(--lime); margin-right: 10px; font-weight: 800; }
.tag { position: absolute; top: -13px; right: 22px; background: var(--orange); color: var(--ink); font: 800 .7rem var(--mono); letter-spacing: .1em; padding: 5px 12px; border-radius: 999px; }

/* ------------------------------------------------------------ finale: hoop */
.finale { min-height: 120vh; display: grid; place-items: center; padding: 120px clamp(18px, 6vw, 96px) 200px; background: radial-gradient(900px 600px at 50% 70%, rgba(255, 122, 47, .25), transparent 62%), var(--ink); z-index: 4; overflow: hidden; }
.finale-inner { text-align: center; position: relative; z-index: 6; }
.finale .cta-row { justify-content: center; }
.finale .btn-ghost {
  background: rgba(14, 11, 22, 0.84);
  border: 2px solid rgba(246, 241, 230, 0.85);
  color: var(--paper);
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.finale .btn-ghost:hover {
  background: var(--paper);
  color: var(--ink);
  text-shadow: none;
}
/* ------------------------------------------------------------ footer: brand + three columns over a half-court drawn in the lines */
.foot { position: relative; z-index: 4; overflow: hidden; color: var(--muted); border-top: 1px solid var(--line);
  padding: clamp(48px, 7vw, 88px) clamp(18px, 6vw, 96px) calc(28px + 72px);          /* room for the floating contact button */
  background: radial-gradient(ellipse 760px 220px at 22% 0%, rgba(255, 122, 47, .11), transparent 70%),
              radial-gradient(ellipse 640px 260px at 90% 100%, rgba(107, 3, 185, .18), transparent 70%), var(--ink); }
.foot-court { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 220px; color: var(--paper); opacity: .06; pointer-events: none; }
.foot-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px clamp(24px, 4vw, 64px);
  max-width: 1240px; margin: 0 auto; }
.foot-brand { display: grid; align-content: start; gap: 16px; }
.foot-id { display: flex; align-items: center; gap: 12px; }
.foot-pet { flex: none; }
.foot-logo { font-family: var(--display); font-size: 1.6rem; font-weight: 800; color: var(--paper); letter-spacing: -.01em; }
.foot-logo i { font-style: normal; color: var(--orange); }
.foot-tagline { margin: 0; max-width: 38ch; font-size: .95rem; line-height: 1.55; color: #c4bdd0; }
.foot-cta { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--lime); color: var(--ink); font-weight: 700; text-decoration: none; transition: transform .16s var(--ease), box-shadow .2s var(--ease); }
.foot-cta svg { width: 18px; height: 18px; }
.foot-cta:active { transform: scale(.97); }
.foot-col h2 { margin: 6px 0 14px; font: 600 .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--lime); }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot-col a { display: inline-flex; align-items: center; min-height: 36px; color: var(--paper); text-decoration: none; font-size: .95rem; opacity: .82;
  transition: opacity .15s, color .15s; }
.foot-col .foot-legal ul { display: grid; gap: 2px; justify-content: start; }
.foot-col .foot-legal a { min-height: 36px; padding: 0; font-size: .95rem; opacity: .82; text-decoration: none; }
.foot-col .link-btn { min-height: 36px; padding: 0; font: inherit; font-size: .95rem; color: var(--paper); opacity: .82; background: none; border: 0; cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .foot-col a:hover, .foot-col .link-btn:hover { opacity: 1; color: var(--orange); }
  .foot-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -14px rgba(241, 254, 68, .55); }
  .foot-top:hover { color: var(--paper); }
}
.foot-bottom { position: relative; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px;
  max-width: 1240px; margin: clamp(40px, 6vw, 64px) auto 0; padding-top: 20px; border-top: 1px solid var(--line); }
.foot-bottom small { font-size: .8rem; color: #aaa4b6; }
.foot-top { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: #aaa4b6; font-size: .85rem; font-weight: 600; text-decoration: none; }
@media (pointer: coarse) { .foot-col a, .foot-col .foot-legal a, .foot-col .link-btn { min-height: 44px; } }   /* thumb-sized on touch screens */
@media (max-width: 960px) {
  .foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 20px; }
  .foot-col:last-child { grid-column: 1 / -1; }
  .foot-col:last-child .foot-legal ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
}

/* ------------------------------------------------------------ responsive + reduced motion */
@media (max-width: 900px) {
  .topbar nav { display: none; }
  .how-grid, .map-grid, .wrap-grid { grid-template-columns: 1fr; }
  .how-visual { height: 42vh; } .pin { height: 380vh; } .map-sec { height: 300vh; }
  .stage { padding-top: 76px; align-content: center; gap: 10px; } .cat { max-height: 38vh; }
  #ball { width: 60px; height: 60px; }
}
@media (max-width: 600px) {
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track, .scroll-cue i { animation: none; } .mega .word, .reveal { opacity: 1; transform: none; animation: none; }
  #ball, #ball-shadow { display: none; }
  .pin, .map-sec { height: auto; } .stage { position: static; height: auto; min-height: 0; padding-block: 80px; }
  .step { position: static; opacity: 1; transform: none; margin-bottom: 26px; } .steps { min-height: 0; } .scene { position: static; opacity: 1; transform: none; margin-bottom: 30px; }
  .how-visual { height: auto; } .chip, .ev, .bubble { opacity: 1; transform: none; } .chip { position: static; display: inline-block; margin: 4px; }
  .rank i { transform: scaleX(var(--v, 0)); } .outline { stroke-dashoffset: 0; } .spot, .pins circle, .maplabel { opacity: 1; transform: none; }
}


/* ================================================================ v2 polish ================================================================ */
#bar { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 30; background: linear-gradient(90deg, var(--orange), var(--lime)); transform-origin: left; transform: scaleX(0); }
.topbar { transition: background .3s, backdrop-filter .3s; }
.topbar.solid { background: rgba(11, 10, 18, .78); backdrop-filter: blur(16px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.topbar nav a { position: relative; padding: 4px 0; }
.topbar nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.topbar nav a.on { color: var(--paper); } .topbar nav a.on::after { transform: scaleX(1); }

/* reveal on scroll for regular sections */
[data-rv] { opacity: 0; transform: translateY(34px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: calc(var(--rvd, 0) * 90ms); }
[data-rv].in { opacity: 1; transform: none; }
.no-js [data-rv] { opacity: 1; transform: none; }

/* map */
.map-visual { filter: drop-shadow(0 30px 60px rgba(0, 0, 0, .5)); }
.cat { max-height: 70vh; }
.maplabel { fill: var(--paper); font: 600 12px var(--mono); letter-spacing: .12em; opacity: var(--grow, 0); paint-order: stroke; stroke: var(--ink); stroke-width: 4px; }
.maplabel.dim { fill: var(--muted); font-weight: 500; font-size: 10.5px; }
.caption { margin: 18px 0 0; font: 500 .8rem var(--mono); letter-spacing: .06em; color: var(--muted); }

/* wrapped chips (descriptive, not stats) */
.chips-row { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 30px 0 0; }
.chips-row li { padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); font-weight: 600; font-size: .92rem; transition: border-color .3s, background .3s, transform .3s var(--ease); }
.chips-row li:hover { border-color: var(--lime); background: rgba(241, 254, 68, .08); transform: translateY(-2px); }

/* privacy: the designation marked up with two pens (landing.html). Kept data gets the highlighter, the rest the redaction bar;
   both are drawn when the sheet scrolls in (.in from landing.js), already drawn without JS or with reduced motion. */
.privacy-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.privacy-copy .lead { margin: 0; }
.vows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 34px 0 0; }
.vows div { border-top: 1px solid var(--line); padding: 18px 0 22px; }
.vows dt { font: 700 1.22rem/1.2 var(--display); letter-spacing: -.015em; margin: 0 0 6px; text-wrap: balance; }
.vows dd { margin: 0; color: #d7d0e2; font-size: .98rem; line-height: 1.5; }
.cmd { font: 600 .88em var(--mono); color: var(--lime); background: rgba(241, 254, 68, .08); border: 1px solid rgba(241, 254, 68, .28); border-radius: 6px; padding: 1px 6px; white-space: nowrap; }
.privacy-link { display: inline-flex; gap: 8px; margin-top: 8px; font-weight: 700; text-decoration: underline; text-decoration-color: rgba(241, 254, 68, .5); text-underline-offset: 5px; transition: color .2s, text-decoration-color .2s; }
.privacy-link:hover { color: var(--lime); text-decoration-color: var(--lime); }
@media (pointer: coarse) { .privacy-link { min-height: 44px; align-items: center; } }                  /* thumb-sized */
.marked { margin: 0; justify-self: center; width: min(100%, 430px); }
.marked-sheet { position: relative; background: var(--paper); color: #1b1630; border-radius: 14px; padding: 24px 26px 18px; font-family: var(--mono);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08); transform: rotate(1.5deg); transition: transform .5s var(--ease); }
.marked-head { display: grid; gap: 2px; padding-bottom: 14px; margin-bottom: 4px; border-bottom: 2px solid #1b1630; }
.marked-head b { font-size: .8rem; font-weight: 800; letter-spacing: .08em; } .marked-head span { font-size: .68rem; font-weight: 600; color: #5f5873; }
.marked-rows { list-style: none; margin: 0; padding: 0; }
.marked-rows li { display: grid; grid-template-columns: 8.2em minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed #cfc5b2; font-size: .84rem; }
.marked-rows li:last-child { border-bottom: 0; }
.marked-rows small { font-size: .62rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #5f5873; }
.marked-rows li span { position: relative; justify-self: start; max-width: 100%; font-weight: 600; padding: 1px 5px; margin-left: -5px; border-radius: 3px; overflow-wrap: anywhere; }
.keep span { background: linear-gradient(var(--lime), var(--lime)) no-repeat left center / 0% 78%; transition: background-size .65s cubic-bezier(.3, .7, .2, 1); }
.drop span::after { content: ""; position: absolute; inset: 1px -3px; border-radius: 2px; background: #1b1630; transform: scaleX(0); transform-origin: left; transition: transform .5s cubic-bezier(.6, 0, .2, 1); }
.marked-rows li:nth-child(1) span, .marked-rows li:nth-child(1) span::after { transition-delay: .25s; }
.marked-rows li:nth-child(2) span, .marked-rows li:nth-child(2) span::after { transition-delay: .37s; }
.marked-rows li:nth-child(3) span, .marked-rows li:nth-child(3) span::after { transition-delay: .49s; }
.marked-rows li:nth-child(4) span, .marked-rows li:nth-child(4) span::after { transition-delay: .61s; }
.marked-rows li:nth-child(5) span, .marked-rows li:nth-child(5) span::after { transition-delay: .73s; }
.marked-rows li:nth-child(6) span, .marked-rows li:nth-child(6) span::after { transition-delay: 1.0s; }
.marked-rows li:nth-child(7) span, .marked-rows li:nth-child(7) span::after { transition-delay: 1.14s; }
.marked-rows li:nth-child(8) span, .marked-rows li:nth-child(8) span::after { transition-delay: 1.28s; }
.marked-stamp { position: absolute; top: 20px; right: 20px; padding: 6px 10px; border: 2px solid #c4481a; border-radius: 6px; color: #b8420f; font-size: .64rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; opacity: 0; transform: rotate(-7deg) scale(1.6); transition: opacity .2s 1.75s, transform .45s cubic-bezier(.3, 1.5, .5, 1) 1.75s; }
.marked.in .keep span { background-size: 100% 78%; }
.marked.in .drop span::after { transform: none; }
.marked.in .marked-stamp { opacity: .95; transform: rotate(-7deg); }
.no-js .marked .keep span { background-size: 100% 78%; } .no-js .marked .drop span::after { transform: none; } .no-js .marked-stamp { opacity: .95; transform: rotate(-7deg); }
.marked-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin-top: 24px; font: 600 .72rem var(--mono); letter-spacing: .06em; color: var(--muted); }
.marked-key span { display: inline-flex; align-items: center; gap: 8px; }
.marked-key span::before { content: ""; width: 20px; height: 10px; border-radius: 2px; }
.marked-key .k::before { background: var(--lime); } .marked-key .d::before { background: var(--ink); box-shadow: inset 0 0 0 1px rgba(246, 241, 230, .55); }
@media (hover: hover) and (pointer: fine) { .marked:hover .marked-sheet { transform: rotate(0deg) translateY(-4px); } }
@media (max-width: 900px) { .privacy-grid { grid-template-columns: minmax(0, 1fr); } .marked-sheet { transform: none; } }
@media (max-width: 560px) {
  .vows { grid-template-columns: minmax(0, 1fr); } .marked-sheet { padding: 20px 18px 14px; display: flex; flex-direction: column; }
  .marked-rows li { grid-template-columns: 7em minmax(0, 1fr); gap: 10px; }
  .marked-stamp { position: static; order: 2; align-self: flex-end; margin: 10px 4px 4px; }      /* under the rows: clear of the date */
}
@media (prefers-reduced-motion: reduce) {
  .keep span, .drop span::after, .marked-stamp, .marked-sheet { transition: none; }
  .marked .keep span { background-size: 100% 78%; } .marked .drop span::after { transform: none; } .marked-stamp { opacity: .95; transform: rotate(-7deg); }
}

/* ================================================================ finale hoop ================================================================ */
.hoop { position: absolute; left: 50%; bottom: 6%; width: min(300px, 58vw); transform: translateX(-50%); z-index: 4; }
.hoop svg { width: 100%; height: auto; display: block; overflow: visible; }
.hoop .board { fill: url(#glass-fill, rgba(246, 241, 230, .09)); fill: rgba(246, 241, 230, .08); stroke: var(--paper); stroke-width: 3; }
.hoop .boardbox { fill: none; stroke: var(--orange); stroke-width: 4; }
.hoop .bracket { fill: #8a8296; }
.hoop .rim-back, .hoop .rim-front { fill: none; stroke: var(--orange); stroke-width: 7; stroke-linecap: round; }
.hoop .rim-back { stroke: #b5400d; }
.hoop .net { transform-box: fill-box; transform-origin: 50% 0; opacity: .9; }
.hoop .hball { opacity: 0; transform: translate(130px, 62px); }
.hoop .pulse { fill: none; stroke: var(--lime); stroke-width: 3; opacity: 0; transform-box: fill-box; transform-origin: center; }
.hoop.shoot .hball { animation: shot 1.5s cubic-bezier(.45, 0, .55, 1) forwards; }
.hoop.shoot .net { animation: swish 1.1s cubic-bezier(.3, 1.4, .5, 1) .42s; }
.hoop.shoot .pulse { animation: ring 1.1s ease-out .4s; }
.hoop .plus { position: absolute; left: 50%; top: -6%; transform: translate(-50%, 0) scale(.4); font: 800 clamp(2.4rem, 6vw, 4.4rem)/1 var(--display); color: var(--lime); opacity: 0; text-shadow: 0 8px 30px rgba(241, 254, 68, .45); }
.hoop.shoot .plus { animation: plus 1.5s var(--ease) .55s forwards; }
@keyframes swish { 0% { transform: none; } 18% { transform: scale(1.12, 1.22); } 38% { transform: scale(.9, .86) skewX(4deg); } 58% { transform: scale(1.05, 1.08) skewX(-3deg); } 78% { transform: scale(.99, 1.02); } 100% { transform: none; } }
@keyframes ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5, 2.4); } }
@keyframes plus { 0% { opacity: 0; transform: translate(-50%, 20px) scale(.4); } 25% { opacity: 1; transform: translate(-50%, -6px) scale(1.15); } 100% { opacity: 0; transform: translate(-50%, -52px) scale(1); } }
.finale { min-height: 130vh; padding-bottom: 220px; }
@media (max-width: 900px) { .hoop { bottom: 10%; } }
@media (prefers-reduced-motion: reduce) { [data-rv] { opacity: 1; transform: none; transition: none; } #bar { display: none; } .hoop .hball { opacity: 1; } }

@keyframes shot {
  0%   { opacity: 1; transform: translate(130px, 60px) scale(1, 1); }
  26%  { opacity: 1; transform: translate(130px, 138px) scale(.94, 1.1); }      /* through the rim */
  52%  { opacity: 1; transform: translate(130px, 236px) scale(1.04, .94); }     /* down the net */
  66%  { opacity: 1; transform: translate(130px, 300px) scale(1.08, .88); }     /* lands under the hoop */
  80%  { opacity: 1; transform: translate(134px, 268px) scale(1, 1); }          /* small bounce */
  100% { opacity: 0; transform: translate(138px, 318px) scale(1, 1); }
}


/* accessibility: thumb-sized targets on touch screens */
@media (pointer: coarse) {
  .logo, .topbar nav a { display: inline-flex; align-items: center; min-height: 44px; }
}

/* Dribbler on the landing page: the ball IS him (the body rolls, the face stays upright and smiles when the shot goes in) */
.mascot { display: block; flex: none; overflow: visible; }
.step-pet { margin: 0 0 12px; }
.hoop .face-happy { opacity: 0; }
.hoop.shoot .face-neutral { animation: face-out .01s linear .5s forwards; }
.hoop.shoot .face-happy { animation: face-in .01s linear .5s forwards; }
@keyframes face-out { to { opacity: 0; } }
@keyframes face-in { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hoop .face-neutral { opacity: 0; } .hoop .face-happy { opacity: 1; } }

/* the pets of the landing page: each step's pet pops in when its step comes up, the sleeping one in the footer breathes */
@keyframes dribbler-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.035); } }
@keyframes dribbler-pop { 0% { transform: scale(.55) translateY(8px); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: none; opacity: 1; } }
@keyframes dribbler-jump { 0% { transform: none; } 35% { transform: translateY(-16px) scale(.97, 1.05); } 65% { transform: translateY(0) scale(1.06, .94); } 100% { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .step.on .step-pet { animation: dribbler-pop .6s cubic-bezier(.34, 1.56, .64, 1) .12s both; transform-origin: 50% 90%; }
  .foot-pet { animation: dribbler-breathe 3.8s ease-in-out infinite; transform-origin: 50% 90%; }
  .mascot.hop-once { animation: dribbler-jump .7s cubic-bezier(.3, 0, .6, 1) 1; transform-origin: 50% 90%; }
}
.court .dash { stroke-dasharray: 9 9; }               /* the part of the free-throw circle inside the paint is dashed, as on a real court */

/* ------------------------------------------------------------ touch: hover effects must not stick after a tap; presses answer */
.btn:active { transform: scale(.97); transition-duration: .1s; }
@media (hover: none) {
  .btn:hover { transform: none; }
  .btn-lime:hover { background: var(--lime); border-color: var(--lime); }
  .btn-ghost:hover { background: transparent; color: var(--paper); }
  .plan:hover { border-color: var(--line); } .plan.hot:hover { border-color: var(--orange); }
  .chips-row li:hover { border-color: var(--line); background: rgba(255, 255, 255, .04); transform: none; }
  .btn:active { transform: scale(.96); }
  .btn-lime:active { background: var(--paper); border-color: var(--paper); }
  .btn-ghost:active { background: var(--paper); color: var(--ink); }
}

/* ------------------------------------------------------------ easter egg: Hoops (game.js) */
/* the way in: two taps on the ball at the very top (he hops and asks), or a tap on the final hoop */
#ball.tap { pointer-events: auto; cursor: pointer; }
#ball.tap::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; }          /* a thumb-sized target */
#ball.hop svg { animation: dribbler-jump .7s cubic-bezier(.3, 0, .6, 1); transform-origin: 50% 90%; }
#ball.instant { transition: none; }
#ball.egg-fall { z-index: 60; transition: none; filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .4)); }                /* above the game layer while it drops in */
#ball.egg-hidden { visibility: hidden; }
#ball.egg-back svg { animation: egg-land .5s cubic-bezier(.3, 1.4, .5, 1); transform-origin: 50% 90%; }
@keyframes egg-land { 0% { transform: scale(1.12, .86); } 55% { transform: scale(.96, 1.05); } 100% { transform: none; } }
@media (hover: hover) and (pointer: fine) { #ball.tap:hover svg { transform: rotate(-8deg) scale(1.05); transition: transform .25s var(--ease); } }

#ball-bubble { position: fixed; left: 0; top: 0; z-index: 7; pointer-events: none; padding: 8px 14px; border-radius: 14px; white-space: nowrap;
  background: var(--paper); color: var(--ink); font: 700 .82rem/1.2 var(--ui); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform: translate(var(--bx, 50vw), var(--by, 50vh)) translate(-50%, calc(-100% - 14px)) scale(.9); transform-origin: 50% 100%; opacity: 0;
  transition: opacity .18s ease-out, transform .18s ease-out; }
#ball-bubble::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: var(--paper); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
#ball-bubble.on { opacity: 1; transform: translate(var(--bx, 50vw), var(--by, 50vh)) translate(-50%, calc(-100% - 14px)); transition: opacity .25s ease-out, transform .45s cubic-bezier(.3, 1.5, .5, 1); }
@media (max-width: 560px) {                                                                    /* phones: beside him, clear of the buttons above */
  #ball-bubble { transform: translate(var(--bx, 50vw), var(--by, 50vh)) translate(calc(-100% - 44px), 14px) scale(.9); transform-origin: 100% 50%; }
  #ball-bubble.on { transform: translate(var(--bx, 50vw), var(--by, 50vh)) translate(calc(-100% - 44px), 14px); }
  #ball-bubble::after { left: auto; right: -6px; bottom: auto; top: 50%; transform: translateY(-50%) rotate(45deg); }
}

@media (prefers-reduced-motion: no-preference) { .hoop svg { cursor: pointer; } }                /* the egg only exists with motion on */
@media (max-height: 520px) and (orientation: landscape) {                                       /* short landscape phones: the hoop gets its own room */
  .finale { min-height: auto; padding-bottom: calc(min(210px, 34vw) * 1.27 + 48px); }
  .hoop { width: min(210px, 34vw); bottom: 18px; }
}
@media (hover: hover) and (pointer: fine) { .hoop:hover .net { animation: net-sway 1.2s ease-in-out infinite; } }
@keyframes net-sway { 0%, 100% { transform: none; } 50% { transform: skewX(3deg) scaleY(1.03); } }
.hoop.egg .hball { animation: egg-drop .85s cubic-bezier(.45, 0, .55, 1) forwards; }
.hoop.egg .net { animation: swish 1.1s cubic-bezier(.3, 1.4, .5, 1) .08s; }
.hoop.egg .face-neutral { animation: none; opacity: 0; } .hoop.egg .face-happy { animation: none; opacity: 1; }
@keyframes egg-drop {
  0%   { opacity: 0; transform: translate(130px, 118px) scale(.9); }
  12%  { opacity: 1; transform: translate(130px, 142px) scale(.94, 1.08); }      /* drops out of the rim */
  45%  { opacity: 1; transform: translate(130px, 236px) scale(1.04, .94); }      /* through the net */
  64%  { opacity: 1; transform: translate(130px, 300px) scale(1.14, .86); }      /* bounces... */
  100% { opacity: 0; transform: translate(130px, 372px) scale(2.3); }            /* ...and comes at you */
}

/* while playing, the page steps back */
html.hoops-lock, html.hoops-lock body { overflow: hidden; overscroll-behavior: none; }
.hero-inner, .scroll-cue, .topbar, #bar { transition: opacity .45s var(--ease), filter .45s var(--ease); }
.hero .court { transition: opacity .5s var(--ease); }
body.hoops-on .hero-inner, body.hoops-on .scroll-cue, body.hoops-on .topbar, body.hoops-on #bar { opacity: 0; filter: blur(6px); pointer-events: none; }
body.hoops-on .hero .court { opacity: 0; }

/* the game layer */
.hoops { position: fixed; inset: 0; z-index: 50; display: none; color: var(--paper); outline: none; overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; overscroll-behavior: contain; }
.hoops.from-ball, .hoops.from-hoop { display: block; }
.hoops-bg { position: absolute; inset: 0; opacity: 0; transition: opacity .7s var(--ease);
  background: radial-gradient(900px 560px at 50% 22%, rgba(255, 122, 47, .26), transparent 62%), radial-gradient(800px 700px at 8% 92%, rgba(107, 3, 185, .32), transparent 60%), linear-gradient(170deg, #1a0f2e, var(--ink) 58%); }
.hoops-bg::after { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .8s var(--ease); background: radial-gradient(700px 420px at 50% 28%, rgba(255, 150, 60, .28), transparent 65%); }
.hoops.fire .hoops-bg::after { opacity: 1; }
.hoops.in .hoops-bg { opacity: 1; }
.hoops.from-hoop { clip-path: circle(0 at var(--ox, 50%) var(--oy, 70%)); transition: clip-path .75s cubic-bezier(.77, 0, .175, 1); }
.hoops.from-hoop.in { clip-path: circle(150vmax at var(--ox, 50%) var(--oy, 70%)); transition-duration: 1s; }
.hoops.from-hoop .hoops-bg { opacity: 1; transition: none; }
.hoops-stage { position: absolute; inset: 0; display: block; }
.hoops::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: rgba(11, 10, 18, .58); opacity: 0; transition: opacity .35s ease-out; }
.hoops.over::after { opacity: 1; transition-delay: .2s; }

/* HUD: score | lives, streak, shot clock | sound, exit */
.hoops-hud { position: absolute; inset: 0 0 auto 0; z-index: 2; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; pointer-events: none;
  padding: max(16px, env(safe-area-inset-top)) max(clamp(14px, 4vw, 40px), env(safe-area-inset-right)) 0 max(clamp(14px, 4vw, 40px), env(safe-area-inset-left)); }
.hoops-hud > * { opacity: 0; transform: translateY(-10px); transition: opacity .18s ease-out, transform .18s ease-out; }
.hoops.hud .hoops-hud > * { opacity: 1; transform: none; transition: opacity .45s var(--ease), transform .55s cubic-bezier(.3, 1.3, .5, 1); }
.hoops.hud .hoops-hud > :nth-child(2) { transition-delay: .06s; }
.hoops.hud .hoops-hud > :nth-child(3) { transition-delay: .12s; }
.hoops .hud-tools { opacity: 1; transform: none; }                                         /* the way out is there from the first frame */
.hud-label { display: block; font: 600 .68rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.hud-num { display: block; font: 800 clamp(2.4rem, 6vw, 3.6rem)/1 var(--display); letter-spacing: -.03em; color: var(--lime); font-variant-numeric: tabular-nums; transform-origin: 0 80%; }
.hud-num.bump { animation: hud-bump .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes hud-bump { 0% { transform: scale(1); } 30% { transform: scale(1.28); text-shadow: 0 0 30px rgba(241, 254, 68, .7); } 100% { transform: scale(1); } }
.hud-best { display: block; margin-top: 4px; font: 600 .72rem var(--mono); letter-spacing: .08em; color: var(--muted); }
.hud-mid { display: flex; flex-direction: column; align-items: center; gap: 8px; padding-top: 6px; }
.hud-lives { display: flex; gap: 8px; }
.hud-lives i { width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 34% 32%, #ffb27a, var(--orange) 52%, #c94f12); box-shadow: inset 0 0 0 1.5px rgba(138, 52, 16, .55), 0 3px 8px rgba(0, 0, 0, .3);
  transition: transform .35s var(--ease), opacity .35s ease-out, filter .35s ease-out; }
.hud-lives i.lost { opacity: .22; filter: grayscale(1); transform: scale(.78); }
.hud-lives i.pop { animation: life-lost .5s cubic-bezier(.3, 1.4, .5, 1); }
@keyframes life-lost { 0% { transform: scale(1); opacity: 1; filter: none; } 35% { transform: scale(1.45) translateY(-4px); opacity: 1; filter: none; } 100% { transform: scale(.78); opacity: .22; filter: grayscale(1); } }
.hud-streak { min-height: 24px; padding: 4px 11px; border-radius: 999px; font: 700 .72rem/16px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--paper);
  border: 1px solid var(--line); background: rgba(11, 10, 18, .4); opacity: 0; transform: scale(.9); transition: opacity .25s ease-out, transform .35s cubic-bezier(.3, 1.5, .5, 1), background .3s, color .3s; }
.hoops.hud .hoops-hud .hud-streak { opacity: 0; transform: scale(.9); }
.hoops.hud .hoops-hud .hud-streak.on { opacity: 1; transform: none; }
.hud-streak:empty { visibility: hidden; }
.hud-streak.fire { color: var(--ink); border-color: transparent; background: linear-gradient(90deg, var(--orange), var(--lime), var(--orange)); background-size: 200% 100%; animation: fire-slide 1.4s linear infinite; }
@keyframes fire-slide { to { background-position: -200% 0; } }
.hud-clock { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 2px solid rgba(246, 241, 230, .5); font: 800 1.25rem/1 var(--display);
  font-variant-numeric: tabular-nums; opacity: 0; transform: scale(.85); transition: opacity .2s ease-out, transform .3s var(--ease), color .2s, border-color .2s; }
.hud-clock:empty { display: none; }
.hud-clock.on { opacity: 1; transform: none; }
.hud-clock.on.hurry { color: var(--orange); border-color: var(--orange); animation: clock-hurry .5s ease-in-out infinite alternate; }
@keyframes clock-hurry { to { transform: scale(1.1); } }
.hud-tools { justify-self: end; display: flex; gap: 8px; }
.hud-btn { pointer-events: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; min-height: 44px; padding: 0 16px; border-radius: 999px; cursor: pointer;
  border: 2px solid rgba(246, 241, 230, .32); background: rgba(11, 10, 18, .45); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--paper); font: 700 .9rem/1 var(--ui);
  transition: transform .16s ease-out, background-color .2s ease, border-color .2s ease; }
.hud-btn:active { transform: scale(.95); }
@media (hover: hover) and (pointer: fine) { .hud-btn:hover { border-color: var(--paper); background: rgba(246, 241, 230, .1); } }
.hud-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.hud-sound { padding: 0; width: 44px; }
.hud-sound[aria-pressed="true"] { border-color: var(--lime); color: var(--lime); }

/* first-shot hint */
.hoops-hint { position: absolute; z-index: 2; left: 50%; bottom: max(26px, calc(env(safe-area-inset-bottom) + 16px)); display: flex; align-items: center; gap: 10px; margin: 0; padding: 10px 16px;
  width: max-content; max-width: calc(100vw - 32px); border-radius: 999px; background: rgba(11, 10, 18, .6); border: 1px solid var(--line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 600 .88rem/1.3 var(--ui); color: #e9e3f2; text-align: left; pointer-events: none; opacity: 0; transform: translate(-50%, 10px); transition: opacity .2s ease-out, transform .2s ease-out; }
.hoops-hint.on { opacity: 1; transform: translate(-50%, 0); transition: opacity .4s var(--ease) .35s, transform .5s var(--ease) .35s; }
.hint-dot { flex: none; position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); }
.hint-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--lime); animation: hint-ping 1.6s cubic-bezier(.2, .8, .2, 1) infinite; }
@keyframes hint-ping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.8); opacity: 0; } }

/* what happened, floating over the rim */
.hoops-pops { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.hoops-pop { position: absolute; white-space: nowrap; font: 800 clamp(1.5rem, 4.4vw, 2.4rem)/1 var(--display); letter-spacing: -.02em; color: var(--paper);
  text-shadow: 0 6px 24px rgba(0, 0, 0, .5); animation: pop-up 1.15s cubic-bezier(.2, .8, .2, 1) .08s both; }
.hoops-pop.pts { color: var(--lime); font-size: clamp(2.2rem, 6.4vw, 3.8rem); text-shadow: 0 8px 30px rgba(241, 254, 68, .45); animation-delay: 0s; }
.hoops-pop.swish { color: var(--lime); }
.hoops-pop.miss { color: #ffb27a; }
.hoops-pop.fire { color: var(--orange); font-size: clamp(1.8rem, 5vw, 3rem); animation-duration: 1.5s; }
@keyframes pop-up {
  0%   { opacity: 0; transform: translate(-50%, -20%) scale(.6); }
  18%  { opacity: 1; transform: translate(-50%, -60%) scale(1.08); }
  30%  { transform: translate(-50%, -62%) scale(1); }
  72%  { opacity: 1; }
  100% { opacity: 0; transform: translate(-50%, -150%) scale(1); }
}

/* end of the game */
.hoops-card { position: absolute; z-index: 3; left: 50%; top: 50%; width: min(420px, calc(100vw - 32px)); max-height: calc(100% - 32px); overflow: auto; padding: 28px 24px 24px; border-radius: 28px; text-align: center;
  background: rgba(20, 17, 31, .82); border: 1px solid var(--line); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-50%, -46%) scale(.96); transition: opacity .2s ease-out, transform .2s ease-out, visibility 0s .2s; }
.hoops.over .hoops-card { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, -50%); transition: opacity .35s var(--ease) .3s, transform .5s cubic-bezier(.3, 1.3, .5, 1) .3s, visibility 0s .3s; }
.hoops-card > * { opacity: 0; transform: translateY(8px); }
.hoops.over .hoops-card > * { opacity: 1; transform: none; transition: opacity .35s var(--ease), transform .45s var(--ease); }
.hoops.over .hoops-card > :nth-child(1) { transition-delay: .38s; } .hoops.over .hoops-card > :nth-child(2) { transition-delay: .44s; }
.hoops.over .hoops-card > :nth-child(3) { transition-delay: .48s; } .hoops.over .hoops-card > :nth-child(4) { transition-delay: .52s; }
.hoops.over .hoops-card > :nth-child(5) { transition-delay: .56s; } .hoops.over .hoops-card > :nth-child(6) { transition-delay: .62s; }
.card-eyebrow { margin: 0 0 10px; font: 600 .75rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--orange); }
.card-badge { display: none; margin: 0 auto 6px; padding: 5px 12px; width: max-content; border-radius: 999px; background: var(--lime); color: var(--ink); font: 800 .78rem var(--ui); letter-spacing: .04em; }
.hoops-card.record .card-badge { display: block; }
.hoops.over .hoops-card.record .card-badge { animation: badge-pop .6s cubic-bezier(.3, 1.6, .5, 1) .5s both; }
@keyframes badge-pop { 0% { transform: scale(.6) rotate(-6deg); opacity: 0; } 100% { transform: rotate(-2deg); opacity: 1; } }
.card-score { display: block; font: 800 clamp(4rem, 15vw, 6.5rem)/.95 var(--display); letter-spacing: -.04em; color: var(--lime); font-variant-numeric: tabular-nums; }
.card-unit { margin: 2px 0 10px; font: 600 .72rem var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.card-best { margin: 0 0 20px; color: #d7d0e2; font-size: .95rem; }
.card-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hoops .btn { font: inherit; font-weight: 700; cursor: pointer; }
.hoops .btn:active { transform: scale(.97); }
.card-row .btn { flex: 1 1 160px; justify-content: center; }

@media (max-width: 560px) {
  .hud-close span { display: none; }
  .hud-close { padding: 0; width: 44px; }
  .hoops-hint { font-size: .82rem; border-radius: 18px; }
}
@media (max-height: 520px) {
  .hud-num { font-size: 2rem; } .hud-label { font-size: .6rem; }
  .hoops-hint { bottom: max(10px, env(safe-area-inset-bottom)); padding: 7px 12px; }
  .hoops-card { padding: 16px 18px; } .card-score { font-size: 3rem; } .card-best { margin-bottom: 12px; }
}

/* ------------------------------------------------------------------ plan terms, legal links, floating contact (secondary action) */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.plan-terms { max-width: 760px; margin: 34px auto 0; text-align: center; color: #d7d0e2; font-size: .92rem; }
.plan-terms a, .foot-legal a { color: var(--paper); text-underline-offset: 3px; }
.foot-legal ul { list-style: none; margin: 0; padding: 0; }
.contact-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: flex;
  flex-direction: column; align-items: flex-end; gap: 8px; }
.contact-fab a { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: 999px;
  border: 2px solid var(--paper); background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; }
.contact-fab a:hover { background: var(--paper); color: var(--ink); }
.contact-fab svg { width: 20px; height: 20px; flex: none; }
.consent-banner { position: fixed; z-index: 95; left: 16px; right: 16px; bottom: 16px; max-width: 640px; margin-inline: auto; padding: 18px;
  display: grid; gap: 12px; background: var(--ink-2); color: var(--paper); border: 2px solid var(--paper); border-radius: 18px; }
.consent-title { margin: 0; font-size: 1.2rem; } .consent-text { margin: 0; } .consent-text a { color: var(--paper); }
.consent-options { border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; display: grid; gap: 10px; }
.consent-option { display: flex; gap: 10px; align-items: flex-start; } .consent-option small { display: block; color: var(--muted); }
.consent-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.consent-btn { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 2px solid var(--paper); background: transparent; color: var(--paper);
  font: 700 .95rem var(--ui); cursor: pointer; }
.consent-link { border-color: transparent; text-decoration: underline; }
.link-btn { background: none; border: 0; padding: 0 6px; min-height: 44px; color: var(--paper); font: inherit; text-decoration: underline; cursor: pointer; }

/* Wrapped showcase: the default style in the phone, the other two styles fanned out behind it */
.phone-side { position: absolute; top: 9%; width: 72%; z-index: -1; border-radius: 26px; overflow: hidden; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); opacity: .92; }
.phone-side img { display: block; width: 100%; height: auto; }
.phone-side.left { left: -34%; transform: rotate(-9deg); }
.phone-side.right { right: -34%; transform: rotate(9deg); }
@media (max-width: 600px) { .phone-side.left { left: -18%; } .phone-side.right { right: -18%; } .phone-side { width: 62%; } }


/* ======================================================= accounting + everything else */
.money { padding: 130px clamp(18px, 6vw, 96px); background: linear-gradient(180deg, var(--ink), #120e1d); position: relative; z-index: 4; overflow: hidden; }
.money-grid { grid-template-columns: minmax(0, 1fr) minmax(0, .75fr); }
.receipt { margin: 0; justify-self: center; width: min(100%, 380px); background: var(--paper); color: var(--ink); border-radius: 18px 18px 6px 6px; padding: 24px 24px 20px;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06); font-family: var(--mono); transform: rotate(-1.5deg); }
.receipt figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 12px; border-bottom: 2px dashed #b9b0a0; }
.receipt figcaption b { font: 700 1rem var(--display); letter-spacing: -.01em; }
.receipt figcaption span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #5a5346; }
.receipt dl { margin: 12px 0 0; display: grid; gap: 10px; font-size: .86rem; }
.receipt dl div { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; }
.receipt dt small { display: block; font-size: .7rem; color: #5a5346; }
.receipt dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.receipt .minus dd { color: #a1301c; }
.receipt .total { border-top: 2px solid var(--ink); padding-top: 10px; font: 800 1.15rem var(--display); }
.receipt-foot { margin: 14px 0 0; font-size: .74rem; color: #5a5346; }
@media (prefers-reduced-motion: no-preference) { .receipt { transition: transform .5s var(--ease); } .receipt:hover { transform: rotate(0deg) translateY(-4px); } }
.more { padding: 120px clamp(18px, 6vw, 96px); background: #120e1d; position: relative; z-index: 4; }
.feat-grid { display: grid; gap: 18px; margin-top: 30px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .feat-grid { grid-template-columns: minmax(0, 1fr); } }
.feat { border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: rgba(255, 255, 255, .03); transition: transform .3s var(--ease), border-color .3s; }
@media (hover: hover) { .feat:hover { transform: translateY(-4px); border-color: var(--lime); } }
.feat h3 { font: 700 1.3rem/1.15 var(--display); letter-spacing: -.02em; margin: 14px 0 8px; }
.feat p { color: #d7d0e2; margin: 0; }
.feat-tag { display: inline-block; font: 700 .68rem var(--mono); letter-spacing: .12em; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--orange); color: var(--orange); }
@media (max-width: 900px) { .money-grid { grid-template-columns: minmax(0, 1fr); } .receipt { transform: none; } }
