/* RechargeQC — Design System */
/* Institutionnel · Sobre · Vert */

/* ============================================
   CUSTOM PROPERTIES
============================================ */
:root {
  --forest:    #132B1E;
  --forest-md: #1A3828;
  --emerald:   #2D7A4F;
  --emerald-dk:#1F5C3A;
  --sage:      #3A7D52;
  --mist:      #EDF4F0;
  --mist-dk:   #D4E8DB;
  --white:     #F8FAF9;
  --carbon:    #181E1B;
  --carbon-lt: #22302A;
  --gray-1:    #F2F6F4;
  --gray-2:    #DDE8E2;
  --gray-3:    #7A9E88;
  --gray-4:    #3D5C48;
  --glow:      rgba(45,122,79,0.07);
  --glow-md:   rgba(45,122,79,0.14);

  --font-display: 'Nunito', system-ui, sans-serif;
  --font-body:    'Nunito', system-ui, sans-serif;

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.07);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.10);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.14);
  --shadow-glow: 0 0 24px rgba(45,122,79,0.10);

  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);

  --container: 1200px;
  --section-py: clamp(56px, 7vw, 100px);
}

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

[hidden] { display: none !important; }

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

body {
  font-family: var(--font-body);
  color: var(--carbon);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; }

/* ============================================
   TYPOGRAPHY
============================================ */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.2rem, 5vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.75rem); font-weight: 700; }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); font-weight: 600; }
h4 { font-size: 0.95rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; }

p { line-height: 1.7; color: var(--gray-4); }

.gradient-text {
  color: var(--emerald);
}

/* ============================================
   LAYOUT
============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 48px);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto clamp(40px, 5vw, 72px);
}

.section-header h2 { margin: 12px 0 16px; color: var(--carbon); }
.section-header p { font-size: 1.05rem; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--emerald);
  padding: 6px 14px;
  border: 1px solid rgba(0,200,83,0.3);
  border-radius: 100px;
  background: var(--glow);
}

.section-tag--light {
  color: var(--mist);
  border-color: rgba(232,245,233,0.3);
  background: rgba(255,255,255,0.08);
}

/* Glass morphism */
.glass {
  background: rgba(255,255,255,0.06);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.12);
}

/* ============================================
   BUTTONS
============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-lg { padding: 16px 32px; font-size: 1rem; border-radius: var(--radius-md); }
.btn-sm { padding: 8px 16px; font-size: 0.85rem; }
.btn-full { width: 100%; justify-content: center; }

.btn-primary {
  background: var(--emerald);
  color: #fff;
  box-shadow: 0 2px 10px rgba(45,122,79,0.2);
}
.btn-primary:hover {
  background: var(--emerald-dk);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(45,122,79,0.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  border: 1.5px solid rgba(45,122,79,0.5);
  color: var(--emerald);
  background: transparent;
}
.btn-outline:hover {
  background: var(--glow);
  border-color: var(--emerald);
}

.btn-ghost {
  color: var(--mist);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.15);
}

/* ============================================
   NAVIGATION
============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  background: rgba(10,46,26,0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(10,46,26,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--white);
  flex-shrink: 0;
}

.nav-logo img {
  height: 80px;
  width: 80px;
  min-width: 80px;
  max-width: 80px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav-logo strong { color: var(--emerald); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--emerald); }
.nav-links .btn { margin-left: 8px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

/* ============================================
   HERO
============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--forest);
  overflow: hidden;
  padding-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#energy-canvas {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(80px, 10vw, 120px);
  max-width: 760px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  padding: 8px 16px;
  border-radius: 100px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.06);
  margin-bottom: 28px;
  letter-spacing: 0.05em;
}

.badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald);
}

.hero-title {
  color: var(--white);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: rgba(255,255,255,0.72);
  margin-bottom: 40px;
  max-width: 580px;
  line-height: 1.65;
}

.hero-subtitle strong {
  color: var(--emerald);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
}

.hero-disclaimer {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.38);
  margin: 0;
}

.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,0.3), transparent);
  margin: 0 auto;
}

/* ============================================
   STATS
============================================ */
.stats-section {
  background: var(--carbon);
  padding: clamp(48px, 6vw, 80px) 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.stat-card {
  padding: clamp(24px, 3vw, 40px);
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.06);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stat-card:last-child { border-right: none; }
.stat-card.visible { opacity: 1; transform: translateY(0); }

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--emerald);
  margin-bottom: 8px;
  line-height: 1;
}

.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 0.78rem;
  color: var(--gray-3);
}

/* ============================================
   HOW IT WORKS
============================================ */
.how-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
}

.step-card {
  background: var(--gray-1);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid var(--gray-2);
  transition: transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

.step-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.step-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.step-icon { margin-bottom: 20px; }
.step-card h3 { color: var(--carbon); margin-bottom: 12px; font-size: 1.1rem; }
.step-card p { font-size: 0.9rem; margin-bottom: 20px; }

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.step-tags span {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sage);
  background: rgba(76,175,80,0.1);
  border: 1px solid rgba(76,175,80,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

.step-connector {
  width: 60px;
  height: 2px;
  background: linear-gradient(to right, var(--emerald-dk), var(--emerald));
  align-self: center;
  margin-top: -40px;
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  right: -1px;
  top: -4px;
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--emerald);
}

/* ============================================
   CALCULATOR
============================================ */
.calc-section {
  padding: var(--section-py) 0;
  background: var(--carbon);
}

.calc-section .section-header h2 { color: var(--white); }
.calc-section .section-header p { color: var(--gray-3); }

.calc-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.calc-field label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  font-weight: 600;
  color: rgba(255,255,255,0.8);
  margin-bottom: 12px;
}

.calc-field label strong {
  color: var(--emerald);
  font-size: 1rem;
}

.select-wrapper { position: relative; }

.select-wrapper select {
  width: 100%;
  padding: 14px 40px 14px 16px;
  background: var(--carbon-lt);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.92rem;
  appearance: none;
  cursor: pointer;
  transition: border-color var(--transition);
}

.select-wrapper select:focus {
  outline: none;
  border-color: var(--emerald);
}

.select-wrapper::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid var(--gray-3);
  pointer-events: none;
}

/* Slider */
.slider-wrapper {
  position: relative;
  height: 40px;
  display: flex;
  align-items: center;
}

.slider-wrapper input[type="range"] {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 40px;
  background: transparent;
  appearance: none;
  cursor: pointer;
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(0,200,83,0.2), var(--shadow-sm);
  cursor: grab;
  transition: transform var(--transition);
}

.slider-wrapper input[type="range"]::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
}

.slider-wrapper input[type="range"]::-webkit-slider-runnable-track {
  height: 4px;
  background: transparent;
  border-radius: 4px;
}

.slider-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  left: 0;
  right: 0;
  height: 4px;
  background: rgba(255,255,255,0.12);
  border-radius: 4px;
  z-index: 1;
  pointer-events: none;
}

.slider-fill {
  height: 100%;
  background: linear-gradient(to right, var(--emerald-dk), var(--emerald));
  border-radius: 4px;
  width: 33%;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--gray-3);
  margin-top: 4px;
}

/* Percent tabs */
.percent-tabs {
  display: flex;
  gap: 8px;
}

.percent-tab {
  flex: 1;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gray-3);
  background: var(--carbon-lt);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.percent-tab.active, .percent-tab:hover {
  color: var(--emerald);
  border-color: var(--emerald);
  background: var(--glow);
}

/* Results */
.calc-results {
  background: var(--carbon-lt);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid rgba(45,122,79,0.2);
  box-shadow: var(--shadow-md);
}

.result-primary {
  text-align: center;
  padding-bottom: 28px;
}

.result-amount {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--emerald);
  line-height: 1;
  margin-bottom: 8px;
}

.result-label {
  font-size: 0.88rem;
  color: var(--gray-3);
  font-weight: 500;
}

.result-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 0 0 28px;
}

.result-secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.result-item { text-align: center; }

.result-val {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.result-desc {
  font-size: 0.72rem;
  color: var(--gray-3);
  line-height: 1.4;
}

.btn-calc-cta {
  width: 100%;
  justify-content: center;
  margin-bottom: 16px;
}

.calc-disclaimer {
  font-size: 0.72rem;
  color: var(--gray-4);
  text-align: center;
  line-height: 1.5;
  margin: 0;
}

/* ============================================
   LEGAL PAGES
============================================ */
.legal-main {
  background: var(--white);
  min-height: 100vh;
  padding: 130px 0 80px;
}

.legal-content {
  max-width: 720px;
  margin: 0 auto;
}

.legal-content .section-tag { margin-bottom: 18px; }

.legal-content h1 {
  font-family: var(--font-body);
  color: var(--carbon);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.legal-updated {
  font-size: 0.82rem;
  color: var(--gray-4);
  margin-bottom: 40px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--gray-2);
}

.legal-content h2 {
  font-family: var(--font-body);
  color: var(--carbon);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}

.legal-content h3 {
  font-family: var(--font-body);
  color: var(--sage);
  font-size: 0.95rem;
  font-weight: 600;
  margin: 22px 0 8px;
}

.legal-content p,
.legal-content li {
  color: var(--gray-4);
  font-size: 0.92rem;
  line-height: 1.75;
  margin-bottom: 12px;
}

.legal-content ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 18px;
}

.legal-content ul li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
}

.legal-content ul li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald);
}

.legal-content a { color: var(--emerald-dk); text-decoration: underline; text-underline-offset: 2px; }

.legal-content strong { color: var(--carbon); font-weight: 600; }

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--emerald-dk);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-2);
}

/* ============================================
   EXPLORATORY GRID
============================================ */
.exploratory-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.explore-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--carbon-lt);
  border: 1px solid rgba(255,255,255,0.08);
  transition: transform var(--transition), border-color var(--transition);
}

.explore-card:hover {
  transform: translateY(-2px);
  border-color: rgba(45,122,79,0.3);
}

.explore-num {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 800;
  color: rgba(0,200,83,0.2);
  line-height: 1;
  margin-bottom: 16px;
}

.explore-card h3 {
  color: var(--white);
  font-size: 1.05rem;
  margin-bottom: 12px;
  line-height: 1.3;
}

.explore-card p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: 20px;
}

.explore-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.explore-tags span {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(0,200,83,0.08);
  border: 1px solid rgba(0,200,83,0.2);
  padding: 3px 10px;
  border-radius: 100px;
}

@media (max-width: 900px) {
  .exploratory-grid { grid-template-columns: 1fr; }
}

/* ============================================
   CARBON SECTION
============================================ */
.carbon-section {
  padding: var(--section-py) 0;
  background: var(--forest);
}

.carbon-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.carbon-content .section-tag { margin-bottom: 20px; }
.carbon-content h2 { color: var(--white); margin: 16px 0 24px; }
.carbon-content p { color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.carbon-content em { color: var(--emerald); font-style: normal; }
.carbon-content strong { color: var(--white); }

.carbon-pipeline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-md);
  border: 1px solid rgba(255,255,255,0.08);
}

.pipeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 72px;
}

.pipeline-step.highlighted .pip-icon {
  background: var(--emerald);
  color: var(--forest);
}

.pip-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.pipeline-step span {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.6);
  text-align: center;
}

.pip-arrow {
  color: var(--emerald);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* Carbon card visual */
.carbon-visual { display: flex; justify-content: center; }

.carbon-card {
  width: 100%;
  max-width: 340px;
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
}

.cc-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.cc-badge {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--emerald);
  padding: 4px 10px;
  border: 1px solid rgba(0,200,83,0.4);
  border-radius: 100px;
}

.cc-year {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}

.cc-amount {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}

.cc-desc {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.cc-details {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.cc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.cc-row span:first-child { color: rgba(255,255,255,0.5); }
.cc-row span:last-child { color: var(--white); font-weight: 500; }

.cc-footer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 16px;
}

/* ============================================
   COMPARE
============================================ */
.compare-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

.compare-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.compare-table thead tr {
  background: var(--carbon);
}

.compare-table th {
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}

.compare-table th:first-child { border-radius: var(--radius-sm) 0 0 0; }

.compare-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--gray-2);
  color: var(--carbon);
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table tr:nth-child(even) td { background: var(--gray-1); }
.compare-table tr:nth-child(even) td.highlight-col { background: rgba(0,200,83,0.06); }

.highlight-col {
  background: rgba(0,200,83,0.04);
  font-weight: 500;
}

.table-logo {
  color: var(--emerald);
  font-family: var(--font-display);
  font-size: 1rem;
}

.check {
  color: var(--sage);
  font-weight: 600;
}

.cross {
  color: var(--gray-3);
}

/* ============================================
   PARTNERS
============================================ */
.partners-section {
  padding: var(--section-py) 0;
  background: var(--forest-md);
}

.partners-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}

.partners-content h2 { color: var(--white); margin: 16px 0 20px; }
.partners-content > p { color: rgba(255,255,255,0.65); margin-bottom: 28px; }

.partners-benefits {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.partners-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
}

/* Partner form */
.partner-form {
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
}

.partner-form h3 {
  color: var(--white);
  margin-bottom: 24px;
  font-size: 1.3rem;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.65);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.form-group label span { color: var(--emerald); }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-size: 0.92rem;
  transition: border-color var(--transition), background var(--transition);
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--emerald);
  background: rgba(0,200,83,0.06);
}

.form-group input.error,
.form-group textarea.error { border-color: #ef5350; }

.form-group textarea { resize: vertical; min-height: 100px; }

.form-message {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  margin-top: 12px;
}

.form-message[hidden] { display: none; }

.form-success { background: rgba(0,200,83,0.12); color: var(--emerald); border: 1px solid rgba(0,200,83,0.3); }
.form-error { background: rgba(239,83,80,0.1); color: #ef9a9a; border: 1px solid rgba(239,83,80,0.3); }
.form-error a { color: var(--emerald); text-decoration: underline; }

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   FAQ
============================================ */
.faq-section {
  padding: var(--section-py) 0;
  background: var(--white);
}

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

.faq-item {
  border: 1px solid var(--gray-2);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--transition);
}

.faq-item:has(.faq-question[aria-expanded="true"]) {
  border-color: rgba(0,200,83,0.3);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  text-align: left;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--carbon);
  background: transparent;
  transition: background var(--transition), color var(--transition);
}

.faq-question:hover { background: var(--gray-1); }
.faq-question[aria-expanded="true"] { color: var(--sage); }

.faq-icon {
  flex-shrink: 0;
  transition: transform var(--transition);
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  padding: 0 24px 20px;
  animation: fade-in 0.3s ease;
}

.faq-answer p {
  font-size: 0.92rem;
  color: var(--gray-4);
  line-height: 1.7;
}

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

/* ============================================
   CTA SECTION
============================================ */
.cta-section {
  padding: var(--section-py) 0;
  background: var(--carbon);
}

.cta-card {
  position: relative;
  text-align: center;
  padding: clamp(48px, 6vw, 80px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.cta-glow {
  display: none;
}

.cta-card h2 { color: var(--white); margin-bottom: 16px; position: relative; }
.cta-card p { color: var(--gray-3); margin-bottom: 36px; font-size: 1.05rem; position: relative; }

.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}

/* ============================================
   FOOTER
============================================ */
.footer {
  background: var(--forest);
  padding: clamp(48px, 6vw, 80px) 0 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  line-height: 1.6;
  margin-bottom: 12px;
}

.footer-disclaimer {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.25);
}

.footer-links h4 {
  color: rgba(255,255,255,0.4);
  margin-bottom: 16px;
  font-size: 0.75rem;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.55);
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--emerald); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}

.footer-bottom p a { color: var(--emerald); }

.powered-by {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 100px;
  transition: border-color var(--transition), color var(--transition);
}

.powered-by:hover {
  border-color: rgba(59,130,246,0.5);
  color: rgba(255,255,255,0.7);
}

.powered-by .synapro-mark {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.powered-by strong {
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.85);
}

/* ============================================
   ANIMATIONS — SCROLL REVEAL
============================================ */
[data-animate] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 1024px) {
  .steps-grid { grid-template-columns: 1fr; }
  .step-connector { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-card:nth-child(2) { border-right: none; }
  .stat-card:nth-child(3), .stat-card:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.06); }
  .stat-card:nth-child(3) { border-right: 1px solid rgba(255,255,255,0.06); }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset: 72px 0 0;
    background: var(--forest);
    padding: 32px 24px;
    gap: 24px;
    align-items: flex-start;
    z-index: 99;
  }

  .nav-links.open a { font-size: 1.1rem; color: var(--white); }
  .nav-links.open .btn { width: 100%; justify-content: center; }

  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }

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

  .result-secondary { grid-template-columns: 1fr; gap: 12px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-card { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }

  .footer-bottom { flex-direction: column; }

  .compare-table th, .compare-table td { padding: 12px 16px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-buttons { flex-direction: column; }
  .cta-buttons .btn { width: 100%; justify-content: center; }
  .carbon-pipeline { flex-direction: column; gap: 12px; }
  .pip-arrow { transform: rotate(90deg); }
}

/* ============================================
   PRINT
============================================ */
@media print {
  .nav, .hero-bg, .cta-section { display: none; }
  body { color: #000; background: #fff; }
}
