:root {
  --bg: #1c1c1c; --surface: #262626; --surface-2: #2e2e2e;
  --ink: #f3efe8; --muted: #aaa398; --line: rgba(255,255,255,.1);
  --signal: #d4663a; --sage: #83946a; --sage-2: #b0c78f;
  --f-display: "Bricolage Grotesque", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--bg); color: var(--ink); font: 400 17px/1.6 var(--f-body); -webkit-font-smoothing: antialiased; }
.bg-grid { position: fixed; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 70%); }
a { color: var(--signal); }
h1 { font-family: var(--f-display); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; font-size: clamp(36px, 6vw, 64px); margin: 20px 0 18px; }
.accent { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }

.top { position: relative; display: flex; align-items: center; justify-content: space-between; width: min(760px, 100% - 40px); margin: 0 auto; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 600 18px var(--f-display); }
.brand b { color: var(--signal); font-weight: 800; }
.brand img { width: 36px; height: auto; }
.top__tag { font: 500 12px var(--f-mono); letter-spacing: .1em; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }

.shell { position: relative; flex: 1; width: min(760px, 100% - 40px); margin: 0 auto; padding: 40px 0 80px; }
.screen { display: none; }
.screen.is-active { display: block; animation: in .5s var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(12px); } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 12px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; margin: 0; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.lead { color: var(--muted); font-size: clamp(17px, 1.8vw, 20px); max-width: 36em; margin: 0 0 28px; }
.lead b { color: var(--ink); }
.facts { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-wrap: wrap; gap: 10px; }
.facts li { padding: 10px 16px; border-radius: 12px; background: var(--surface); font-size: 15px; color: var(--muted); }
.facts b { color: var(--ink); font-family: var(--f-display); font-size: 18px; margin-right: 4px; }
.resume { margin-top: 16px; color: var(--muted); font-size: 15px; }
.link { background: none; border: 0; color: var(--signal); font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.4em; border-radius: 999px; border: 1.5px solid transparent; font: 600 15px/1 var(--f-body); cursor: pointer; text-decoration: none; transition: transform .25s var(--ease), box-shadow .25s; }
.btn:hover { transform: translateY(-2px); }
.btn--signal { background: var(--signal); color: #fff; }
.btn--signal:hover { box-shadow: 0 10px 24px -10px var(--signal); }
.btn--ghost { background: transparent; color: var(--ink); border-color: rgba(255,255,255,.25); }
.btn--lg { padding: 1.05em 1.7em; font-size: 16px; }

.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: var(--signal); transition: width .5s var(--ease); }
.step-count { font: 500 12px var(--f-mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin: 12px 0 24px; }

.step { border: 0; padding: 0; margin: 0; min-width: 0; }
.step > legend { font: 800 clamp(26px, 3.4vw, 38px)/1.1 var(--f-display); letter-spacing: -.02em; padding: 0; margin-bottom: 28px; display: flex; gap: 14px; align-items: baseline; }
.step__n { font: 500 14px var(--f-mono); color: var(--signal); }

.field { display: block; border: 0; margin: 0 0 26px; padding: 22px 24px; background: var(--surface); border-radius: 18px; border: 1px solid transparent; min-width: 0; transition: border-color .2s; }
.field[hidden] { display: none; }
.field > legend, .field .label { float: left; width: 100%; font-weight: 600; font-size: 16px; line-height: 1.4; margin-bottom: 14px; padding: 0; }
.field > legend + * , .field .label + * { clear: both; }
.req { color: var(--signal); }
.help { clear: both; margin: -6px 0 12px; font-size: 14px; color: var(--muted); }
.field.is-invalid { border-color: #ef6b4a; }
.err { margin: 8px 0 0; font-size: 14px; color: #ff8a6b; min-height: 0; }
.err:empty { display: none; }

.opts { display: flex; flex-wrap: wrap; gap: 8px; clear: both; }
.opts--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span { display: flex; align-items: center; gap: 10px; height: 100%; padding: 11px 16px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,.14); font-size: 15px; transition: all .15s; }
.opt span::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); transition: all .15s; }
.opt input[type=checkbox] + span::before { border-radius: 5px; }
.opt:hover span { border-color: rgba(255,255,255,.35); }
.opt input:checked + span { border-color: var(--signal); background: rgba(212,102,58,.14); }
.opt input:checked + span::before { background: var(--signal); border-color: var(--signal); box-shadow: inset 0 0 0 3px var(--surface); }
.opt input[type=checkbox]:checked + span::before { box-shadow: none; background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }
.opt input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }

.input-wrap { position: relative; clear: both; }
.input { width: 100%; font: 400 16px var(--f-body); color: var(--ink); background: var(--bg); border: 1.5px solid rgba(255,255,255,.12); border-radius: 12px; padding: 13px 16px; transition: border-color .2s, box-shadow .2s; resize: vertical; clear: both; display: block; }
.input:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(212,102,58,.18); }
.input.other { margin-top: 10px; }
.suffix { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font: 500 13px var(--f-mono); color: var(--muted); pointer-events: none; }
input[type=number]::-webkit-inner-spin-button { opacity: .4; }

.hp { position: absolute; left: -9999px; }
.nav-btns { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.nav-btns .btn[hidden] { display: none; }
.spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff6; border-top-color: #fff; animation: spin .8s linear infinite; }
form.is-sending .spinner { display: inline-block; }
form.is-sending #send { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }
.status { margin-top: 16px; font-size: 15px; }
.status.err { color: #ff8a6b; }

.check { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 34px; background: var(--sage); color: #fff; animation: pop .6s var(--ease); }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

.foot { position: relative; text-align: center; padding: 24px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }

@media (max-width: 600px) {
  .field { padding: 18px; }
  .opts--grid { grid-template-columns: 1fr; }
  .opts .opt { flex: 1 1 auto; }
  .nav-btns .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
