/* ============================================================================
   hoopme.app home page. Its own sheet so /privacy, /support and /terms keep
   styles.css untouched.
   Type:   Archivo on the wdth axis for voice, JetBrains Mono for data.
   Color:  asphalt neutrals; orange (#FE5C01) only for live signals and CTAs,
           the same rule the app follows.
   Shape:  pills for interactive controls, 28px for devices and tiles, 9px on
           anything that sits beside Apple's badge.
   Motion: GSAP + ScrollTrigger in home.js. Everything here renders complete
           without JS and under prefers-reduced-motion.
   ========================================================================= */

:root {
  --ink: #0b0b0d;
  --ink-2: #0f0f12;
  --card: #141417;
  --card-2: #1a1a1e;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.13);
  --text: #f4f4f6;
  --muted: #9c9ca6;
  --muted-2: #6c6c77;
  --orange: #fe5c01;
  --orange-2: #ff8b45;
  --orange-dim: rgba(254, 92, 1, 0.14);

  --font: 'Archivo', ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --wide: 118%;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --r-tile: 28px;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 48px);

  /* z scale: content 0, floating chips 2, nav 40, grain 90, skip link 100 */
  --z-chip: 2;
  --z-nav: 40;
  --z-grain: 90;
  --z-skip: 100;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--ink); }
body {
  font-family: var(--font);
  font-weight: 450;
  color: var(--text);
  background: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }
strong { font-weight: 700; }
.mono { font-family: var(--mono); letter-spacing: 0.02em; }
.accent { color: var(--orange); }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }

/* Asphalt grain on a fixed, non-scrolling layer (never on scrolling content) */
body::after {
  content: ""; position: fixed; inset: 0; z-index: var(--z-grain); pointer-events: none;
  opacity: 0.05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.skip { position: absolute; left: 12px; top: -60px; z-index: var(--z-skip); background: var(--orange); color: #fff; padding: 10px 16px; border-radius: 99px; font-weight: 700; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

/* ---------------- Buttons (share Apple badge geometry: 55px / 9px) ------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 55px; padding: 0 24px; border-radius: 9px;
  font-weight: 700; font-size: 1rem; white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.btn-ghost { border: 1.5px solid var(--line-2); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: rgba(255,255,255,0.35); background: rgba(255,255,255,0.05); }
.btn:active { transform: scale(0.98); }
.btn-sm { height: 40px; padding: 0 16px; font-size: .92rem; border-radius: 99px; }
.btn i { font-size: 1.05rem; color: var(--orange); }
.badge { display: inline-block; border-radius: 9px; }
.badge img { height: 55px; width: auto; }

/* ---------------- Nav ---------------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav); height: 68px;
  display: flex; align-items: center;
  transition: background .35s var(--ease), border-color .35s var(--ease), transform .45s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(11,11,13,0.72); backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%); border-bottom-color: var(--line); }
.nav.hide { transform: translateY(-100%); }
.nav-in { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-stretch: var(--wide); letter-spacing: -0.02em; font-size: 1.12rem; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: .95rem; color: var(--muted); }
.nav-links > a:not(.btn):hover { color: var(--text); }

/* ---------------- Shared type ---------------- */
.big {
  font-weight: 850; font-stretch: var(--wide); letter-spacing: -0.035em; line-height: 0.98;
  font-size: clamp(2.5rem, 6vw, 5.4rem);
}
.lede { color: var(--muted); font-size: clamp(1.02rem, 1.3vw, 1.18rem); max-width: 46ch; }

/* ---------------- Phone (drawn frame around a real screenshot) ---------- */
.phone {
  position: relative; width: min(360px, 78vw); aspect-ratio: 660 / 1434;
  border-radius: 54px; padding: 11px;
  background: linear-gradient(145deg, #2a2a30, #121215 40%, #1d1d22);
  box-shadow: inset 0 0 0 1.5px rgba(255,255,255,0.08), 0 50px 120px -30px rgba(0,0,0,0.85), 0 30px 80px -40px rgba(254,92,1,0.25);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #0d1520; isolation: isolate; }
.screen > img, .zoom > img { width: 100%; height: 100%; object-fit: cover; }

/* ---------------- HERO ---------------- */
.hero { position: relative; min-height: 100dvh; display: flex; align-items: center; padding: 108px 0 64px; overflow: hidden; }
.court {
  position: absolute; left: 50%; top: 0; width: min(1500px, 140vw); transform: translateX(-38%);
  opacity: .55; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 30%, transparent 92%); mask-image: linear-gradient(to bottom, #000 30%, transparent 92%);
}
.court-lines path, .court-lines circle { fill: none; stroke: rgba(254,92,1,0.28); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.court-lines .dash { stroke-dasharray: 6 7; }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(24px, 5vw, 72px); }
.kinetic { font-weight: 900; font-stretch: var(--wide); letter-spacing: -0.045em; line-height: 0.98; font-size: clamp(2.3rem, 4.5vw, 4.6rem); }
.kinetic .line { display: block; white-space: nowrap; }
.kinetic .w { display: inline-block; }
.kinetic .me { color: var(--text); }
.sub { margin-top: 28px; font-size: clamp(1.08rem, 1.45vw, 1.28rem); color: #c9c9d1; max-width: 34ch; }
.cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.note { margin-top: 22px; font-size: .95rem; color: var(--muted); }
.note strong { color: var(--text); }

.hero-art { position: relative; display: grid; place-items: center; perspective: 1400px; }
.hero-art .phone { width: min(340px, 74vw); }
.hero-art .phone { transform-style: preserve-3d; }
.ping {
  position: absolute; left: var(--x); top: var(--y); width: 16%; aspect-ratio: 1; translate: -50% -50%;
  border-radius: 50%; border: 2px solid var(--orange); pointer-events: none;
  animation: ping 2.4s var(--ease) infinite;
}
.ping-sm { width: 9%; animation-delay: .8s; }
@keyframes ping { 0% { scale: .4; opacity: .9; } 80%, 100% { scale: 2.2; opacity: 0; } }
.float-chip {
  position: absolute; z-index: var(--z-chip);
  display: inline-flex; align-items: center; gap: 9px;
  padding: 10px 16px; border-radius: 99px; font-size: .82rem; white-space: nowrap;
  background: rgba(20,20,23,0.8); border: 1px solid var(--line-2);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 18px 40px -18px rgba(0,0,0,0.8);
}
.chip-a { left: -6%; top: 22%; }
.chip-b { right: -8%; top: 64%; color: var(--muted); }
.chip-a .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px var(--orange-dim); }
.count { color: var(--orange); font-weight: 700; }

/* ---------------- REEL ---------------- */
.reel { position: relative; padding: 120px 0 80px; }
.reel-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 56px; }
.reel-track { display: flex; gap: clamp(18px, 2.4vw, 32px); padding: 0 var(--gutter); width: max-content; }
.clip-card { width: clamp(240px, 25vw, 360px); flex: none; }
.clip-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: var(--r-tile); overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0,0,0,0.9);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.clip-frame video { width: 100%; height: 100%; object-fit: cover; }
.clip-card:hover .clip-frame { transform: translateY(-6px); box-shadow: 0 50px 90px -40px rgba(254,92,1,0.35); }
.clip-card figcaption { margin-top: 16px; font-weight: 800; font-stretch: var(--wide); font-size: 1.15rem; letter-spacing: -0.02em; display: flex; gap: 12px; align-items: baseline; }
.clip-card figcaption .mono { font-size: .78rem; color: var(--orange); font-weight: 700; }
.sound {
  position: absolute; right: 12px; bottom: 12px; width: 42px; height: 42px; border-radius: 99px;
  display: grid; place-items: center; border: 1px solid var(--line-2); cursor: pointer;
  background: rgba(11,11,13,0.7); color: var(--text); font-size: 1.05rem;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background .25s var(--ease), transform .2s var(--ease);
}
.sound:hover { background: rgba(254,92,1,0.9); }
.sound:active { transform: scale(0.94); }
.sound.on { background: var(--orange); border-color: var(--orange); }

/* ---------------- THE DRIVE ---------------- */
.drive { position: relative; }
.drive-pin { min-height: 100dvh; display: flex; align-items: center; padding: 96px 0; }
.drive-in { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(24px, 6vw, 96px); align-items: center; }
.beats { position: relative; min-height: 2.2em; font-weight: 900; font-stretch: var(--wide); letter-spacing: -0.04em; line-height: 1; font-size: clamp(2.4rem, 5.2vw, 4.8rem); }
.beat + .beat { margin-top: 0.3em; }
/* With JS the three beats share one spot and replace each other on scroll. */
.js .beats { min-height: 3.1em; }
.js .beat { position: absolute; left: 0; top: 0; margin: 0; opacity: 0; }
.drive-body { margin-top: 40px; color: var(--muted); max-width: 48ch; font-size: 1.08rem; }
.drive-art { display: grid; place-items: center; }
.phone-flat { width: min(340px, 74vw); }
.zoom { position: absolute; inset: 0; transform-origin: 0 0; }
.route { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.route path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 2 13; }
.here {
  /* Lives inside the 3x zoom, so it is authored at a third of its on-screen size */
  position: absolute; left: 47.7%; top: 7.4%; translate: -50% -100%;
  font-size: 3.8px; padding: 1.8px 3.2px; border-radius: 99px; white-space: nowrap; border-width: 0.4px;
  background: rgba(11,11,13,0.85); border: 1px solid rgba(255,255,255,0.3); color: #d6d6de; letter-spacing: .12em;
}

/* ---------------- HOW ---------------- */
.how { padding: 80px 0 40px; }
.how-in { display: grid; grid-template-columns: 1fr 0.8fr; gap: clamp(24px, 6vw, 96px); }
.how-steps h2 { margin-bottom: 18vh; }
.step { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; max-width: 30rem; opacity: .28; transition: opacity .5s var(--ease); }
.step.active { opacity: 1; }
.step h3 { font-weight: 850; font-stretch: var(--wide); letter-spacing: -0.03em; font-size: clamp(1.7rem, 2.8vw, 2.5rem); line-height: 1.05; }
.step p { margin-top: 16px; color: var(--muted); font-size: 1.08rem; }
.step:last-child { min-height: 80vh; }
.how-art { position: relative; }
.sticky-phone { position: sticky; top: calc(50vh - min(360px, 78vw) * 1434 / 660 / 2 + 20px); margin: 0 auto; }
.stack img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease), transform .8s var(--ease); transform: scale(1.03); }
.stack img.on { opacity: 1; transform: none; }
.step-dots { position: sticky; bottom: 8vh; display: flex; gap: 8px; justify-content: center; margin-top: 24px; }
.step-dots i { width: 22px; height: 4px; border-radius: 4px; background: var(--line-2); transition: background .4s var(--ease), width .4s var(--ease); }
.step-dots i.on { background: var(--orange); width: 40px; }

/* ---------------- HOOPME+ ---------------- */
.plus { padding: 140px 0 100px; }
.plus-mark { color: var(--orange); }
.plus .big .plus-mark { font-weight: 900; }
.bento {
  margin-top: 64px; display: grid; gap: 18px;
  grid-template-columns: 1.25fr 1fr 0.9fr;
  grid-template-areas: "next chat alert" "next chat season";
}
.tile { position: relative; overflow: hidden; border-radius: var(--r-tile); background: var(--card); border: 1px solid var(--line); padding: 30px; }
.tile h3 { font-weight: 850; font-stretch: var(--wide); letter-spacing: -0.025em; font-size: 1.5rem; }
.tile p { margin-top: 10px; color: var(--muted); }
.tile-next { grid-area: next; display: flex; flex-direction: column; gap: 26px; background: linear-gradient(180deg, #16161a, #111114); }
.tile-chat { grid-area: chat; display: flex; flex-direction: column; gap: 26px; }
.tile-alert { grid-area: alert; background: radial-gradient(120% 120% at 100% 0%, rgba(254,92,1,0.32), transparent 55%), var(--card); }
.tile-alert i { font-size: 2rem; color: var(--orange); margin-bottom: 18px; display: block; transform-origin: 50% 10%; }
.tile-season { grid-area: season; background:
  repeating-linear-gradient(135deg, rgba(255,255,255,0.025) 0 2px, transparent 2px 14px), var(--card-2); }
/* Got Next: three real captures of one line, cropped to the list */
.line-shots { position: relative; flex: 1; min-height: 300px; border-radius: 20px; overflow: hidden; background: #2b2926; border: 1px solid var(--line); }
.ls { position: absolute; inset: 0; background-repeat: no-repeat; background-size: 150% auto; background-position: 3% 99%; opacity: 0; }
.ls:first-child { opacity: 1; }
/* Crew chat: real capture, messages revealed top to bottom */
.chat-shot {
  flex: 1; min-height: 300px; border-radius: 20px; border: 1px solid var(--line);
  background: #0c0b0b url(/shots/crewchat.webp) no-repeat; background-size: 128% auto; background-position: 20% 13%;
}
.tiers { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tier { border-radius: var(--r-tile); border: 1px solid var(--line); padding: 30px; background: var(--ink-2); }
.tier h3 { font-weight: 800; font-stretch: var(--wide); font-size: 1.2rem; }
.price { margin-top: 8px; font-weight: 900; font-stretch: var(--wide); font-size: clamp(2.6rem, 4vw, 3.6rem); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1; }
.price small { font-size: 1rem; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 8px; }
.tier-note { margin-top: 12px; color: var(--muted); }
.tier-plus { border-color: rgba(254,92,1,0.4); background: linear-gradient(160deg, rgba(254,92,1,0.12), transparent 60%), var(--ink-2); }
.tier-foot { grid-column: 1 / -1; color: var(--muted-2); font-size: .95rem; margin-top: 6px; }

/* ---------------- STRAIGHT UP ---------------- */
.honest { padding: 120px 0; }
.honest-in { max-width: 980px; }
.honest .big { font-size: clamp(2.2rem, 5vw, 4.4rem); }
.read { margin: 44px 0 40px; font-weight: 700; font-stretch: 108%; letter-spacing: -0.015em; line-height: 1.32; font-size: clamp(1.35rem, 2.4vw, 2.05rem); color: var(--text); }
.read .rw { opacity: .16; transition: opacity .2s linear; }

/* ---------------- TRUST ---------------- */
.trust { padding: 40px 0 120px; }
.trust-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 0; border-top: 1px solid var(--line); }
.t { padding: 36px 32px 0 0; }
.t + .t { padding-left: 32px; border-left: 1px solid var(--line); }
.t i { font-size: 1.6rem; color: var(--orange); }
.t h3 { margin-top: 14px; font-weight: 800; font-stretch: var(--wide); font-size: 1.2rem; letter-spacing: -0.02em; }
.t p { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.t p a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------------- FINAL ---------------- */
.final { padding: 60px 0 120px; overflow: hidden; }
.marquee { overflow: hidden; }
.mq-track { display: flex; gap: 0.5em; width: max-content; font-weight: 900; font-stretch: var(--wide); letter-spacing: -0.045em; font-size: clamp(3.6rem, 11vw, 10rem); line-height: 1; white-space: nowrap; }
.mq-track span { padding-right: 0.5em; }
.mq-track .o { color: var(--orange); }
.final-in { margin-top: 56px; display: flex; justify-content: center; }

/* ---------------- FOOTER ---------------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 64px; color: var(--muted); font-size: .92rem; }
.footer .wrap { display: grid; gap: 22px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-links a:hover { color: var(--text); }
.copy { color: var(--muted-2); font-size: .82rem; max-width: 90ch; }

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .hide-sm { display: none; }
  .hero { padding-top: 96px; }
  .hero-in, .drive-in, .how-in { grid-template-columns: 1fr; }
  .hero-art { margin-top: 24px; }
  .kinetic { font-size: clamp(2.4rem, 11.5vw, 3.6rem); }
  .kinetic .line { white-space: normal; }
  .chip-a { left: 0; } .chip-b { display: none; }
  .reel-track { width: auto; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px; scrollbar-width: none; }
  .reel-track::-webkit-scrollbar { display: none; }
  .clip-card { scroll-snap-align: center; width: 70vw; max-width: 300px; }
  /* Drive: text + phone must fit one phone screen while pinned */
  .drive-pin { padding: 76px 0 16px; }
  .drive-art { margin-top: 20px; }
  .drive .phone-flat { width: auto; height: 42vh; padding: 7px; border-radius: 34px; }
  .drive .phone-flat .screen { border-radius: 28px; }
  .drive-body { margin-top: 18px; font-size: .95rem; }
  /* How: a solid band behind the sticky phone so steps scroll under it cleanly */
  .how-art { order: -1; position: sticky; top: 64px; z-index: 1; height: 50vh; padding-bottom: 2vh;
             background: linear-gradient(var(--ink) 88%, rgba(11,11,13,0)); }
  .how-art .phone { width: auto; height: 46vh; top: 0; padding: 7px; border-radius: 34px; }
  .how-art .phone .screen { border-radius: 28px; }
  .step-dots { display: none; }
  .how-steps h2 { margin-bottom: 8vh; }
  .step { min-height: 46vh; }
  .step:last-child { min-height: 50vh; }
  .bento { grid-template-columns: 1fr; grid-template-areas: "next" "chat" "alert" "season"; }
  .tiers { grid-template-columns: 1fr; }
  .trust-in { grid-template-columns: 1fr; }
  .t, .t + .t { padding: 28px 0 0; border-left: 0; }
}
@media (max-width: 460px) {
  .badge img { height: 48px; }
  .btn { height: 48px; }
  .nav-links { gap: 16px; }
}

/* Reduced motion: every loop and scrub collapses to a still, complete page. */
@media (prefers-reduced-motion: reduce) {
  .ping { animation: none; opacity: 0; }
  .stack img { transition: none; }
  .step { opacity: 1; }
  .read .rw { opacity: 1; }
}
