/* Flashlight Buyer Compass — styles */
:root {
  --bg: #0f1115;
  --bg-surface: #181b22;
  --bg-card: #1e2230;
  --bg-hover: #252a38;
  --border: #2a2f3e;
  --text: #e4e6ed;
  --text-muted: #8b90a4;
  --text-dim: #5e6478;
  --accent: #f5c842;
  --accent-dim: #c9a02e;
  --accent-glow: rgba(245, 200, 66, 0.15);
  --green: #4caf7d;
  --red: #e05555;
  --radius: 12px;
  --radius-sm: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
  --shadow: 0 2px 16px rgba(0,0,0,0.3);
}

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

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

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

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

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

.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.95rem;
}
.logo:hover { text-decoration: none; }
.logo-icon { color: var(--accent); flex-shrink: 0; }

.main-nav {
  display: flex;
  gap: 20px;
}

.main-nav a {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 4px;
}

/* Hero */
.hero {
  padding: 64px 0 48px;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(245,200,66,0.08) 0%, transparent 60%);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--text) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 800;
}
.stat span {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Sections */
section { padding: 56px 0; }
section h2 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 8px;
}
.section-intro {
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 600px;
}

/* Use case grid */
.use-case-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}

.use-case-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.use-case-card:hover {
  border-color: var(--accent-dim);
  background: var(--bg-hover);
}

.use-case-card input { position: absolute; opacity: 0; pointer-events: none; }

.use-case-card.active {
  border-color: var(--accent);
  background: var(--accent-glow);
  box-shadow: 0 0 0 1px var(--accent);
}

.card-icon {
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-title {
  font-weight: 600;
  font-size: 0.9rem;
}

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

/* Recommendation panel */
.recommendation-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.rec-header h3 { font-size: 1.2rem; margin: 0; }

.rec-tag {
  background: var(--accent);
  color: var(--bg);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#recDesc { color: var(--text-muted); margin-bottom: 24px; }

.rec-specs { margin-bottom: 28px; }
.rec-specs h4, .rec-picks h4, .rec-skip h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.rec-specs ul {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}

.rec-specs li {
  font-size: 0.9rem;
  padding: 8px 12px;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.rec-specs li strong { color: var(--accent); }

/* Tier grid */
.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.tier-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.tier-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  margin: 4px 0 12px;
}

.tier-name {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 8px;
}

.tier p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.rec-skip {
  background: rgba(224, 85, 85, 0.08);
  border: 1px solid rgba(224, 85, 85, 0.2);
  border-radius: var(--radius-sm);
  padding: 16px;
}

.rec-skip h4 { color: var(--red); }
.rec-skip p { color: var(--text-muted); font-size: 0.9rem; }

/* Lumen section */
.lumen-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.lumen-demo { max-width: 640px; }

.lumen-slider-wrap {
  margin-bottom: 28px;
}

.lumen-slider-wrap label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  background: var(--bg-card);
  border-radius: 4px;
  outline: none;
  margin-bottom: 8px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg);
  box-shadow: 0 0 8px var(--accent);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 3px solid var(--bg);
}

#lumenValue {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
}

.lumen-beams {
  display: flex;
  justify-content: center;
  margin-bottom: 32px;
  min-height: 120px;
  align-items: center;
}

.beam {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.beam-glow {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.2;
  transition: all 0.3s;
  box-shadow: 0 0 20px var(--accent);
}

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

.lumen-reference {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-size: 0.85rem;
}

.lumen-reference dt {
  font-weight: 700;
  color: var(--accent);
  text-align: right;
}

.lumen-reference dd { color: var(--text-muted); }

/* Battery section */
.battery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.battery-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.battery-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.battery-rating {
  font-size: 0.85rem;
  color: var(--accent);
  margin-bottom: 10px;
}

.battery-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.battery-trade {
  font-size: 0.8rem;
  color: var(--red);
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

/* Mistakes */
.mistakes-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.mistakes-list {
  list-style: none;
  counter-reset: mistakes;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mistakes-list li {
  counter-increment: mistakes;
  padding: 16px 20px 16px 56px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  position: relative;
}

.mistakes-list li::before {
  content: counter(mistakes);
  position: absolute;
  left: 16px;
  top: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-glow);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mistakes-list strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.mistakes-list p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Compare table */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.compare-table th,
.compare-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.compare-table thead th {
  background: var(--bg-card);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
}

.compare-table thead th:first-child {
  color: var(--text-muted);
  font-weight: 600;
}

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

.compare-table td:first-child {
  font-weight: 600;
  color: var(--accent);
}

/* FAQ */
.faq-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq-list dt {
  font-weight: 600;
  font-size: 0.95rem;
  padding: 16px 0 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-list dt::before {
  content: '+';
  color: var(--accent);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.faq-list dt.open::before { content: '−'; }

.faq-list dd {
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 0 0 16px 24px;
  display: none;
}

.faq-list dd.open { display: block; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 24px;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom {
  font-size: 0.78rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.footer-bottom a { color: var(--text-muted); }

/* Responsive */
@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border);
    padding: 16px 20px;
    gap: 12px;
    z-index: 99;
  }
  .nav-toggle { display: block; }
  .use-case-grid { grid-template-columns: repeat(2, 1fr); }
  .tier-grid { grid-template-columns: 1fr; }
  .battery-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
  .hero { padding: 48px 0 36px; }
  section { padding: 40px 0; }
  .recommendation-panel { padding: 20px; }
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 10px 12px; }
}

@media (max-width: 480px) {
  .use-case-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .use-case-card { padding: 14px 10px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-sub { font-size: 0.95rem; }
  .stat strong { font-size: 1.4rem; }
  .lumen-reference { grid-template-columns: 1fr; gap: 4px 0; }
  .lumen-reference dt { text-align: left; }
}

/* Print */
@media print {
  .site-header, .site-footer, .nav-toggle, .lumen-slider-wrap { display: none; }
  body { background: #fff; color: #000; }
  .use-case-card { border: 1px solid #ccc; }
  .recommendation-panel, .tier, .battery-card { border: 1px solid #ccc; }
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
