/* ===== FinTablo Quiz — Design System v2 ===== */

:root {
  --brand-blue: #1A56DB;
  --brand-navy: #1A1F36;
  --brand-blue-light: #EEF2FF;
  --brand-blue-hover: #1648C0;
  --brand-blue-disabled: #B0BEF0;

  --accent-green: #10B981;
  --accent-green-light: #D1FAE5;
  --warning: #F59E0B;
  --warning-light: #FEF3C7;
  --danger: #EF4444;
  --danger-light: #FEE2E2;

  --text-primary: #1A1F36;
  --text-secondary: #4B5563;
  --text-muted: #6B7280;
  --bg: #F8FAFF;
  --surface: #FFFFFF;
  --border: #E5E7EB;

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-lg: 0 4px 16px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

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

/* ===== Layout — desktop-friendly ===== */
.container {
  max-width: 600px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-wide {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Header ===== */
header {
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

header .header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header .logo { display: flex; align-items: center; gap: 8px; }
header .logo img { display: block; }

.logo-fallback {
  display: none;
  font-weight: 700;
  color: var(--brand-blue);
  font-size: 20px;
}

/* ===== Progress Bar ===== */
.progress-wrapper {
  padding: 12px 24px 0;
  display: none;
  max-width: 600px;
  margin: 0 auto;
}

.progress-wrapper.visible { display: block; }

.progress-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
}

.progress-bar {
  height: 4px;
  background: #E5E7EB;
  border-radius: 2px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #1A56DB, #4B7FE0);
  border-radius: 2px;
  transition: width 400ms cubic-bezier(0.4,0,0.2,1);
  width: 0%;
}

/* ===== Buttons ===== */
.btn-primary {
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px 32px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, opacity 0.3s;
  width: 100%;
  min-height: 52px;
  font-family: var(--font);
  line-height: 1.3;
}

.btn-primary:hover { background: var(--brand-blue-hover); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:disabled { background: var(--brand-blue-disabled); cursor: not-allowed; transform: none; }

.btn-secondary {
  background: transparent;
  color: var(--brand-blue);
  border: 1.5px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  width: 100%;
  min-height: 48px;
  font-family: var(--font);
}

.btn-secondary:hover { background: var(--brand-blue-light); }

.btn-back {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

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

/* ===== Step Transitions ===== */
.step { display: none; }

.step.active {
  display: block;
  animation: stepIn 220ms ease forwards;
}

.step.leaving { animation: stepOut 220ms ease forwards; }

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

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

/* ===== Start Screen ===== */
.start-screen {
  text-align: center;
  padding: 48px 0 60px;
}

.start-screen h1 {
  font-size: 28px;
  line-height: 1.3;
  color: var(--brand-navy);
  margin-bottom: 16px;
  font-weight: 700;
}

.start-screen .subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.social-proof {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
  background: var(--accent-green-light);
  padding: 6px 14px;
  border-radius: 20px;
}

.dot-green {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-green);
  animation: pulse 2s infinite;
}

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

/* Start screen — benefit items */
.start-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
  max-width: 420px;
  margin: 0 auto 8px;
}

.start-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.start-benefit-item .sb-icon { font-size: 20px; flex-shrink: 0; margin-top: 1px; }
.start-benefit-item .sb-text { font-size: 14px; color: var(--text-primary); line-height: 1.45; }
.start-benefit-item .sb-text strong { color: var(--brand-navy); }

.trust-badges {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.trust-badges span {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
}

/* ===== Quiz Step Content ===== */
.step-content {
  padding: 32px 0 120px;
}

.step-question {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 8px;
  line-height: 1.35;
}

.step-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.5;
}

.step-motivation {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 20px;
  padding: 10px 14px;
  background: #F9FAFB;
  border-radius: 8px;
  line-height: 1.45;
}

.step-motivation .motiv-icon {
  flex-shrink: 0;
  font-size: 16px;
  line-height: 1;
  margin-top: 1px;
}

/* ===== Steps Preview (on name screen) ===== */
.steps-preview {
  display: flex;
  gap: 4px;
  justify-content: center;
  flex-wrap: nowrap;
  margin-top: 28px;
  padding: 16px 8px;
  background: #F9FAFB;
  border-radius: var(--radius);
}

.steps-preview .sp-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--text-muted);
  min-width: 0;
  flex: 1 1 0;
  max-width: 64px;
  text-align: center;
}

.steps-preview .sp-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
}

.steps-preview .sp-arrow {
  display: flex;
  align-items: center;
  color: var(--border);
  font-size: 16px;
  padding-bottom: 16px;
  flex-shrink: 0;
}

/* ===== Option Cards ===== */
.options-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.option-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.15s;
  background: #fff;
  font-size: 15px;
  color: var(--text-primary);
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}

.option-card:hover { border-color: var(--brand-blue); background: var(--brand-blue-light); }

.option-card.selected {
  border-color: var(--brand-blue);
  background: var(--brand-blue-light);
  color: var(--brand-blue);
  font-weight: 600;
}

.option-card.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.option-card .card-icon { font-size: 18px; flex-shrink: 0; }

/* ===== Text Input ===== */
.text-input {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 16px;
  font-family: var(--font);
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.text-input:focus { border-color: var(--brand-blue); }
.text-input::placeholder { color: var(--text-muted); }

/* ===== Slider ===== */
.slider-wrapper { padding: 8px 0; }

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--brand-blue) 0%, var(--brand-blue) var(--pct, 50%), #E5E7EB var(--pct, 50%), #E5E7EB 100%);
  outline: none;
  cursor: pointer;
  margin: 12px 0;
}

input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(26,86,219,0.4);
  cursor: pointer;
}

input[type=range]::-moz-range-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue);
  border: 3px solid #fff;
  box-shadow: 0 2px 6px rgba(26,86,219,0.4);
  cursor: pointer;
}

.slider-labels {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}

.slider-hint {
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
  transition: opacity 0.3s;
}

.slider-hint.hidden-hint { opacity: 0; }

.slider-value {
  text-align: center;
  font-size: 36px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 4px;
}

.slider-sub {
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.5;
}

/* ===== Rate Badge (unified) ===== */
.rate-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.rate-badge.green { background: var(--accent-green-light); color: #059669; }
.rate-badge.blue { background: var(--brand-blue-light); color: var(--brand-blue); }
.rate-badge.yellow { background: var(--warning-light); color: #D97706; }
.rate-badge.red { background: var(--danger-light); color: var(--danger); }

/* ===== Color Indicator Bar (unified for all sliders) ===== */
.color-indicator {
  height: 6px;
  border-radius: 3px;
  background: #E5E7EB;
  margin-top: 8px;
  overflow: hidden;
}

.color-indicator .fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.3s, background 0.3s;
}

/* ===== Insight Box ===== */
.insight-box {
  background: var(--brand-blue-light);
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 8px 8px 0;
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 16px;
  line-height: 1.6;
  animation: fadeSlide 0.25s ease;
}

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

/* ===== Intermediate Screen ===== */
.intermediate-screen {
  padding: 32px 0 120px;
}

.intermediate-screen h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 20px;
  line-height: 1.35;
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 16px;
  text-align: center;
}

.metric-card .metric-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-card .metric-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--brand-navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.metric-card .metric-sub {
  font-size: 12px;
  margin-top: 4px;
  font-weight: 600;
}

.metric-card .metric-sub.green { color: var(--accent-green); }
.metric-card .metric-sub.yellow { color: var(--warning); }
.metric-card .metric-sub.red { color: var(--danger); }

/* Intermediate — benchmark block */
.inter-benchmark {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.inter-benchmark .bench-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.inter-benchmark .bench-row:last-child { border-bottom: none; }
.inter-benchmark .bench-label { color: var(--text-secondary); }
.inter-benchmark .bench-you { font-weight: 700; color: var(--brand-navy); }
.inter-benchmark .bench-market { font-size: 12px; color: var(--text-muted); }

/* Intermediate — key finding */
.inter-finding {
  background: var(--warning-light);
  border-left: 3px solid var(--warning);
  border-radius: 0 8px 8px 0;
  padding: 14px;
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.55;
  margin: 16px 0;
}

.inter-finding.positive { background: var(--accent-green-light); border-left-color: var(--accent-green); }
.inter-finding.negative { background: var(--danger-light); border-left-color: var(--danger); }

/* Intermediate — live cost counter */
.inter-live-cost {
  background: var(--brand-blue-light);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin: 16px 0;
}

.inter-live-cost .cost-label { font-size: 13px; color: var(--text-secondary); margin-bottom: 4px; }
.inter-live-cost .cost-value { font-size: 24px; font-weight: 700; color: var(--brand-blue); }
.inter-live-cost .cost-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.inter-next-hint {
  margin-top: 16px;
  padding: 14px;
  background: #F9FAFB;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  text-align: center;
  line-height: 1.5;
}

/* Enhanced next block for intermediate screen */
.inter-next-block {
  margin-top: 20px;
  background: var(--surface);
  border: 1.5px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 20px;
}

.inter-next-block .inb-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 12px;
  text-align: center;
}

.inter-next-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.inter-next-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.inter-next-item .ini-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.inter-next-item strong { color: var(--brand-navy); }

@media (max-width: 480px) {
  .inter-next-items { grid-template-columns: 1fr; }
}

/* Capture — PAS structure */
.capture-loss {
  background: linear-gradient(135deg, #7F1D1D, #991B1B);
  color: #fff;
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}

.capture-loss .cl-label { font-size: 13px; opacity: .75; margin-bottom: 4px; }
.capture-loss .cl-value { font-size: 36px; font-weight: 700; margin: 4px 0; }
.capture-loss .cl-monthly { font-size: 20px; font-weight: 600; opacity: .85; margin-bottom: 2px; }
.capture-loss .cl-daily { font-size: 14px; font-weight: 600; opacity: .9; }

.capture-summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
}

.capture-summary .cs-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 14px;
  border-bottom: 1px solid var(--border);
}

.capture-summary .cs-row:last-child { border-bottom: none; }
.capture-summary .cs-label { color: var(--text-secondary); }
.capture-summary .cs-value { font-weight: 600; color: var(--brand-navy); }

.capture-solution {
  margin-bottom: 20px;
}

.capture-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.cc-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.4;
}

.cc-item strong { color: var(--brand-navy); font-size: 14px; }
.cc-icon { font-size: 20px; flex-shrink: 0; }

@media (max-width: 480px) {
  .capture-cards { grid-template-columns: 1fr; }
  .capture-loss .cl-value { font-size: 30px; }
}

/* Capture — mini gauge preview (legacy, keep for compatibility) */
.capture-gauge-item { margin-bottom: 12px; }

.capture-gauge-item .cg-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 4px;
}

.capture-gauge-item .cg-title { color: var(--text-secondary); }
.capture-gauge-item .cg-value { font-weight: 600; color: var(--brand-navy); }

.capture-gauge-item .cg-bar { height: 6px; background: #E5E7EB; border-radius: 3px; overflow: hidden; }

.capture-gauge-item .cg-fill { height: 100%; border-radius: 3px; transition: width 0.8s ease; }
.capture-gauge-item .cg-fill.green { background: var(--accent-green); }
.capture-gauge-item .cg-fill.blue { background: var(--brand-blue); }
.capture-gauge-item .cg-fill.yellow { background: var(--warning); }
.capture-gauge-item .cg-fill.red { background: var(--danger); }

/* ===== Navigation Footer ===== */
.step-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 12px 24px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 100;
}

.step-nav .nav-inner {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  gap: 12px;
  align-items: center;
}

.step-nav .btn-primary { flex: 1; }

/* ===== Capture Form ===== */
.capture-form {
  padding: 32px 0 120px;
}

.capture-form h2 {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 20px;
  line-height: 1.3;
}

.preview-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 24px;
}

.preview-block .preview-title {
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

.preview-block .preview-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-size: 14px;
  color: var(--text-primary);
  padding: 5px 0;
}

.preview-block .preview-item .check { color: var(--accent-green); flex-shrink: 0; }

.preview-block .preview-locked {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 13px;
  color: var(--text-muted);
}

.capture-value-block {
  background: var(--brand-blue-light);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 24px;
}

.capture-value-block h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 8px;
}

.capture-value-block ul {
  list-style: none;
  padding: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.capture-value-block li { padding: 2px 0; }
.capture-value-block li::before { content: '✓ '; color: var(--accent-green); font-weight: 600; }

.field-group { margin-bottom: 16px; }

.field-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: var(--font);
  color: var(--text-primary);
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.field-group input:focus { border-color: var(--brand-blue); }

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

.form-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 16px;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0;
  font-size: 14px;
  color: var(--text-primary);
  cursor: pointer;
  line-height: 1.4;
}

.checkbox-row input[type=checkbox] {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--brand-blue);
}

.legal-text {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.5;
}

.legal-text a { color: var(--text-muted); text-decoration: underline; }
.legal-text a:hover { color: var(--text-secondary); }

.skip-link { text-align: center; margin-top: 16px; }
.skip-link a { font-size: 13px; color: var(--text-muted); text-decoration: underline; }
.skip-link a:hover { color: var(--text-secondary); }

/* ===== REPORT PAGE ===== */

/* Report nav */
.report-nav {
  position: sticky;
  top: 53px;
  z-index: 90;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.report-nav::-webkit-scrollbar { display: none; }

.report-nav-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 24px;
  white-space: nowrap;
}

.report-nav a {
  display: block;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  flex-shrink: 0;
}

.report-nav a:hover,
.report-nav a.active {
  color: var(--brand-blue);
  border-bottom-color: var(--brand-blue);
}

/* Report header */
.report-header {
  padding: 16px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.report-header .header-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.report-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}

.report-meta .dot { color: var(--border); }

/* Report hero */
.report-hero {
  background: linear-gradient(135deg, var(--brand-navy) 0%, #1a3a7a 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  margin: 20px 0;
  text-align: center;
}

.report-hero .rh-type {
  display: inline-block;
  background: rgba(255,255,255,0.15);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

.report-hero h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.3;
}

.report-hero .rh-subtitle {
  font-size: 14px;
  opacity: 0.8;
  margin-bottom: 20px;
}

.report-hero .rh-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
}

.report-hero .rh-stat {
  text-align: center;
}

.report-hero .rh-stat-value {
  font-size: 28px;
  font-weight: 700;
}

.report-hero .rh-stat-label {
  font-size: 12px;
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.report-section { margin: 28px 0; scroll-margin-top: 110px; }

.report-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 16px;
}

.report-section h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

/* Dashboard cards */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.dash-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.dash-card .dash-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dash-card .dash-value { font-size: 32px; font-weight: 700; margin: 4px 0; }
.dash-card .dash-bench { font-size: 11px; color: var(--text-muted); }

.dash-card.green .dash-value { color: var(--accent-green); }
.dash-card.yellow .dash-value { color: var(--warning); }
.dash-card.red .dash-value { color: var(--danger); }

/* Gauge bars */
.gauge-item { margin-bottom: 20px; }

.gauge-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}

.gauge-title { font-size: 14px; font-weight: 600; color: var(--brand-navy); }
.gauge-value { font-size: 14px; font-weight: 700; color: var(--brand-blue); }

.gauge-bar { height: 8px; background: #E5E7EB; border-radius: 4px; overflow: hidden; }

.gauge-fill { height: 100%; border-radius: 4px; transition: width 1s ease; width: 0%; }
.gauge-fill.green { background: var(--accent-green); }
.gauge-fill.blue { background: var(--brand-blue); }
.gauge-fill.yellow { background: var(--warning); }
.gauge-fill.red { background: var(--danger); }

.gauge-bench { font-size: 11px; color: var(--text-muted); margin-top: 4px; }

.gauge-rec {
  font-size: 14px;
  color: var(--text-primary);
  margin-top: 8px;
  line-height: 1.55;
}

.bench-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  margin-left: 6px;
}

.bench-badge.green { background: var(--accent-green-light); color: #059669; }
.bench-badge.yellow { background: var(--warning-light); color: #D97706; }
.bench-badge.red { background: var(--danger-light); color: var(--danger); }

/* Profile card */
.profile-card {
  background: linear-gradient(135deg, var(--brand-navy), #1a3a7a);
  color: #fff;
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin-bottom: 20px;
}

.profile-card .profile-icon { font-size: 40px; margin-bottom: 8px; }
.profile-card .profile-type { font-size: 22px; font-weight: 700; margin-bottom: 8px; }
.profile-card .profile-desc { font-size: 14px; opacity: 0.85; line-height: 1.6; margin-bottom: 16px; }

.profile-card .profile-stats {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 13px;
  opacity: 0.8;
}

.profile-card .profile-potential {
  margin-top: 16px;
  font-size: 16px;
  font-weight: 600;
  background: rgba(255,255,255,0.15);
  display: inline-block;
  padding: 6px 16px;
  border-radius: 20px;
}

.profile-points {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.profile-points h4 { font-size: 14px; font-weight: 600; color: var(--brand-navy); margin-bottom: 12px; }
.profile-points ul { list-style: none; padding: 0; }

.profile-points li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0 6px 20px;
  position: relative;
  line-height: 1.5;
}

.profile-points li::before {
  content: ''; position: absolute; left: 0; top: 12px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-blue);
}

/* Lost potential */
.lost-counter {
  background: var(--danger-light);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin-bottom: 16px;
}

.lost-counter .lost-label { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; }
.lost-counter .lost-value { font-size: 36px; font-weight: 700; color: var(--danger); }
.lost-counter .lost-monthly { font-size: 20px; font-weight: 600; color: var(--danger); opacity: 0.85; margin-top: 4px; }
.lost-counter .lost-sub { font-size: 13px; color: var(--text-muted); margin-top: 8px; }

.lost-details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  font-size: 14px;
}

.lost-details .row { display: flex; justify-content: space-between; padding: 6px 0; }
.lost-details .row.highlight { font-weight: 600; color: var(--danger); }

/* Scenario cards */
.scenario-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  position: relative;
}

.scenario-card.recommended { border-color: var(--brand-blue); box-shadow: 0 0 0 1px var(--brand-blue); }

.scenario-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  background: var(--brand-blue);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.scenario-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.scenario-card .scenario-time { font-size: 12px; color: var(--text-muted); margin-bottom: 16px; }

.scenario-card .scenario-actions {
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 20px;
  line-height: 1.7;
}

.scenario-card .scenario-actions br { content: ''; display: block; margin-top: 6px; }

.scenario-card .scenario-forecast {
  background: var(--bg);
  border-radius: 8px;
  padding: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.scenario-card .scenario-forecast strong { color: var(--brand-navy); }

.scenario-card .scenario-why {
  margin-top: 12px;
  font-size: 13px;
  color: var(--brand-blue);
  font-style: italic;
  line-height: 1.5;
}

/* Roadmap */
.roadmap-month { margin-bottom: 28px; }

.roadmap-month h3 {
  font-size: 16px;
  font-weight: 700;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--brand-blue);
  margin-bottom: 16px;
}

.roadmap-week { margin-bottom: 16px; }
.roadmap-week h4 { font-size: 14px; font-weight: 600; color: var(--brand-blue); margin-bottom: 8px; }

.roadmap-week p {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.65;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

/* FinTablo benefits */
.benefit-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

.benefit-card .benefit-icon { font-size: 24px; margin-bottom: 8px; }
.benefit-card h4 { font-size: 15px; font-weight: 600; color: var(--brand-navy); margin-bottom: 6px; }
.benefit-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.fintablo-calc {
  background: var(--brand-blue-light);
  border: 1px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 24px;
  margin: 20px 0;
}

.fintablo-calc h4 { font-size: 16px; font-weight: 700; color: var(--brand-navy); margin-bottom: 12px; }

.fintablo-calc .calc-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 4px 0;
}

.fintablo-calc .calc-row.total {
  font-weight: 700;
  font-size: 16px;
  color: var(--brand-blue);
  padding-top: 8px;
  margin-top: 8px;
  border-top: 1px solid var(--brand-blue);
}

.fintablo-calc .calc-growth {
  margin-top: 8px;
  font-size: 14px;
  color: var(--accent-green);
  font-weight: 600;
}

/* Report insight */
.report-insight {
  background: var(--brand-blue-light);
  border-left: 4px solid var(--brand-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 20px;
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.65;
  margin: 20px 0;
}

/* Report CTA */
.report-cta {
  background: linear-gradient(135deg, var(--brand-navy), #1a3a7a);
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  margin: 32px 0;
}

.report-cta h3 { font-size: 20px; margin-bottom: 12px; }
.report-cta p { font-size: 14px; opacity: 0.85; margin-bottom: 20px; line-height: 1.5; }

.report-cta .btn-primary {
  background: #fff;
  color: var(--brand-blue);
  max-width: 360px;
  margin: 0 auto;
}

.report-cta .btn-primary:hover { background: #f0f0f0; }

/* Locked overlay for preview mode */
.report-locked {
  position: relative;
}

.report-locked::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(248,250,255,0) 0%, rgba(248,250,255,0.95) 60%);
  pointer-events: none;
  border-radius: var(--radius);
}

.locked-cta {
  background: var(--surface);
  border: 2px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  margin: 24px 0;
}

.locked-cta h3 { font-size: 18px; font-weight: 700; color: var(--brand-navy); margin-bottom: 8px; }
.locked-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }

.locked-cta .btn-primary { max-width: 360px; margin: 0 auto; }

/* Share button */
.btn-share {
  background: none;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 24px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  width: 100%;
  font-family: var(--font);
  transition: border-color 0.2s;
  margin-top: 16px;
}

.btn-share:hover { border-color: var(--brand-blue); color: var(--brand-blue); }

/* ===== THANK YOU PAGE ===== */
.thankyou-hero {
  text-align: center;
  padding: 48px 0 28px;
}

.thankyou-hero .check-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.thankyou-hero h1 {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 12px;
  line-height: 1.3;
}

.thankyou-hero p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.timer-block {
  background: var(--brand-blue-light);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin: 20px 0;
}

.timer-block .timer-label { font-size: 13px; color: var(--text-secondary); }
.timer-block .timer-value { font-size: 20px; font-weight: 700; color: var(--brand-blue); margin-top: 4px; }

/* Value block on thankyou */
.call-value-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin: 20px 0;
}

.call-value-block h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--brand-navy);
  margin-bottom: 12px;
}

.call-value-block ul {
  list-style: none;
  padding: 0;
}

.call-value-block li {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 0 6px 24px;
  position: relative;
  line-height: 1.5;
}

.call-value-block li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-green);
  font-weight: 700;
}

/* Next steps */
.next-steps { margin: 24px 0; }

.next-step {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.next-step .step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.next-step .step-body h4 { font-size: 15px; font-weight: 600; color: var(--brand-navy); margin-bottom: 4px; }
.next-step .step-body p, .next-step .step-body ul { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }
.next-step .step-body ul { list-style: none; padding: 0; margin-top: 4px; }
.next-step .step-body li { padding: 2px 0; }
.next-step .step-body li::before { content: '  '; color: var(--brand-blue); }

/* Stories */
.stories { margin: 24px 0; }
.stories h3 { font-size: 16px; font-weight: 700; color: var(--brand-navy); margin-bottom: 16px; }

.story-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

.story-card .story-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.story-card .story-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.story-card .story-name { font-size: 14px; font-weight: 600; color: var(--brand-navy); }

.story-card .story-before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 13px;
  margin-bottom: 10px;
}

.story-card .story-before { color: var(--text-muted); }
.story-card .story-after { color: var(--accent-green); font-weight: 600; }
.story-card .story-quote { font-size: 14px; color: var(--text-secondary); font-style: italic; line-height: 1.5; }

/* Partner program */
.partner-block { margin: 24px 0; }

.partner-format {
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 12px;
}

.partner-format.primary { border-color: var(--brand-blue); }
.partner-format h4 { font-size: 15px; font-weight: 700; color: var(--brand-navy); margin-bottom: 8px; }
.partner-format p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

.partner-benefit { display: flex; gap: 12px; padding: 12px 0; }
.partner-benefit .pb-icon { font-size: 20px; flex-shrink: 0; }
.partner-benefit h5 { font-size: 14px; font-weight: 600; color: var(--brand-navy); margin-bottom: 2px; }
.partner-benefit p { font-size: 13px; color: var(--text-secondary); line-height: 1.4; }

/* Action cards */
.action-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-primary);
  text-decoration: none;
  background: var(--surface);
  cursor: pointer;
  margin-bottom: 8px;
  transition: border-color 0.2s;
  font-family: var(--font);
  width: 100%;
  text-align: left;
}

.action-card:hover { border-color: var(--brand-blue); }

/* Late email */
.late-email-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}

.late-email-form p { font-size: 14px; color: var(--text-primary); margin-bottom: 10px; }

.late-email-form .input-row { display: flex; gap: 8px; }

.late-email-form input {
  flex: 1;
  padding: 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
  font-family: var(--font);
  outline: none;
}

.late-email-form input:focus { border-color: var(--brand-blue); }

.late-email-form button {
  padding: 12px 20px;
  background: var(--brand-blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  white-space: nowrap;
}

/* Persistent banner */
.persistent-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-navy);
  color: #fff;
  padding: 14px 24px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 200;
  display: none;
}

.persistent-banner.visible { display: block; }

.persistent-banner .banner-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.persistent-banner .banner-text { flex: 1; font-size: 13px; }

.persistent-banner .btn-banner {
  background: #fff;
  color: var(--brand-blue);
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
}

/* Sticky CTA for full report */
.sticky-report-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-blue);
  color: #fff;
  padding: 12px 24px;
  padding-bottom: max(12px, env(safe-area-inset-bottom));
  z-index: 190;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.sticky-report-cta.visible { transform: translateY(0); }

.sticky-report-cta .banner-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sticky-report-cta .banner-text { flex: 1; font-size: 14px; font-weight: 500; }

.sticky-report-cta .btn-banner {
  background: #fff;
  color: var(--brand-blue);
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
}

/* Inline CTA between report sections */
.inline-cta {
  background: linear-gradient(135deg, var(--brand-blue-light), #E0E7FF);
  border: 1px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 24px;
  text-align: center;
  margin: 24px 0;
}

.inline-cta h4 { font-size: 16px; font-weight: 600; color: var(--brand-navy); margin-bottom: 8px; }
.inline-cta p { font-size: 14px; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }

.inline-cta .btn-primary { max-width: 360px; margin: 0 auto; }

/* ===== Cross-browser ===== */
input[type=range]::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: transparent;
}

input[type=range]::-moz-range-progress {
  height: 6px;
  border-radius: 3px 0 0 3px;
  background: var(--brand-blue);
}

/* Safari touch-action fix */
.option-card, .btn-primary, .btn-secondary, .btn-back, .action-card {
  -webkit-tap-highlight-color: transparent;
}

/* Firefox scrollbar hide for report nav */
.report-nav { scrollbar-width: none; }

/* Ensure smooth scroll on iOS */
html { -webkit-overflow-scrolling: touch; }

/* ===== Responsive: 375px (iPhone SE) ===== */
@media (max-width: 389px) {
  body { font-size: 14px; }
  .start-screen h1 { font-size: 20px; }
  .start-screen .subtitle { font-size: 14px; }
  .start-benefit-item { padding: 10px 12px; }
  .start-benefit-item .sb-text { font-size: 13px; }
  .step-question { font-size: 18px; }
  .slider-value { font-size: 28px; }
  .option-card { padding: 12px 14px; font-size: 14px; min-height: 44px; }
  .container, .container-wide { padding: 0 14px; }
  .step-nav { padding: 10px 14px; }
  .btn-primary { padding: 14px 24px; font-size: 15px; }
  .metrics-grid { gap: 6px; }
  .metric-card { padding: 14px 10px; }
  .metric-card .metric-value { font-size: 22px; }
  .steps-preview { padding: 12px 6px; gap: 2px; }
  .steps-preview .sp-item { font-size: 10px; }
  .steps-preview .sp-icon { width: 26px; height: 26px; font-size: 12px; }
  .steps-preview .sp-arrow { font-size: 10px; }
  .insight-box { font-size: 12px; padding: 10px 12px; }
  .inter-next-items { grid-template-columns: 1fr; }
  .report-hero h1 { font-size: 20px; }
  .report-hero .rh-stats { gap: 16px; }
  .report-hero .rh-stat-value { font-size: 22px; }
  .dash-card .dash-value { font-size: 24px; }
  .profile-card { padding: 20px 16px; }
  .profile-card .profile-type { font-size: 18px; }
  .scenario-card { padding: 18px; }
  .sticky-report-cta .banner-text { font-size: 12px; }
  .persistent-banner .banner-text { font-size: 12px; }
}

/* ===== Responsive: up to 480px (small phones) ===== */
@media (max-width: 480px) {
  .start-screen h1 { font-size: 22px; }
  .step-question { font-size: 20px; }
  .trust-badges { gap: 12px; }
  .trust-badges span { font-size: 12px; }
  .metrics-grid { gap: 8px; }
  .metric-card .metric-value { font-size: 24px; }
  .dash-card .dash-value { font-size: 26px; }
  .story-card .story-before-after { grid-template-columns: 1fr; }
  .container, .container-wide { padding: 0 16px; }
  .step-nav { padding: 10px 16px; }
  .slider-value { font-size: 30px; }
  .steps-preview .sp-item { font-size: 11px; }
  .steps-preview .sp-icon { width: 28px; height: 28px; font-size: 13px; }
  .inter-next-items { grid-template-columns: 1fr; }
  .report-hero .rh-stats { gap: 16px; }
  .capture-hook { font-size: 14px; }
  .fintablo-calc { padding: 18px; }
  .roadmap-week p { padding: 12px; font-size: 13px; }
}

/* ===== Responsive: 481-768px (large phones, small tablets) ===== */
@media (min-width: 481px) and (max-width: 768px) {
  .container { max-width: 540px; }
  .start-benefits { max-width: 460px; }
  .dashboard-grid { gap: 12px; }
}

/* ===== Responsive: 769px+ (tablets landscape, desktop) ===== */
@media (min-width: 769px) {
  .start-screen { padding: 64px 0 80px; }
  .start-screen h1 { font-size: 32px; }
  .start-screen .subtitle { font-size: 17px; max-width: 520px; }
  .start-benefits { max-width: 480px; }
  .step-content { padding: 40px 0 120px; }
  .step-question { font-size: 26px; }
  .dashboard-grid { gap: 16px; }
  .dash-card { padding: 24px; }
  .dash-card .dash-value { font-size: 36px; }
  .report-section { margin: 36px 0; }
  .report-hero { padding: 40px 32px; }
  .report-hero h1 { font-size: 28px; }
  .report-hero .rh-stat-value { font-size: 32px; }
  .scenario-card { padding: 28px; }
  .fintablo-calc { padding: 28px; }
  .profile-card { padding: 36px 32px; }
  .inter-benchmark { padding: 20px; }
}

/* ===== Responsive: 1024px+ (desktop) ===== */
@media (min-width: 1024px) {
  .container-wide { max-width: 880px; }
  .report-hero .rh-stats { gap: 40px; }
  .dashboard-grid { grid-template-columns: repeat(4, 1fr); }
  .story-card .story-before-after { grid-template-columns: 1fr 1fr; }
}

/* ===== Responsive: 1440px+ (wide desktop) ===== */
@media (min-width: 1440px) {
  .container { max-width: 640px; }
  .container-wide { max-width: 960px; }
  body { font-size: 16px; }
}

/* ===== Finding cards ===== */
.finding-card {
  background: var(--surface);
  border-left: 3px solid var(--brand-blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px;
  margin-bottom: 12px;
}

.finding-card .fc-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.finding-card .fc-icon { font-size: 18px; }

.finding-card .fc-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-navy);
}

.finding-card .fc-body {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.55;
}

.finding-card .fc-action {
  margin-top: 8px;
  font-size: 14px;
  color: var(--brand-blue);
  font-weight: 500;
}

.finding-card.warning { border-left-color: var(--warning); }
.finding-card.danger { border-left-color: var(--danger); }
.finding-card.success { border-left-color: var(--accent-green); }

/* ===== Name step — "For whom" block ===== */
.name-step-info {
  margin-top: 24px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.name-step-info .nsi-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 10px;
}

.name-step-info .nsi-items {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.name-step-info .nsi-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.name-step-info .nsi-icon { font-size: 16px; flex-shrink: 0; }

/* ===== Footer ===== */
/* Footer needs bottom padding to clear fixed elements (step-nav ~76px, sticky CTA ~56px) */
.site-footer {
  margin-top: 40px;
  padding: 24px 24px;
  padding-bottom: 80px; /* clears fixed nav/sticky CTA */
  border-top: 1px solid var(--border);
  background: var(--surface);
}

/* On quiz pages, footer is mostly hidden behind steps. On report — needs clearance for sticky CTA */
body.page-report .site-footer { padding-bottom: 72px; }

/* Extra footer clearance when cookie banner pushes bars up */
body:has(.cookie-banner.visible) .site-footer { padding-bottom: 140px; }
body:has(.cookie-banner.visible).page-report .site-footer { padding-bottom: 132px; }
body.page-thankyou .site-footer { padding-bottom: 24px; }

.footer-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-company { flex-shrink: 0; }

.footer-brand {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 4px;
}

.footer-legal {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover { color: var(--text-secondary); text-decoration: underline; }

@media (max-width: 480px) {
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .footer-links { align-items: center; }
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--brand-navy);
  color: #fff;
  padding: 14px 24px;
  padding-bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 300;
  display: none;
}

.cookie-banner.visible { display: block; }

/* Shift fixed bottom bars up when cookie banner is visible */
body:has(.cookie-banner.visible) .step-nav,
body:has(.cookie-banner.visible) .persistent-banner,
body:has(.cookie-banner.visible) .sticky-report-cta {
  bottom: 60px;
}

.cookie-banner .cb-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner .cb-text {
  flex: 1;
  font-size: 13px;
  line-height: 1.4;
  min-width: 200px;
}

.cookie-banner .cb-text a { color: #fff; text-decoration: underline; }

.cookie-banner .cb-btn {
  background: #fff;
  color: var(--brand-navy);
  border: none;
  border-radius: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--font);
}

/* ===== Utility ===== */
@keyframes stepInFromLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
.step.entering-back { animation: stepInFromLeft 220ms ease forwards; }

.hidden { display: none !important; }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
