/* Dubloo marketing site. Dark, bouncy, solid colour blocks. No frameworks, no external requests. */

@font-face {
  font-family: "Bricolage Grotesque";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-800.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 400;
  font-display: optional;
  src: url("/assets/fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 600;
  font-display: optional;
  src: url("/assets/fonts/inter-600.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-weight: 700;
  font-display: optional;
  src: url("/assets/fonts/inter-700.woff2") format("woff2");
}

:root {
  --bg: #0E0B1A;
  --surface: #17132A;
  --border: #2A2440;
  --text: #F5F3FF;
  --muted: #A9A3C2;
  --yellow: #FFD23F;
  --orange: #FF9F1C;
  --purple: #8B5CF6;
  --pink: #FF4D8D;
  --cyan: #3DE8FF;
  --lilac: #B79CFF;
  --ink: #0E0B1A;          /* dark text on bright blocks */
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --gutter: 20px;
  --max: 1120px;
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--yellow); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--text); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 7vw, 3.4rem); }
h3 { font-size: 1.45rem; line-height: 1.12; }
p { margin: 0 0 1em; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 10;
  background: var(--yellow); color: var(--ink); padding: 10px 16px; border-radius: 12px; font-weight: 700;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 72px 0; }
.lede { color: var(--muted); font-size: 1.125rem; max-width: 60ch; }
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 56px; padding: 14px 26px;
  border: 0; border-radius: 999px;
  font: 700 1.0625rem/1.1 var(--body);
  text-decoration: none; cursor: pointer;
  transition: transform .18s var(--bounce), box-shadow .18s ease;
}
.btn-play {
  background: var(--yellow); color: var(--ink);
  box-shadow: 0 6px 0 var(--orange);
}
.btn-play:hover { color: var(--ink); transform: translateY(-2px) rotate(-1deg); box-shadow: 0 8px 0 var(--orange); }
.btn-play:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--orange); }
.btn-play svg { width: 22px; height: 22px; flex: none; }
.btn-play small { display: block; font-size: .75rem; font-weight: 600; opacity: .8; }
.btn-ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 3px var(--border);
}
.btn-ghost:hover { color: var(--text); box-shadow: inset 0 0 0 3px var(--lilac); }
.play-note { min-height: 1.6em; margin: 14px 0 0; color: var(--muted); font-size: .95rem; }

/* ---------- hero ---------- */
.hero { padding: 28px 0 48px; }
.hero .wrap { display: grid; gap: 8px; align-items: center; }
.hero-logo { width: 156px; margin: 0 0 18px -6px; }
.tagline {
  font-size: clamp(2.9rem, 13vw, 6rem);
  line-height: .98;
  margin: 0 0 22px;
}
/* Each phrase is a "subtitle line" on a player-colour block, like three friends dubbing one line each. */
.tagline .line {
  display: inline-block;
  color: var(--ink);
  padding: .04em .26em .1em;
  border-radius: .22em;
  margin: .05em 0;
  white-space: nowrap;
}
.tagline .line:nth-of-type(1) { background: var(--pink); transform: rotate(-2.2deg); }
.tagline .line:nth-of-type(2) { background: var(--cyan); transform: rotate(1.6deg) translateX(.35em); }
.tagline .line:nth-of-type(3) { background: var(--yellow); transform: rotate(-1deg); }
.hero-copy .lede { font-size: 1.2rem; margin-bottom: 26px; }
.hero-art {
  position: relative; justify-self: center;
  width: min(78vw, 400px); aspect-ratio: 4 / 5;
}
.hero-art img { width: 100%; height: 100%; object-fit: contain; }
.hero-art::before {
  content: ""; position: absolute; inset: 14% 6% 4%;
  background: var(--purple); border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  z-index: -1;
}

/* ---------- category strip ---------- */
.strip {
  border-top: 3px solid var(--border); border-bottom: 3px solid var(--border);
  background: var(--surface); overflow: hidden; padding: 16px 0;
}
.strip-track { display: flex; width: max-content; animation: strip 152s linear infinite;   /* 38s per set of 8, 4 sets per half */ }
.strip ul { display: flex; gap: 14px; margin: 0; padding: 0 7px; list-style: none; }
.chip {
  font: 800 1.15rem/1 var(--display); color: var(--ink);
  padding: 12px 20px; border-radius: 999px; white-space: nowrap;
}
.chip:nth-child(4n+1) { background: var(--yellow); }
.chip:nth-child(4n+2) { background: var(--cyan); }
.chip:nth-child(4n+3) { background: var(--pink); }
.chip:nth-child(4n+4) { background: var(--lilac); }
@keyframes strip { to { transform: translateX(-50%); } }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 22px; counter-reset: step; }
.step {
  counter-increment: step;
  position: relative;
  display: grid; grid-template-columns: 112px 1fr; gap: 16px; align-items: center;
  background: var(--surface); border: 3px solid var(--border); border-radius: 28px;
  padding: 18px 20px 18px 14px;
}
.step img { width: 112px; height: 140px; object-fit: contain; }
.step h3::before {
  content: counter(step);
  position: absolute; top: -18px; left: 18px;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%; color: var(--ink); font-size: 1.3rem;
  box-shadow: 0 0 0 4px var(--bg);
}
.step:nth-child(1) h3::before { background: var(--pink); }
.step:nth-child(2) h3::before { background: var(--cyan); }
.step:nth-child(3) h3::before { background: var(--lilac); }
.step:nth-child(4) h3::before { background: var(--yellow); }
.step p { color: var(--muted); margin: 0; }

/* ---------- features ---------- */
.features { display: grid; gap: 18px; margin-top: 36px; }
.feature { border-left: 6px solid var(--border); padding: 4px 0 4px 18px; }
.feature:nth-child(1) { border-color: var(--yellow); }
.feature:nth-child(2) { border-color: var(--cyan); }
.feature:nth-child(3) { border-color: var(--pink); }
.feature:nth-child(4) { border-color: var(--lilac); }
.feature:nth-child(5) { border-color: var(--orange); }
.feature h3 { margin-bottom: .3em; }
.feature p { color: var(--muted); margin: 0; }

/* ---------- apps ---------- */
.apps { display: grid; gap: 20px; margin-top: 36px; }
.app {
  border-radius: 32px; padding: 28px 24px 30px; position: relative; overflow: hidden;
}
.app h3 { font-size: 2rem; margin-bottom: .2em; }
.app .price { font-weight: 700; margin-bottom: 14px; }
.app ul { margin: 0; padding-left: 1.2em; }
.app li { margin: .35em 0; }
.app-lite { background: var(--yellow); color: var(--ink); }
.app-studio { background: var(--surface); border: 3px solid var(--purple); }
.app-studio .price { color: var(--lilac); }
.app img { width: 104px; height: 130px; object-fit: contain; position: absolute; right: 10px; top: 14px; }
.app h3, .app .price { padding-right: 104px; }

/* ---------- faq ---------- */
.faq { margin-top: 32px; display: grid; gap: 12px; max-width: 760px; }
.faq details {
  background: var(--surface); border: 3px solid var(--border); border-radius: 22px; padding: 0 20px;
}
.faq details[open] { border-color: var(--lilac); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 32px 18px 0; position: relative;
  font: 800 1.2rem/1.25 var(--display);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  font-size: 1.6rem; color: var(--yellow); transition: transform .2s var(--bounce);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); margin: 0 0 18px; }

/* ---------- final call ---------- */
.final { text-align: center; }
.final .lede { margin-left: auto; margin-right: auto; }
.final img { width: 170px; height: 212px; object-fit: contain; margin: 0 auto 12px; }

/* ---------- footer ---------- */
.footer { border-top: 3px solid var(--border); padding: 36px 0 44px; color: var(--muted); font-size: .95rem; }
.footer nav ul { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.footer a { color: var(--text); }
.footer a:hover { color: var(--yellow); }
.footer p { margin: 0; }

/* ---------- simple pages (privacy, terms, delete account, invite, 404) ---------- */
.page-top { padding: 22px 0; }
.page-top a { display: inline-block; }
.page-top img { width: 120px; }
.doc { max-width: 72ch; padding-bottom: 64px; }
.doc h1 { font-size: clamp(2.3rem, 9vw, 3.6rem); }
.doc h2 { font-size: 1.6rem; margin-top: 1.8em; }
.doc li { margin: .3em 0; }
.draft {
  background: var(--orange); color: var(--ink); font-weight: 700;
  border-radius: 18px; padding: 14px 18px; margin: 0 0 28px;
}
.ph { background: var(--border); color: var(--yellow); padding: 0 .3em; border-radius: 4px; }
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }
.card {
  background: var(--surface); border: 3px solid var(--border); border-radius: 26px; padding: 22px 20px;
  margin: 18px 0;
}
.solo { text-align: center; padding-top: 24px; padding-bottom: 72px; }
.solo img.mascot { width: 220px; height: 275px; object-fit: contain; margin: 0 auto 8px; }
.solo .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 22px; }
.invite-code {
  display: inline-block; font: 800 clamp(2.6rem, 14vw, 4.4rem)/1 var(--display); letter-spacing: .08em;
  background: var(--cyan); color: var(--ink); border-radius: 22px; padding: 10px 22px 14px;
  transform: rotate(-2deg); margin: 6px 0 14px;
}

/* ---------- pop-in mascots (JS adds .js to <html>; without JS everything is simply visible) ---------- */
.js .pop { opacity: 0; transform: scale(.6) rotate(-8deg); }
.js .pop.in { animation: pop .65s var(--bounce) forwards; }
@keyframes pop {
  60% { opacity: 1; transform: scale(1.08) rotate(3deg); }
  100% { opacity: 1; transform: none; }
}
.wiggle:hover { animation: wiggle .5s ease-in-out; }
@keyframes wiggle { 25% { transform: rotate(-5deg); } 75% { transform: rotate(5deg); } }

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

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  :root { --gutter: 32px; }
  .section { padding: 96px 0; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); gap: 28px 40px; }
  .apps { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .hero { padding: 40px 0 72px; }
  .hero .wrap { grid-template-columns: 1.25fr 1fr; gap: 40px; }
  .hero-logo { width: 190px; }
  .tagline { font-size: clamp(3.6rem, 5.6vw, 5.4rem); }
  .hero-art { width: 100%; max-width: 440px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .step { grid-template-columns: 1fr; text-align: center; padding: 24px 18px 26px; }
  .step img { margin: 0 auto; width: 150px; height: 188px; }
  .features { grid-template-columns: repeat(3, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .pop { opacity: 1; transform: none; }
  .strip-track { flex-wrap: wrap; width: auto; justify-content: center; }
  .strip ul[aria-hidden="true"], .strip li[aria-hidden="true"] { display: none; }
  .strip ul { flex-wrap: wrap; justify-content: center; }
}

.center-text { margin-left: auto; margin-right: auto; text-align: center; }
.solo h1 { font-size: clamp(2.2rem, 8vw, 3.4rem); }
