/* Whutzthat? — the game's own mini site. Colors and type come straight from the app
   (Design/Theme.swift): Bagel Fat One for display, Figtree for body, Rubik Mono One for After Dark. */

/* Self-hosted (Latin subsets of the app's own fonts) so no visitor data goes to a font CDN. */
@font-face { font-family: "Bagel Fat One"; src: url("assets/fonts/BagelFatOne-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("assets/fonts/Figtree-Variable.woff2") format("woff2"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Rubik Mono One"; src: url("assets/fonts/RubikMonoOne-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }

:root {
  --night: #0b0b18;
  --night-2: #15132e;
  --ink: #181a2f;
  --ink-soft: #4a4e6e;
  --paper: #f4f5fa;
  --yellow: #ffd23f;
  --pink: #ff3e7f;
  --violet: #5b4bdb;
  --purple: #8a3fd9;
  --teal: #0fb5a3;
  --orange: #ff8a1f;
  --sky: #2e9bff;
  --lime: #7bc62d;
  --red: #f2424f;
  --neon-cyan: #39ffda;
  --neon-pink: #ff4fd8;
  --display: "Bagel Fat One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, sans-serif;
  --neon: "Rubik Mono One", "Bagel Fat One", system-ui, sans-serif;
  --radius: 28px;
  --shadow-pop: 0 6px 0 rgba(0, 0, 0, 0.22);
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--night);
  color: #fff;
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.02; margin: 0; letter-spacing: 0.005em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }

/* ---------- Animated backdrop (the title screen's color mesh) ---------- */

.mesh { position: absolute; inset: 0; overflow: hidden; z-index: 0; pointer-events: none; }
.mesh .blob {
  position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%;
  filter: blur(80px); opacity: 0.75; mix-blend-mode: screen;
  animation: drift 22s ease-in-out infinite alternate;
}
.mesh .b1 { background: var(--violet); top: -25vmax; left: -15vmax; }
.mesh .b2 { background: var(--pink); top: -10vmax; right: -25vmax; animation-delay: -6s; animation-duration: 26s; }
.mesh .b3 { background: var(--purple); bottom: -30vmax; left: 10vmax; animation-delay: -12s; }
.mesh .b4 { background: var(--orange); bottom: -35vmax; right: -10vmax; opacity: 0.45; animation-delay: -3s; animation-duration: 30s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(8vmax, 6vmax) scale(1.12); }
  100% { transform: translate(-6vmax, 10vmax) scale(0.95); }
}

/* Drifting cards behind the hero, like the app's title screen */
.floaters { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; transition: transform 0.6s ease-out; }
@media (max-width: 1100px) { .floaters { display: none; } }
.floater {
  position: absolute; padding: 12px 16px 14px; min-width: 130px;
  background: rgba(255, 255, 255, 0.13); border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85); font-family: var(--display); font-size: 17px; line-height: 1.1;
  opacity: 0.55; transition: opacity 0.3s;
  animation: float var(--dur, 18s) ease-in-out infinite alternate; animation-delay: var(--delay, 0s);
  transform: rotate(var(--rot, 0deg));
}
.floater small { display: block; font-family: var(--body); font-weight: 800; font-size: 9px; letter-spacing: 0.14em; opacity: 0.6; margin-bottom: 4px; }
@keyframes float {
  from { transform: translate(0, 0) rotate(var(--rot, 0deg)); }
  to { transform: translate(var(--dx, 30px), var(--dy, -40px)) rotate(calc(var(--rot, 0deg) * -1)); }
}

/* ---------- Header ---------- */

.site-nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-nav.scrolled {
  background: rgba(11, 11, 24, 0.72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}
.site-nav .wrap { display: flex; align-items: center; gap: 20px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 24px; }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 4px 14px rgba(255, 62, 127, 0.45); }
.brand .q { color: var(--yellow); }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a {
  text-decoration: none; font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px;
  color: rgba(255, 255, 255, 0.82); transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.nav-cta { margin-left: 8px; }
.brand + .nav-cta { margin-left: auto; }
@media (max-width: 900px) { .nav-links { display: none; } .nav-cta { margin-left: auto; } }

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--yellow); --fg: var(--ink);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  padding: 16px 28px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--bg); color: var(--fg); text-decoration: none;
  font-family: var(--body); font-weight: 800; font-size: 18px; line-height: 1;
  box-shadow: var(--shadow-pop); transition: transform 0.15s, box-shadow 0.15s, filter 0.2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 rgba(0, 0, 0, 0.22); filter: brightness(1.05); }
.btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0, 0, 0, 0.22); }
.btn.ghost { --bg: rgba(255, 255, 255, 0.12); --fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.3); backdrop-filter: blur(10px); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.6); }
.btn.small { padding: 10px 18px; font-size: 15px; }
.btn.pink { --bg: var(--pink); --fg: #fff; }
.btn.teal { --bg: var(--teal); --fg: #fff; }

/* App Store button. Until the listing is live it reads "Coming soon" (set the link in site.js). */
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 22px 10px 16px;
  background: #000; color: #fff; text-decoration: none; border-radius: 16px;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35), var(--shadow-pop);
  transition: transform 0.15s;
}
.store:hover { transform: translateY(-2px); }
.store svg { width: 28px; height: 28px; flex: none; }
.store span { display: flex; flex-direction: column; line-height: 1.05; font-weight: 600; }
.store small { font-size: 12px; font-weight: 600; opacity: 0.85; letter-spacing: 0.01em; }
.store strong { font-size: 21px; font-weight: 700; letter-spacing: -0.01em; }
.store.soon { cursor: default; }
.store.soon:hover { transform: none; }
.site-nav .store { padding: 6px 14px 6px 10px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.site-nav .store svg { width: 20px; height: 20px; }
.site-nav .store small { font-size: 10px; }
.site-nav .store strong { font-size: 15px; }

/* ---------- Hero ---------- */

.hero { position: relative; min-height: 100svh; display: grid; align-items: center; padding: 110px 0 70px; isolation: isolate; }
.hero .wrap { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(28px, 5vw, 70px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2);
  font-weight: 800; font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-cyan); box-shadow: 0 0 10px var(--neon-cyan); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.hero h1 { white-space: nowrap; font-size: clamp(56px, 8.4vw, 124px); margin: 18px 0 10px; text-shadow: 0 6px 0 rgba(0, 0, 0, 0.2); }
.hero h1 .q { color: var(--yellow); display: inline-block; transform-origin: 50% 85%; animation: wobble 3.2s ease-in-out infinite; }
@keyframes wobble {
  0%, 60%, 100% { transform: rotate(0) scale(1); }
  66% { transform: rotate(-14deg) scale(1.08); }
  72% { transform: rotate(12deg) scale(1.08); }
  78% { transform: rotate(-6deg); }
  84% { transform: rotate(3deg); }
}
.hero .tag { font-family: var(--display); font-size: clamp(24px, 3vw, 34px); line-height: 1.12; }
.hero .lede { font-size: clamp(18px, 1.6vw, 21px); color: rgba(255, 255, 255, 0.86); margin-top: 16px; max-width: 34em; }
.hero .ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; padding: 0; list-style: none; }
.chips li { padding: 7px 13px; border-radius: 999px; background: rgba(0, 0, 0, 0.22); border: 1px solid rgba(255, 255, 255, 0.14); font-size: 14px; font-weight: 700; }

/* The demo: a card gets read out loud, the room guesses, someone nails it */
.demo { position: relative; justify-self: center; width: min(430px, 100%); }
.demo-stage { position: relative; padding: 54px 0 34px; }
.demo-card {
  position: relative; margin: 0 4%; min-height: 330px; background: #fff; color: var(--ink);
  border-radius: 34px; padding: 26px 24px 96px; display: flex; flex-direction: column;
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.2), 0 30px 60px rgba(20, 10, 60, 0.45);
  transition: transform 0.5s cubic-bezier(.2, 1.6, .4, 1), background 0.35s;
}
.demo-card .deck { font-weight: 800; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-soft); text-transform: uppercase; display: flex; justify-content: space-between; }
.demo-card .deck i { display: inline-flex; gap: 4px; }
.demo-card .say { margin: auto 0; text-align: center; }
.demo-card .say small { display: block; font-weight: 800; font-size: 12px; letter-spacing: 0.2em; color: var(--pink); margin-bottom: 12px; }
.gib { font-family: var(--display); font-size: clamp(34px, 4vw, 50px); line-height: 1.12; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; }
.gib span {
  background: #fff3b0; padding: 0 8px 4px; border-radius: 6px; box-shadow: 0 3px 0 rgba(0, 0, 0, 0.08);
  display: inline-block; transform: translateY(14px) scale(0.6); opacity: 0;
  animation: pop 0.45s cubic-bezier(.2, 1.6, .4, 1) forwards; animation-delay: calc(var(--i) * 0.12s);
}
@keyframes pop { to { transform: none; opacity: 1; } }
.demo-card .answer {
  position: absolute; inset: auto 22px 22px; text-align: center; font-family: var(--display); font-size: 26px; color: #fff;
  background: var(--teal); padding: 12px 14px; border-radius: 18px; box-shadow: 0 5px 0 #07897c;
  transform: translateY(20px) scale(0.8); opacity: 0; transition: all 0.4s cubic-bezier(.2, 1.6, .4, 1);
}
.demo-card .answer em { font-style: normal; font-family: var(--body); font-weight: 800; font-size: 13px; letter-spacing: 0.12em; display: block; opacity: 0.85; }
.demo.solved .demo-card { transform: rotate(-3deg) scale(1.02); }
.demo.solved .answer { transform: none; opacity: 1; }
.demo.solved .gib span { background: #c9f5ee; }

.bubble {
  position: absolute; z-index: 3; background: #fff; color: var(--ink); font-family: var(--display); font-size: 20px;
  padding: 10px 16px; border-radius: 22px; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.18);
  opacity: 0; transform: scale(0.4) translateY(10px); transition: all 0.35s cubic-bezier(.2, 1.7, .4, 1);
}
.bubble::after { content: ""; position: absolute; bottom: -8px; width: 18px; height: 18px; background: inherit; transform: rotate(45deg); border-radius: 3px; }
.bubble.left { left: -2%; top: 18px; } .bubble.left::after { left: 22px; }
.bubble.right { right: -2%; top: 0; } .bubble.right::after { right: 22px; }
.bubble.shout { left: 50%; top: 6px; white-space: nowrap; background: var(--ink); color: var(--yellow); font-size: 24px; translate: -50% 0; }
.bubble.shout::after { left: calc(50% - 9px); }
.bubble.show { opacity: 1; transform: none; }

.demo-timer { position: absolute; left: 6%; right: 6%; bottom: 8px; height: 12px; border-radius: 99px; background: rgba(255, 255, 255, 0.2); overflow: hidden; }
.demo-timer i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--yellow), var(--orange)); border-radius: 99px; transform-origin: left; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  counter-increment: step; padding: 12px 12px 14px; border-radius: 18px; background: rgba(0, 0, 0, 0.25);
  border: 1.5px solid rgba(255, 255, 255, 0.1); font-weight: 800; font-size: 14px; line-height: 1.25;
  transition: background 0.3s, border-color 0.3s, transform 0.3s; opacity: 0.6;
}
.steps li::before { content: counter(step); display: grid; place-items: center; width: 26px; height: 26px; margin-bottom: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.18); font-family: var(--display); font-size: 15px; }
.steps li.on { opacity: 1; background: rgba(255, 210, 63, 0.18); border-color: var(--yellow); transform: translateY(-3px); }
.steps li.on::before { background: var(--yellow); color: var(--ink); }

.scroll-hint { position: absolute; z-index: 2; left: 50%; bottom: 18px; translate: -50% 0; font-weight: 800; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.7; text-decoration: none; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

@media (max-width: 900px) {
  .hero { padding-top: 96px; min-height: auto; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr); text-align: center; gap: 0; }
  /* On phones the live demo comes right after the tagline, so the game makes sense before any scrolling. */
  .hero-copy { display: contents; }
  .hero .eyebrow { order: 1; justify-self: center; }
  .hero h1 { order: 2; }
  .hero .tag { order: 3; }
  .hero .demo { order: 4; margin-top: 8px; }
  .hero .lede { order: 5; }
  .hero .ctas { order: 6; }
  .hero .chips { order: 7; }
  .hero .lede { margin-inline: auto; }
  .hero .ctas, .chips { justify-content: center; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .steps li { font-size: 12px; padding: 10px 8px 12px; }
  .bubble { font-size: 16px; }
  .bubble.shout { font-size: 19px; }
}

/* ---------- Sections ---------- */

section { position: relative; }
.band { padding: clamp(80px, 11vw, 140px) 0; }
.band.paper { background: var(--paper); color: var(--ink); }
.band.sun { background: linear-gradient(160deg, #ffd23f, #ff8a1f 60%, #ff3e7f); color: var(--ink); }
.band.night { background: radial-gradient(120% 80% at 50% 0%, #241c55 0%, var(--night) 70%); }
.kicker { font-weight: 800; font-size: 14px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pink); }
.band.sun .kicker { color: var(--ink); opacity: 0.7; }
.band.night .kicker { color: var(--neon-cyan); }
.title { font-size: clamp(42px, 6.4vw, 80px); margin: 12px 0 18px; }
.sub { font-size: clamp(18px, 1.7vw, 21px); max-width: 38em; opacity: 0.85; }
.head-center { text-align: center; }
.head-center .sub { margin-inline: auto; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 0.7s ease, transform 0.8s cubic-bezier(.2, .9, .3, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Try it ---------- */

.try { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.try-card {
  position: relative; background: #fff; border-radius: 36px; padding: 30px; min-height: 360px; display: flex; flex-direction: column;
  box-shadow: 0 10px 0 rgba(24, 26, 47, 0.12), 0 30px 60px rgba(24, 26, 47, 0.16); text-align: center;
}
.try-card .deck { font-weight: 800; font-size: 12px; letter-spacing: 0.16em; color: var(--ink-soft); text-transform: uppercase; text-align: left; }
.try-card .gib { margin: auto 0; font-size: clamp(38px, 6vw, 56px); }
.try-card .reveal-answer { min-height: 64px; display: grid; place-items: center; }
.try-card .reveal-answer b { font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--teal); opacity: 0; transform: scale(0.6); transition: all 0.35s cubic-bezier(.2, 1.7, .4, 1); }
.try-card.shown .reveal-answer b { opacity: 1; transform: none; }
.try-card.shown { animation: tada 0.6s; }
@keyframes tada { 30% { transform: rotate(-2deg) scale(1.03); } 60% { transform: rotate(2deg) scale(1.03); } }
.try-buttons { display: flex; gap: 12px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.try-count { margin-top: 14px; font-weight: 700; font-size: 15px; color: var(--ink-soft); }
.try-copy ol { margin: 22px 0 0; padding-left: 0; list-style: none; display: grid; gap: 14px; }
.try-copy li { display: flex; gap: 14px; align-items: flex-start; font-size: 18px; }
.try-copy li b { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--ink); color: var(--yellow); font-family: var(--display); font-weight: 400; font-size: 18px; }
@media (max-width: 860px) { .try { grid-template-columns: 1fr; } .try-copy { text-align: center; } .try-copy li { text-align: left; } }

/* ---------- How to play ---------- */

.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 50px; }
.how {
  position: relative; padding: 30px 26px 30px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 0 rgba(24, 26, 47, 0.14); transition: transform 0.3s;
}
.how:hover { transform: translateY(-6px) rotate(-1deg); }
.how .num { position: absolute; top: -20px; right: 22px; font-family: var(--display); font-size: 64px; color: var(--pink); text-shadow: 0 4px 0 rgba(0, 0, 0, 0.12); }
.how .icon { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 36px; margin-bottom: 18px; box-shadow: 0 5px 0 rgba(0, 0, 0, 0.15); }
.how h3 { font-size: 30px; margin-bottom: 10px; }
.how p { font-size: 17px; color: var(--ink-soft); }
.scoring { margin-top: 38px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.scoring span { padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.55); font-weight: 800; font-size: 15px; }
.scoring i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; gap: 34px; } }

/* ---------- Modes ---------- */

.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin-top: 50px; }
.mode {
  --c1: var(--yellow); --c2: var(--orange);
  position: relative; overflow: hidden; border-radius: 34px; padding: 30px; min-height: 330px; color: var(--ink);
  background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: 0 10px 0 rgba(0, 0, 0, 0.25);
  display: flex; flex-direction: column; transition: transform 0.35s cubic-bezier(.2, 1.4, .4, 1);
}
.mode:hover { transform: translateY(-8px) rotate(var(--tilt, -1deg)); }
.mode.potato { --c1: #ff8a1f; --c2: #f2424f; color: #fff; --tilt: 1deg; }
.mode.showdown { --c1: #2e9bff; --c2: #5b4bdb; color: #fff; }
.mode.faceoff { --c1: #8a3fd9; --c2: #ff3e7f; color: #fff; --tilt: 1deg; }
.mode .badges { display: flex; gap: 8px; flex-wrap: wrap; }
.mode .badges span { padding: 5px 11px; border-radius: 999px; background: rgba(0, 0, 0, 0.16); font-weight: 800; font-size: 13px; }
.mode .badges .duo { background: rgba(255, 255, 255, 0.92); color: var(--ink); }
.mode h3 { font-size: clamp(40px, 4.6vw, 56px); margin: 16px 0 8px; }
.mode p { font-size: 18px; font-weight: 600; max-width: 22em; opacity: 0.92; }
.mode .art { position: absolute; right: 18px; bottom: 14px; width: 150px; height: 150px; pointer-events: none; }
.mode .hold { margin-top: auto; padding-top: 22px; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; opacity: 0.85; max-width: 60%; }
@media (max-width: 860px) { .modes { grid-template-columns: 1fr; } .mode .art { width: 110px; height: 110px; } }

/* Mode art: built from CSS so it can move */
.art-timer { border-radius: 50%; background: conic-gradient(var(--ink) var(--p, 70%), rgba(255, 255, 255, 0.5) 0); animation: tick 6s linear infinite; mask: radial-gradient(circle, transparent 46%, #000 47%); -webkit-mask: radial-gradient(circle, transparent 46%, #000 47%); }
@property --p { syntax: "<percentage>"; inherits: false; initial-value: 100%; }
@keyframes tick { from { --p: 100%; } to { --p: 0%; } }
.art-bomb { font-size: 110px; line-height: 1; text-align: center; animation: shake 0.9s ease-in-out infinite; }
@keyframes shake { 0%, 100% { transform: rotate(-6deg); } 25% { transform: rotate(6deg) scale(1.05); } 50% { transform: rotate(-4deg); } 75% { transform: rotate(4deg) scale(1.08); } }
.art-buzz { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-content: end; }
.art-buzz i { aspect-ratio: 1; border-radius: 50%; background: var(--c, var(--yellow)); box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3); animation: press 2.4s infinite; animation-delay: var(--d, 0s); }
@keyframes press { 0%, 70%, 100% { transform: none; box-shadow: 0 7px 0 rgba(0, 0, 0, 0.3); } 78% { transform: translateY(6px); box-shadow: 0 1px 0 rgba(0, 0, 0, 0.3); } }
.art-rec { display: grid; place-items: center; }
.art-rec .lens { width: 110px; height: 110px; border-radius: 26px; background: rgba(0, 0, 0, 0.3); border: 3px solid rgba(255, 255, 255, 0.85); display: grid; place-items: center; position: relative; }
.art-rec .lens::before { content: ""; width: 44px; height: 44px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #8ef, #136 60%); box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.25); }
.art-rec .lens::after { content: "REC"; position: absolute; top: 8px; left: 10px; font-weight: 900; font-size: 12px; letter-spacing: 0.1em; padding-left: 14px; background: radial-gradient(circle at 5px 50%, var(--red) 5px, transparent 6px); animation: blink 1.2s infinite; }

/* ---------- Screens marquee ---------- */

.screens { overflow: hidden; padding: 30px 0 10px; mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.screens-track { display: flex; gap: 30px; width: max-content; animation: marquee 50s linear infinite; }
.screens:hover .screens-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(calc(-50% - 15px)); } }
.phone {
  width: 250px; flex: none; padding: 10px; border-radius: 44px; background: #0c0c14;
  box-shadow: inset 0 0 0 2px #2b2b3a, 0 30px 50px rgba(0, 0, 0, 0.45); transition: transform 0.4s;
}
.phone:nth-child(odd) { transform: rotate(-2deg) translateY(10px); }
.phone:nth-child(even) { transform: rotate(2deg); }
.phone:hover { transform: rotate(0) scale(1.04); }
.phone img { border-radius: 35px; aspect-ratio: 640 / 1391; object-fit: cover; width: 100%; }
.phone figcaption { text-align: center; font-weight: 800; font-size: 14px; padding: 12px 0 4px; color: rgba(255, 255, 255, 0.8); }

/* ---------- Duo ---------- */

.duo-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(30px, 6vw, 80px); align-items: center; }
.duo-shot { position: relative; justify-self: center; width: min(460px, 100%); }
.duo-shot .frame { padding: 12px; border-radius: 38px; background: #0c0c14; box-shadow: inset 0 0 0 2px #2b2b3a, 0 40px 80px rgba(0, 0, 0, 0.5); }
.duo-shot img { border-radius: 28px; }
.duo-shot .fold { position: absolute; left: 12px; right: 12px; top: 50%; height: 2px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent); }
.poses { display: grid; gap: 14px; margin-top: 28px; padding: 0; list-style: none; }
.pose { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; padding: 16px; border-radius: 22px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); }
.pose h3 { font-size: 22px; margin-bottom: 4px; }
.pose p { font-size: 16px; opacity: 0.8; }
.pose svg { width: 76px; height: 60px; }
.pose svg .lid { transform-origin: 38px 44px; animation: lid 3.6s ease-in-out infinite; }
@keyframes lid { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-22deg); } }
.note { margin-top: 18px; font-size: 15px; opacity: 0.7; }
@media (max-width: 860px) { .duo-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Decks ---------- */

.deck-rows { display: grid; gap: 18px; margin-top: 46px; }
.deck-row { overflow: hidden; mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); -webkit-mask: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.deck-track { display: flex; gap: 16px; width: max-content; animation: marquee 40s linear infinite; }
.deck-row.reverse .deck-track { animation-direction: reverse; animation-duration: 46s; }
.deck-chip {
  --c: var(--violet); flex: none; width: 230px; padding: 18px 20px 20px; border-radius: 24px; color: #fff;
  background: linear-gradient(150deg, var(--c), color-mix(in srgb, var(--c) 70%, #000)); box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2);
}
.deck-chip small { display: block; font-weight: 700; font-size: 14px; opacity: 0.85; }
.deck-chip b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; line-height: 1.05; margin-top: 8px; }
.deck-chip.adult { background: #0b0b18; border: 2px solid var(--neon-cyan); box-shadow: 0 0 22px rgba(57, 255, 218, 0.4); }
.deck-chip.adult b { font-family: var(--neon); font-size: 18px; color: var(--neon-cyan); text-shadow: 0 0 10px var(--neon-pink); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 50px; }
.stat { text-align: center; padding: 24px 12px; border-radius: 24px; background: rgba(255, 255, 255, 0.5); }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(40px, 5vw, 60px); line-height: 1; color: var(--ink); }
.stat span { font-weight: 700; font-size: 15px; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.adult-callout {
  margin-top: 40px; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center;
  padding: 26px 30px; border-radius: 28px; background: #0b0b18; color: #fff; border: 2px solid rgba(57, 255, 218, 0.6);
}
.adult-callout .sign { font-family: var(--neon); color: var(--neon-pink); font-size: clamp(24px, 3vw, 34px); text-shadow: 0 0 8px var(--neon-pink), 0 0 26px var(--neon-pink); animation: flicker 5s infinite; }
@keyframes flicker { 0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; } 20%, 24%, 55% { opacity: 0.35; } }
.adult-callout p { font-size: 17px; opacity: 0.86; }
@media (max-width: 640px) { .adult-callout { grid-template-columns: 1fr; text-align: center; } }

.packs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.pack {
  --c: var(--violet); position: relative; padding: 22px 22px 24px; border-radius: 24px; background: #fff; color: var(--ink);
  box-shadow: 0 6px 0 rgba(24, 26, 47, 0.1); border-top: 8px solid var(--c); transition: transform 0.3s;
}
.pack:hover { transform: translateY(-5px) rotate(-1deg); }
.pack b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; color: var(--c); }
.pack span { display: block; margin-top: 4px; font-size: 16px; color: var(--ink-soft); }
.pack.adult { background: #0b0b18; border-top-color: var(--neon-pink); }
.pack.adult b { font-family: var(--neon); font-size: 19px; color: var(--neon-pink); text-shadow: 0 0 10px var(--neon-pink); }
.pack.adult span { color: rgba(255, 255, 255, 0.75); }
@media (max-width: 860px) { .packs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .packs { grid-template-columns: 1fr; } }
.demo-card .deck i { display: inline-flex; gap: 4px; }
.demo-card .deck i b { width: 8px; height: 8px; border-radius: 50%; }

/* ---------- Features ---------- */

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 50px; }
.feature { padding: 26px; border-radius: 26px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); transition: transform 0.3s, background 0.3s; }
.feature:hover { transform: translateY(-5px); background: rgba(255, 255, 255, 0.1); }
.feature .ico { font-size: 34px; line-height: 1; }
.feature h3 { font-size: 24px; margin: 14px 0 6px; }
.feature p { font-size: 16px; opacity: 0.78; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */

.faq { max-width: 820px; margin: 46px auto 0; display: grid; gap: 12px; }
.faq details { border-radius: 22px; background: #fff; box-shadow: 0 5px 0 rgba(24, 26, 47, 0.1); overflow: hidden; }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 800; font-size: 19px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--display); font-size: 28px; color: var(--pink); transition: transform 0.3s; line-height: 1; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--ink-soft); font-size: 17px; }
.faq a { color: var(--violet); }

/* ---------- Final CTA ---------- */

.finale { position: relative; overflow: hidden; text-align: center; padding: clamp(100px, 14vw, 170px) 0; isolation: isolate; }
.finale .big-q { position: absolute; z-index: 0; font-family: var(--display); font-size: clamp(360px, 60vw, 760px); line-height: 0.8; color: rgba(255, 210, 63, 0.12); left: 50%; top: 50%; translate: -50% -46%; animation: spin-q 30s linear infinite; pointer-events: none; }
@keyframes spin-q { to { rotate: 360deg; } }
.finale .wrap { position: relative; z-index: 1; }
.finale h2 { font-size: clamp(48px, 8vw, 104px); }
.finale p { font-size: clamp(18px, 2vw, 22px); margin: 18px auto 30px; max-width: 30em; opacity: 0.88; }
.finale .ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }

/* ---------- Footer ---------- */

.site-footer { background: #07070f; padding: 56px 0 40px; font-size: 15px; color: rgba(255, 255, 255, 0.72); }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; }
.site-footer h4 { margin: 0 0 12px; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer address { font-style: normal; line-height: 1.6; margin-top: 12px; }
.site-footer .legal-line { margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
@media (max-width: 760px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Legal pages ---------- */

.legal-hero { position: relative; padding: 140px 0 60px; overflow: hidden; isolation: isolate; }
.legal-hero .wrap { position: relative; z-index: 2; }
.legal-hero h1 { font-size: clamp(52px, 8vw, 96px); margin-top: 16px; }
.legal-hero .meta { margin-top: 14px; font-weight: 700; opacity: 0.8; }
.legal-tabs { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }
.legal-tabs a { text-decoration: none; padding: 10px 18px; border-radius: 999px; font-weight: 800; font-size: 15px; background: rgba(255, 255, 255, 0.12); }
.legal-tabs a[aria-current="page"] { background: var(--yellow); color: var(--ink); }
.legal-body { background: var(--paper); color: var(--ink); padding: 60px 0 100px; }
.legal-body .wrap { max-width: 780px; }
.legal-body .intro { font-size: 20px; font-weight: 600; }
.legal-body h2 { font-size: 32px; margin: 44px 0 12px; color: var(--violet); }
.legal-body p { margin: 0 0 14px; color: #2c2f4a; }
.legal-body a { color: var(--violet); }
.legal-body strong { color: var(--ink); }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001s !important; animation-iteration-count: 1 !important; transition-duration: 0.001s !important; }
  .reveal { opacity: 1; transform: none; }
  .screens-track, .deck-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .screens, .deck-row { mask: none; -webkit-mask: none; }
  html { scroll-behavior: auto; }
}
