/* =========================================================
   CANDY BONANZA TOWN — Promo Website Styles
   Carnival Teal · Funfair Hot-Pink · Candy Orange · Bunting Red
   Chewy display · Quicksand body
   ========================================================= */

:root {
  /* Brand palette */
  --teal: #1FA89E;
  --teal-deep: #157A72;
  --teal-glow: #5FD6CB;
  --pink: #E8479B;
  --pink-bright: #FF6FB5;
  --orange: #F39222;
  --orange-deep: #C5731A;
  --red: #D8413E;
  --gold: #F0C84A;
  --purple: #7A3FA0;

  /* Surfaces */
  --cream: #FBF3E6;
  --cream-deep: #F5E7CC;
  --floss-pink: #F6E2EE;
  --midway: #2A2742;
  --midway-deep: #1B1830;
  --midway-stone: #3E2C52;

  /* Text */
  --ink: #2A2030;
  --ink-muted: #6A5D6E;
  --ink-hint: #9A8E9C;
  --on-dark: #FBF3E6;
  --on-dark-muted: #D8CFE0;
  --on-dark-faded: #9C92AE;

  /* Fonts */
  --font-display: 'Chewy', 'Baloo 2', 'Comic Sans MS', cursive;
  --font-body: 'Quicksand', system-ui, -apple-system, sans-serif;

  --max-w: 1200px;
  --radius-card: 18px;
  --radius-btn: 999px;

  --grad-cta: linear-gradient(135deg, #F39222 0%, #E8479B 100%);
  --grad-teal: linear-gradient(180deg, #1FA89E 0%, #157A72 100%);
  --grad-bunting: linear-gradient(90deg, #E8479B 0%, #F39222 50%, #1FA89E 100%);
  --grad-midway: linear-gradient(180deg, #2A2742 0%, #1B1830 100%);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal-deep); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--pink); }

.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.5px;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
}

h2 { font-size: clamp(32px, 5vw, 52px); }
h3 { font-size: 22px; }

.t-eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--pink);
  margin-bottom: 14px;
}

.accent { color: var(--pink); font-style: italic; }
.accent-teal { color: var(--teal); }
.accent-orange { color: var(--orange); }

.candy-text {
  background: var(--grad-bunting);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

.outlined {
  -webkit-text-stroke: 1.5px var(--pink);
  color: transparent;
}

/* ---------- Bunting (decorative) ---------- */
.bunting {
  height: 28px;
  background:
    linear-gradient(135deg, transparent 49%, var(--pink) 50%, transparent 51%) 0 0/28px 28px,
    linear-gradient(-135deg, transparent 49%, var(--pink) 50%, transparent 51%) 0 0/28px 28px;
  background-color: transparent;
  position: relative;
}
.bunting-band {
  height: 38px;
  background-image:
    radial-gradient(circle at 12px 0, var(--pink) 0 12px, transparent 12.5px),
    radial-gradient(circle at 36px 0, var(--orange) 0 12px, transparent 12.5px),
    radial-gradient(circle at 60px 0, var(--teal) 0 12px, transparent 12.5px),
    radial-gradient(circle at 84px 0, var(--gold) 0 12px, transparent 12.5px),
    radial-gradient(circle at 108px 0, var(--red) 0 12px, transparent 12.5px);
  background-size: 120px 38px;
  background-repeat: repeat-x;
}

/* ---------- Top bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 230, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--pink);
}
.topbar .inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 12px 20px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
}
.brand-mark { width: 44px; height: 44px; border-radius: 12px; box-shadow: 0 4px 12px rgba(232,71,155,0.3); }
.brand-name {
  font-family: var(--font-display); font-size: 22px; color: var(--ink);
}
.nav-links {
  display: flex; gap: 28px; align-items: center;
}
.nav-links a {
  font-weight: 600; color: var(--ink); font-size: 15px;
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--pink); }
.nav-toggle {
  display: none; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 14px 28px;
  border-radius: var(--radius-btn);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.3px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
  min-height: 48px;
}
.btn:hover { transform: translateY(-2px); }
.btn-candy {
  background: var(--grad-cta);
  color: #fff;
  box-shadow: 0 6px 18px rgba(243, 146, 34, 0.4), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-candy:hover { box-shadow: 0 10px 24px rgba(232, 71, 155, 0.5), inset 0 1px 0 rgba(255,255,255,0.3); color: #fff; }
.btn-teal {
  background: var(--grad-teal);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 168, 158, 0.4);
}
.btn-teal:hover { color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 2px solid var(--teal);
}
.btn-ghost:hover { background: var(--teal); color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 110px;
  background:
    linear-gradient(180deg, rgba(31,168,158,0.85) 0%, rgba(232,71,155,0.6) 50%, rgba(251,243,230,1) 100%),
    url('images/hero_bg.webp') center top / cover no-repeat;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0;
  height: 38px;
  background-image:
    radial-gradient(circle at 12px 0, #fff 0 10px, transparent 10.5px),
    radial-gradient(circle at 36px 0, var(--gold) 0 10px, transparent 10.5px),
    radial-gradient(circle at 60px 0, var(--orange) 0 10px, transparent 10.5px),
    radial-gradient(circle at 84px 0, var(--red) 0 10px, transparent 10.5px),
    radial-gradient(circle at 108px 0, var(--pink) 0 10px, transparent 10.5px);
  background-size: 120px 38px;
  background-repeat: repeat-x;
  pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.95);
  padding: 8px 18px; border-radius: 999px;
  font-weight: 700; font-size: 13px; color: var(--pink);
  letter-spacing: 1px; text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  margin-top: 30px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 3px rgba(243,146,34,0.3); }
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 84px);
  line-height: 1.0;
  margin: 24px 0 18px;
  color: #fff;
  text-shadow: 0 4px 18px rgba(0,0,0,0.35), 0 2px 0 rgba(0,0,0,0.2);
}
.hero-title .row { display: block; }
.hero-title .row.italic { font-style: italic; color: var(--gold); }
.hero-title .row.outline {
  -webkit-text-stroke: 2px #fff;
  color: transparent;
  text-shadow: none;
}
.hero-sub {
  max-width: 720px;
  margin: 0 auto 28px;
  color: #fff;
  font-size: 19px;
  text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero-sub strong { color: var(--gold); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }

/* ---------- Stat strip ---------- */
.stat-strip {
  background: #fff;
  border-top: 4px solid var(--pink);
  border-bottom: 4px solid var(--teal);
  padding: 40px 0;
}
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center;
}
.stat .num {
  font-family: var(--font-display); font-size: 48px; color: var(--orange);
  line-height: 1;
}
.stat .num.teal { color: var(--teal); }
.stat .num.pink { color: var(--pink); }
.stat .lbl { font-size: 13px; color: var(--ink-muted); text-transform: uppercase; letter-spacing: 1.5px; font-weight: 700; margin-top: 8px; }

/* ---------- Section base ---------- */
.section { padding: 90px 0; position: relative; }
.section-bg-alt { background: var(--floss-pink); }
.section-bg-dark { background: var(--midway); color: var(--on-dark); }
.section-bg-dark h1, .section-bg-dark h2, .section-bg-dark h3, .section-bg-dark h4 { color: var(--on-dark); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--ink-muted); font-size: 17px; max-width: 620px; margin: 16px auto 0; text-align: left; }
.section-bg-dark .section-head p { color: var(--on-dark-muted); }

.divider-glyph {
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin: 18px auto 0; max-width: 320px;
}
.divider-glyph .line { flex: 1; height: 2px; background: linear-gradient(90deg, transparent, var(--pink), transparent); }
.divider-glyph .glyph { color: var(--orange); font-size: 22px; }

/* ---------- Features grid ---------- */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px;
}
.feature-card {
  background: #fff;
  border: 2px solid var(--floss-pink);
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 0; height: 6px;
  background: var(--grad-bunting);
}
.feature-card.alt { background: var(--cream); }
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(232,71,155,0.15); }
.feature-card .ico {
  font-size: 36px; line-height: 1; margin: 6px 0 14px;
}
.feature-card h3 { font-family: var(--font-display); color: var(--ink); margin-bottom: 10px; }
.feature-card p { color: var(--ink-muted); font-size: 15px; line-height: 1.6; text-align: left; }
.feature-card p strong { color: var(--pink); }

/* ---------- Categories grid ---------- */
.cats-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px;
}
.cat-card {
  background: #fff;
  border-radius: var(--radius-card);
  padding: 24px 16px;
  text-align: center;
  border-bottom: 6px solid var(--gold);
  box-shadow: 0 4px 14px rgba(42,32,48,0.08);
  transition: transform 0.2s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card.bonbon { border-color: var(--orange); }
.cat-card.liquorice { border-color: var(--purple); }
.cat-card.toffee { border-color: var(--gold); }
.cat-card.cane { border-color: var(--red); }
.cat-card.jellybean { border-color: var(--teal); }
.cat-card .glyph {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 14px;
  background: var(--floss-pink);
}
.cat-card.bonbon .glyph { background: #FDE4CC; }
.cat-card.liquorice .glyph { background: #E7DAEF; }
.cat-card.toffee .glyph { background: #FCF1CD; }
.cat-card.cane .glyph { background: #FBDAD9; }
.cat-card.jellybean .glyph { background: #D8EFEC; }
.cat-card h4 { font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-bottom: 6px; }
.cat-card p { font-size: 13px; color: var(--ink-muted); line-height: 1.5; margin: 0; }

/* ---------- Rank ladder ---------- */
.rank-ladder {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  max-width: 880px; margin: 0 auto;
}
.rank-pill {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(248, 232, 255, 0.25);
  color: var(--on-dark);
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
}
.rank-pill .num {
  background: var(--pink);
  color: #fff;
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.rank-pill.active {
  background: var(--grad-cta);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 6px 18px rgba(232,71,155,0.4);
}
.rank-pill.divine {
  background: linear-gradient(135deg, var(--gold), var(--orange));
  border-color: var(--gold);
  color: var(--ink);
  box-shadow: 0 0 24px rgba(240,200,74,0.4);
}
.rank-pill.divine .num { background: var(--ink); color: var(--gold); }

/* ---------- Tag pills (Sweet 5 row) ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 32px auto 0; max-width: 880px; }
.tag-pill {
  background: #fff;
  border: 2px solid var(--gold);
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  display: inline-flex; align-items: center; gap: 8px;
}
.tag-pill.pink { border-color: var(--pink); }
.tag-pill.teal { border-color: var(--teal); }
.tag-pill.orange { border-color: var(--orange); }
.tag-pill.red { border-color: var(--red); }
.tag-pill::before { content: '⭐'; font-size: 12px; color: var(--gold); }

/* ---------- Screenshots carousel ---------- */
.screens-wrap { padding: 10px 0; }
.swiper-slide { display: flex; flex-direction: column; align-items: center; height: auto; }
.screen-frame {
  background: linear-gradient(180deg, #2A2742, #1B1830);
  padding: 12px;
  border-radius: 38px;
  box-shadow: 0 18px 40px rgba(42,32,48,0.25), 0 0 0 2px rgba(232,71,155,0.4);
  max-width: 280px;
  margin: 0 auto;
}
.screen-frame img {
  border-radius: 26px;
  max-height: 380px;
  width: auto;
  margin: 0 auto;
}
.screen-caption {
  font-family: var(--font-display);
  text-align: center;
  margin-top: 14px;
  color: var(--pink);
  font-size: 16px;
}
.swiper-pagination-bullet { background: var(--pink); opacity: 0.4; }
.swiper-pagination-bullet-active { background: var(--orange); opacity: 1; }
.swiper-button-prev, .swiper-button-next { color: var(--pink); }

/* ---------- Oracle / atmosphere card ---------- */
.oracle-card {
  max-width: 820px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius-card);
  padding: 36px 32px;
  position: relative;
  box-shadow: 0 18px 40px rgba(42,32,48,0.1);
  border-top: 6px solid var(--orange);
}
.oracle-card .stamp {
  position: absolute; top: -14px; right: 24px;
  background: var(--pink); color: #fff;
  padding: 6px 14px; border-radius: 999px;
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase; font-weight: 800;
}
.oracle-card h3 { font-family: var(--font-display); margin-bottom: 14px; color: var(--ink); }
.oracle-card p { color: var(--ink-muted); text-align: left; }
.verbatim {
  background: var(--floss-pink);
  border-left: 4px solid var(--pink);
  padding: 18px 22px;
  margin: 22px 0;
  font-style: italic;
  font-size: 17px;
  color: var(--ink);
  border-radius: 6px;
}
.ai-strip {
  display: flex; align-items: flex-start; gap: 14px;
  margin-top: 22px; padding: 16px 18px;
  background: var(--cream);
  border-radius: 12px;
  font-size: 14px; color: var(--ink-muted);
  text-align: left;
}
.ai-strip .ico-ai {
  width: 36px; height: 36px; flex: 0 0 36px;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.ai-strip strong { color: var(--ink); }

/* ---------- CTA section ---------- */
.cta-section {
  position: relative;
  padding: 100px 0;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(31,168,158,0.92) 0%, rgba(232,71,155,0.92) 100%),
    url('images/cta_bg.webp') center / cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.cta-section h2 {
  font-size: clamp(36px, 6vw, 64px);
  color: #fff;
  text-shadow: 0 4px 14px rgba(0,0,0,0.3);
  margin-bottom: 18px;
}
.cta-section h2 .stroke {
  -webkit-text-stroke: 2px #fff;
  color: transparent;
  text-shadow: none;
}
.cta-section p {
  color: #fff;
  font-size: 19px;
  max-width: 620px;
  margin: 0 auto 30px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.3);
}

/* ---------- Footer ---------- */
footer {
  background: var(--midway);
  color: var(--on-dark);
  padding: 60px 0 28px;
}
footer .inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
footer .col-brand p { color: var(--on-dark-muted); font-size: 14px; margin-top: 14px; max-width: 320px; }
footer h5 {
  font-family: var(--font-display); font-size: 16px; color: var(--gold);
  margin-bottom: 14px;
}
footer ul { list-style: none; padding: 0; margin: 0; }
footer ul li { margin-bottom: 8px; }
footer ul li a { color: var(--on-dark-muted); font-size: 14px; }
footer ul li a:hover { color: var(--pink-bright); }
footer .brand-name { color: var(--on-dark); }
.compliance-footer {
  text-align: center;
  margin: 24px 0 16px;
  padding: 16px;
  background: rgba(232,71,155,0.1);
  border-radius: 10px;
  color: var(--on-dark-muted);
  font-size: 13px;
}
.compliance-footer .strong { color: var(--gold); font-weight: 700; }
.legal {
  text-align: center;
  color: var(--on-dark-faded);
  font-size: 13px;
  margin: 0;
}

/* ---------- Legal page styles ---------- */
.legal-page {
  background: var(--cream);
  padding: 60px 0 80px;
}
.legal-content {
  max-width: 820px; margin: 0 auto;
  background: #fff;
  padding: 50px 44px;
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(42,32,48,0.08);
  border-top: 6px solid var(--pink);
}
.legal-content h1 {
  font-family: var(--font-display);
  font-size: 36px;
  color: var(--ink);
  margin-bottom: 8px;
  text-align: center;
}
.legal-content .updated {
  text-align: center; color: var(--ink-hint); font-size: 14px;
  margin-bottom: 30px;
}
.legal-content h2 {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--pink);
  margin-top: 32px; margin-bottom: 12px;
}
.legal-content h3 {
  font-size: 18px;
  color: var(--ink);
  margin-top: 22px; margin-bottom: 10px;
  font-family: var(--font-body); font-weight: 700;
}
.legal-content p { color: var(--ink); margin-bottom: 14px; }
.legal-content ul { padding-left: 22px; color: var(--ink); }
.legal-content li { margin-bottom: 8px; }

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 640px;
  margin: 0 auto;
  background: #fff;
  padding: 40px 36px;
  border-radius: var(--radius-card);
  box-shadow: 0 18px 40px rgba(42,32,48,0.08);
  border-top: 6px solid var(--teal);
}
.contact-form label {
  display: block; font-weight: 700; font-size: 14px;
  color: var(--ink); margin-bottom: 6px; margin-top: 18px;
}
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="file"],
.contact-form textarea {
  width: 100%; padding: 12px 14px;
  border: 2px solid var(--floss-pink);
  border-radius: 10px;
  font-family: var(--font-body); font-size: 15px;
  color: var(--ink);
  background: var(--cream);
  transition: border-color 0.15s ease;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--pink);
}
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form .submit-row { margin-top: 26px; text-align: center; }

/* ---------- Privacy acceptance button ---------- */
.privacy-accept-btn {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 999;
  padding: 18px 20px 24px;
  display: flex; justify-content: center;
  background: linear-gradient(180deg, transparent 0%, rgba(251,243,230,0.95) 30%, var(--cream) 100%);
}
.privacy-accept-btn.hidden { display: none; }
.accept-btn {
  background: var(--grad-cta);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 16px;
  padding: 16px 38px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(232,71,155,0.5);
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center;
  min-height: 52px;
  letter-spacing: 0.3px;
}
.accept-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(232,71,155,0.6); }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(3, 1fr); }
  footer .inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--cream);
    flex-direction: column;
    padding: 18px 24px;
    gap: 14px;
    border-bottom: 2px solid var(--pink);
    max-height: 0; overflow: hidden;
    transition: max-height 0.25s ease, padding 0.25s ease;
  }
  .nav-links.open { max-height: 400px; padding: 18px 24px; }
  .nav-toggle { display: block; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .stat .num { font-size: 38px; }
  .features-grid { grid-template-columns: 1fr; }
  .cats-grid { grid-template-columns: repeat(2, 1fr); }
  footer .inner { grid-template-columns: 1fr; }
  .legal-content { padding: 32px 22px; }
  .section { padding: 60px 0; }
  .hero { padding: 60px 0 80px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}
