@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@600;800&family=Inter:wght@400;500;600&display=swap');

:root {
  --navy:    #06092A;
  --navy-2:  #0B1038;
  --navy-3:  #1a2b4a;
  --red:     #E8032A;
  --red-g1:  #F0052C;
  --red-g2:  #D42828;
  --red-soft:#FEE8EC;
  --gold:    #D4A017;
  --gold-bg: #FBF5E0;
  --white:   #FFFFFF;
  --bg:      #F7F8FC;
  --border:  #E2E8F0;
  --text:    #0F172A;
  --muted:   #64748B;
  --muted-2: #94A3B8;
  --shadow:  0 1px 3px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05), 0 2px 8px rgba(0,0,0,0.05);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
}

h1, h2, h3, h4, h5 {
  font-family: 'Inter Tight', sans-serif;
  line-height: 1.15;
  color: var(--navy);
}

/* ─── Layout ─────────────────────────────────── */
.container {
  max-width: 736px;
  margin: 0 auto;
  padding: 0 24px;
}

.screen { display: none; }
.screen.active { display: block; }

/* ─── Brand bar ──────────────────────────────── */
.brand-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  padding: 28px 0 0;
}
.site-logo {
  height: 26px;
  width: auto;
  display: block;
  flex-shrink: 0;
}
.intro-footer-logo {
  display: block;
  height: 36px;
  width: auto;
  margin: 28px auto 24px;
  opacity: 0.7;
}
.brand-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── Eyebrow ────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--red);
  background: var(--red-soft);
  padding: 4px 10px;
  border-radius: 4px;
  margin-top: 28px;
  margin-bottom: 20px;
}

/* ─── Intro hero ─────────────────────────────── */
.intro-hero {
  background: linear-gradient(135deg, #06092A 0%, #0d1545 55%, #080e30 100%);
  padding: 56px 32px 64px;
}

.intro-hero-inner {
  max-width: 1020px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
}

.intro-copy { flex: 1; min-width: 0; }

.intro-kicker {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.intro-h1 {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(38px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  color: #fff;
  margin-bottom: 22px;
}

.intro-h1-red { color: var(--red); }

.intro-sub {
  font-size: 17px;
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 440px;
}

.intro-start-btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--red-g1), var(--red-g2));
  color: #fff;
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 34px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 4px 28px rgba(232,3,42,0.45);
  transition: opacity 0.15s, transform 0.15s;
}
.intro-start-btn:hover { opacity: 0.9; transform: translateY(-1px); }

/* ─── Mock result card ────────────────────────── */
.intro-visual { flex: 0 0 320px; }

.intro-mock {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 16px;
  padding: 22px 20px 18px;
  backdrop-filter: blur(8px);
}

.intro-mock-eyebrow {
  text-align: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(212,160,23,0.7);
  margin-bottom: 6px;
}

/* Full-circle gauge preview */
.intro-gauge-wrap {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 8px auto 18px;
}
.intro-gauge-ring {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: conic-gradient(
    from 0deg,
    #E8032A 0deg,
    #D4A017 180deg,
    #22C55E 359.5deg,
    #E8032A 360deg
  );
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-gauge-center {
  position: relative;
  z-index: 2;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: #0c1b2b;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.intro-gauge-num {
  font-family: 'Inter Tight', sans-serif;
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.intro-gauge-sub {
  font-family: 'Inter', sans-serif;
  font-size: 7.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 2px;
  text-transform: uppercase;
}
.intro-gauge-needle {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.intro-mock-bars {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 14px;
}

.intro-mock-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.intro-mock-lbl {
  width: 98px;
  flex-shrink: 0;
  font-size: 10px;
  color: rgba(255,255,255,0.5);
}

.intro-mock-row--leak .intro-mock-lbl {
  color: rgba(232,3,42,0.75);
  font-weight: 600;
}

.intro-mock-track {
  flex: 1;
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 3px;
  overflow: hidden;
}

.intro-mock-fill { height: 100%; border-radius: 3px; opacity: 0.8; }

.intro-mock-val {
  width: 22px;
  text-align: right;
  font-size: 10px;
  font-weight: 700;
  color: rgba(255,255,255,0.4);
}

.intro-mock-leak {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(232,3,42,0.1);
  border: 1px solid rgba(232,3,42,0.22);
  border-radius: 8px;
  padding: 8px 12px;
}

.intro-mock-leak-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232,3,42,0.85);
}

.intro-mock-leak-name {
  font-size: 12px;
  font-weight: 700;
  color: #fff;
}

/* ─── 5 bullets band ─────────────────────────── */
.intro-bullets-band {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 52px 32px 56px;
}

.intro-bullets-inner {
  max-width: 760px;
  margin: 0 auto;
}

.intro-bullets-heading {
  font-family: 'Inter Tight', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 28px;
}

.intro-bullets-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.intro-bullets-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.intro-bullets-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.ibl-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  background: var(--navy);
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  margin-top: 1px;
}

.ibl-text {
  font-size: 15.5px;
  color: var(--muted);
  line-height: 1.6;
}

.ibl-text strong {
  font-family: 'Inter Tight', sans-serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
}

/* ─── Lookup section (below hero) ─────────────── */
.intro-lookup-wrap {
  padding-top: 28px;
  padding-bottom: 44px;
}

/* ─── Responsive ──────────────────────────────── */
@media (max-width: 780px) {
  .intro-hero { padding: 44px 20px 52px; }
  .intro-hero-inner { flex-direction: column; gap: 40px; }
  .intro-visual { flex: none; width: 100%; max-width: 320px; align-self: center; }
  .intro-sub { max-width: 100%; }
}

/* ─── Headlines ──────────────────────────────── */
.headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(30px, 5.5vw, 48px);
  font-weight: 800;
  line-height: 1.08;
  color: var(--navy);
  margin-top: 40px;
  margin-bottom: 20px;
}
.headline .red { color: var(--red); }

.subhead {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

/* ─── Value bullets ──────────────────────────── */
.value-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
}
.value-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.value-list li::before {
  content: '';
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

/* ─── Form ───────────────────────────────────── */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 18px;
}
.field-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--navy-3);
  margin-bottom: 6px;
  display: block;
}
.field-input {
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s;
  box-shadow: var(--shadow-sm);
}
.field-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(6,9,42,0.08);
}
.field-input::placeholder { color: var(--muted-2); }
.field-input.error { border-color: var(--red); box-shadow: 0 0 0 3px rgba(232,3,42,0.08); }

.consent {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}
.consent a { color: var(--navy-3); }

.error-msg {
  color: var(--red);
  font-size: 13px;
  min-height: 18px;
  margin-bottom: 8px;
}

/* ─── Buttons ────────────────────────────────── */
.btn-primary {
  display: inline-block;
  width: 100%;
  padding: 17px 28px;
  background: var(--red-g1);
  color: var(--white);
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s, transform 0.1s, opacity 0.18s;
  letter-spacing: 0.01em;
  box-shadow: 0 2px 12px rgba(232,3,42,0.25);
}
.btn-primary:hover:not(:disabled) {
  background: var(--red-g2);
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(232,3,42,0.32);
}
.btn-primary:active:not(:disabled) { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.4; cursor: not-allowed; box-shadow: none; }
.btn-primary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn-secondary {
  display: inline-block;
  padding: 14px 22px;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--navy-3);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 600;
  border-radius: 10px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s;
}
.btn-secondary:hover { border-color: var(--navy-3); background: var(--bg); }
.btn-secondary:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.btn-ghost {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: underline;
  font-family: 'Inter', sans-serif;
  transition: color 0.18s;
}
.btn-ghost:hover { color: var(--navy); }

/* ─── Progress bar ───────────────────────────── */
.progress-wrap {
  padding: 28px 0 24px;
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.progress-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.progress-count { font-size: 13px; color: var(--navy); font-weight: 700; }
.progress-track {
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(to right, var(--red-g1), var(--gold));
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* ─── Shift question screen ──────────────────── */
.shift-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.shift-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(22px, 4.5vw, 36px);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 10px;
}
.shift-frame {
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  font-style: italic;
  border-left: 3px solid var(--border);
  padding-left: 14px;
  line-height: 1.6;
}

.statements { display: flex; flex-direction: column; gap: 16px; margin-bottom: 36px; }

/* ─── Single-question card ───────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.statement-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 32px 28px 28px;
  box-shadow: var(--shadow);
}
.statement-card.single-q {
  text-align: center;
}
.statement-text {
  font-size: 20px;
  line-height: 1.55;
  margin-bottom: 32px;
  color: var(--navy);
  font-weight: 600;
}

/* Rating row for single-question mode */
.rating-single-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rating-labels-row {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 0 2px;
}
.rating-buttons-single {
  display: flex;
  gap: 10px;
}
.rating-btn-single {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 64px;
  background: var(--bg);
  border: 2px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s, transform 0.1s;
}
.rating-btn-single:hover {
  background: var(--white);
  border-color: var(--navy-3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(6,9,42,0.1);
}
.rating-btn-single.selected {
  background: var(--red-g1);
  border-color: var(--red-g1);
  box-shadow: 0 4px 14px rgba(232,3,42,0.28);
  transform: translateY(-2px);
}
.rating-btn-single:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.rbs-num {
  font-family: 'Inter Tight', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--muted);
  line-height: 1;
}
.rating-btn-single.selected .rbs-num { color: var(--white); }
.rating-btn-single:hover:not(.selected) .rbs-num { color: var(--navy); }

.shift-actions {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  padding: 16px 0 48px;
}

/* ─── Loading ────────────────────────────────── */
.loading-inner {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 20px;
}
.loading-spinner {
  width: 52px; height: 52px;
  border: 3px solid var(--border);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 32px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-lines { display: flex; flex-direction: column; gap: 8px; }
.loading-line { font-size: 16px; color: var(--muted-2); transition: color 0.4s; }
.loading-line.active { color: var(--navy); font-weight: 600; }

/* ─── Results ────────────────────────────────── */
.results-wrap { padding: 0 0 64px; }

/* Gauge */
.gauge-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 36px 24px 32px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.gauge-svg { width: 180px; height: 180px; }
.gauge-number {
  font-family: 'Inter Tight', sans-serif;
  font-size: 56px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}
.gauge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  fill: var(--muted);
  text-anchor: middle;
}
.tier-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(20px, 4vw, 28px);
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  color: var(--navy);
  margin: 18px 0 10px;
}
.gauge-archetype {
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-align: center;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.tier-explanation {
  font-size: 15px;
  color: var(--muted);
  text-align: center;
  max-width: 480px;
  line-height: 1.65;
}

/* Section heading */
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

/* Gap map */
.gap-map {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.meter-row { margin-bottom: 16px; }
.meter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.meter-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.leak-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--white);
  background: var(--red);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
}

/* Perfect-score banner */
.perfect-score-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: linear-gradient(135deg, var(--navy) 0%, #1a2a4a 100%);
  border: 1.5px solid var(--gold);
  border-radius: 14px;
  padding: 22px 24px;
  margin-top: 24px;
  margin-bottom: 28px;
}
.perfect-score-crown {
  font-size: 32px;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}
.perfect-score-content {
  flex: 1;
}
.perfect-score-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 10px;
  line-height: 1.3;
}
.perfect-score-body {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255,255,255,0.82);
}
.perfect-restart-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid rgba(212,160,23,0.4);
  transition: border-color 0.15s;
}
.perfect-restart-link:hover {
  border-bottom-color: var(--gold);
}
.meter-score { font-size: 13px; font-weight: 700; color: var(--muted); }
.meter-track {
  height: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
}
.meter-fill {
  height: 100%;
  border-radius: 4px;
  width: 0;
  transition: width 1s ease;
}
.meter-callout {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.5;
  margin-top: 7px;
  font-style: italic;
}

/* Profile card */
.profile-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.profile-archetype {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 20px;
  margin-bottom: 10px;
  color: var(--navy);
}
.profile-desc { font-size: 15px; color: var(--muted); line-height: 1.7; }

/* Diagnosis */
.diagnosis-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 28px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.diagnosis-verdict {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  margin-bottom: 16px;
  color: var(--navy);
}
.diagnosis-analysis {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.75;
  white-space: pre-line;
  margin-bottom: 24px;
}
/* Score benchmark */
.score-benchmark {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
  letter-spacing: 0.01em;
}

/* Priorities */
.priorities-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 20px 20px;
  margin-bottom: 20px;
}
.priorities-intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 18px;
}
.priorities-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: prio;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.priority-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.priority-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.priority-content {
  flex: 1;
  min-width: 0;
}
.priority-dim-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.priority-dim {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.priority-score-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  border: 1.5px solid currentColor;
  border-radius: 20px;
  padding: 1px 7px;
  opacity: 0.85;
}
.priority-action {
  display: block;
  font-size: 14px;
  color: var(--navy);
  line-height: 1.6;
}
.priority-item--strong .priority-action {
  color: var(--muted);
}

/* CTA bullets */
.cta-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.cta-bullets li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,0.82);
  line-height: 1.55;
}
.cta-bullets li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 800;
  font-size: 13px;
  margin-top: 1px;
}
.cta-fallback {
  margin-top: 18px;
  font-size: 12px;
  color: rgba(255,255,255,0.32);
  text-align: center;
  font-style: italic;
}

.why-live-box {
  background: var(--gold-bg);
  border-left: 4px solid var(--gold);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
}
.why-live-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.why-live-text { font-size: 14px; color: var(--navy-3); line-height: 1.65; font-weight: 500; }

/* Leak callout */
.leak-callout {
  background: var(--red-soft);
  border: 1.5px solid rgba(232,3,42,0.15);
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 20px;
}
.leak-callout-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 6px;
}
.leak-callout-name {
  font-family: 'Inter Tight', sans-serif;
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
  color: var(--navy);
}
.leak-callout-cost { font-size: 15px; color: var(--muted); line-height: 1.65; }

/* ─── Action Plan card ───────────────────────── */
.action-plan-card {
  background: linear-gradient(135deg, var(--navy) 0%, #0d1545 100%);
  border-radius: 20px;
  padding: 32px 28px 28px;
  margin-bottom: 20px;
  box-shadow: 0 8px 32px rgba(6,9,42,0.22);
}
.action-plan-header {
  margin-bottom: 26px;
}
.action-plan-eyebrow {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.action-plan-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(20px, 4vw, 26px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 10px;
}
.action-plan-intro {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}
.action-plan-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.action-plan-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.action-plan-step:last-child {
  border-bottom: none;
  padding-bottom: 4px;
}
.ap-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(212,160,23,0.18);
  border: 1.5px solid rgba(212,160,23,0.45);
  color: var(--gold);
  font-family: 'Inter Tight', sans-serif;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}
.ap-text {
  font-size: 14.5px;
  color: rgba(255,255,255,0.88);
  line-height: 1.65;
}

/* Download strip */
.download-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px 20px;
  background: linear-gradient(135deg, #1D2E3B 0%, #0F1D29 100%);
  border-radius: 16px;
  margin-bottom: 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(6,9,42,0.18);
}
.download-strip-label {
  font-size: 15px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.01em;
}
.download-strip-sub {
  font-size: 13px;
  color: rgba(255,255,255,0.45);
  margin-top: -4px;
}
.download-btn {
  width: 100%;
  max-width: 400px;
  padding: 16px 28px;
  font-size: 16px;
  font-weight: 800;
  background: var(--red-g1);
  color: var(--white);
  border: none;
  border-radius: 50px;
  box-shadow: 0 2px 14px rgba(232,3,42,0.35);
}
.download-btn:hover {
  background: var(--red-g1);
  box-shadow: 0 4px 20px rgba(232,3,42,0.5);
  color: var(--white);
  opacity: 0.92;
}

/* CTA block */
.cta-card {
  background: var(--navy);
  border-radius: 20px;
  padding: 36px 28px;
  margin-bottom: 24px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(6,9,42,0.18);
}
.cta-headline {
  font-family: 'Inter Tight', sans-serif;
  font-size: clamp(21px, 4vw, 27px);
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--white);
}
.cta-subheadline {
  font-size: 17px;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-top: -8px;
  margin-bottom: 18px;
}
.cta-body {
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 28px;
}
.cta-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
}
.cta-buttons .btn-primary {
  max-width: 400px;
  background: var(--red-g1);
  box-shadow: 0 2px 14px rgba(232,3,42,0.35);
}
.cta-buttons .btn-secondary {
  max-width: 400px;
  width: 100%;
  background: transparent;
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.8);
}
.cta-buttons .btn-secondary:hover {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.4);
}
.cta-buttons .btn-ghost { color: rgba(255,255,255,0.4); }
.cta-buttons .btn-ghost:hover { color: rgba(255,255,255,0.75); }

/* Footer */
.site-footer {
  text-align: center;
  padding: 36px 0 24px;
  font-size: 13px;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
  margin-top: 12px;
}
.site-footer a { color: var(--muted); text-decoration: none; }

/* ─── Admin ──────────────────────────────────── */
.admin-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 60px;
}
.admin-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 0 32px;
  border-bottom: 1.5px solid var(--border);
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-brand {
  font-family: 'Inter Tight', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 36px;
}
.metric-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 22px 20px;
  box-shadow: var(--shadow-sm);
}
.metric-value {
  font-family: 'Inter Tight', sans-serif;
  font-size: 36px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
  color: var(--navy);
}
.metric-label { font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.metric-sub { font-size: 11px; color: var(--muted); font-weight: 400; }

.section-block {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px 22px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}
.section-block-title {
  font-family: 'Inter Tight', sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-block-title .drop-badge {
  font-size: 11px;
  background: var(--red);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

/* Admin tabs */
.admin-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--border);
  padding-bottom: 0;
}
.admin-tab {
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  padding: 10px 22px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.admin-tab:hover {
  color: var(--navy);
  background: rgba(0,0,0,0.03);
}
.admin-tab.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

/* Tracking codes admin */
.tracking-slots {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.tracking-slot {}
.tracking-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.tracking-textarea {
  width: 100%;
  min-height: 110px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 12px;
  line-height: 1.6;
  color: var(--navy);
  background: #f5f7f9;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.tracking-textarea:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--white);
}

.funnel-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}
.funnel-label { font-size: 13px; color: var(--muted); width: 80px; flex-shrink: 0; font-weight: 500; }
.funnel-track { flex: 1; height: 22px; background: var(--bg); border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.funnel-fill { height: 100%; border-radius: 5px; transition: width 0.6s ease; display: flex; align-items: center; padding: 0 10px; background: var(--navy-3); }
.funnel-count { font-size: 12px; font-weight: 700; color: var(--white); white-space: nowrap; }
.funnel-row.biggest-drop .funnel-label { color: var(--red); font-weight: 700; }
.funnel-row.biggest-drop .funnel-fill { background: var(--red); }

.dist-list { display: flex; flex-direction: column; gap: 10px; }
.dist-row { display: flex; align-items: center; gap: 10px; }
.dist-name { font-size: 13px; color: var(--muted); width: 160px; flex-shrink: 0; font-weight: 500; }
.dist-track { flex: 1; height: 10px; background: var(--bg); border: 1px solid var(--border); border-radius: 5px; overflow: hidden; }
.dist-fill { height: 100%; background: var(--navy); border-radius: 4px; }
.dist-count { font-size: 12px; color: var(--muted); width: 32px; text-align: right; font-weight: 600; }

.tier-pills { display: flex; gap: 10px; flex-wrap: wrap; }
.tier-pill {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  font-size: 13px;
  color: var(--muted);
}
.tier-pill strong { display: block; font-size: 22px; font-weight: 800; font-family: 'Inter Tight', sans-serif; color: var(--navy); }

/* Leads table */
.table-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}
.table-controls input, .table-controls select {
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 9px 12px;
  border-radius: 8px;
  outline: none;
  flex: 1;
  min-width: 140px;
  transition: border-color 0.18s;
}
.table-controls input::placeholder { color: var(--muted-2); }
.table-controls input:focus, .table-controls select:focus { border-color: var(--navy); }

.leads-table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
thead th {
  text-align: left;
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--border);
  white-space: nowrap;
  background: var(--bg);
}
tbody tr {
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
tbody tr:hover { background: var(--bg); }
tbody td {
  padding: 13px 14px;
  color: var(--muted);
  white-space: nowrap;
  max-width: 160px;
  overflow: hidden;
  text-overflow: ellipsis;
}
tbody td:first-child { color: var(--text); font-weight: 600; }

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
}
.status-completed { background: rgba(212,160,23,0.12); color: var(--gold); }
.status-started   { background: var(--red-soft); color: var(--red); }

.btn-danger-sm {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 7px;
  border: 1px solid rgba(232,3,42,0.35);
  background: rgba(232,3,42,0.08);
  color: var(--red);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn-danger-sm:hover { background: rgba(232,3,42,0.16); border-color: rgba(232,3,42,0.55); }

.resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}
.resend-btn:hover { color: var(--navy); border-color: var(--navy); background: rgba(6,9,42,0.05); }
.resend-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* Detail panel */
.detail-panel {
  display: none;
  position: fixed;
  top: 0; right: 0;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background: var(--white);
  border-left: 1.5px solid var(--border);
  z-index: 100;
  overflow-y: auto;
  padding: 32px 28px;
  box-shadow: -8px 0 32px rgba(0,0,0,0.08);
}
.detail-panel.open { display: block; }
.detail-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
  float: right;
  line-height: 1;
  padding: 0;
  transition: color 0.18s;
}
.detail-close:hover { color: var(--navy); }
.detail-name { font-family: 'Inter Tight', sans-serif; font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
.detail-email { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.detail-section-title {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--gold); margin: 24px 0 12px;
}
.detail-answer-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 10px; font-size: 13px; padding: 10px 0; border-bottom: 1px solid var(--border); line-height: 1.5;
}
.detail-answer-q { color: var(--muted); flex: 1; }
.detail-answer-v { color: var(--navy); font-weight: 800; font-size: 16px; flex-shrink: 0; }
.detail-text { font-size: 14px; color: var(--muted); line-height: 1.7; white-space: pre-line; }

/* Admin login */
.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
}
.login-title { font-family: 'Inter Tight', sans-serif; font-size: 24px; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.login-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

/* Responsive */
@media (max-width: 480px) {
  .rating-btn { font-size: 14px; min-height: 42px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-panel { max-width: 100%; }
  .dist-name { width: 110px; font-size: 12px; }
}

/* ─── Journey progress bar ───────────────────── */
.journey-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 10px 20px;
  background: var(--navy);
  border-bottom: none;
  font-size: 13px;
  font-weight: 600;
}
.journey-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,.45);
  transition: color .25s;
}
.journey-step.active { color: #fff; }
.jstep-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: rgba(255,255,255,.55);
  font-size: 11px;
  font-weight: 700;
  transition: background .25s, color .25s;
}
.journey-step.active .jstep-num {
  background: var(--red);
  color: #fff;
}
.jstep-arrow { color: rgba(255,255,255,.25); font-size: 14px; }
@media (max-width: 480px) {
  .jstep-label { display: none; }
  .journey-bar { gap: 6px; }
}

/* ─── Tab completion checkmark ───────────────── */
.tab-check {
  color: #22c55e;
  font-weight: 700;
  margin-left: 3px;
}

/* ─── Auto-advance overlay ───────────────────── */
.autoadvance-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 40, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  z-index: 10;
  animation: aa-fade-in .3s ease;
}
@keyframes aa-fade-in { from { opacity: 0; } to { opacity: 1; } }
.autoadvance-content {
  text-align: center;
  color: #fff;
  padding: 32px;
}
.autoadvance-eyebrow {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
}
.autoadvance-label {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
}
.autoadvance-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}
.autoadvance-count {
  font-size: 32px;
  font-weight: 800;
  line-height: 1;
}
.autoadvance-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}
.autoadvance-go {
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
.autoadvance-go:hover { background: var(--red-g2); }
.autoadvance-cancel {
  background: transparent;
  color: rgba(255,255,255,.65);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 11px 20px;
  font-size: 14px;
  cursor: pointer;
}
.autoadvance-cancel:hover { color: #fff; border-color: rgba(255,255,255,.5); }

/* ─── video-ratio-wrap needs position:relative for overlay ── */
.video-ratio-wrap { position: relative; }

@media (prefers-reduced-motion: reduce) {
  .loading-spinner { animation: none; }
  .progress-fill, .meter-fill, .funnel-fill { transition: none; }
}

/* ─── Email gate screen ──────────────────────── */
.email-gate-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 48px 24px 56px;
  max-width: 520px;
  margin: 0 auto;
}
.email-gate-check {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #22c55e;
  color: #fff;
  font-size: 36px;
  line-height: 72px;
  text-align: center;
  margin-bottom: 24px;
  flex-shrink: 0;
}
.email-gate-heading {
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin-bottom: 16px;
}
.email-gate-sub {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.55;
}

/* ─── Results greeting ───────────────────────── */
.results-greeting {
  text-align: center;
  padding: 14px 0 20px;
}
.results-greeting-headline {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.2;
  margin: 0;
}

/* ─── Returning-user lookup ──────────────────── */
.lookup-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}
.lookup-divider::before,
.lookup-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
.btn-lookup-toggle {
  background: none;
  border: none;
  padding: 4px 0;
  font-size: 0.9rem;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  margin: 8px 0 0;
  display: block;
  width: 100%;
  text-align: center;
  transition: color 0.15s;
}
.btn-lookup-toggle:hover { color: var(--navy); }
.lookup-form {
  display: none;
  margin-top: 18px;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-align: left;
}
.lookup-form.open { display: block; }
.lookup-form .btn-primary { margin-top: 12px; width: 100%; }
