:root { --bg: #06070a; --line: rgba(158,158,176,.18); --line-2: rgba(158,158,176,.38); --text: #f5f5f7; --text-2: #c8c9d3; --text-3: #a2a3b4; --blue: #353ccd; --blue-2: #5a60ff; --blue-text: #aeb1ff; --err: #ff9d9d; --font: 'Manrope', Arial, sans-serif; --mono: 'DM Mono', 'Courier New', monospace; --ease: cubic-bezier(.2,.8,.2,1); }
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); -webkit-text-size-adjust: 100%; scroll-padding-block: 90px 120px; }
body { margin: 0; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(80% 480px at 50% 0, rgba(53,60,205,.3), transparent 72%), var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-text); }
button { font: inherit; color: inherit; cursor: pointer; }
h1, p, ul, ol, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 3px; border-radius: 6px; }
h1:focus, h1:focus-visible { outline: none; }

.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; max-width: 1120px; margin: 0 auto; padding: 1.1rem 1.25rem; }
.brand { display: flex; align-items: center; gap: .7rem; color: var(--text); text-decoration: none; font-size: .92rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.brand img { width: auto; height: 40px; filter: drop-shadow(0 0 10px rgba(90,96,255,.45)); }
.brand b { display: block; margin-top: .25rem; color: var(--text-3); font: 500 .62rem var(--mono); letter-spacing: .2em; text-transform: uppercase; }
.saved { color: var(--text-3); font-size: .78rem; text-align: right; }
.bar { position: sticky; z-index: 5; top: 0; height: 3px; background: rgba(255,255,255,.08); }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue-2), #d9d9e3); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }

.shell { flex: 1; display: grid; grid-template-columns: 200px minmax(0, 720px); justify-content: center; gap: clamp(2rem, 5vw, 4.5rem); width: 100%; padding: clamp(1.8rem, 5vw, 4rem) 1.25rem 4rem; }
[data-view="intro"] .shell, [data-view="done"] .shell { grid-template-columns: minmax(0, 760px); align-items: center; }
.rail ol { position: sticky; top: 2.5rem; display: grid; gap: .15rem; }
.rail button { display: flex; align-items: center; gap: .8rem; width: 100%; min-height: 44px; padding: 0; border: 0; background: none; color: var(--text-3); font-size: .9rem; font-weight: 600; text-align: left; }
.rail button:disabled { opacity: .5; cursor: default; }
.rail i { display: grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-2); border-radius: 50%; font: 500 .72rem var(--mono); }
.rail .on button { color: #fff; }
.rail .on i { border-color: transparent; background: linear-gradient(120deg, var(--blue), #6d72f0); color: #fff; }
.rail .past i { border-color: var(--blue-2); color: var(--blue-text); }
.rail button:not(:disabled):hover { color: #fff; }

.stage > * { animation: rise .45s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.eyebrow { margin-bottom: .9rem; color: var(--blue-text); font: 500 .74rem/1.4 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
h1 { font-size: clamp(1.9rem, 4.6vw, 2.9rem); font-weight: 700; line-height: 1.08; letter-spacing: -.04em; text-wrap: balance; }
.intro h1 { font-size: clamp(2.4rem, 7vw, 4.4rem); }
.grad { background: linear-gradient(100deg, #8b90ff 0%, #c3c5ff 45%, #d9d9e3 75%, #9e9eb0 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 58ch; margin-top: 1rem; color: var(--text-2); }
.intro .lead { margin-top: 1.4rem; font-size: clamp(1.02rem, 1.6vw, 1.15rem); }
.facts { display: flex; flex-wrap: wrap; gap: 1rem 2.4rem; margin-top: 2.2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts li { color: var(--text-3); font-size: .88rem; }
.facts b { display: block; color: var(--text); font-size: 1.1rem; }
.note { margin-top: 1.4rem; color: var(--text-3); font-size: .86rem; }
.inline { padding: 0; border: 0; background: none; color: var(--blue-text); text-decoration: underline; }
.mail { margin-top: 1.2rem; color: var(--text-2); font-size: .92rem; }
.mail:empty { display: none; }
.mail[data-state="ok"] { color: #9fe3c0; }
.mail[data-state="fail"] { color: #ffd29d; }

.field { min-width: 0; margin: 2.3rem 0 0; padding: 0; border: 0; }
.field > label, legend { display: block; padding: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; }
.field em { color: var(--blue-text); font-style: normal; }
.field small { margin-left: .35rem; color: var(--text-3); font-size: .78rem; font-weight: 500; letter-spacing: 0; }
.hint { margin-top: .3rem; color: var(--text-3); font-size: .88rem; }
.input { display: block; width: 100%; min-height: 54px; margin-top: .75rem; padding: .85rem 1rem; border: 1px solid var(--line-2); border-radius: 12px; background: rgba(255,255,255,.04); color: var(--text); font: 500 1rem/1.5 var(--font); transition: border-color .2s, background .2s, box-shadow .2s; }
textarea.input { min-height: 100px; resize: vertical; }
.input::placeholder { color: #8f90a3; }
.input:focus { outline: none; border-color: var(--blue-2); background: rgba(90,96,255,.08); box-shadow: 0 0 0 3px rgba(90,96,255,.25); }
.chips { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .85rem; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.chip span { display: flex; align-items: center; min-height: 46px; padding: .55rem 1.05rem; border: 1px solid var(--line-2); border-radius: 50px; background: rgba(255,255,255,.03); color: var(--text-2); font-size: .93rem; font-weight: 600; line-height: 1.3; transition: background .2s, border-color .2s, color .2s; }
.chip:hover span { border-color: var(--blue-text); color: #fff; }
.chip input:checked + span { border-color: #fff; background: #fff; color: #06070a; }
.chip input:focus-visible + span { outline: 2px solid var(--blue-text); outline-offset: 3px; }
.chip input:disabled { cursor: not-allowed; }
.chip input:disabled + span { opacity: .4; }
.err { color: var(--err); font-size: .88rem; font-weight: 600; }
.err:not(:empty) { margin-top: .55rem; }
.has-err .input { border-color: var(--err); }
.has-err .chip span { border-color: rgba(255,157,157,.6); }

.actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: .9rem 1.7rem; border: 1px solid transparent; border-radius: 50px; font-size: .95rem; font-weight: 800; text-align: center; text-decoration: none; transition: background .25s, color .25s, box-shadow .3s; }
.btn.primary { background: #fff; color: #06070a; box-shadow: 0 12px 40px -6px rgba(83,90,255,.6); }
.btn.primary:hover { box-shadow: 0 16px 48px -4px rgba(83,90,255,.9); }
.btn.ghost { border-color: var(--line-2); background: rgba(255,255,255,.03); color: var(--text); }
.btn.ghost:hover { border-color: #fff; }
.actions.nav { justify-content: space-between; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }

.review { display: grid; margin-top: 2rem; border-bottom: 1px solid var(--line); }
.review section { padding: 1.3rem 0; border-top: 1px solid var(--line); }
.review header { display: flex; align-items: center; justify-content: space-between; }
.review h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.02em; }
.edit { min-height: 44px; padding: 0 .2rem; border: 0; background: none; color: var(--blue-text); font-size: .88rem; font-weight: 700; }
.review dl > div { display: grid; grid-template-columns: 170px 1fr; gap: .2rem 1.2rem; padding: .4rem 0; font-size: .93rem; }
.review dt, .empty { color: var(--text-3); }
.review dd { color: var(--text-2); overflow-wrap: anywhere; white-space: pre-line; }
.consent label { display: flex; gap: .8rem; font-size: .92rem; font-weight: 500; color: var(--text-2); cursor: pointer; }
.consent input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--blue-2); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; }
.foot { padding: 1.5rem 1.25rem; border-top: 1px solid var(--line); color: var(--text-3); font-size: .8rem; text-align: center; }

@media (max-width: 860px) {
  .shell { display: block; padding-top: 1.8rem; padding-bottom: 3rem; }
  .rail { display: none; }
  [data-view="intro"] .shell, [data-view="done"] .shell { display: grid; grid-template-columns: minmax(0, 1fr); }
  .review dl > div { grid-template-columns: 1fr; }
  .actions.nav { position: sticky; z-index: 4; bottom: 0; flex-wrap: nowrap; margin: 2.4rem -1.25rem 0; padding: .8rem 1.25rem calc(.8rem + env(safe-area-inset-bottom)); background: rgba(6,7,10,.94); }
  .actions.nav .btn { min-height: 52px; padding-inline: 1.2rem; }
  .actions.nav .primary { flex: 1; }
  .intro .btn { width: 100%; }
}
@media (max-width: 480px) { .facts { display: grid; gap: .9rem; } .facts li { display: flex; justify-content: space-between; align-items: baseline; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
