/* =============================
   2026 AI Readiness Diagnostic
   MOOOVE — Identité visuelle V1.0
   Navy-anchored · Cyan in motion
   ============================= */

:root {
  /* MOOOVE brand palette — Identité visuelle V1.0.
     Hierarchy: 75% Navy + White · 15% Cyan · 5% Blue & Sky · 5% Amber.
     Amber is the spice: powerful in small doses, never paired with Cyan
     in the same block. Navy anchors the premium; Cyan brings the movement. */
  --navy: #052139;        /* primary — authority */
  --navy-deep: #03141f;   /* derived depth for the canvas */
  --ice: #eff9fe;         /* light surface / primary text */
  --sky: #c7eafb;         /* soft accent / separators */
  --cyan: #2ac2de;        /* accentuation / CTA / energy */
  --electric: #3c5eab;    /* audace · affirmation · ambition */
  --amber: #f6923e;       /* warmth / human contrast */

  /* One typographic family, two weights (brand rule). Aktiv Grotesk where
     licensed, Hanken Grotesk as the web-loaded substitute. */
  --font: 'Aktiv Grotesk', 'Hanken Grotesk', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  --bg: #052139;
  --bg-deep: #03141f;
  --card-bg: rgba(255, 255, 255, 0.04);
  --card-border: rgba(199, 234, 251, 0.16);
  /* --teal* kept as aliases → Cyan so existing rules stay valid */
  --teal: #2ac2de;
  --teal-soft: rgba(42, 194, 222, 0.12);
  --teal-glow: rgba(42, 194, 222, 0.35);
  --blue: #3c5eab;
  --text: #eff9fe;
  --muted: #8ea6c2;
  --selected-bg: rgba(42, 194, 222, 0.12);
  --selected-border: #2ac2de;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-btn: 8px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  background:
    radial-gradient(80% 60% at 50% 0%, #0a3354 0%, #052139 52%, #03141f 100%),
    var(--bg-deep);
  background-attachment: fixed;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
}

/* Main content wrapper — caps width on big screens, holds banner + form */
.container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 8px 28px 120px;
}
@media (max-width: 900px) {
  .container { padding: 6px 20px 110px; }
}
@media (max-width: 640px) {
  .container { padding: 6px 14px 110px; }
}

/* Ambient background — soft blue aurora to match the banner */
.bg-glow {
  position: fixed;
  inset: -10% -10% -10% -10%;
  background:
    radial-gradient(45% 40% at 18% 18%, rgba(60,94,171,0.18), transparent 70%),
    radial-gradient(40% 35% at 88% 28%, rgba(42,194,222,0.10), transparent 70%),
    radial-gradient(55% 50% at 50% 110%, rgba(60,94,171,0.12), transparent 70%);
  filter: blur(70px);
  pointer-events: none;
  z-index: 0;
}

/* Very subtle film grain to keep the dark background from feeling flat */
.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='matrix' values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Hero banner — full container width, cinematic */
.banner {
  position: relative;
  z-index: 1;
  width: 100%;
  display: block;
  margin: 0;
  padding: 0;
}
.banner img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow:
    0 30px 90px rgba(0,0,0,0.55),
    0 0 0 1px rgba(120,170,255,0.10),
    0 0 100px rgba(42,194,222,0.16);
}
@media (max-width: 800px) {
  .banner img { border-radius: 20px; }
}
@media (max-width: 520px) {
  .banner img { border-radius: 16px; }
}

/* App / form area — card overlaps further up into the banner area */
.app {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  margin-top: -64px;
  padding: 0;
}
@media (max-width: 900px) {
  .app { margin-top: -48px; }
}
@media (max-width: 640px) {
  .app { margin-top: -32px; }
}
@media (max-width: 520px) {
  .app { margin-top: -20px; }
}

/* Card — layered glass, same radius as banner, cyan glow ties them together */
.card {
  position: relative;
  width: 100%;
  max-width: 720px;
  border-radius: 24px;
  padding: 44px 40px 36px;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.025) 40%, rgba(255,255,255,0.015) 100%);
  border: 1px solid rgba(42,194,222,0.18);
  backdrop-filter: blur(32px) saturate(160%);
  -webkit-backdrop-filter: blur(32px) saturate(160%);
  box-shadow:
    0 50px 140px rgba(0,0,0,0.6),
    0 12px 36px rgba(0,0,0,0.35),
    0 0 60px rgba(42,194,222,0.16),
    inset 0 1px 0 rgba(255,255,255,0.12),
    inset 0 -1px 0 rgba(255,255,255,0.02);
}

/* Specular highlight along the top edge — gives it that "glass on top" feel */
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  opacity: 0.7;
  pointer-events: none;
}

/* Inner refraction gradient sheen */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(60,94,171,0.14), transparent 60%),
    radial-gradient(80% 40% at 100% 100%, rgba(42,194,222,0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 640px) {
  .card { padding: 32px 22px 26px; border-radius: 20px; }
}
@media (max-width: 520px) {
  .card { padding: 28px 18px 24px; border-radius: 16px; }
}

/* Header row at top of card: Back on the left, Phase badge on the right */
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
  min-height: 32px;
}
.card-header .phase-badge { margin-left: auto; margin-bottom: 0; }

/* Back button */
.back-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  margin: 0 0 0 -10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 180ms var(--ease), background 180ms var(--ease), border-color 180ms var(--ease);
}
.back-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.08); }
.back-btn:focus-visible { outline: none; border-color: var(--teal); color: var(--text); }

/* Phase badge */
.phase-badge {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 12px;
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
  margin-bottom: 18px;
}

/* Question number */
.q-number {
  font-family: var(--font);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: rgba(63, 184, 255, 0.45);
  line-height: 1;
  margin-bottom: 14px;
}

/* Question text */
.q-text {
  font-family: var(--font);
  font-weight: 700;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 8px;
}

.q-hint {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 24px;
}

/* Options list — flows naturally, no internal scrollbar */
.options-wrap {
  position: relative;
  margin-bottom: 24px;
}

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

.options.cols-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
}

/* When there's an odd number of options, center the lone trailing option across both columns */
.options.cols-2 > .option:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: calc(50% - 6px);
}

/* Inside grouped option lists, keep the lone trailing item on the left (no auto-centering) */
.option-groups .options.cols-2 > .option:last-child:nth-child(odd) {
  grid-column: auto;
  justify-self: stretch;
  width: auto;
}

/* Category headers for grouped options */
.option-groups {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.option-group-title {
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal, #2ac2de);
  margin: 18px 0 6px;
}
.option-groups > .option-group-title:first-child {
  margin-top: 6px;
}

@media (max-width: 640px) {
  .options.cols-2 {
    grid-template-columns: 1fr;
  }
  .options.cols-2 > .option:last-child:nth-child(odd) {
    grid-column: auto;
    justify-self: stretch;
    width: auto;
  }
}

/* Option */
.option {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.07);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition:
    background 220ms var(--ease),
    border-color 220ms var(--ease),
    transform 220ms var(--ease),
    box-shadow 220ms var(--ease);
  opacity: 0;
  transform: translateY(8px);
  animation: optionIn 380ms var(--ease-out) forwards;
}

@keyframes optionIn {
  to { opacity: 1; transform: translateY(0); }
}

.option:hover {
  background: rgba(255,255,255,0.045);
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 0 0 1px rgba(42,194,222,0.06), 0 6px 20px rgba(0,0,0,0.25);
}

.option:focus-visible {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(42,194,222,0.18);
}

.option .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255,255,255,0.12);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08);
  transition: background 220ms var(--ease), box-shadow 220ms var(--ease), transform 220ms var(--ease);
}

.option.selected {
  background: var(--selected-bg);
  border-color: var(--selected-border);
  box-shadow: 0 0 0 1px rgba(42,194,222,0.25), 0 10px 30px rgba(42,194,222,0.10);
}
.option.selected .dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(42,194,222,0.18), 0 0 12px rgba(42,194,222,0.6);
  transform: scale(1.05);
}

.option .label { flex: 1; }
.option .check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 200ms var(--ease), transform 200ms var(--ease);
  color: var(--teal);
}
.option.selected .check { opacity: 1; transform: scale(1); }

/* Textarea (Q17 / contact) */
.textarea-wrap { margin-bottom: 24px; }
.textarea {
  width: 100%;
  min-height: 140px;
  resize: vertical;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  line-height: 1.5;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.textarea:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(42,194,222,0.04);
  box-shadow: 0 0 0 3px rgba(42,194,222,0.15);
}

/* Inputs (contact step) */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 24px;
}
.input-grid .full { grid-column: 1 / -1; }
@media (max-width: 540px) { .input-grid { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.input {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--text);
  font-family: inherit;
  font-size: 15px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}
.input:focus {
  outline: none;
  border-color: var(--teal);
  background: rgba(42,194,222,0.04);
  box-shadow: 0 0 0 3px rgba(42,194,222,0.15);
}
.input.invalid { border-color: #ff6b6b; box-shadow: 0 0 0 3px rgba(255,107,107,0.15); }

.intro-msg {
  font-size: 15px;
  color: var(--muted);
  margin: 0 0 22px;
  line-height: 1.55;
}

/* Primary button */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--teal);
  color: #052139;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.01em;
  padding: 14px 28px;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  min-width: 180px;
  transition: filter 180ms var(--ease), transform 180ms var(--ease), box-shadow 220ms var(--ease), opacity 180ms var(--ease);
  box-shadow: 0 10px 30px rgba(42,194,222,0.22), inset 0 1px 0 rgba(255,255,255,0.3);
}
.btn-primary:hover { filter: brightness(1.08); box-shadow: 0 12px 36px rgba(42,194,222,0.35), inset 0 1px 0 rgba(255,255,255,0.4); }
.btn-primary:active { transform: scale(0.97); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(42,194,222,0.35), 0 10px 30px rgba(42,194,222,0.22); }
.btn-primary[disabled] { opacity: 0.35; cursor: not-allowed; box-shadow: none; }

.btn-pulse { animation: pulse 320ms var(--ease); }
@keyframes pulse {
  0% { transform: scale(1); }
  40% { transform: scale(0.96); }
  100% { transform: scale(1); }
}

.btn-row {
  display: flex;
  justify-content: center;
  margin-top: 6px;
}
@media (max-width: 540px) {
  .btn-primary { width: 100%; }
}

.btn-spinner {
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(4,18,26,0.3);
  border-top-color: #052139;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  margin-top: 14px;
  text-align: center;
  color: #ffb4b4;
  background: rgba(255,80,80,0.08);
  border: 1px solid rgba(255,80,80,0.2);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
}
.error-detail {
  margin-top: 8px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: rgba(255,180,180,0.85);
  word-break: break-word;
}

/* Entrance animation for card pieces */
.stagger > * { opacity: 0; transform: translateY(14px); animation: riseIn 520ms var(--ease-out) forwards; }
.stagger > *:nth-child(1) { animation-delay: 0ms; }
.stagger > *:nth-child(2) { animation-delay: 110ms; }
.stagger > *:nth-child(3) { animation-delay: 220ms; }
.stagger > *:nth-child(4) { animation-delay: 330ms; }
.stagger > *:nth-child(5) { animation-delay: 440ms; }
.stagger > *:nth-child(6) { animation-delay: 540ms; }

@keyframes riseIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Question transitions */
.q-screen {
  width: 100%;
  display: flex;
  justify-content: center;
}
.q-screen.enter { animation: screenIn 520ms var(--ease-out) both; }
.q-screen.exit { animation: screenOut 320ms var(--ease) both; }

@keyframes screenIn {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes screenOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-22px); }
}

/* Phase flash */
.phase-flash {
  position: fixed;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(50% 50% at 50% 50%, rgba(42,194,222,0.22), rgba(8,12,20,0.85) 70%, rgba(8,12,20,1));
  opacity: 0;
  transition: opacity 380ms var(--ease);
}
.phase-flash.active { opacity: 1; }
.phase-flash-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transform: translateY(8px);
  opacity: 0;
  transition: opacity 420ms var(--ease) 80ms, transform 420ms var(--ease) 80ms;
}
.phase-flash.active .phase-flash-inner { opacity: 1; transform: translateY(0); }

.phase-flash-eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
}
.phase-flash-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 38px;
  letter-spacing: -0.01em;
  color: var(--text);
}

/* Progress bar — lives at the top of the card */
.progress-inline {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.progress-inline .progress-track {
  flex: 1;
  position: relative;
  height: 9px;
  background: rgba(255,255,255,0.08);
  border-radius: 999px;
  overflow: hidden;
}
.progress-inline .progress-fill {
  position: relative;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #3c5eab, #2ac2de 55%, #9fe6f3);
  border-radius: 999px;
  box-shadow:
    0 0 16px rgba(42,194,222,0.55),
    inset 0 0 8px rgba(255,255,255,0.25);
  transition: width 600ms cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}
/* Primary highlight crest — bright, fast, "splash" */
.progress-inline .progress-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255,255,255,0) 25%,
    rgba(255,255,255,1) 50%,
    rgba(255,255,255,0) 75%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 1.6s linear infinite;
  mix-blend-mode: screen;
  filter: blur(0.5px);
}
/* Secondary slower wave — gives the "liquid sloshing" rhythm */
.progress-inline .progress-fill::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(180,230,255,0) 25%,
    rgba(220,245,255,0.7) 50%,
    rgba(180,230,255,0) 75%,
    transparent 100%
  );
  transform: translateX(-100%);
  animation: shimmer 2.8s ease-in-out infinite 0.4s;
  mix-blend-mode: screen;
}
@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.progress-inline .progress-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--teal);
  text-shadow: 0 0 8px rgba(42,194,222,0.4);
  min-width: 36px;
  text-align: right;
}

/* Intro screen */
.intro-card { text-align: center; padding: 56px 36px 48px; }

/* Language toggle pill — rendered last in the intro card, sits centered
   ON ITS OWN ROW below the "4 phases · ≈ 4 minutes · Instant score"
   tagline. width:max-content keeps it pill-shaped; margin:auto centers
   it horizontally; margin-top gives breathing room from the meta line. */
.lang-toggle {
  display: flex;
  width: max-content;
  gap: 2px;
  padding: 4px;
  margin: 36px auto 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
}
.lang-btn {
  appearance: none;
  background: transparent;
  border: none;
  padding: 7px 16px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.55);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease;
}
.lang-btn:hover {
  color: rgba(255, 255, 255, 0.85);
}
.lang-btn.active {
  background: rgba(63, 184, 255, 0.20);
  color: #c8e9ff;
}
.lang-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(63, 184, 255, 0.28);
}

.intro-eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 18px;
}
.intro-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}
.intro-title em { color: var(--teal); font-style: normal; }
.intro-sub {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
  max-width: 520px;
  margin: 0 auto 28px;
}
.intro-meta {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 24px;
}
.intro-meta .dot-sep { opacity: 0.5; }

@media (max-width: 640px) {
  .intro-card { padding: 44px 22px 36px; }
  .intro-title { font-size: 32px; }
  .q-text { font-size: 24px; }
  .q-number { font-size: 44px; }
  .phase-flash-title { font-size: 28px; }
}

/* Thank you screen */
.thanks-card {
  text-align: center;
  padding: 64px 36px 56px;
}
.check-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(42,194,222,0.10);
  border: 1px solid rgba(42,194,222,0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 8px rgba(42,194,222,0.05), 0 0 40px rgba(42,194,222,0.35);
  animation: checkPop 600ms var(--ease-out) both;
}
@keyframes checkPop {
  0% { transform: scale(0.6); opacity: 0; }
  60% { transform: scale(1.08); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.check-svg { width: 48px; height: 48px; }
.check-svg path {
  fill: none;
  stroke: var(--teal);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: drawCheck 700ms var(--ease-out) 300ms forwards;
  filter: drop-shadow(0 0 6px rgba(42,194,222,0.6));
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.thanks-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
}
.thanks-sub {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 480px;
  margin: 0 auto 28px;
}

/* ---------- Score block (participant result) ---------- */
.score-block {
  --tier-color: var(--teal);
  --tier-glow: rgba(63, 184, 255, 0.32);
  position: relative;
  margin: 8px auto 28px;
  max-width: 520px;
  padding: 26px 28px 24px;
  border-radius: 18px;
  text-align: center;
  background:
    radial-gradient(120% 80% at 50% 0%, var(--tier-glow), transparent 70%),
    rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.08);
  overflow: hidden;
}
.score-block::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--tier-color), transparent);
  opacity: 0.9;
}
/* Tier accents mapped to the brand palette — kept in sync with the email
   template (lib/email/template.ts): Sky → Amber → Cyan → deep teal → Navy. */
.score-block.tier-undecided { --tier-color: #c7eafb; --tier-glow: rgba(199,234,251,0.22); }
.score-block.tier-ignition  { --tier-color: #f6923e; --tier-glow: rgba(246,146,62,0.28); }
.score-block.tier-momentum  { --tier-color: #2ac2de; --tier-glow: rgba(42,194,222,0.30); }
.score-block.tier-mastery   { --tier-color: #1a7d97; --tier-glow: rgba(26,125,151,0.36); }

.score-eyebrow {
  display: block;
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}
.score-value {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 18px;
}
.score-number {
  font-family: var(--font);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
  text-shadow: 0 0 24px var(--tier-glow);
}
.score-suffix {
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
}
.score-tier {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--tier-color);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.02em;
  box-shadow: 0 0 22px var(--tier-glow);
}
.score-tier-icon { font-size: 16px; }
.score-tier-profile {
  margin: 14px auto 0;
  max-width: 420px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* ---------- Tier legend ---------- */
.tier-legend {
  margin: 0 auto 26px;
  max-width: 600px;
  text-align: left;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  padding: 18px 18px 8px;
}
.tier-legend-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  padding: 0 4px;
}
.tier-legend-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.tier-legend-sub {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tier-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid transparent;
  transition: background 220ms var(--ease), border-color 220ms var(--ease);
}
.tier-row.active {
  background: rgba(42,194,222,0.07);
  border-color: rgba(42,194,222,0.35);
  box-shadow: 0 0 0 1px rgba(42,194,222,0.15), 0 10px 24px rgba(42,194,222,0.08);
}
.tier-icon {
  font-size: 18px;
  line-height: 1.3;
  flex-shrink: 0;
}
.tier-meta { flex: 1; min-width: 0; }
.tier-meta-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}
.tier-name {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  letter-spacing: 0.01em;
}
.tier-row.active .tier-name { color: var(--teal); }
.tier-range {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.tier-profile {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
}

/* ---------- Compare-to-peers CTA ---------- */
.compare-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 600px;
  margin: 0 auto;
  padding: 18px 22px;
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(42,194,222,0.16), rgba(42,194,222,0.05));
  border: 1px solid rgba(42,194,222,0.35);
  color: var(--text);
  text-decoration: none;
  text-align: left;
  transition: transform 220ms var(--ease), box-shadow 220ms var(--ease), border-color 220ms var(--ease);
  box-shadow: 0 14px 36px rgba(42,194,222,0.10);
}
.compare-card:hover {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: 0 20px 50px rgba(42,194,222,0.22);
}
.compare-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(42,194,222,0.35), 0 14px 36px rgba(42,194,222,0.18);
}
.compare-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.compare-eyebrow {
  font-size: 10.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--teal);
  font-weight: 700;
}
.compare-title {
  font-family: var(--font);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  color: var(--text);
}
.compare-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.compare-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal);
  color: #052139;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(42,194,222,0.35);
  transition: transform 220ms var(--ease);
}
.compare-card:hover .compare-arrow { transform: translateX(3px); }

@media (max-width: 540px) {
  .score-number { font-size: 52px; }
  .compare-card { flex-direction: row; padding: 16px 18px; }
  .compare-title { font-size: 16px; }
  .tier-meta-top { flex-direction: column; gap: 2px; }
  .tier-range { align-self: flex-start; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
