/* ==========================================================================
   SwapToys Design System & Custom Stylesheet
   Built with modern CSS variables, responsive design, and animations.
   ========================================================================== */

/* Fonts — Brand book: Changa One (display) + Bricolage Grotesque (everything else) */
@import url('https://fonts.googleapis.com/css2?family=Changa+One:ital@0;1&family=Bricolage+Grotesque:opsz,wght@12..96,400;12..96,500;12..96,600;12..96,700;12..96,800&display=swap');

/* Design Tokens */
:root {
  /* Color Palette — Official Brand Book (Pomelli) */
  --primary-base: #009639;       /* Forest Green (brand) */
  --primary-dark: #00752C;       /* Deeper green for hover */
  --primary-light: #E6F4EA;      /* Soft green tint */

  --accent-base: #F58220;        /* Carrot Orange (brand) */
  --accent-dark: #DA6F12;        /* Strong orange for hover */
  --accent-light: #FCE3CC;       /* Soft orange cream */

  --teal-base: #00818A;          /* Classic Teal (brand) */
  --teal-dark: #006770;          /* Deep teal for hover */
  --teal-light: #DCF0F1;         /* Soft teal tint */

  --brand-green: #55B23B;        /* Brand leaf green (logo highlight) */
  --brand-green-light: #E8F5E9;  /* Soft leaf green tint */
  
  --bg-main: #F7F7F4;            /* Off-white warm linen canvas */
  --bg-surface: #FFFFFF;
  --bg-card: rgba(255, 255, 255, 0.9);
  
  --text-main: #2D312E;          /* Deep charcoal (warmer than pure black) */
  --text-muted: #5A625C;         /* Muted slate gray */
  --text-light: #8E9891;         /* Light grey placeholder/border */
  
  --border-light: #EBEBE6;       /* Warm border tint */
  --border-accent: rgba(29, 158, 117, 0.12);
  
  /* Shadows - Layered for realistic organic depth */
  --shadow-sm: 0 2px 4px rgba(45, 49, 46, 0.02);
  --shadow-md: 0 8px 24px rgba(45, 49, 46, 0.05);
  --shadow-lg: 0 16px 40px rgba(45, 49, 46, 0.08);
  --shadow-phone: 0 24px 60px rgba(45, 49, 46, 0.14);
  
  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Styles */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-family: 'Bricolage Grotesque', system-ui, -apple-system, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-main);
}

body {
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Headings */
h1, h2, h3, h4 {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 {
  text-wrap: balance;
}

h2, h3 {
  text-wrap: pretty;
}

/* Helper Layout Classes */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navigation */
.main-header {
  border-bottom: 1px solid var(--border-light);
  background-color: rgba(247, 247, 244, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 14px 0;
  transition: var(--transition-smooth);
}

.header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  transition: var(--transition-smooth);
}

.logo-group:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.logo-img {
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  font-family: 'Bricolage Grotesque', sans-serif;
  color: var(--primary-dark);
  letter-spacing: -0.03em;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  transition: var(--transition-smooth);
  cursor: pointer;
  border: none;
  font-size: 16px;
  gap: 8px;
  outline: none;
}

.btn:focus-visible {
  outline: 3px solid var(--primary-base);
  outline-offset: 2px;
}

.btn-primary {
  background-color: var(--primary-base);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background-color: var(--bg-surface);
  color: var(--primary-dark);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover:not(:disabled) {
  border-color: var(--primary-base);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* Hero Section — photographic banner */
.hero-section {
  position: relative;
  padding: 96px 0 90px;
  text-align: center;
  overflow: hidden;
  background-image: linear-gradient(110deg, rgba(0,49,18,0.25) 0%, rgba(0,67,25,0.55) 55%, rgba(0,49,18,0.85) 100%), url('img/hero.jpg');
  background-size: cover;
  background-position: center 30%;
}

.hero-section .container { position: relative; z-index: 2; }

.badge {
  display: inline-block;
  background-color: rgba(255,255,255,0.16);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.28);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 28px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-title {
  font-size: clamp(36px, 5vw, 58px);
  color: #fff;
  max-width: 800px;
  margin: 0 auto 24px auto;
  font-weight: 800;
  text-shadow: 0 2px 18px rgba(0,0,0,0.35);
}

.hero-title--display {
  font-family: 'Changa One', 'Bricolage Grotesque', sans-serif;
  font-weight: 400;
  font-size: clamp(44px, 6.5vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 19px);
  color: rgba(255,255,255,0.92);
  max-width: 620px;
  margin: 0 auto 36px auto;
  line-height: 1.6;
  text-shadow: 0 1px 10px rgba(0,0,0,0.3);
}

.hero-cta-container {
  margin-bottom: 16px;
}

.hero-subtext {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

/* Main Grid (Mockup + Content Block) */
.hero-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  margin-top: 48px;
  text-align: left;
}

/* Phone sits on the LEFT (over the calmer part of the photo) on desktop */
.hero-grid .phone-wrapper {
  order: -1;
}

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }

  .hero-grid > div {
    text-align: center !important;
  }

  /* On mobile, keep headline first, phone below */
  .hero-grid .phone-wrapper {
    order: 0;
  }
}

/* Campaigns Section */
.campaigns-section {
  padding: 80px 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
}

.campaigns-section > .container { text-align: center; }

.campaigns-scroller-container {
  position: relative;
  margin-top: 8px;
  width: 100%;
}

.campaigns-scroller {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.campaigns-scroller::-webkit-scrollbar {
  display: none;
}

.campaign-card {
  flex: 0 0 320px;
  scroll-snap-align: center;
  background: var(--bg-main);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
}

.campaign-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-base);
}

.campaign-img-container {
  width: 100%;
  aspect-ratio: 576 / 1024;
  overflow: hidden;
  position: relative;
  background-color: #E2E2DC;
}

.campaign-img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.campaign-card:hover .campaign-img {
  transform: scale(1.04);
}

.campaign-content {
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-grow: 1;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.campaign-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.campaign-card:nth-child(even) .campaign-tag {
  background-color: var(--accent-light);
  color: var(--accent-dark);
}

.campaign-card:nth-child(3n) .campaign-tag {
  background-color: var(--brand-green-light);
  color: var(--brand-green);
}

.campaign-title {
  font-size: 22px;
  color: var(--text-main);
  line-height: 1.25;
  font-weight: 700;
}

.campaign-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.55;
}

/* Native CSS Scroll-Driven Animations */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @keyframes card-slide {
    0% {
      opacity: 0.55;
      transform: scale(0.92) translateY(12px);
    }
    50% {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
    100% {
      opacity: 0.55;
      transform: scale(0.92) translateY(12px);
    }
  }

  .campaign-card {
    animation: card-slide auto linear both;
    animation-timeline: view(inline);
    animation-range: cover;
  }
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--text-light);
  opacity: 0.35;
  transition: var(--transition-smooth);
}

.indicator-dot.active {
  opacity: 1;
  background-color: var(--primary-base);
  width: 20px;
  border-radius: var(--radius-full);
}

/* Social Proof Stats Banner */
.stats-section {
  background-color: var(--primary-light);
  padding: 48px 0;
  border-radius: var(--radius-lg);
  margin: 48px auto;
  border: 1px solid var(--border-accent);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  text-align: center;
}

@media (max-width: 680px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.stat-number {
  font-size: clamp(32px, 4vw, 44px);
  color: var(--primary-dark);
  font-weight: 800;
  margin-bottom: 6px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.stat-label {
  font-size: 14px;
  color: var(--primary-dark);
  opacity: 0.85;
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

/* How It Works Section */
.how-section {
  padding: 90px 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-main);
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 56px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 860px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.step-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  padding: 40px 28px;
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-base);
}

.step-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  width: 34px;
  height: 34px;
  background-color: var(--primary-base);
  color: white;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 4px 10px rgba(0, 139, 122, 0.2);
}

.step-icon {
  font-size: 40px;
  margin: 12px 0 20px 0;
}

.step-icon-wrap {
  width: 110px;
  height: 110px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 12px auto 24px auto;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.step-card:hover .step-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}

.step-icon-wrap--green  { background: #E1F5EE; }
.step-icon-wrap--orange { background: #FFF3E0; }
.step-icon-wrap--teal   { background: #E8F5E9; }

.step-svg {
  width: 72px;
  height: 72px;
}

.step-title {
  font-size: 20px;
  margin-bottom: 12px;
  color: var(--text-main);
}

.step-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* App Mockup Phone Styling */
.phone-wrapper {
  perspective: 1200px;
  display: flex;
  justify-content: center;
}

.phone-device {
  width: 310px;
  height: 610px;
  background-color: #1f2937;
  border-radius: 44px;
  padding: 11px;
  box-shadow: var(--shadow-phone);
  border: 4px solid #374151;
  position: relative;
  overflow: hidden;
  transform: rotateY(-8deg) rotateX(4deg) rotateZ(1deg);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
}

.phone-device:hover {
  transform: rotateY(0deg) rotateX(0deg) rotateZ(0deg) scale(1.02);
}

.phone-screen {
  background-color: var(--bg-main);
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Notch */
.phone-notch {
  width: 130px;
  height: 24px;
  background-color: #1f2937;
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  border-bottom-left-radius: 18px;
  border-bottom-right-radius: 18px;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-camera {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #111827;
  margin-right: 12px;
}

.phone-speaker {
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background-color: #4b5563;
}

/* Inside Mockup App */
.mock-app-bar {
  background-color: var(--primary-base);
  color: white;
  padding: 34px 16px 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 139, 122, 0.1);
}

.mock-app-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.mock-app-bell {
  width: 18px;
  height: 18px;
  opacity: 0.95;
}

.mock-app-feed {
  flex: 1;
  padding: 14px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-height: 480px;
  scrollbar-width: none;
}

.mock-app-feed::-webkit-scrollbar {
  display: none;
}

/* Mock Card */
.mock-toy-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-light);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.mock-toy-img-container {
  height: 140px;
  overflow: hidden;
  background-color: #e5e7eb;
  position: relative;
}

.mock-toy-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mock-toy-distance {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: rgba(45, 49, 46, 0.85);
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}

.mock-toy-info {
  padding: 12px;
}

.mock-toy-title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mock-toy-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 10px;
}

.mock-meta-tag {
  background-color: #F4F4F1;
  border: 1px solid #E6E6E1;
  border-radius: 4px;
  font-size: 9px;
  padding: 3px 5px;
  color: var(--text-muted);
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.mock-meta-tag span {
  font-weight: 700;
  color: var(--primary-dark);
}

.mock-toy-cta {
  width: 100%;
  background-color: var(--primary-base);
  color: white;
  border: none;
  font-size: 12px;
  font-weight: 700;
  font-family: 'Bricolage Grotesque', sans-serif;
  padding: 9px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mock-toy-cta:hover {
  background-color: var(--primary-dark);
}

/* Floating Action Button simulation */
.mock-floating-fab {
  position: absolute;
  bottom: 60px;
  right: 18px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--accent-base);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(255, 143, 0, 0.35);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.mock-floating-fab:hover {
  transform: scale(1.08);
  background-color: var(--accent-dark);
}

.mock-app-nav {
  height: 52px;
  background-color: white;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding-bottom: 2px;
}

.mock-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9px;
  color: var(--text-light);
  font-weight: 600;
}

.mock-nav-item.active {
  color: var(--primary-base);
  font-weight: 700;
}

.mock-nav-icon {
  width: 19px;
  height: 19px;
}

/* Register / Waitlist Section */
.register-section {
  padding: 90px 0;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-light);
}

.register-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--bg-main);
  border: 1px solid var(--border-light);
  padding: 52px 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.register-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--primary-base), var(--brand-green), var(--accent-base));
}

@media (max-width: 640px) {
  .register-card {
    padding: 36px 24px;
  }
}

.register-title {
  font-size: 30px;
  text-align: center;
  margin-bottom: 12px;
  color: var(--text-main);
  letter-spacing: -0.01em;
}

.register-subtitle {
  font-size: 15px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 36px;
  line-height: 1.5;
}

.form-group {
  margin-bottom: 24px;
  text-align: left;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  border: 1px solid var(--border-light);
  background-color: white;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition-smooth);
  color: var(--text-main);
  outline: none;
}

.form-input:focus-visible {
  border-color: var(--primary-base);
  box-shadow: 0 0 0 3px rgba(0, 139, 122, 0.15);
}

/* Local Suburb Dynamic Counter Feedback */
.suburb-feedback-msg {
  font-size: 12px;
  color: var(--primary-dark);
  font-weight: 600;
  margin-top: 8px;
  display: none;
  animation: slide-down 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background-color: var(--primary-light);
  padding: 8px 12px;
  border-radius: 8px;
  border-left: 3px solid var(--primary-base);
}

.form-footer-desc {
  font-size: 13px;
  color: var(--text-light);
  text-align: center;
  margin-top: 20px;
  line-height: 1.4;
}

/* Success Message Area */
.success-msg-container {
  display: none;
  text-align: center;
  padding: 32px 0;
}

.success-emoji {
  font-size: 54px;
  margin-bottom: 20px;
  animation: bounce 1s infinite alternate;
}

.success-title {
  color: var(--primary-dark);
  font-size: 26px;
  margin-bottom: 10px;
  font-family: 'Bricolage Grotesque', sans-serif;
}

.success-desc {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 360px;
  margin: 0 auto;
}

/* Footer styling */
.main-footer {
  border-top: 1px solid var(--border-light);
  padding: 48px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-light);
  background-color: var(--bg-main);
}

.footer-link {
  color: var(--text-muted);
  text-decoration: underline;
  margin: 0 10px;
  transition: var(--transition-smooth);
  font-weight: 500;
}

.footer-link:hover {
  color: var(--primary-base);
}

/* Animations */
@keyframes pulse-light {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 139, 122, 0.3);
  }
  70% {
    transform: scale(1.02);
    box-shadow: 0 0 0 10px rgba(0, 139, 122, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 139, 122, 0);
  }
}

@keyframes slide-down {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {
  from { transform: translateY(0); }
  to { transform: translateY(-10px); }
}

/* ── Hero Typed Cycling Text ────────────────────────────────────────────── */
.hero-typed-line {
  display: block;
  overflow: hidden;
  min-height: 1.2em;
}

.hero-title .hero-typed {
  display: inline-block;
  font-family: 'Changa One', 'Bricolage Grotesque', sans-serif;
  font-weight: 400;
  color: #FFA94D;
  letter-spacing: 0.01em;
  position: relative;
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: 0 2px 12px rgba(0,0,0,0.5);
}

.hero-typed--out {
  opacity: 0;
  transform: translateY(10px);
}

.hero-typed--in {
  animation: typed-in 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes typed-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Fun Facts Section ──────────────────────────────────────────────────── */
.facts-section {
  padding: 72px 0 88px;
  background: linear-gradient(160deg, var(--primary-light) 0%, #fff8f0 100%);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.facts-header {
  text-align: center;
  margin-bottom: 48px;
}

.facts-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary-base);
  margin-bottom: 12px;
}

.facts-title {
  font-size: clamp(24px, 3.5vw, 32px);
  color: var(--text-main);
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 600px;
  margin: 0 auto;
}

/* Each fact card slides in/out — all stacked in the same grid cell so the
   container auto-grows to fit the longest fact (no fixed height = no overflow) */
.fact-card {
  grid-area: 1 / 1;
  min-height: 200px;
  justify-content: center;
  background: var(--bg-surface);
  border: 2px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
}

/* Entry states */
.fact-card--next  { transform: translateX(60px) scale(0.92); }
.fact-card--prev  { transform: translateX(-60px) scale(0.92); }

.fact-card--visible {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
  transition: opacity 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Exit states */
.fact-card--exit-left {
  animation: exit-left 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}
.fact-card--exit-right {
  animation: exit-right 0.35s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes exit-left {
  to { opacity: 0; transform: translateX(-60px) scale(0.88); }
}
@keyframes exit-right {
  to { opacity: 0; transform: translateX(60px) scale(0.88); }
}

.fact-card-emoji {
  font-size: 64px;
  line-height: 1;
  animation: emoji-bounce 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.12));
}

@keyframes emoji-bounce {
  from { transform: scale(0.4) rotate(-10deg); opacity: 0; }
  to   { transform: scale(1) rotate(0deg); opacity: 1; }
}

.fact-card-text {
  font-size: 16px;
  color: var(--text-main);
  line-height: 1.65;
  font-weight: 500;
  max-width: 440px;
}

/* Dynamic Fact Box */
.fact-box {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--primary-base);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  transition: var(--transition-smooth);
}

.fact-box:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--primary-base);
}

.fact-bulb {
  font-size: 24px;
  flex-shrink: 0;
}

.fact-title {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
  font-size: 15px;
  white-space: nowrap;
}

.fact-text {
  font-size: 14.5px;
  color: var(--text-main);
  line-height: 1.5;
  flex-grow: 1;
}

.fact-refresh-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-light);
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-smooth);
  flex-shrink: 0;
  outline: none;
}

.fact-refresh-btn:focus-visible {
  background-color: var(--primary-light);
  color: var(--primary-dark);
}

.fact-refresh-btn:hover {
  color: var(--primary-base);
  background-color: var(--primary-light);
  transform: rotate(180deg);
}
