/* ============================================================
   GMind brand layer (Nov 2026)
   Built from the GMind flyer & flag: indigo field, pink flower,
   yellow/teal/pink blobs, rainbow arcs, clouds, yellow dots, G mascot.
   ============================================================ */
:root{
  --indigo:#3B3777;
  --indigo-deep:#2A2660;
  --pink:#E8336D;
  --cta:#E50B4E;
  --sun:#FFC93C;
  --teal:#33B8D6;
  --leaf:#7ED957;
  --cream:#FFF8EC;
  --ink:#201D3D;
  --display:'Lilita One','Poppins',sans-serif;
  --r-xl:32px;
}
html[lang="ar"]{ --display:'Lalezar','Cairo',sans-serif; }

body.gm-brand{ background:var(--cream); }
.b-display{ font-family:var(--display); font-weight:400; letter-spacing:.005em; line-height:1.05; }
h1.b-display{ font-size:clamp(2.7rem,6vw,5rem); }
h2.b-display{ font-size:clamp(2.2rem,4.4vw,3.6rem); }
.b-display-sm{ font-family:var(--display); font-weight:400; font-size:clamp(1.6rem,3vw,2.2rem); }
.hl-yellow{ color:var(--sun); }
.hl-pink{ color:var(--pink); }

.shape{ position:absolute; pointer-events:none; user-select:none; z-index:0; }
.container{ position:relative; z-index:2; }

/* Tags / stickers */
.b-tag{
  display:inline-block; font-weight:700; font-size:.8rem; letter-spacing:.06em; text-transform:uppercase;
  padding:8px 16px; border-radius:999px; margin-bottom:16px; transform:rotate(-2deg);
}
.tag-indigo{ background:var(--indigo); color:#fff; }
.tag-yellow{ background:var(--sun); color:var(--indigo-deep); }
.tag-pink{ background:var(--pink); color:#fff; }
.tag-teal{ background:var(--teal); color:#fff; }
.b-head{ max-width:720px; margin-bottom:48px; }
.b-head.center{ margin-left:auto; margin-right:auto; text-align:center; }
.b-head p{ margin-top:16px; font-size:1.08rem; }
.b-center{ text-align:center; margin-top:48px; }
.btn-lg{ padding:18px 38px; font-size:1.05rem; }
.btn-outline-dark{ border:2px solid var(--indigo); color:var(--indigo); background:transparent; }
.btn-outline-dark:hover{ background:var(--indigo); color:#fff; transform:translateY(-2px); }

/* Header on brand pages */
body.gm-brand .site-header .nav-links a{ font-weight:600; }

/* ---------- HERO ---------- */
.b-hero{ background:var(--indigo); color:#fff; padding:150px 0 150px; overflow:hidden; }
.b-hero-grid{ display:grid; grid-template-columns:1.1fr 1fr; gap:40px; align-items:center; }
.b-kicker{ display:inline-block; color:var(--sun); font-weight:700; letter-spacing:.04em; margin-bottom:18px; font-size:1.05rem; }
.b-hero h1{ color:#fff; margin-bottom:22px; }
.b-lead{ color:rgba(255,255,255,.82); font-size:1.12rem; max-width:560px; margin-bottom:34px; }
.path-cards{ display:grid; grid-template-columns:1fr 1fr; gap:16px; max-width:600px; }
.path-card{
  display:flex; align-items:center; gap:14px; padding:18px 18px; border-radius:22px;
  transition:transform .25s ease, box-shadow .25s ease; box-shadow:0 8px 0 rgba(0,0,0,.18);
}
.path-card:hover{ transform:translateY(-4px); box-shadow:0 12px 0 rgba(0,0,0,.18); }
.path-school{ background:var(--sun); color:var(--indigo-deep); }
.path-parent{ background:var(--pink); color:#fff; }
.path-emoji{ font-size:1.9rem; width:52px; height:52px; display:grid; place-items:center; background:rgba(255,255,255,.35); border-radius:16px; flex-shrink:0; }
.path-text{ display:flex; flex-direction:column; line-height:1.2; }
.path-text small{ font-size:.82rem; font-weight:600; opacity:.85; }
.path-text strong{ font-family:var(--display); font-weight:400; font-size:1.25rem; }
.path-arrow{ margin-inline-start:auto; font-size:1.4rem; font-weight:700; }
html[dir="rtl"] .path-arrow{ transform:scaleX(-1); }

.b-hero-visual{ position:relative; min-height:440px; display:flex; align-items:center; justify-content:center; }
.b-hero-visual::before{ content:''; position:absolute; width:min(460px,90%); aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 40% 40%, #5A54B0, #3B3777 70%); }
.b-mascot{ position:relative; z-index:2; width:min(640px,115%); max-width:none; filter:drop-shadow(0 30px 40px rgba(0,0,0,.35)); }
.hero-sticker{
  position:absolute; z-index:3; font-family:var(--display); font-size:1.3rem; padding:10px 18px; border-radius:16px;
  box-shadow:0 6px 0 rgba(0,0,0,.2); animation:bob 4s ease-in-out infinite;
}
.st-1{ background:var(--teal); color:#fff; top:6%; right:8%; transform:rotate(6deg); }
.st-2{ background:var(--sun); color:var(--indigo-deep); bottom:14%; left:2%; transform:rotate(-8deg); animation-delay:1s; }
.st-3{ background:#fff; color:var(--pink); bottom:4%; right:12%; transform:rotate(4deg); animation-delay:2s; }
@keyframes bob{ 0%,100%{ translate:0 0; } 50%{ translate:0 -8px; } }

.s-flower{ width:150px; top:90px; right:-40px; animation:spin 30s linear infinite; }
.s-arcs{ width:220px; bottom:90px; left:-60px; transform:rotate(90deg); opacity:.95; }
.s-dots{ width:22px; top:180px; left:46%; }
.s-blob-teal{ width:180px; top:-60px; left:-60px; opacity:.9; }
.s-blob-yellow{ width:130px; bottom:120px; right:30%; opacity:.9; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.cloud-edge{ position:absolute; left:0; right:0; bottom:-1px; width:100%; height:110px; z-index:3; }

/* ---------- PROOF ---------- */
.b-proof{ padding:30px 0 80px; }
.b-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:56px; }
.b-stat{ background:#fff; border-radius:24px; padding:26px 16px; text-align:center; box-shadow:0 6px 0 rgba(59,55,119,.08); }
.b-stat:nth-child(1) .stat-num{ color:var(--pink); }
.b-stat:nth-child(2) .stat-num{ color:var(--indigo); }
.b-stat:nth-child(3) .stat-num{ color:#E09A00; }
.b-stat:nth-child(4) .stat-num{ color:var(--teal); }
.b-stat .stat-num{ font-family:var(--display); font-size:clamp(2.2rem,4vw,3.2rem); line-height:1; }
.b-stat .stat-label{ font-weight:600; color:var(--ink-soft); margin-top:6px; }
.b-proof-title{ text-align:center; font-weight:700; color:var(--indigo); font-size:1.1rem; margin-bottom:26px; }

/* ---------- SCHOOLS ---------- */
.b-schools{ background:#fff; padding:110px 0; border-radius:var(--r-xl) var(--r-xl) 0 0; overflow:hidden; }
.s-arcs-light{ width:200px; top:40px; right:-40px; transform:rotate(-20deg); opacity:.9; }
.stations{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:80px; }
.station{ border-radius:28px; padding:30px 28px 34px; position:relative; color:#fff; }
.station h3{ font-family:var(--display); font-weight:400; font-size:1.7rem; color:#fff; margin:14px 0 8px; }
.station p{ color:rgba(255,255,255,.9); }
.station-num{ display:grid; place-items:center; width:48px; height:48px; border-radius:50%; background:#fff; font-family:var(--display); font-size:1.4rem; }
.st-vr{ background:var(--indigo); } .st-vr .station-num{ color:var(--indigo); }
.st-ar{ background:var(--teal); } .st-ar .station-num{ color:var(--teal); }
.st-play{ background:var(--pink); } .st-play .station-num{ color:var(--pink); }

.b-subhead{ display:flex; align-items:end; justify-content:space-between; gap:20px; flex-wrap:wrap; margin-bottom:28px; }
.b-subhead h3{ color:var(--indigo); }
.adventures{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.adv-card{ background:var(--cream); border-radius:24px; overflow:hidden; display:flex; flex-direction:column; transition:transform .25s ease, box-shadow .25s ease; }
.adv-card:hover{ transform:translateY(-6px) rotate(-.5deg); box-shadow:var(--shadow-lg); }
.adv-art{ aspect-ratio:4/3; overflow:hidden; display:grid; place-items:center; font-size:4rem; }
.adv-art img{ width:100%; height:100%; object-fit:cover; }
.adv-art-plant{ background:linear-gradient(140deg,#3FA34D,#7ED957); }
.adv-art-nature{ background:linear-gradient(140deg,#C2702B,#FFC93C); }
.adv-body{ padding:20px 20px 24px; }
.adv-body h4{ font-family:var(--display); font-weight:400; font-size:1.35rem; color:var(--indigo); margin:10px 0 6px; }
.adv-body p{ font-size:.9rem; }
.adv-world{ display:inline-block; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.06em; padding:5px 10px; border-radius:999px; color:#fff; }
.w-space{ background:var(--indigo); } .w-museum{ background:#B45E1E; } .w-plant{ background:#3FA34D; } .w-nature{ background:#D9822B; }

.more-ways{ display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-top:56px; }
.way{ display:flex; gap:14px; align-items:flex-start; padding:20px; border:2px dashed var(--line); border-radius:20px; }
.way-icon{ font-size:1.7rem; }
.way h4{ color:var(--indigo); margin-bottom:4px; }
.way p{ font-size:.9rem; }

/* ---------- PARENTS ---------- */
.b-parents{ background:var(--sun); padding:110px 0; overflow:hidden; }
.b-parents-grid{ display:grid; grid-template-columns:1fr 1.1fr; gap:60px; align-items:center; }
.b-parents h2{ color:var(--indigo-deep); margin-bottom:18px; }
.b-parents p{ color:#4A3F1A; font-size:1.05rem; }
.b-checks{ margin:24px 0 8px; display:grid; gap:12px; }
.b-checks li{ position:relative; padding-inline-start:36px; font-weight:600; color:var(--indigo-deep); }
.b-checks li::before{ content:'✓'; position:absolute; inset-inline-start:0; top:-2px; width:26px; height:26px; border-radius:50%; background:var(--indigo); color:var(--sun); display:grid; place-items:center; font-weight:800; font-size:.85rem; }
.b-note{ margin-top:18px; font-size:.9rem !important; opacity:.85; }
.b-phone-stage{ position:relative; display:flex; justify-content:center; min-height:560px; }
.b-phone{ position:relative; z-index:2; width:min(300px,70%); border-radius:30px; border:8px solid var(--indigo-deep); box-shadow:0 30px 60px rgba(42,38,96,.35); align-self:center; }
.b-mascot-peek{ position:absolute; z-index:3; height:88%; bottom:0; left:-4%; filter:drop-shadow(0 20px 30px rgba(0,0,0,.25)); }
html[dir="rtl"] .b-mascot-peek{ left:auto; right:-4%; transform:scaleX(-1); }
.s-flower-2{ width:120px; top:40px; left:45%; animation:spin 40s linear infinite; }
.s-sparkle{ width:60px; bottom:60px; right:6%; }

/* ---------- WORLDS ---------- */
.b-worlds{ padding:110px 0; }
.world-blocks{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; }
.world-block{ position:relative; border-radius:28px; padding:24px; min-height:340px; color:#fff; overflow:hidden; display:flex; flex-direction:column; justify-content:flex-end; transition:transform .25s ease; }
.world-block:hover{ transform:translateY(-6px) rotate(1deg); }
.world-block img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; z-index:0; }
.world-block::after{ content:''; position:absolute; inset:0; background:linear-gradient(to top, rgba(20,16,50,.85), transparent 60%); z-index:1; }
.world-block > *:not(img){ position:relative; z-index:2; }
.world-block h3{ font-family:var(--display); font-weight:400; font-size:1.8rem; color:#fff; }
.world-block p{ color:rgba(255,255,255,.9); font-size:.92rem; }
.wb-emoji{ font-size:6rem; position:absolute !important; top:50px; left:50%; transform:translateX(-50%); }
.wb-plant{ background:linear-gradient(160deg,#7ED957,#2F8A3E); }
.wb-plant::after{ background:linear-gradient(to top, rgba(20,60,20,.6), transparent 60%); }
.sticker{ position:absolute !important; top:18px; inset-inline-start:18px; background:#fff; color:var(--indigo); font-weight:800; font-size:.8rem; padding:6px 12px; border-radius:999px; transform:rotate(-4deg); box-shadow:0 4px 0 rgba(0,0,0,.15); }

/* ---------- GALLERY / PARTNERS / TESTI tweaks ---------- */
.b-gallery{ background:#fff; border-radius:var(--r-xl); margin:0 12px; }
.b-gallery .b-display{ color:var(--indigo-deep); } /* the section is white here; the base rule sets white text for the old dark gallery */
.b-gallery .gallery-item{ border-radius:22px; }
.b-partners{ background:transparent; }
.b-partners .partner-card{ border-radius:20px; }
.b-testi{ background:var(--indigo); overflow:hidden; }
.b-testi h2{ color:#fff; }
.b-testi .testi-card{ border-radius:26px; }
.b-testi .testi-card:nth-child(1) .testi-avatar{ background:var(--pink); }
.b-testi .testi-card:nth-child(2) .testi-avatar{ background:var(--teal); }
.b-testi .testi-card:nth-child(3) .testi-avatar{ background:var(--sun); color:var(--indigo-deep); }
.s-dots-2{ width:22px; top:60px; right:8%; }
body.gm-brand .faq-section{ background:var(--cream); }
body.gm-brand .faq-list details{ border-radius:20px; border-width:2px; }

/* ---------- CONTACT ---------- */
.b-contact{ border-radius:var(--r-xl) var(--r-xl) 0 0; }
.b-contact h2{ color:#fff; margin-bottom:18px; }
.b-contact .offices-grid{ margin-top:30px; }
.b-contact .book-form{ grid-column:auto !important; background:#fff; border-radius:28px; padding:30px; box-shadow:0 10px 0 rgba(0,0,0,.18); }
.b-contact .book-form h4{ font-family:var(--display); font-weight:400; font-size:1.8rem; color:var(--indigo); text-transform:none; letter-spacing:0; }
.b-contact .book-form .form-note{ color:var(--ink-soft); }
.b-contact .form-grid label{ color:var(--ink); }
.b-contact .form-grid input, .b-contact .form-grid select{ background:var(--cream); border-color:#EFE6D2; }
.b-contact .form-alt{ color:var(--ink-soft); }
.s-arcs-c{ width:240px; bottom:-10px; right:6%; opacity:.25; }
.s-flower-c{ width:110px; top:40px; left:-30px; opacity:.85; }

/* ---------- MOBILE CTA BAR ---------- */
.mobile-cta{ display:none; }
@media (max-width:760px){
  .mobile-cta{
    display:grid; grid-template-columns:1fr 1fr; gap:10px; position:fixed; z-index:95; left:12px; right:12px; bottom:12px;
    padding:8px; background:#fff; border-radius:999px; box-shadow:0 12px 30px rgba(32,28,61,.25);
  }
  .mobile-cta a{ text-align:center; padding:13px 10px; border-radius:999px; font-weight:800; }
  .mc-book{ background:var(--cta); color:#fff; }
  .mc-app{ background:var(--sun); color:var(--indigo-deep); }
  .mobile-cta{ transition:transform .25s ease, opacity .25s ease; }
  /* Tucked away while the booking form or footer is on screen: it would cover the form it links to. */
  body.cta-hidden .mobile-cta{ transform:translateY(150%); opacity:0; pointer-events:none; }
  body.gm-brand.has-mobile-cta .wa-float{ bottom:84px; transition:bottom .25s ease, transform .2s ease; }
  body.gm-brand.has-mobile-cta.cta-hidden .wa-float{ bottom:16px; }
}

/* ---------- RESPONSIVE ---------- */
@media (max-width:1080px){
  .adventures, .world-blocks{ grid-template-columns:repeat(2,1fr); }
  .b-stats{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px){
  .b-hero{ padding:120px 0 130px; }
  .b-hero-grid, .b-parents-grid{ grid-template-columns:1fr; }
  .b-hero-visual{ min-height:320px; order:-1; }
  .b-mascot{ width:min(520px,100%); }
  .stations, .more-ways{ grid-template-columns:1fr; }
  .b-phone-stage{ min-height:480px; }
}
@media (max-width:600px){
  .path-cards{ grid-template-columns:1fr; }
  .adventures, .world-blocks{ grid-template-columns:1fr; }
  .s-flower{ width:100px; right:-30px; top:70px; }
  .s-arcs{ width:150px; }
  .hero-sticker{ font-size:1rem; padding:8px 13px; }
  .b-gallery{ margin:0; border-radius:0; }
  .b-mascot-peek{ height:70%; left:-8%; }
}
.b-gallery .gallery-item:nth-child(10){ display:none; }
.adv-art{ font-size:5rem; }
.wb-emoji{ font-size:7rem !important; line-height:1; }
body.gm-brand h1, body.gm-brand h2{ font-family:var(--display); font-weight:400; letter-spacing:.005em; }
body.gm-brand .platform-hero{ background:var(--indigo); }
body.gm-brand .worlds-section, body.gm-brand .screens-section{ background:var(--cream); }
body.gm-brand .world-card, body.gm-brand .audience-card{ border-radius:28px; }
body.gm-brand .world-card h4, body.gm-brand .audience-body h3{ font-family:var(--display); font-weight:400; font-size:1.5rem; }
body.gm-brand .eyebrow{ background:var(--sun); color:var(--indigo-deep); transform:rotate(-2deg); }
body.gm-brand .eyebrow::before{ display:none; }
body.gm-brand .eyebrow-dark{ background:#D91B5F; color:#fff; } /* deeper than --pink: 4.9:1 with white at this small size */
body.gm-brand .cta-band{ background:var(--pink); }
body.gm-brand .platform-hero h1 .accent{ color:var(--sun); }

/* ---------- WORLDS (5) + GAME LIBRARY ---------- */
.world-blocks{ grid-template-columns:repeat(5,1fr); }
.world-block{ min-height:320px; cursor:pointer; }
.wb-egypt{ background:#B8862B; }
.games-library{ margin-top:64px; }
.games-tabs{ display:flex; flex-wrap:wrap; gap:10px; justify-content:center; margin-bottom:30px; }
.games-tab{
  display:inline-flex; align-items:center; gap:8px; border:2px solid var(--indigo); background:#fff; color:var(--indigo);
  font-weight:700; font-size:.92rem; padding:10px 16px; border-radius:999px; transition:transform .2s ease, background .2s ease;
}
.games-tab small{ background:var(--indigo-tint); color:var(--indigo); border-radius:999px; padding:1px 8px; font-size:.75rem; }
.games-tab:hover{ transform:translateY(-2px); }
.games-tab.active{ background:var(--indigo); color:#fff; box-shadow:0 5px 0 rgba(42,38,96,.25); }
.games-tab.active small{ background:var(--sun); color:var(--indigo-deep); }
.games-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.game-tile{ background:#fff; border-radius:22px; overflow:hidden; box-shadow:0 6px 0 rgba(59,55,119,.08); transition:transform .25s ease, box-shadow .25s ease; }
.game-tile:hover{ transform:translateY(-6px); box-shadow:0 14px 30px rgba(59,55,119,.18); }
.game-tile[hidden]{ display:none; }
.game-cover{ position:relative; aspect-ratio:16/10; background:var(--indigo); overflow:hidden; }
.game-cover img{ width:100%; height:100%; object-fit:cover; transition:transform .4s ease; }
.game-tile:hover .game-cover img{ transform:scale(1.06); }
.game-type{ position:absolute; top:10px; inset-inline-start:10px; font-family:var(--display); font-size:.95rem; padding:4px 11px; border-radius:10px; box-shadow:0 3px 0 rgba(0,0,0,.2); }
.t-vr{ background:var(--teal); color:#fff; }
.t-ar{ background:var(--sun); color:var(--indigo-deep); }
.game-tile h4{ padding:14px 16px 18px; font-size:.98rem; color:var(--ink); line-height:1.35; border-top:4px solid var(--indigo); }
.game-tile.w-plantopia h4{ border-top-color:#3FA34D; }
.game-tile.w-nature h4{ border-top-color:#D9822B; }
.game-tile.w-space h4{ border-top-color:var(--indigo); }
.game-tile.w-museum h4{ border-top-color:#B45E1E; }
.game-tile.w-egypt h4{ border-top-color:#B8862B; }
.game-tile.w-more h4{ border-top-color:var(--pink); }
.games-more{ display:flex; margin:30px auto 0; }
.games-more[hidden]{ display:none; }
@media (max-width:1180px){ .world-blocks{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:1080px){ .games-grid{ grid-template-columns:repeat(3,1fr); } }
@media (max-width:760px){
  .world-blocks{ grid-template-columns:repeat(2,1fr); }
  .world-block{ min-height:220px; }
  .games-grid{ grid-template-columns:repeat(2,1fr); gap:12px; }
  .games-tabs{ flex-wrap:nowrap; overflow-x:auto; justify-content:flex-start; padding-bottom:6px; }
  .games-tab{ flex-shrink:0; }
  .game-tile h4{ font-size:.85rem; padding:10px 12px 14px; }
}

/* ============================================================
   UI/UX alignment pass (Nov 2026) — UI/UX Pro Max checklist
   Keeps the GMind brand; fixes contrast, focus, motion, touch.
   ============================================================ */
:root{
  --teal-ink:#0F7A94;   /* teal for text on light bg: 4.96:1 on white */
  --amber-ink:#A86A00;  /* amber for large numerals: 4.44:1 on white */
  --pink-ink:#C2185B;   /* pink accent on sun-yellow: 3.82:1 (large text) */
  --muted:#6B6790;      /* was #7A7699 (4.30:1) -> 5.29:1 on white */
}

/* 1 · Focus: one ring that reads on cream, white, yellow AND indigo */
body.gm-brand :is(a, button, summary, [tabindex]):focus-visible{
  outline:3px solid var(--sun);
  outline-offset:2px;
  box-shadow:0 0 0 7px var(--indigo-deep);
  border-radius:12px;
}
body.gm-brand :is(.btn, .lang-toggle, .games-tab, .social-btn, .wa-float, .marquee-toggle, .mobile-cta a, .path-card):focus-visible{
  border-radius:999px;
}
body.gm-brand .path-card:focus-visible{ border-radius:22px; }
body.gm-brand .form-grid :is(input, select):focus-visible{
  outline:none; border-color:var(--indigo); box-shadow:0 0 0 4px rgba(59,55,119,.22);
}

/* 2 · Contrast fixes on text-bearing fills (WCAG AA) */
.tag-teal{ background:var(--teal); color:var(--indigo-deep); }          /* was white on teal 2.34:1 */
.tag-pink{ background:var(--cta); }                                       /* 4.10 -> 4.68:1 */
.path-parent{ background:var(--cta); }
.path-text small{ opacity:1; }
.st-ar, .st-ar h3, .st-ar p{ color:var(--indigo-deep); }                 /* AR station: dark text on teal 5.8:1 */
.st-ar .station-num{ color:var(--indigo-deep); }
.st-1{ color:var(--indigo-deep); }                                        /* VR hero sticker */
.t-vr{ color:var(--indigo-deep); }                                        /* VR badge on game covers */
.b-stat:nth-child(3) .stat-num{ color:var(--amber-ink); }
.b-stat:nth-child(4) .stat-num{ color:var(--teal-ink); }
.b-parents .hl-pink{ color:var(--pink-ink); }                             /* was 2.67:1 on yellow */
.w-plant{ background:#2E7D3A; }                                           /* 3.20 -> 5.11:1 */
.w-nature{ background:#A35610; }                                          /* 2.93 -> 5.39:1 */
.req{ color:var(--cta); font-weight:800; }

/* 3 · SVG icons replacing emoji (consistent rendering on every OS) */
.path-emoji svg{ width:28px; height:28px; }
.path-arrow{ display:grid; place-items:center; }
.path-arrow svg{ width:22px; height:22px; }
.way-icon{
  display:grid; place-items:center; flex-shrink:0; width:48px; height:48px; border-radius:14px;
  background:var(--indigo-tint); color:var(--indigo);
}
.way:nth-child(2) .way-icon{ background:#FFF1CC; color:#8A5A00; }
.way:nth-child(3) .way-icon{ background:#FDE3EC; color:var(--cta); }
.way-icon svg{ width:24px; height:24px; }

/* 4 · Touch targets: >= 44px */
.social-btn{ width:44px; height:44px; }
.games-tab{ min-height:44px; }

/* 5 · Motion: pausable marquee, pause on hover/focus, honour reduced motion */
.b-proof .container{ display:flex; flex-direction:column; align-items:center; }
.b-proof .b-stats{ align-self:stretch; }
.marquee-toggle{
  display:inline-grid; place-items:center; width:44px; height:44px; margin:-10px 0 18px;
  border-radius:999px; border:2px solid var(--line); background:#fff; color:var(--indigo);
  transition:background .2s ease, transform .2s ease;
}
.marquee-toggle:hover{ background:var(--indigo-tint); transform:translateY(-1px); }
.marquee-toggle svg{ width:18px; height:18px; }
.marquee-toggle .i-play, .b-proof.is-paused .marquee-toggle .i-pause{ display:none; }
.b-proof.is-paused .marquee-toggle .i-play{ display:block; }
.b-proof.is-paused .marquee-track,
.marquee:focus-within .marquee-track{ animation-play-state:paused; }
.marquee{ overflow:hidden; }
@media (prefers-reduced-motion: reduce){
  .marquee-toggle{ display:none; }
  .marquee-track, .marquee-track.reverse{ animation:none !important; transform:none !important; flex-wrap:wrap; justify-content:center; width:auto; padding:0 24px; }
  .marquee-track > [aria-hidden="true"]{ display:none; }
  .marquee::before, .marquee::after{ display:none; }
  .shape, .hero-sticker{ animation:none !important; }
}

/* 6 · Menu: lock page scroll behind the open mobile menu */
body.nav-locked{ overflow:hidden; }

/* 7 · Hero mascot keeps its aspect ratio now that it has width/height attrs */
.b-mascot, .b-mascot-peek, .b-phone{ height:auto; }
.b-mascot-peek{ height:88%; width:auto; }
@media (max-width:600px){ .b-mascot-peek{ height:70%; } }

/* 8 · Footer + fallback links: >= 24px hit area, same visual rhythm */
.footer-col a{ padding:4px 0; margin-bottom:4px; }
.b-contact .form-alt{ display:block; padding:8px 0; }

/* ============================================================
   UI/UX alignment pass 2 — App, Privacy & Terms pages
   ============================================================ */
/* App page contrast */
.tag-kids{ color:#2B6B12; }                                   /* 3.69 -> 5.89:1 */
body.gm-brand .cta-band{ background:var(--cta); }             /* white text 4.68:1 */
body.gm-brand .cta-band p{ color:#fff; }
.app-shot{ height:auto; }

/* Legal pages on the brand layer */
.eyebrow-center{ display:table; margin-inline:auto; }
body.gm-brand .terms-hero{ background:var(--indigo); }
body.gm-brand .terms-body{ background:var(--cream); }
body.gm-brand .terms-card h3{ font-family:var(--display); font-weight:400; font-size:1.55rem; color:var(--indigo); letter-spacing:.005em; }
body.gm-brand .terms-card, body.gm-brand .terms-toc{ border-radius:24px; border-width:2px; }
body.gm-brand .terms-toc a{ min-height:36px; display:flex; align-items:center; }

/* Collapsible "On this page" */
.toc-details > summary{ list-style:none; cursor:pointer; display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:44px; }
.toc-details > summary::-webkit-details-marker{ display:none; }
.toc-details > summary h5{ margin:0; }
.toc-details > summary::after{
  content:''; width:10px; height:10px; border-right:2.5px solid var(--indigo); border-bottom:2.5px solid var(--indigo);
  transform:rotate(45deg) translateY(-3px); transition:transform .2s ease; flex-shrink:0;
}
.toc-details[open] > summary{ margin-bottom:10px; }
.toc-details[open] > summary::after{ transform:rotate(-135deg) translateY(-3px); }
@media (min-width:1081px){
  .toc-details > summary{ pointer-events:none; }               /* always open beside the content on desktop */
  .toc-details > summary::after{ display:none; }
}
@media (max-width:1080px){
  body.gm-brand .terms-toc{ padding:10px 20px; }
}
