:root {
  --bg: #fffaf7; /* warm subtle background */
  --text: #1e293b; /* softer dark gray instead of black */
  --text-light: #334155; /* medium gray for secondary text */
  --muted: #64748b;
  --primary: #f97316; /* orange-500 */
  --primary-700: #c2410c; /* orange-700 */
  --primary-600: #ea580c; /* orange-600 */
  --accent: #fb923c; /* orange-400 */
  --card: #ffffff;
  --ring: 0 0 0 8px rgba(234, 88, 12, 0.25);
  --radius: 16px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: var(--text);
  background: var(--bg);
}

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.85); backdrop-filter: blur(16px); border-bottom: 1px solid #e2e8f0; box-shadow: var(--shadow-sm); }
.site-header .container { max-width: none; padding-left: clamp(24px, 4vw, 48px); padding-right: clamp(16px, 4vw, 40px); }
.nav { display: grid; grid-template-columns: auto 1fr auto; align-items: center; height: 72px; }
.nav .brand { justify-self: start; }
.nav .nav-links { justify-self: center; }
.nav .nav-ctas { justify-self: end; }
.brand { display: inline-flex; gap: 12px; align-items: center; text-decoration: none; color: inherit; font-weight: 800; }
.brand-text { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; color: var(--text-light); }
.brand-logo { width: 42px; height: 42px; }
.brand-logo.small { width: 36px; height: 36px; }
.nav-links { display: none; gap: 24px; }
.nav-links a { color: var(--text-light); text-decoration: none; font-weight: 600; font-size: 16px; }
.nav-ctas { display: flex; align-items: center; gap: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; padding: 12px 18px; text-decoration: none; font-weight: 600; border: 1px solid transparent; font-size: 15px; }
.btn-ghost { background: #fff; border-color: #d1d5db; color: var(--text); box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-lg { padding: 16px 24px; border-radius: 14px; font-size: 18px; }
.btn-gradient { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%); color: #fff; border: none; box-shadow: var(--shadow-md); }
.btn-gradient .icon { font-size: 20px; }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }

/* Hero */
.hero { padding: 80px 0 40px; text-align: center; }
.hero-title { font-size: 52px; line-height: 1.1; margin: 0; letter-spacing: -0.02em; font-weight: 900; color: var(--text-light); }
.hero-subtitle { margin: 20px auto 28px; max-width: 900px; color: var(--muted); font-size: 20px; line-height: 1.6; }
.hero-cta { margin-top: 12px; }
.badge { margin: 32px auto 0; padding: 8px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow-md); width: max-content; color: var(--muted); font-weight: 600; font-size: 15px; }
.badge-athena { display: inline-flex; align-items: center; gap: 10px; }
.badge-athena .muted { color: var(--muted); font-weight: 400; }
.athena-logo { width: 24px; height: 24px; border-radius: 6px; box-shadow: var(--shadow-sm); }
.athena-text { font-weight: 400; color: #ef6a14; }
/* subtle card-like hero backdrop */
.hero-inner { position: relative; }
.hero-inner:after { content: ""; position: absolute; left: 50%; transform: translateX(-50%); bottom: -24px; width: 88%; height: 42px; background: none; filter: none; pointer-events: none; }

/* Savings */
.savings { padding: 32px 0 56px; }
.card { background: var(--card); border: 1px solid #e2e8f0; border-radius: var(--radius); box-shadow: var(--shadow-md); }
.savings-card { padding: 32px; }
.savings-header { display: flex; align-items: baseline; justify-content: space-between; }
.savings-header h3 { margin: 0; font-size: 20px; color: var(--text-light); font-weight: 700; }
.savings-metric { font-weight: 900; font-size: 48px; color: var(--text-light); }
.savings-metric .unit { font-size: 16px; font-weight: 600; color: var(--muted); margin-left: 10px; }
#volumeSlider { width: 100%; margin: 28px 0 20px; -webkit-appearance: none; height: 8px; background: var(--primary); border-radius: 999px; outline: none; }
#volumeSlider::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; background: #fff; border: 4px solid var(--primary); border-radius: 50%; box-shadow: var(--shadow-lg); }
#volumeSlider::-moz-range-thumb { width: 24px; height: 24px; background: #fff; border: 4px solid var(--primary); border-radius: 50%; box-shadow: var(--shadow-lg); }
.savings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: end; }
.savings-values { display: flex; align-items: end; gap: 14px; }
.money { font-size: 44px; font-weight: 900; color: var(--text-light); }
.per { color: var(--muted); font-weight: 600; font-size: 16px; }
.hours { text-align: right; }
.feature-tiles { display: grid; grid-template-columns: 1fr; gap: 20px; margin-top: 32px; }
.tile { background: #ffffff; border: 1px solid #e2e8f0; padding: 28px; border-radius: var(--radius); text-align: left; box-shadow: var(--shadow-md); }
.tile-icon { width: 52px; height: 52px; display: inline-grid; place-items: center; border-radius: 14px; background: #ffedd5; color: var(--primary-700); font-size: 26px; box-shadow: var(--shadow-sm); }
.tile-title { margin: 12px 0 12px; font-size: 22px; font-weight: 700; color: var(--text-light); }
.tile-sub { margin: 0 0 14px; color: var(--muted); font-size: 16px; line-height: 1.5; }
.tile-list { margin: 0; padding-left: 20px; color: #334155; font-size: 15px; }
.tile-list li { margin: 10px 0; }

/* Highlight section */
.highlight { padding: 44px 0 16px; }
.highlight-card { background: #fee2e2; border: 1px solid #fecaca; border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 1fr; align-items: center; gap: 18px; box-shadow: var(--shadow-md); }
.highlight-media img { width: 100%; height: 240px; object-fit: cover; border-radius: 14px; background: #fff; }
.highlight-content { padding-left: 8px; }
.highlight-content h3 { margin: 0; color: #9f1239; font-size: 24px; font-weight: 700; }
.highlight-content .muted { color: #7f1d1d; font-size: 16px; line-height: 1.5; }

/* Solutions */
.solutions { 
  padding: 48px 0; 
  /* Section-specific modern green-gray palette */
  --sol-bg: #fafcfb; /* soft near-white with green hint */
  --sol-tint: #eef6f3; /* tinted background for shell */
  --sol-card: #ffffff; /* pure card surface */
  --sol-border: #e3ece7; /* pale green-gray border */
  --sol-ink: #0f172a; /* deep slate text */
  --sol-muted: #475569; /* slate for secondary text */
  --sol-accent: #97d0b7; /* pastel green accent */
  --sol-accent-deep: #2e7d6b; /* deeper green for subtle lines */
}
.solutions { background: var(--sol-bg); }
.section-title { text-align: center; margin: 0 0 28px; font-size: 38px; letter-spacing: -0.02em; font-weight: 800; color: var(--text-light); }
.solutions-layout { 
  display: grid; 
  grid-template-columns: 1fr; 
  gap: 20px; 
  align-items: start; 
  background: linear-gradient(180deg, var(--sol-tint), #f9fbfa); 
  border: 1px solid var(--sol-border); 
  border-radius: 22px; 
  padding: 20px; 
  box-shadow: 0 18px 48px rgba(16,24,40,0.06);
}
.solutions-tabs { 
  display: grid; 
  gap: 0; 
  margin: 0; 
  padding: 0; 
  align-items: stretch;
}
.solutions-tabs .tab:not(:first-child) {
  margin-top: 14px;
}
.tab { 
  text-align: left; 
  padding: 16px 18px; 
  border-radius: 14px; 
  background: #ffffff; 
  border: 1px solid var(--sol-border); 
  cursor: pointer; 
  font-weight: 600; 
  color: #334155; 
  font-size: 16px; 
  box-shadow: var(--shadow-sm); 
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  margin: 0; 
  min-height: 48px;
  position: relative;
}
/* tabs are now individually spaced; undo stack merging */
.tab:hover { background: #eef2f1; transform: translateY(-1px); }
.tab.active { 
  background: #ffffff; 
  border-color: var(--sol-border); 
  box-shadow: 0 6px 18px rgba(16, 24, 40, 0.06); 
  transform: translateY(-1px); 
  color: #0f172a; 
  position: relative;
  border-left: 4px solid var(--sol-accent-deep);
}
.tab.active:before { display: none; }

/* Progress bar styling */
.progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--sol-accent-deep);
  border-radius: 0 0 14px 14px;
  width: 0%;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.tab.active .progress-bar {
  opacity: 0.6;
}
.progress-bar.animating {
  animation: progress 10s linear forwards;
}
@keyframes progress {
  from { width: 0%; }
  to { width: 100%; }
}
.solutions-panel { background: transparent; padding: 0; border-radius: 0; border: 0; box-shadow: none; }
.panel { 
  display: none; 
  align-items: center; 
  gap: 20px; 
  background: var(--sol-card); 
  border-radius: 20px; 
  padding: 24px; 
  border: 1px solid var(--sol-border); 
  box-shadow: 0 12px 36px rgba(16,24,40,0.08);
  min-height: 520px;
}
.panel.active { display: grid; grid-template-columns: 1fr; }
.panel-illustration-container { position: relative; background: transparent; border-radius: 0; padding: 0; border: 0; box-shadow: none; flex: 1; }
.panel-illustration { width: 100%; height: auto; max-height: 260px; object-fit: contain; border-radius: 12px; transition: opacity 0.5s ease, transform 0.25s ease; display: block; opacity: 1; }
.panel-illustration.is-fading { opacity: 0; }
.panel-illustration:hover { transform: scale(1.015); }
.panel-content h3 { 
  margin-top: 0; 
  font-size: 20px; 
  font-weight: 800; 
  color: var(--sol-muted); 
  line-height: 1.2;
  margin-bottom: 14px;
}
.panel-content p { 
  margin: 0 0 12px; 
  color: var(--sol-muted); 
  font-size: 16px; 
  line-height: 1.6;
}
.panel-content ul { 
  margin: 4px 0 0; 
  padding-left: 0; 
  list-style: none;
  display: grid;
  gap: 12px;
}
.panel-content li { 
  margin: 0; 
  font-size: 13px; 
  line-height: 1.45; 
  padding: 14px 16px;
  background: #f7faf9;
  border-radius: 12px;
  border: 1px solid var(--sol-border);
  box-shadow: var(--shadow-sm);
}
.panel-content li strong { color: var(--sol-ink); font-weight: 700; }

/* Features table */
.features { padding: 64px 0; }
.table-wrap { overflow: auto; background: #ffffff; border: 1px solid #e2e8f0; border-radius: var(--radius); box-shadow: var(--shadow-md); }
table.compare { width: 100%; border-collapse: collapse; }
table.compare th, table.compare td { padding: 20px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
table.compare thead th { background: #f9fafb; text-align: left; font-size: 16px; color: #6b7280; font-weight: 700; }
.row-title { font-weight: 700; font-size: 16px; color: var(--text-light); }
.row-sub { color: var(--muted); font-size: 15px; margin-top: 8px; line-height: 1.4; }
td.yes { color: #16a34a; font-weight: 800; font-size: 18px; }
td.no { color: #ef4444; font-weight: 800; font-size: 18px; }
td.muted { color: var(--muted); font-weight: 700; font-size: 16px; }
.small { font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { padding: 48px 0; }
.accordion { max-width: 1000px; margin: 0 auto; }
.accordion details { background: #fff; border: 1px solid #d1d5db; border-radius: 14px; padding: 16px 20px; margin: 12px 0; box-shadow: var(--shadow-sm); }
.accordion summary { font-weight: 700; cursor: pointer; font-size: 16px; color: var(--text-light); }
.accordion p { color: var(--muted); font-size: 15px; line-height: 1.5; }
.accordion ul { margin: 12px 0 0; padding-left: 20px; }
.accordion li { margin: 8px 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.accordion a { color: var(--primary); text-decoration: none; font-weight: 600; }
.accordion a:hover { text-decoration: underline; }

/* CTA */
.cta { padding: 64px 0; background: #fff7ed; text-align: center; }
.cta-title { font-size: 40px; margin: 0 0 18px; font-weight: 800; color: var(--text-light); }
.cta-actions { display: flex; gap: 16px; justify-content: center; }

/* Footer */
.site-footer { background: #ffffff; border-top: 1px solid #e2e8f0; }
.footer-inner { display: grid; grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
.footer-left { display: grid; gap: 12px; justify-items: start; }
.footer-right { display: grid; gap: 12px; justify-items: end; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }

/* Responsive */
@media (min-width: 860px) {
  .nav-links { display: flex; }
  /* header padding scales via clamp; no fixed override needed here */
  .hero-title { font-size: 72px; }
  .brand-text { font-size: 24px; }
  .brand-logo { width: 48px; height: 48px; }
  .feature-tiles { grid-template-columns: repeat(2, 1fr); }
  .solutions-layout { grid-template-columns: 340px 1fr; align-items: start; padding: 24px; gap: 24px; }
  /* Stack illustration above content on large screens as well */
  .panel.active { grid-template-columns: 1fr; }
  .panel-illustration { max-height: 360px; }
  .panel { min-height: 560px; }
  .panel-illustration-container { padding: 22px; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .highlight-card { grid-template-columns: 1.2fr 1fr; padding: 28px; }
  .highlight-media img { height: 300px; }
  .highlight-content { padding-left: 20px; }
  .section-title { font-size: 44px; }
  .cta-title { font-size: 48px; }
}


