/* FitnessCalc Premium Redesign — fitness.wellerdeveler.com
   Brand: Energetic, Scientific, Motivating
   Primary: Emerald #16a34a | Accent: Lime #84cc16
   Font: Outfit (headlines) + Inter (body)
   Default: Light mode with fresh green tint
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Brand Colors */
  --primary: #16a34a;
  --primary-dark: #15803d;
  --primary-light: #22c55e;
  --primary-50: #f0fdf4;
  --primary-100: #dcfce7;
  --primary-900: #14532d;
  --secondary: #059669;
  --accent: #84cc16;
  --accent-dark: #65a30d;
  --accent-light: #a3e635;

  /* Surfaces — Light */
  --bg: #ffffff;
  --bg-alt: #f0fdf4;
  --bg-card: #ffffff;
  --bg-hero: linear-gradient(135deg, #15803d 0%, #16a34a 40%, #059669 100%);
  --border: #d1fae5;
  --border-mid: #bbf7d0;
  --border-light: #f0fdf4;

  /* Text */
  --text: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  /* Semantic */
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;

  /* Premium Shadows — green-tinted */
  --shadow-color: 145deg 40% 40%;
  --shadow-sm:
    0 1px 2px hsl(var(--shadow-color) / 0.05),
    0 1px 3px hsl(var(--shadow-color) / 0.08);
  --shadow:
    0 1px 2px hsl(var(--shadow-color) / 0.06),
    0 2px 4px hsl(var(--shadow-color) / 0.06),
    0 4px 8px hsl(var(--shadow-color) / 0.06),
    0 8px 16px hsl(var(--shadow-color) / 0.04);
  --shadow-lg:
    0 1px 2px hsl(var(--shadow-color) / 0.05),
    0 2px 4px hsl(var(--shadow-color) / 0.05),
    0 4px 8px hsl(var(--shadow-color) / 0.05),
    0 8px 16px hsl(var(--shadow-color) / 0.05),
    0 16px 32px hsl(var(--shadow-color) / 0.05);
  --shadow-dreamy:
    0 1px 2px hsl(var(--shadow-color) / 0.03),
    0 2px 4px hsl(var(--shadow-color) / 0.03),
    0 4px 8px hsl(var(--shadow-color) / 0.03),
    0 8px 16px hsl(var(--shadow-color) / 0.03),
    0 16px 32px hsl(var(--shadow-color) / 0.03),
    0 32px 64px hsl(var(--shadow-color) / 0.03);

  /* Radii */
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Typography */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing (8px grid) */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 32px;
  --space-xl: 48px;
  --space-2xl: 64px;
  --space-section: 80px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-decel: cubic-bezier(0, 0, 0.2, 1);
  --transition-fast: 150ms var(--ease-smooth);
  --transition-base: 250ms var(--ease-smooth);
  --transition-slow: 400ms var(--ease-smooth);
}

/* ── DARK MODE ───────────────────────────────────────────── */
[data-theme="dark"] {
  --bg: #071210;
  --bg-alt: #0c1f18;
  --bg-card: #0f2920;
  --bg-hero: linear-gradient(135deg, #052e16 0%, #14532d 50%, #0c1f18 100%);
  --border: rgba(34,197,94,0.12);
  --border-mid: rgba(34,197,94,0.18);
  --border-light: rgba(34,197,94,0.05);
  --text: #ecfdf5;
  --text-muted: #86efac;
  --text-light: #4ade80;
  --shadow-color: 145deg 60% 8%;
  --shadow-sm:
    0 1px 2px hsl(var(--shadow-color) / 0.25),
    0 1px 3px hsl(var(--shadow-color) / 0.35);
  --shadow:
    0 1px 2px hsl(var(--shadow-color) / 0.25),
    0 2px 4px hsl(var(--shadow-color) / 0.20),
    0 4px 8px hsl(var(--shadow-color) / 0.15),
    0 8px 16px hsl(var(--shadow-color) / 0.10);
  --shadow-lg:
    0 2px 4px hsl(var(--shadow-color) / 0.20),
    0 4px 8px hsl(var(--shadow-color) / 0.20),
    0 8px 16px hsl(var(--shadow-color) / 0.15),
    0 16px 32px hsl(var(--shadow-color) / 0.10);
}

[data-theme="dark"] .result-item { background: #071210; }
[data-theme="dark"] .affiliate-section-wrap { background: #0c1f18; border-color: rgba(34,197,94,0.1); }
[data-theme="dark"] .aff-card { background: #071210; border-color: rgba(34,197,94,0.12); }
[data-theme="dark"] .info-box.warning { background: rgba(245,158,11,0.08); }
[data-theme="dark"] .toggle-btn.active { background: #14532d; color: var(--primary-light); }
[data-theme="dark"] select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2386efac' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
}

/* ── SCROLL PROGRESS BAR ─────────────────────────────────── */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
  z-index: 9999;
  transition: width 50ms linear;
}

/* ── DARK MODE TOGGLE ─────────────────────────────────────── */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-mid);
  background: var(--bg-alt);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1;
}

.theme-toggle:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: rotate(15deg);
}

/* ── RESULT ANIMATIONS ────────────────────────────────────── */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.result-panel:not(.hidden) { animation: fadeSlideUp 0.4s var(--ease-decel) both; }
.result-item { animation: fadeSlideUp 0.4s var(--ease-decel) both; }
.result-item:nth-child(1) { animation-delay: 0.05s; }
.result-item:nth-child(2) { animation-delay: 0.10s; }
.result-item:nth-child(3) { animation-delay: 0.15s; }
.result-item:nth-child(4) { animation-delay: 0.20s; }

/* ── SCROLL REVEAL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-decel), transform 0.6s var(--ease-decel);
}

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

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease-decel), transform 0.5s var(--ease-decel);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.10s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.15s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.10s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.15s; opacity: 1; transform: none; }
.reveal-stagger.visible > *:nth-child(n+6) { transition-delay: 0.20s; opacity: 1; transform: none; }

/* ── COPY / SHARE BUTTONS ────────────────────────────────── */
.result-actions { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.btn-copy, .btn-share {
  display: inline-flex; align-items: center; gap: 0.375rem;
  padding: 0.5rem 1rem; font-size: 0.8125rem; font-weight: 600;
  font-family: var(--font); border-radius: var(--radius-sm);
  border: 1.5px solid var(--border-mid); background: var(--bg-alt);
  color: var(--text-muted); cursor: pointer; transition: all var(--transition-fast); white-space: nowrap;
}
.btn-copy:hover, .btn-share:hover { background: var(--primary); color: white; border-color: var(--primary); }
.btn-copy.copied { background: var(--success); color: white; border-color: var(--success); }
.btn-copy svg, .btn-share svg { width: 14px; height: 14px; flex-shrink: 0; }

/* ── INPUT VALIDATION ─────────────────────────────────────── */
input.input-error { border-color: var(--danger) !important; box-shadow: 0 0 0 3px rgba(239,68,68,0.12) !important; }
.field-error { font-size: 0.78rem; color: var(--danger); margin-top: 0.25rem; display: none; }
.field-error.visible { display: block; }

/* ── BASE STYLES ──────────────────────────────────────────── */
html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--text);
}

/* ── NAVIGATION ───────────────────────────────────────────── */
.site-nav {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition-base);
}

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

[data-theme="dark"] .site-nav {
  background: rgba(7,18,16,0.90);
  border-bottom-color: rgba(34,197,94,0.08);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.02em;
  transition: opacity var(--transition-fast);
}

.nav-brand span { color: var(--text); }
.nav-brand:hover { opacity: 0.8; }

.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  text-decoration: none; color: var(--text-muted); font-size: 0.875rem;
  font-weight: 500; padding: 0.5rem 0.875rem; border-radius: var(--radius-sm);
  transition: all var(--transition-fast); position: relative;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--text); }
.nav-links a.active { color: var(--primary); font-weight: 600; }
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--primary);
  border-radius: 1px;
}

.nav-right { display: flex; align-items: center; gap: 0.5rem; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 8px; background: none; border: none; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.2s; }

/* ── NAV "MORE" DROPDOWN ─────────────────────────────────── */
.nav-more-wrap { position: relative; }
.nav-more-toggle { cursor: pointer; }
.nav-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  list-style: none;
  padding: 0.5rem 0;
  z-index: 200;
}
.nav-more-wrap.open .nav-dropdown { display: block; }
.nav-dropdown li { padding: 0; }
.nav-dropdown a {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: all var(--transition-fast);
  border-radius: 0;
}
.nav-dropdown a:hover {
  background: var(--bg-alt);
  color: var(--primary);
}

/* ── THEME TOGGLE SVG ────────────────────────────────────── */
.theme-toggle svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── HERO ─────────────────────────────────────────────────── */
.page-hero {
  background: var(--bg-hero);
  color: white;
  padding: 4.5rem var(--space-md) 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Energetic diagonal lines overlay */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 40px,
    rgba(255,255,255,0.03) 40px,
    rgba(255,255,255,0.03) 42px
  );
  pointer-events: none;
}

.page-hero .overline {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1rem;
  padding: 0.375rem 1rem;
  background: rgba(255,255,255,0.1);
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  margin-bottom: 0.875rem;
  letter-spacing: -0.03em;
  line-height: 1.08;
  color: white;
}

.page-hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.88;
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.6;
}

.page-hero .hero-cta {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-cta .btn-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-base);
  border: none;
}

.hero-cta .btn-hero--primary {
  background: var(--accent);
  color: #0f172a;
  box-shadow: 0 4px 14px rgba(132,204,22,0.35);
}

.hero-cta .btn-hero--primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(132,204,22,0.45);
}

.hero-cta .btn-hero--ghost {
  background: rgba(255,255,255,0.12);
  color: white;
  border: 1.5px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}

.hero-cta .btn-hero--ghost:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
}

/* Hero stat counters */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat { text-align: center; }

.hero-stat .stat-number {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  display: block;
}

.hero-stat .stat-label {
  font-size: 0.8rem;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ── AD PLACEHOLDER ───────────────────────────────────────── */
.ad-banner {
  background: var(--bg-alt); border: 1px dashed var(--border-mid);
  text-align: center; padding: 1.5rem; border-radius: var(--radius-sm);
  color: var(--text-light); font-size: 0.8rem; min-height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.ad-wrap { max-width: 1200px; margin: 1.5rem auto; padding: 0 var(--space-md); }

/* ── MAIN CONTENT ─────────────────────────────────────────── */
.main-content { max-width: 1200px; margin: 0 auto; padding: 2.5rem var(--space-md) 4rem; }

/* ── CALCULATOR LAYOUT ────────────────────────────────────── */
.calc-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: start; }
.calc-layout.single { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
.calc-layout.wide { grid-template-columns: 1fr; max-width: 900px; margin: 0 auto; }

/* ── CARDS ─────────────────────────────────────────────────── */
.card { background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }
.card-header { background: var(--bg-alt); border-bottom: 1px solid var(--border-mid); padding: 1.25rem 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.card-header h2 { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.card-icon { width: 36px; height: 36px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 1.125rem; background: var(--primary); color: white; flex-shrink: 0; }
.card-body { padding: 1.5rem; }

/* ── FORM ──────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
.form-group label { display: block; font-size: 0.875rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; }
.form-hint { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.input-wrap { position: relative; }
.input-prefix, .input-suffix { position: absolute; top: 50%; transform: translateY(-50%); font-size: 0.9375rem; color: var(--text-muted); font-weight: 500; pointer-events: none; }
.input-prefix { left: 12px; }
.input-suffix { right: 12px; }
.has-prefix input { padding-left: 28px; }
.has-suffix input { padding-right: 36px; }

input[type="number"], input[type="text"], input[type="date"], select, textarea {
  width: 100%; padding: 0.6875rem 0.875rem; border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm); font-size: 0.9375rem; font-family: var(--font);
  color: var(--text); background: var(--bg); transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  -webkit-appearance: none; appearance: none;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(22,163,74,0.12);
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2364748b' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; cursor: pointer;
}

/* RANGE SLIDER */
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: var(--border-mid); border-radius: 3px; border: none; padding: 0; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); border: 2.5px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.2); cursor: pointer;
  transition: box-shadow var(--transition-fast);
}
input[type="range"]::-webkit-slider-thumb:hover { box-shadow: 0 0 0 6px rgba(22,163,74,0.15); }
input[type="range"]:focus { box-shadow: none; border: none; }
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary); border: 2.5px solid white; cursor: pointer;
}

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1.5rem; font-size: 0.9375rem; font-weight: 600; font-family: var(--font); border-radius: var(--radius-sm); cursor: pointer; transition: all var(--transition-fast); text-decoration: none; border: none; min-height: 44px; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 2px 6px rgba(22,163,74,0.25); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(22,163,74,0.35); }
.btn-secondary { background: var(--bg-alt); color: var(--text); border: 1.5px solid var(--border-mid); }
.btn-secondary:hover { background: var(--border-mid); }
.btn-full { width: 100%; justify-content: center; }
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

/* ── TOGGLE ────────────────────────────────────────────────── */
.toggle-group { display: flex; background: var(--bg-alt); border: 1.5px solid var(--border-mid); border-radius: var(--radius-sm); padding: 3px; gap: 3px; margin-bottom: 1.25rem; }
.toggle-btn { flex: 1; padding: 0.5rem; font-size: 0.8125rem; font-weight: 600; background: none; border: none; border-radius: 6px; cursor: pointer; color: var(--text-muted); transition: all var(--transition-fast); font-family: var(--font); }
.toggle-btn.active { background: var(--primary); color: white; box-shadow: var(--shadow-sm); }

/* ── RESULTS ───────────────────────────────────────────────── */
.result-panel { background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.result-headline { background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%); color: white; padding: 1.5rem; text-align: center; }
.result-headline .label { font-size: 0.75rem; font-weight: 700; opacity: 0.85; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 0.25rem; }
.result-headline .amount { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.result-headline .sub { font-size: 0.9375rem; opacity: 0.85; margin-top: 0.35rem; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border-mid); padding: 0; }
.result-item { background: var(--bg-card); padding: 1rem 1.25rem; }
.r-label { font-size: 0.75rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem; }
.r-value { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; color: var(--text); }
.r-value.primary { color: var(--primary); }
.r-value.secondary { color: var(--secondary); }

/* ── INFO BOX ──────────────────────────────────────────────── */
.info-box { background: var(--bg-alt); border: 1px solid var(--border-mid); border-left: 3px solid var(--primary); border-radius: var(--radius-sm); padding: 1rem 1.25rem; font-size: 0.875rem; color: var(--text-muted); }
.info-box.warning { border-left-color: var(--warning); background: #fffbeb; }
.info-box.danger { border-left-color: var(--danger); background: #fef2f2; }

/* ── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sep { color: var(--text-light); }

/* ── HOMEPAGE GRID ─────────────────────────────────────────── */
.category-section { margin-bottom: var(--space-xl); }

.section-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.375rem,3vw,1.75rem);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.section-count {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-light);
  background: var(--bg-alt);
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
}

.section-subtitle { font-size: 1rem; color: var(--text-muted); margin-bottom: 1.75rem; max-width: 65ch; }

.calc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* Calculator cards with category stripe */
.calc-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--card-accent, var(--primary));
  border-radius: 4px var(--radius) var(--radius) 4px;
  padding: 1.25rem 1.25rem 1.25rem 1.125rem;
  text-decoration: none;
  color: var(--text);
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.calc-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.calc-card-icon {
  width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1.25rem;
}

.calc-card-icon svg {
  width: 22px; height: 22px; stroke-width: 2; color: white;
}

.calc-card-content h3 { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 600; margin-bottom: 0.3rem; color: var(--text); letter-spacing: -0.01em; }
.calc-card-content p { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.5; }

/* Card accent categories */
.calc-card[data-category="metabolic"] { --card-accent: #16a34a; }
.calc-card[data-category="strength"]  { --card-accent: #dc2626; }
.calc-card[data-category="body"]      { --card-accent: #7c3aed; }
.calc-card[data-category="cardio"]    { --card-accent: #0891b2; }

/* ── SEO CONTENT ───────────────────────────────────────────── */
.seo-content { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--border-mid); max-width: 800px; margin-left: auto; margin-right: auto; }
.seo-content h2 { font-family: var(--font-heading); font-size: 1.375rem; font-weight: 700; margin-bottom: 1rem; }
.seo-content h3 { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; margin: 1.5rem 0 0.5rem; }
.seo-content p { color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.7; }
.seo-content ul, .seo-content ol { color: var(--text-muted); margin-left: 1.5rem; margin-bottom: 0.75rem; line-height: 1.7; }
.seo-content li { margin-bottom: 0.25rem; }

/* ── NEWSLETTER SECTION ────────────────────────────────────── */
.newsletter-section {
  background: linear-gradient(135deg, var(--primary-50) 0%, rgba(22,163,74,0.06) 100%);
  border: 1px solid rgba(22,163,74,0.1);
  border-radius: var(--radius-xl);
  padding: var(--space-xl) var(--space-lg);
  text-align: center;
  margin: var(--space-2xl) 0;
}

[data-theme="dark"] .newsletter-section {
  background: linear-gradient(135deg, rgba(22,163,74,0.08) 0%, rgba(5,150,105,0.04) 100%);
  border-color: rgba(22,163,74,0.15);
}

.newsletter-section h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.newsletter-section p {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.5rem;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
}

.newsletter-form {
  display: flex;
  gap: 0.75rem;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
}

.newsletter-form button {
  padding: 0.75rem 1.5rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  font-family: var(--font);
}

.newsletter-form button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}

.newsletter-privacy {
  font-size: 0.75rem;
  color: var(--text-light);
  margin-top: 0.75rem;
}

/* ── CROSS-SELL ────────────────────────────────────────────── */
.cross-sell {
  margin: var(--space-xl) 0;
  padding: var(--space-lg) 0;
  border-top: 1px solid var(--border);
}

.cross-sell h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.cross-sell-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

.cross-sell-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--transition-base);
  background: var(--bg-card);
}

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

.cross-sell-icon {
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.125rem; flex-shrink: 0;
}

.cross-sell-name { font-weight: 600; font-size: 0.875rem; }
.cross-sell-desc { font-size: 0.75rem; color: var(--text-muted); }

/* ── AFFILIATE SECTION ─────────────────────────────────────── */
.affiliate-section-wrap { background: var(--bg-alt); border-top: 1px solid var(--border-mid); border-bottom: 1px solid var(--border-mid); padding: 2rem var(--space-md); }
.affiliate-inner { max-width: 1200px; margin: 0 auto; }
.affiliate-heading { font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 700; color: var(--text); margin-bottom: 1rem; }
.affiliate-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.aff-card { background: var(--bg-card); border: 1px solid var(--border-mid); border-radius: var(--radius); padding: 1.25rem; text-decoration: none; color: var(--text); transition: all var(--transition-base); display: block; box-shadow: var(--shadow-sm); }
.aff-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow); }
.aff-card-name { font-family: var(--font-heading); font-size: 0.9375rem; font-weight: 700; margin-bottom: 0.35rem; color: var(--primary); }
.aff-card-desc { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.5; }
.aff-card-btn { display: inline-block; padding: 0.375rem 0.875rem; background: var(--primary); color: white; border-radius: var(--radius-sm); font-size: 0.8125rem; font-weight: 600; transition: background var(--transition-fast); }
.aff-card:hover .aff-card-btn { background: var(--primary-dark); }

/* ── FOOTER ────────────────────────────────────────────────── */
.site-footer { background: #071210; color: #86efac; padding: 2.5rem var(--space-md); }
.footer-inner { max-width: 1200px; margin: 0 auto; display: grid; grid-template-columns: 1fr 2fr; gap: 2rem; }
.footer-brand { font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; color: white; margin-bottom: 0.35rem; }
.footer-tagline { font-size: 0.875rem; color: #6ee7b7; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.footer-col h4 { font-family: var(--font-heading); font-size: 0.75rem; font-weight: 700; color: #bbf7d0; margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { text-decoration: none; font-size: 0.875rem; color: #6ee7b7; transition: color var(--transition-fast); }
.footer-col a:hover { color: white; }
.footer-bottom { max-width: 1200px; margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(34,197,94,0.12); display: flex; justify-content: space-between; align-items: center; font-size: 0.8125rem; color: #6ee7b7; }
.footer-legal { display: flex; gap: 1rem; }
.footer-legal a { color: #4ade80; text-decoration: none; transition: color var(--transition-fast); }
.footer-legal a:hover { color: white; }

/* ── UTILITY ───────────────────────────────────────────────── */
.hidden { display: none !important; }
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.25rem; }
.mt-3 { margin-top: 2rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.625rem; border-radius: 100px; font-size: 0.75rem; font-weight: 700; }
.badge-green { background: #dcfce7; color: var(--primary); }
.badge-red { background: #fee2e2; color: var(--danger); }
.badge-yellow { background: #fef9c3; color: #854d0e; }
.progress-bar-wrap { background: var(--bg-alt); border-radius: 100px; height: 10px; overflow: hidden; margin: 0.5rem 0; }
.progress-bar { height: 100%; border-radius: 100px; background: var(--primary); transition: width 0.4s; }
.divider { border: none; border-top: 1px solid var(--border-mid); margin: 1.5rem 0; }
table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
th { background: var(--bg-alt); padding: 0.625rem 1rem; text-align: left; font-weight: 700; font-size: 0.8125rem; color: var(--text); border-bottom: 1px solid var(--border-mid); }
td { padding: 0.625rem 1rem; border-bottom: 1px solid var(--border-light); color: var(--text-muted); }
tr:last-child td { border-bottom: none; }
tr:hover td { background: var(--bg-alt); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border-mid); border-radius: var(--radius); }

/* ── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-dropdown { right: auto; left: 0; }
  .calc-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 1.5rem; }
  .page-hero { padding: 3rem var(--space-sm) 3.5rem; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form button { width: 100%; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .result-grid { grid-template-columns: 1fr; }
  .main-content { padding: 1.5rem 1rem 3rem; }
  .hero-stats { flex-direction: column; gap: 1rem; }
}

/* ── SKIP LINK (Accessibility) ─────────────────────────────── */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--primary);
  color: white;
  padding: 0.75rem 1.5rem;
  z-index: 10000;
  font-weight: 600;
  text-decoration: none;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus { top: 0; }
