:root {
  --ink: #111214;
  --muted: #6f7278;
  --paper: #f7f7f4;
  --white: #ffffff;
  --line: #d9dad6;
  --accent: #59cc20;
  --accent-2: #2189ff;
  --danger: #cc334b;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.10);
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; background: var(--paper); color: var(--ink); }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  overflow: hidden;
}

button, input, textarea { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  background: var(--white);
  transition: opacity .24s ease, visibility .24s ease;
  animation: introFallback .24s .82s ease forwards;
}

.intro.is-done { opacity: 0; visibility: hidden; pointer-events: none; }

.intro-mark {
  position: relative;
  width: min(680px, 78vw);
  overflow: hidden;
  animation: markIn .48s cubic-bezier(.22, 1, .36, 1) both;
}

.intro-mark img { display: block; width: 100%; height: auto; }

.intro-sheen {
  position: absolute;
  inset: -30%;
  background: linear-gradient(105deg, transparent 38%, rgba(33,137,255,.14) 48%, rgba(89,204,32,.13) 52%, transparent 62%);
  transform: translateX(-80%);
  animation: sheen .52s .12s ease both;
}

.intro-line {
  position: absolute;
  left: 50%;
  bottom: 12vh;
  width: min(200px, 42vw);
  height: 2px;
  transform: translateX(-50%);
  background: rgba(17,18,20,.12);
  overflow: hidden;
}
.intro-line span { display: block; width: 100%; height: 100%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform-origin: left; animation: loading .7s ease both; }

.form-shell {
  min-height: 100dvh;
  opacity: 1;
  visibility: visible;
  transition: opacity .2s ease;
  background:
    radial-gradient(circle at 8% 15%, rgba(89,204,32,.10), transparent 25rem),
    radial-gradient(circle at 95% 85%, rgba(33,137,255,.09), transparent 30rem),
    var(--paper);
}
.form-shell.is-ready { opacity: 1; visibility: visible; }

.topbar {
  position: fixed;
  z-index: 5;
  inset: 0 0 auto 0;
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(22px, 4vw, 64px);
}

.brand { display: block; width: clamp(142px, 14vw, 190px); height: 48px; overflow: hidden; }
.brand img { width: 100%; height: 100%; object-fit: contain; object-position: left center; }
.form-label { margin: 0; font-size: .88rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

.progress { position: fixed; z-index: 8; top: 0; left: 0; right: 0; height: 4px; background: rgba(17,18,20,.10); }
.progress span { display: block; height: 100%; width: 16.667%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .45s cubic-bezier(.22, 1, .36, 1); }

form { position: relative; min-height: 100dvh; }

.step {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 92px 24px 82px;
  visibility: hidden;
  pointer-events: none;
}

.step.is-active { visibility: visible; pointer-events: auto; }

.question-card {
  width: min(820px, 100%);
  transform: translateY(34px);
  opacity: 0;
}

.step.is-active .question-card { animation: questionIn .55s cubic-bezier(.22, 1, .36, 1) forwards; }
.step.is-leaving .question-card { animation: questionOut .25s ease forwards; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.eyebrow span { display: inline-grid; place-items: center; width: 31px; height: 25px; border-radius: 999px; background: var(--ink); color: white; font-size: .74rem; }

h1, h2 {
  margin: 0 0 34px;
  max-width: 800px;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: clamp(2rem, 4.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -.045em;
  font-weight: 600;
}

input[type='text'], input[type='email'], input[type='tel'], textarea {
  display: block;
  width: 100%;
  padding: 12px 2px 16px;
  border: 0;
  border-bottom: 2px solid #b9bbb8;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
  line-height: 1.35;
  transition: border-color .2s ease;
}

input:focus, textarea:focus { border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: #a4a6a4; }
textarea { resize: none; min-height: 150px; }

.textarea-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 9px; color: var(--muted); font-size: .82rem; }
.error { min-height: 24px; margin: 10px 0 0; color: var(--danger); font-size: .92rem; }

.continue, .submit {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding: 14px 20px;
  border: 0;
  border-radius: 12px;
  background: var(--ink);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform .18s ease, background .18s ease;
}
.continue:hover, .submit:hover { transform: translateY(-2px); background: #27282b; }
.continue span { color: var(--accent); }
.submit span { color: var(--accent-2); font-size: 1.2em; }
.submit[disabled] { opacity: .62; cursor: wait; transform: none; }

fieldset { display: grid; gap: 10px; width: min(620px, 100%); padding: 0; border: 0; }
.choice { position: relative; display: grid; grid-template-columns: 36px 1fr 28px; align-items: center; gap: 12px; min-height: 57px; padding: 8px 14px 8px 10px; border: 1px solid #c7c9c6; border-radius: 12px; background: rgba(255,255,255,.64); cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; }
.choice:hover { transform: translateX(4px); border-color: var(--ink); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .key { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid #b8bab7; border-radius: 8px; font-weight: 700; font-size: .85rem; }
.choice > span:nth-of-type(2) { font-size: 1.05rem; font-weight: 600; }
.choice i { opacity: 0; font-style: normal; font-weight: 800; }
.choice:has(input:checked) { border-color: var(--ink); background: var(--ink); color: white; }
.choice:has(input:checked) .key { border-color: rgba(255,255,255,.5); background: white; color: var(--ink); }
.choice:has(input:checked) i { opacity: 1; color: var(--accent); }

.footer-controls { position: fixed; z-index: 6; left: clamp(22px, 4vw, 64px); right: clamp(22px, 4vw, 64px); bottom: 22px; display: flex; align-items: center; justify-content: space-between; }
.footer-controls p { margin: 0; color: var(--muted); font-size: .9rem; }
.footer-controls div { display: flex; gap: 6px; }
.footer-controls button { width: 42px; height: 38px; border: 1px solid #d0d1ce; background: rgba(255,255,255,.72); color: var(--ink); border-radius: 10px; cursor: pointer; }
.footer-controls button:hover { border-color: var(--ink); }
.footer-controls button:disabled { opacity: .32; cursor: default; }

.success {
  position: fixed;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
  visibility: hidden;
  opacity: 0;
}
.success.is-active { visibility: visible; opacity: 1; animation: successIn .7s cubic-bezier(.22,1,.36,1) both; }
.success-orbit { display: grid; place-items: center; width: 84px; height: 84px; margin-bottom: 30px; border: 1px solid var(--ink); border-radius: 50%; animation: orbit 6s linear infinite; }
.success-orbit span { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--accent); font-size: 1.5rem; animation: orbit 6s linear infinite reverse; }
.success .eyebrow { justify-content: center; margin-bottom: 18px; }
.success h2 { max-width: 900px; margin-bottom: 20px; }
.success > p:not(.eyebrow) { margin: 0 0 24px; color: var(--muted); font-size: clamp(1rem, 2vw, 1.25rem); }
.success a { color: var(--ink); font-weight: 700; text-decoration-thickness: 1px; text-underline-offset: 5px; }

@keyframes markIn { from { opacity: 0; transform: scale(.92); clip-path: inset(0 100% 0 0); } to { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); } }
@keyframes sheen { to { transform: translateX(80%); } }
@keyframes loading { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes introFallback { to { opacity: 0; visibility: hidden; pointer-events: none; } }
@keyframes questionIn { to { transform: translateY(0); opacity: 1; } }
@keyframes questionOut { to { transform: translateY(-24px); opacity: 0; } }
@keyframes successIn { from { transform: scale(.97); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes orbit { to { transform: rotate(360deg); } }

@media (max-width: 640px) {
  .topbar { height: 68px; padding-inline: 18px; }
  .brand { width: 132px; height: 42px; }
  .form-label { font-size: .72rem; }
  .step { padding: 88px 20px 76px; align-items: center; }
  h1, h2 { margin-bottom: 28px; font-size: clamp(1.85rem, 9vw, 2.7rem); }
  .eyebrow { margin-bottom: 16px; font-size: .78rem; }
  .choice { min-height: 52px; }
  .footer-controls { left: 20px; right: 20px; bottom: 16px; }
  .textarea-meta span:first-child { display: none; }
}

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