/* =========================================================
   MENTALMATHS Abacus Classes — Design System
   Brand colours taken from the official logo (navy + orange)
   ========================================================= */

:root {
  --navy-900: #0b1f33;
  --navy-800: #12304d;
  --navy-700: #1c4468;
  --navy-100: #e6eef6;
  --orange-600: #e06f0b;
  --orange-500: #f0841f;
  --orange-400: #f9a24a;
  --orange-100: #fff0e0;
  --cream: #fff9f1;
  --sky: #eaf5ff;
  --mint: #12b886;
  --mint-100: #dcf8ee;
  --pink: #f0567a;
  --pink-100: #ffe6ec;
  --violet: #7b61ff;
  --violet-100: #eee9ff;
  --yellow: #ffd166;
  --ink: #16263a;
  --muted: #5b6b7d;
  --line: #e7e2d9;
  --white: #ffffff;

  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 8px rgba(18, 48, 77, .06);
  --shadow: 0 10px 30px rgba(18, 48, 77, .10);
  --shadow-lg: 0 24px 60px rgba(18, 48, 77, .16);

  --font: "Baloo Bhai 2", "Noto Sans Gujarati", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1200px;
  --header-h: 76px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy-800); font-weight: 700; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 999; background: var(--navy-800); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .85em 1.5em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; line-height: 1.1; white-space: nowrap;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--orange-500); color: #fff; box-shadow: 0 8px 20px rgba(240, 132, 31, .35); }
.btn-primary:hover { background: var(--orange-600); box-shadow: 0 12px 26px rgba(240, 132, 31, .45); }
.btn-dark { background: var(--navy-800); color: #fff; }
.btn-dark:hover { background: var(--navy-900); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); background: transparent; }
.btn-outline:hover { background: var(--navy-800); color: #fff; }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-whatsapp { background: #25d366; color: #fff; box-shadow: 0 8px 20px rgba(37, 211, 102, .3); }
.btn-whatsapp:hover { background: #1ebe5b; }
.btn-lg { font-size: 1.1rem; padding: 1em 1.8em; }
.btn-sm { font-size: .9rem; padding: .6em 1.1em; }
.btn-block { width: 100%; }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--navy-900); color: #cfe0f1; font-size: .85rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 38px; flex-wrap: wrap; }
.topbar a:hover { color: var(--orange-400); }
.topbar .award { color: var(--yellow); font-weight: 600; }
.topbar .tb-right { display: flex; gap: 18px; align-items: center; }
@media (max-width: 640px) { .topbar .tb-hide { display: none; } }

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { height: 44px; width: auto; }
.brand-text { line-height: 1; }
.brand-text strong { display: block; font-size: 1.35rem; letter-spacing: .02em; color: var(--navy-800); }
.brand-text strong span { color: var(--orange-500); }
.brand-text small { display: block; font-size: .66rem; letter-spacing: .22em; color: var(--muted); font-weight: 600; margin-top: 3px; }

.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a { display: block; padding: .5em .85em; border-radius: 999px; font-weight: 600; color: var(--navy-800); transition: background .2s, color .2s; }
.main-nav a:hover { background: var(--orange-100); color: var(--orange-600); }
.main-nav a[aria-current="page"] { background: var(--navy-800); color: #fff; }
.header-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 0; background: var(--orange-100); color: var(--navy-800); font-size: 1.3rem; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-cta .btn { display: none; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 auto 0; background: #fff;
    border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg);
    padding: 12px 20px 24px; transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
    max-height: calc(100vh - var(--header-h)); overflow: auto;
  }
  .main-nav.open { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: .8em 1em; border-radius: 14px; font-size: 1.05rem; }
  .main-nav .mobile-cta { display: block; margin-top: 10px; }
}
@media (min-width: 1181px) { .main-nav .mobile-cta { display: none; } }
@media (min-width: 1181px) and (max-width: 1300px) { .main-nav a { padding: .5em .65em; font-size: .95rem; } .brand-text strong { font-size: 1.2rem; } }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 100px) 0; }
.section-white { background: #fff; }
.section-sky { background: var(--sky); }
.section-navy { background: radial-gradient(1200px 500px at 80% -10%, #1f4c75 0%, var(--navy-800) 45%, var(--navy-900) 100%); color: #dbe7f3; }
.section-navy h2, .section-navy h3 { color: #fff; }

.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: .35em 1em; border-radius: 999px;
  background: var(--orange-100); color: var(--orange-600); font-weight: 700; font-size: .85rem; letter-spacing: .04em; margin-bottom: 14px;
}
.section-navy .eyebrow { background: rgba(255, 209, 102, .15); color: var(--yellow); }
.section-title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.section-title .hl { color: var(--orange-500); }
.lead { font-size: 1.12rem; color: var(--muted); }
.section-navy .lead { color: #b9cde1; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 90px) 0 clamp(60px, 8vw, 110px); background: linear-gradient(180deg, #fff 0%, var(--cream) 100%); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(18, 48, 77, .09) 1.5px, transparent 1.5px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 10%, transparent 70%);
}
.hero .container { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--yellow); padding: .4em 1em; border-radius: 999px; font-weight: 700; font-size: .9rem; box-shadow: var(--shadow-sm); }
.hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.9rem); margin: 18px 0 16px; letter-spacing: -.01em; }
.hero h1 .accent { color: var(--orange-500); position: relative; white-space: nowrap; }
.hero h1 .accent::after { content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .22em; background: var(--yellow); opacity: .55; z-index: -1; border-radius: 6px; }
.hero .lead { max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0 32px; }
.hero-tagline { font-weight: 700; color: var(--navy-700); display: inline-flex; align-items: center; gap: 8px; }
.hero-tagline i { color: var(--orange-500); }

.hero-stats { display: flex; flex-wrap: wrap; gap: 14px; }
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 18px;
  display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm);
}
.stat .ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 1.15rem; }
.stat b { display: block; font-size: 1.35rem; line-height: 1.1; color: var(--navy-800); }
.stat small { color: var(--muted); font-weight: 600; font-size: .8rem; }

.hero-visual { position: relative; }
.hero-card {
  position: relative; background: #fff; border-radius: var(--radius-lg); padding: 28px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--line);
}
.hero-card .logo-box { background: var(--cream); border-radius: var(--radius); padding: 18px; display: grid; place-items: center; }
.hero-card .logo-box img { max-height: 150px; width: auto; }
.mentor-tag { text-align: center; margin-top: 18px; }
.mentor-tag .label { font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--navy-700); background: var(--navy-100); padding: .3em .9em; border-radius: 999px; }
.mentor-tag h2 { font-size: 1.7rem; margin: 10px 0 2px; }
.mentor-tag p { color: var(--orange-600); font-weight: 700; margin: 0; }
.float-chip {
  position: absolute; background: #fff; border-radius: 16px; padding: 10px 14px; box-shadow: var(--shadow);
  font-weight: 700; font-size: .9rem; display: flex; align-items: center; gap: 8px; animation: floaty 5s ease-in-out infinite;
}
.float-chip.c1 { top: -18px; right: -10px; background: var(--pink); color: #fff; transform: rotate(4deg); }
.float-chip.c2 { bottom: -20px; left: -18px; animation-delay: -2.5s; }
.float-chip.c2 i { color: var(--mint); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }

@media (max-width: 960px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-text { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .float-chip.c2 { left: 8px; }
  .float-chip.c1 { right: 8px; }
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(48px, 7vw, 84px) 0; background: radial-gradient(900px 400px at 85% -20%, #1f4c75 0%, var(--navy-800) 50%, var(--navy-900) 100%); color: #cfe0f1; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 28px solid rgba(240, 132, 31, .25); }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3.2rem); margin: 10px 0; }
.page-hero p { max-width: 680px; font-size: 1.1rem; margin: 0; }
.breadcrumb { font-size: .88rem; color: #9fb7cf; }
.breadcrumb a:hover { color: var(--orange-400); }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  box-shadow: var(--shadow-sm); transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 1.3rem; }
.card p { color: var(--muted); }
.card .ico { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 18px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; padding: 4px 0; }
.checklist i { margin-top: .3em; color: var(--mint); }

.tone-orange { background: var(--orange-100); color: var(--orange-600); }
.tone-navy { background: var(--navy-100); color: var(--navy-700); }
.tone-mint { background: var(--mint-100); color: var(--mint); }
.tone-pink { background: var(--pink-100); color: var(--pink); }
.tone-violet { background: var(--violet-100); color: var(--violet); }
.tone-yellow { background: #fff4d1; color: #c48a00; }

.feature-card { position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; right: -50px; top: -50px; background: currentColor; opacity: .05; }

/* ---------- Split block ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.reverse > :first-child { order: 0; } }

/* ---------- Steps / method ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: start; background: #fff; border-radius: var(--radius); padding: 18px 20px; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); width: 56px; height: 56px; border-radius: 18px; background: var(--orange-500); color: #fff; font-weight: 800; font-size: 1.4rem; display: grid; place-items: center; }
.step h3 { font-size: 1.15rem; margin-bottom: .2em; }
.step p { margin: 0; color: var(--muted); font-size: .97rem; }

/* ---------- Mentors ---------- */
.mentor-card { text-align: center; }
.mentor-avatar { width: 120px; height: 120px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: #fff; box-shadow: var(--shadow); border: 5px solid #fff; }
.mentor-avatar.a1 { background: linear-gradient(135deg, var(--navy-700), var(--navy-900)); }
.mentor-avatar.a2 { background: linear-gradient(135deg, var(--orange-400), var(--orange-600)); }
.award-pill { display: inline-flex; align-items: center; gap: 6px; background: #fff4d1; color: #a77400; font-weight: 700; font-size: .85rem; padding: .3em .9em; border-radius: 999px; }

/* ---------- Levels / programs ---------- */
.level-card { position: relative; display: flex; flex-direction: column; }
.level-card .level-no { font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.level-card h3 { margin-top: 6px; }
.level-card .meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 700; padding: .25em .8em; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); color: var(--navy-700); }
.level-card .checklist { margin-top: auto; }

.timeline { position: relative; display: grid; gap: 18px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: linear-gradient(var(--orange-500), var(--navy-700)); }
.tl-item { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.tl-item::before { content: ""; position: absolute; left: -29px; top: 22px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--orange-500); }
.tl-item h3 { font-size: 1.15rem; margin-bottom: .25em; }
.tl-item p { margin: 0; color: var(--muted); }

/* ---------- Media (video / photos) ---------- */
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--navy-900); }
.media-frame video, .media-frame img { width: 100%; height: 100%; object-fit: cover; }
.video-frame { aspect-ratio: 16 / 10; }
.video-frame.portrait { aspect-ratio: 478 / 850; max-width: 420px; margin-inline: auto; }
.play-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; border: 0; color: #fff;
  background: linear-gradient(180deg, rgba(11, 31, 51, .2), rgba(11, 31, 51, .65));
}
.play-overlay .pbtn { width: 84px; height: 84px; border-radius: 50%; background: var(--orange-500); display: grid; place-items: center; font-size: 1.8rem; box-shadow: 0 0 0 12px rgba(240, 132, 31, .25); transition: transform .2s; }
.play-overlay:hover .pbtn { transform: scale(1.08); }
.play-overlay span.cap { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-weight: 700; }
.photo-frame { aspect-ratio: 4 / 5; }

/* ---------- Interactive abacus ---------- */
.abacus-wrap { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-lg); padding: clamp(16px, 3vw, 32px); box-shadow: var(--shadow-lg); }
.abacus-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 20px; }
.abacus-value small { display: block; color: #9fb7cf; font-weight: 600; font-size: .85rem; }
.abacus-value output { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 800; color: var(--yellow); line-height: 1; font-variant-numeric: tabular-nums; }
.abacus-challenge { background: rgba(240, 132, 31, .15); border: 1px solid rgba(240, 132, 31, .6); color: #ffd3a8; padding: .6em 1em; border-radius: 14px; font-weight: 700; }
.abacus-challenge b { color: #fff; font-size: 1.25em; }
.abacus-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.abacus {
  --bead-w: clamp(38px, 7vw, 58px);
  --bead-h: clamp(22px, 3.6vw, 28px);
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: clamp(2px, 1vw, 12px);
  background: linear-gradient(180deg, #8a4b1f, #6b3612); padding: 14px clamp(10px, 2vw, 22px);
  border-radius: 22px; border: 10px solid #4a230b; box-shadow: inset 0 4px 14px rgba(0, 0, 0, .45), 0 18px 40px rgba(0, 0, 0, .35);
  max-width: 760px; margin: 0 auto; user-select: none; -webkit-user-select: none; touch-action: manipulation;
}
.rod { position: relative; display: flex; flex-direction: column; align-items: center; }
.rod::before { content: ""; position: absolute; top: 26px; bottom: 34px; left: 50%; width: 5px; transform: translateX(-50%); background: linear-gradient(90deg, #d9c39a, #fff6de, #c8ad7e); border-radius: 3px; }
.rod-label { position: relative; font-size: .72rem; font-weight: 700; color: #ffd9a8; height: 22px; }
.deck { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; }
.deck.heaven { height: calc(var(--bead-h) * 2 + 10px); justify-content: flex-start; }
.deck.earth { height: calc(var(--bead-h) * 5 + 24px); justify-content: flex-end; gap: 3px; padding-bottom: 2px; }
.beam { position: relative; z-index: 2; width: calc(100% + clamp(2px, 1vw, 12px)); height: 12px; background: linear-gradient(180deg, #f3d9a6, #c9a46a); box-shadow: 0 2px 4px rgba(0, 0, 0, .35); }
.beam.dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px; border-radius: 50%; background: var(--navy-900); }
.bead {
  position: relative; z-index: 1; width: var(--bead-w); height: var(--bead-h); border-radius: 50%; border: 0; padding: 0;
  background: radial-gradient(ellipse at 35% 30%, #ffc98f 0%, var(--orange-500) 45%, #b35a07 100%);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .35); transition: transform .22s cubic-bezier(.3, 1.4, .5, 1), filter .2s;
}
.bead:hover { filter: brightness(1.1); }
.bead.heaven-bead { background: radial-gradient(ellipse at 35% 30%, #8fd0ff 0%, #2a7fc4 50%, #134a78 100%); }
.bead.active { filter: saturate(1.25) brightness(1.08); }
.deck.heaven .bead.active { transform: translateY(calc(var(--bead-h) + 8px)); }
.deck.earth .bead.active { transform: translateY(calc(var(--bead-h) * -1 - 16px)); }
.rod-digit { position: relative; z-index: 2; margin-top: 8px; width: 30px; height: 30px; border-radius: 50%; background: #fff; color: var(--navy-800); font-weight: 800; display: grid; place-items: center; font-size: .95rem; }
.abacus-feedback { text-align: center; min-height: 32px; margin-top: 16px; font-weight: 700; font-size: 1.1rem; color: #7ff0c6; }
.abacus-hint { text-align: center; color: #9fb7cf; font-size: .92rem; margin-top: 6px; }

.celebrate { animation: pop .5s ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.03); } 100% { transform: scale(1); } }

/* ---------- Practice games ---------- */
.tabs { display: inline-flex; background: rgba(255, 255, 255, .08); border-radius: 999px; padding: 5px; gap: 4px; flex-wrap: wrap; justify-content: center; }
.tab { border: 0; background: transparent; color: #cfe0f1; padding: .6em 1.2em; border-radius: 999px; font-weight: 700; }
.tab[aria-selected="true"] { background: var(--orange-500); color: #fff; }
.tab-panel[hidden] { display: none; }

.flash-stage { background: #fff; color: var(--navy-800); border-radius: var(--radius-lg); padding: clamp(20px, 4vw, 40px); text-align: center; box-shadow: var(--shadow-lg); }
.flash-settings { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 20px; }
.flash-settings label { display: flex; flex-direction: column; font-weight: 700; font-size: .85rem; color: var(--muted); text-align: left; gap: 4px; }
.flash-settings select { padding: .5em .8em; border-radius: 12px; border: 2px solid var(--line); font: inherit; font-weight: 600; color: var(--navy-800); background: var(--cream); }
.flash-number { font-size: clamp(4rem, 16vw, 8rem); font-weight: 800; line-height: 1; min-height: 1.2em; display: grid; place-items: center; color: var(--navy-800); font-variant-numeric: tabular-nums; }
.flash-number.neg { color: var(--pink); }
.flash-progress { height: 8px; border-radius: 8px; background: var(--navy-100); overflow: hidden; margin: 16px auto; max-width: 420px; }
.flash-progress span { display: block; height: 100%; width: 0; background: var(--orange-500); transition: width .2s; }
.flash-answer { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.flash-answer input { width: 200px; font: inherit; font-size: 1.4rem; font-weight: 700; text-align: center; padding: .4em .6em; border-radius: 14px; border: 2px solid var(--line); }
.flash-answer input:focus { border-color: var(--orange-500); outline: none; }
.flash-result { min-height: 30px; margin-top: 14px; font-weight: 700; font-size: 1.1rem; }
.flash-result.ok { color: var(--mint); }
.flash-result.bad { color: var(--pink); }
.score-row { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-weight: 700; }
.score-row b { color: var(--navy-800); }

/* ---------- Benefits ---------- */
.benefit { text-align: left; border-bottom: 5px solid var(--c, var(--orange-500)); }
.benefit .ico { background: color-mix(in srgb, var(--c, var(--orange-500)) 14%, #fff); color: var(--c, var(--orange-500)); }

/* ---------- Counter band ---------- */
.counter-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.counter-band .num { font-size: clamp(2.2rem, 5vw, 3.2rem); font-weight: 800; color: var(--yellow); line-height: 1; }
.counter-band .lbl { color: #b9cde1; font-weight: 600; margin-top: 6px; }
@media (max-width: 720px) { .counter-band { grid-template-columns: repeat(2, 1fr); row-gap: 30px; } }

/* ---------- Centers ---------- */
.center-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.center-card .center-top { padding: 26px 26px 0; }
.center-card .center-pin { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; margin-bottom: 14px; }
.center-card h3 { font-size: 1.45rem; margin-bottom: .2em; }
.center-card h3 small { display: block; font-size: .95rem; color: var(--muted); font-weight: 600; }
.center-card address { font-style: normal; color: var(--ink); font-weight: 500; margin: 10px 0 0; }
.center-card .center-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 20px 26px 26px; margin-top: auto; }
.center-map { width: 100%; height: 220px; border: 0; display: block; background: var(--navy-100); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; font-weight: 700; font-size: 1.08rem; color: var(--navy-800); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); display: grid; place-items: center; font-size: 1.3rem; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 56px); background: linear-gradient(120deg, var(--orange-500), #f36b4b 60%, var(--pink)); color: #fff; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; box-shadow: var(--shadow-lg); }
.cta-band::before { content: "+  −  ×  ÷"; position: absolute; right: -10px; top: -30px; font-size: 9rem; font-weight: 800; opacity: .08; white-space: nowrap; pointer-events: none; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3.4vw, 2.4rem); }
.cta-band p { margin: 0; opacity: .92; }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; position: relative; }
@media (max-width: 820px) { .cta-band { grid-template-columns: 1fr; text-align: center; } .cta-band .cta-actions { justify-content: center; } }

/* ---------- Forms ---------- */
.form-card { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid var(--line); }
.form-card .form-head { background: linear-gradient(120deg, var(--navy-800), var(--navy-700)); color: #dbe7f3; padding: 28px 32px; }
.form-card .form-head h2 { color: #fff; margin-bottom: .2em; font-size: 1.7rem; }
.form-card .form-head p { margin: 0; }
.form-body { padding: clamp(22px, 4vw, 36px); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--navy-800); margin-bottom: 6px; }
.field label .req { color: var(--pink); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .75em 1em; border-radius: 14px; border: 2px solid var(--line); background: var(--cream); color: var(--ink); transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange-500); background: #fff; }
.field .err { display: none; color: var(--pink); font-size: .85rem; font-weight: 600; margin-top: 4px; }
.field.invalid input, .field.invalid select { border-color: var(--pink); }
.field.invalid .err { display: block; }
.form-note { font-size: .85rem; color: var(--muted); text-align: center; margin: 0; }
.hp { position: absolute; left: -5000px; }
.form-success { padding: 40px 32px; text-align: center; }
.form-success .tick { width: 76px; height: 76px; margin: 0 auto 16px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font-size: 2rem; box-shadow: 0 0 0 12px var(--mint-100); }
.form-success[hidden] { display: none; }

.contact-list { display: grid; gap: 14px; }
.contact-item { display: flex; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; transition: transform .2s, box-shadow .2s; }
.contact-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.contact-item .ico { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.contact-item small { display: block; color: var(--muted); font-weight: 600; }
.contact-item b { color: var(--navy-800); font-size: 1.08rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-900); color: #b9cde1; padding: 64px 0 28px; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding-bottom: 36px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: 1.05rem; margin-bottom: 14px; }
.site-footer li { padding: 4px 0; }
.site-footer a:hover { color: var(--orange-400); }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; background: #fff; padding: 8px 14px; border-radius: 14px; margin-bottom: 14px; }
.footer-brand img { height: 36px; width: auto; }
.footer-brand span { font-weight: 800; color: var(--navy-800); font-size: 1.1rem; }
.footer-brand span em { font-style: normal; color: var(--orange-500); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 22px; font-size: .85rem; color: #8ea6bf; }
.socials { display: flex; gap: 10px; margin-top: 14px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); display: grid; place-items: center; transition: background .2s; }
.socials a:hover { background: var(--orange-500); color: #fff; }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 90; width: 60px; height: 60px; border-radius: 50%;
  background: #25d366; color: #fff; display: grid; place-items: center; font-size: 2rem; box-shadow: 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #25d366; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.6); opacity: 0; } }

/* Mobile sticky action bar */
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar { display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, .08); padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
  .mobile-bar .btn { padding: .8em .6em; font-size: .95rem; }
  .wa-float { display: none; }
  body { padding-bottom: 72px; }
}

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

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

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.mt-6 { margin-top: 48px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.flex-center { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.note-box { background: var(--orange-100); border-left: 5px solid var(--orange-500); padding: 16px 20px; border-radius: 14px; color: var(--navy-800); font-weight: 600; }

/* Mobile CTA inside nav keeps button colours */
.main-nav .mobile-cta a.btn { color: #fff; background: var(--orange-500); }
.main-nav .mobile-cta a.btn:hover { background: var(--orange-600); }

/* ---------- Instagram showcase ---------- */
.ig-section { position: relative; overflow: hidden; background: linear-gradient(180deg, #fff 0%, #fff4ec 55%, #fdeef6 100%); }
.ig-section::before, .ig-section::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none; }
.ig-section::before { width: 360px; height: 360px; left: -120px; top: 40px; background: #feda75; }
.ig-section::after { width: 420px; height: 420px; right: -140px; bottom: 60px; background: #d62976; opacity: .18; }
.ig-section .container { position: relative; z-index: 1; }
.ig-eyebrow { background: linear-gradient(90deg, #feda75, #fa7e1e, #d62976, #962fbf); color: #fff; }
.ig-gradient-text { background: linear-gradient(90deg, #fa7e1e, #d62976 50%, #962fbf); -webkit-background-clip: text; background-clip: text; color: transparent; }

.ig-filters { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: -16px 0 28px; }
.ig-filters[hidden] { display: none; }
.ig-chip { border: 2px solid var(--line); background: #fff; color: var(--navy-800); font-weight: 700; padding: .45em 1.1em; border-radius: 999px; transition: all .2s; }
.ig-chip:hover { border-color: #d62976; color: #d62976; }
.ig-chip[aria-pressed="true"] { background: linear-gradient(90deg, #fa7e1e, #d62976); border-color: transparent; color: #fff; }

.ig-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 24px; align-items: start; }
.ig-card {
  position: relative; background: #fff; border-radius: 24px; padding: 14px; border: 1px solid var(--line);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-width: 0;
  animation: igIn .6s ease both; animation-delay: var(--d, 0s); transition: transform .25s ease, box-shadow .25s ease;
}
.ig-card::before { content: ""; position: absolute; inset: -2px; border-radius: 26px; padding: 2px; background: linear-gradient(135deg, #feda75, #fa7e1e, #d62976, #962fbf); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .25s; pointer-events: none; }
.ig-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ig-card:hover::before { opacity: 1; }
@keyframes igIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }

.ig-card-top { display: flex; justify-content: space-between; align-items: center; }
.ig-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 800; padding: .3em .85em; border-radius: 999px; letter-spacing: .02em; }
.ig-badge-reel { background: linear-gradient(90deg, #fa7e1e, #d62976); color: #fff; }
.ig-badge-post { background: var(--navy-100); color: var(--navy-700); }
.ig-badge-live-replay { background: var(--violet-100); color: var(--violet); }
.ig-open { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); background: var(--cream); transition: all .2s; }
.ig-open:hover { background: #d62976; color: #fff; }
.ig-title { font-size: 1.05rem; margin: 0; }

.ig-embed { position: relative; min-height: 540px; border-radius: 16px; overflow: hidden; background: var(--cream); }
.ig-card.is-loaded .ig-embed { min-height: 0; background: transparent; }
.ig-embed .instagram-media, .ig-embed iframe { min-width: 0 !important; width: 100% !important; max-width: 100% !important; margin: 0 !important; border-radius: 14px !important; box-shadow: none !important; border: 0 !important; }
.ig-skeleton { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-weight: 700;
  background: linear-gradient(110deg, #f6efe6 30%, #fff8f0 50%, #f6efe6 70%); background-size: 200% 100%; animation: igShimmer 1.4s linear infinite; z-index: 1; }
.ig-play { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, #fa7e1e, #d62976, #962fbf); box-shadow: 0 10px 24px rgba(214, 41, 118, .35); }
.ig-card.is-loaded .ig-skeleton { display: none; }
@keyframes igShimmer { to { background-position: -200% 0; } }

.ig-fallback { display: none; align-self: center; background: linear-gradient(90deg, #fa7e1e, #d62976); color: #fff; }
.ig-card.is-failed .ig-fallback, .ig-blocked .ig-fallback { display: inline-flex; }
.ig-card.is-failed .ig-skeleton, .ig-blocked .ig-skeleton { animation: none; }
.ig-card.is-failed .ig-skel-text::after, .ig-blocked .ig-skel-text::after { content: " (blocked by browser)"; }

.ig-follow { background: linear-gradient(90deg, #feda75 -20%, #fa7e1e 15%, #d62976 55%, #962fbf 100%); color: #fff; box-shadow: 0 10px 24px rgba(214, 41, 118, .35); }
.ig-follow:hover { box-shadow: 0 14px 30px rgba(214, 41, 118, .45); }

.ig-live-now { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px 16px; margin: -16px auto 28px; max-width: 760px; padding: 14px 20px; border-radius: 20px; background: linear-gradient(90deg, #e11d48, #d62976); color: #fff; box-shadow: var(--shadow); text-align: center; }
.ig-live-now[hidden] { display: none; }
.ig-live-badge { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #e11d48; font-weight: 800; letter-spacing: .08em; padding: .2em .8em; border-radius: 8px; }
.ig-live-badge .dot { width: 9px; height: 9px; border-radius: 50%; background: #e11d48; animation: livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 50% { opacity: .25; transform: scale(.7); } }

.ig-empty { grid-column: 1 / -1; text-align: center; padding: 40px 20px; background: #fff; border-radius: 24px; border: 2px dashed var(--line); color: var(--muted); font-weight: 600; }
.ig-empty i { font-size: 2.5rem; color: #d62976; margin-bottom: 10px; }

/* Small phones: keep logo + menu button on one line */
@media (max-width: 420px) {
  .brand { gap: 6px; }
  .brand img { height: 34px; }
  .brand-text strong { font-size: 1.12rem; }
  .brand-text small { font-size: .56rem; letter-spacing: .14em; }
  .site-header .container { padding-inline: 14px; }
}
@media (max-width: 340px) { .brand-text small { display: none; } }
@media (max-width: 480px) { .btn { white-space: normal; text-align: center; } }

/* Game effects */
.fx-confetti { position: fixed; inset: 0; z-index: 200; pointer-events: none; }
.sound-toggle { background: rgba(255, 255, 255, .1); color: #cfe0f1; border: 1px solid rgba(255, 255, 255, .2); }
.sound-toggle:hover { background: rgba(255, 255, 255, .2); }
.sound-toggle[aria-pressed="false"] { opacity: .7; }

/* ---------- Accessibility: AA contrast for text (decorative brand orange stays bright) ---------- */
:root { --orange-btn: #c2570c; --orange-btn-hover: #a44808; --orange-text: #9a4500; --green-btn: #178548; }
.btn-primary, .main-nav .mobile-cta a.btn { background: var(--orange-btn); }
.btn-primary:hover, .main-nav .mobile-cta a.btn:hover { background: var(--orange-btn-hover); }
.btn-whatsapp { background: var(--green-btn); }
.btn-whatsapp:hover { background: #126b3a; }
.eyebrow { color: var(--orange-text); }
.main-nav a:hover { color: var(--orange-text); }
.section-title .hl, .hero h1 .accent { color: var(--orange-600); }
.award-pill { color: #8a6000; }
.flash-result.ok { color: #0a7f5b; }
.flash-result.bad { color: #c9284f; }
.faq summary::after { color: var(--orange-text); }
