/* ==========================================================================
   Brain Rise — Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,500&display=swap');

:root {
  /* Brand colors */
  --br-blue: #2f7dfa;
  --br-blue-dark: #1c5ed6;
  --br-blue-deeper: #123f99;
  --navy: #16233f;
  --navy-soft: #45526b;
  --ink: #0e1830;

  --cloud: #ffffff;
  --sky: #eef4ff;
  --sky-soft: #f5f9ff;

  --cream: #fff2e2;
  --cream-soft: #fff8ee;

  --orange: #ff8a3d;
  --orange-deep: #f2611c;
  --yellow: #ffc23c;
  --purple: #9b6bf2;
  --pink: #ff6fa5;
  --teal: #29c2b0;
  --coral: #ff8a80;

  /* Elevation */
  --shadow-sm: 0 2px 8px rgba(18, 32, 65, 0.08);
  --shadow-md: 0 12px 28px rgba(18, 32, 65, 0.12);
  --shadow-lg: 0 24px 60px rgba(18, 32, 65, 0.18);
  --shadow-blue: 0 16px 36px rgba(47, 125, 250, 0.35);

  /* Radii */
  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;
  --r-pill: 999px;

  /* Type */
  --font-display: 'Baloo 2', 'Segoe UI Rounded', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  --max-w: 1240px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cloud);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.08;
  letter-spacing: -0.01em;
}

p { margin: 0; }

a { color: inherit; text-decoration: none; }

button { font-family: inherit; cursor: pointer; }

.wrap {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: 24px;
}

@media (min-width: 640px) {
  .wrap { padding-inline: 32px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: var(--r-pill);
}

.eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.section-head {
  max-width: 640px;
  margin-bottom: 48px;
}

.section-head.center { margin-inline: auto; text-align: center; }

.section-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-top: 14px;
}

.section-head p.lede {
  margin-top: 16px;
  font-size: 1.05rem;
  color: var(--navy-soft);
  line-height: 1.6;
}

/* Focus visibility everywhere */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  border: none;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), background-color 0.2s;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.98); }

.btn-primary {
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--ink); transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-light {
  background: #fff;
  color: var(--br-blue-deeper);
  box-shadow: var(--shadow-md);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid rgba(22, 35, 63, 0.15);
}
.btn-outline:hover { border-color: var(--navy); }

.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: var(--r-md);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.store-btn:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.store-btn svg { flex-shrink: 0; }
.store-btn .store-text { text-align: left; line-height: 1.15; }
.store-btn .store-text small { display: block; font-size: 0.68rem; opacity: 0.75; font-weight: 500; }
.store-btn .store-text strong { display: block; font-family: var(--font-display); font-size: 0.98rem; }

.store-buttons.light .store-btn { background: #fff; color: var(--br-blue-deeper); }

/* ==========================================================================
   Navigation
   ========================================================================== */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(22, 35, 63, 0.06);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.brand img { height: 28px; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  color: var(--navy-soft);
  transition: background 0.2s, color 0.2s;
}
.nav-links a:hover { background: var(--sky); color: var(--br-blue-deeper); }

.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-cta {
  background: var(--br-blue);
  color: #fff;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 24px rgba(47, 125, 250, 0.35);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(47, 125, 250, 0.42); }

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  border: 1px solid rgba(22, 35, 63, 0.12);
  background: #fff;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: '';
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  position: relative;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}
.menu-toggle span::before { position: absolute; top: -6px; }
.menu-toggle span::after { position: absolute; top: 6px; }
.menu-toggle[aria-expanded="true"] span { background: transparent; }
.menu-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); top: 0; }
.menu-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); top: 0; }

.mobile-panel {
  position: fixed;
  inset: 76px 0 0 0;
  background: #fff;
  z-index: 90;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s var(--ease-out), opacity 0.3s var(--ease-out), visibility 0.3s;
}
.mobile-panel.open {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}
.mobile-panel > a {
  padding: 16px 8px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--navy);
  border-bottom: 1px solid var(--sky);
}
.mobile-panel .store-buttons { margin-top: 24px; }

@media (min-width: 900px) {
  .nav-links { display: flex; }
  .menu-toggle { display: none; }
  .mobile-panel { display: none; }
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  background: radial-gradient(120% 140% at 15% 0%, var(--br-blue-dark) 0%, var(--br-blue) 45%, var(--br-blue-deeper) 100%);
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 120px;
}

.hero .wrap {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 56px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr 1fr; gap: 40px; }
}

.hero-copy .eyebrow {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.hero-copy h1 {
  color: #fff;
  font-size: clamp(2.4rem, 5.4vw, 3.6rem);
  margin-top: 20px;
}

.hero-copy .lede {
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.15rem;
  line-height: 1.6;
  margin-top: 20px;
  max-width: 460px;
}

.hero-copy .store-buttons { margin-top: 32px; }
.hero-copy .reassurance {
  margin-top: 18px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
}

.hero-visual {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.phone {
  position: absolute;
  width: 210px;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 6px solid var(--ink);
  background: var(--ink);
}
.phone img { width: 100%; display: block; }

.phone-main { z-index: 3; width: 240px; }
.phone-back-left {
  z-index: 1;
  transform: translate(-118px, 20px) rotate(-9deg);
  opacity: 0.85;
  filter: brightness(0.9);
}
.phone-back-right {
  z-index: 2;
  transform: translate(120px, -34px) rotate(8deg);
  opacity: 0.92;
  filter: brightness(0.95);
}

.hero-mascot {
  position: absolute;
  width: 108px;
  right: -6px;
  bottom: -8px;
  z-index: 4;
  filter: drop-shadow(0 14px 22px rgba(0,0,0,0.25));
}

.shape {
  position: absolute;
  border-radius: 28%;
  animation: float 7s ease-in-out infinite;
}
.shape.circle { border-radius: 50%; }
.shape.triangle {
  width: 0; height: 0;
  border-radius: 12px;
  background: none !important;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50% { transform: translateY(-16px) rotate(var(--rot, 0deg)); }
}

.hero .shape-yellow { width: 46px; height: 46px; background: var(--yellow); top: 8%; left: 6%; --rot: 12deg; animation-delay: 0.2s; }
.hero .shape-coral { width: 40px; height: 40px; background: var(--coral); border-radius: 50%; top: 20%; right: 8%; animation-delay: 1s; }
.hero .shape-purple { width: 52px; height: 52px; background: var(--purple); top: 62%; left: 2%; --rot: -8deg; animation-delay: 0.6s; }
.hero .shape-teal { width: 34px; height: 34px; background: var(--teal); border-radius: 50%; bottom: 6%; right: 20%; animation-delay: 1.4s; }

.hero-wave {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  line-height: 0;
  z-index: 1;
}

/* ==========================================================================
   Benefits (white)
   ========================================================================== */

.section { padding-block: 96px; }
.section-white { background: var(--cloud); }
.section-sky { background: linear-gradient(180deg, var(--sky-soft), var(--sky)); }
.section-cream { background: linear-gradient(180deg, var(--cream-soft), var(--cream)); }
.section-navy { background: radial-gradient(120% 140% at 85% 100%, var(--br-blue-dark) 0%, var(--br-blue-deeper) 55%, var(--navy) 100%); }

.eyebrow-blue { background: rgba(47,125,250,0.1); color: var(--br-blue-deeper); }
.eyebrow-orange { background: rgba(255,138,61,0.14); color: var(--orange-deep); }
.eyebrow-purple { background: rgba(155,107,242,0.14); color: var(--purple); }
.eyebrow-teal { background: rgba(41,194,176,0.14); color: #0e8b7c; }

.benefit-grid {
  display: grid;
  gap: 24px;
}
@media (min-width: 720px) { .benefit-grid { grid-template-columns: repeat(3, 1fr); } }

.benefit-card {
  background: #fff;
  border-radius: var(--r-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(22,35,63,0.05);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s var(--ease-out);
}
.benefit-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }

.icon-badge {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.icon-badge svg { width: 26px; height: 26px; }

.benefit-card h3 { font-size: 1.2rem; margin-bottom: 10px; }
.benefit-card p { color: var(--navy-soft); line-height: 1.6; font-size: 0.98rem; }

.bg-orange { background: linear-gradient(135deg, var(--orange), var(--orange-deep)); }
.bg-blue { background: linear-gradient(135deg, var(--br-blue), var(--br-blue-dark)); }
.bg-purple { background: linear-gradient(135deg, #b48af7, var(--purple)); }
.bg-pink { background: linear-gradient(135deg, #ff8fb8, var(--pink)); }
.bg-teal { background: linear-gradient(135deg, #4fdcc9, var(--teal)); }
.bg-yellow { background: linear-gradient(135deg, #ffd873, var(--yellow)); }

/* ==========================================================================
   How it works
   ========================================================================== */

.how-layout {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 960px) { .how-layout { grid-template-columns: 1fr 1fr; } }

.steps { display: flex; flex-direction: column; gap: 20px; margin-top: 40px; }

.step {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  background: #fff;
  padding: 20px 22px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
}

.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--br-blue);
  min-width: 40px;
}

.step h3 { font-size: 1.05rem; margin-bottom: 4px; }
.step p { color: var(--navy-soft); font-size: 0.94rem; line-height: 1.5; }

.how-visual { position: relative; display: flex; justify-content: center; }
.how-visual .phone { position: relative; width: 260px; transform: none; }
.floaty-card {
  position: absolute;
  background: #fff;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  animation: float 6s ease-in-out infinite;
}
.floaty-card .dot { width: 10px; height: 10px; border-radius: 50%; }
.floaty-card.card-1 { top: 6%; left: -8%; animation-delay: 0.2s; }
.floaty-card.card-2 { bottom: 10%; right: -10%; animation-delay: 1s; }

/* ==========================================================================
   Game showcase
   ========================================================================== */

.game-showcase { background: var(--navy); overflow: hidden; }
.game-showcase .section-head h2, .game-showcase .section-head p.lede { color: #fff; }
.game-showcase .section-head p.lede { color: rgba(255,255,255,0.7); }
.eyebrow-on-navy { background: rgba(255,255,255,0.1); color: #fff; }

.game-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 24px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,0.3) transparent;
}
.game-track::-webkit-scrollbar { height: 8px; }
.game-track::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 8px; }

.game-panel {
  scroll-snap-align: start;
  flex: 0 0 min(300px, 78vw);
  border-radius: var(--r-lg);
  padding: 28px 24px 0;
  position: relative;
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.game-panel .game-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
}
.game-panel h3 { color: #fff; font-size: 1.4rem; margin-top: 8px; }
.game-panel p { color: rgba(255,255,255,0.78); margin-top: 8px; font-size: 0.92rem; line-height: 1.5; max-width: 220px; }

.game-panel .phone {
  position: relative;
  margin-top: 20px;
  width: 200px;
  align-self: center;
  transform: translateY(24px);
  border: 5px solid rgba(0,0,0,0.4);
}

.game-1 { background: linear-gradient(160deg, #245b7d, #143247); }
.game-2 { background: linear-gradient(160deg, #3a4a8f, #1c234f); }
.game-3 { background: linear-gradient(160deg, #35506a, #16283a); }
.game-4 { background: linear-gradient(160deg, #2c3654, #10152a); }
.game-5 { background: linear-gradient(160deg, #7a3f8f, #35194a); }

.game-nav-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.5);
  font-size: 0.85rem;
  margin-top: 16px;
}
@media (min-width: 900px) { .game-nav-hint { display: none; } }

/* ==========================================================================
   Cognitive skills
   ========================================================================== */

.skills-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 780px) { .skills-grid { grid-template-columns: repeat(4, 1fr); } }

.skill-card {
  text-align: center;
  padding: 28px 18px;
  border-radius: var(--r-lg);
  background: var(--sky-soft);
  transition: transform 0.3s var(--ease-out);
}
.skill-card:hover { transform: translateY(-6px); }
.skill-card .icon-badge { margin-inline: auto; }
.skill-card h3 { font-size: 1.02rem; margin-bottom: 6px; }
.skill-card p { font-size: 0.88rem; color: var(--navy-soft); line-height: 1.5; }

.skills-layout { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .skills-layout { grid-template-columns: 0.9fr 1.1fr; } }

/* ==========================================================================
   Streak
   ========================================================================== */

.streak-layout { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .streak-layout { grid-template-columns: 1fr 1fr; } }

.streak-visual { position: relative; display: flex; justify-content: center; }
.streak-visual .phone { position: relative; width: 250px; }
.flame {
  position: absolute;
  font-size: 2rem;
  animation: float 5s ease-in-out infinite;
  filter: drop-shadow(0 8px 12px rgba(242,97,28,0.35));
}
.flame.f1 { top: 0; left: -4%; font-size: 2.6rem; animation-delay: 0.1s; }
.flame.f2 { bottom: 10%; right: -6%; font-size: 2rem; animation-delay: 0.9s; }
.flame.f3 { top: 44%; left: -14%; font-size: 1.5rem; animation-delay: 1.6s; }

.pill-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-sm);
}
.pill-item .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }

/* ==========================================================================
   Challenge friends
   ========================================================================== */

.challenge-layout { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .challenge-layout { grid-template-columns: 1fr 1fr; } }

.avatar-row { display: flex; margin-top: 24px; }
.avatar-row .avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  border: 3px solid #fff;
  margin-left: -14px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: var(--font-display); font-weight: 700;
  overflow: hidden;
}
.avatar-row .avatar:first-child { margin-left: 0; }
.avatar-row .avatar img { width: 78%; height: 78%; object-fit: contain; }

.feature-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.feature-tag {
  padding: 9px 16px;
  border-radius: var(--r-pill);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.challenge-visual .phone { position: relative; width: 250px; margin-inline: auto; }
.challenge-visual .mascot-float {
  position: absolute;
  width: 64px;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 10px 16px rgba(22,35,63,0.18));
}
.challenge-visual .mascot-float.mf-1 { top: 2%; left: 4%; animation-delay: 0.3s; }
.challenge-visual .mascot-float.mf-2 { bottom: 4%; right: 2%; width: 54px; animation-delay: 1.2s; }

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--sky-soft);
  border-radius: var(--r-md);
  padding: 4px 24px;
  border: 1px solid transparent;
  transition: border-color 0.2s;
}
.faq-item[open] { border-color: rgba(47,125,250,0.25); background: #fff; box-shadow: var(--shadow-sm); }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }

.faq-icon {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--br-blue);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.25s var(--ease-out);
}
.faq-item[open] .faq-icon { transform: rotate(45deg); }

.faq-item .faq-answer {
  padding-bottom: 22px;
  color: var(--navy-soft);
  line-height: 1.6;
  font-size: 0.96rem;
}

/* ==========================================================================
   Final CTA
   ========================================================================== */

.final-cta { text-align: center; position: relative; overflow: hidden; padding-block: 55px; }
.final-cta h2 { color: #fff; font-size: clamp(2rem, 5vw, 3rem); }
.final-cta .lede { color: rgba(255,255,255,0.85); font-size: 1.1rem; margin-top: 16px; max-width: 480px; margin-inline: auto; }
.final-cta .store-buttons { justify-content: center; margin-top: 36px; }

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer { background: var(--ink); color: rgba(255,255,255,0.7); padding-block: 64px 32px; }
.footer-grid {
  display: grid;
  gap: 40px;
  grid-template-columns: 1.4fr repeat(3, 1fr);
}
@media (max-width: 780px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }

.footer-brand img { height: 26px; margin-bottom: 14px; }
.footer-brand p { font-size: 0.9rem; line-height: 1.6; max-width: 260px; }

.footer-col h4 {
  color: #fff;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { font-size: 0.92rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }

.footer-social { display: flex; gap: 12px; margin-top: 4px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.footer-social a:hover { background: rgba(255,255,255,0.18); }

.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.82rem;
}

/* Sticky mobile download bar */
.sticky-download {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  background: var(--navy);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 12px 14px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-lg);
  transform: translateY(140%);
  transition: transform 0.3s var(--ease-out);
}
.sticky-download.visible { transform: translateY(0); }
.sticky-download span { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; }
.sticky-download .btn { padding: 10px 18px; font-size: 0.85rem; }
@media (min-width: 900px) { .sticky-download { display: none; } }

/* Reveal animation — only engages once JS confirms it can also reveal the
   content again; without the .js hook (JS blocked/failed), content stays
   fully visible instead of stuck at opacity:0. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}
.js .reveal.in-view { opacity: 1; transform: translateY(0); }

/* Utility */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.legal-page {
  padding-top: 72px;
  padding-bottom: 96px;
}
.legal-page .wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); margin-bottom: 8px; }
.legal-page .updated { color: var(--navy-soft); font-size: 0.9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.3rem; margin-top: 36px; margin-bottom: 12px; }
.legal-page p, .legal-page li { color: var(--navy-soft); line-height: 1.7; font-size: 1rem; }
.legal-page ul { padding-left: 20px; }
.legal-page a.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--br-blue-deeper);
  margin-bottom: 24px;
}

.download-hero {
  text-align: center;
  padding-top: 96px;
  padding-bottom: 96px;
}
.download-hero .mascot-big { width: 120px; margin-inline: auto 24px; }
.download-hero h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
.download-hero p.lede { max-width: 480px; margin: 18px auto 0; color: var(--navy-soft); font-size: 1.05rem; }
.download-hero .store-buttons { justify-content: center; margin-top: 32px; }
.download-hero .store-buttons.dark .store-btn { background: var(--navy); color: #fff; }

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(120% 140% at 15% 0%, var(--br-blue-dark) 0%, var(--br-blue) 45%, var(--br-blue-deeper) 100%);
  padding-block: 72px 88px;
  text-align: center;
}
.contact-hero .wrap { position: relative; z-index: 2; }
.contact-hero .eyebrow { background: rgba(255,255,255,0.14); color: #fff; }
.contact-hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3rem); margin-top: 18px; }
.contact-hero .lede {
  color: rgba(255,255,255,0.88);
  font-size: 1.1rem;
  line-height: 1.6;
  margin: 16px auto 0;
  max-width: 520px;
}
.contact-hero .contact-mascot {
  width: 74px;
  margin: 0 auto 6px;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.22));
}
.contact-hero .shape-yellow { width: 40px; height: 40px; background: var(--yellow); top: 16%; left: 8%; --rot: 12deg; }
.contact-hero .shape-teal { width: 30px; height: 30px; background: var(--teal); border-radius: 50%; bottom: 18%; right: 10%; animation-delay: 1.1s; }
@media (max-width: 640px) {
  .contact-hero .shape-yellow, .contact-hero .shape-teal { display: none; }
}

/* Contact form layout: intro on the left, form card on the right */
.contact-layout { display: grid; gap: 40px; align-items: start; }
@media (min-width: 920px) { .contact-layout { grid-template-columns: 0.85fr 1.15fr; } }

.contact-intro .eyebrow { margin-bottom: 6px; }
.contact-intro h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin-top: 12px; }
.contact-intro p { color: var(--navy-soft); line-height: 1.65; margin-top: 16px; }
.contact-intro .contact-direct { font-size: 0.95rem; }
.contact-intro .contact-direct a { color: var(--br-blue-deeper); font-weight: 700; text-decoration: underline; }

.contact-form {
  background: #fff;
  border: 1px solid rgba(22,35,63,0.08);
  border-radius: var(--r-lg);
  padding: 32px 30px;
  box-shadow: var(--shadow-md);
}

.field-row { display: grid; gap: 18px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }

.field { display: flex; flex-direction: column; margin-bottom: 18px; }
.field label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input,
.field select,
.field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--sky-soft);
  border: 1.5px solid rgba(22,35,63,0.12);
  border-radius: var(--r-md);
  padding: 13px 16px;
  width: 100%;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(69,82,107,0.55); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: #fff;
  border-color: var(--br-blue);
  box-shadow: 0 0 0 4px rgba(47,125,250,0.14);
}

.contact-submit {
  width: 100%;
  margin-top: 6px;
  background: var(--br-blue);
}
.contact-submit:hover { background: var(--br-blue-dark); }
.contact-submit:disabled { opacity: 0.6; cursor: default; transform: none; }

.form-status {
  margin-top: 16px;
  font-size: 0.94rem;
  line-height: 1.5;
  font-weight: 600;
  min-height: 1.2em;
}
.form-status.is-ok { color: #0e8b7c; }
.form-status.is-error { color: var(--orange-deep); }

/* Honeypot: kept in the DOM for bots, removed from view and a11y tree */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
