@font-face { font-family: "Poppins"; src: url("/poppins-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/poppins-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/poppins-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/poppins-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --bg: #FAFBFF; --card: #FFFFFF; --field: #F9FBFF; --line: #EEEEEE; --line2: #E3E5EE;
  --text: #292D32; --black: #000; --muted: #9197B3; --dim: #B5B7C0;
  --brand: #5932EA; --brand-700: #4A25CF; --brand-50: #F4F1FE; --brand-100: #EBE5FD; --brand-300: #B9A6F7;
  --mint: #00AC4F; --mint-600: #008767; --mint-100: #D3FFE7; --mint-50: #EFFFF6;
  --red: #DF0404; --red-bg: #FFC5C5;
  --shadow: 0 10px 60px rgba(226, 236, 249, .7);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); font: 15px/1.55 "Poppins", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
::selection { background: rgba(89, 50, 234, .18); }

.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 4px 30px rgba(226,236,249,.6); }
.top-in, .progress, .wrap, .nav-in { max-width: 720px; margin: 0 auto; padding-left: 18px; padding-right: 18px; }
.top-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand img { width: 40px; height: 40px; }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand b { font-size: 19px; font-weight: 600; letter-spacing: -.01em; color: var(--black); }
.brand small { font-size: 11.5px; color: var(--muted); }
.saved { font-size: 12px; color: var(--mint-600); display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.saved::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--mint); box-shadow: 0 0 0 3px rgba(0,172,79,.18); }
.progress { padding-bottom: 12px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.progress-meta span:first-child { color: var(--brand); font-weight: 600; }
.bar { height: 6px; border-radius: 99px; background: var(--brand-100); overflow: hidden; }
.bar > div { height: 100%; width: 0; background: var(--brand); border-radius: 99px; transition: width .45s cubic-bezier(.2,.8,.2,1); }

.wrap { padding-top: 20px; padding-bottom: calc(110px + var(--safe-b)); }
.card { background: var(--card); border-radius: 26px; padding: 24px 18px; box-shadow: var(--shadow); border: 1px solid #fff; }
.step-enter { animation: enter .3s cubic-bezier(.2,.8,.2,1); }
@keyframes enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--mint); }
.eyebrow .num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12.5px; letter-spacing: 0; }
h1 { font-size: 25px; line-height: 1.25; letter-spacing: -.02em; margin: 10px 0 6px; font-weight: 600; color: var(--black); }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; margin: 10px 0 4px; font-weight: 600; color: var(--black); }
.lead { color: var(--muted); margin: 0 0 4px; font-size: 14.5px; }
.note { margin: 14px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--mint-50); border: 1px solid #BFF0D5; color: #0B5B37; font-size: 14px; }

.field { margin-top: 24px; scroll-margin-top: 130px; }
.field > label, .field > .q { display: block; font-weight: 500; font-size: 15px; line-height: 1.45; margin-bottom: 9px; color: var(--black); }
.field .id { color: var(--brand); font-weight: 600; margin-right: 6px; font-variant-numeric: tabular-nums; }
.req { color: var(--brand); margin-left: 3px; }
.opt-tag { color: var(--dim); font-weight: 400; font-size: 12px; margin-left: 6px; }
.hint { color: var(--muted); font-size: 13px; margin: -4px 0 9px; }
input[type=text], input[type=tel], input[type=email], input[type=url], textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--field); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none; transition: border-color .15s, box-shadow .15s, background .15s; -webkit-appearance: none; }
textarea { min-height: 112px; resize: vertical; line-height: 1.5; }
input::placeholder, textarea::placeholder { color: var(--dim); }
input:focus, textarea:focus { border-color: var(--brand-300); background: #fff; box-shadow: 0 0 0 4px rgba(89,50,234,.10); }
.field.has-err input, .field.has-err textarea { border-color: var(--red); background: #FFF7F7; }
.err { display: flex; gap: 6px; align-items: center; color: var(--red); font-size: 13px; margin-top: 8px; font-weight: 500; }
.err::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 99px; background: var(--red-bg); font-size: 11px; font-weight: 700; flex: none; }

.opts { display: grid; gap: 9px; }
.opts.two { grid-template-columns: 1fr 1fr; }
.opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line2); cursor: pointer; transition: border-color .15s, background .15s, transform .08s; font-size: 14.5px; -webkit-tap-highlight-color: transparent; user-select: none; }
.opt:hover { border-color: var(--brand-300); }
.opt:active { transform: scale(.99); }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .mark { flex: none; width: 20px; height: 20px; border-radius: 99px; border: 2px solid #CDD0DE; display: grid; place-items: center; transition: all .15s; }
.opt.multi .mark { border-radius: 6px; }
.opt.on { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); font-weight: 500; }
.opt.on .mark { border-color: var(--brand); background: var(--brand); }
.opt.on .mark::after { content: ""; width: 9px; height: 5px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.opt:has(input:focus-visible) { box-shadow: 0 0 0 4px rgba(89,50,234,.18); }
.outro { margin-top: 9px; }

.files { border: 1.5px dashed var(--line2); border-radius: 18px; padding: 14px; background: var(--field); }
.files .row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.files .sep { display: flex; align-items: center; gap: 10px; color: var(--dim); font-size: 11.5px; margin: 12px 0; text-transform: uppercase; letter-spacing: .08em; }
.files .sep::before, .files .sep::after { content: ""; flex: 1; height: 1px; background: var(--line2); }
.files input[type=url] { background: #fff; }
.upbtn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--brand-300); background: var(--brand-50); color: var(--brand); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
.upbtn:hover { background: var(--brand-100); }
.upbtn svg { width: 18px; height: 18px; }
.limit { color: var(--dim); font-size: 12px; }
.flist { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; }
.flist li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; }
.flist svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.flist .fn { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flist .fs { color: var(--dim); font-size: 12px; flex: none; }
.flist .ok svg { color: var(--mint); }
.flist .bad { color: var(--red); font-size: 12px; }
.flist .x { flex: none; border: 0; background: transparent; color: var(--dim); font-size: 20px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.flist .x:hover { color: var(--red); background: #FFF0F0; }
.mini { height: 4px; border-radius: 99px; background: var(--brand-100); overflow: hidden; margin-top: 6px; }
.mini > div { height: 100%; background: var(--brand); width: 0; transition: width .2s; }

.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 -4px 30px rgba(226,236,249,.7); padding-bottom: var(--safe-b); }
.nav-in { display: flex; gap: 10px; padding-top: 12px; padding-bottom: 12px; }
.btn { appearance: none; border: 0; font: inherit; font-weight: 600; font-size: 15px; border-radius: 14px; padding: 13px 18px; cursor: pointer; transition: background .15s, transform .08s, opacity .15s; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:active { transform: scale(.985); }
.btn.primary { flex: 1; color: #fff; background: var(--brand); box-shadow: 0 8px 24px -8px rgba(89,50,234,.6); }
.btn.primary:hover { background: var(--brand-700); }
.btn.ghost { color: var(--text); background: #fff; border: 1px solid var(--line2); min-width: 104px; }
.btn.ghost:hover { border-color: var(--brand-300); color: var(--brand); }
.btn[disabled] { opacity: .55; pointer-events: none; }
.spin { width: 18px; height: 18px; border-radius: 99px; border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff; animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }

.hero { display: flex; align-items: center; gap: 14px; }
.hero img { width: 92px; height: 92px; flex: none; animation: flutua 2.4s ease-in-out infinite; }
@keyframes flutua { 0%,100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-6px) rotate(3deg); } }
.intro-list { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.intro-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 14.5px; }
.intro-list b { color: var(--black); font-weight: 600; }
.intro-list .ic { flex: none; width: 40px; height: 40px; border-radius: 99px; display: grid; place-items: center; background: linear-gradient(135deg, var(--mint-100), var(--mint-50)); color: var(--mint); }
.intro-list .ic svg { width: 19px; height: 19px; }
.quote { margin: 18px 0 0; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--brand-100); background: var(--brand-50); font-size: 14.5px; color: var(--brand-700); font-weight: 500; }
.resume { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.resume button { background: none; border: 0; color: var(--brand); font: inherit; cursor: pointer; padding: 0; text-decoration: underline; }
.alert { margin-top: 16px; padding: 12px 14px; border-radius: 14px; background: #FFF0F0; border: 1px solid var(--red-bg); color: #B00303; font-size: 14px; display: flex; gap: 10px; align-items: center; }
.alert img { width: 36px; height: 36px; flex: none; }

.done { text-align: center; padding: 30px 20px 30px; }
.done .mascote { width: 150px; height: 150px; margin: 0 auto 6px; display: block; animation: pop .55s cubic-bezier(.2,1.4,.4,1); }
@keyframes pop { from { transform: scale(.6) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
.done p { color: var(--text); max-width: 460px; margin: 8px auto 0; }
.done .proto { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; padding: 6px 14px; border-radius: 8px; background: rgba(22,192,152,.38); border: 1px solid #00B087; font-size: 13px; color: var(--mint-600); font-weight: 500; }
.done .proto b { font-variant-numeric: tabular-nums; }
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.foot { text-align: center; color: var(--dim); font-size: 12px; margin-top: 18px; }

@media (min-width: 640px) {
  .card { padding: 34px 36px; }
  h1 { font-size: 30px; } h2 { font-size: 24px; }
  .opts.wide { grid-template-columns: 1fr 1fr; }
  .wrap { padding-top: 32px; }
  .hero img { width: 120px; height: 120px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
