:root {
  --bg-primary: #090d16;
  --bg-card: rgba(17, 24, 39, 0.85);
  --bg-card-hover: rgba(26, 36, 56, 0.95);
  --bg-input: #0f172a;
  --border: rgba(51, 65, 85, 0.6);
  --border-focus: #06b6d4;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --thermal-orange: #f97316;
  --thermal-orange-glow: rgba(249, 115, 22, 0.25);
  --thermal-amber: #f59e0b;
  --cyan: #06b6d4;
  --cyan-glow: rgba(6, 182, 212, 0.25);
  --emerald: #10b981;
  --emerald-glow: rgba(16, 185, 129, 0.25);
  --rose: #f43f5e;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  background-image:
    radial-gradient(circle at 12% 15%, rgba(249, 115, 22, 0.09) 0%, transparent 45%),
    radial-gradient(circle at 88% 25%, rgba(6, 182, 212, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 85%, rgba(16, 185, 129, 0.06) 0%, transparent 50%);
  background-attachment: fixed;
  overflow-x: hidden;
}

.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem 1.5rem;
}

/* Header */
.header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  border-radius: 9999px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.35);
  color: var(--thermal-orange);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.badge-tag::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--thermal-orange);
  box-shadow: 0 0 8px var(--thermal-orange);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 0.75rem;
  background: linear-gradient(135deg, #ffffff 40%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.highlight-text {
  background: linear-gradient(135deg, var(--thermal-orange) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 760px;
  margin: 0 auto;
}

/* Fleet Cross-Links Banner */
.fleet-banner {
  background: linear-gradient(90deg, rgba(249, 115, 22, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid rgba(6, 182, 212, 0.25);
  border-radius: 12px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  font-size: 0.9rem;
  margin: 1.5rem auto 0 auto;
  max-width: 860px;
  flex-wrap: wrap;
}

.fleet-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #38bdf8;
  font-weight: 700;
  text-decoration: none;
  transition: var(--transition);
}

.fleet-link:hover {
  color: #ffffff;
  transform: translateY(-1px);
}

/* Preset Matchup Selector */
.preset-section {
  margin: 2rem 0 2rem 0;
  text-align: center;
}

.preset-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.preset-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
}

.preset-btn {
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.55rem 1.05rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.preset-btn:hover {
  background: rgba(45, 62, 92, 0.9);
  border-color: var(--thermal-orange);
  transform: translateY(-1px);
}

.preset-btn.active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(6, 182, 212, 0.25));
  border-color: var(--cyan);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(6, 182, 212, 0.3);
}

/* Calculator Layout Grid */
.calculator-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 1rem;
}

@media (min-width: 960px) {
  .calculator-grid {
    grid-template-columns: 1.05fr 1.15fr;
    align-items: start;
  }
}

/* Card Styling */
.card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  position: relative;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 0.85rem;
}

.card-title .icon {
  font-size: 1.3rem;
}

/* Form Groups & Inputs */
.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
}

.form-val-display {
  color: var(--cyan);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: rgba(6, 182, 212, 0.1);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.form-val-display.orange {
  color: var(--thermal-orange);
  background: rgba(249, 115, 22, 0.12);
}

.form-val-display.green {
  color: var(--emerald);
  background: rgba(16, 185, 129, 0.12);
}

select, input[type="text"], input[type="number"] {
  width: 100%;
  background-color: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
  transition: var(--transition);
  outline: none;
}

select:focus, input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-glow);
}

/* Segmented Fuel / Tier Button Grid */
.fuel-grid, .tier-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.option-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  text-align: left;
}

.option-btn:hover {
  background: rgba(45, 62, 92, 0.8);
  color: #ffffff;
}

.option-btn.selected {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(6, 182, 212, 0.2));
  border-color: var(--thermal-orange);
  color: #ffffff;
}

.option-btn .btn-title {
  font-weight: 700;
  color: var(--text-main);
}

.option-btn .btn-sub {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Sliders */
.slider-container {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: 9999px;
  outline: none;
  margin: 0.5rem 0;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  border: 2px solid #ffffff;
  box-shadow: 0 0 10px var(--cyan-glow);
  transition: transform 0.1s;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-marks {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Checkbox / Toggle Switch */
.toggle-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.toggle-group:hover {
  border-color: var(--emerald);
}

.toggle-group.active {
  border-color: var(--emerald);
  background: rgba(16, 185, 129, 0.1);
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.toggle-label {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.toggle-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.toggle-badge {
  background: rgba(16, 185, 129, 0.2);
  color: var(--emerald);
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}

/* Results Hero Card */
.results-hero {
  background: linear-gradient(145deg, rgba(17, 24, 39, 0.95), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(6, 182, 212, 0.12);
}

.results-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--thermal-orange), var(--cyan), var(--emerald));
}

.hero-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.hero-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.hero-value {
  font-size: clamp(2.5rem, 5vw, 3.6rem);
  font-weight: 800;
  color: var(--emerald);
  line-height: 1.1;
  text-shadow: 0 0 20px var(--emerald-glow);
  font-variant-numeric: tabular-nums;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 0.4rem;
}

/* Payback & Arbitrage Metrics Grid */
.metrics-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.metric-box {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
}

.metric-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.metric-num {
  font-size: 1.45rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
}

.metric-num.cyan {
  color: var(--cyan);
}

.metric-num.orange {
  color: var(--thermal-orange);
}

.metric-num.emerald {
  color: var(--emerald);
}

.metric-footnote {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

/* Primary Outbound Amazon CTA Button */
.cta-banner-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  font-size: 1.05rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35);
  margin-top: 1.25rem;
  text-align: center;
}

.cta-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.5);
  filter: brightness(1.08);
}

/* Comparison Visualizer */
.comparison-container {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.comp-header {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
}

.bar-group {
  margin-bottom: 0.85rem;
}

.bar-label-wrap {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.bar-bg {
  width: 100%;
  height: 10px;
  background: #1e293b;
  border-radius: 9999px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.bar-fill.fuel {
  background: linear-gradient(90deg, var(--thermal-orange), var(--thermal-amber));
}

.bar-fill.heatpump {
  background: linear-gradient(90deg, var(--cyan), var(--emerald));
}

/* 5-Year Cumulative ROI Timeline */
.timeline-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.timeline-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

.timeline-card {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.timeline-year {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
}

.timeline-val {
  font-size: 1rem;
  font-weight: 800;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.timeline-val.positive {
  color: var(--emerald);
}

.timeline-val.negative {
  color: var(--rose);
}

/* Share & URL Button */
.share-wrap {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.share-btn {
  flex: 1;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid var(--border);
  color: var(--text-main);
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
}

.share-btn:hover {
  background: rgba(45, 62, 92, 0.9);
  border-color: var(--cyan);
}

/* Hardware Catalog Section */
.catalog-section {
  margin-top: 3.5rem;
}

.section-header {
  text-align: center;
  margin-bottom: 2rem;
}

.section-badge {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--cyan);
  letter-spacing: 0.05em;
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  margin-top: 0.35rem;
}

.section-sub {
  color: var(--text-muted);
  max-width: 650px;
  margin: 0.5rem auto 0 auto;
  font-size: 0.95rem;
}

.hardware-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .hardware-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .hardware-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.hardware-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
  position: relative;
}

.hardware-card:hover {
  border-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(6, 182, 212, 0.15);
}

.card-tag {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  color: var(--cyan);
  border: 1px solid rgba(6, 182, 212, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
  align-self: flex-start;
}

.hardware-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.hardware-type {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 0.85rem;
}

.spec-list {
  list-style: none;
  font-size: 0.82rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.spec-item {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  color: var(--text-muted);
}

.spec-item strong {
  color: var(--text-main);
}

.card-footer {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.85rem;
}

.price-val {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--emerald);
}

.price-label {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  border: none;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
}

.buy-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* FAQ Accordion Section */
.faq-section {
  margin-top: 4rem;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  overflow: hidden;
  transition: var(--transition);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--text-main);
  padding: 1.15rem 1.35rem;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}

.faq-icon {
  font-size: 1.1rem;
  color: var(--cyan);
  transition: transform 0.25s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  padding: 0 1.35rem;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.faq-item.open .faq-answer {
  max-height: 350px;
  padding-bottom: 1.25rem;
}

/* Footer & FTC Disclosure */
.footer {
  margin-top: 5rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.footer-link {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
}

.footer-link:hover {
  color: #ffffff;
}

.ftc-disclosure {
  max-width: 780px;
  margin: 1rem auto 0 auto;
  line-height: 1.5;
  color: var(--text-dim);
}

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: #1e293b;
  border: 1px solid var(--cyan);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* ==========================================================================
   HIGH-TICKET CONTRACTOR LEAD-GEN SECTION ($50 - $100 BOUNTY)
   ========================================================================== */
.contractor-lead-section {
  margin: 3.5rem 0 2rem 0;
}

.contractor-lead-card {
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.85), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(245, 158, 11, 0.12);
}

.contractor-lead-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--thermal-amber), var(--cyan), var(--emerald));
}

.contractor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 1rem;
}

.contractor-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.badge-contractor-glow {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.4);
  color: var(--thermal-amber);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-contractor-state {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: var(--cyan);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.contractor-rebate-tag {
  color: var(--emerald);
  font-size: 0.85rem;
  font-weight: 700;
}

.contractor-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 860px) {
  .contractor-grid {
    grid-template-columns: 1.25fr 1fr;
  }
}

.contractor-heading {
  font-size: 1.45rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 0.65rem;
  color: var(--text-main);
}

.contractor-sub {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 1.25rem;
}

.contractor-perks {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.perk-pill {
  font-size: 0.85rem;
  color: #cbd5e1;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.contractor-cta-box {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  text-align: center;
}

.cta-box-title {
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 0.25rem;
  color: var(--text-main);
}

.cta-box-sub {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.contractor-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  padding: 0.95rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(234, 88, 12, 0.35);
}

.contractor-btn:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(234, 88, 12, 0.5);
}

.cta-disclaimer {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 0.75rem;
}

/* ==========================================================================
   MODAL DIALOGS (EMAIL LEAD MAGNET & B2B WHITELABEL)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 13, 22, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  background: #111827;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.8), 0 0 30px rgba(6, 182, 212, 0.15);
  transform: scale(0.95);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.modal-overlay.open .modal-card {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  transition: var(--transition);
}

.modal-close:hover {
  color: #ffffff;
}

.modal-badge {
  display: inline-block;
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  margin-bottom: 0.85rem;
  text-transform: uppercase;
}

.modal-title {
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.modal-desc {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.form-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.modal-input {
  width: 100%;
  background: #090d16;
  border: 1px solid var(--border);
  color: #ffffff;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.modal-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 2px var(--cyan-glow);
}

.modal-submit-btn {
  background: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  color: #ffffff;
  border: none;
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-submit-btn:hover {
  filter: brightness(1.15);
}

.form-feedback {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  display: none;
}

.form-feedback.success {
  display: block;
  color: var(--emerald);
}

.modal-footer-notes {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* ==========================================================================
   B2B CONTRACTOR / DEALERSHIP EMBED BANNER
   ========================================================================== */
.b2b-banner {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  font-size: 0.85rem;
  margin: 2.5rem auto 1.5rem auto;
  max-width: 860px;
  flex-wrap: wrap;
  text-align: center;
}

.b2b-link {
  background: transparent;
  border: none;
  color: var(--cyan);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
  font-size: 0.85rem;
}

.b2b-link:hover {
  color: #ffffff;
}

/* ==========================================================================
   PRINT / PDF AUDIT STYLESHEET
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    background-image: none !important;
  }

  .header .badge-tag,
  .fleet-banner,
  .preset-section,
  .share-wrap,
  .cta-banner-btn,
  .modal-overlay,
  .toast,
  .b2b-banner,
  #state-select,
  input[type="range"],
  select,
  .footer-nav,
  .faq-section {
    display: none !important;
  }

  .container {
    padding: 0 !important;
    max-width: 100% !important;
  }

  .card, .results-hero, .comparison-container, .timeline-section, .contractor-lead-card, .dynamic-hw-card, .install-gear-bundle {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: none !important;
    page-break-inside: avoid;
  }

  .hero-value {
    color: #059669 !important;
    text-shadow: none !important;
  }

  .metric-num {
    color: #0f172a !important;
  }

  .metric-box {
    background: #f8fafc !important;
    border: 1px solid #e2e8f0 !important;
  }

  a, .btn-affiliate-compact {
    color: #0284c7 !important;
    text-decoration: underline !important;
  }
}

/* Dynamic Hardware Card & Bundle Animations */
.dynamic-hw-card {
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.dynamic-hw-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
}

.install-gear-bundle {
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Comparison Table & SEO Directory Styles */
.spec-comparison-wrap {
  margin: 2rem 0 3rem 0;
  background: var(--bg-card, rgba(17, 24, 39, 0.85));
  border: 1px solid var(--border, rgba(51, 65, 85, 0.6));
  border-radius: var(--radius-md, 14px);
  padding: 1.5rem;
  overflow-x: auto;
}

.spec-comparison-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: #ffffff;
}

.spec-comparison-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.15rem;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  min-width: 640px;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.spec-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--cyan);
  background: rgba(6, 182, 212, 0.08);
}

.spec-table td {
  color: #e2e8f0;
}

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

.table-cta-link {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #0a0e17 !important;
  font-weight: 700;
  font-size: 0.78rem;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  text-decoration: none;
  white-space: nowrap;
}

.table-cta-link:hover {
  filter: brightness(1.08);
}

.seo-directory-section {
  margin: 3rem 0 2rem 0;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border, rgba(51, 65, 85, 0.6));
  border-radius: var(--radius-md, 14px);
  padding: 1.75rem;
}

.seo-directory-section h2 {
  font-size: 1.25rem;
  margin-bottom: 0.4rem;
  color: #ffffff;
}

.seo-directory-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.seo-links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.seo-link-pill {
  display: block;
  padding: 0.45rem 0.7rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

.seo-link-pill:hover {
  border-color: var(--cyan);
  color: #ffffff;
  background: rgba(6, 182, 212, 0.12);
}

.seo-directory-group-title {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--emerald);
  margin: 1rem 0 0.6rem 0;
}



