:root {
  --bg: #eef5ff;
  --bg-soft: #d7e6fb;
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(18, 63, 132, 0.92);
  --line: rgba(32, 90, 180, 0.14);
  --text: #12315f;
  --muted: #55729c;
  --accent: #2e67c7;
  --accent-2: #1bb3a9;
  --success: #1aa579;
  --danger: #cf4f67;
  --shadow: 0 22px 60px rgba(20, 58, 120, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Montserrat", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at left 18%, rgba(86, 139, 235, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(46, 103, 199, 0.12), transparent 24%),
    linear-gradient(180deg, #f5f9ff 0%, #eaf2fe 52%, #e2ecfb 100%);
}

.page-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 48px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding-bottom: 10px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 70px -140px auto auto;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(64, 122, 223, 0.18), rgba(64, 122, 223, 0));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  left: -140px;
  top: 140px;
  width: 420px;
  height: 420px;
  border: 2px solid rgba(63, 118, 214, 0.08);
  border-radius: 50%;
  box-shadow:
    70px 80px 0 0 rgba(63, 118, 214, 0.04),
    140px 160px 0 0 rgba(63, 118, 214, 0.025);
  pointer-events: none;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 20px;
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.eyebrow,
.kicker,
.result-kicker {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 800;
}

.brand-copy strong {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.55rem;
  line-height: 1;
}

.ghost-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.7);
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.98fr 1.02fr;
  gap: 28px;
  align-items: start;
  margin-top: 28px;
}

.hero-copy {
  padding: 12px 8px 0;
}

.hero-copy h1 {
  margin: 10px 0 16px;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(3rem, 7vw, 5.6rem);
  line-height: 0.9;
  color: #1b478b;
}

.hero-text {
  max-width: 640px;
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.8;
}

.hero-points {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 28px;
}

.point-card,
.trust-strip article {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.point-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.point-card span,
.trust-strip p {
  color: var(--muted);
  line-height: 1.55;
}

.diagnostic-card {
  background:
    linear-gradient(180deg, rgba(24, 76, 154, 0.96), rgba(19, 58, 121, 0.96)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.card-head h2 {
  margin: 8px 0 8px;
  font-family: "Cormorant Garamond", serif;
  font-size: 1.8rem;
  color: #ffffff;
}

.card-head p,
.step-pill,
.field-label,
.result-copy p {
  color: rgba(234, 244, 255, 0.8);
}

.step-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 0.84rem;
  font-weight: 700;
}

.wizard {
  margin-top: 18px;
}

.helper-copy {
  margin: 12px 0 0;
  color: rgba(234, 244, 255, 0.82);
  font-size: 0.92rem;
  line-height: 1.6;
}

.step {
  display: none;
  animation: rise 220ms ease;
}

.step.is-active {
  display: block;
}

.field-label {
  display: block;
  margin: 14px 0 10px;
  font-size: 0.96rem;
  font-weight: 700;
}

.choice-grid {
  display: grid;
  gap: 12px;
}

.choice-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: #eef6ff;
  border-radius: 20px;
  padding: 18px;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.choice:hover,
.choice.is-selected {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.14);
}

.choice-title {
  display: block;
  font-weight: 800;
  margin-bottom: 4px;
}

.choice-copy {
  color: rgba(234, 244, 255, 0.78);
  line-height: 1.5;
}

.input-control {
  width: 100%;
  padding: 15px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #eef6ff;
  font: inherit;
  outline: none;
}

.input-control::placeholder {
  color: rgba(234, 244, 255, 0.58);
}

.input-control option {
  color: #163663;
}

.input-control:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.branch-fields.hidden,
.hidden {
  display: none;
}

.result-shell {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  margin-bottom: 18px;
}

.score-ring {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, rgba(15, 49, 100, 1) 58%, transparent 59%),
    conic-gradient(#76d4ff 0deg, #59e0bf 240deg, rgba(255, 255, 255, 0.14) 240deg 360deg);
  border: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.score-ring span {
  display: block;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.score-ring small {
  display: block;
  width: 90px;
  color: var(--muted);
}

.result-copy h3 {
  margin: 8px 0 10px;
  font-size: 1.5rem;
  color: #ffffff;
}

.result-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: rgba(234, 244, 255, 0.84);
}

.lead-panel {
  display: grid;
  gap: 2px;
}

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  color: rgba(234, 244, 255, 0.88);
  font-size: 0.92rem;
  line-height: 1.55;
}

.consent-row input {
  margin-top: 4px;
}

.consent-row a {
  color: #ffffff;
  font-weight: 700;
}

.actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
}

.primary-btn,
.secondary-btn {
  appearance: none;
  border: 0;
  border-radius: 16px;
  padding: 15px 20px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.primary-btn {
  flex: 1;
  color: #ffffff;
  background: linear-gradient(135deg, #18b3a4, #2489d7);
}

.secondary-btn {
  min-width: 120px;
  color: #eef6ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.secondary-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.trust-strip article {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.trust-number {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(46, 103, 199, 0.12);
  color: var(--accent);
  font-weight: 800;
}

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

@media (max-width: 980px) {
  .hero-grid,
  .trust-strip,
  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-top: 8px;
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 18px, 100%);
    padding-top: 10px;
  }

  .topbar,
  .actions {
    flex-direction: column;
  }

  .choice-grid.two,
  .result-shell {
    grid-template-columns: 1fr;
  }

  .score-ring {
    margin: 0 auto;
  }

  .ghost-link,
  .secondary-btn,
  .primary-btn {
    width: 100%;
  }
}
