/* ============================================================
   FitnessCalc by WellerDeveler -- Premium Design System
   "If Calm and Peloton had a baby that was a website"
   ============================================================ */

/* ── FONTS ────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&family=Source+Sans+3:wght@300;400;500;600&display=swap');

/* ── CSS CUSTOM PROPERTIES ────────────────────────────────── */
:root {
  /* Brand Colors */
  --coral:        #FF6B6B;
  --coral-light:  #FFA07A;
  --peach:        #FFB4A2;
  --teal:         #0D9488;
  --teal-dark:    #0A7A70;
  --teal-light:   #14B8A6;
  --cream:        #FEFCE8;
  --cream-warm:   #FFF7ED;
  --cream-deep:   #FEF3C7;

  /* Surfaces -- Light Mode */
  --bg:           #FFFDF7;
  --bg-warm:      #FFF9F0;
  --surface-1:    #FFFFFF;
  --surface-2:    #FFF5EB;
  --surface-3:    #FFEDD5;
  --surface-glass: rgba(255, 253, 247, 0.8);

  /* Text */
  --text-primary:   #1C1917;
  --text-secondary: #57534E;
  --text-muted:     #A8A29E;
  --text-on-coral:  #FFFFFF;
  --text-on-teal:   #FFFFFF;

  /* Gradients */
  --gradient-coral:    linear-gradient(135deg, #FF6B6B 0%, #FFA07A 100%);
  --gradient-teal:     linear-gradient(135deg, #0D9488 0%, #14B8A6 100%);
  --gradient-sunset:   linear-gradient(135deg, #FF6B6B 0%, #FFA07A 50%, #FFD93D 100%);
  --gradient-warm-bg:  linear-gradient(180deg, #FFFDF7 0%, #FFF5EB 100%);
  --gradient-hero:     linear-gradient(135deg, #FFF5EB 0%, #FEFCE8 30%, #FEFCE8 70%, #FFE4E6 100%);
  --gradient-card:     linear-gradient(135deg, #FFFFFF 0%, #FFF9F0 100%);

  /* Shadows */
  --shadow-sm:    0 1px 2px rgba(28, 25, 23, 0.04);
  --shadow-md:    0 4px 12px rgba(28, 25, 23, 0.06);
  --shadow-lg:    0 8px 30px rgba(28, 25, 23, 0.08);
  --shadow-xl:    0 16px 50px rgba(28, 25, 23, 0.12);
  --shadow-coral: 0 8px 30px rgba(255, 107, 107, 0.2);
  --shadow-teal:  0 8px 30px rgba(13, 148, 136, 0.2);
  --shadow-glow:  0 0 40px rgba(255, 107, 107, 0.15);

  /* Typography */
  --font-heading: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body:    'Source Sans 3', system-ui, -apple-system, sans-serif;

  /* Fluid Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.925rem + 0.375vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.5vw,  1.25rem);
  --text-xl:   clamp(1.25rem,  1.1rem  + 0.6vw,  1.5rem);
  --text-2xl:  clamp(1.5rem,   1.25rem + 1.25vw, 2.25rem);
  --text-3xl:  clamp(1.875rem, 1.5rem  + 1.875vw, 3rem);
  --text-4xl:  clamp(2.25rem,  1.75rem + 2.5vw,  3.75rem);
  --text-5xl:  clamp(3rem,     2rem    + 4vw,    5rem);

  /* Spacing */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;

  /* Layout */
  --max-width: 1200px;
  --radius-sm:  0.5rem;
  --radius-md:  0.75rem;
  --radius-lg:  1rem;
  --radius-xl:  1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;

  /* Scroll progress */
  --scroll-progress: 0;
}

/* ── DARK MODE ────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:           #1A1614;
  --bg-warm:      #211D1A;
  --surface-1:    #292420;
  --surface-2:    #332E29;
  --surface-3:    #3D3732;
  --surface-glass: rgba(26, 22, 20, 0.85);

  --text-primary:   #F5F0EB;
  --text-secondary: #B8AFA8;
  --text-muted:     #78716C;

  --shadow-sm:    0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md:    0 4px 12px rgba(0, 0, 0, 0.3);
  --shadow-lg:    0 8px 30px rgba(0, 0, 0, 0.35);
  --shadow-xl:    0 16px 50px rgba(0, 0, 0, 0.4);
  --shadow-coral: 0 8px 30px rgba(255, 107, 107, 0.15);
  --shadow-teal:  0 8px 30px rgba(13, 148, 136, 0.15);
  --shadow-glow:  0 0 40px rgba(255, 107, 107, 0.1);

  --gradient-hero:    linear-gradient(135deg, #1A1614 0%, #211D1A 50%, #1A1614 100%);
  --gradient-warm-bg: linear-gradient(180deg, #1A1614 0%, #211D1A 100%);
  --gradient-card:    linear-gradient(135deg, #292420 0%, #211D1A 100%);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); font-weight: 800; }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

a { color: var(--teal); text-decoration: none; transition: color var(--duration-fast) ease; }
a:hover { color: var(--teal-dark); }

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  color: inherit;
}

button { cursor: pointer; border: none; background: none; }

::selection {
  background: rgba(255, 107, 107, 0.2);
  color: var(--text-primary);
}

/* ── SKIP LINK ────────────────────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  background: var(--teal);
  color: white;
  border-radius: var(--radius-md);
  font-weight: 600;
  z-index: 10000;
  transition: top var(--duration-fast) ease;
}
.skip-link:focus {
  top: 1rem;
  color: white;
}

/* ── SCROLL PROGRESS ──────────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--gradient-coral);
  z-index: 10001;
  width: 0%;
  transition: none;
  will-change: width;
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
  transition: background var(--duration-normal) ease,
              box-shadow var(--duration-normal) ease;
}

.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

[data-theme="dark"] .site-nav {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  display: flex;
  align-items: center;
  height: 4rem;
  gap: var(--space-lg);
}

.nav-brand {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  flex-shrink: 0;
}

.nav-brand:hover { color: var(--text-primary); }

.nav-brand .brand-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.nav-brand .brand-accent {
  background: var(--gradient-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  list-style: none;
  margin-left: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--coral);
  background: rgba(255, 107, 107, 0.08);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: var(--space-md);
}

.theme-toggle {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration-fast) ease;
  color: var(--text-secondary);
}

.theme-toggle:hover {
  background: var(--surface-2);
}

.theme-toggle svg { width: 18px; height: 18px; }

.units-toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  padding: 2px;
  gap: 2px;
}

.units-toggle button {
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--duration-fast) ease;
}

.units-toggle button.active {
  background: var(--surface-1);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  width: 36px;
  height: 36px;
  justify-content: center;
  align-items: center;
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all var(--duration-fast) ease;
}

.nav-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: 4rem;
  left: 0;
  right: 0;
  background: var(--surface-glass);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: var(--space-lg);
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
  z-index: 999;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  padding: 0.75rem 0;
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--coral); }

/* ── HERO SECTION ─────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 7rem var(--space-lg) var(--space-4xl);
  background: var(--gradient-hero);
  overflow: hidden;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 107, 107, 0.08) 0%, transparent 70%);
  pointer-events: none;
  animation: float-slow 20s ease-in-out infinite;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 70%);
  pointer-events: none;
  animation: float-slow 25s ease-in-out infinite reverse;
}

@keyframes float-slow {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(30px, -20px); }
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.4rem 1rem;
  background: var(--surface-1);
  border: 1px solid rgba(255, 107, 107, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--coral);
  margin-bottom: var(--space-xl);
  box-shadow: var(--shadow-sm);
}

.hero-badge svg {
  width: 16px;
  height: 16px;
}

.hero h1 {
  font-size: var(--text-5xl);
  font-weight: 800;
  line-height: 1.05;
  margin-bottom: var(--space-lg);
  max-width: 700px;
}

.hero h1 .gradient-text {
  background: var(--gradient-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 560px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: var(--text-base);
  transition: all var(--duration-normal) var(--ease-out);
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 107, 107, 0.3);
  color: white;
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--surface-1);
  color: var(--text-primary);
  border: 1.5px solid rgba(28, 25, 23, 0.1);
  box-shadow: var(--shadow-sm);
}

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

.btn-teal {
  background: var(--gradient-teal);
  color: white;
  box-shadow: var(--shadow-teal);
}

.btn-teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(13, 148, 136, 0.3);
  color: white;
}

.btn svg { width: 18px; height: 18px; }

/* Hero Stats */
.hero-stats {
  display: flex;
  gap: var(--space-3xl);
  flex-wrap: wrap;
}

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

.hero-stat-number {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 800;
  background: var(--gradient-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.hero-stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.2rem;
}

/* ── SECTION LAYOUT ───────────────────────────────────────── */
.section {
  padding: var(--space-4xl) var(--space-lg);
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.3rem 0.8rem;
  background: rgba(255, 107, 107, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--coral);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
}

.section-header h2 {
  margin-bottom: var(--space-md);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Full-width tinted sections */
.section-tinted {
  background: var(--gradient-warm-bg);
  padding: var(--space-4xl) var(--space-lg);
}

.section-tinted .section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* ── CALCULATOR CARDS ─────────────────────────────────────── */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.calc-card {
  background: var(--gradient-card);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  display: flex;
  align-items: flex-start;
  gap: var(--space-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
  position: relative;
  overflow: hidden;
}

.calc-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-coral);
  opacity: 0;
  transition: opacity var(--duration-normal) ease;
}

.calc-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(255, 107, 107, 0.15);
  color: var(--text-primary);
}

.calc-card:hover::before {
  opacity: 1;
}

.calc-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-normal) var(--ease-spring);
}

.calc-card:hover .calc-card-icon {
  transform: scale(1.08);
}

.calc-card-icon svg {
  width: 28px;
  height: 28px;
}

.calc-card-body h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.calc-card-body p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
}

.calc-card-arrow {
  margin-left: auto;
  align-self: center;
  color: var(--text-muted);
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--duration-normal) ease;
}

.calc-card:hover .calc-card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: var(--coral);
}

.calc-card-arrow svg { width: 20px; height: 20px; }

/* ── INLINE CALCULATOR (HOMEPAGE) ─────────────────────────── */
.calc-inline {
  background: var(--surface-1);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  max-width: 800px;
  margin: 0 auto;
}

.calc-inline-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.calc-inline-header .icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.calc-inline-header .icon-wrap svg { width: 24px; height: 24px; }

.calc-inline-header h3 {
  font-size: var(--text-xl);
}

/* Form Controls */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group select {
  padding: 0.7rem 1rem;
  border: 1.5px solid rgba(28, 25, 23, 0.1);
  border-radius: var(--radius-md);
  background: var(--bg);
  font-size: var(--text-base);
  transition: all var(--duration-fast) ease;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--coral);
  box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.12);
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2378716C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

/* Gender Toggle */
.gender-toggle {
  display: flex;
  background: var(--surface-2);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 3px;
}

.gender-toggle button {
  flex: 1;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--duration-fast) ease;
}

.gender-toggle button.active {
  background: var(--surface-1);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

/* Custom Range Slider */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  outline: none;
  border: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-coral);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  border: 3px solid white;
  transition: transform var(--duration-fast) ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-coral);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.3);
  border: 3px solid white;
}

/* Range with value display */
.range-wrapper {
  position: relative;
}

.range-value {
  text-align: right;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--coral);
}

/* ── RESULT DISPLAY ───────────────────────────────────────── */
.result-panel {
  background: var(--gradient-warm-bg);
  border: 1px solid rgba(255, 107, 107, 0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  text-align: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--duration-normal) var(--ease-out);
}

.result-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.result-big-number {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 800;
  background: var(--gradient-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
}

.result-label {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.result-detail {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-top: var(--space-md);
  line-height: 1.6;
}

/* Progress Ring */
.progress-ring-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: var(--space-lg) auto;
}

.progress-ring-wrap svg { width: 140px; height: 140px; }

.progress-ring-bg {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 8;
}

.progress-ring-fill {
  fill: none;
  stroke: url(#coralGradient);
  stroke-width: 8;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 1s var(--ease-out);
}

.progress-ring-text {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Result Grid */
.result-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.result-item {
  padding: var(--space-md);
  background: var(--surface-1);
  border-radius: var(--radius-md);
  text-align: center;
}

.result-item-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-xl);
  color: var(--teal);
}

.result-item-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 0.2rem;
}

/* Contextual Tip */
.result-tip {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: rgba(13, 148, 136, 0.06);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--teal);
  margin-top: var(--space-xl);
  text-align: left;
}

.result-tip svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: var(--teal);
  margin-top: 2px;
}

.result-tip p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── DID YOU KNOW CARDS ───────────────────────────────────── */
.tip-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.tip-card {
  background: var(--surface-1);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  transition: transform var(--duration-normal) var(--ease-out);
}

.tip-card:hover {
  transform: translateY(-2px);
}

.tip-card-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
}

.tip-card-icon svg { width: 20px; height: 20px; }

.tip-card h4 {
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.tip-card p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ── NEWSLETTER ───────────────────────────────────────────── */
.newsletter-section {
  background: var(--gradient-coral);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  color: white;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.newsletter-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -30%;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.newsletter-section h2 {
  color: white;
  font-size: var(--text-2xl);
  margin-bottom: var(--space-sm);
}

.newsletter-section > p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-xl);
}

.newsletter-form {
  display: flex;
  gap: var(--space-sm);
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1.25rem;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-size: var(--text-base);
  outline: none;
  backdrop-filter: blur(4px);
}

.newsletter-form input::placeholder { color: rgba(255, 255, 255, 0.6); }

.newsletter-form input:focus {
  border-color: white;
  background: rgba(255, 255, 255, 0.2);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-full);
  background: white;
  color: var(--coral);
  font-weight: 700;
  font-family: var(--font-heading);
  transition: all var(--duration-fast) ease;
  white-space: nowrap;
}

.newsletter-form button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.newsletter-fine-print {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.6);
  margin-top: var(--space-md);
}

/* ── CROSS SELL ───────────────────────────────────────────── */
.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-md);
}

.cross-sell-card {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--surface-1);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.cross-sell-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.cross-sell-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cross-sell-icon svg { width: 20px; height: 20px; }

.cross-sell-name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
}

.cross-sell-desc {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── BLOG CARDS ───────────────────────────────────────────── */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-lg);
}

.blog-card {
  background: var(--surface-1);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--radius-xl);
  overflow: hidden;
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: var(--text-primary);
}

.blog-card-image {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.blog-card-image svg { width: 64px; height: 64px; opacity: 0.7; }

.blog-card-content {
  padding: var(--space-xl);
}

.blog-card-tag {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(255, 107, 107, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--coral);
  margin-bottom: var(--space-sm);
}

.blog-card-content h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.blog-card-content p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
}

.blog-card-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: var(--space-md);
}

/* ── BLOG ARTICLE ─────────────────────────────────────────── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 6rem var(--space-lg) var(--space-4xl);
}

.article-header {
  margin-bottom: var(--space-2xl);
}

.article-header .breadcrumb {
  margin-bottom: var(--space-lg);
}

.article-header h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-md);
}

.article-meta {
  display: flex;
  gap: var(--space-md);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.article-content {
  font-size: var(--text-lg);
  line-height: 1.8;
}

.article-content h2 {
  font-size: var(--text-2xl);
  margin: var(--space-2xl) 0 var(--space-md);
}

.article-content h3 {
  font-size: var(--text-xl);
  margin: var(--space-xl) 0 var(--space-md);
}

.article-content p {
  margin-bottom: var(--space-lg);
  color: var(--text-secondary);
}

.article-content ul, .article-content ol {
  margin-bottom: var(--space-lg);
  padding-left: var(--space-xl);
}

.article-content li {
  margin-bottom: var(--space-sm);
  color: var(--text-secondary);
}

.article-content blockquote {
  border-left: 3px solid var(--coral);
  padding: var(--space-md) var(--space-lg);
  margin: var(--space-xl) 0;
  background: rgba(255, 107, 107, 0.04);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  color: var(--text-secondary);
}

.article-cta {
  background: var(--surface-2);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  margin: var(--space-2xl) 0;
  text-align: center;
}

.article-cta h3 { margin-bottom: var(--space-sm); }

.article-cta p {
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
}

/* ── GAME PAGE ────────────────────────────────────────────── */
.game-container {
  max-width: 640px;
  margin: 6rem auto var(--space-4xl);
  padding: 0 var(--space-lg);
}

.game-card {
  background: var(--surface-1);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
}

.game-progress {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.game-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--surface-3);
  border-radius: 3px;
  overflow: hidden;
}

.game-progress-fill {
  height: 100%;
  background: var(--gradient-coral);
  border-radius: 3px;
  transition: width var(--duration-normal) var(--ease-out);
}

.game-progress-text {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.game-timer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-lg);
}

.game-timer-circle {
  width: 48px;
  height: 48px;
  position: relative;
}

.game-timer-circle svg {
  width: 48px;
  height: 48px;
  transform: rotate(-90deg);
}

.game-timer-bg {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 3;
}

.game-timer-fill {
  fill: none;
  stroke: var(--coral);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear;
}

.game-timer-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-base);
  color: var(--text-primary);
}

.game-question {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--space-xl);
  line-height: 1.4;
}

.game-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.game-option {
  padding: 1rem var(--space-lg);
  border: 2px solid rgba(28, 25, 23, 0.08);
  border-radius: var(--radius-lg);
  background: var(--bg);
  font-size: var(--text-base);
  font-weight: 500;
  text-align: left;
  transition: all var(--duration-fast) ease;
  cursor: pointer;
}

.game-option:hover:not(.disabled) {
  border-color: var(--coral);
  background: rgba(255, 107, 107, 0.04);
}

.game-option.correct {
  border-color: #10B981;
  background: rgba(16, 185, 129, 0.08);
  color: #065F46;
}

.game-option.wrong {
  border-color: #EF4444;
  background: rgba(239, 68, 68, 0.08);
  color: #991B1B;
}

.game-option.disabled { pointer-events: none; opacity: 0.7; }

.game-score-display {
  text-align: center;
}

.game-final-score {
  font-family: var(--font-heading);
  font-size: var(--text-5xl);
  font-weight: 800;
  background: var(--gradient-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.game-score-label {
  font-size: var(--text-xl);
  color: var(--text-secondary);
  margin-bottom: var(--space-xl);
}

.game-actions {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.game-leaderboard {
  margin-top: var(--space-2xl);
}

.game-leaderboard h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-md);
}

.leaderboard-list {
  list-style: none;
}

.leaderboard-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid rgba(28, 25, 23, 0.06);
}

.leaderboard-rank {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--coral);
  width: 2rem;
  text-align: center;
}

.leaderboard-score {
  margin-left: auto;
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal);
}

.leaderboard-date {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* ── CHAT / COACH ─────────────────────────────────────────── */
.chat-button {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-teal);
  z-index: 900;
  transition: all var(--duration-normal) var(--ease-spring);
  border: none;
  cursor: pointer;
}

.chat-button:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 35px rgba(13, 148, 136, 0.35);
}

.chat-button svg { width: 26px; height: 26px; }

.chat-button .chat-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  width: 14px;
  height: 14px;
  background: var(--coral);
  border-radius: 50%;
  border: 2px solid var(--bg);
}

.chat-panel {
  position: fixed;
  bottom: 5.5rem;
  right: 1.5rem;
  width: 380px;
  max-height: 520px;
  background: var(--surface-1);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(28, 25, 23, 0.08);
  display: flex;
  flex-direction: column;
  z-index: 901;
  opacity: 0;
  transform: translateY(20px) scale(0.95);
  pointer-events: none;
  transition: all var(--duration-normal) var(--ease-out);
  overflow: hidden;
}

.chat-panel.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-lg);
  background: var(--gradient-teal);
  color: white;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-header-avatar svg { width: 20px; height: 20px; }

.chat-header-info h4 {
  color: white;
  font-size: var(--text-base);
  font-weight: 700;
}

.chat-header-info span {
  font-size: var(--text-xs);
  opacity: 0.8;
}

.chat-close {
  margin-left: auto;
  color: white;
  opacity: 0.8;
  transition: opacity var(--duration-fast) ease;
}

.chat-close:hover { opacity: 1; }
.chat-close svg { width: 18px; height: 18px; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  min-height: 300px;
  max-height: 340px;
}

.chat-message {
  max-width: 85%;
  padding: var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  line-height: 1.6;
  animation: chatFadeIn var(--duration-normal) var(--ease-out);
}

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

.chat-message.bot {
  background: var(--surface-2);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: var(--gradient-teal);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-typing {
  display: flex;
  gap: 4px;
  padding: var(--space-md) var(--space-lg);
  align-self: flex-start;
}

.chat-typing span {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingDot 1.4s infinite;
}

.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

.chat-input-area {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid rgba(28, 25, 23, 0.06);
}

.chat-input-area input {
  flex: 1;
  padding: 0.6rem 1rem;
  border: 1.5px solid rgba(28, 25, 23, 0.1);
  border-radius: var(--radius-full);
  background: var(--bg);
  font-size: var(--text-sm);
  outline: none;
}

.chat-input-area input:focus {
  border-color: var(--teal);
}

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient-teal);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--duration-fast) ease;
}

.chat-send:hover { transform: scale(1.08); }
.chat-send svg { width: 16px; height: 16px; }

.chat-limit {
  text-align: center;
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding: 0.4rem;
}

/* ── PROFILE PANEL ────────────────────────────────────────── */
.profile-panel {
  background: var(--surface-1);
  border: 1px solid rgba(28, 25, 23, 0.06);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
}

.profile-saved-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.3rem 0.8rem;
  background: rgba(13, 148, 136, 0.08);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--teal);
}

/* ── AD SLOTS ─────────────────────────────────────────────── */
.ad-slot {
  max-width: var(--max-width);
  margin: var(--space-xl) auto;
  padding: 0 var(--space-lg);
}

.ad-slot-inner {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── AFFILIATE SECTION ────────────────────────────────────── */
.affiliate-section {
  padding: var(--space-2xl);
  background: var(--surface-2);
  border-radius: var(--radius-xl);
}

.affiliate-disclosure {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
}

.affiliate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.affiliate-card {
  display: flex;
  flex-direction: column;
  padding: var(--space-lg);
  background: var(--surface-1);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: var(--text-primary);
  transition: all var(--duration-normal) var(--ease-out);
  border: 1px solid rgba(28, 25, 23, 0.06);
}

.affiliate-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
}

.affiliate-card-name {
  font-family: var(--font-heading);
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.affiliate-card-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  flex: 1;
}

.affiliate-card-cta {
  display: inline-flex;
  padding: 0.4rem 1rem;
  background: var(--gradient-teal);
  color: white;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  align-self: flex-start;
}

/* ── BREADCRUMB ───────────────────────────────────────────── */
.breadcrumb {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--coral); }

.breadcrumb .sep {
  margin: 0 0.3rem;
  opacity: 0.5;
}

/* ── FOOTER ───────────────────────────────────────────────── */
.site-footer {
  background: var(--surface-1);
  border-top: 1px solid rgba(28, 25, 23, 0.06);
  padding: var(--space-3xl) var(--space-lg) var(--space-xl);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: var(--space-2xl);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 800;
  margin-bottom: var(--space-md);
}

.footer-brand .brand-accent {
  background: var(--gradient-coral);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
}

.footer-col ul { list-style: none; }

.footer-col li { margin-bottom: var(--space-sm); }

.footer-col a {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  transition: color var(--duration-fast) ease;
}

.footer-col a:hover { color: var(--coral); }

.footer-bottom {
  max-width: var(--max-width);
  margin: var(--space-2xl) auto 0;
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(28, 25, 23, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-bottom span {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer-bottom a {
  color: var(--text-muted);
  text-decoration: underline;
}

.footer-legal {
  display: flex;
  gap: var(--space-lg);
}

.footer-legal a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-decoration: none;
}

.footer-legal a:hover { color: var(--coral); }

/* ── ANIMATIONS ───────────────────────────────────────────── */
/* Reveal on Scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveals */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.1s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.2s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.3s; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* Number count-up */
.count-up {
  display: inline-block;
  font-variant-numeric: tabular-nums;
}

/* Pulse for live indicator */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.pulse { animation: pulse 2s ease-in-out infinite; }

/* Hero word reveal */
.hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(30px);
  animation: wordReveal 0.6s var(--ease-out) forwards;
}

@keyframes wordReveal {
  to { opacity: 1; transform: translateY(0); }
}

/* Shimmer */
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(255, 107, 107, 0.05) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 3s infinite;
}

/* ── SCROLL-DRIVEN ANIMATIONS (Progressive Enhancement) ──── */
@supports (animation-timeline: scroll()) {
  .scroll-reveal {
    animation: scrollFadeIn linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 100%;
  }

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

/* ── SEO CONTENT ──────────────────────────────────────────── */
.seo-content {
  max-width: 800px;
  margin: 0 auto;
  padding: var(--space-2xl) 0;
}

.seo-content h2 {
  font-size: var(--text-2xl);
  margin-bottom: var(--space-md);
}

.seo-content h3 {
  font-size: var(--text-xl);
  margin: var(--space-xl) 0 var(--space-md);
}

.seo-content p {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  line-height: 1.7;
}

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }

  .hero {
    padding: 6rem var(--space-lg) var(--space-2xl);
    min-height: auto;
  }

  .hero h1 { font-size: var(--text-3xl); }

  .hero-stats { gap: var(--space-xl); }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn { justify-content: center; }

  .section { padding: var(--space-2xl) var(--space-lg); }
  .section-tinted { padding: var(--space-2xl) var(--space-lg); }

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

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

  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .chat-panel {
    right: var(--space-md);
    left: var(--space-md);
    bottom: 5rem;
    width: auto;
  }

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

  .tip-cards { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-stats { flex-direction: column; gap: var(--space-md); }

  .cross-sell-grid { grid-template-columns: 1fr; }
}

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

.text-center { text-align: center; }
.text-coral { color: var(--coral); }
.text-teal { color: var(--teal); }
.text-muted { color: var(--text-muted); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }
.mb-2xl { margin-bottom: var(--space-2xl); }

/* ── LEGAL PAGE STYLES ────────────────────────────────────── */
.legal-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 6rem var(--space-lg) var(--space-4xl);
}

.legal-page h1 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-sm);
}

.legal-page .last-updated {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-2xl);
}

.legal-page h2 {
  font-size: var(--text-xl);
  margin: var(--space-2xl) 0 var(--space-md);
}

.legal-page p, .legal-page li {
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-md);
}

.legal-page ul {
  padding-left: var(--space-xl);
  margin-bottom: var(--space-md);
}

.legal-page a { color: var(--teal); text-decoration: underline; }
