/* ===== JOYCUB — Family Console Gaming Club ===== */

:root {
  --bg-light: #fffbef;
  --bg-dark: #23395b;
  --text-on-light: #23395b;
  --text-on-dark: #fffbef;
  --accent-1: #ff7657;
  --accent-2: #06d6a0;

  --font-head: "Baloo 2", system-ui, sans-serif;
  --font-body: "Rubik", system-ui, sans-serif;

  --radius: 24px;
  --radius-input: 14px;
  --radius-photo: 20px;
  --pill: 999px;

  --wrap: 1200px;
  --section-space: 96px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-on-light);
  background: var(--bg-light);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { font-family: var(--font-head); line-height: 1.1; margin: 0 0 .4em; }

h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 700; }
h2 { font-size: clamp(28px, 4vw, 48px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.4vw, 26px); font-weight: 600; }

p { margin: 0 0 1rem; }

a { color: inherit; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--accent-2); color: var(--bg-dark);
  padding: 12px 18px; border-radius: 0 0 var(--radius-input) 0;
  font-weight: 600; z-index: 200;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.wrap--narrow { max-width: 760px; }

/* ===== Confetti-dot motif ===== */
.dot {
  display: inline-block; width: 12px; height: 12px;
  border-radius: 50%; vertical-align: middle; margin-right: 2px;
}
.dot--a { background: var(--accent-1); }
.dot--b { background: var(--accent-2); }
.dot--c { background: #ffd23f; }

/* ===== Buttons ===== */
.btn {
  --confetti: var(--accent-2);
  position: relative;
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 17px;
  text-decoration: none;
  padding: 15px 30px;
  border-radius: var(--pill);
  cursor: pointer;
  border: 0;
  transition: transform .2s ease;
  overflow: visible;
}
.btn--sm { font-size: 15px; padding: 12px 22px; }
.btn--primary { background: var(--accent-1); color: var(--text-on-dark); }
.btn--ghost { background: transparent; color: var(--text-on-light); outline: 2px solid var(--accent-2); }
.section--form .btn--ghost,
.section--birthdays .btn--ghost { color: var(--text-on-dark); }
.btn:hover { transform: scale(1.04); }
.btn:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }

/* single confetti dot flies out on hover */
.btn::after {
  content: "";
  position: absolute;
  top: 8px; right: 14px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--confetti);
  opacity: 0;
  pointer-events: none;
}
.btn--primary::after { background: #ffd23f; }
.btn:hover::after { animation: confettiPop .55s ease-out; }
@keyframes confettiPop {
  0%   { opacity: 1; transform: translate(0,0) scale(.6); }
  100% { opacity: 0; transform: translate(14px,-22px) scale(1); }
}

/* ===== NAV: nav-hamburger-first ===== */
.nav--minimal {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  transition: background .25s ease, padding .25s ease;
}
.nav--minimal.is-scrolled {
  background: rgba(255, 251, 239, .92);
  backdrop-filter: blur(10px);
  padding: 10px 20px;
}
.nav__logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-head); font-weight: 700; font-size: 26px;
  letter-spacing: .5px; text-decoration: none; color: var(--text-on-light);
}
.logo-mark { display: block; flex: 0 0 auto; width: 30px; height: 30px; }
.nav__toggle {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--accent-1); color: var(--text-on-dark);
  font-family: var(--font-head); font-weight: 600; font-size: 16px;
  border: 0; border-radius: var(--pill); padding: 10px 20px; cursor: pointer;
}
.nav__toggle-bars {
  width: 18px; height: 12px; position: relative; display: inline-block;
}
.nav__toggle-bars::before, .nav__toggle-bars::after,
.nav__toggle-bars { background: currentColor; }
.nav__toggle-bars { height: 2px; top: 5px; }
.nav__toggle-bars::before, .nav__toggle-bars::after {
  content: ""; position: absolute; left: 0; width: 100%; height: 2px;
}
.nav__toggle-bars::before { top: -5px; }
.nav__toggle-bars::after { top: 5px; }

.nav__overlay {
  position: fixed; inset: 0; z-index: 150;
  background: var(--bg-dark);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  animation: overlayIn .28s ease;
}
.nav__overlay[hidden] { display: none; }
@keyframes overlayIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: scale(1); } }
.nav__close {
  position: absolute; top: 20px; right: 20px;
  background: transparent; color: var(--text-on-dark);
  border: 2px solid var(--accent-2); border-radius: var(--pill);
  font-family: var(--font-head); font-weight: 600; padding: 8px 18px; cursor: pointer;
}
.nav__overlay-links { display: flex; flex-direction: column; text-align: center; gap: 6px; }
.nav__overlay-links a {
  font-family: var(--font-head); font-weight: 600; font-size: clamp(28px, 5vw, 44px);
  color: var(--text-on-dark); text-decoration: none; padding: 8px 16px;
}
.nav__overlay-links a:hover { color: var(--accent-2); }
.nav__overlay-cta { color: var(--accent-1) !important; }

/* ===== HERO: hero-quote-framed ===== */
.hero--quote {
  position: relative; overflow: hidden;
  padding: 150px 20px 90px;
  max-width: var(--wrap); margin: 0 auto;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; max-width: 860px; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 14px;
}
.hero__quote { margin-bottom: .3em; }
.candy {
  display: inline-block;
  background: var(--accent-2); color: var(--bg-dark);
  border-radius: 16px; padding: 0 .18em;
  transform: rotate(-2deg);
}
.hero__slogan {
  font-family: var(--font-head); font-weight: 600;
  color: var(--accent-1); font-size: clamp(18px, 2.4vw, 24px); margin-bottom: .8em;
}
.hero__lead { max-width: 620px; font-size: 18px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 26px; }

.hero__corner {
  position: relative; z-index: 1;
  margin: 40px 0 0; max-width: 480px;
}
.hero__corner-photo {
  width: 100%; height: auto; border-radius: var(--radius-photo);
  filter: brightness(1.05) saturate(1.05);
}

/* balloons */
.balloon {
  position: absolute; bottom: -80px;
  border-radius: 50%;
  opacity: .32;
  will-change: transform, opacity;
  cursor: pointer;
}
.balloon.pop { animation: balloonPop .4s ease-out forwards !important; }
@keyframes balloonPop {
  to { transform: scale(1.6); opacity: 0; }
}

/* ===== Dividers ===== */
.divider--wave {
  display: block; width: 100%; height: 60px; margin-bottom: -1px;
  color: var(--bg-light);
}
.divider--wave.divider--to-dark { color: var(--bg-dark); }

/* ===== Sections ===== */
.section { padding: var(--section-space) 0; }
.section--zones { background: var(--bg-light); }
.section--birthdays { background: var(--bg-dark); color: var(--text-on-dark); }
.section--parents { background: var(--bg-light); }
.section--faq { background: var(--bg-light); }
.section--form { background: var(--bg-dark); color: var(--text-on-dark); }

.section__head { max-width: 720px; margin: 0 auto 44px; text-align: center; }
.eyebrow {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  text-transform: uppercase; letter-spacing: 1px; color: var(--accent-1);
  display: inline-flex; align-items: center; gap: 6px;
}
.eyebrow--light { color: var(--accent-2); }
.eyebrow--plain { color: var(--text-on-light); opacity: .7; letter-spacing: .5px; text-transform: none; font-size: 14px; }
.section__intro { font-size: 18px; opacity: .92; }

/* calmer typography for parents */
.section__head--plain .section__title--plain { font-family: var(--font-body); font-weight: 600; }
.section__intro--plain { font-weight: 500; font-size: 15px; }

/* ===== Cards / grids ===== */
.grid { display: grid; gap: 22px; }
.grid--3up { grid-template-columns: repeat(3, 1fr); }
.grid--4up { grid-template-columns: repeat(4, 1fr); }

.card {
  position: relative;
  border-radius: var(--radius);
  padding: 30px 26px 34px;
}
.card__icon { font-size: 28px; color: var(--accent-1); display: block; margin-bottom: 8px; }

/* zone cards: pastel plates + wave bottom */
.zone-card {
  background: rgba(6, 214, 160, .14);
  clip-path: polygon(0 0, 100% 0, 100% 92%, 92% 96%, 80% 92%, 66% 97%, 52% 92%, 38% 97%, 24% 92%, 12% 96%, 0 92%);
  padding-bottom: 44px;
}
.zone-card:nth-child(2) { background: rgba(255, 118, 87, .13); }
.zone-card:nth-child(3) { background: rgba(255, 210, 63, .18); }
.zone-card h3 { margin-top: 4px; }

.age-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-head); font-weight: 700; font-size: 16px;
  color: var(--bg-dark);
}
.age-badge--3 { background: var(--accent-2); }
.age-badge--7 { background: var(--accent-1); color: var(--text-on-dark); }
.age-badge--12 { background: #ffd23f; }
.zone-card__age { position: absolute; top: 20px; right: 20px; }
.zone-card__age.animate-in { animation: badgeRoll .6s cubic-bezier(.34,1.56,.64,1) both; }
@keyframes badgeRoll {
  from { transform: translateY(-14px) rotate(-40deg); opacity: 0; }
  to   { transform: translateY(0) rotate(0); opacity: 1; }
}

.tick-list { list-style: none; padding: 0; margin: 14px 0 0; }
.tick-list li { position: relative; padding-left: 26px; margin-bottom: 8px; }
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .55em;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent-1);
}
.section--birthdays .tick-list li::before { background: var(--accent-2); }

.zone-figure, .birthday-figure {
  border-radius: var(--radius-photo); overflow: hidden; margin: 0 auto 34px;
  max-width: 800px;
}
.zone-figure img, .birthday-figure img { filter: brightness(1.05) saturate(1.05); }

.age-legend {
  text-align: center; margin-top: 30px;
  font-family: var(--font-head); font-weight: 600;
  display: flex; flex-wrap: wrap; gap: 6px 4px; justify-content: center; align-items: center;
}
.age-legend .age-badge { width: 38px; height: 38px; font-size: 14px; }

/* ===== Birthdays / pricing ===== */
.birthday-layout { display: grid; grid-template-columns: 0.85fr 1.4fr; gap: 34px; align-items: start; }
.pricing--3col { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.price-card {
  background: rgba(255, 251, 239, .07);
  border-radius: var(--radius);
  display: flex; flex-direction: column;
}
.section--birthdays .price-card h3 { color: var(--text-on-dark); }
.price-card.is-featured {
  background: rgba(6, 214, 160, .16);
  transform: translateY(-8px);
}
.price-card__flag {
  align-self: flex-start;
  background: var(--accent-1); color: var(--text-on-dark);
  font-family: var(--font-head); font-weight: 600; font-size: 13px;
  padding: 4px 14px; border-radius: var(--pill); margin-bottom: 12px;
}
.price-card__meta { font-family: var(--font-head); font-weight: 600; opacity: .9; margin-bottom: 4px; }
.price-card__price { font-family: var(--font-head); font-weight: 700; font-size: 30px; margin: 4px 0 10px; }
.price-card__price em { font-style: normal; }
.price-card .btn { margin-top: auto; align-self: flex-start; }

.rates-note {
  max-width: 720px; margin: 30px auto 0; text-align: center;
  font-family: var(--font-head); font-weight: 600; font-size: 17px;
}
.rates-note strong { color: var(--accent-2); }

/* ===== Legal pages ===== */
.legal { padding: 130px 0 var(--section-space); background: var(--bg-light); }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(32px, 5vw, 52px); margin-bottom: .2em; }
.legal__updated { font-weight: 500; opacity: .7; margin-bottom: 1.6em; }
.legal h2 { font-size: clamp(22px, 3vw, 30px); margin: 1.6em 0 .4em; }
.legal p, .legal li { font-size: 16px; }
.legal ul { padding-left: 22px; margin: 0 0 1rem; }
.legal li { margin-bottom: 6px; }
.legal__back {
  display: inline-block; margin-top: 8px;
  font-family: var(--font-head); font-weight: 600; text-decoration: none;
  color: var(--accent-1);
}
.legal__back:hover { text-decoration: underline; }

/* ===== Parents grid (calmer) ===== */
.card--plain {
  background: #fff;
  border-radius: var(--radius);
}
.card--plain h3 { font-family: var(--font-body); font-weight: 600; font-size: 18px; }
.card--plain p { font-weight: 500; font-size: 15px; margin: 0; }

/* ===== FAQ ===== */
.faq { display: flex; flex-direction: column; gap: 14px; }
.faq details {
  background: rgba(6, 214, 160, .12);
  border-radius: var(--radius-input);
  padding: 4px 22px;
}
.faq summary {
  list-style: none; cursor: pointer;
  font-family: var(--font-head); font-weight: 600; font-size: 18px;
  padding: 16px 34px 16px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 26px; color: var(--accent-1); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(135deg); }
.faq details p { margin: 0 0 16px; }

/* ===== Form ===== */
.cta-form--centered { max-width: 520px; margin: 0 auto; }
.form { display: flex; flex-direction: column; gap: 16px; text-align: left; }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__row { display: flex; flex-direction: column; gap: 6px; }
.form label {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
}
.form input, .form select {
  height: 52px; border-radius: var(--radius-input); border: 0;
  padding: 0 16px; font-family: var(--font-body); font-size: 16px;
  background: var(--bg-light); color: var(--text-on-light);
  transition: outline-color .15s ease;
  outline: 2px solid transparent;
}
.form select { appearance: none; }
.form input:focus, .form select:focus {
  outline: 2px solid var(--accent-2);
}
.form .btn { margin-top: 6px; }
.form__status { margin: 6px 0 0; font-weight: 600; min-height: 1.4em; }
.form__status.success { color: var(--accent-2); }
.form__status.error { color: #ffd23f; }

.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Footer: footer-cta-repeat ===== */
.footer { background: var(--bg-light); }
.footer__cta-band {
  background: var(--accent-1); color: var(--text-on-dark);
  text-align: center; padding: 64px 20px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.footer__cta-band h2 { margin-bottom: .6em; }
.footer__bottom {
  max-width: var(--wrap); margin: 0 auto; padding: 40px 20px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.footer__logo { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-weight: 700; font-size: 24px; text-decoration: none; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
.footer__legal a { text-decoration: none; font-size: 14px; font-weight: 500; opacity: .85; }
.footer__legal a:hover { color: var(--accent-1); opacity: 1; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: center; }
.footer__links a { text-decoration: none; font-weight: 500; }
.footer__links a:hover { color: var(--accent-1); }
.footer__disclaimer {
  font-family: var(--font-head); font-weight: 600;
  background: var(--accent-2); color: var(--bg-dark);
  padding: 8px 18px; border-radius: var(--pill); margin: 6px 0;
}
.footer__copy { font-size: 14px; opacity: .8; margin: 0; }

/* ===== Reveal ===== */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s ease-out, transform .55s ease-out; }
.reveal.is-visible { opacity: 1; transform: none; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid--4up { grid-template-columns: repeat(2, 1fr); }
  .birthday-layout { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  :root { --section-space: 72px; }
  .grid--3up, .pricing--3col { grid-template-columns: 1fr; }
  .price-card.is-featured { transform: none; }
  .hero--quote { padding-top: 120px; }
}
@media (max-width: 480px) {
  .grid--4up { grid-template-columns: 1fr; }
  .form__grid { grid-template-columns: 1fr; }
  .btn { display: block; text-align: center; }
  .hero__actions .btn { width: 100%; }
}

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