/* ============================================
   SolarToolHub — Premium Design System v2
   ============================================ */
:root {
  --bg: #FAFAFA;
  --bg-soft: #F3F4F6;
  --card: #FFFFFF;
  --navy: #1E3A8A;
  --navy-soft: #2563EB;
  --ink: #111827;
  --ink-soft: #4B5563;
  --ink-faint: #9CA3AF;
  --line: rgba(17, 24, 39, 0.09);
  --line-strong: rgba(17, 24, 39, 0.16);
  --orange: #FACC15;
  --orange-deep: #CA8A04;
  --orange-tint: #FEF9C3;
  --orange-glow: rgba(250, 204, 21, 0.28);
  --green: #10B981;
  --green-tint: #E9FBF4;
  --radius-lg: 24px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 12px 24px -8px rgba(17, 24, 39, 0.10);
  --shadow-lg: 0 24px 48px -12px rgba(17, 24, 39, 0.16);
  --shadow-glow: 0 20px 60px -12px rgba(245, 158, 11, 0.28);
  --font-display: 'Manrope', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
  --max-width: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 4.6vw, 3.75rem); }
h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); }
h3 { font-size: 1.2rem; font-weight: 700; }

p { color: var(--ink-soft); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

/* ============================================
   Reveal-on-scroll utility
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn-primary {
  background: var(--navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: var(--navy-soft); box-shadow: var(--shadow-lg); }

.btn-accent {
  background: var(--orange);
  color: #24150A;
  box-shadow: var(--shadow-glow);
}
.btn-accent:hover { background: var(--orange-deep); }

.btn-secondary {
  background: var(--card);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-secondary:hover { border-color: var(--navy); background: var(--bg-soft); }

/* ============================================
   Header / Navigation
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 250, 0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(250, 250, 250, 0.88);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
}
.logo-mark {
  position: relative;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--navy-soft) 0%, var(--navy) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px rgba(30, 58, 138, 0.4);
}
.logo-mark::after {
  content: "";
  position: absolute;
  top: -4px;
  right: -4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--orange);
}
.logo-mark svg { width: 18px; height: 18px; }
.logo .accent { color: var(--orange-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  position: relative;
  font-size: 0.93rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-links a:hover { color: var(--navy); background: var(--bg-soft); }
.nav-links a.active { color: var(--navy); background: var(--orange-tint); }

.nav-cta { display: flex; align-items: center; gap: 16px; }

@media (max-width: 860px) {
  .nav-cta .btn-primary { display: none; }
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
  border-radius: 2px;
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--card);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    border-bottom: 1px solid var(--line);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
  }
  .nav-links.open { max-height: 400px; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 14px 24px; width: 100%; border-radius: 0; border-top: 1px solid var(--line); }
  .nav-toggle { display: block; }
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-38%);
  width: 900px;
  height: 620px;
  background: radial-gradient(circle at center, var(--orange-glow) 0%, rgba(245, 158, 11, 0) 68%);
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--orange-deep);
  background: var(--orange-tint);
  padding: 7px 16px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--orange-deep);
}
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.15rem;
  max-width: 500px;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }

.hero-meta {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta .num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--navy);
}
.hero-meta .lbl { font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; }

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

/* Premium hero calculator widget */
.calc-widget {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  background-image: linear-gradient(160deg, var(--orange) 0%, transparent 40%);
}
.calc-widget-inner {
  background: var(--card);
  border-radius: 20px;
  padding: 30px;
}
.calc-widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.calc-widget-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
}
.live-dot::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.calc-widget h3 { margin-bottom: 20px; font-size: 1.15rem; }
.field-group { margin-bottom: 18px; }
.field-group label {
  display: block;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 7px;
}
input[type="number"], input[type="text"], select {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg-soft);
  transition: border-color 0.2s ease, background 0.2s ease;
}
input[type="number"]:focus, input[type="text"]:focus, select:focus {
  outline: none;
  border-color: var(--orange);
  background: var(--card);
}
.mini-result {
  margin-top: 22px;
  padding: 22px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-sm);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.mini-result::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(245, 158, 11, 0.35), transparent 60%);
}
.mini-result .num {
  position: relative;
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
}
.mini-result .lbl {
  position: relative;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 500;
}

/* ============================================
   Sections
   ============================================ */
section { padding: 88px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .eyebrow { margin-bottom: 16px; }
.section-head p { margin-top: 14px; font-size: 1.05rem; }

.grid-3 {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr; } }

/* Trusted-by strip */
.trust-strip {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.trust-strip .label {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 28px;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 56px;
  flex-wrap: wrap;
  filter: grayscale(1);
  opacity: 0.5;
}
.trust-logos span {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--navy);
}

/* Tool cards */
.tool-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
  display: flex;
  flex-direction: column;
  height: 100%;
}
.tool-card:hover { border-color: transparent; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tool-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: var(--orange-tint);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.tool-icon svg { width: 22px; height: 22px; stroke: var(--orange-deep); }
.tool-card .tool-cat {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.tool-card h3 { margin-bottom: 10px; }
.tool-card p { font-size: 0.93rem; flex-grow: 1; margin-bottom: 20px; }
.tool-card .tool-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s ease;
}
.tool-card .tool-link:hover { gap: 10px; color: var(--orange-deep); }
.tool-card.coming-soon { opacity: 0.55; pointer-events: none; }
.badge-soon {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--bg-soft);
  padding: 4px 12px;
  border-radius: 999px;
  align-self: flex-start;
  margin-bottom: 12px;
}

/* Why us / feature cards */
.feature-card { padding: 8px; }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--orange); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { font-size: 0.94rem; }

/* How it works / steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step-num {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--orange-deep);
  background: var(--orange-tint);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy); }
.bg-navy h2, .bg-navy h3 { color: #FFFFFF; }
.bg-navy p { color: rgba(255, 255, 255, 0.68); }

/* FAQ accordion */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--navy);
}
.faq-icon {
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--bg-soft);
  transition: transform 0.3s var(--ease), background 0.3s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--orange-tint); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s var(--ease);
}
.faq-item.open .faq-answer { max-height: 260px; }
.faq-answer p { padding: 0 4px 22px; font-size: 0.96rem; }

/* Newsletter */
.newsletter-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-lg);
  padding: 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-card::before {
  content: "";
  position: absolute;
  top: -140px; right: -100px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35), transparent 70%);
}
.newsletter-card h2 { color: #FFFFFF; position: relative; margin-bottom: 12px; }
.newsletter-card p { color: rgba(255, 255, 255, 0.68); position: relative; margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }
.newsletter-form {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.newsletter-form input[type="email"] {
  flex: 1;
  min-width: 200px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.newsletter-form input[type="email"]::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter-form input[type="email"]:focus { outline: none; border-color: var(--orange); }
.newsletter-note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.45); margin-top: 14px; position: relative; }

/* ============================================
   Article / Tool page layout
   ============================================ */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}
.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-bottom: 16px;
  font-weight: 500;
}
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--orange-deep); }
.page-header h1 { margin-bottom: 12px; }
.page-header .lede { font-size: 1.08rem; max-width: 640px; }

.calc-layout { display: grid; grid-template-columns: 1fr; gap: 0; padding: 56px 0; }

.calc-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 40px;
  max-width: 620px;
  margin: 0 auto;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-result {
  margin-top: 26px;
  padding: 26px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
  border-radius: var(--radius-sm);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: center;
}
@media (max-width: 560px) { .calc-result { grid-template-columns: 1fr; } }
.calc-result .num {
  font-family: var(--font-mono);
  font-size: 2.3rem;
  font-weight: 700;
  color: var(--orange);
  display: block;
}
.calc-result .lbl {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  margin-top: 4px;
}
.helper-text { font-size: 0.8rem; color: var(--ink-faint); margin-top: 6px; }
.wizard-step { display: none; }
.wizard-step.active { display: block; }
.wizard-progress { display: flex; gap: 8px; margin-bottom: 28px; }
.wizard-progress-dot { flex: 1; height: 4px; border-radius: 2px; background: var(--line-strong); transition: background 0.2s ease; }
.wizard-progress-dot.active, .wizard-progress-dot.done { background: var(--orange); }
.wizard-step-label { font-size: 0.8rem; color: var(--ink-faint); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 8px; }
.wizard-nav { display: flex; justify-content: space-between; margin-top: 28px; gap: 12px; }
.wizard-summary-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 20px; }
@media (max-width: 560px) { .wizard-summary-grid { grid-template-columns: 1fr; } }
.wizard-summary-card { background: var(--bg-soft); border-radius: var(--radius-sm); padding: 20px; text-align: center; }
.wizard-summary-card .num { display: block; font-family: var(--font-mono); font-size: 1.7rem; font-weight: 700; color: var(--navy); }
.wizard-summary-card .lbl { font-size: 0.82rem; color: var(--ink-faint); }
.calc-result .num.num-text { font-size: 1.5rem; }

.article { max-width: 720px; margin: 0 auto; padding: 8px 0 72px; }
.article h2 { margin: 44px 0 16px; }
.article p { margin-bottom: 16px; font-size: 1.03rem; color: var(--ink-soft); }
.article ul, .article ol { margin: 0 0 16px 22px; color: var(--ink-soft); }
.article li { margin-bottom: 8px; }
.article a, .field-experience a { color: var(--navy-soft); font-weight: 700; text-decoration: none; transition: color 0.15s ease; }
.article a:hover, .field-experience a:hover { color: var(--navy); }
.field-experience {
  background: var(--green-tint);
  border-left: 3px solid var(--green);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 20px 22px;
  margin: 26px 0;
}
.field-experience .tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 8px;
}
.field-experience p { color: var(--ink); margin-bottom: 0; }

table.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 30px;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
table.data-table th, table.data-table td {
  padding: 12px 16px;
  border: 1px solid var(--line);
  text-align: left;
}
table.data-table th {
  background: var(--bg-soft);
  font-weight: 700;
  font-family: var(--font-display);
}
table.calc-table td { vertical-align: middle; }
table.calc-table input[type="number"] { padding: 8px 10px; font-size: 0.9rem; }
table.calc-table input[type="text"] { padding: 8px 10px; font-size: 0.9rem; }
table.calc-table input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy-soft); cursor: pointer; }
table.calc-table .app-watts { width: 90px; }
table.calc-table .app-qty { width: 80px; }
table.calc-table .app-hours { width: 80px; }
table.calc-table .surge-note { font-size: 0.78rem; color: var(--ink-faint); }
.load-remove-btn {
  background: none;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-sm);
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-faint);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.load-remove-btn:hover { border-color: #d9534f; color: #d9534f; }
.load-daily-wh { font-family: var(--font-mono); font-weight: 600; white-space: nowrap; }
.battery-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 22px; }
@media (max-width: 560px) { .battery-compare { grid-template-columns: 1fr; } }
.battery-col h3 { margin-bottom: 12px; font-size: 1rem; text-align: center; }
.battery-col .calc-result { margin-top: 0; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px 0 30px;
  background: var(--navy);
}
.site-footer .logo, .site-footer h4, .site-footer .footer-bottom span:first-child { color: #FFFFFF; }
.site-footer p { color: rgba(255, 255, 255, 0.5); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
@media (max-width: 700px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.92rem; color: rgba(255, 255, 255, 0.65); transition: color 0.2s ease; }
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
}

/* Simple content page (about/contact/privacy) */
.content-page { max-width: 720px; margin: 0 auto; padding: 52px 0 76px; }
.content-page h2 { margin: 34px 0 14px; }
.content-page p { margin-bottom: 15px; }
.content-page ul { margin: 0 0 15px 22px; color: var(--ink-soft); }

/* Calculator explanatory diagram (mobile-first, responsive SVG) */
.calc-diagram {
  max-width: 680px;
  margin: 0 auto 36px;
  padding: 24px 20px;
  border: 1px solid #1F2937;
  border-radius: 12px;
  background: #fff;
}
.calc-diagram figure { margin: 0; }
.calc-diagram svg { width: 100%; height: auto; display: block; }
.calc-diagram figcaption {
  text-align: center;
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin-top: 10px;
}

/* Calculator interactive chart (mobile-first, responsive) */
.calc-chart {
  max-width: 680px;
  margin: 0 auto 40px;
  padding: 24px 20px;
  border: 1px solid #1F2937;
  border-radius: 12px;
  background: #fff;
}
.calc-chart-title { font-size: 1.15rem; margin: 0 0 6px; color: var(--navy); }
.calc-chart-intro { font-size: 0.95rem; color: var(--ink-soft); margin: 0 0 18px; }
.calc-chart-canvas-wrap {
  position: relative;
  width: 100%;
  height: 300px;
}
@media (max-width: 480px) {
  .calc-chart-canvas-wrap { height: 260px; }
}

/* Homepage tool/guide search */
.tool-search { max-width: 580px; margin: 0 auto 44px; position: relative; z-index: 200; }
.tool-search-box { position: relative; }
.tool-search-box .s-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; display: flex; }
.tool-search input { width: 100%; box-sizing: border-box; padding: 15px 18px 15px 48px; border: 2px solid var(--navy); border-radius: var(--radius); font-family: var(--font-body); font-size: 1rem; color: var(--ink); background: var(--card); transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tool-search input::placeholder { color: var(--ink-faint); }
.tool-search input:focus { outline: none; border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.tool-search-results { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); max-height: 360px; overflow-y: auto; z-index: 200; padding: 6px; }
.tool-search-results a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: var(--radius-sm); color: var(--ink); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
.tool-search-results a:hover { background: var(--bg-soft); color: var(--navy); }
.tool-search-results .s-badge { flex: none; font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 999px; }
.tool-search-results .s-badge.tool { background: var(--orange-tint); color: var(--orange-deep); }
.tool-search-results .s-badge.guide { background: #EFF4FD; color: var(--navy-soft); }
.tool-search-empty { padding: 14px 16px; color: var(--ink-soft); font-size: 0.92rem; }

/* Solar glossary page */
.glossary-alpha { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; max-width: 760px; margin: 0 auto 44px; }
.glossary-alpha a { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; height: 40px; padding: 0 10px; border: 1.5px solid var(--line-strong); border-radius: 10px; color: var(--navy); font-weight: 700; font-family: var(--font-display); text-decoration: none; transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
.glossary-alpha a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }
.glossary-list { max-width: 820px; margin: 0 auto; padding-bottom: 72px; }
.glossary-group { scroll-margin-top: 90px; }
.glossary-letter { font-family: var(--font-display); font-size: 1.55rem; color: var(--navy); margin: 40px 0 6px; padding-bottom: 8px; border-bottom: 2px solid var(--line); }
.glossary-term { padding: 22px 2px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.glossary-term h3 { font-size: 1.14rem; color: var(--ink); margin-bottom: 8px; }
.glossary-term p { color: var(--ink-soft); margin-bottom: 12px; line-height: 1.6; }
.glossary-link { color: var(--navy-soft); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.glossary-link:hover { color: var(--navy); }

/* Comparison tables page */
.compare-block { max-width: 900px; margin: 0 auto 56px; }
.compare-block h2 { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin-bottom: 8px; }
.compare-intro { color: var(--ink-soft); margin-bottom: 16px; line-height: 1.6; }
.compare-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 520px; }
.compare-table th, .compare-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 0.94rem; line-height: 1.5; vertical-align: top; }
.compare-table thead th { background: var(--navy); color: #fff; font-family: var(--font-display); font-weight: 700; border-bottom: none; position: sticky; top: 0; }
.compare-table tbody th { font-weight: 700; color: var(--ink); background: var(--bg-soft); white-space: nowrap; }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-bottom { margin-top: 14px; padding: 14px 18px; background: var(--green-tint); border-radius: var(--radius-sm); font-size: 0.94rem; line-height: 1.6; color: var(--ink); }
.compare-bottom strong { color: var(--navy); }
.compare-links { margin-top: 12px; font-size: 0.9rem; color: var(--ink-soft); }
.compare-links a { color: var(--navy-soft); font-weight: 700; text-decoration: none; }
.compare-links a:hover { color: var(--navy); }

/* Cheat sheets page — print/save as PDF */
@media print {
  .site-header, .site-footer, .nav, .nav-cta, .cheat-actions, .breadcrumb { display: none !important; }
  .page-header { background: none !important; padding-top: 0 !important; }
  body { background: #fff !important; }
  .compare-scroll { overflow: visible !important; border: none !important; }
  .compare-table { min-width: 0 !important; }
  .compare-table thead th { background: #1E3A8A !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .cheat-block { page-break-inside: avoid; margin-bottom: 24px !important; }
  .compare-links { display: none !important; }
}

/* Nav "Resources" dropdown (groups Compare / Cheat sheets / Glossary) */
.nav-dropdown { position: relative; }
.nav-dropdown-toggle { font-family: var(--font-body); font-size: 0.93rem; font-weight: 600; color: var(--ink-soft); padding: 8px 14px; border-radius: 999px; background: none; border: none; cursor: pointer; transition: color 0.2s ease, background 0.2s ease; }
.nav-dropdown-toggle::after { content: " \25BE"; font-size: 0.7em; }
.nav-dropdown:hover .nav-dropdown-toggle, .nav-dropdown-toggle.active { color: var(--navy); background: var(--bg-soft); }
.nav-dropdown-menu { position: absolute; top: 100%; left: 0; min-width: 190px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; margin: 0; list-style: none; display: none; z-index: 100; }
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-menu li { width: 100%; }
.nav-dropdown-menu a { display: block; white-space: nowrap; border-radius: var(--radius-sm); padding: 10px 14px; }

@media (max-width: 860px) {
  .nav-dropdown-toggle { display: none; }
  .nav-dropdown { width: 100%; }
  .nav-dropdown-menu { position: static; display: block; min-width: 0; background: transparent; border: none; border-radius: 0; box-shadow: none; padding: 0; margin: 0; }
  .nav-dropdown-menu a { padding: 14px 24px; border-radius: 0; border-top: 1px solid var(--line); white-space: normal; }
  .nav-links.open { max-height: 640px; }
}

/* Save & Share result button */
.btn-share { background: var(--card); color: var(--navy); border: 1.5px solid var(--navy); }
.btn-share:hover { background: var(--bg-soft); color: var(--navy); }
#share-msg { margin-left: 10px; font-size: 0.9rem; font-weight: 600; color: var(--green); opacity: 0; transition: opacity 0.2s ease; }
#share-msg.show { opacity: 1; }

/* Save & Share — desktop share modal */
.share-overlay { position: fixed; inset: 0; background: rgba(17, 24, 39, 0.55); display: flex; align-items: center; justify-content: center; z-index: 1000; padding: 20px; }
.share-modal { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 24px; width: 100%; max-width: 380px; position: relative; }
.share-modal h3 { font-family: var(--font-display); color: var(--navy); margin: 0 0 16px; font-size: 1.2rem; }
.share-close { position: absolute; top: 10px; right: 14px; background: none; border: none; font-size: 1.7rem; line-height: 1; color: var(--ink-faint); cursor: pointer; }
.share-close:hover { color: var(--ink); }
.share-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.share-opt { display: flex; align-items: center; justify-content: center; padding: 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.92rem; text-decoration: none; color: #fff; border: none; cursor: pointer; }
.share-opt.wa { background: #25D366; }
.share-opt.em { background: #6B7280; }
.share-opt.tg { background: #229ED9; }
.share-opt.tw { background: #111827; }
.share-opt.fb { background: #1877F2; }
.share-opt.copy { background: var(--card); color: var(--navy); border: 1.5px solid var(--navy); grid-column: 1 / -1; }
.share-opt.copy:hover { background: var(--bg-soft); }
.share-url { margin-top: 14px; font-size: 0.76rem; color: var(--ink-faint); word-break: break-all; background: var(--bg-soft); padding: 8px 10px; border-radius: 8px; }

/* System Report feature banner */
.report-banner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; background: linear-gradient(135deg, var(--navy), #2563EB); color: #fff; border-radius: var(--radius); padding: 24px 28px; margin: 0 0 28px; text-decoration: none; box-shadow: var(--shadow-md); transition: transform 0.15s ease; }
.report-banner:hover { transform: translateY(-2px); }
.report-banner h2 { color: #fff; font-family: var(--font-display); font-size: 1.35rem; margin: 8px 0 6px; }
.report-banner p { color: rgba(255,255,255,0.86); font-size: 0.95rem; max-width: 580px; margin: 0; }
.report-banner-tag { display: inline-block; background: var(--orange); color: #111827; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; }
.report-banner-cta { flex: none; background: #fff; color: var(--navy); font-weight: 700; padding: 12px 18px; border-radius: var(--radius-sm); white-space: nowrap; }

/* Collection page step badges */
.tool-step { display: inline-block; background: var(--orange-tint); color: var(--navy); font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* Collections category cards (bordered + icon) */
.collection-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin: 6px 0 34px; }
.collection-card { display: flex; align-items: center; gap: 14px; border: 2px solid #CBD5E1; border-radius: var(--radius); padding: 18px; text-decoration: none; background: var(--card); transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease; }
.collection-card:hover { border-color: var(--navy); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.collection-card .cc-icon { flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--orange-tint); display: flex; align-items: center; justify-content: center; }
.collection-card .cc-icon svg { width: 26px; height: 26px; stroke: var(--navy); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.collection-card .cc-text h3 { font-size: 1.02rem; color: var(--navy); margin: 0 0 3px; font-family: var(--font-display); }
.collection-card .cc-text p { font-size: 0.84rem; color: var(--ink-soft); margin: 0; line-height: 1.35; }

/* Section-heading icons (comparisons / cheat-sheets) — icon sits ABOVE the heading */
.h2-icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; background: var(--orange-tint); margin: 0 0 12px 0; }
.h2-icon svg { width: 24px; height: 24px; stroke: var(--orange-deep); }

/* H1 page icon (internal tool + article pages) */
.page-icon { display: flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 12px; background: var(--orange-tint); margin: 0 0 14px; }
.page-icon svg { width: 28px; height: 28px; stroke: var(--orange-deep); }


/* Country page: selector + action buttons */
.country-picker { margin: 24px 0 8px; }
.country-picker label { display:block; font-weight:700; color:var(--navy); margin-bottom:8px; font-size:0.95rem; }
.country-picker select { width:100%; max-width:420px; padding:12px 14px; border:2px solid #CBD5E1; border-radius:12px; background:var(--card); font-size:1rem; color:var(--ink); font-family:inherit; }
.country-picker select:focus { outline:none; border-color:var(--navy); }
.btn-row { display:flex; gap:12px; flex-wrap:wrap; margin:14px 0 4px; }

.btn-outline { background:var(--card); color:var(--navy); border:2px solid #CBD5E1; }
.btn-outline:hover { border-color:var(--navy); }


/* Whole tool-card clickable (stretched-link) — user can tap anywhere on the card */
.tool-card { position: relative; }
.tool-card a.tool-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tool-card a.tool-link { position: static; }


/* Whole-card tap/hover tint (light blue) — matches the country cards */
.tool-card:hover, .tool-card:focus-within, .tool-card:active { background: #EFF4FD; }
.tool-card a.tool-link { -webkit-tap-highlight-color: transparent; }
.collection-card:hover, .collection-card:focus-within, .collection-card:active { background: #EFF4FD; }
