/* ============================================================
   AIVantage Home Guard — Dark Firefighter Theme
   ============================================================ */

/* ---------- CSS Custom Properties ---------- */
:root {
  --bg-primary: #1A1A1A;
  --bg-secondary: #242424;
  --bg-card: #2A2A2A;
  --bg-card-hover: #333333;
  --accent: #FF4500;
  --accent-light: #FF6B35;
  --accent-glow: rgba(255, 69, 0, 0.3);
  --green: #22C55E;
  --green-dim: #166534;
  --yellow: #EAB308;
  --yellow-dim: #854D0E;
  --red: #EF4444;
  --red-dim: #991B1B;
  --text-primary: #FFFFFF;
  --text-secondary: #B0B0B0;
  --text-muted: #777777;
  --night-green: #00FF41;
  --night-bg: #0A1A0A;
  --border: #3A3A3A;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 20px rgba(255, 69, 0, 0.15);
  --transition: 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-light); }
button { cursor: pointer; font-family: var(--font); }

/* ---------- Utility ---------- */
.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

.hidden { display: none !important; }

.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

@keyframes glow {
  0%, 100% { box-shadow: 0 0 8px var(--accent-glow); }
  50% { box-shadow: 0 0 24px var(--accent-glow), 0 0 48px rgba(255, 69, 0, 0.1); }
}

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

@keyframes nightFlicker {
  0%, 100% { opacity: 1; }
  92% { opacity: 1; }
  93% { opacity: 0.4; }
  94% { opacity: 1; }
  96% { opacity: 0.7; }
  97% { opacity: 1; }
}

/* ---------- Screen Sections ---------- */
.screen {
  display: none;
  padding-bottom: 40px;
}

.screen.active {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ============================================================
   LANDING SCREEN
   ============================================================ */
.hero {
  text-align: center;
  padding: 60px 0 40px;
}

.hero-badge {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  background: linear-gradient(135deg, var(--accent), #CC3700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  box-shadow: 0 0 40px rgba(255, 69, 0, 0.3);
  animation: glow 3s ease-in-out infinite;
}

.hero h1 {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
  background: linear-gradient(135deg, #FFFFFF, #FF4500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 24px;
}

.hero .tagline {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}

.hero .tagline em {
  color: var(--text-primary);
  font-style: italic;
}

/* Feature Cards */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.feature-card h3 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.feature-card p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* CTA Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--accent), #CC3700);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: 16px 40px;
  border: none;
  border-radius: 50px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255, 69, 0, 0.4);
  width: 100%;
  max-width: 400px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 69, 0, 0.5);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 28px;
  border: 2px solid var(--accent);
  border-radius: 50px;
  transition: var(--transition);
}

.btn-secondary:hover {
  background: rgba(255, 69, 0, 0.1);
}

/* Trust Bar */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 24px;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.trust-item .check {
  color: var(--green);
  font-weight: 700;
}

/* ============================================================
   UPLOAD SCREEN
   ============================================================ */
.upload-section {
  padding-top: 40px;
}

.upload-section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 8px;
}

.upload-section .upload-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 0.95rem;
}

.upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
  background: var(--bg-secondary);
}

.upload-zone:hover,
.upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(255, 69, 0, 0.05);
}

.upload-zone-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.upload-zone h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

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

.upload-zone .btn-camera {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.upload-zone .btn-camera:hover {
  border-color: var(--accent);
}

/* Image Previews */
.image-previews {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.preview-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--bg-secondary);
}

.preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-item .remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  background: rgba(0, 0, 0, 0.7);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.preview-item .remove-btn:hover {
  background: var(--red);
}

.upload-counter {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 16px;
}

.upload-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

/* ============================================================
   ANALYZING SCREEN
   ============================================================ */
.analyzing-section {
  padding-top: 80px;
  text-align: center;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Firefighter Loader */
.loader-ring {
  width: 120px;
  height: 120px;
  margin: 0 auto 32px;
  position: relative;
}

.loader-ring::before,
.loader-ring::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
}

.loader-ring::before {
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  animation: spin 1.2s linear infinite;
}

.loader-ring::after {
  border-bottom-color: var(--yellow);
  border-left-color: var(--yellow);
  animation: spin 1.2s linear infinite reverse;
  inset: 12px;
}

.loader-ring .loader-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.analyzing-section h2 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.analyzing-section .analyzing-status {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 32px;
}

/* Progress Bar */
.progress-bar-container {
  width: 100%;
  max-width: 360px;
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
  margin: 0 auto 32px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--yellow));
  border-radius: 3px;
  transition: width 0.5s ease;
  width: 0%;
}

/* Tips Carousel */
.tip-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 400px;
  margin: 0 auto;
  animation: fadeIn 0.5s ease;
}

.tip-card .tip-label {
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}

.tip-card p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ============================================================
   RESULTS SCREEN
   ============================================================ */
.results-section {
  padding-top: 32px;
}

.results-header {
  text-align: center;
  margin-bottom: 32px;
}

.results-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 4px;
}

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

/* Overall Score Circle */
.score-circle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 36px;
}

.score-circle {
  position: relative;
  width: 180px;
  height: 180px;
}

.score-circle svg {
  transform: rotate(-90deg);
  width: 180px;
  height: 180px;
}

.score-circle .bg-ring {
  fill: none;
  stroke: var(--bg-card);
  stroke-width: 10;
}

.score-circle .fg-ring {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.5s ease, stroke 0.5s ease;
}

.score-circle .score-value {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-circle .score-number {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.score-circle .score-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 4px;
}

/* Category Scores */
.category-scores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 36px;
}

.cat-score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 12px;
  text-align: center;
  transition: var(--transition);
}

.cat-score-card:hover {
  border-color: var(--accent);
}

.cat-score-card .cat-icon {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.cat-score-card .cat-name {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.cat-score-card .cat-value {
  font-size: 1.8rem;
  font-weight: 800;
}

.cat-score-card .cat-bar {
  height: 4px;
  background: var(--bg-secondary);
  border-radius: 2px;
  margin-top: 10px;
  overflow: hidden;
}

.cat-score-card .cat-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 1.5s ease;
}

/* Color utilities for scores */
.score-red { color: var(--red); }
.score-yellow { color: var(--yellow); }
.score-green { color: var(--green); }
.bar-red { background: var(--red); }
.bar-yellow { background: var(--yellow); }
.bar-green { background: var(--green); }
.ring-red { stroke: var(--red); }
.ring-yellow { stroke: var(--yellow); }
.ring-green { stroke: var(--green); }

/* ============================================================
   NIGHT VISION SECTION — Hero Feature
   ============================================================ */
.night-vision {
  background: var(--night-bg);
  border: 1px solid rgba(0, 255, 65, 0.2);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  margin-bottom: 36px;
  position: relative;
  overflow: hidden;
  animation: nightFlicker 8s ease-in-out infinite;
}

.night-vision::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 65, 0.03) 2px,
    rgba(0, 255, 65, 0.03) 4px
  );
  pointer-events: none;
  z-index: 1;
}

.night-vision::after {
  content: '';
  position: absolute;
  top: -100%;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(0, 255, 65, 0.06),
    transparent
  );
  animation: scanline 4s linear infinite;
  pointer-events: none;
  z-index: 2;
}

.night-vision-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  position: relative;
  z-index: 3;
}

.night-vision-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--night-green);
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.5);
}

.night-vision-header .nv-icon {
  font-size: 1.3rem;
}

.night-vision-badge {
  display: inline-block;
  background: rgba(0, 255, 65, 0.15);
  color: var(--night-green);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.night-vision-content {
  color: var(--night-green);
  font-size: 0.95rem;
  line-height: 1.8;
  position: relative;
  z-index: 3;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.3);
  font-family: 'Courier New', monospace;
}

/* ============================================================
   FIREFIGHTER ANALYSIS
   ============================================================ */
.firefighter-analysis {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 36px;
}

.ff-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}

.ff-badge {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent), #CC3700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.ff-header-text h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.ff-header-text p {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.ff-content {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.8;
}

/* ============================================================
   FINDINGS
   ============================================================ */
.findings-section {
  margin-bottom: 36px;
}

.findings-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.finding-category {
  margin-bottom: 24px;
}

.finding-category-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.finding-category-header .cat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.finding-category-header h4 {
  font-size: 0.95rem;
  font-weight: 700;
}

.finding-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.finding-item::before {
  content: '!';
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: rgba(255, 69, 0, 0.15);
  color: var(--accent);
  border-radius: 50%;
  font-size: 0.7rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================================
   ACTION CHECKLIST
   ============================================================ */
.checklist-section {
  margin-bottom: 36px;
}

.checklist-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.checklist-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.checklist-progress-bar {
  flex: 1;
  height: 6px;
  background: var(--bg-card);
  border-radius: 3px;
  overflow: hidden;
}

.checklist-progress-fill {
  height: 100%;
  background: var(--green);
  border-radius: 3px;
  transition: width 0.5s ease;
}

.checklist-progress-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  cursor: pointer;
  transition: var(--transition);
}

.checklist-item:hover {
  border-color: var(--accent);
}

.checklist-item.completed {
  opacity: 0.5;
}

.checklist-item.completed .checklist-text {
  text-decoration: line-through;
}

.checklist-checkbox {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  margin-top: 1px;
}

.checklist-item.completed .checklist-checkbox {
  background: var(--green);
  border-color: var(--green);
}

.checklist-item.completed .checklist-checkbox::after {
  content: '✓';
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.checklist-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.checklist-tier {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
  vertical-align: middle;
}

.tier-essential { background: rgba(34, 197, 94, 0.15); color: var(--green); }
.tier-smart { background: rgba(234, 179, 8, 0.15); color: var(--yellow); }
.tier-fortress { background: rgba(255, 69, 0, 0.15); color: var(--accent); }

/* ============================================================
   PRODUCT RECOMMENDATIONS
   ============================================================ */
.products-section {
  margin-bottom: 36px;
}

.products-section h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.products-section .products-subtitle {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 20px;
}

.tier-group {
  margin-bottom: 24px;
}

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

.tier-group-header h4 {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.product-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 10px;
  transition: var(--transition);
}

.product-card:hover {
  border-color: var(--accent);
  transform: translateX(4px);
}

.product-icon {
  width: 48px;
  height: 48px;
  background: var(--bg-secondary);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.product-info {
  flex: 1;
  min-width: 0;
}

.product-info h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.product-price {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  white-space: nowrap;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent);
  border-radius: 50px;
  transition: var(--transition);
  white-space: nowrap;
}

.product-link:hover {
  background: var(--accent);
  color: #fff;
}

/* ============================================================
   EMAIL REPORT
   ============================================================ */
.email-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 36px;
}

.email-section h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.email-section p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 20px;
}

.email-form {
  display: flex;
  gap: 10px;
  max-width: 400px;
  margin: 0 auto;
}

.email-form input {
  flex: 1;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-primary);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.email-form input:focus {
  border-color: var(--accent);
}

.email-form input::placeholder {
  color: var(--text-muted);
}

.email-form button {
  padding: 12px 24px;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  white-space: nowrap;
}

.email-form button:hover {
  background: var(--accent-light);
}

.email-success {
  color: var(--green);
  font-size: 0.9rem;
  margin-top: 12px;
  display: none;
}

.email-success.show {
  display: block;
  animation: fadeIn 0.4s ease;
}

/* ============================================================
   FOOTER / CTA / SOCIAL
   ============================================================ */
.footer-cta {
  text-align: center;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  margin-top: 20px;
}

.footer-cta h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.social-links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.social-link:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.affiliate-disclosure {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 20px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.website-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

/* ============================================================
   BACK BUTTON
   ============================================================ */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 12px 0;
  transition: var(--transition);
}

.back-btn:hover {
  color: var(--text-primary);
}

/* ============================================================
   INSTALL PROMPT
   ============================================================ */
.install-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 1000;
  transform: translateY(100%);
  transition: transform 0.4s ease;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
}

.install-banner.show {
  transform: translateY(0);
}

.install-banner-text {
  flex: 1;
}

.install-banner-text h4 {
  font-size: 0.9rem;
  font-weight: 700;
}

.install-banner-text p {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.install-banner .btn-install {
  padding: 10px 20px;
  background: var(--accent);
  border: none;
  border-radius: 50px;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}

.install-banner .btn-dismiss {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  padding: 4px;
}

/* ============================================================
   NEW SCAN BUTTON
   ============================================================ */
.new-scan-wrap {
  text-align: center;
  margin: 24px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 1.6rem; }
  .hero .tagline { font-size: 0.95rem; }
  .features-grid { grid-template-columns: 1fr; gap: 10px; }
  .feature-card { padding: 18px 16px; display: flex; align-items: center; gap: 14px; text-align: left; }
  .feature-icon { margin-bottom: 0; font-size: 1.5rem; }
  .category-scores { grid-template-columns: 1fr; gap: 10px; }
  .cat-score-card { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px; }
  .cat-score-card .cat-icon { margin-bottom: 0; }
  .cat-score-card .cat-bar { display: none; }
  .email-form { flex-direction: column; }
  .product-card { flex-wrap: wrap; }
  .product-price { width: 100%; text-align: right; }
  .social-links { gap: 8px; }
}

@media (min-width: 481px) and (max-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* ---------- Selection ---------- */
::selection {
  background: rgba(255, 69, 0, 0.3);
  color: #fff;
}
