/* ========================================================
   BOB GREEN FOOTPRINT — PREMIUM STYLESHEET
   Bank of Baroda Sustainability Platform
   ======================================================== */

/* ── CSS CUSTOM PROPERTIES ── */
:root {
  --bob-orange: #FF671F;
  --bob-deep-orange: #E85D04;
  --bob-orange-light: #FF8A3D;
  --bob-yellow: #FDB913;
  --bob-yellow-light: #FFD166;
  --bob-navy: #1C2541;
  --bob-navy-corporate: #22304A;
  --bob-trust-blue: #0F2742;
  --bob-green: #00C853;
  --bob-green-light: #69F0AE;
  --bob-sky: #4FC3F7;
  --bob-white: #FFFFFF;
  --bob-cream: #FFF8F2;
  --bob-warm: #FFF3E6;
  --bob-charcoal: #111827;
  --bob-gray: #6B7280;
  --bob-gray-light: #F3F4F6;

  --font-heading: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-num: 'Space Grotesk', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 9999px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.10);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
  --shadow-xl: 0 32px 80px rgba(0,0,0,0.20);
  --shadow-orange: 0 8px 30px rgba(255,103,31,0.30);
  --shadow-green: 0 8px 30px rgba(0,200,83,0.25);

  --transition-fast: 0.15s cubic-bezier(0.4,0,0.2,1);
  --transition-base: 0.3s cubic-bezier(0.4,0,0.2,1);
  --transition-slow: 0.5s cubic-bezier(0.4,0,0.2,1);
  --transition-elastic: 0.5s cubic-bezier(0.34,1.56,0.64,1);

  --nav-height: 72px;
}

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bob-cream);
  color: var(--bob-charcoal);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, canvas { display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; }

/* ── GLOBAL NAV ── */
.global-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,248,242,0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255,103,31,0.12);
  transition: all var(--transition-base);
}

.global-nav.scrolled {
  background: rgba(255,243,230,0.97);
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand { display: flex; align-items: center; flex-shrink: 0; }

.bob-logo { display: flex; align-items: center; gap: 10px; }
.bob-logo-mark { flex-shrink: 0; }
.bob-logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.bob-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--bob-navy);
  letter-spacing: -0.01em;
}
.bob-sub {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--bob-orange);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--bob-gray);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--bob-orange);
  background: rgba(255,103,31,0.08);
}

.nav-link.active {
  font-weight: 600;
}

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.kid-mode-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, #69F0AE20, #00C85320);
  border: 1.5px solid var(--bob-green);
  font-size: 0.78rem;
  font-weight: 600;
  color: #00A040;
  transition: all var(--transition-fast);
}
.kid-mode-toggle:hover {
  background: var(--bob-green);
  color: white;
  transform: scale(1.03);
}
.kid-mode-toggle.active {
  background: var(--bob-green);
  color: white;
}

.nav-cta {
  padding: 9px 20px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--bob-orange), var(--bob-deep-orange));
  color: white;
  font-size: 0.82rem;
  font-weight: 600;
  font-family: var(--font-heading);
  box-shadow: var(--shadow-orange);
  transition: all var(--transition-fast);
  letter-spacing: 0.01em;
}
.nav-cta:hover {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 12px 36px rgba(255,103,31,0.4);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--bob-navy);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--bob-cream);
  border-top: 1px solid rgba(255,103,31,0.12);
  padding: 12px 16px;
  gap: 4px;
}

.nav-mobile-menu .nav-link {
  text-align: left;
  font-size: 0.9rem;
  padding: 10px 14px;
}

/* Kid Mode Banner */
.kid-mode-banner {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  z-index: 999;
  background: linear-gradient(135deg, #00C853, #69F0AE);
  color: white;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 0.88rem;
  gap: 12px;
}
.kid-mode-banner.active { display: flex; }
.kid-banner-inner { display: flex; align-items: center; gap: 10px; }
.kid-mascot { font-size: 1.2rem; animation: kidBounce 1s ease-in-out infinite alternate; }
@keyframes kidBounce { from { transform: translateY(0); } to { transform: translateY(-3px); } }

/* ── PAGE LAYOUT ── */
.page-container {
  min-height: 100vh;
  position: relative;
}

.page {
  display: none;
  min-height: 100vh;
  padding-top: var(--nav-height);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.page.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.page-content { width: 100%; }

/* ── BUTTON SYSTEM ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--bob-orange), var(--bob-deep-orange));
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  box-shadow: var(--shadow-orange);
  transition: all var(--transition-base);
  letter-spacing: 0.01em;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 48px rgba(255,103,31,0.4);
}
.btn-primary:focus-visible {
  outline: 3px solid var(--bob-orange);
  outline-offset: 3px;
}
.btn-primary.large { padding: 18px 36px; font-size: 1.05rem; }
.btn-primary.small { padding: 9px 20px; font-size: 0.82rem; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  background: var(--bob-cream);
  color: var(--bob-orange);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid var(--bob-orange);
  transition: all var(--transition-base);
  cursor: pointer;
}
.btn-secondary:hover {
  background: var(--bob-orange);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-orange);
}
.btn-secondary:focus-visible {
  outline: 3px solid var(--bob-orange);
  outline-offset: 3px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-full);
  color: var(--bob-charcoal);
  font-weight: 500;
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.btn-ghost:hover {
  background: rgba(0,0,0,0.05);
  color: var(--bob-orange);
}
.btn-ghost:focus-visible {
  outline: 3px solid var(--bob-orange);
  outline-offset: 3px;
}

.btn-sm-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  background: var(--bob-orange);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition-fast);
  cursor: pointer;
}
.btn-sm-primary:hover {
  background: var(--bob-deep-orange);
  transform: translateY(-1px);
}

.btn-outline-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.95rem;
  border: 2px solid rgba(255,255,255,0.6);
  transition: all var(--transition-base);
  cursor: pointer;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(4px);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.2);
  border-color: white;
  transform: translateY(-2px);
}

/* ── SECTION LABELS & TITLES ── */
.section-label {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bob-orange);
  margin-bottom: 12px;
}
.section-label.light { color: rgba(255,255,255,0.7); }

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--bob-charcoal);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.section-title.white { color: white; }

.section-subtitle {
  font-size: 1.05rem;
  color: var(--bob-gray);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 40px;
}

.section-body {
  font-size: 1rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.75;
  max-width: 500px;
  margin-bottom: 32px;
}

/* ========================================================
   PAGE 1: HOME
   ======================================================== */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(160deg, var(--bob-trust-blue) 0%, var(--bob-navy) 40%, #0a1628 100%);
}

#earth-canvas {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 65% 50%, transparent 30%, rgba(28,37,65,0.6) 80%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 80px 60px;
  max-width: 680px;
  margin-left: 60px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,103,31,0.15);
  border: 1px solid rgba(255,103,31,0.35);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--bob-orange-light);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.badge-dot {
  width: 7px; height: 7px;
  background: var(--bob-green);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.4); }
}

.hero-headline {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: white;
  margin-bottom: 24px;
}

.headline-line { display: block; }
.headline-line.accent {
  background: linear-gradient(135deg, var(--bob-orange), var(--bob-yellow));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subheadline {
  font-size: 1.08rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.75;
  max-width: 520px;
  margin-bottom: 36px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 48px;
}

.hero-ctas .btn-ghost { color: rgba(255,255,255,0.8); }
.hero-ctas .btn-ghost:hover { color: var(--bob-yellow); background: rgba(255,255,255,0.1); }

.hero-stats {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.hero-stat {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-num);
  font-size: 2rem;
  font-weight: 700;
  color: var(--bob-yellow);
  line-height: 1;
  display: inline;
}

.stat-unit {
  font-family: var(--font-num);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--bob-yellow);
}

.stat-label {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.55);
  margin-top: 4px;
  letter-spacing: 0.02em;
}

.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.45);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  animation: scrollFade 2s ease-in-out infinite;
}
@keyframes scrollFade {
  0%, 100% { opacity: 0.4; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.9; transform: translateX(-50%) translateY(4px); }
}

.scroll-dot {
  width: 28px; height: 44px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 14px;
  position: relative;
}
.scroll-dot::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 2px;
  animation: scrollBall 2s ease-in-out infinite;
}
@keyframes scrollBall {
  0% { top: 6px; opacity: 1; }
  100% { top: 22px; opacity: 0; }
}

/* Pillars Section */
.pillars-section {
  background: var(--bob-cream);
  padding: 96px 60px;
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 52px;
}

.pillar-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-base);
  border: 1px solid rgba(0,0,0,0.06);
}

.pillar-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.pillar-card.featured {
  background: linear-gradient(145deg, var(--bob-navy), var(--bob-trust-blue));
  border: none;
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl), 0 0 0 3px rgba(255,103,31,0.3);
}
.pillar-card.featured:hover { transform: translateY(-14px); }

.pillar-canvas-wrap {
  background: linear-gradient(135deg, rgba(255,103,31,0.06), rgba(0,200,83,0.06));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  height: 200px;
}

.pillar-card.featured .pillar-canvas-wrap {
  background: rgba(255,255,255,0.05);
}

.pillar-canvas { width: 100%; height: 100%; max-width: 200px; object-fit: contain; }

.pillar-body { padding: 28px; text-align: left; }

.pillar-number {
  font-family: var(--font-num);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--bob-orange);
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.pillar-card.featured .pillar-number { color: rgba(255,103,31,0.8); }

.pillar-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bob-charcoal);
  margin-bottom: 12px;
}
.pillar-card.featured .pillar-title { color: white; }

.pillar-desc {
  font-size: 0.9rem;
  color: var(--bob-gray);
  line-height: 1.65;
  margin-bottom: 20px;
}
.pillar-card.featured .pillar-desc { color: rgba(255,255,255,0.65); }

.pillar-cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--bob-orange);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.pillar-card.featured .pillar-cta { color: var(--bob-yellow); }
.pillar-cta:hover { gap: 12px; }

/* Transform Section */
.transform-section {
  position: relative;
  background: linear-gradient(135deg, var(--bob-trust-blue) 0%, var(--bob-navy) 60%, #0d1f3c 100%);
  overflow: hidden;
  padding: 0;
}

#transform-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.transform-content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  margin: 0 auto;
  padding: 96px 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.transform-stats {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 36px;
  margin-top: 12px;
}

.t-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.t-stat-val {
  font-family: var(--font-num);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bob-yellow);
}

.t-stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.55);
}

.eco-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.eco-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  backdrop-filter: blur(8px);
  transition: all var(--transition-base);
}

.eco-feature:hover {
  background: rgba(255,255,255,0.1);
  transform: translateX(6px);
  border-color: rgba(255,103,31,0.4);
}

.eco-icon {
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,103,31,0.15);
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.eco-text { display: flex; flex-direction: column; gap: 2px; }
.eco-text strong { font-weight: 600; color: white; font-size: 0.95rem; }
.eco-text span { font-size: 0.8rem; color: rgba(255,255,255,0.55); }

/* Home CTA Section */
.home-cta-section {
  background: var(--bob-warm);
  padding: 96px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(255,103,31,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
  margin: 0 auto;
}

.cta-content h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  color: var(--bob-charcoal);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.cta-content p {
  color: var(--bob-gray);
  font-size: 1rem;
  margin-bottom: 36px;
  line-height: 1.7;
}

/* ========================================================
   PAGE 2: CALCULATOR
   ======================================================== */
.calc-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bob-trust-blue), var(--bob-navy));
  padding: 64px 60px 48px;
  overflow: hidden;
}

#calc-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.4;
}

.calc-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(1.9rem, 4vw, 3rem);
  font-weight: 900;
  color: white;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.15;
}

.page-subtitle {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.65;
  max-width: 500px;
}

/* Progress Bar */
.calc-progress-bar {
  background: white;
  border-bottom: 1px solid rgba(0,0,0,0.08);
  padding: 20px 60px;
  position: sticky;
  top: var(--nav-height);
  z-index: 100;
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  opacity: 0.4;
  transition: all var(--transition-base);
  cursor: pointer;
}

.prog-step:hover {
  opacity: 0.85;
}

.prog-step:hover .prog-dot {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(255, 103, 31, 0.3);
}

.prog-step.active, .prog-step.completed { opacity: 1; }

.prog-dot {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bob-gray-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  border: 2px solid transparent;
  transition: all var(--transition-base);
}

.prog-step.active .prog-dot {
  background: var(--bob-orange);
  border-color: var(--bob-orange);
  box-shadow: 0 0 0 4px rgba(255,103,31,0.2);
  transform: scale(1.1);
}
.prog-step.completed .prog-dot {
  background: var(--bob-green);
  border-color: var(--bob-green);
}

.prog-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--bob-gray);
  letter-spacing: 0.02em;
}

.prog-step.active .prog-label { color: var(--bob-orange); }
.prog-step.completed .prog-label { color: var(--bob-green); }

.progress-fill-bar {
  width: 100%;
  max-width: 700px;
  margin: 0 auto;
  height: 4px;
  background: var(--bob-gray-light);
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--bob-orange), var(--bob-yellow));
  border-radius: 2px;
  transition: width 0.6s cubic-bezier(0.4,0,0.2,1);
}

/* Calculator Main */
.calculator-wrapper {
  padding: 0 0 80px;
}

.calc-main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 60px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

/* Meter Panel */
.calc-meter-panel {
  position: sticky;
  top: calc(var(--nav-height) + 105px);
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(0,0,0,0.06);
  text-align: center;
}

.meter-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bob-gray);
  margin-bottom: 16px;
}

#meter-canvas {
  margin: 0 auto 4px;
}

.meter-value {
  margin-bottom: 20px;
}

.meter-number {
  font-family: var(--font-num);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  display: block;
  line-height: 1;
}

.meter-unit {
  font-size: 0.78rem;
  color: var(--bob-gray);
  display: block;
  margin-top: 4px;
}

.meter-category-breakdown {
  margin-bottom: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.breakdown-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 0.8rem;
}

.br-label { color: var(--bob-gray); font-weight: 500; }
.br-val {
  font-family: var(--font-num);
  font-weight: 600;
  color: var(--bob-charcoal);
}

.meter-benchmark {
  padding-top: 16px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.bench-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  padding: 5px 0;
}
.bench-label { color: var(--bob-gray); }
.bench-val { font-weight: 600; color: var(--bob-charcoal); font-family: var(--font-num); }

/* Form Steps */
.calc-form-panel { min-width: 0; }

.calc-step {
  display: none;
  animation: stepIn 0.4s cubic-bezier(0.4,0,0.2,1);
}

.calc-step.active { display: block; }

@keyframes stepIn {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

.step-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.step-icon {
  font-size: 2rem;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bob-warm);
  border-radius: var(--radius-lg);
  flex-shrink: 0;
}

.step-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--bob-charcoal);
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--bob-gray);
  line-height: 1.55;
}

.step-canvas-row {
  margin-bottom: 28px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(135deg, rgba(28,37,65,0.03), rgba(0,200,83,0.05));
  border: 1px solid rgba(0,0,0,0.07);
}

.step-canvas-row canvas {
  width: 100%;
  height: 160px;
  object-fit: cover;
}

/* Input Grid */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input-group.full-width { grid-column: 1 / -1; }

.input-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bob-charcoal);
}

.input-row {
  display: flex;
  align-items: center;
  gap: 0;
  border: 2px solid rgba(0,0,0,0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: white;
  transition: border-color var(--transition-fast);
}

.input-row:focus-within {
  border-color: var(--bob-orange);
  box-shadow: 0 0 0 4px rgba(255,103,31,0.12);
}

.calc-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  background: transparent;
  font-family: var(--font-num);
  font-size: 1rem;
  font-weight: 500;
  color: var(--bob-charcoal);
  outline: none;
  min-width: 0;
}

.calc-input::-webkit-inner-spin-button,
.calc-input::-webkit-outer-spin-button { opacity: 0.5; }

.input-unit {
  padding: 12px 14px;
  background: var(--bob-warm);
  color: var(--bob-gray);
  font-size: 0.8rem;
  font-weight: 600;
  border-left: 1px solid rgba(0,0,0,0.08);
  flex-shrink: 0;
}

.input-hint {
  font-size: 0.75rem;
  color: var(--bob-orange);
  line-height: 1.45;
}

/* Toggle Groups */
.toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toggle-btn {
  padding: 9px 18px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(0,0,0,0.1);
  background: white;
  color: var(--bob-gray);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.toggle-btn:hover {
  border-color: var(--bob-orange);
  color: var(--bob-orange);
  background: rgba(255,103,31,0.05);
}

.toggle-btn.active {
  border-color: var(--bob-orange);
  background: var(--bob-orange);
  color: white;
  font-weight: 600;
}

/* Calc Nav */
.calc-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.08);
}

.step-indicator {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--bob-gray);
}

/* ========================================================
   PAGE 3: REPORT
   ======================================================== */
.report-hero {
  position: relative;
  background: linear-gradient(135deg, #0f1e38 0%, var(--bob-navy) 100%);
  padding: 64px 60px 52px;
  overflow: hidden;
}

#report-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.report-hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.report-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}

.report-headline-numbers {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 20px;
  margin-bottom: 60px;
}

.headline-num-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-base);
}

.headline-num-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.headline-num-card.primary {
  background: linear-gradient(145deg, var(--bob-orange), var(--bob-deep-orange));
  border: none;
  color: white;
}

.hn-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bob-gray);
  margin-bottom: 12px;
}

.headline-num-card.primary .hn-label { color: rgba(255,255,255,0.75); }

.hn-value {
  font-family: var(--font-num);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  line-height: 1;
  margin-bottom: 8px;
}

.headline-num-card.primary .hn-value { color: white; }

.hn-unit {
  font-size: 1rem;
  font-weight: 400;
  color: var(--bob-gray);
  margin-left: 4px;
}

.headline-num-card.primary .hn-unit { color: rgba(255,255,255,0.7); }

.hn-context {
  font-size: 0.78rem;
  color: var(--bob-gray);
}
.headline-num-card.primary .hn-context { color: rgba(255,255,255,0.65); }

.score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--bob-yellow), var(--bob-orange));
  border-radius: 50%;
  color: white;
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: 1.4rem;
  box-shadow: 0 4px 16px rgba(253,185,19,0.4);
}

.report-section {
  margin-bottom: 64px;
}

.report-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bob-charcoal);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

/* Report Category Chart */
.report-categories {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: center;
}

.report-cat-chart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-center {
  position: absolute;
  text-align: center;
}

.donut-total {
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  display: block;
}

.donut-label {
  font-size: 0.72rem;
  color: var(--bob-gray);
  display: block;
}

.report-cat-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cat-color {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cat-info {
  flex: 1;
  min-width: 0;
}

.cat-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bob-charcoal);
  display: block;
  margin-bottom: 6px;
}

.cat-bar-wrap {
  height: 8px;
  background: var(--bob-gray-light);
  border-radius: 4px;
  overflow: hidden;
}

.cat-bar {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.4,0,0.2,1);
}

.cat-pct {
  font-family: var(--font-num);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bob-gray);
  width: 40px;
  text-align: right;
  flex-shrink: 0;
}

.cat-val {
  font-family: var(--font-num);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}

/* Equivalents */
.equivalents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.eq-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-base);
}

.eq-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.eq-card.highlight {
  background: linear-gradient(145deg, rgba(0,200,83,0.06), rgba(105,240,174,0.06));
  border-color: rgba(0,200,83,0.2);
}

.eq-icon { font-size: 2rem; margin-bottom: 12px; }

.eq-value {
  font-family: var(--font-num);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  margin-bottom: 8px;
}

.eq-label { font-size: 0.78rem; color: var(--bob-gray); line-height: 1.45; }

/* Benchmark Chart */
.benchmark-chart {
  display: flex;
  align-items: flex-end;
  gap: 32px;
  height: 280px;
  padding: 20px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.06);
}

.bench-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.bench-bar-wrap {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bench-bar {
  width: 60%;
  border-radius: 6px 6px 0 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  transition: height 1s cubic-bezier(0.4,0,0.2,1);
  position: relative;
}

.bench-bar.yours { background: linear-gradient(180deg, var(--bob-orange), var(--bob-deep-orange)); }
.bench-bar.india { background: linear-gradient(180deg, var(--bob-yellow), #e6a800); }
.bench-bar.global { background: linear-gradient(180deg, var(--bob-sky), #2980b9); }
.bench-bar.paris { background: linear-gradient(180deg, var(--bob-green), #00a040); }

.bench-bar-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  text-align: center;
  writing-mode: horizontal-tb;
}

.bench-name {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bob-gray);
  text-align: center;
}

.bench-num {
  font-family: var(--font-num);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--bob-charcoal);
}

.report-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================================
   PAGE 4: REDUCE
   ======================================================== */
.reduce-hero {
  position: relative;
  background: linear-gradient(135deg, #0a2e1a 0%, #0f3d1f 40%, #1a5225 100%);
  padding: 64px 60px 52px;
  overflow: hidden;
}

#reduce-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.5;
}

.reduce-hero-content { position: relative; z-index: 2; max-width: 600px; }

.reduce-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 60px 80px;
}

.savings-banner {
  display: flex;
  align-items: center;
  gap: 20px;
  background: linear-gradient(135deg, rgba(0,200,83,0.08), rgba(105,240,174,0.12));
  border: 1.5px solid rgba(0,200,83,0.25);
  border-radius: var(--radius-xl);
  padding: 20px 28px;
  margin-bottom: 32px;
}

.savings-icon { font-size: 2rem; flex-shrink: 0; }

.savings-text { flex: 1; font-size: 0.95rem; color: var(--bob-charcoal); line-height: 1.5; }
.savings-amount { font-weight: 700; color: var(--bob-green); font-family: var(--font-num); }

.savings-score-tag {
  background: var(--bob-green);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Filter Tabs */
.reduce-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}

.filter-tab {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 2px solid rgba(0,0,0,0.1);
  background: white;
  color: var(--bob-gray);
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  border-color: var(--bob-orange);
  color: var(--bob-orange);
}

.filter-tab.active {
  background: var(--bob-orange);
  border-color: var(--bob-orange);
  color: white;
  font-weight: 600;
}

/* Actions Grid */
.actions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.action-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.07);
  transition: all var(--transition-base);
  position: relative;
}

.action-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.action-card[data-category] {
  display: flex;
  flex-direction: column;
}

.action-badge {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 0;
}

.action-badge.high { background: linear-gradient(90deg, rgba(255,103,31,0.12), rgba(255,103,31,0.06)); color: var(--bob-orange); }
.action-badge.medium { background: linear-gradient(90deg, rgba(253,185,19,0.12), rgba(253,185,19,0.06)); color: #b8860b; }
.action-badge.low { background: linear-gradient(90deg, rgba(0,200,83,0.12), rgba(0,200,83,0.06)); color: #007a33; }

.action-icon {
  font-size: 2.2rem;
  padding: 20px 24px 8px;
}

.action-body { padding: 0 24px 20px; }

.action-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  margin-bottom: 8px;
  line-height: 1.3;
}

.action-desc {
  font-size: 0.85rem;
  color: var(--bob-gray);
  line-height: 1.55;
  margin-bottom: 16px;
}

.action-metrics {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.am-item { display: flex; flex-direction: column; gap: 2px; }
.am-label { font-size: 0.68rem; font-weight: 600; color: var(--bob-gray); text-transform: uppercase; letter-spacing: 0.06em; }
.am-val { font-family: var(--font-num); font-size: 0.85rem; font-weight: 700; color: var(--bob-charcoal); }
.am-val.green { color: var(--bob-green); }

.action-expand-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bob-orange);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.action-expand-btn:hover { opacity: 0.7; }

.action-expanded {
  display: none;
  background: var(--bob-warm);
  padding: 20px 24px;
  border-top: 1px solid rgba(0,0,0,0.07);
}

.action-expanded.open { display: block; animation: expandIn 0.3s ease; }
@keyframes expandIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

.action-expanded h4 {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.action-expanded ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.action-expanded ul li {
  font-size: 0.85rem;
  color: var(--bob-gray);
  padding-left: 20px;
  position: relative;
  line-height: 1.5;
}

.action-expanded ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--bob-orange);
  font-size: 0.9rem;
}

.action-link { margin-top: 4px; }

.reduce-cta-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ========================================================
   PAGE 5: OFFSET
   ======================================================== */
.offset-hero {
  position: relative;
  background: linear-gradient(135deg, #052010 0%, #0a3318 40%, #0f4a25 100%);
  padding: 64px 60px 52px;
  overflow: hidden;
}

#forest-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.offset-hero-content { position: relative; z-index: 2; max-width: 600px; }

.offset-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 60px 80px;
}

.offset-philosophy {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: rgba(253,185,19,0.08);
  border: 1.5px solid rgba(253,185,19,0.25);
  border-radius: var(--radius-xl);
  padding: 24px 28px;
  margin-bottom: 32px;
}

.phil-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.phil-text { font-size: 0.9rem; line-height: 1.65; color: var(--bob-charcoal); }
.phil-text strong { color: var(--bob-charcoal); font-weight: 700; }

.offset-calculator-bar {
  display: flex;
  align-items: center;
  gap: 32px;
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px 32px;
  box-shadow: var(--shadow-md);
  margin-bottom: 48px;
  border: 1px solid rgba(0,0,0,0.07);
  flex-wrap: wrap;
}

.offset-remaining, .offset-cost-est {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.or-label, .oc-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bob-gray);
}

.or-value {
  font-family: var(--font-num);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--bob-orange);
}

.oc-value {
  font-family: var(--font-num);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bob-charcoal);
}

.offset-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bob-charcoal);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

/* Projects Grid */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.project-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.06);
  transition: all var(--transition-base);
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
}

.project-card.featured {
  box-shadow: var(--shadow-xl);
  border: 2px solid rgba(0,200,83,0.25);
}

.project-hero-img {
  position: relative;
  height: 180px;
  overflow: hidden;
  background: linear-gradient(135deg, #0a3318, #0f4a25);
}

.project-scene-canvas {
  width: 100% !important;
  height: 100% !important;
}

.project-body { padding: 24px; }

.project-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.proj-badge {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.proj-badge.verified {
  background: rgba(0,200,83,0.1);
  color: #007a33;
  border: 1px solid rgba(0,200,83,0.25);
}

.proj-badge.sdg {
  background: rgba(79,195,247,0.1);
  color: #0277bd;
  border: 1px solid rgba(79,195,247,0.25);
}

.project-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  margin-bottom: 4px;
}

.project-region {
  font-size: 0.78rem;
  color: var(--bob-gray);
  margin-bottom: 12px;
}

.project-desc {
  font-size: 0.85rem;
  color: var(--bob-gray);
  line-height: 1.55;
  margin-bottom: 16px;
}

.project-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
  padding: 16px;
  background: var(--bob-cream);
  border-radius: var(--radius-lg);
}

.pm-item { display: flex; flex-direction: column; gap: 2px; }
.pm-label { font-size: 0.68rem; font-weight: 600; color: var(--bob-gray); text-transform: uppercase; }
.pm-val { font-family: var(--font-num); font-size: 0.82rem; font-weight: 700; color: var(--bob-charcoal); }

.project-actions { display: flex; gap: 10px; align-items: center; }

.project-card.selected {
  border-color: var(--bob-green);
  box-shadow: 0 0 0 3px rgba(0,200,83,0.2), var(--shadow-xl);
}

/* Offset Summary */
.offset-summary {
  background: linear-gradient(135deg, rgba(0,200,83,0.06), rgba(105,240,174,0.08));
  border: 2px solid rgba(0,200,83,0.25);
  border-radius: var(--radius-xl);
  padding: 32px;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.os-title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  margin-bottom: 16px;
}

.os-details {
  font-size: 0.9rem;
  color: var(--bob-gray);
  margin-bottom: 16px;
  line-height: 1.6;
}

.os-total {
  font-size: 1rem;
  color: var(--bob-charcoal);
  margin-bottom: 20px;
}

.os-total strong { color: var(--bob-green); font-family: var(--font-num); }

/* ========================================================
   PAGE 6: GREEN FINANCE
   ======================================================== */
.finance-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bob-navy) 0%, #0f1e38 50%, #1a2a48 100%);
  padding: 64px 60px 52px;
  overflow: hidden;
}

#finance-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.finance-hero-content { position: relative; z-index: 2; max-width: 700px; }

.finance-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}

/* Finance Vision */
.finance-vision {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
  margin-bottom: 64px;
  padding: 48px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.07);
}

.fv-left h2 {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--bob-charcoal);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.fv-left p { font-size: 0.92rem; color: var(--bob-gray); line-height: 1.7; }

.fv-right {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.fv-stat { display: flex; flex-direction: column; gap: 4px; }
.fv-stat-val {
  font-family: var(--font-num);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--bob-orange);
}
.fv-stat-label { font-size: 0.8rem; color: var(--bob-gray); }

.finance-section-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bob-charcoal);
  margin-bottom: 28px;
  letter-spacing: -0.02em;
}

/* Finance Products Grid */
.finance-products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}

.finance-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.07);
  transition: all var(--transition-base);
  display: flex;
  flex-direction: column;
}

.finance-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(255,103,31,0.2);
}

.finance-card.featured {
  background: linear-gradient(145deg, var(--bob-warm), white);
  border: 2px solid rgba(255,103,31,0.25);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,103,31,0.1);
}

.finance-icon-wrap {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 100px;
  background: var(--bob-warm);
  display: flex;
  align-items: center;
  justify-content: center;
}

.finance-product-canvas {
  width: 100% !important;
  height: 100% !important;
}

.fc-category {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--bob-orange);
  margin-bottom: 8px;
}

.fc-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--bob-charcoal);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.fc-desc {
  font-size: 0.82rem;
  color: var(--bob-gray);
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.fc-metrics {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--bob-cream);
  border-radius: var(--radius-md);
}

.fcm-item { display: flex; justify-content: space-between; align-items: center; }
.fcm-label { font-size: 0.72rem; font-weight: 600; color: var(--bob-gray); }
.fcm-val { font-family: var(--font-num); font-size: 0.82rem; font-weight: 700; color: var(--bob-charcoal); }

.fc-impact {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.78rem;
  color: #007a33;
  margin-bottom: 20px;
  padding: 10px 12px;
  background: rgba(0,200,83,0.06);
  border-radius: var(--radius-md);
  border: 1px solid rgba(0,200,83,0.15);
}

.fci-icon { flex-shrink: 0; }
.fci-text { line-height: 1.4; }

.fc-cta {
  display: block;
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--bob-orange), var(--bob-deep-orange));
  color: white;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  text-align: center;
  transition: all var(--transition-fast);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(255,103,31,0.25);
}
.fc-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,103,31,0.35);
}

.finance-contact-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(135deg, var(--bob-navy), var(--bob-trust-blue));
  border-radius: var(--radius-xl);
  padding: 40px 48px;
  flex-wrap: wrap;
}

.fcb-left h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

.fcb-left p { font-size: 0.88rem; color: rgba(255,255,255,0.65); max-width: 480px; line-height: 1.6; }

.fcb-right {
  display: flex;
  gap: 14px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.fcb-right .btn-ghost { color: rgba(255,255,255,0.8); }

/* ========================================================
   PAGE 7: DASHBOARD
   ======================================================== */
.dashboard-hero {
  position: relative;
  background: linear-gradient(135deg, var(--bob-trust-blue) 0%, var(--bob-navy) 100%);
  padding: 64px 60px 52px;
  overflow: hidden;
}

#dashboard-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.dashboard-hero-content { position: relative; z-index: 2; max-width: 600px; }

.dashboard-wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 60px 80px;
}

.dw-section-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--bob-charcoal);
  margin-bottom: 32px;
  letter-spacing: -0.02em;
}

/* Growth Journey */
.growth-journey {
  margin-bottom: 64px;
}

.journey-stages {
  display: flex;
  align-items: center;
  padding: 40px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  overflow-x: auto;
  gap: 0;
}

.journey-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 100px;
  position: relative;
  opacity: 0.4;
  transition: all var(--transition-base);
}

.journey-stage.completed, .journey-stage.active { opacity: 1; }

.stage-icon {
  font-size: 2.4rem;
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bob-gray-light);
  border-radius: 50%;
  transition: all var(--transition-base);
}

.journey-stage.completed .stage-icon {
  background: linear-gradient(135deg, var(--bob-green), #00a040);
  box-shadow: var(--shadow-green);
}

.journey-stage.active .stage-icon {
  background: linear-gradient(135deg, var(--bob-orange), var(--bob-deep-orange));
  box-shadow: var(--shadow-orange);
  transform: scale(1.15);
}

.stage-name {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  text-align: center;
}

.stage-desc {
  font-size: 0.72rem;
  color: var(--bob-gray);
  text-align: center;
}

.stage-check {
  display: none;
  position: absolute;
  top: -4px;
  right: 50%;
  transform: translateX(20px);
  width: 20px;
  height: 20px;
  background: var(--bob-green);
  border-radius: 50%;
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
}

.journey-stage.completed .stage-check { display: flex; }

.stage-progress-ring { position: absolute; bottom: 32px; }

.journey-connector {
  flex: 0.5;
  height: 2px;
  background: var(--bob-gray-light);
  margin-bottom: 48px;
}

.journey-connector.completed {
  background: linear-gradient(90deg, var(--bob-green), var(--bob-green));
}

/* Metrics Grid */
.dashboard-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 48px;
}

.dm-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.07);
  transition: all var(--transition-base);
}

.dm-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.dm-card.primary-card {
  background: linear-gradient(145deg, var(--bob-navy), var(--bob-trust-blue));
  border: none;
}

.dm-icon { font-size: 1.6rem; margin-bottom: 12px; }

.dm-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--bob-gray);
  margin-bottom: 8px;
}

.dm-card.primary-card .dm-label { color: rgba(255,255,255,0.6); }

.dm-value {
  font-family: var(--font-num);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  margin-bottom: 8px;
  line-height: 1;
}

.dm-card.primary-card .dm-value { color: white; }
.dm-unit { font-size: 0.85rem; font-weight: 400; }
.green-val { color: var(--bob-green); }
.orange-val { color: var(--bob-orange); }

.dm-trend {
  font-size: 0.75rem;
  color: var(--bob-gray);
}

.dm-card.primary-card .dm-trend { color: rgba(255,255,255,0.5); }
.trend-positive { color: var(--bob-green); }
.trend-neutral { color: var(--bob-gray); }

/* Charts */
.dashboard-charts {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}

.chart-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.07);
}

.chart-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  margin-bottom: 20px;
}

.progress-rings {
  display: flex;
  gap: 16px;
  justify-content: space-around;
  flex-wrap: wrap;
}

.prog-ring-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pr-label { font-size: 0.78rem; font-weight: 600; color: var(--bob-gray); }
.pr-pct { font-family: var(--font-num); font-size: 0.88rem; font-weight: 700; color: var(--bob-orange); }

/* Badges */
.badges-section { margin-bottom: 48px; }

.badges-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.badge-item {
  background: white;
  border-radius: var(--radius-lg);
  padding: 20px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 2px solid rgba(0,0,0,0.07);
  opacity: 0.5;
  transition: all var(--transition-base);
}

.badge-item.earned {
  opacity: 1;
  border-color: rgba(255,103,31,0.3);
  background: linear-gradient(145deg, var(--bob-warm), white);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255,103,31,0.1);
}

.badge-item:hover { transform: translateY(-4px); opacity: 0.85; }
.badge-item.earned:hover { opacity: 1; }

.badge-icon { font-size: 2rem; margin-bottom: 8px; }

.badge-name {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  margin-bottom: 4px;
}

.badge-status { font-size: 0.66rem; }
.earned-label { color: var(--bob-green); font-weight: 600; }
.locked-label { color: var(--bob-gray); }

/* Downloads */
.download-section { margin-bottom: 64px; }

.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.download-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0,0,0,0.07);
  transition: all var(--transition-base);
  cursor: pointer;
}

.download-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255,103,31,0.2);
}

.dl-icon { font-size: 2rem; margin-bottom: 12px; }

.download-card h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  margin-bottom: 8px;
}

.download-card p { font-size: 0.82rem; color: var(--bob-gray); line-height: 1.5; margin-bottom: 20px; }

.dl-btn {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bob-orange);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dl-btn:hover { opacity: 0.7; }

/* Victory Section */
.victory-section {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  min-height: 360px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bob-trust-blue), var(--bob-navy));
}

#victory-canvas {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}

.victory-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px;
  max-width: 600px;
}

.victory-emoji { font-size: 4rem; margin-bottom: 16px; animation: float 3s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.victory-content h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 900;
  color: white;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.victory-content p {
  font-size: 1rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.7;
  margin-bottom: 32px;
}

.victory-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Kid Mascot Float */
.kid-mascot-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 800;
  display: none;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

body.kid-mode .kid-mascot-float { display: flex; }

.mascot-char {
  font-size: 3rem;
  animation: mascotBounce 2s ease-in-out infinite;
  cursor: pointer;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.2));
}

@keyframes mascotBounce {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}

.mascot-bubble {
  background: white;
  border-radius: 16px 16px 4px 16px;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--bob-charcoal);
  box-shadow: var(--shadow-md);
  max-width: 220px;
  text-align: right;
  animation: bubblePop 0.5s var(--transition-elastic);
}

/* Kid Mode Overrides */
body.kid-mode .hero-section {
  background: linear-gradient(160deg, #0a3318 0%, #0f4a25 40%, #165c30 100%);
}

body.kid-mode .section-title,
body.kid-mode .step-title,
body.kid-mode .pillar-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

body.kid-mode .btn-primary {
  font-size: 1.05rem;
  padding: 16px 32px;
}

body.kid-mode .pillar-card,
body.kid-mode .action-card,
body.kid-mode .finance-card {
  border-radius: 28px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
  .finance-products-grid { grid-template-columns: repeat(2, 1fr); }
  .badges-grid { grid-template-columns: repeat(3, 1fr); }
  .report-headline-numbers { grid-template-columns: 1fr 1fr; }
  .pillars-grid { grid-template-columns: 1fr; max-width: 500px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 900px) {
  :root { --nav-height: 64px; }

  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }

  .nav-mobile-menu.open { display: flex; }

  .hero-content { padding: 60px 24px 80px; margin-left: 0; }
  .hero-headline { font-size: clamp(1.8rem, 6vw, 3rem); }

  .pillars-section,
  .transform-section .transform-content,
  .home-cta-section { padding: 64px 24px; }

  .transform-content { grid-template-columns: 1fr !important; gap: 40px !important; }

  .calc-main { grid-template-columns: 1fr !important; padding: 24px; }
  .calc-meter-panel { position: static; }

  .input-grid { grid-template-columns: 1fr; }

  .report-wrapper, .reduce-wrapper, .offset-wrapper, .finance-wrapper, .dashboard-wrapper {
    padding: 40px 24px 60px;
  }

  .report-categories { grid-template-columns: 1fr; }
  .equivalents-grid { grid-template-columns: repeat(2, 1fr); }
  .benchmark-chart { padding: 16px; gap: 16px; }
  .bench-bar { width: 80%; }

  .projects-grid { grid-template-columns: 1fr; }
  .finance-products-grid { grid-template-columns: 1fr; }
  .finance-vision { grid-template-columns: 1fr; gap: 32px; }

  .dashboard-metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .dashboard-charts { grid-template-columns: 1fr; }
  .badges-grid { grid-template-columns: repeat(3, 1fr); }
  .download-cards { grid-template-columns: 1fr; }

  .journey-stages { overflow-x: auto; }
}

@media (max-width: 600px) {
  .hero-ctas { flex-direction: column; }
  .hero-stats { gap: 24px; }
  .report-headline-numbers { grid-template-columns: 1fr 1fr; }
  .equivalents-grid { grid-template-columns: 1fr 1fr; }
  .actions-grid { grid-template-columns: 1fr; }
  .badges-grid { grid-template-columns: repeat(2, 1fr); }
  .calc-progress-bar { padding: 16px 20px; }
  .progress-steps { gap: 4px; }
  .prog-label { display: none; }
  .report-cta-row, .reduce-cta-row, .victory-ctas { flex-direction: column; align-items: stretch; }
  .finance-contact-bar { flex-direction: column; text-align: center; }
  .offset-calculator-bar { flex-direction: column; align-items: flex-start; }
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bob-cream); }
::-webkit-scrollbar-thumb { background: rgba(255,103,31,0.35); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,103,31,0.6); }

/* ── MOTION PREFERENCES ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── FOCUS VISIBLE ── */
:focus-visible {
  outline: 3px solid var(--bob-orange);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ========================================================
   RESET BUTTONS
   ======================================================== */
.reset-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 103, 31, 0.05);
  border: 1.5px dashed rgba(255, 103, 31, 0.4);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--bob-orange);
  transition: all var(--transition-fast);
  cursor: pointer;
}
.reset-btn:hover {
  background: rgba(255, 103, 31, 0.15);
  border-color: var(--bob-orange);
  transform: translateY(-1px);
}
.mobile-reset-btn {
  display: block;
  width: 100%;
  padding: 12px;
  margin-top: 15px;
  border-radius: var(--radius-lg);
  background: rgba(255, 103, 31, 0.1);
  border: 1px dashed var(--bob-orange);
  color: var(--bob-orange);
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.mobile-reset-btn:hover {
  background: var(--bob-orange);
  color: white;
}

/* ========================================================
   KID MODE STRUCTURAL OVERRIDES
   ======================================================== */
body.kid-mode .adult-only { display: none !important; }
body:not(.kid-mode) .kid-only { display: none !important; }

/* Hide complex text on Reduce page for kids */
body.kid-mode .action-metrics { display: none !important; }
body.kid-mode .action-desc { font-size: 1.1rem; line-height: 1.6; color: var(--bob-charcoal); }
body.kid-mode .action-card { background: #fdfdfd; border: 3px solid #e0e0e0; border-radius: 20px; box-shadow: 0 8px 0 #e0e0e0; transition: transform 0.2s; }
body.kid-mode .action-card:hover { transform: translateY(-4px); border-color: #00C853; box-shadow: 0 12px 0 #00C853; }
body.kid-mode .action-icon { font-size: 3rem; background: transparent; }
body.kid-mode .action-title { font-size: 1.4rem; color: #1b5e20; }
body.kid-mode .finance-metrics { display: none !important; }
body.kid-mode .finance-feature { display: none !important; }


/* Kid Grid & Choice Cards */
.kid-grid {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 20px;
}
.kid-question {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.kid-question h3 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--bob-navy);
  font-weight: 700;
}
body.kid-mode .kid-question h3 {
  color: #1b5e20; /* Fun dark green in kid mode */
}
.kid-toggle-group {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}
.kid-toggle-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 20px 14px;
  border-radius: var(--radius-xl);
  background: white;
  border: 2px solid rgba(0, 200, 83, 0.15);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.kid-toggle-btn .ktb-emoji {
  font-size: 2.2rem;
  transition: transform 0.3s var(--transition-elastic);
}
.kid-toggle-btn .ktb-label {
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--bob-charcoal);
  line-height: 1.3;
}
.kid-toggle-btn:hover {
  transform: translateY(-4px);
  border-color: var(--bob-green);
  box-shadow: var(--shadow-md);
}
.kid-toggle-btn:hover .ktb-emoji {
  transform: scale(1.2) rotate(5deg);
}
.kid-toggle-btn.active {
  background: linear-gradient(145deg, #e8f5e9, #c8e6c9);
  border-color: var(--bob-green);
  box-shadow: 0 6px 20px rgba(0, 200, 83, 0.25), 0 0 0 1px var(--bob-green);
}
.kid-toggle-btn.active .ktb-label {
  color: #1b5e20;
}
.kid-toggle-btn.active .ktb-emoji {
  transform: scale(1.15);
}

/* Kid Report Page Panel */
.kid-report-panel {
  display: flex;
  flex-direction: column;
  gap: 40px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-2xl);
  padding: 40px;
  border: 3px solid #81c784;
  box-shadow: var(--shadow-xl);
  backdrop-filter: blur(15px);
}
.kid-mascot-cheer {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #e8f5e9;
  border-radius: 20px;
  padding: 24px;
  border: 1.5px solid #a5d6a7;
}
.kmc-char {
  font-size: 3.5rem;
  animation: float 2.5s ease-in-out infinite;
}
.kmc-bubble h2 {
  font-family: var(--font-heading);
  color: #1b5e20;
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 6px;
}
.kmc-bubble p {
  color: #388e3c;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Kid Animal Rank Card */
.kid-animal-card {
  display: flex;
  align-items: center;
  gap: 30px;
  background: linear-gradient(135deg, #c8e6c9 0%, #a5d6a7 100%);
  border-radius: 28px;
  padding: 32px;
  border: 2px solid #81c784;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.kid-animal-card::after {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 150px;
  height: 150px;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
}
.kac-icon {
  font-size: 4.5rem;
  background: white;
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  box-shadow: var(--shadow-sm);
  animation: mascotBounce 2s ease-in-out infinite;
}
.kac-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kac-rank-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #2e7d32;
}
.kac-animal-name {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 900;
  color: #1b5e20;
  margin-bottom: 4px;
}
.kac-desc {
  font-size: 0.95rem;
  color: #2e7d32;
  font-weight: 500;
  line-height: 1.5;
}

/* Kid Equivalents Grid */
.kid-section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  color: #1b5e20;
  margin-bottom: 20px;
}
.kid-eq-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.kid-eq-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  border: 1.5px solid rgba(0,200,83,0.1);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
}
.kid-eq-card:hover {
  transform: translateY(-4px);
}
.keq-icon { font-size: 2.6rem; }
.keq-value {
  font-family: var(--font-num);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--bob-green);
}
.keq-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bob-gray);
  line-height: 1.4;
}

/* Kid next steps */
.kid-steps-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 20px;
}
.kid-steps-list li {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--bob-charcoal);
  list-style-type: none;
  position: relative;
}
.kid-steps-list li::before {
  content: '🌟';
  position: absolute;
  left: -24px;
}

.kid-cta-row {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

/* ========================================================
   FLAGSHIP FLOATING CHATBOT WIDGET
   ======================================================== */
.chatbot-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 16px;
}

/* On Kid Mode, shift the mascot or chatbot so they don't overlap */
body.kid-mode .chatbot-container {
  right: auto;
  left: 24px; /* Move chatbot to the left side in kid mode so mascot on right is clear */
}

.chatbot-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--bob-orange), var(--bob-deep-orange));
  color: white;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(255, 103, 31, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all var(--transition-base);
}
.chatbot-toggle:hover {
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 10px 24px rgba(255, 103, 31, 0.5);
}
.chatbot-toggle .chat-icon {
  font-size: 1.6rem;
}
.chatbot-toggle .chat-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--bob-green);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 0.7rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 200, 83, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 6px rgba(0, 200, 83, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 200, 83, 0); }
}

.chatbot-window {
  width: 360px;
  height: 480px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255,255,255,0.4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(20px) scale(0.95);
  opacity: 0;
  pointer-events: none;
  transform-origin: bottom right;
}
.chatbot-window.open {
  pointer-events: all;
}

/* Chat Header */
.chat-header {
  background: linear-gradient(135deg, var(--bob-navy) 0%, #1a2c4e 100%);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: white;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.chat-avatar {
  font-size: 1.6rem;
  background: rgba(255,255,255,0.1);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.2);
}
.chat-header-info h3 {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  font-weight: 700;
  color: white;
}
.chat-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  gap: 4px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--bob-green);
  display: inline-block;
}
.chat-close-btn {
  margin-left: auto;
  background: none;
  border: none;
  color: rgba(255,255,255,0.6);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color var(--transition-fast);
}
.chat-close-btn:hover {
  color: white;
}

/* Chat Messages */
.chat-messages {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-message {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 0.82rem;
  line-height: 1.5;
}
.chat-message.bot {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  color: var(--bob-charcoal);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.chat-message.bot strong {
  color: var(--bob-orange);
}
.chat-message.user {
  background: linear-gradient(135deg, var(--bob-orange) 0%, var(--bob-deep-orange) 100%);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(255, 103, 31, 0.2);
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  align-items: center;
  padding: 8px 12px;
}
.typing-dot {
  width: 6px;
  height: 6px;
  background: #999;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* Quick replies */
.chat-quick-replies {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  align-self: flex-start;
  width: 100%;
}
.quick-reply-btn {
  background: rgba(255, 103, 31, 0.06);
  border: 1.5px solid rgba(255, 103, 31, 0.18);
  color: var(--bob-orange);
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all var(--transition-fast);
  width: fit-content;
  max-width: 100%;
}
.quick-reply-btn:hover {
  background: var(--bob-orange);
  color: white;
  border-color: var(--bob-orange);
  transform: translateX(3px);
}

/* Chat Input Area */
.chat-input-area {
  padding: 16px 20px;
  background: white;
  border-top: 1px solid rgba(0,0,0,0.06);
  display: flex;
  gap: 10px;
}
#chat-input {
  flex: 1;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}
#chat-input:focus {
  border-color: var(--bob-orange);
}
#chat-send-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bob-orange);
  color: white;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}
#chat-send-btn:hover {
  background: var(--bob-deep-orange);
  transform: scale(1.05);
}

@media (max-width: 500px) {
  .chatbot-window {
    width: calc(100vw - 48px);
    height: 420px;
    right: 0;
  }
}
