/* Sugar Squadron — hybrid HQ splash + phone showcase */
:root {
  --bg-deep: #12061c;
  --bg-mid: #2a0d3a;
  --pink: #ff5ca8;
  --pink-hot: #ff3d8a;
  --cream: #fff5f8;
  --cyan: #5ef0ff;
  --mint: #7dffc3;
  --gold: #ffd36a;
  --muted: rgba(255, 255, 255, 0.62);
  --card: rgba(255, 255, 255, 0.08);
  --stroke: rgba(255, 255, 255, 0.16);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius: 18px;
  --font: "Fredoka", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --max: 1100px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--cream);
  background: var(--bg-deep);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.container { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 100;
  background: var(--pink);
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Nav — compact; logo lives large in hero (billboard placement) */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(18, 6, 28, 0.78);
  border-bottom: 1px solid var(--stroke);
}
.site-nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
}
.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: var(--cream);
  font-weight: 700;
}
.nav-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.15);
}
.nav-wordmark { font-size: 0.95rem; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 0.85rem; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nav-links a {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}
.nav-links a:hover { color: var(--cream); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--pink-hot), var(--pink));
  color: white;
  box-shadow: 0 10px 30px rgba(255, 60, 140, 0.35);
}
.btn-ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid var(--stroke);
}
.btn-nav { padding: 0.5rem 0.95rem; font-size: 0.88rem; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 2.25rem 0 3.75rem;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(255, 80, 160, 0.28), transparent 55%),
    radial-gradient(ellipse 50% 40% at 15% 80%, rgba(94, 240, 255, 0.12), transparent 50%),
    linear-gradient(165deg, #1a0830 0%, var(--bg-deep) 55%, #0a0412 100%);
}

/* Billboard-style logo: big, centered, above the pitch */
.hero-brand {
  text-align: center;
  margin-bottom: 2rem;
}
.hero-logo {
  width: min(420px, 82vw);
  height: auto;
  margin: 0 auto 0.85rem;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.45));
}
.hero-brand .eyebrow {
  margin-bottom: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2.5rem;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}
.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 3.8vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero .one-liner {
  font-size: 1.12rem;
  color: rgba(255, 255, 255, 0.92);
  max-width: 36ch;
  margin: 0 0 0.5rem;
  font-weight: 600;
}
.hero .tagline {
  color: var(--muted);
  margin: 0 0 1.5rem;
  font-weight: 600;
  max-width: 42ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.badge-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.85rem;
  font-weight: 600;
}

/* Phone frame */
.phone-stage { position: relative; display: flex; justify-content: center; }
.phone {
  width: min(280px, 70vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 36px;
  padding: 10px;
  margin: 0;
  background: linear-gradient(160deg, #3a2a45, #1a1020);
  box-shadow: var(--shadow), inset 0 0 0 2px rgba(255,255,255,0.12);
  position: relative;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #0d0614;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.phone-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 38%;
  height: 18px;
  background: #111;
  border-radius: 12px;
  z-index: 3;
}
.float-ship {
  position: absolute;
  width: 120px;
  right: -8%;
  bottom: 12%;
  filter: drop-shadow(0 12px 20px rgba(0,0,0,0.5));
  z-index: 3;
  animation: bob 3.2s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
.glow-orb {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 80, 160, 0.45), transparent 70%);
  top: 20%;
  left: 5%;
  z-index: 1;
  pointer-events: none;
}

/* Sections */
section { padding: 4rem 0; }
section h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}
.subhead { margin-top: 3rem; }
.section-lead {
  color: var(--muted);
  max-width: 48ch;
  margin: 0 0 2rem;
  font-weight: 600;
}
.section-alt {
  background: linear-gradient(180deg, rgba(255,255,255,0.03), transparent);
}

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}
.feature-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  background: rgba(255, 92, 168, 0.18);
}
.feature-card h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.feature-card p { margin: 0; color: var(--muted); font-size: 0.95rem; font-weight: 500; }

.video-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem 1.75rem;
  max-width: 780px;
  margin: 0 auto 2.25rem;
  align-items: start;
}
.video-card {
  margin: 0;
  text-align: center;
}
.video-card figcaption {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 600;
}
.video-slot {
  margin-bottom: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  box-shadow: var(--shadow);
}
.video-slot--portrait {
  /* Match the reel file (720×1564). Forced 9/19.5 + cover was cropping and leaving a controls gap. */
  width: min(360px, 100%);
  max-width: 360px;
  margin-inline: auto;
  margin-bottom: 0;
  background: #0d0614;
  line-height: 0;
  font-size: 0;
}
.video-slot--portrait video {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  vertical-align: top;
  aspect-ratio: 720 / 1564;
  object-fit: contain;
  object-position: center top;
  background: #0d0614;
}
.shot--phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Heroes */
.hero-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.hero-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
}
.hero-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #1a0a28;
}
.hero-card .meta { padding: 1rem; }
.hero-card h3 { margin: 0 0 0.25rem; }
.hero-card p { margin: 0; color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.hero-card .bio-text { margin-top: 0.45rem; font-size: 0.85rem; color: rgba(255, 255, 255, 0.72); font-weight: 500; }

.media-subhead {
  margin-top: 2rem;
  margin-bottom: 0.85rem;
  font-size: 1.15rem;
  text-align: center;
  color: var(--pink);
}

/* Screenshots strip */
.shot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 860px;
  margin-inline: auto;
}
.shot-strip--phones { align-items: start; }
.shot-card { margin: 0; }
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: #0d0614;
}
.shot--phone {
  aspect-ratio: 9 / 16;
  max-height: 340px;
  margin-inline: auto;
  width: 100%;
}
.shot-caption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 0.5rem;
}

/* Worlds */
.world-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.world-card {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--stroke);
  background: var(--card);
}
.world-card img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.world-card figcaption {
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-align: center;
}

/* Boss teaser */
.teaser-row {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scroll-snap-type: x mandatory;
  justify-content: flex-start;
}
.teaser-item {
  flex: 0 0 150px;
  scroll-snap-align: start;
  text-align: center;
}
.teaser-item img {
  width: 140px;
  height: 140px;
  object-fit: contain;
  margin-inline: auto;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
}
.teaser-item img.teaser-cover {
  object-fit: cover;
  border-radius: 16px;
}
.teaser-item span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}

/* Family */
.family-band {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(125, 255, 195, 0.08);
  padding: 1.5rem;
}
.family-band h2 { margin-bottom: 0.5rem; }
.family-band p { margin: 0; color: var(--muted); font-weight: 600; max-width: 60ch; }

/* CTA */
.cta-band {
  text-align: center;
  padding: 3rem 1.5rem;
  border-radius: 24px;
  background:
    radial-gradient(circle at 30% 40%, rgba(255, 80, 160, 0.35), transparent 50%),
    linear-gradient(135deg, #3a1248, #1a0830);
  border: 1px solid var(--stroke);
}
.cta-logo {
  width: min(220px, 55vw);
  margin: 0 auto 1rem;
  filter: drop-shadow(0 8px 20px rgba(0,0,0,0.35));
}
.cta-band h2 { margin: 0 0 0.5rem; }
.cta-band p { margin: 0 0 1.25rem; color: var(--muted); font-weight: 600; }
.cta-band .hero-cta { justify-content: center; }

/* Footer */
.site-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--stroke);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}
.footer-links { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--cream); }

/* Legal pages */
.legal {
  padding: 3rem 0 4rem;
  max-width: 720px;
}
.legal h1 { margin: 0 0 0.5rem; font-size: 2rem; }
.legal .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 2rem; font-weight: 600; }
.legal h2 { margin: 2rem 0 0.6rem; font-size: 1.2rem; color: var(--pink); }
.legal p, .legal li { color: rgba(255,255,255,0.82); font-weight: 500; }
.legal ul { padding-left: 1.2rem; }
.legal .faq-q { margin: 1.6rem 0 0.4rem; font-size: 1.05rem; color: var(--cream); }
.legal .back-link { margin-top: 1.5rem; }

/* Contact form (Netlify Forms) */
.contact-form {
  display: grid;
  gap: 0.5rem;
  max-width: 520px;
  margin: 1.25rem 0 0;
}
.contact-form label {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--cream);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.06);
  color: var(--cream);
  font: inherit;
  font-weight: 500;
}
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--cyan);
  outline-offset: 2px;
}
.contact-form .btn { justify-self: start; margin-top: 0.5rem; }
.contact-form__honeypot {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Value / pricing strip */
.pricing-band { padding: 2.5rem 0 0; }
.pricing-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  border-radius: 24px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(255, 92, 168, 0.16), rgba(94, 240, 255, 0.07));
  padding: 1.75rem;
}
.pricing-col .pricing-eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.pricing-col h3 { margin: 0 0 0.35rem; font-size: 1.25rem; }
.pricing-col p { margin: 0; color: var(--muted); font-weight: 600; }

/* How to play steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.step {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1.4rem 1.25rem;
  text-align: center;
}
.step .step-num {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-bottom: 0.7rem;
  background: linear-gradient(135deg, var(--pink-hot), var(--pink));
  color: white;
  font-weight: 700;
}
.step h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: 0.95rem; font-weight: 500; }

/* Boss gallery */
.boss-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
}
.boss-card {
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  background: var(--card);
  padding: 1rem 0.85rem;
  text-align: center;
}
.boss-card img {
  width: 100%;
  max-width: 130px;
  height: 130px;
  object-fit: contain;
  margin: 0 auto 0.6rem;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
}
.boss-card h3 { margin: 0 0 0.25rem; font-size: 0.82rem; letter-spacing: 0.02em; }
.boss-card p { margin: 0; color: var(--muted); font-size: 0.82rem; font-weight: 600; }

/* FAQ */
.faq { display: grid; gap: 0.6rem; max-width: 760px; }
.faq details {
  border: 1px solid var(--stroke);
  border-radius: 14px;
  background: var(--card);
  padding: 0 1.1rem;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.95rem 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--pink); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1rem; color: var(--muted); font-weight: 500; }

/* —— Mobile / tablet —— */
@media (max-width: 900px) {
  .shot-strip { gap: 0.75rem; }
  .world-grid { grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; }
  .pricing-card { grid-template-columns: 1fr; }
  .video-row { grid-template-columns: 1fr; max-width: 320px; gap: 1.75rem; }
  .video-slot--portrait { width: min(300px, 100%); max-width: 300px; }
}

@media (max-width: 820px) {
  .container { width: min(100% - 1.25rem, var(--max)); }

  .site-nav .inner {
    padding: 0.65rem 0;
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }
  .nav-wordmark { font-size: 0.88rem; }
  /* Keep primary CTA; hide secondary anchors on small phones */
  .nav-links a:not(.btn) { display: none; }
  .btn-nav {
    min-height: 44px;
    padding: 0.55rem 1rem;
    font-size: 0.9rem;
  }

  .hero {
    padding: 1.25rem 0 2.5rem;
    padding-bottom: max(2.5rem, env(safe-area-inset-bottom));
  }
  .hero-brand { margin-bottom: 1.25rem; }
  .hero-logo {
    width: min(300px, 78vw);
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.75rem;
  }
  .hero h1 {
    font-size: clamp(1.55rem, 6.5vw, 2rem);
  }
  .hero .one-liner,
  .hero .tagline,
  .section-lead {
    margin-inline: auto;
    max-width: 36ch;
  }
  .hero-cta {
    justify-content: center;
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 320px);
    margin-inline: auto;
  }
  .hero-cta .btn {
    width: 100%;
    min-height: 48px;
  }
  .float-ship { display: none; }
  .phone {
    width: min(220px, 62vw);
    margin-inline: auto;
  }
  .phone-stage { order: -1; } /* phone above copy on mobile feels more app-like? keep copy first actually */
  /* restore copy-first: don't reorder */

  section { padding: 2.5rem 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .boss-grid { grid-template-columns: repeat(2, 1fr); }
  .feature-card { padding: 1.1rem; }
  .hero-cards {
    grid-template-columns: 1fr;
    max-width: 300px;
    margin-inline: auto;
  }
  .shot-strip {
    grid-template-columns: 1fr 1fr;
    max-width: 400px;
    margin-inline: auto;
  }
  .shot--phone { max-height: 280px; }
  .teaser-row {
    justify-content: safe center;
    gap: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .cta-band {
    padding: 2rem 1.1rem;
    border-radius: 18px;
  }
  .cta-band .hero-cta {
    width: 100%;
  }
  .site-footer {
    padding: 2rem 0 max(2.5rem, env(safe-area-inset-bottom));
    font-size: 0.85rem;
  }
  .site-footer .inner {
    flex-direction: column;
    text-align: center;
    gap: 0.85rem;
  }
  .footer-links {
    justify-content: center;
    gap: 0.85rem 1.1rem;
  }
  .legal {
    padding: 2rem 0 max(3rem, env(safe-area-inset-bottom));
  }
  .legal h1 { font-size: 1.65rem; }
}

@media (max-width: 400px) {
  .shot-strip { grid-template-columns: 1fr; max-width: 220px; }
  .nav-wordmark { max-width: 9ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ph-hint { font-size: 0.75rem; }
}

/* Prevent iOS rubber-band horizontal scroll from wide kids */
html, body { overflow-x: hidden; }
img, video, svg { max-width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  .float-ship { animation: none; }
  html { scroll-behavior: auto; }
  .btn:hover { transform: none; }
}
