/* ═══════════════════════════════════════════
   ESSENTIALSCAN NAVIGATOR — STYLESHEET
   ═══════════════════════════════════════════ */

/* CSS VARIABLES */
:root {
  --royal-blue: #0A74DA;
  --blue-dark: #0558A8;
  --blue-light: #3d9eff;
  --emerald: #2C8F2E;
  --emerald-light: #38b83b;
  --charcoal: #1e2433;
  --charcoal-mid: #2d3448;
  --charcoal-light: #3d4460;
  --silver: #A1A1A1;
  --orange: #FF6A13;
  --orange-dark: #d95800;
  --yellow: #F8B800;
  --white: #FFFFFF;
  --off-white: #F7F8FC;
  --light-gray: #F0F2F8;
  --border: #e2e6f0;
  --shadow-sm: 0 2px 12px rgba(10,116,218,0.08);
  --shadow-md: 0 8px 32px rgba(10,116,218,0.12);
  --shadow-lg: 0 20px 60px rgba(10,116,218,0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--off-white);
  color: var(--charcoal);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ═══════════════ HEADER ═══════════════ */
.site-header {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 40%, #0d1a3a 100%);
  color: white;
  padding: 3.5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.header-inner { position: relative; z-index: 2; }
.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.8rem;
}
.logo-icon {
  font-size: 1.8rem;
  color: var(--blue-light);
  animation: pulse 3s ease-in-out infinite;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--silver);
  text-transform: uppercase;
}
.logo-text em {
  font-style: normal;
  color: var(--blue-light);
}
.site-header h1 {
  display: none;
}
.header-tagline {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.04em;
}

/* Big hero text in header area — injected via the logo area */
.site-header::before {
  content: 'EssentialScan Navigator™';
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  color: white;
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
  z-index: 0;
  opacity: 0;
  pointer-events: none;
}

/* Override: show proper title */
.header-inner::before {
  content: 'Uncover What\'s Holding Your Business Back';
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #fff 30%, var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* BG SHAPES */
.header-bg-shapes { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.06;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--royal-blue);
  top: -200px; right: -100px;
  animation: float 8s ease-in-out infinite;
}
.shape-2 {
  width: 300px; height: 300px;
  background: var(--emerald);
  bottom: -100px; left: -80px;
  animation: float 10s ease-in-out infinite reverse;
}
.shape-3 {
  width: 150px; height: 150px;
  background: var(--orange);
  top: 30%; left: 20%;
  animation: float 6s ease-in-out infinite 2s;
}

/* ═══════════════ MAIN CONTAINER ═══════════════ */
.main-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ═══════════════ PROGRESS ═══════════════ */
.progress-wrap {
  margin-bottom: 2.5rem;
}
.progress-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  gap: 0.5rem;
}
.step {
  flex: 1;
  text-align: center;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--silver);
  padding: 0.5rem 0.25rem;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
}
.step span {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
  transition: all 0.3s ease;
}
.step.active { color: var(--royal-blue); }
.step.active span { background: var(--royal-blue); color: white; box-shadow: 0 4px 12px rgba(10,116,218,0.3); }
.step.done { color: var(--emerald); }
.step.done span { background: var(--emerald); color: white; }
.progress-bar-track {
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--royal-blue), var(--blue-light));
  border-radius: 99px;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 20%;
}

/* ═══════════════ FORM SECTION ═══════════════ */
.form-section {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.step-panel { display: none; }
.step-panel.active { display: block; animation: fadeIn 0.4s ease; }

.step-header { margin-bottom: 2rem; }
.step-header h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.5rem;
}
.step-header p {
  color: var(--silver);
  font-size: 0.95rem;
}

/* FORM GRID */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label {
  font-weight: 500;
  font-size: 0.88rem;
  color: var(--charcoal);
}

input[type="text"],
select,
textarea {
  font-family: var(--font-body);
  font-size: 0.95rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  color: var(--charcoal);
  background: var(--off-white);
  transition: all 0.25s ease;
  width: 100%;
  outline: none;
  appearance: none;
}
input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: var(--royal-blue);
  background: white;
  box-shadow: 0 0 0 4px rgba(10,116,218,0.1);
}
textarea { resize: vertical; min-height: 90px; }

/* CHECKBOX CARDS */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}
.goals-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }

.check-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.4rem;
  padding: 1.1rem 0.75rem;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--off-white);
  position: relative;
}
.check-card:hover {
  border-color: var(--royal-blue);
  background: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.check-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.check-card.selected {
  border-color: var(--royal-blue);
  background: linear-gradient(135deg, rgba(10,116,218,0.06), rgba(10,116,218,0.02));
  box-shadow: 0 4px 16px rgba(10,116,218,0.12);
}
.check-icon { font-size: 1.6rem; }
.check-label { font-weight: 600; font-size: 0.85rem; color: var(--charcoal); }
.check-desc { font-size: 0.72rem; color: var(--silver); line-height: 1.3; }

/* RATING SCALE */
.rating-group { display: flex; flex-direction: column; gap: 1.5rem; }
.rating-item { display: flex; flex-direction: column; gap: 0.6rem; }
.rating-item label { font-weight: 600; font-size: 0.9rem; color: var(--charcoal); }
.rating-scale {
  display: flex;
  gap: 0.5rem;
}
.rating-btn {
  flex: 1;
  padding: 0.6rem 0.3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  transition: all 0.2s ease;
  line-height: 1.3;
}
.rating-btn small { display: block; font-family: var(--font-body); font-weight: 400; font-size: 0.65rem; color: var(--silver); }
.rating-btn:hover { border-color: var(--royal-blue); background: white; }
.rating-btn.active {
  border-color: var(--royal-blue);
  background: var(--royal-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(10,116,218,0.3);
}
.rating-btn.active small { color: rgba(255,255,255,0.7); }

/* RADIO CARDS */
.radio-group { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-top: 0.3rem; }
.radio-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1.2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  transition: all 0.2s ease;
  background: var(--off-white);
}
.radio-card:hover { border-color: var(--royal-blue); background: white; }
.radio-card input { accent-color: var(--royal-blue); }

/* STEP NAV */
.step-nav {
  display: flex;
  justify-content: flex-end;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* BUTTONS */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.8rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: linear-gradient(135deg, var(--royal-blue), var(--blue-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(10,116,218,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(10,116,218,0.4);
}
.btn-ghost {
  background: transparent;
  color: var(--silver);
  border: 2px solid var(--border);
}
.btn-ghost:hover { border-color: var(--charcoal); color: var(--charcoal); }
.btn-generate {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  font-size: 1rem;
  padding: 1rem 2.2rem;
  box-shadow: 0 6px 20px rgba(255,106,19,0.4);
  animation: glow-pulse 2s ease-in-out infinite;
}
.btn-generate:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(255,106,19,0.5);
}
.btn-cta {
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  box-shadow: 0 6px 20px rgba(255,106,19,0.35);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(255,106,19,0.45); }
.btn-secondary {
  background: white;
  color: var(--charcoal);
  border: 2px solid var(--border);
  font-size: 0.95rem;
  padding: 1rem 2rem;
}
.btn-secondary:hover { border-color: var(--charcoal); }

/* ═══════════════ LOADING ═══════════════ */
.loading-screen {
  display: none;
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}
.loading-inner h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1.5rem 0 0.5rem;
  color: var(--charcoal);
}
.loading-inner p { color: var(--silver); margin-bottom: 2rem; }

.scan-animation {
  position: relative;
  width: 100px;
  height: 100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.scan-ring {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--royal-blue);
  animation: spin 1.2s linear infinite;
}
.scan-ring.ring2 {
  width: 75%; height: 75%;
  border-top-color: var(--emerald);
  animation-duration: 1.8s;
  animation-direction: reverse;
}
.scan-ring.ring3 {
  width: 50%; height: 50%;
  border-top-color: var(--orange);
  animation-duration: 0.9s;
}
.scan-icon {
  font-size: 1.5rem;
  color: var(--royal-blue);
  animation: pulse 1.5s ease-in-out infinite;
}

.loading-steps {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-align: left;
  max-width: 320px;
  margin: 0 auto;
}
.load-step {
  font-size: 0.85rem;
  color: var(--border);
  padding: 0.4rem 0;
  transition: color 0.5s ease;
}
.load-step.done { color: var(--emerald); }

/* ═══════════════ RESULTS SECTION ═══════════════ */
.results-section { display: none; }

.results-header {
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.results-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--emerald), var(--emerald-light));
  color: white;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1.2rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.results-header h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--charcoal);
  margin-bottom: 0.75rem;
}
.results-header p { color: var(--silver); font-size: 1rem; }

/* HEALTH SCORE CARD */
.health-score-card {
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
  padding: 2rem;
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}
.health-left { flex: 1; }
.health-left h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}
.health-left p { color: var(--silver); font-size: 0.9rem; margin-bottom: 1.25rem; }

.health-dimensions { display: flex; flex-direction: column; gap: 0.6rem; }
.dimension-row { display: flex; align-items: center; gap: 0.75rem; }
.dimension-label { font-size: 0.82rem; font-weight: 500; min-width: 110px; color: var(--charcoal); }
.dimension-bar-track { flex: 1; height: 8px; background: var(--light-gray); border-radius: 99px; overflow: hidden; }
.dimension-bar-fill { height: 100%; border-radius: 99px; transition: width 1s ease 0.5s; }
.dimension-score { font-size: 0.8rem; font-weight: 700; min-width: 30px; text-align: right; }

.health-right { flex-shrink: 0; }
.score-circle {
  position: relative;
  width: 140px;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.score-circle svg {
  position: absolute;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.score-track { fill: none; stroke: var(--light-gray); stroke-width: 8; }
.score-progress {
  fill: none;
  stroke: var(--royal-blue);
  stroke-width: 8;
  stroke-linecap: round;
  stroke-dasharray: 314;
  stroke-dashoffset: 314;
  transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.score-value {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--charcoal);
  position: relative;
  z-index: 1;
  line-height: 1;
}
.score-label { font-size: 0.75rem; color: var(--silver); position: relative; z-index: 1; }

/* SECTION DIVIDERS */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.5rem 0 1.5rem;
}
.section-divider::before, .section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.section-divider span {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--charcoal);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

/* RESULTS GRID */
.results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}

.result-card {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.result-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.card-severity {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 99px;
  margin-bottom: 0.5rem;
}
.severity-high { background: rgba(255,106,19,0.12); color: var(--orange); }
.severity-medium { background: rgba(248,184,0,0.12); color: #c49300; }
.severity-low { background: rgba(44,143,46,0.12); color: var(--emerald); }
.card-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 0.4rem;
}
.card-desc { font-size: 0.84rem; color: var(--silver); line-height: 1.5; }

.opportunity-card { border-left: 4px solid var(--emerald); }

/* ROADMAP TIMELINE */
.roadmap-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 0.5rem;
}
.roadmap-phase {
  background: white;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.phase-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  user-select: none;
}
.phase-badge {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}
.phase-30 { background: rgba(255,106,19,0.12); color: var(--orange); }
.phase-60 { background: rgba(10,116,218,0.1); color: var(--royal-blue); }
.phase-90 { background: rgba(44,143,46,0.1); color: var(--emerald); }
.phase-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--charcoal);
  flex: 1;
}
.phase-toggle { color: var(--silver); font-size: 0.85rem; transition: transform 0.3s ease; }
.phase-body {
  padding: 0 1.5rem 1.5rem;
}
.phase-actions { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.phase-actions li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--charcoal);
  line-height: 1.5;
}
.phase-actions li::before {
  content: '→';
  color: var(--royal-blue);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

/* KPI GRID */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.kpi-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.kpi-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.kpi-emoji { font-size: 1.5rem; margin-bottom: 0.5rem; }
.kpi-metric {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--royal-blue);
  margin-bottom: 0.25rem;
}
.kpi-label { font-size: 0.78rem; color: var(--silver); font-weight: 500; }

/* TOOLS GRID */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}
.tool-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}
.tool-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tool-category {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--royal-blue);
  margin-bottom: 0.4rem;
}
.tool-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 0.3rem;
}
.tool-desc { font-size: 0.78rem; color: var(--silver); }

/* CTA SECTION */
.cta-section {
  background: linear-gradient(135deg, var(--charcoal) 0%, var(--charcoal-mid) 50%, #0d1a3a 100%);
  border-radius: var(--radius);
  padding: 3.5rem 2.5rem;
  text-align: center;
  margin-top: 3rem;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: var(--royal-blue);
  opacity: 0.08;
  top: -100px; right: -100px;
}
.cta-inner { position: relative; z-index: 1; }
.cta-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: white;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: white;
  margin-bottom: 0.75rem;
}
.cta-section p { color: rgba(255,255,255,0.65); font-size: 1rem; max-width: 520px; margin: 0 auto 2rem; }
.cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 1.5rem; }
.guarantee {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  max-width: 480px;
  margin: 0 auto !important;
}
.guarantee strong { color: rgba(255,255,255,0.8); }

/* ═══════════════ FOOTER ═══════════════ */
.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--silver);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
}
.site-footer em { font-style: normal; color: var(--royal-blue); }

/* ═══════════════ ANIMATIONS ═══════════════ */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-20px) scale(1.02); }
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(255,106,19,0.4); }
  50% { box-shadow: 0 8px 30px rgba(255,106,19,0.6); }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* ═══════════════ NIGHT SCREEN ═══════════════ */
.night-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 3rem 1.5rem;
}
.night-inner {
  max-width: 680px;
  width: 100%;
  text-align: center;
}
.night-icon { font-size: 3rem; margin-bottom: 1rem; animation: pulse 3s ease-in-out infinite; }
.night-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--royal-blue);
  margin-bottom: 1rem;
}
.night-headline {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.night-sub {
  font-size: 0.95rem;
  color: var(--silver);
  line-height: 1.7;
  margin-bottom: 2rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}
.night-input-wrap {
  position: relative;
  margin-bottom: 1.75rem;
}
.night-input-wrap textarea {
  font-size: 1rem;
  line-height: 1.7;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  background: white;
  box-shadow: var(--shadow-sm);
  min-height: 130px;
}
.night-input-wrap textarea:focus { border-color: var(--royal-blue); box-shadow: 0 0 0 4px rgba(10,116,218,0.1); }
.char-count {
  text-align: right;
  font-size: 0.72rem;
  color: var(--silver);
  margin-top: 0.4rem;
}
.btn-night {
  background: linear-gradient(135deg, var(--royal-blue), var(--blue-dark));
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 1rem 2.5rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(10,116,218,0.3);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.btn-night:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(10,116,218,0.4); }
.night-skip { margin-top: 1rem; font-size: 0.82rem; }
.night-skip a { color: var(--silver); text-decoration: underline; }
.night-skip a:hover { color: var(--royal-blue); }

/* ═══════════════ NEW PROGRESS ═══════════════ */
.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--silver);
}
.progress-section-label { color: var(--charcoal); font-weight: 600; }
.progress-pct { color: var(--royal-blue); }

/* ═══════════════ SECTION BADGE ═══════════════ */
.section-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(10,116,218,0.1), rgba(10,116,218,0.05));
  border: 1px solid rgba(10,116,218,0.2);
  color: var(--royal-blue);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 99px;
  margin-bottom: 1rem;
}

/* ═══════════════ QUESTION BLOCKS ═══════════════ */
.question-block {
  margin-top: 1.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
}
.question-block:first-of-type { border-top: none; }
.q-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--charcoal);
  margin-bottom: 0.85rem;
  line-height: 1.45;
}
.req { color: var(--orange); }

/* ═══════════════ RANGE OPTIONS (credit score style) ═══════════════ */
.range-options {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.range-card {
  flex: 1;
  min-width: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--off-white);
  position: relative;
}
.range-card input[type="radio"] { position: absolute; opacity: 0; width: 0; height: 0; }
.range-card:hover { border-color: var(--royal-blue); background: white; transform: translateY(-2px); }
.range-card.selected {
  border-color: var(--royal-blue);
  background: linear-gradient(135deg, rgba(10,116,218,0.08), rgba(10,116,218,0.02));
  box-shadow: 0 4px 14px rgba(10,116,218,0.15);
}
.range-card.poor { border-color: rgba(255,106,19,0.25); }
.range-card.poor.selected { border-color: var(--orange); background: rgba(255,106,19,0.06); }
.range-card.fair { border-color: rgba(248,184,0,0.3); }
.range-card.fair.selected { border-color: var(--yellow); background: rgba(248,184,0,0.08); }
.range-card.good { border-color: rgba(44,143,46,0.25); }
.range-card.good.selected { border-color: var(--emerald); background: rgba(44,143,46,0.06); }
.range-card.excellent { border-color: rgba(44,143,46,0.4); }
.range-card.excellent.selected { border-color: var(--emerald); background: rgba(44,143,46,0.1); box-shadow: 0 4px 14px rgba(44,143,46,0.18); }
.range-label { font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--charcoal); }
.range-sub { font-size: 0.65rem; color: var(--silver); margin-top: 0.2rem; font-weight: 500; }

/* ═══════════════ RADIO PILLS ═══════════════ */
.radio-pill-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.radio-pill {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--off-white);
  transition: all 0.2s ease;
  user-select: none;
}
.radio-pill input[type="radio"] { accent-color: var(--royal-blue); flex-shrink: 0; }
.radio-pill:hover { border-color: var(--royal-blue); background: white; }
.radio-pill.selected {
  border-color: var(--royal-blue);
  background: linear-gradient(135deg, rgba(10,116,218,0.07), rgba(10,116,218,0.02));
  color: var(--royal-blue);
  font-weight: 600;
}

/* ═══════════════ MINI CHECKBOXES ═══════════════ */
.checkbox-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.5rem;
}
.mini-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.65rem 0.9rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--charcoal);
  background: var(--off-white);
  transition: all 0.2s ease;
  user-select: none;
}
.mini-check input[type="checkbox"] { accent-color: var(--royal-blue); flex-shrink: 0; }
.mini-check:hover { border-color: var(--royal-blue); background: white; }
.mini-check.selected {
  border-color: var(--royal-blue);
  background: rgba(10,116,218,0.06);
  color: var(--royal-blue);
  font-weight: 600;
}

/* ═══════════════ RATING SCALE (updated) ═══════════════ */
.rating-scale {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.rating-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--silver);
  font-weight: 500;
}
.rating-btns {
  display: flex;
  gap: 0.5rem;
}
.rating-btn {
  flex: 1;
  padding: 0.75rem 0.3rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  transition: all 0.2s ease;
}
.rating-btn:hover { border-color: var(--royal-blue); background: white; }
.rating-btn.active {
  border-color: var(--royal-blue);
  background: var(--royal-blue);
  color: white;
  box-shadow: 0 4px 12px rgba(10,116,218,0.3);
}

/* ═══════════════ COMMITMENT SCALE ═══════════════ */
.commitment-scale { display: flex; flex-direction: column; gap: 0.75rem; }
.commitment-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--silver);
  font-weight: 500;
}
.commitment-btns {
  display: flex;
  gap: 0.4rem;
}
.commit-btn {
  flex: 1;
  padding: 0.8rem 0.2rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--off-white);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
  text-align: center;
  transition: all 0.2s ease;
}
.commit-btn:hover { border-color: var(--emerald); background: white; }
.commit-btn.active {
  border-color: var(--emerald);
  background: var(--emerald);
  color: white;
  box-shadow: 0 4px 14px rgba(44,143,46,0.3);
}
.commit-btn[data-val="8"].active,
.commit-btn[data-val="9"].active,
.commit-btn[data-val="10"].active {
  background: linear-gradient(135deg, var(--emerald), #1a7a1c);
  box-shadow: 0 4px 18px rgba(44,143,46,0.4);
}

/* ═══════════════ MISSED CALL RESULT ═══════════════ */
.missed-call-card {
  background: white;
  border-radius: var(--radius);
  border: 2px solid rgba(255,106,19,0.2);
  padding: 2rem;
  margin-bottom: 0.5rem;
  box-shadow: 0 4px 20px rgba(255,106,19,0.08);
}
.mc-severity {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.mc-headline {
  font-size: 0.95rem;
  color: var(--silver);
  margin-bottom: 1.5rem;
}
.mc-numbers {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.mc-stat { text-align: center; }
.mc-stat.featured { flex: 1; }
.mc-amount {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--charcoal);
  line-height: 1;
}
.mc-stat.featured .mc-amount { font-size: 3rem; color: var(--orange); }
.mc-period {
  font-size: 0.8rem;
  color: var(--silver);
  font-weight: 600;
  margin-top: 0.2rem;
}
.mc-sub { font-size: 0.72rem; color: var(--silver); }
.mc-divider { font-size: 1.5rem; color: var(--border); font-weight: 300; }
.mc-breakdown {
  background: var(--off-white);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}
.mc-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--charcoal);
}
.mc-row:last-child { border-bottom: none; }
.mc-row span { color: var(--silver); }
.mc-cta {
  font-size: 0.85rem;
  color: var(--royal-blue);
  background: rgba(10,116,218,0.06);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  font-weight: 500;
  line-height: 1.5;
}

/* ═══════════════ DIMENSION BARS ═══════════════ */
.dimension-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.6rem;
}
.dim-icon { font-size: 1rem; width: 20px; flex-shrink: 0; }
.dim-label { font-size: 0.78rem; color: var(--charcoal); font-weight: 500; width: 130px; flex-shrink: 0; }
.dim-bar-wrap { flex: 1; height: 8px; background: var(--light-gray); border-radius: 99px; overflow: hidden; }
.dim-bar { height: 100%; border-radius: 99px; transition: width 1s cubic-bezier(0.4, 0, 0.2, 1); }
.dim-pct { font-size: 0.75rem; font-weight: 700; width: 36px; text-align: right; flex-shrink: 0; }

/* ═══════════════ RESPONSIVE ═══════════════ */

@media (max-width: 700px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: 1; }
  .progress-steps { gap: 0.2rem; }
  .step { font-size: 0.6rem; }
  .form-section { padding: 1.5rem; }
  .health-score-card { flex-direction: column; text-align: center; }
  .dimension-row { flex-direction: column; align-items: flex-start; }
  .rating-btn small { display: none; }
  .cta-section { padding: 2.5rem 1.5rem; }
}
