:root {
  --apple-green: #aed136;
  --midnight-blue: #1d4c7e;
  --charcoal: #3c3c3c;
  --bg-primary: #f9f9f9;
  --bg-secondary: #ffffff;
  --text-primary: #3c3c3c;
  --text-secondary: #828282;
  --text-inverse: #ffffff;
  --green-10: #f6faea;
  --green-20: #eff8d7;
  --blue-10: #e8eef4;
  --border-default: #e0e0e0;
  --color-error: #c0392b;
  --font-display: 'Montserrat', 'Century Gothic', 'Futura', sans-serif;
  --font-body: 'Source Sans 3', 'Proxima Nova', 'Museo Sans', sans-serif;
  --midnight-blue-dark: #153a61;
  --apple-green-dark: #8fb82a;
  --green-glow: rgba(174, 209, 54, 0.25);
  --blue-glow: rgba(29, 76, 126, 0.15);
}

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

html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--bg-primary);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── LAYOUT SHELL ── */
.app-container {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.screen {
  display: none;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.screen.active {
  display: flex;
  opacity: 1;
}
.screen.fade-in { opacity: 1; }
.screen.fade-out { opacity: 0; }

/* ── TOP BAR ── */
.top-bar {
  background: var(--midnight-blue);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.kr-logo {
  height: 22px;
  width: auto;
  display: block;
}

/* ── PROGRESS BAR ── */
.progress-container {
  background: var(--blue-10);
  height: 4px;
  width: 100%;
  position: relative;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--midnight-blue), var(--apple-green));
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}
.progress-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 12px 20px 0;
  text-align: right;
}

/* ── INTRO SCREEN ── */
.intro-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--midnight-blue) 0%, var(--midnight-blue-dark) 100%);
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.intro-screen::before,
.intro-screen::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(60px);
  will-change: transform;
}
.intro-screen::before {
  top: -25%;
  right: -20%;
  width: 70vmax;
  height: 70vmax;
  background: radial-gradient(circle, rgba(29, 76, 126, 0.55) 0%, transparent 65%);
  animation: mesh-drift-a 22s ease-in-out infinite;
}
.intro-screen::after {
  bottom: -30%;
  left: -25%;
  width: 65vmax;
  height: 65vmax;
  background: radial-gradient(circle, rgba(174, 209, 54, 0.32) 0%, transparent 65%);
  animation: mesh-drift-b 28s ease-in-out infinite;
}
@keyframes mesh-drift-a {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(-12%, 18%) scale(1.08); }
  66%      { transform: translate(8%, 6%) scale(0.95); }
}
@keyframes mesh-drift-b {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(18%, -14%) scale(1.05); }
  66%      { transform: translate(-10%, 8%) scale(1.12); }
}
.background-paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  color: rgba(255, 255, 255, 0.28);
  pointer-events: none;
  overflow: visible;
  -webkit-mask-image: radial-gradient(ellipse 60% 55% at center, transparent 0%, transparent 35%, black 75%);
          mask-image: radial-gradient(ellipse 60% 55% at center, transparent 0%, transparent 35%, black 75%);
}
.background-paths path {
  fill: none;
  stroke: currentColor;
  stroke-dasharray: 0.25 0.75;
  animation: path-flow var(--flow-dur, 25s) linear infinite;
  will-change: stroke-dashoffset;
}
@keyframes path-flow {
  from { stroke-dashoffset: 0; }
  to   { stroke-dashoffset: -1; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-screen::before,
  .intro-screen::after,
  .background-paths path { animation: none; }
}
.intro-content { position: relative; z-index: 3; max-width: 560px; }
.intro-logo {
  height: 32px;
  margin: 0 auto 32px;
  opacity: 0.95;
}

/* ── LOADING SCREEN ── */
#screen-loading {
  background: linear-gradient(160deg, var(--midnight-blue) 0%, var(--midnight-blue-dark) 100%);
}
.loading-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  text-align: center;
}
.loader-mark {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  display: block;
  animation: loader-pulse 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  position: relative;
  z-index: 2;
}
.loader-halo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 65%);
  animation: loader-halo 1.4s cubic-bezier(0.4, 0, 0.2, 1) infinite;
  transform: translateY(-32px);
  pointer-events: none;
  z-index: 1;
}
.loader-status {
  margin-top: 32px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.85);
  transition: opacity 0.35s ease;
  min-height: 1.4em;
}
.loader-status.fading { opacity: 0; }
.loader-dots {
  display: flex;
  gap: 6px;
  margin-top: 14px;
}
.loader-dots span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--apple-green);
  opacity: 0.4;
  animation: loader-dot 1.2s ease-in-out infinite;
}
.loader-dots span:nth-child(2) { animation-delay: 0.15s; }
.loader-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes loader-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes loader-halo {
  0%, 100% { opacity: 0.55; transform: translateY(-32px) scale(0.95); }
  50% { opacity: 1; transform: translateY(-32px) scale(1.1); }
}
@keyframes loader-dot {
  0%, 100% { opacity: 0.3; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-3px); }
}
.intro-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--apple-green);
  border: 1px solid rgba(174, 209, 54, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
}
.intro-headline {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--text-inverse);
  line-height: 1.15;
  margin-bottom: 20px;
}
.intro-headline em {
  font-style: normal;
  color: var(--apple-green);
}
.intro-sub {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  margin-bottom: 36px;
}
.intro-fine {
  font-family: var(--font-body);
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  margin-top: 24px;
  line-height: 1.5;
}

/* ── BUTTONS ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--charcoal);
  background: var(--apple-green);
  border: none;
  padding: 16px 40px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  max-width: 360px;
}
.btn-primary:hover {
  background: var(--apple-green-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--green-glow);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary svg { width: 18px; height: 18px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--midnight-blue);
  background: transparent;
  border: 2px solid var(--midnight-blue);
  padding: 14px 32px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.25s ease;
  width: 100%;
  max-width: 360px;
}
.btn-secondary:hover {
  background: var(--blue-10);
}

/* ── QUESTION SCREENS ── */
.question-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
}
.question-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 20px 32px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
}
.question-dimension {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--midnight-blue);
  margin-bottom: 12px;
}
.question-number {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.question-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--charcoal);
  line-height: 1.35;
  margin-bottom: 28px;
}
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.option-card {
  background: var(--bg-secondary);
  border: 2px solid var(--border-default);
  border-radius: 10px;
  padding: 18px 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 92px;
}
.option-card:hover {
  border-color: var(--midnight-blue);
  background: var(--blue-10);
}
.option-card.selected {
  border-color: var(--midnight-blue);
  background: var(--blue-10);
  box-shadow: 0 0 0 1px var(--midnight-blue);
}
.option-marker {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
  transition: all 0.2s ease;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
}
.option-card.selected .option-marker {
  background: var(--midnight-blue);
  border-color: var(--midnight-blue);
  color: var(--text-inverse);
}
.option-text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 400;
  color: var(--text-primary);
  line-height: 1.5;
}
.question-nav {
  padding: 16px 20px 24px;
  display: flex;
  gap: 12px;
  max-width: 640px;
  width: 100%;
  margin: 0 auto;
  justify-content: space-between;
}
.question-nav .btn-primary {
  width: auto;
  max-width: none;
  margin-left: auto;
}
.btn-back {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  border: 2px solid var(--border-default);
  padding: 14px 20px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-back:hover { border-color: var(--text-secondary); }

/* ── GATE SCREEN ── */
.gate-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, var(--midnight-blue) 0%, var(--midnight-blue-dark) 100%);
  justify-content: center;
  align-items: center;
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gate-screen::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -30%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: gate-glow-drift-a 16s ease-in-out infinite;
}
.gate-screen::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
  animation: gate-glow-drift-b 20s ease-in-out infinite;
}
#screen-gate .top-bar {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.gate-content { position: relative; z-index: 3; max-width: 440px; width: 100%; }
.gate-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(174, 209, 54, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  position: relative;
}
.gate-icon::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(174, 209, 54, 0.45);
  animation: gate-icon-halo 2.4s ease-out 0.7s infinite;
  pointer-events: none;
}

/* Staggered entrance — fires every time the gate screen activates */
@keyframes gate-rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes gate-pop {
  from { opacity: 0; transform: scale(0.78); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes gate-icon-halo {
  0%   { box-shadow: 0 0 0 0 rgba(174, 209, 54, 0.45); }
  70%  { box-shadow: 0 0 0 18px rgba(174, 209, 54, 0); }
  100% { box-shadow: 0 0 0 0 rgba(174, 209, 54, 0); }
}
@keyframes gate-glow-drift-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-40px, 30px); }
}
@keyframes gate-glow-drift-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(30px, -40px); }
}
#screen-gate.active .top-bar       { animation: gate-rise 0.55s ease-out 0s    backwards; }
#screen-gate.active .gate-icon     { animation: gate-pop  0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s backwards; }
#screen-gate.active .gate-headline { animation: gate-rise 0.55s ease-out 0.25s backwards; }
#screen-gate.active .gate-sub      { animation: gate-rise 0.55s ease-out 0.4s  backwards; }
#screen-gate.active .gate-form     { animation: gate-rise 0.55s ease-out 0.55s backwards; }
#screen-gate.active .btn-primary   { animation: gate-rise 0.55s ease-out 0.7s  backwards; }
#screen-gate.active .gate-privacy  { animation: gate-rise 0.55s ease-out 0.85s backwards; }
.gate-icon svg { width: 28px; height: 28px; color: var(--apple-green); }
.gate-headline {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-inverse);
  margin-bottom: 12px;
}
.gate-sub {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: rgba(255,255,255,0.75);
  line-height: 1.6;
  margin-bottom: 32px;
}
.gate-form { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.gate-input {
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 18px;
  border: 2px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  color: var(--text-inverse);
  outline: none;
  transition: border-color 0.2s;
  width: 100%;
}
.gate-input::placeholder { color: rgba(255,255,255,0.4); }
.gate-input:focus { border-color: var(--apple-green); }
.gate-input.error { border-color: var(--color-error); }
.error-msg {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-error);
  text-align: left;
  margin-top: -8px;
  display: none;
}
.error-msg.visible { display: block; }

/* ── RESULTS SCREEN ── */
.results-screen {
  background: var(--bg-primary);
}
#screen-results { position: relative; }
#screen-results .top-bar {
  background: transparent;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
}
.results-hero {
  background: linear-gradient(160deg, var(--midnight-blue) 0%, var(--midnight-blue-dark) 100%);
  padding: 72px 24px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.results-hero::before {
  content: '';
  position: absolute;
  top: -60%;
  right: -40%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
}
.results-stage-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--charcoal);
  background: var(--apple-green);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 16px;
  position: relative;
  z-index: 2;
}
.results-stage-name {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--text-inverse);
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}
.results-stage-pct {
  font-family: var(--font-body);
  font-size: 16px;
  color: rgba(255,255,255,0.6);
  position: relative;
  z-index: 2;
}

/* ── RADAR CHART ── */
.radar-section {
  padding: 32px 20px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.radar-section-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--midnight-blue);
  margin-bottom: 20px;
  text-align: center;
}
.radar-container {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 24px 16px;
  margin-bottom: 16px;
}
.radar-svg-wrap {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}
.radar-svg-wrap svg { width: 100%; height: 100%; }
.radar-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.radar-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-secondary);
}
.radar-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
}

/* ── SCORE BREAKDOWN ── */
.breakdown-section {
  padding: 0 20px 32px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.breakdown-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 16px;
}
.breakdown-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--midnight-blue);
  margin-bottom: 20px;
}
.breakdown-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border-default);
}
.breakdown-item:last-child { border-bottom: none; }
.breakdown-dim-name {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  color: var(--charcoal);
  min-width: 100px;
}
.breakdown-bar-wrap {
  flex: 1;
  height: 8px;
  background: var(--blue-10);
  border-radius: 4px;
  overflow: hidden;
}
.breakdown-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}
.breakdown-score {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--charcoal);
  min-width: 36px;
  text-align: right;
}

/* ── INSIGHT CARDS ── */
.insight-section {
  padding: 0 20px 32px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.insight-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 12px;
  padding: 28px 24px;
  margin-bottom: 16px;
}
.insight-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.insight-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.insight-card-icon.blue { background: var(--blue-10); color: var(--midnight-blue); }
.insight-card-icon.green { background: var(--green-10); color: var(--apple-green-dark); }
.insight-card-icon svg { width: 18px; height: 18px; }
.insight-card-label {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--midnight-blue);
}
.insight-card p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.65;
}

/* ── CARD HOVER LIFT ── */
.radar-container,
.breakdown-card,
.insight-card {
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease,
              box-shadow 0.35s ease;
}
@media (hover: hover) {
  .radar-container:hover,
  .breakdown-card:hover,
  .insight-card:hover {
    border-color: rgba(29, 76, 126, 0.32);
    transform: translateY(-3px);
    box-shadow: 0 18px 40px -16px rgba(29, 76, 126, 0.20);
  }
}

/* ── CTAs (legacy removed — see .cta-inline and .cta-bottom) ── */

/* ── ANIMATIONS ── */
@keyframes slideUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in { animation: slideUp 0.5s ease forwards; }
.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }
.animate-delay-4 { animation-delay: 0.4s; opacity: 0; }
.animate-delay-5 { animation-delay: 0.5s; opacity: 0; }

/* Results-ready dramatic reveal */
@keyframes badgePop {
  0%   { opacity: 0; transform: translateY(-18px) scale(0.85); }
  60%  { opacity: 1; transform: translateY(4px) scale(1.06); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes stageNameReveal {
  0%   { opacity: 0; transform: scale(0.86); filter: blur(14px); letter-spacing: -0.04em; }
  60%  { opacity: 1; filter: blur(0); }
  100% { opacity: 1; transform: scale(1); filter: blur(0); letter-spacing: normal; }
}
@keyframes wordFadeIn {
  from { opacity: 0; transform: translateY(8px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}
@keyframes haloExpand {
  0%   { opacity: 0; transform: scale(0.4); }
  100% { opacity: 1; transform: scale(1); }
}
.result-badge-pop {
  opacity: 0;
  animation: badgePop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s forwards;
}
.result-stage-reveal {
  opacity: 0;
  animation: stageNameReveal 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards;
}
.result-pct-reveal .word {
  display: inline-block;
  opacity: 0;
  animation: wordFadeIn 0.5s ease forwards;
}
.results-hero.is-revealing::before {
  transform-origin: center;
  opacity: 0;
  animation: haloExpand 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

/* Scroll-triggered reveal (used for sections below the hero) */
.scroll-reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll-driven 3D tilt (Aceternity-style, restrained) */
.scroll-tilt-section {
  transform-style: preserve-3d;
  transform-origin: center top;
  transform: perspective(1400px)
             rotateX(var(--tilt, 15deg))
             scale(var(--scl, 0.95));
  will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
  .animate-in,
  .result-badge-pop,
  .result-stage-reveal,
  .result-pct-reveal .word,
  .results-hero.is-revealing::before {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .scroll-tilt-section {
    transform: none !important;
  }
}

/* ── CTA INLINE (after radar) ── */
.cta-inline {
  padding: 0 20px 8px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.cta-inline-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--midnight-blue);
  text-align: center;
  line-height: 1.25;
  margin: 0;
}
.cta-inline .btn-primary { max-width: 100%; }

/* ── CTA BOTTOM (speak with team) ── */
.cta-bottom {
  background: var(--midnight-blue);
  padding: 40px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-bottom-inner {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}
.cta-bottom h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-inverse);
  margin-bottom: 12px;
}
.cta-bottom p {
  font-family: var(--font-body);
  font-size: 15px;
  color: rgba(255,255,255,0.65);
  line-height: 1.6;
  margin-bottom: 24px;
}
.cta-bottom .btn-primary {
  max-width: 420px;
}

/* ── RADAR FOOTNOTE ── */
.radar-footnote {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--text-secondary);
  text-align: center;
  margin-top: 8px;
  line-height: 1.5;
  padding: 0 8px;
}

/* ── RESPONSIVE ── */
@media (min-width: 640px) {
  .intro-headline { font-size: 42px; }
  .intro-sub { font-size: 18px; }
  .question-text { font-size: 24px; }
  .question-body { padding: 36px 32px 24px; }
  .gate-headline { font-size: 34px; }
  .results-stage-name { font-size: 44px; }
  .option-card { padding: 16px 20px; min-height: 72px; }
  .option-text { font-size: 15px; }
  .breakdown-dim-name { min-width: 140px; }
}

@media (min-width: 960px) {
  .intro-headline { font-size: 48px; }
  .intro-screen { padding: 60px 40px; }
  .question-body { padding: 40px 48px 24px; }
  .question-text { font-size: 26px; margin-bottom: 24px; }
  .option-card { padding: 16px 22px; }
  .option-text { font-size: 15px; line-height: 1.45; }
  .options-list { gap: 10px; }
  .question-nav { padding: 12px 48px 28px; }
  .radar-container { padding: 32px; }
  .radar-svg-wrap { max-width: 480px; }
  .results-hero { padding: 88px 40px 56px; }
  .cta-bottom h3 { font-size: 26px; }
}
