/* ==========================================================================
   OffGrid Power Lab - Main Stylesheet (Modern Industrial B2B Theme)
   Zero external dependencies for 100/100 Google PageSpeed
   ========================================================================== */

:root {
  /* Color Palette - Dark Mode Default */
  --bg-primary: #0a0f1d;
  --bg-surface: #111827;
  --bg-surface-elevated: #1f2937;
  --bg-surface-hover: #283548;
  --border-subtle: #374151;
  --border-focus: #4b5563;
  
  --text-primary: #f9fafb;
  --text-secondary: #9ca3af;
  --text-muted: #6b7280;
  
  /* Brand & Accents */
  --accent-solar: #f59e0b;
  --accent-solar-hover: #d97706;
  --accent-electric: #0284c7;
  --accent-electric-hover: #0369a1;
  --accent-cyan: #38bdf8;
  --accent-green: #10b981;
  --accent-red: #ef4444;

  /* Affiliate Buttons */
  --btn-amazon-bg: #ff9900;
  --btn-amazon-text: #111827;
  --btn-amazon-hover: #e68a00;
  --btn-brand-bg: #1e293b;
  --btn-brand-text: #f9fafb;
  --btn-brand-border: #475569;
  --btn-brand-hover: #334155;

  /* Typography */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --max-width: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-glow: 0 0 20px rgba(245, 158, 11, 0.15);
}

/* Light Theme Variables */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  --border-subtle: #e2e8f0;
  --border-focus: #cbd5e1;
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  --btn-brand-bg: #ffffff;
  --btn-brand-text: #0f172a;
  --btn-brand-border: #cbd5e1;
  --btn-brand-hover: #f1f5f9;
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: clip;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent-solar);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Container */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Header & Navigation */
.site-header {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(8px);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  white-space: nowrap;
}

.brand-logo .badge-lab {
  background: linear-gradient(135deg, var(--accent-solar), #ea580c);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.theme-toggle:hover {
  border-color: var(--accent-solar);
  color: var(--accent-solar);
}

/* Accessible Hamburger Toggle Button */
.nav-toggle {
  display: none;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  padding: 0;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 60;
}

.nav-toggle:hover {
  border-color: var(--accent-solar);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-solar);
  outline-offset: 2px;
}

.hamburger-bar {
  display: block;
  width: 20px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

/* Hamburger Morphing into "X" */
.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.nav-toggle[aria-expanded="true"] .hamburger-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Background Backdrop Overlay for Drawer (Placed below header) */
.nav-backdrop {
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-backdrop.is-active {
  opacity: 1;
  visibility: visible;
}

/* Breadcrumbs (Silo Navigation) */
.breadcrumb-bar {
  background-color: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.75rem 0;
  font-size: 0.85rem;
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  color: var(--text-muted);
}

.breadcrumb-list a {
  color: var(--text-secondary);
}

.breadcrumb-list a:hover {
  color: var(--accent-solar);
}

.breadcrumb-separator {
  color: var(--border-focus);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 600;
}

/* Hero Section */
.hero {
  position: relative;
}

/* Hero Split 2-Column Layout */
.hero-split {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
  padding: 3.5rem 0 2rem;
}

.hero-content {
  text-align: left;
}

.hero-content h1 {
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.1rem;
}

.hero-content .hero-lead {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 1.5rem;
}

.hero-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
  padding: 0;
}

.hero-features li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.hero-features li strong {
  color: var(--text-primary);
}

.hero-features-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  font-size: 0.75rem;
  font-weight: 800;
  flex-shrink: 0;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
}

.hero-visual-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, 0.6);
  background: var(--bg-surface);
}

.hero-visual-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16/11;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hero-visual-card:hover img {
  transform: scale(1.02);
}

.hero-float-badge {
  position: absolute;
  background: rgba(17, 24, 39, 0.9);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-md);
  z-index: 2;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.hero-float-badge:hover {
  transform: translateY(-2px);
}

.badge-top-left {
  top: 14px;
  left: 14px;
  border-color: rgba(245, 158, 11, 0.5);
  color: var(--accent-solar);
}

.badge-bottom-right {
  bottom: 16px;
  right: 16px;
}

/* BLUF Panoramic Lab Verdict (Wirecutter / Rtings Style) */
.bluf-banner {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 2rem 0 3rem;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.bluf-banner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-cyan), var(--accent-solar));
}

.bluf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.15rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-subtle);
}

.bluf-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.bluf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 768px) {
  .bluf-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.bluf-choice {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.bluf-choice:hover {
  border-color: var(--border-focus);
}

.bluf-choice-target {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.45rem;
}

.bluf-choice-body {
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 0.85rem;
  flex-grow: 1;
}

.bluf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
}

.bluf-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.badge-bottom-right {
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--accent-cyan);
}

@media (max-width: 960px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    padding: 2.5rem 0 1.5rem;
  }
  .hero-content {
    text-align: center;
  }
  .hero-features {
    align-items: flex-start;
    max-width: 460px;
    margin: 0 auto 1.75rem;
    text-align: left;
  }
  .hero-actions {
    justify-content: center;
  }
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-solar);
  margin-bottom: 1.25rem;
}

/* VS Battle Banner */
.vs-banner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: var(--shadow-md);
}

.vs-fighter {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.vs-fighter-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0.5rem 0;
}

.vs-badge-winner {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid var(--accent-green);
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.5rem;
}

.vs-center-badge {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-solar), #ea580c);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.05em;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

/* Affiliate Buttons Dual Cluster */
.affiliate-cluster {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

@media (min-width: 640px) {
  .affiliate-cluster.inline {
    flex-direction: row;
    align-items: center;
  }
}

.btn-affiliate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none;
  flex: 1;
}

.btn-amazon {
  background-color: var(--btn-amazon-bg);
  color: var(--btn-amazon-text);
  box-shadow: 0 4px 12px rgba(255, 153, 0, 0.25);
}

.btn-amazon:hover {
  background-color: var(--btn-amazon-hover);
  color: var(--btn-amazon-text);
  transform: translateY(-1px);
}

.btn-official-store {
  background-color: var(--btn-brand-bg);
  color: var(--btn-brand-text);
  border: 1px solid var(--btn-brand-border);
}

.btn-official-store:hover {
  background-color: var(--btn-brand-hover);
  color: var(--btn-brand-text);
  border-color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* ==========================================================================
   Showcase Tecnológico para Imágenes Transparentes (Efecto B2B Apple/Tesla)
   ========================================================================== */
.product-showcase {
  position: relative;
  width: 100%;
  min-height: 230px;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at 50% 60%, rgba(255, 255, 255, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Halos de luz ambiental (Glow) por marca */
.product-showcase::before {
  content: '';
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.25;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 0;
  pointer-events: none;
}

.product-showcase.glow-cyan::before {
  background: var(--accent-cyan);
}

.product-showcase.glow-solar::before {
  background: var(--accent-solar);
}

.product-showcase.glow-orange::before {
  background: #ea580c;
}

.product-showcase.glow-electric::before {
  background: #38bdf8;
}

/* La imagen flotante con sombra de silueta real (drop-shadow 3D) */
.product-showcase img {
  position: relative;
  z-index: 1;
  max-width: 240px;
  width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  /* Sombra de contacto que sigue la silueta del producto */
  filter: drop-shadow(0 15px 20px rgba(0, 0, 0, 0.45)) drop-shadow(0 5px 6px rgba(0, 0, 0, 0.3));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease;
}

/* Efecto levitación e intensificación de luz al pasar el ratón */
.product-showcase:hover img {
  transform: translateY(-8px) scale(1.04);
  filter: drop-shadow(0 25px 28px rgba(0, 0, 0, 0.6)) drop-shadow(0 8px 10px rgba(0, 0, 0, 0.35));
}

.product-showcase:hover::before {
  opacity: 0.45;
  transform: scale(1.2);
}

/* Adaptación para Light Mode */
[data-theme="light"] .product-showcase {
  background: radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0.03) 0%, rgba(0, 0, 0, 0) 70%);
}

[data-theme="light"] .product-showcase::before {
  opacity: 0.15;
  filter: blur(40px);
}

[data-theme="light"] .product-showcase img {
  filter: drop-shadow(0 12px 16px rgba(0, 0, 0, 0.2)) drop-shadow(0 4px 6px rgba(0, 0, 0, 0.12));
}

[data-theme="light"] .product-showcase:hover img {
  filter: drop-shadow(0 20px 22px rgba(0, 0, 0, 0.28)) drop-shadow(0 6px 8px rgba(0, 0, 0, 0.15));
}

/* Comparison Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--bg-surface);
  box-shadow: var(--shadow-md);
  margin: 2rem 0;
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.compare-table th,
.compare-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.compare-table th {
  background-color: var(--bg-surface-elevated);
  font-weight: 700;
  color: var(--text-primary);
  position: sticky;
  top: 0;
}

.compare-table tbody tr:hover {
  background-color: var(--bg-surface-hover);
}

.compare-table td.winner-cell {
  background-color: rgba(16, 185, 129, 0.08);
  font-weight: 600;
  color: var(--accent-green);
  border-left: 3px solid var(--accent-green);
}

.table-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background-color: var(--bg-surface-elevated);
  border-bottom: 1px solid var(--border-subtle);
}

.switch-label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
}

/* Radar Chart Section */
.radar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin: 2.5rem 0;
  align-items: center;
}

@media (min-width: 800px) {
  .radar-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}

.radar-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
  text-align: center;
}

.radar-chart-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
  margin: 0 auto;
}

/* Pros and Cons */
.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

@media (min-width: 768px) {
  .pros-cons-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.pros-card, .cons-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  border-top: 4px solid;
}

.pros-card {
  border-color: var(--accent-green);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.cons-card {
  border-color: var(--accent-red);
  border-left: 1px solid var(--border-subtle);
  border-right: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pros-card h3 {
  color: var(--accent-green);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cons-card h3 {
  color: var(--accent-red);
  font-size: 1.1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.pros-card ul, .cons-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pros-card li::before {
  content: "✔ ";
  color: var(--accent-green);
  font-weight: bold;
}

.cons-card li::before {
  content: "✖ ";
  color: var(--accent-red);
  font-weight: bold;
}

/* FAQ Accordion */
.faq-section {
  margin: 3rem 0;
}

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

.faq-question {
  width: 100%;
  padding: 1.25rem;
  text-align: left;
  background: none;
  border: none;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question:hover {
  color: var(--accent-solar);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Footer & Compliance */
.site-footer {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 3rem 0 2rem;
  margin-top: auto;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.affiliate-disclaimer {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  margin-bottom: 2rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.footer-nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
}

.footer-nav-links a {
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s ease;
}

.footer-nav-links a:hover {
  color: var(--accent-solar);
}

.footer-agency-credit {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
  width: 100%;
  text-align: center;
  border-top: 1px dashed rgba(255, 255, 255, 0.07);
  padding-top: 1rem;
}

.footer-agency-credit a {
  color: var(--accent-cyan);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.footer-agency-credit a:hover {
  color: var(--accent-solar);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .vs-banner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
  }
  .vs-center-badge {
    margin: 0.5rem auto;
  }
  .table-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   Multi-Device Interactive Power Simulator
   ========================================================================== */
.sim-container {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  margin: 4.5rem 0;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.sim-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-solar), var(--accent-green));
}

.sim-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 2rem;
}

.sim-presets-bar {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.sim-preset-btn {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.sim-preset-btn:hover {
  border-color: var(--accent-solar);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.sim-preset-btn.active {
  background: rgba(245, 158, 11, 0.15);
  border-color: var(--accent-solar);
  color: var(--accent-solar);
}

.sim-devices-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.sim-card {
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  transition: all 0.2s ease;
  cursor: pointer;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.sim-card:hover {
  border-color: var(--border-focus);
}

.sim-card.active {
  border-color: var(--accent-solar);
  background: rgba(245, 158, 11, 0.04);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.12);
}

.sim-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sim-card-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sim-card-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.sim-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
}

.sim-card-port {
  font-size: 0.7rem;
  color: var(--text-muted);
  display: block;
}

.sim-checkbox {
  width: 20px;
  height: 20px;
  accent-color: var(--accent-solar);
  cursor: pointer;
}

.sim-watt-controller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 0.25rem 0.5rem;
  margin-top: 0.5rem;
}

.sim-btn-step {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 26px;
  height: 26px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sim-btn-step:hover {
  border-color: var(--accent-solar);
  color: var(--accent-solar);
}

.sim-watt-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.sim-watt-input {
  width: 54px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 1rem;
  font-weight: 800;
  font-family: var(--font-mono);
  text-align: right;
  outline: none;
}

.sim-watt-unit {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Simulator Custom Device Add Button */
.sim-add-custom {
  background: transparent;
  border: 1.5px dashed var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.sim-add-custom:hover {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.04);
}

/* Live HUD Bar */
.sim-hud {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.75rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
}

.sim-hud-main {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.sim-hud-stat {
  display: flex;
  flex-direction: column;
}

.sim-hud-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.sim-hud-val {
  font-size: 1.65rem;
  font-weight: 900;
  font-family: var(--font-mono);
  color: var(--accent-solar);
  line-height: 1.1;
}

.sim-hud-status {
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.status-ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.status-warn {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-solar);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.status-danger {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Results 4-station comparison */
.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.sim-station-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.sim-station-card:hover {
  transform: translateY(-2px);
}

.sim-station-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.sim-station-cap {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.sim-station-hours {
  font-size: 1.85rem;
  font-weight: 900;
  font-family: var(--font-mono);
  margin: 0.25rem 0;
  display: block;
}

.sim-station-days {
  font-size: 0.75rem;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.5rem;
}

.sim-station-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
}

.badge-winner {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-solar);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-overload {
  background: rgba(239, 68, 68, 0.15);
  color: var(--accent-red);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ==========================================================================
   Mobile Responsive System (Mobile-First / High-End UX)
   ========================================================================== */

/* Tablet & Mobile Navigation Breakpoint (<768px) */
@media (max-width: 768px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    width: 100%;
    background-color: var(--bg-surface);
    border-bottom: 2px solid var(--border-subtle);
    padding: 1.25rem 1.25rem 1.75rem;
    box-shadow: 0 20px 35px rgba(0, 0, 0, 0.6);
    display: none;
    flex-direction: column;
    z-index: 1001;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }

  .nav-menu.is-open {
    display: flex !important;
    animation: navSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

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

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0.9rem 1.15rem;
    border-radius: var(--radius-md);
    font-size: 1.05rem;
    font-weight: 600;
    width: 100%;
    color: var(--text-primary);
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-subtle);
    transition: all 0.15s ease;
  }

  .nav-links a:hover,
  .nav-links a.active {
    border-color: var(--accent-solar);
    color: var(--accent-solar);
    background: rgba(245, 158, 11, 0.08);
  }

  /* VS Battle Banner Mobile Stacking */
  .vs-banner {
    grid-template-columns: 1fr;
    padding: 1.5rem 1rem;
    gap: 1.25rem;
  }

  .vs-center-badge {
    margin: 0.25rem auto;
  }

  /* Radar chart spacing */
  .radar-grid {
    gap: 1.5rem;
    margin: 1.75rem 0;
  }
}

/* Mobile Screens (<640px) */
@media (max-width: 640px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* Simulator Mobile Optimizations */
  .sim-container {
    padding: 1.25rem 0.85rem;
  }

  .sim-devices-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .sim-hud {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
  }

  .sim-results-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  /* Accessible Touch Targets for Simulator Controls (>=36px) */
  .sim-btn-step {
    width: 36px;
    height: 36px;
    font-size: 1.15rem;
  }

  .sim-qty-display {
    min-width: 28px;
    font-size: 1rem;
  }

  .sim-presets-bar {
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 0.5rem;
    scrollbar-width: none;
  }

  .sim-presets-bar::-webkit-scrollbar {
    display: none;
  }

  .sim-preset-btn {
    white-space: nowrap;
    flex-shrink: 0;
    padding: 0.45rem 0.85rem;
    font-size: 0.82rem;
  }

  /* Comparison Tables Mobile Behavior */
  .table-wrap {
    margin: 1.5rem 0;
    -webkit-overflow-scrolling: touch;
  }

  .compare-table {
    font-size: 0.82rem;
    min-width: 520px;
  }

  .compare-table th,
  .compare-table td {
    padding: 0.75rem 0.65rem;
  }

  /* Sticky first column for specification scanning */
  .compare-table th:first-child,
  .compare-table td:first-child {
    position: sticky;
    left: 0;
    background: var(--bg-surface-elevated);
    z-index: 2;
    box-shadow: 2px 0 6px rgba(0, 0, 0, 0.15);
  }

  .table-filter-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
  }
}

/* Small Smartphone Screens (<480px) */
@media (max-width: 480px) {
  .brand-logo {
    font-size: 1.05rem;
    gap: 0.4rem;
  }

  /* Hide badge on tiny screens to avoid header crowding */
  .brand-logo .badge-lab {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .bluf-banner {
    padding: 1.25rem 1rem;
  }

  .bluf-tags {
    gap: 0.35rem;
  }

  .bluf-tag {
    font-size: 0.68rem;
    padding: 0.2rem 0.4rem;
  }
}

