/* HitZero — the launch site. One look on purpose: the commercial's night stage (deep purple, neon pink / cyan / yellow). */
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-900-italic.woff2") format("woff2"); font-weight: 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-800-italic.woff2") format("woff2"); font-weight: 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  --ink: #0b0620; --ink-2: #140a33; --ink-3: #1d1048; --line: #3a2a78;
  --fg: #ffffff; --muted: #c8c0ea; --dim: #9d93c9;
  --pink: #ff2d95; --cyan: #16c7ff; --yellow: #ffd400; --lime: #7cdb1f; --purple: #8b3dff; --orange: #ff7a00; --sky: #8fd3ff; --blue: #2e9be6;
  --display: "Barlow Condensed", "Avenir Next Condensed", "Arial Narrow", Impact, sans-serif;
  --body: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: max(16px, 4vw);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body { margin: 0; background: var(--ink); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.5; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--sky); }
.sr, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 50; background: var(--yellow); color: #000; padding: 8px 14px; border-radius: 10px; font-weight: 800; }
.skip:focus { left: 8px; }

/* type */
.display { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; line-height: 0.92; letter-spacing: 0.005em; margin: 0; font-size: clamp(48px, 9vw, 104px); text-wrap: balance; }
.display.center { text-align: center; }
.pop { display: inline-block; color: #fff; paint-order: stroke fill; -webkit-text-stroke: 0.09em var(--c, var(--pink)); text-shadow: 0 0 0.35em color-mix(in srgb, var(--c, var(--pink)) 70%, transparent), 0.04em 0.06em 0 rgba(0, 0, 0, 0.45); padding: 0 0.06em; transform: rotate(-2deg); }
.pop.pink { --c: var(--pink); } .pop.cyan { --c: var(--cyan); } .pop.yellow { --c: var(--yellow); color: #fff; } .pop.lime { --c: #22c55e; } .pop.sky { --c: var(--blue); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; text-decoration: none; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; letter-spacing: 0.02em; color: #1a0b00; background: linear-gradient(180deg, #ffe55c, var(--yellow) 55%, #ffb800); border-radius: 999px; box-shadow: 0 6px 0 #c47f00, 0 10px 30px rgba(255, 196, 0, 0.35); transition: transform 0.12s, box-shadow 0.12s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 #c47f00, 0 14px 34px rgba(255, 196, 0, 0.45); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #c47f00, 0 6px 16px rgba(255, 196, 0, 0.3); }
.btn:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, .sound:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.btn-small { font-size: 18px; padding: 10px 18px; box-shadow: 0 4px 0 #c47f00; }
.btn-big { font-size: 28px; padding: 16px 28px; width: 100%; }
.btn[disabled] { opacity: 0.7; cursor: progress; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gutter) 10px; background: color-mix(in srgb, var(--ink) 78%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; color: #fff; }
.brand img { width: 46px; height: auto; }
.wordmark { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 30px; letter-spacing: 0.01em; line-height: 1; }
.wordmark span { color: var(--sky); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 28px var(--gutter) 64px; isolation: isolate; }
.rays { position: absolute; inset: -60%; z-index: -2; background: repeating-conic-gradient(from 0deg at 50% 50%, #241050 0deg 9deg, #160a38 9deg 18deg); animation: spin 60s linear infinite; opacity: 0.9; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 70% 40%, transparent 0 25%, var(--ink) 75%); }
.sparkles { position: absolute; inset: 0; z-index: -1; background-image: radial-gradient(2px 2px at 12% 22%, #fff, transparent), radial-gradient(2px 2px at 78% 14%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 70%, #fff, transparent), radial-gradient(2px 2px at 90% 64%, #fff, transparent), radial-gradient(1.5px 1.5px at 25% 88%, #fff, transparent), radial-gradient(2.5px 2.5px at 60% 30%, #ffe9a8, transparent), radial-gradient(1.5px 1.5px at 6% 52%, #fff, transparent), radial-gradient(2px 2px at 52% 8%, #fff, transparent); animation: twinkle 3.2s ease-in-out infinite alternate; }
.hero-inner { max-width: 1160px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-copy { min-width: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); font-weight: 800; font-size: 14px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--yellow); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); animation: blink 1.4s ease-in-out infinite; }
.hero h1 { font-size: clamp(60px, 11vw, 132px); }
.hero h1 .pop { display: inline-block; margin-top: 0.08em; }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--muted); max-width: 32ch; margin: 22px 0 26px; }
.lede strong { color: #fff; }

/* the sign-up */
.join { display: grid; gap: 10px; max-width: 520px; }
.join-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.join input, .join select { min-width: 0; width: 100%; font: inherit; font-size: 17px; color: #fff; background: rgba(255, 255, 255, 0.08); border: 2px solid rgba(255, 255, 255, 0.18); border-radius: 16px; padding: 14px 16px; }
.join select { appearance: none; -webkit-appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 52%, calc(100% - 14px) 52%; background-size: 6px 6px; background-repeat: no-repeat; }
.join select option { color: #000; }
.join input::placeholder { color: var(--dim); }
.join input:focus, .join select:focus { border-color: var(--cyan); background-color: rgba(22, 199, 255, 0.08); }
.join .gym { display: none; }
.join.gym-on .gym { display: block; }
.msg { margin: 2px 0 0; min-height: 1.4em; font-weight: 700; color: var(--yellow); }
.msg.err { color: #ff8a9f; }
.fine { font-size: 13.5px; color: var(--dim); max-width: 52ch; margin: 14px 0 0; }
.done { display: grid; gap: 8px; padding: 22px; border-radius: 22px; background: linear-gradient(135deg, rgba(124, 219, 31, 0.18), rgba(22, 199, 255, 0.14)); border: 2px solid rgba(124, 219, 31, 0.55); max-width: 520px; animation: pop-in 0.5s cubic-bezier(.2, 1.6, .4, 1); }
.done h3 { margin: 0; font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase; font-size: 40px; line-height: 1; }
.done p { margin: 0; color: var(--muted); }
.done .share { justify-self: start; margin-top: 6px; font-size: 20px; padding: 10px 18px; }

/* the phone with the commercial */
.hero-phone { position: relative; justify-self: center; width: min(360px, 82vw); }
.phone { position: relative; border-radius: 46px; padding: 12px; background: linear-gradient(160deg, #3a3a48, #121218 40%, #24242e); box-shadow: 0 0 0 2px #4b4b5c inset, 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 120px rgba(255, 45, 149, 0.25); }
.phone video, .phone img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 36px; background: #000; }
.phone .island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 30%; height: 24px; border-radius: 14px; background: #000; }
.hero-phone .phone { transform: rotate(3deg); animation: float 6s ease-in-out infinite; }
.sound { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; border: 2px solid rgba(255, 255, 255, 0.25); background: rgba(11, 6, 32, 0.85); color: #fff; font: 800 15px var(--body); cursor: pointer; white-space: nowrap; backdrop-filter: blur(8px); }
.sound[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); }
.sticker { position: absolute; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 24px; padding: 6px 14px; border-radius: 12px; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4); }
.s1 { top: 14%; left: -12%; background: #fff; color: #000; transform: rotate(-10deg); animation: bob 3s ease-in-out infinite; }
.s2 { bottom: 20%; right: -10%; background: linear-gradient(90deg, #d946ef, #8b3dff); color: #fff; transform: rotate(8deg); animation: bob 3.4s ease-in-out infinite 0.6s; }

/* the scrolling words */
.band { overflow: hidden; padding: 18px 0; }
.marquee { overflow: hidden; background: var(--pink); transform: rotate(-2deg); margin: 10px -20px; padding: 12px 0; box-shadow: 0 10px 40px rgba(255, 45, 149, 0.35); }
.track { display: flex; width: max-content; gap: 28px; animation: slide 22s linear infinite; font-family: var(--display); font-weight: 900; font-style: italic; font-size: clamp(30px, 5vw, 48px); line-height: 1; color: #fff; }
.track i { font-style: normal; color: var(--yellow); }

section { scroll-margin-top: 80px; }
.how, .inside, .sees, .parents, .faq { padding: 84px var(--gutter); max-width: 1160px; margin: 0 auto; }

/* how */
.steps { list-style: none; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.steps li { position: relative; padding: 28px 24px 26px; border-radius: 26px; background: linear-gradient(180deg, var(--ink-3), var(--ink-2)); border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 34px; color: #000; background: var(--cyan); box-shadow: 0 0 24px rgba(22, 199, 255, 0.5); transform: rotate(-6deg); }
.steps li:nth-child(2) .num { background: var(--pink); color: #fff; box-shadow: 0 0 24px rgba(255, 45, 149, 0.5); }
.steps li:nth-child(3) .num { background: var(--yellow); box-shadow: 0 0 24px rgba(255, 212, 0, 0.5); }
.steps h3, .card h3, .trust h3 { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 18px 0 8px; }
.steps p, .card p, .trust p { margin: 0; color: var(--muted); }

/* cards */
.cards { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { position: relative; border-radius: 26px; overflow: hidden; background: var(--ink-2); border: 2px solid color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 0 40px color-mix(in srgb, var(--c) 22%, transparent); transition: transform 0.2s; }
.card:hover { transform: translateY(-6px) rotate(-0.6deg); }
.card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.card-text { padding: 4px 20px 22px; }
.card h3 { color: #fff; font-size: 42px; margin-top: 6px; text-shadow: 0 0 18px color-mix(in srgb, var(--c) 80%, transparent); }
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 30px; }
.chips span { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.14); font-weight: 800; font-size: 15px; }

/* the camera games */
.sees { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; align-items: center; }
.sees-copy { min-width: 0; }
.sees-copy p { color: var(--muted); font-size: 19px; max-width: 42ch; margin: 22px 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 700; font-size: 18px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 8px; background: #22c55e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.5l4.2 4L19 7' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.screens { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: center; }
.phone.small { margin: 0; padding: 7px; border-radius: 28px; }
.phone.small img { border-radius: 22px; }
.tilt-l { transform: rotate(-5deg) translateY(16px); }
.tilt-r { transform: rotate(3deg) translateY(-14px); z-index: 1; }
.tilt-l2 { transform: rotate(-2deg) translateY(22px); }

/* grown-ups */
.trust { margin-top: 44px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.trust-item { padding: 26px 22px; border-radius: 24px; background: linear-gradient(180deg, #12213f, #0e1530); border: 1px solid #23406e; }
.trust-item img { width: 64px; height: 64px; border-radius: 50%; }
.ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(143, 211, 255, 0.14); color: var(--sky); }
.ico svg { width: 32px; height: 32px; }
.trust h3 { font-size: 26px; }
.safety { margin: 26px auto 0; max-width: 70ch; text-align: center; color: var(--dim); font-size: 15px; }

/* questions */
.qs { margin: 36px auto 0; max-width: 780px; display: grid; gap: 12px; }
details { border-radius: 20px; background: var(--ink-2); border: 1px solid var(--line); padding: 0 22px; }
summary { cursor: pointer; list-style: none; padding: 20px 34px 20px 0; position: relative; font-weight: 800; font-size: 19px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font-size: 30px; font-weight: 400; color: var(--yellow); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 20px; color: var(--muted); }

/* the last push */
.final { position: relative; overflow: hidden; padding: 96px var(--gutter) 110px; isolation: isolate; }
.final-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: 0.45; filter: saturate(1.2); }
.final::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, var(--ink), rgba(11, 6, 32, 0.55) 40%, rgba(11, 6, 32, 0.75) 70%, var(--ink)); }
.final-inner { max-width: 620px; margin: 0 auto; display: grid; gap: 30px; justify-items: center; }
.final .join { width: 100%; }

.foot { display: grid; justify-items: center; gap: 6px; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid rgba(255, 255, 255, 0.07); color: var(--dim); text-align: center; }
.foot p { margin: 0; }
.foot .brand img { width: 40px; }
.foot .wordmark { font-size: 26px; }
.copy { font-size: 13px; }

#confetti { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 60; }

/* appear as you scroll */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(.2, .9, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
.screens .reveal.in.tilt-l { transform: rotate(-5deg) translateY(16px); }
.screens .reveal.in.tilt-r { transform: rotate(3deg) translateY(-14px); }
.screens .reveal.in.tilt-l2 { transform: rotate(-2deg) translateY(22px); }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes twinkle { from { opacity: 0.45; } to { opacity: 1; } }
@keyframes blink { 50% { opacity: 0.3; } }
@keyframes float { 50% { transform: rotate(3deg) translateY(-12px); } }
@keyframes bob { 50% { translate: 0 -8px; } }
@keyframes slide { to { transform: translateX(-50%); } }
@keyframes pop-in { from { transform: scale(0.8); opacity: 0; } }

/* tablets */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-copy { text-align: center; }
  .lede, .join, .fine { margin-left: auto; margin-right: auto; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sees { grid-template-columns: 1fr; }
  .sees-copy { text-align: center; }
  .sees-copy p { margin-left: auto; margin-right: auto; }
  .ticks { justify-content: center; }
  .trust { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* phones */
@media (max-width: 620px) {
  body { font-size: 16px; }
  .wordmark { font-size: 26px; }
  .brand img { width: 40px; }
  .btn-small { font-size: 16px; padding: 9px 14px; }
  .hero { padding-top: 22px; }
  .join-row { grid-template-columns: 1fr; }
  .btn-big { font-size: 24px; }
  .steps { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr; }
  .card img { aspect-ratio: 5 / 4; object-position: 50% 30%; }
  .trust { grid-template-columns: 1fr; }
  .how, .inside, .sees, .parents, .faq { padding-top: 64px; padding-bottom: 64px; }
  .s1 { left: -4%; } .s2 { right: -4%; }
  .sticker { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* the header's Instagram button, and the line under a sign-up (10-18 night) */
.nav-right { display: flex; align-items: center; gap: 10px; }
.ig { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #fff; }
.ig:hover { background: rgba(255, 255, 255, 0.18); }
.done .follow { margin-top: 14px; font-weight: 800; }
.done .follow a { color: var(--sky); }

/* the challenge page (playhitzero.com/play/<game>?beat=N: hitzero/scripts/share/site-challenges.ts) */
.dare-game { margin: 14px 0 0; font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(28px, 4.4vw, 46px); line-height: 1; color: var(--cyan); text-wrap: balance; }
.dare-page .lede { margin: 16px 0 18px; }
.dare-soon { margin: 0 0 14px; color: var(--muted); max-width: 40ch; }
.dare-soon strong { color: #fff; }
