/* ============================================================
   PowerCalc — Main Stylesheet
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --navy:       #1e3a5f;
  --navy-dark:  #122540;
  --navy-light: #2a4f7c;
  --amber:      #f59e0b;
  --amber-dark: #d97706;
  --amber-light:#fde68a;
  --green:      #16a34a;
  --green-bg:   #dcfce7;
  --red:        #dc2626;
  --red-bg:     #fee2e2;
  --orange:     #ea580c;
  --orange-bg:  #ffedd5;
  --bg:         #f1f5f9;
  --bg-dark:    #e2e8f0;
  --card:       #ffffff;
  --border:     #cbd5e1;
  --border-light: #e2e8f0;
  --text:       #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow:     0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,.14);
  --radius:     10px;
  --radius-lg:  16px;
  --radius-sm:  6px;
  --transition: 0.18s ease;
  --max-width:  1180px;
}

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen,
               Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--navy); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--amber-dark); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { line-height: 1.25; font-weight: 700; color: var(--text); }
h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem); }
h3 { font-size: clamp(1.1rem, 2.5vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { color: var(--text-muted); margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4rem; color: var(--text-muted); }
li { margin-bottom: .35rem; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

@media (max-width: 900px) {
  .page-grid { grid-template-columns: 1fr; }
  .sidebar { display: none; }
}

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--navy-dark);
  border-bottom: 3px solid var(--amber);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--navy-dark);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -.5px;
}

.logo-text span { color: var(--amber); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav a {
  color: #cbd5e1;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition);
}

.site-nav a:hover, .site-nav a.active { color: var(--amber); }

.nav-cta {
  background: var(--amber);
  color: var(--navy-dark) !important;
  padding: .4rem .9rem;
  border-radius: var(--radius-sm);
  font-weight: 700 !important;
}

.nav-cta:hover { background: var(--amber-dark); color: var(--navy-dark) !important; }

@media (max-width: 700px) {
  .site-nav { display: none; }
}

/* ── Ad Slots ─────────────────────────────────────────────── */
.ad-slot {
  background: #f8fafc;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  overflow: hidden;
}

.ad-slot-leaderboard {
  width: 100%;
  height: 90px;
  margin: 1rem 0;
}

.ad-slot-banner {
  width: 100%;
  height: 90px;
  background: var(--navy-dark);
  border: none;
  border-radius: 0;
}

.ad-slot-rectangle {
  width: 300px;
  height: 250px;
  margin-bottom: 1.5rem;
}

.ad-slot-large {
  width: 300px;
  height: 600px;
  position: sticky;
  top: 80px;
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%);
  padding: 4rem 0 3.5rem;
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(245,158,11,.12) 0%, transparent 60%);
}

.hero-inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: center;
}

@media (max-width: 700px) { .hero-inner { grid-template-columns: 1fr; } }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(245,158,11,.18);
  border: 1px solid rgba(245,158,11,.4);
  color: var(--amber-light);
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .3rem .7rem;
  border-radius: 50px;
  margin-bottom: .9rem;
}

.hero h1 { color: #ffffff; margin-bottom: .75rem; }
.hero h1 span { color: var(--amber); }

.hero p {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 520px;
  margin-bottom: 1.5rem;
}

.hero-actions { display: flex; gap: .75rem; flex-wrap: wrap; }

.hero-stat {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  text-align: center;
  min-width: 120px;
}

.hero-stat-number {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber);
  line-height: 1;
  margin-bottom: .3rem;
}

.hero-stat-label {
  font-size: .78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.hero-stats {
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .7rem 1.4rem;
  border-radius: var(--radius-sm);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--amber);
  color: var(--navy-dark);
}

.btn-primary:hover {
  background: var(--amber-dark);
  color: var(--navy-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(245,158,11,.35);
}

.btn-secondary {
  background: rgba(255,255,255,.1);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,.2);
}

.btn-secondary:hover {
  background: rgba(255,255,255,.18);
  color: #ffffff;
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
}

.btn-outline:hover { background: var(--navy); color: #ffffff; }

.btn-lg { padding: .85rem 1.8rem; font-size: 1.05rem; }

.btn-full { width: 100%; justify-content: center; }

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.card-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.card-body { padding: 1.5rem; }

.card-footer {
  padding: 1rem 1.5rem;
  border-top: 1px solid var(--border-light);
  background: #f8fafc;
}

/* ── Tool Cards (Homepage) ────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: all var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.tool-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--amber-light);
  color: var(--text);
}

.tool-card:hover::before { transform: scaleX(1); }

.tool-card-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.tool-card-label {
  display: inline-block;
  background: var(--amber-light);
  color: var(--amber-dark);
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  padding: .15rem .5rem;
  border-radius: 50px;
}

.tool-card h3 { color: var(--text); font-size: 1.1rem; margin: 0; }
.tool-card p { font-size: .9rem; margin: 0; flex: 1; }

.tool-card-arrow {
  color: var(--amber);
  font-size: 1.2rem;
  align-self: flex-end;
  transition: transform var(--transition);
}

.tool-card:hover .tool-card-arrow { transform: translateX(4px); }

/* ── Sections ─────────────────────────────────────────────── */
.section { padding: 3.5rem 0; }
.section-sm { padding: 2rem 0; }

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-header h2 { margin-bottom: .5rem; }

.section-tag {
  display: inline-block;
  background: var(--amber-light);
  color: var(--amber-dark);
  font-size: .78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  padding: .2rem .6rem;
  border-radius: 50px;
  margin-bottom: .6rem;
}

/* ── Calculator Styles ────────────────────────────────────── */
.calc-wrap {
  background: var(--card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.calc-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 1.5rem;
  color: white;
}

.calc-header h2 { color: white; font-size: 1.25rem; margin-bottom: .25rem; }
.calc-header p { color: #94a3b8; font-size: .9rem; margin: 0; }

.calc-body { padding: 1.5rem; }

/* Categories */
.appliance-categories {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.cat-btn {
  padding: .4rem .85rem;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}

.cat-btn:hover, .cat-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: white;
}

/* Appliance list */
.appliance-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: .6rem;
  max-height: 400px;
  overflow-y: auto;
  padding: .25rem;
  margin-bottom: 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.appliance-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  background: var(--card);
  user-select: none;
}

.appliance-item:hover { border-color: var(--navy-light); background: #f8fafc; }
.appliance-item.selected { border-color: var(--amber); background: #fffbeb; }

.appliance-item-icon { font-size: 1.2rem; min-width: 28px; text-align: center; }

.appliance-item-info { flex: 1; min-width: 0; }

.appliance-item-name {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.appliance-item-watts {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .1rem;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: .3rem;
}

.qty-btn {
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  background: var(--bg);
  color: var(--text-muted);
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: all var(--transition);
  line-height: 1;
}

.qty-btn:hover { border-color: var(--navy); color: var(--navy); }

.qty-display {
  min-width: 20px;
  text-align: center;
  font-size: .88rem;
  font-weight: 700;
  color: var(--text);
}

/* Selected list */
.selected-list {
  display: flex;
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
  min-height: 60px;
}

.selected-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .6rem 1rem;
  background: #fffbeb;
  border: 1px solid var(--amber-light);
  border-radius: var(--radius-sm);
  gap: .75rem;
}

.selected-item-left { display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0; }

.selected-item-name {
  font-size: .88rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.selected-item-watts { font-size: .78rem; color: var(--text-muted); }

.selected-item-right { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

.remove-btn {
  background: none;
  border: none;
  color: var(--text-light);
  cursor: pointer;
  font-size: .9rem;
  padding: .1rem;
  transition: color var(--transition);
}

.remove-btn:hover { color: var(--red); }

.empty-selection {
  text-align: center;
  padding: 1.5rem;
  color: var(--text-light);
  font-size: .9rem;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
}

/* Results panel */
.results-panel {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: white;
  margin-top: 1.5rem;
}

.results-panel.hidden { display: none; }

.results-title {
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #94a3b8;
  margin-bottom: 1.25rem;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 600px) { .results-grid { grid-template-columns: 1fr 1fr; } }

.result-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
}

.result-stat-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber);
  display: block;
  margin-bottom: .2rem;
  line-height: 1;
}

.result-stat-label {
  font-size: .75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.recommendation-box {
  background: rgba(245,158,11,.15);
  border: 1px solid rgba(245,158,11,.35);
  border-radius: var(--radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.rec-label {
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--amber-light);
  margin-bottom: .3rem;
}

.rec-size {
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: .25rem;
}

.rec-type {
  font-size: .88rem;
  color: #94a3b8;
}

.rec-note {
  font-size: .78rem;
  color: var(--amber-light);
  margin-top: .5rem;
  display: flex;
  align-items: center;
  gap: .35rem;
}

/* Surcharge warning */
.surge-warning {
  background: rgba(234, 88, 12, .15);
  border: 1px solid rgba(234, 88, 12, .35);
  border-radius: var(--radius-sm);
  padding: .7rem 1rem;
  font-size: .82rem;
  color: #fed7aa;
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

/* Disclaimer */
.disclaimer {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-sm);
  padding: .75rem 1rem;
  font-size: .75rem;
  color: #64748b;
  line-height: 1.5;
}

.disclaimer a { color: #94a3b8; }

/* ── Form Elements ────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}

.form-hint {
  font-size: .78rem;
  color: var(--text-muted);
  margin-top: .25rem;
}

.form-input {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--card);
  transition: border-color var(--transition);
  outline: none;
}

.form-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,95,.12); }

.form-select {
  width: 100%;
  padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: .95rem;
  color: var(--text);
  background: var(--card);
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .9rem center;
}

.form-select:focus { border-color: var(--navy); }

.input-group {
  display: flex;
  gap: .75rem;
}

.input-group .form-input { flex: 1; }

.input-addon {
  display: flex;
  align-items: center;
  padding: 0 .75rem;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: .9rem;
  white-space: nowrap;
}

.input-with-addon { position: relative; }
.input-with-addon .form-input { padding-left: 2rem; }
.input-with-addon .addon-prefix {
  position: absolute;
  left: .75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .9rem;
  pointer-events: none;
}

/* Range Slider */
.range-wrap {
  position: relative;
  padding-bottom: 1.5rem;
}

.form-range {
  width: 100%;
  height: 6px;
  appearance: none;
  background: var(--border);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
}

.form-range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  border: 2px solid white;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  cursor: pointer;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: .4rem;
}

.range-value {
  position: absolute;
  bottom: 0;
  font-size: .82rem;
  font-weight: 600;
  color: var(--navy);
  pointer-events: none;
}

/* ── Tables ───────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}

.data-table th {
  background: var(--navy-dark);
  color: white;
  padding: .7rem 1rem;
  text-align: left;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.data-table td {
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }

.data-table .running-watts { color: var(--navy); font-weight: 600; }
.data-table .startup-watts { color: var(--orange); font-weight: 600; }

.table-category {
  background: var(--bg);
  font-weight: 700;
  color: var(--text) !important;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--border-light); }

/* ── Badges / Pills ───────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .2rem .6rem;
  border-radius: 50px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.badge-green { background: var(--green-bg); color: var(--green); }
.badge-orange { background: var(--orange-bg); color: var(--orange); }
.badge-red { background: var(--red-bg); color: var(--red); }
.badge-navy { background: #e0e7ff; color: var(--navy); }
.badge-amber { background: var(--amber-light); color: var(--amber-dark); }

/* ── Info Boxes ───────────────────────────────────────────── */
.info-box {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: .9rem;
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  margin: 1.25rem 0;
}

.info-box-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: .1rem; }

.info-box p { margin: 0; }

.info-box-tip { background: #eff6ff; border-left: 3px solid #3b82f6; }
.info-box-warning { background: var(--orange-bg); border-left: 3px solid var(--orange); }
.info-box-success { background: var(--green-bg); border-left: 3px solid var(--green); }
.info-box-caution { background: var(--amber-light); border-left: 3px solid var(--amber); }

/* ── Steps ────────────────────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  position: relative;
}

.step-number {
  width: 42px;
  height: 42px;
  background: var(--navy);
  color: white;
  font-weight: 800;
  font-size: 1.1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto .9rem;
}

.step-icon { font-size: 1.6rem; margin-bottom: .6rem; }

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }

.faq-item {
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 1rem 1.25rem;
  text-align: left;
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  transition: background var(--transition);
}

.faq-question:hover { background: #f8fafc; }

.faq-icon { color: var(--navy); font-style: normal; flex-shrink: 0; transition: transform var(--transition); }
.faq-item.open .faq-icon { transform: rotate(180deg); }

.faq-answer {
  padding: 0 1.25rem;
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
}

.faq-item.open .faq-answer {
  padding: 0 1.25rem 1rem;
  max-height: 600px;
}

/* ── Guide Section ────────────────────────────────────────── */
.guide-section { padding: 2.5rem 0; }

.guide-intro {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 3rem 0;
  color: white;
}

.guide-intro h1 { color: white; margin-bottom: .75rem; }
.guide-intro p { color: #94a3b8; font-size: 1.05rem; max-width: 580px; }

/* ── Page Header ──────────────────────────────────────────── */
.page-header {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  padding: 2.5rem 0;
  color: white;
  border-bottom: 3px solid var(--amber);
}

.page-header h1 { color: white; margin-bottom: .5rem; }
.page-header p { color: #94a3b8; font-size: 1rem; max-width: 620px; margin: 0; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .82rem;
  margin-bottom: .75rem;
  flex-wrap: wrap;
}

.breadcrumb a { color: #94a3b8; }
.breadcrumb a:hover { color: var(--amber); }
.breadcrumb-sep { color: #475569; }
.breadcrumb-current { color: var(--amber-light); }

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 768px) { 
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand .logo-text { color: white; }

.footer-tagline {
  font-size: .88rem;
  color: #64748b;
  margin: .75rem 0 1.25rem;
  line-height: 1.6;
}

.footer-col h4 {
  color: white;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.footer-links a {
  color: #64748b;
  font-size: .88rem;
  transition: color var(--transition);
}

.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid #1e3a5f;
  padding-top: 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-disclaimer {
  font-size: .75rem;
  color: #334155;
  line-height: 1.6;
  max-width: 640px;
}

.footer-copy {
  font-size: .8rem;
  color: #334155;
  white-space: nowrap;
}

/* ── Utilities ────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-amber { color: var(--amber-dark); }
.text-green { color: var(--green); }
.text-orange { color: var(--orange); }
.text-navy { color: var(--navy); }

.font-bold { font-weight: 700; }
.font-mono { font-family: 'SF Mono', Consolas, monospace; }

.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.gap-sm { gap: .5rem; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }

.divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 1.5rem 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

/* Gauge output visual */
.gauge-result {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  border: 2px solid var(--border-light);
  margin-top: 1.5rem;
}

.gauge-result.warning { border-color: var(--orange); background: var(--orange-bg); }
.gauge-result.danger { border-color: var(--red); background: var(--red-bg); }
.gauge-result.good { border-color: var(--green); background: var(--green-bg); }

.gauge-num {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: .25rem;
}

.gauge-unit { font-size: 1.2rem; font-weight: 600; }

.gauge-label {
  font-size: 1rem;
  font-weight: 600;
  margin-top: .25rem;
}

.gauge-desc { font-size: .88rem; color: var(--text-muted); margin-top: .5rem; }

/* Progress bar */
.progress-bar-wrap {
  background: var(--border-light);
  border-radius: 6px;
  height: 10px;
  overflow: hidden;
  margin: .75rem 0;
}

.progress-bar {
  height: 100%;
  border-radius: 6px;
  background: var(--amber);
  transition: width .5s ease;
}

.progress-bar.danger { background: var(--red); }
.progress-bar.warning { background: var(--orange); }
.progress-bar.good { background: var(--green); }

/* ── Generic utility classes ──────────────────────────────── */
.hidden { display: none !important; }

/* ── Form grid (2-column) ─────────────────────────────────── */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ── Range / Slider ──────────────────────────────────────── */
.range-input {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: var(--border-light);
  outline: none;
  margin: .4rem 0;
}
.range-input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  border: 2px solid white;
  box-shadow: 0 0 0 2px var(--amber);
}
.range-input::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--amber);
  cursor: pointer;
  border: 2px solid white;
}

/* ── Responsive tweaks ───────────────────────────────────── */
@media (max-width: 640px) {
  .calc-body { padding: 1rem; }
  .results-grid { grid-template-columns: 1fr 1fr; }
  .appliance-list { grid-template-columns: 1fr; }
}

/* ── Cookie Consent Banner ───────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--navy-dark);
  color: #e2e8f0;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 24px rgba(0,0,0,.35);
  font-size: .9rem;
  line-height: 1.5;
}
#cookie-banner p { color: #e2e8f0; margin: 0; flex: 1 1 300px; }
#cookie-banner a { color: var(--amber); text-decoration: underline; }
#cookie-banner a:hover { color: var(--amber-light); }
.cookie-actions {
  display: flex;
  gap: .65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.cookie-btn-accept {
  padding: .5rem 1.25rem;
  background: var(--amber);
  color: var(--navy-dark);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  font-family: inherit;
  transition: background var(--transition);
}
.cookie-btn-accept:hover { background: var(--amber-dark); }
.cookie-btn-reject {
  padding: .5rem 1.25rem;
  background: transparent;
  color: #e2e8f0;
  border: 1px solid #475569;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--transition), color var(--transition);
}
.cookie-btn-reject:hover { border-color: #94a3b8; color: #fff; }
@media (max-width: 560px) {
  #cookie-banner { flex-direction: column; align-items: flex-start; }
  .cookie-actions { width: 100%; }
  .cookie-btn-accept, .cookie-btn-reject { flex: 1; text-align: center; }
}

/* ══════════════════════════════════════════════════════════
   MOBILE OPTIMIZATIONS
   ══════════════════════════════════════════════════════════ */

/* ── Mobile Nav Hamburger ─────────────────────────────────── */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: .5rem;
  flex-shrink: 0;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #cbd5e1;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease, background .2s ease;
}

.nav-toggle:hover span { background: var(--amber); }

.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; transform: translateX(-6px); }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

@media (max-width: 700px) {
  .nav-toggle { display: flex; }

  /* nav wrapper: take no space so logo + toggle fill the header */
  .header-inner > nav {
    position: static;
    flex: 0 0 0;
    width: 0;
    overflow: visible;
  }

  .site-nav {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-dark);
    border-bottom: 3px solid var(--amber);
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease;
    gap: 0;
    z-index: 99;
    box-shadow: 0 6px 20px rgba(0,0,0,.35);
  }

  .site-nav.nav-open { max-height: 500px; }

  .site-nav li { width: 100%; }

  .site-nav a {
    display: block;
    padding: .85rem 1.5rem;
    font-size: .975rem;
    border-bottom: 1px solid rgba(255,255,255,.06);
  }

  .site-nav li:last-child a { border-bottom: none; }

  .nav-cta {
    margin: .4rem 1rem .6rem !important;
    border-radius: var(--radius-sm) !important;
    text-align: center;
    padding: .7rem 1rem !important;
  }
}

/* ── Section / Hero Padding ───────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 2.5rem 0 2rem; }
  .section { padding: 2rem 0; }
  .section-sm { padding: 1.25rem 0; }
  .page-header { padding: 1.5rem 0; }
  .site-footer { padding: 2rem 0 1.25rem; margin-top: 2rem; }
}

/* ── Container Padding ────────────────────────────────────── */
@media (max-width: 480px) {
  .container { padding: 0 .85rem; }
}

/* ── Hero Stats Row ───────────────────────────────────────── */
@media (max-width: 700px) {
  .hero-stats {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: .5rem;
  }
  .hero-stat { min-width: 90px; padding: .9rem 1rem; }
  .hero-stat-number { font-size: 1.6rem; }
}

/* ── Hero Actions ─────────────────────────────────────────── */
@media (max-width: 420px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
}

/* ── Page Header Text ─────────────────────────────────────── */
@media (max-width: 600px) {
  .page-header h1 { font-size: clamp(1.35rem, 5vw, 1.75rem); }
  .page-header p { font-size: .88rem; }
}

/* ── Article Tables: Horizontal Scroll ───────────────────── */
@media (max-width: 640px) {
  article table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  article table thead,
  article table tbody,
  article table tr { display: table; width: 100%; table-layout: auto; }
  article table td,
  article table th { white-space: nowrap; min-width: 80px; }
  article table td:first-child,
  article table th:first-child { min-width: 130px; }
}

/* ── Override Inline 2-Column Grids on Mobile ─────────────── */
/* Attribute selector catches all inline grid-template-columns:1fr 1fr  */
@media (max-width: 700px) {
  [style*="grid-template-columns:1fr 1fr"],
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 1rem !important;
  }
  /* index.html Why It Matters section */
  .why-matters-grid {
    grid-template-columns: 1fr !important;
  }
}

/* ── Tool Card title/desc used in article guide cards ─────── */
.tool-card-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .2rem;
  line-height: 1.3;
}
.tool-card-desc {
  font-size: .82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

/* ── Calculator / Card Padding on Mobile ─────────────────── */
@media (max-width: 480px) {
  .card-body { padding: 1rem; }
  .calc-header { padding: 1.1rem 1rem; }
  .results-panel { padding: 1.1rem 1rem; }
  .results-grid { grid-template-columns: 1fr 1fr !important; }
}

/* ── Wattage Table Scroll ─────────────────────────────────── */
@media (max-width: 640px) {
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 420px; }
  .data-table th, .data-table td { padding: .5rem .65rem; font-size: .82rem; }
}

/* ── Footer Bottom on Mobile ──────────────────────────────── */
@media (max-width: 480px) {
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: .6rem;
  }
  .footer-disclaimer { font-size: .7rem; }
}

/* ── Info Box: Stack on Very Small Screens ────────────────── */
@media (max-width: 420px) {
  .info-box { flex-direction: column; gap: .4rem; }
}

/* ── Active footer link ───────────────────────────────────── */
.footer-links a.active { color: var(--amber); }

