/* ═══════════════════════════════════════════════════════════════════════
   Orion Boston Sales Demo — Stylesheet
   EdgeNebula design system · Dark theme · Standalone static demo
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Design Tokens (EdgeNebula brand) ──────────────────────────────────── */
:root {
  --primary-blue:        #1863dc;
  --primary-blue-dark:   #1254c0;
  --primary-blue-light:  rgba(24, 99, 220, 0.13);
  --primary-blue-glow:   rgba(24, 99, 220, 0.35);
  --accent-cyan:         #0ea5e9;
  --accent-teal:         #14b8a6;

  --bg-primary:    #0b1018;
  --bg-secondary:  #131d2e;
  --bg-elevated:   #1a2438;
  --bg-card:       #162032;
  --bg-hover:      rgba(255, 255, 255, 0.04);
  --bg-active:     rgba(24, 99, 220, 0.12);

  --text-primary:   #e2ecf7;
  --text-secondary: #9db0c4;
  --text-muted:     #6e8399;

  --border-color:  rgba(255, 255, 255, 0.09);
  --border-light:  rgba(255, 255, 255, 0.05);
  --border-active: rgba(24, 99, 220, 0.60);

  --success:  #34d399;
  --warning:  #fbbf24;
  --error:    #f87171;
  --info:     #60a5fa;

  --score-excellent: #4ade80;
  --score-good:      #84cc16;
  --score-average:   #facc15;
  --score-poor:      #f87171;
  --score-limited:   #94a3b8;

  --bg-success: rgba(74,  222, 128, 0.10);
  --bg-warning: rgba(250, 204,  21, 0.10);
  --bg-error:   rgba(248, 113, 113, 0.10);
  --bg-info:    rgba(96,  165, 250, 0.10);

  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --font-mono:   "SF Mono", Monaco, "Cascadia Code", Consolas, monospace;

  --radius-sm:   4px;
  --radius-md:   6px;
  --radius-lg:   8px;
  --radius-xl:   12px;
  --radius-2xl:  16px;
  --radius-full: 9999px;

  --shadow-sm:  0 1px 4px  rgba(0, 0, 0, 0.50);
  --shadow-md:  0 4px 14px rgba(0, 0, 0, 0.60);
  --shadow-lg:  0 10px 30px rgba(0, 0, 0, 0.65);
  --shadow-xl:  0 20px 56px rgba(0, 0, 0, 0.75);
  --shadow-glow: 0 0 24px rgba(24, 99, 220, 0.40);

  --transition: 200ms ease;
  --transition-slow: 400ms ease;
}

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

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

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

button { cursor: pointer; border: none; background: none; font-family: inherit; }
select { font-family: inherit; }
a { color: var(--primary-blue); }

/* ── Demo Banner ────────────────────────────────────────────────────────── */
.demo-banner {
  background: rgba(251, 191, 36, 0.12);
  border-bottom: 1px solid rgba(251, 191, 36, 0.30);
  color: var(--warning);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.demo-banner-icon { font-size: 13px; }

/* ── App Header ─────────────────────────────────────────────────────────── */
.app-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0 32px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo-hex {
  font-size: 28px;
  color: var(--primary-blue);
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--primary-blue-glow));
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.logo-brand {
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.logo-brand strong { font-weight: 700; color: var(--primary-blue); }

.logo-tagline {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
}

.demo-badge {
  background: var(--primary-blue-light);
  border: 1px solid var(--border-active);
  color: var(--info);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

/* ── Stage System ───────────────────────────────────────────────────────── */
.stage {
  min-height: calc(100vh - 84px);
  opacity: 1;
  transition: opacity var(--transition-slow);
}
.stage.hidden {
  display: none;
  opacity: 0;
}
.stage.fade-in {
  animation: fadeIn 0.5s ease forwards;
}

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

/* ── Stage 1: Hero ──────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #0d1829 0%, #0b1018 60%);
  border-bottom: 1px solid var(--border-color);
  padding: 72px 32px 64px;
  display: flex;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(24, 99, 220, 0.18) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: 720px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--primary-blue);
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.hero-accent {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto;
}

/* ── Stage 1: Input Section ─────────────────────────────────────────────── */
.input-section {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

.input-section-heading {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.input-row {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 40px;
  align-items: start;
  margin-bottom: 40px;
}

.input-group { display: flex; flex-direction: column; gap: 10px; }

.input-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.input-hint {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Select dropdown */
.select-wrap { position: relative; }

.region-select {
  width: 100%;
  appearance: none;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 500;
  padding: 12px 40px 12px 14px;
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.region-select:hover { border-color: rgba(255, 255, 255, 0.18); }
.region-select:focus {
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 3px var(--primary-blue-light);
}

.select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  font-size: 16px;
}

/* Power cards */
.power-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.power-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
  color: var(--text-secondary);
}

.power-card:hover {
  border-color: rgba(255, 255, 255, 0.20);
  background: var(--bg-hover);
  color: var(--text-primary);
}

.power-card.selected {
  background: var(--bg-active);
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 1px var(--primary-blue), var(--shadow-glow);
  color: var(--text-primary);
}

.power-icon  { font-size: 18px; line-height: 1; }
.power-value { font-size: 16px; font-weight: 700; }
.power-sub   { font-size: 10px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); }

.power-card.selected .power-sub { color: var(--info); }

/* Generate button */
.generate-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}

.generate-btn {
  background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  letter-spacing: 0.01em;
  box-shadow: 0 4px 20px rgba(24, 99, 220, 0.45);
  transition: all var(--transition);
}

.generate-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(24, 99, 220, 0.60);
}

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

.btn-arrow {
  font-size: 20px;
  transition: transform var(--transition);
}

.generate-btn:hover .btn-arrow { transform: translateX(4px); }

.generate-hint { font-size: 11px; color: var(--text-muted); }

/* ── Stage 2: Process ───────────────────────────────────────────────────── */
.process-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 32px 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

.process-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.process-orion-mark {
  font-size: 48px;
  color: var(--primary-blue);
  animation: pulse 2s ease-in-out infinite;
  filter: drop-shadow(0 0 16px var(--primary-blue-glow));
}

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

.process-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.process-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  max-width: 480px;
  text-align: center;
  line-height: 1.6;
}

.process-steps {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 11px 16px;
  border-radius: var(--radius-lg);
  animation: stepSlideIn 0.25s ease forwards;
  opacity: 0;
}

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

.step-icon {
  width: 22px;
  min-width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  margin-top: 1px;
}

.process-step.done   .step-icon { color: var(--score-excellent); }
.process-step.loading .step-icon { color: var(--text-muted); }

.step-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}
.process-step.done .step-text { color: var(--text-primary); }

/* Spinner */
.step-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(96, 165, 250, 0.25);
  border-top-color: var(--info);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ── Stage 3: Output Header ─────────────────────────────────────────────── */
.output-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.output-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.output-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.restart-btn {
  background: linear-gradient(135deg, #0ea5ff 0%, #2563eb 100%);
  border: 1px solid rgba(96, 165, 250, 0.90);
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 30px;
  min-height: 48px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  box-shadow: 0 0 24px rgba(37, 99, 235, 0.35), 0 3px 10px rgba(0, 0, 0, 0.40);
  letter-spacing: 0.01em;
}

.restart-btn:hover {
  background: linear-gradient(135deg, #38beff 0%, #3b7ef8 100%);
  border-color: rgba(147, 197, 253, 0.95);
  color: #ffffff;
  box-shadow: 0 0 36px rgba(37, 99, 235, 0.55), 0 4px 14px rgba(0, 0, 0, 0.40);
  transform: translateY(-1px);
}

.restart-btn:active {
  transform: translateY(0);
  box-shadow: 0 0 16px rgba(37, 99, 235, 0.40), 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* ── Mock Cambridge Map ─────────────────────────────────────────────────── */
.map-section {
  padding: 24px 32px;
  background: var(--bg-primary);
}

.map-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  height: 480px;
  background: #07111e;
  border: 1px solid rgba(96, 165, 250, 0.12);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04), var(--shadow-xl);
}

.map-container svg {
  width: 100%;
  height: 100%;
}

/* Map label text style (applied via SVG class) */
.map-road-label { font-size: 2.5px; fill: #4a5568; letter-spacing: 0.05em; }
.map-city-label { font-size: 4px; fill: #6e8399; opacity: 0.5; font-weight: 600; }
.map-disclaimer  { font-size: 2.5px; fill: #4a5568; }

/* Site marker tooltip */
.map-tooltip {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text-primary);
  pointer-events: none;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  transform: translate(-50%, -110%);
  z-index: 10;
}

/* ── Candidate Site Cards ────────────────────────────────────────────────── */
.cards-section {
  padding: 24px 32px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.cards-layout {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}

/* Recommended card (col 1) */
.site-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color var(--transition);
  position: relative;
  overflow: hidden;
}

.site-card.recommended {
  border-color: rgba(52, 211, 153, 0.40);
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.20), 0 8px 32px rgba(0, 0, 0, 0.5);
  background: linear-gradient(160deg, #112d24 0%, #162032 100%);
}

.site-card.recommended::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, #34d399, #10b981, #059669);
}

.site-card:hover { border-color: rgba(255,255,255,0.15); }

/* Card header */
.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.card-rank-badge {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.site-card.recommended .card-rank-badge {
  background: rgba(52, 211, 153, 0.15);
  border-color: rgba(52, 211, 153, 0.50);
  color: var(--score-excellent);
}

.recommended-badge {
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.40);
  color: var(--score-excellent);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  flex: 1;
}

.site-card.recommended .card-name { font-size: 15px; }

/* Card postcode + capacity */
.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.card-postcode {
  font-size: 11px;
  font-weight: 600;
  color: var(--info);
  background: var(--bg-info);
  border-radius: var(--radius-sm);
  padding: 2px 7px;
  letter-spacing: 0.04em;
}

.card-capacity {
  font-size: 11px;
  color: var(--text-secondary);
}

/* Score rows in card */
.card-scores { display: flex; flex-direction: column; gap: 8px; }

.score-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-row-label {
  font-size: 11px;
  color: var(--text-muted);
  width: 76px;
  min-width: 76px;
  letter-spacing: 0.01em;
}

.score-bar-track {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

.score-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  min-width: 58px;
  text-align: center;
}

.pill-excellent { background: rgba(74,222,128,0.12); color: var(--score-excellent); }
.pill-good      { background: rgba(132,204,22,0.12); color: var(--score-good); }
.pill-fair      { background: rgba(250,204,21,0.12); color: var(--score-average); }
.pill-limited   { background: rgba(248,113,113,0.10); color: var(--score-poor); }

/* Card footer */
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--border-light);
  gap: 8px;
}

.card-score-total {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.score-total-label { font-size: 10px; color: var(--text-muted); }
.score-total-value { font-size: 18px; font-weight: 700; }

.card-lead-time {
  font-size: 11px;
  color: var(--text-muted);
  text-align: right;
}
.card-lead-time strong { color: var(--text-secondary); }

/* Recommended summary reason */
.card-reason {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.55;
  padding: 10px 12px;
  background: rgba(52, 211, 153, 0.05);
  border-left: 2px solid rgba(52, 211, 153, 0.40);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* ── Six-Category Matrix ─────────────────────────────────────────────────── */
.matrix-section {
  padding: 24px 32px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.section-sub {
  font-size: 11px;
  color: var(--text-muted);
}

.matrix-wrap {
  overflow-x: auto;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-color);
}

.matrix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  min-width: 720px;
}

.matrix-table th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  white-space: nowrap;
}

.matrix-table th.cat-header {
  text-align: center;
  padding: 12px 10px;
}

.matrix-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: middle;
}

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

.matrix-table tr:hover td { background: var(--bg-hover); }

.matrix-table tr.recommended-row td {
  background: rgba(52, 211, 153, 0.04);
}
.matrix-table tr.recommended-row td:first-child {
  border-left: 2px solid rgba(52, 211, 153, 0.50);
}

.matrix-site-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 13px;
}
.matrix-postcode {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 2px;
}

.matrix-cell {
  text-align: center;
  padding: 10px;
}

.matrix-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  min-width: 62px;
}

.matrix-overall {
  font-weight: 700;
  font-size: 14px;
  text-align: center;
}

/* ── Report Section ─────────────────────────────────────────────────────── */
.report-section {
  padding: 24px 32px;
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
}

.report-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.report-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.report-btn:hover {
  background: var(--bg-active);
  border-color: var(--primary-blue);
  box-shadow: var(--shadow-glow);
}

.report-btn.active {
  background: var(--bg-active);
  border-color: var(--primary-blue);
}

/* Report panel */
.report-panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.report-disclaimer {
  background: rgba(251, 191, 36, 0.10);
  border-bottom: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--warning);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  padding: 14px 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.report-disclaimer-icon { font-size: 16px; margin-top: 1px; flex-shrink: 0; }

.report-body { padding: 28px 32px; }

.report-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.report-date {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.report-section-block {
  margin-bottom: 24px;
}

.report-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border-light);
}

.report-row {
  display: flex;
  gap: 16px;
  margin-bottom: 6px;
  font-size: 13px;
}

.report-row-key {
  color: var(--text-muted);
  min-width: 160px;
  flex-shrink: 0;
}

.report-row-val {
  color: var(--text-primary);
  font-weight: 500;
}

.report-recommendation-box {
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.25);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 10px;
}

.report-rec-site {
  font-size: 16px;
  font-weight: 700;
  color: var(--score-excellent);
  margin-bottom: 4px;
}

.report-rec-reason {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.report-screening-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-light);
}

.report-screening-item:last-child { border-bottom: none; }

.report-screening-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-screening-text {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.6;
}

.report-matrix-mini {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  font-size: 12px;
  width: 100%;
  border-collapse: collapse;
}

.report-matrix-mini th {
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
}

.report-matrix-mini td {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.report-matrix-mini tr:last-child td { border-bottom: none; }

.report-next-step {
  background: var(--primary-blue-light);
  border: 1px solid rgba(24, 99, 220, 0.30);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.6;
}

.report-actions {
  display: flex;
  gap: 12px;
  padding: 20px 32px 28px;
  border-top: 1px solid var(--border-light);
}

.copy-btn {
  background: var(--bg-elevated);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition);
}

.copy-btn:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.18);
}

/* ── Page footer ─────────────────────────────────────────────────────────── */
.page-footer {
  text-align: center;
  padding: 20px 32px;
  font-size: 11px;
  color: var(--text-muted);
  border-top: 1px solid var(--border-light);
  margin-top: 16px;
}

/* ── Utility ─────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .input-row { grid-template-columns: 1fr; gap: 28px; }
  .cards-layout { grid-template-columns: 1fr 1fr; }
  .output-header { flex-direction: column; align-items: flex-start; }
  .app-header { padding: 0 20px; }
  .hero { padding: 48px 20px 40px; }
  .input-section { padding: 32px 20px 48px; }
}

@media (max-width: 600px) {
  .cards-layout { grid-template-columns: 1fr; }
  .power-cards { grid-template-columns: repeat(3, 1fr); }
  .map-container { height: 320px; }
  .hero-title { font-size: 26px; }
  .generate-btn { font-size: 14px; padding: 14px 28px; width: 100%; justify-content: center; }
  .matrix-section, .report-section, .cards-section, .map-section { padding: 16px 16px; }
}
