:root {
  --ink: #111827;
  --navy: #0d1426;
  --navy-2: #172035;
  --blue: #136ef6;
  --blue-2: #0f56c5;
  --paper: #ffffff;
  --wash: #eef4ff;
  --wash-2: #f7faff;
  --line: #d9e3f2;
  --muted: #60708b;
  --gold: #b88b3f;
  --red: #aa2d25;
  --shadow: 0 24px 70px rgba(13, 20, 38, 0.15);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(90deg, rgba(13, 20, 38, 0.035) 1px, transparent 1px) 0 0 /
      56px 56px,
    linear-gradient(180deg, #eaf2ff 0, #f8fbff 540px, #ffffff 100%);
  color: var(--ink);
  font-family: "Trebuchet MS", Arial, sans-serif;
  line-height: 1.55;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

@keyframes quiet-reveal {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes document-rise-left {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(18px) rotate(-5deg);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotate(-3deg);
  }
}

@keyframes document-rise-right {
  from {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(16px) rotate(3deg);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) rotate(6deg);
  }
}

@keyframes person-rise {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(24px) scale(0.985);
  }

  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0) scale(1);
  }
}

@keyframes step-reveal {
  from {
    opacity: 0;
    transform: translateX(12px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes step-leave {
  from {
    opacity: 1;
    transform: translateX(0);
  }

  to {
    opacity: 0;
    transform: translateX(-10px);
  }
}

@keyframes option-reveal {
  from {
    opacity: 0;
    transform: translateY(9px);
  }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 12px clamp(18px, 6vw, 76px);
  background: var(--navy);
  color: #fff;
  box-shadow: 0 8px 24px rgba(13, 20, 38, 0.24);
  animation: quiet-reveal 520ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
}

.brand-logo {
  display: block;
  width: 58px;
  height: 58px;
  object-fit: contain;
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 15px;
  font-weight: 700;
}

.header-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: var(--radius);
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  font-weight: 800;
  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.header-link:hover {
  background: #edf4ff;
  transform: translateY(-1px);
}

main {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}

.audit-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 410px);
  gap: clamp(28px, 6vw, 86px);
  align-items: end;
  overflow: hidden;
  padding: clamp(46px, 8vw, 92px) 0 0;
}

.intro-copy {
  padding: 8px 0 clamp(44px, 6vw, 72px);
  animation: quiet-reveal 700ms 80ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.08;
}

h1 {
  max-width: 820px;
  font-size: clamp(36px, 5.6vw, 70px);
}

h2 {
  font-size: clamp(26px, 3vw, 39px);
}

.hero-text {
  max-width: 720px;
  margin: 26px 0 30px;
  color: #52637d;
  font-size: clamp(18px, 2vw, 22px);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid rgba(13, 20, 38, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.66);
  color: #34435c;
  font-weight: 800;
  animation: quiet-reveal 560ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.trust-strip span:nth-child(1) {
  animation-delay: 220ms;
}

.trust-strip span:nth-child(2) {
  animation-delay: 300ms;
}

.trust-strip span:nth-child(3) {
  animation-delay: 380ms;
}

.trust-strip strong {
  color: var(--gold);
  font-size: 13px;
}

.registry-visual {
  position: relative;
  align-self: stretch;
  min-height: 590px;
  isolation: isolate;
}

.person-backdrop {
  position: absolute;
  z-index: -1;
  right: -8%;
  bottom: 7%;
  width: 108%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(19, 110, 246, 0.14) 0,
    rgba(19, 110, 246, 0.055) 48%,
    transparent 70%
  );
}

.hero-person {
  position: absolute;
  right: -54px;
  bottom: -1px;
  display: block;
  width: auto;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: right bottom;
  filter: drop-shadow(0 22px 28px rgba(13, 20, 38, 0.16));
  animation: person-rise 780ms 220ms cubic-bezier(0.18, 0.82, 0.22, 1) both;
}

.quiz-shell {
  position: relative;
  z-index: 2;
  scroll-margin-top: 104px;
  margin: 0 0 clamp(44px, 8vw, 92px);
  border: 1px solid rgba(13, 20, 38, 0.09);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: quiet-reveal 720ms 420ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.quiz-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
  padding: clamp(22px, 4vw, 38px);
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(19, 110, 246, 0.08), transparent 46%), #fff;
}

.step-indicator {
  width: min(310px, 100%);
  color: var(--muted);
  font-weight: 900;
}

.progress-track {
  height: 7px;
  margin-top: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6edf8;
}

.progress-track span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #2f84ff);
  transition: width 380ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.quiz-form {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  min-height: 560px;
}

.quiz-side {
  display: grid;
  align-content: start;
  gap: 1px;
  padding: 24px 0;
  border-right: 1px solid var(--line);
  background: #f8fbff;
}

.quiz-side span {
  position: relative;
  display: grid;
  height: 58px;
  place-items: center;
  color: #9aaac0;
  font-size: 13px;
  font-weight: 900;
  transition:
    background 260ms ease,
    color 260ms ease,
    transform 260ms ease;
}

.quiz-side span.is-active {
  color: #fff;
  background: var(--blue);
}

.quiz-side span.is-complete {
  color: var(--blue);
}

.quiz-stage {
  display: flex;
  min-height: 560px;
  flex-direction: column;
  padding: clamp(22px, 4vw, 42px);
}

.quiz-step {
  display: none;
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-step.is-active {
  display: block;
  animation: step-reveal 340ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.quiz-step.is-leaving {
  display: block;
  pointer-events: none;
  animation: step-leave 220ms cubic-bezier(0.4, 0, 1, 1) both;
}

.quiz-step.is-active legend,
.quiz-step.is-active .step-note,
.quiz-step.is-active .field-grid,
.quiz-step.is-active .contact-choice,
.quiz-step.is-active .option-card {
  animation: option-reveal 360ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.quiz-step.is-active legend {
  animation-delay: 35ms;
}

.quiz-step.is-active .step-note {
  animation-delay: 70ms;
}

.quiz-step.is-active .option-card:nth-of-type(1),
.quiz-step.is-active .field-grid {
  animation-delay: 95ms;
}

.quiz-step.is-active .option-card:nth-of-type(2),
.quiz-step.is-active .contact-choice {
  animation-delay: 145ms;
}

.quiz-step.is-active .option-card:nth-of-type(3) {
  animation-delay: 195ms;
}

legend {
  width: 100%;
  margin-bottom: 22px;
  color: var(--ink);
  font-size: clamp(23px, 2.4vw, 32px);
  font-weight: 900;
  line-height: 1.18;
}

.step-note {
  max-width: 810px;
  margin: -8px 0 22px;
  color: var(--muted);
  font-size: 17px;
}

.option-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
  margin: 10px 0;
  padding: 17px 18px 17px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  color: #202b3c;
  font-size: 18px;
  font-weight: 700;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.option-card::after {
  content: "";
  position: absolute;
  inset: -1px auto -1px -1px;
  width: 4px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: transparent;
}

.option-card:hover,
.option-card:has(input:checked) {
  border-color: rgba(19, 110, 246, 0.54);
  background: #f8fbff;
  box-shadow: 0 12px 28px rgba(13, 20, 38, 0.07);
  transform: translateY(-1px);
}

.option-card.is-picked {
  border-color: rgba(184, 139, 63, 0.62);
  background: #fffdf8;
  box-shadow: 0 16px 36px rgba(184, 139, 63, 0.13);
  transform: translateY(-2px);
}

.option-card:has(input:checked)::after {
  background: var(--blue);
}

.option-card.is-picked::after {
  background: var(--gold);
}

input[type="radio"] {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 900;
}

.field small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0 16px;
  outline: none;
  color: var(--ink);
  background: #fff;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.field input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(19, 110, 246, 0.12);
}

.contact-choice {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.contact-choice > span {
  width: 100%;
  color: var(--ink);
  font-weight: 900;
}

.contact-choice label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  font-weight: 800;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.contact-choice label:has(input:checked) {
  border-color: var(--blue);
  background: #f2f7ff;
  transform: translateY(-1px);
}

.form-error {
  min-height: 26px;
  margin: 22px 0 0;
  color: var(--red);
  font-weight: 900;
}

.quiz-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: auto;
  padding-top: 10px;
}

.primary-link,
.primary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: var(--radius);
  padding: 0 24px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 900;
}

.primary-link,
.primary-button {
  border: 0;
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(19, 110, 246, 0.22);
  transition:
    background 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.primary-link:hover,
.primary-button:hover {
  background: var(--blue-2);
  box-shadow: 0 18px 34px rgba(19, 110, 246, 0.26);
  transform: translateY(-1px);
}

.ghost-button {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.ghost-button:hover {
  border-color: rgba(19, 110, 246, 0.32);
  background: #f8fbff;
  transform: translateY(-1px);
}

#submitButton {
  display: none;
}

.success-page {
  background:
    linear-gradient(90deg, rgba(13, 20, 38, 0.035) 1px, transparent 1px) 0 0 /
      56px 56px,
    var(--wash);
}

.success-main {
  display: grid;
  min-height: calc(100vh - 76px);
  place-items: center;
  padding: 42px 0;
}

.success-card {
  position: relative;
  width: min(780px, 100%);
  padding: clamp(30px, 6vw, 62px);
  border: 1px solid rgba(13, 20, 38, 0.1);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: quiet-reveal 680ms 120ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.success-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 7px;
  background: var(--blue);
}

.success-seal {
  position: absolute;
  right: 34px;
  top: 34px;
  display: grid;
  width: 132px;
  height: 62px;
  place-items: center;
  border: 2px solid rgba(184, 139, 63, 0.5);
  color: rgba(184, 139, 63, 0.78);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  transform: rotate(6deg);
  animation: document-rise-right 700ms 320ms cubic-bezier(0.18, 0.82, 0.22, 1)
    both;
}

.success-card h1 {
  max-width: 620px;
  font-size: clamp(32px, 4vw, 54px);
}

.success-card p {
  color: var(--muted);
  font-size: 18px;
}

.success-lead {
  margin-top: 24px;
  color: var(--ink) !important;
  font-weight: 900;
}

.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 28px;
  align-items: center;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.footer-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.footer-inner p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.45;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.footer-links a {
  color: #fff;
  text-decoration: none;
}

.footer-links a:hover {
  color: #d8e8ff;
}

@media (max-width: 920px) {
  .site-header {
    position: static;
  }

  .audit-layout {
    grid-template-columns: 1fr;
    gap: 24px;
    padding-top: 42px;
  }

  .intro-copy {
    padding-bottom: 0;
  }

  .registry-visual {
    width: min(440px, 100%);
    min-height: 500px;
    margin: 0 auto;
  }

  .hero-person {
    right: 50%;
    translate: 50% 0;
  }

  .quiz-head {
    align-items: stretch;
    flex-direction: column;
  }

  .quiz-form {
    grid-template-columns: 1fr;
  }

  .quiz-side {
    display: none;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .footer-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 580px) {
  body {
    background:
      linear-gradient(90deg, rgba(13, 20, 38, 0.03) 1px, transparent 1px) 0 0 /
        38px 38px,
      linear-gradient(180deg, #eaf2ff 0, #f8fbff 480px, #ffffff 100%);
  }

  main {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    gap: 12px;
    padding: 12px;
  }

  .brand {
    gap: 10px;
    font-size: 15px;
  }

  .brand-logo {
    width: 48px;
    height: 48px;
  }

  .header-meta span {
    display: none;
  }

  .header-link {
    min-height: 40px;
    padding: 0 12px;
    font-size: 14px;
  }

  .trust-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .audit-layout {
    gap: 16px;
    padding-top: 34px;
  }

  .registry-visual {
    min-height: 390px;
  }

  .person-backdrop {
    right: 0;
    bottom: 3%;
    width: 100%;
  }

  .quiz-stage,
  .quiz-head {
    padding: 22px 16px;
  }

  .quiz-stage {
    min-height: 610px;
  }

  .option-card {
    align-items: flex-start;
    font-size: 16px;
  }

  .quiz-actions {
    flex-direction: column-reverse;
  }

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

  .success-seal {
    display: none;
  }

  .footer-inner {
    width: min(100% - 24px, 1180px);
    padding: 40px 0;
  }

  .footer-brand {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-delay: 0ms !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-delay: 0ms !important;
    transition-duration: 1ms !important;
  }

  .quiz-side span.is-active,
  .option-card:hover,
  .option-card:has(input:checked),
  .option-card.is-picked,
  .contact-choice label:has(input:checked),
  .primary-link:hover,
  .primary-button:hover,
  .ghost-button:hover {
    transform: none;
  }
}
