@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/manrope/Manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ob-bg: #f5f6fa;
  --ob-surface: #ffffff;
  --ob-surface-soft: #f1f2f7;
  --ob-ink: #171923;
  --ob-muted: #697081;
  --ob-line: #dfe2ea;
  --ob-line-strong: #cbd0dc;
  --ob-accent: #6f27f5;
  --ob-accent-dark: #5220bd;
  --ob-accent-soft: #f1eafd;
  --ob-danger: #b42338;
  --ob-success: #177a5b;
  --ob-radius-panel: 26px;
  --ob-radius-card: 16px;
  --ob-radius-control: 12px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ob-bg); }
body { min-width: 320px; margin: 0; background: var(--ob-bg); color: var(--ob-ink); font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body.is-submitting { cursor: wait; }
button, input, select, textarea { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { display: block; max-width: 100%; }
h1, h2, h3, p, figure { margin: 0; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
button { color: inherit; }
::selection { background: rgba(111, 39, 245, 0.18); }
:focus-visible { outline: 3px solid rgba(111, 39, 245, 0.3); outline-offset: 3px; }

.onboard-skip { position: fixed; top: 12px; left: 12px; z-index: 20; padding: 11px 14px; border-radius: 10px; background: var(--ob-ink); color: #fff; font-weight: 800; text-decoration: none; transform: translateY(-150%); transition: transform 160ms ease; }
.onboard-skip:focus { transform: none; }

.onboard-layout { display: grid; grid-template-columns: minmax(400px, 42vw) minmax(0, 1fr); min-height: 100dvh; }
.onboard-story { position: sticky; top: 0; height: 100dvh; overflow: hidden; background: #100a20; color: #f8f6fc; }
.onboard-story::before { position: fixed; top: -16vw; left: -12vw; width: 38vw; height: 38vw; border-radius: 50%; background: rgba(111, 39, 245, 0.18); filter: blur(90px); content: ""; pointer-events: none; }
.story-inner { position: relative; z-index: 1; display: flex; flex-direction: column; min-height: 100%; padding: clamp(32px, 4.5vw, 70px); }
.story-logo { display: inline-flex; width: 210px; height: 60px; flex: 0 0 auto; align-items: center; overflow: visible; }
.story-logo img { display: block; width: 200px; height: auto; max-width: none; max-height: 56px; object-fit: contain; object-position: left center; filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.15)); }
.story-copy { max-width: 600px; margin-top: clamp(40px, 6vh, 72px); }
.story-kicker, .form-kicker { display: inline-flex; align-items: center; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.story-kicker { color: #be9eff; }
.story-copy h1 { max-width: 650px; margin-top: 18px; font-size: clamp(34px, 3.6vw, 54px); font-weight: 650; letter-spacing: -0.055em; line-height: 1.03; }
.story-copy > p { max-width: 560px; margin-top: 22px; color: #bdb5ca; font-size: clamp(15px, 1.25vw, 19px); line-height: 1.65; }

.story-media { position: relative; overflow: hidden; aspect-ratio: 16 / 8.3; max-height: 250px; margin-top: clamp(28px, 4vh, 44px); border: 1px solid rgba(255,255,255,0.13); border-radius: 22px; background: #241c37; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.22); }
.story-media > img { width: 100%; height: 100%; object-fit: cover; opacity: 0.72; }
.story-media::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,10,32,0.82), rgba(16,10,32,0.04) 68%); content: ""; }
.story-media figcaption { position: absolute; z-index: 1; bottom: 26px; left: 28px; display: grid; max-width: 280px; gap: 9px; }
.story-media figcaption span { color: #d4c2fa; font-size: 12px; font-weight: 750; }
.story-media figcaption span i { margin-right: 7px; }
.story-media figcaption strong { color: #fff; font-size: 20px; line-height: 1.25; }

.story-benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; border-top: 1px solid rgba(255,255,255,0.12); border-bottom: 1px solid rgba(255,255,255,0.12); }
.story-benefits > div { display: grid; grid-template-columns: 30px 1fr; gap: 10px; padding: 15px 14px; }
.story-benefits > div:nth-child(even) { border-left: 1px solid rgba(255,255,255,0.12); }
.story-benefits > div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,0.12); }
.story-benefits i { margin-top: 3px; color: #a979ff; }
.story-benefits span { display: grid; gap: 3px; }
.story-benefits strong { font-size: 12px; }
.story-benefits small { color: #9f97ad; font-size: 10px; line-height: 1.5; }
.story-trust { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin-top: auto; padding-top: 24px; color: #a9a1b8; }
.story-trust > i { display: grid; width: 34px; height: 34px; border: 1px solid rgba(190,158,255,0.2); border-radius: 10px; background: rgba(111,39,245,0.12); color: #be9eff; place-items: center; }
.story-trust p { max-width: 520px; font-size: 11px; }
.story-trust strong { color: #eee9f5; }

.onboard-workspace { min-width: 0; background: var(--ob-bg); }
.workspace-topbar { display: flex; min-height: 78px; align-items: center; justify-content: space-between; padding: 16px clamp(26px, 5vw, 78px); border-bottom: 1px solid var(--ob-line); }
.mobile-logo { display: none; }
.site-link, .topbar-account a { font-size: 13px; font-weight: 750; text-decoration: none; }
.site-link { display: inline-flex; gap: 9px; align-items: center; color: #4e5564; }
.site-link:hover, .topbar-account a:hover { color: var(--ob-accent); }
.topbar-account { color: var(--ob-muted); font-size: 13px; white-space: nowrap; }
.topbar-account a { margin-left: 4px; color: var(--ob-accent-dark); }

.form-shell { width: min(820px, calc(100% - 52px)); margin: 0 auto; padding: clamp(52px, 6vw, 84px) 0 28px; }
.form-intro { max-width: 650px; }
.form-kicker { color: var(--ob-accent-dark); }
.form-intro h2 { margin-top: 10px; font-size: clamp(32px, 4vw, 48px); font-weight: 700; letter-spacing: -0.045em; line-height: 1.08; }
.form-intro p { max-width: 600px; margin-top: 14px; color: var(--ob-muted); font-size: 15px; }

.stepper { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); margin: 42px 0 44px; }
.stepper::before { position: absolute; top: 17px; right: 12.5%; left: 12.5%; height: 1px; background: var(--ob-line); content: ""; }
.stepper-item { position: relative; z-index: 1; display: grid; justify-items: center; gap: 7px; padding: 0; border: 0; background: transparent; color: #8b91a0; cursor: default; }
.stepper-item span { display: grid; width: 34px; height: 34px; border: 1px solid var(--ob-line-strong); border-radius: 50%; background: var(--ob-bg); font-size: 12px; font-weight: 800; place-items: center; transition: 180ms ease; }
.stepper-item b { font-size: 11px; font-weight: 750; }
.stepper-item.is-active, .stepper-item.is-complete { color: var(--ob-accent-dark); }
.stepper-item.is-active span { border-color: var(--ob-accent); background: var(--ob-accent); color: #fff; box-shadow: 0 7px 18px rgba(111,39,245,0.2); }
.stepper-item.is-complete span { border-color: var(--ob-accent); background: var(--ob-accent-soft); color: var(--ob-accent-dark); }

.form-message { margin-bottom: 24px; padding: 14px 16px; border: 1px solid #f0a9b4; border-radius: 12px; background: #fff1f3; color: #8d1d31; font-size: 13px; font-weight: 650; }
.js .onboarding-step:not(.is-active) { display: none; }
.onboarding-step { animation: step-in 380ms cubic-bezier(.16,1,.3,1) both; }
@keyframes step-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.step-heading { display: grid; grid-template-columns: 48px 1fr; gap: 15px; align-items: center; margin-bottom: 30px; }
.step-icon { display: grid; width: 48px; height: 48px; border: 1px solid #dfd4f8; border-radius: 14px; background: var(--ob-accent-soft); color: var(--ob-accent-dark); font-size: 17px; place-items: center; }
.step-heading h3 { font-size: 22px; letter-spacing: -0.025em; }
.step-heading p { margin-top: 3px; color: var(--ob-muted); font-size: 13px; }

.nominal-option, .terms-option { position: relative; display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; border: 1px solid var(--ob-line); border-radius: var(--ob-radius-card); background: var(--ob-surface); cursor: pointer; }
.nominal-option { margin-bottom: 32px; padding: 17px 18px; }
.nominal-option input, .terms-option input, .product-grid input, .upload-card > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.option-check { display: grid; width: 21px; height: 21px; margin-top: 1px; border: 1px solid var(--ob-line-strong); border-radius: 6px; background: #fff; color: transparent; font-size: 10px; place-items: center; transition: 160ms ease; }
.nominal-option input:checked + .option-check, .terms-option input:checked + .option-check { border-color: var(--ob-accent); background: var(--ob-accent); color: #fff; }
.nominal-option input:focus-visible + .option-check, .terms-option input:focus-visible + .option-check { outline: 3px solid rgba(111,39,245,0.25); outline-offset: 2px; }
.nominal-option > span:last-child { display: grid; gap: 2px; }
.nominal-option strong { font-size: 13px; }
.nominal-option small { color: var(--ob-muted); font-size: 11px; }

.onboarding-step fieldset + fieldset { margin-top: 36px; padding-top: 32px; border-top: 1px solid var(--ob-line); }
legend { margin-bottom: 17px; color: #303440; font-size: 13px; font-weight: 800; }
.legend-helper { margin: -10px 0 16px; color: var(--ob-muted); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; }
.field { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.field.wide { grid-column: 1 / -1; }
.field label { color: #454a57; font-size: 12px; font-weight: 750; }
.field label em, .upload-copy em { color: var(--ob-accent); font-style: normal; }
.field label.is-required::after { color: var(--ob-accent); content: " *"; }
.field input, .field select, .field textarea { width: 100%; min-height: 50px; border: 1px solid var(--ob-line-strong); border-radius: var(--ob-radius-control); outline: 0; background: var(--ob-surface); color: var(--ob-ink); font-size: 14px; transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.field input, .field select { padding: 0 14px; }
.field textarea { min-height: 96px; padding: 13px 14px; resize: vertical; }
.field select { appearance: none; padding-right: 42px; background-image: linear-gradient(45deg, transparent 50%, #767d8d 50%), linear-gradient(135deg, #767d8d 50%, transparent 50%); background-position: calc(100% - 18px) 22px, calc(100% - 13px) 22px; background-repeat: no-repeat; background-size: 5px 5px, 5px 5px; }
.field input::placeholder, .field textarea::placeholder { color: #9aa0ae; opacity: 1; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #aeb4c2; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--ob-accent); box-shadow: 0 0 0 3px rgba(111,39,245,0.1); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--ob-danger); box-shadow: 0 0 0 3px rgba(180,35,56,0.08); }
.field > small { color: var(--ob-muted); font-size: 10px; line-height: 1.45; }
.password-wrap, .input-status { position: relative; }
.password-wrap input { padding-right: 48px; }
.password-toggle { position: absolute; top: 5px; right: 5px; display: grid; width: 40px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: #777e8e; cursor: pointer; place-items: center; }
.password-toggle:hover { background: var(--ob-surface-soft); color: var(--ob-ink); }
.input-status > i { position: absolute; top: 17px; right: 16px; display: none; color: var(--ob-accent); }
.input-status.is-loading > i { display: block; animation: spin 900ms linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.product-grid label { position: relative; cursor: pointer; }
.product-grid span { display: flex; min-height: 76px; flex-direction: column; justify-content: space-between; padding: 13px; border: 1px solid var(--ob-line); border-radius: 13px; background: var(--ob-surface); transition: 160ms ease; }
.product-grid i { color: #777e8d; font-size: 15px; }
.product-grid b { font-size: 11px; }
.product-grid input:checked + span { border-color: var(--ob-accent); background: var(--ob-accent-soft); box-shadow: inset 0 0 0 1px var(--ob-accent); }
.product-grid input:checked + span i { color: var(--ob-accent-dark); }
.product-grid input:focus-visible + span { outline: 3px solid rgba(111,39,245,0.25); outline-offset: 2px; }

.privacy-note, .review-note { display: grid; grid-template-columns: 38px 1fr; gap: 13px; align-items: start; margin-top: 34px; padding: 18px; border-radius: var(--ob-radius-card); }
.privacy-note { border: 1px solid #e1d8f8; background: #f4effd; }
.review-note { border: 1px solid #d8e8e2; background: #f0f8f5; }
.privacy-note > i, .review-note > i { display: grid; width: 38px; height: 38px; border-radius: 11px; place-items: center; }
.privacy-note > i { background: #e8defb; color: var(--ob-accent-dark); }
.review-note > i { background: #dcefe8; color: var(--ob-success); }
.privacy-note strong, .review-note strong { font-size: 12px; }
.privacy-note p, .review-note p { margin-top: 3px; color: var(--ob-muted); font-size: 11px; }

.document-notice { display: grid; grid-template-columns: 22px 1fr; gap: 10px; margin-bottom: 30px; padding: 13px 15px; border: 1px solid #dfd4f8; border-radius: 12px; background: var(--ob-accent-soft); color: #5d3a91; font-size: 11px; }
.document-notice i { margin-top: 2px; }
.upload-grid { display: grid; gap: 12px; }
.upload-card { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 13px; align-items: center; min-height: 82px; padding: 14px 16px; border: 1px dashed var(--ob-line-strong); border-radius: var(--ob-radius-card); background: var(--ob-surface); cursor: pointer; transition: 160ms ease; }
.upload-card:hover { border-color: var(--ob-accent); background: #fbf9ff; transform: translateY(-1px); }
.upload-card.has-file { border-style: solid; border-color: #94c9b7; background: #f5fbf8; }
.upload-card.has-error { border-color: var(--ob-danger); background: #fff7f8; }
.upload-card:focus-within { outline: 3px solid rgba(111,39,245,0.2); outline-offset: 2px; }
.upload-icon { display: grid; width: 42px; height: 42px; border-radius: 12px; background: var(--ob-surface-soft); color: var(--ob-accent-dark); place-items: center; }
.has-file .upload-icon { background: #dcefe8; color: var(--ob-success); }
.upload-copy { display: grid; min-width: 0; gap: 3px; }
.upload-copy strong { font-size: 12px; }
.upload-copy small { overflow: hidden; color: var(--ob-muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.upload-action { padding: 8px 10px; border: 1px solid var(--ob-line); border-radius: 9px; color: #505665; font-size: 10px; font-weight: 800; }
.terms-option { margin-top: 28px; padding: 17px; color: #525866; font-size: 11px; }
.terms-option a { color: var(--ob-accent-dark); font-weight: 750; }

.form-actions { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--ob-line); }
.button-primary, .button-secondary { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding: 0 19px; border-radius: var(--ob-radius-control); font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease; }
.button-primary { justify-self: end; border: 1px solid var(--ob-accent); background: var(--ob-accent); color: #fff; box-shadow: 0 10px 24px rgba(111,39,245,0.2); text-decoration: none; }
.button-primary:hover { background: var(--ob-accent-dark); box-shadow: 0 13px 30px rgba(111,39,245,0.25); transform: translateY(-1px); }
.button-secondary { justify-self: start; border: 1px solid var(--ob-line-strong); background: var(--ob-surface); color: #4b5260; }
.button-secondary:hover { background: var(--ob-surface-soft); }
.button-primary:active, .button-secondary:active { transform: translateY(1px); }
.button-primary:disabled, .button-secondary:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.step-counter { color: var(--ob-muted); font-size: 10px; white-space: nowrap; }
.step-counter b { color: var(--ob-ink); }
#previous-step { visibility: hidden; }
.submit-button { display: none; }
.submit-button.is-loading i { animation: spin 900ms linear infinite; }
.submit-button.is-loading i::before { content: "\f110"; }

.success-state { display: grid; max-width: 620px; justify-items: start; padding: 30px 0 10px; }
.success-state[hidden] { display: none; }
.success-icon { display: grid; width: 62px; height: 62px; margin-bottom: 24px; border-radius: 18px; background: #dff2eb; color: var(--ob-success); font-size: 23px; place-items: center; }
.success-state > span { color: var(--ob-success); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.success-state h2 { max-width: 560px; margin-top: 10px; font-size: clamp(32px, 4vw, 48px); letter-spacing: -0.045em; line-height: 1.08; }
.success-state > p { max-width: 560px; margin-top: 16px; color: var(--ob-muted); }
.protocol { display: grid; min-width: 290px; gap: 3px; margin: 30px 0; padding: 15px 17px; border: 1px solid var(--ob-line); border-radius: 13px; background: var(--ob-surface); }
.protocol small { color: var(--ob-muted); font-size: 10px; }
.protocol strong { overflow-wrap: anywhere; font-size: 12px; }
.success-state .button-primary { justify-self: start; }

.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--ob-line); color: #858b98; font-size: 10px; }
.workspace-footer span:first-child { display: inline-flex; gap: 7px; align-items: center; }

@media (max-width: 1180px) {
  .onboard-layout { grid-template-columns: minmax(340px, 38vw) minmax(0, 1fr); }
  .story-inner { padding: 32px; }
  .story-copy { margin-top: 42px; }
  .story-benefits > div { grid-template-columns: 27px 1fr; padding: 13px 8px; }
  .story-benefits small { display: none; }
  .story-media { aspect-ratio: 16 / 10; }
  .form-shell { width: min(720px, calc(100% - 42px)); }
}

@media (min-width: 861px) and (max-height: 900px) {
  .story-inner { padding-block: 26px; }
  .story-logo { width: 192px; height: 52px; }
  .story-logo img { width: 184px; max-height: 50px; }
  .story-copy { margin-top: 28px; }
  .story-copy h1 { margin-top: 12px; font-size: clamp(34px, 3.15vw, 48px); }
  .story-copy > p { margin-top: 14px; font-size: 15px; line-height: 1.5; }
  .story-media { max-height: 170px; margin-top: 22px; }
  .story-media figcaption { bottom: 18px; left: 20px; gap: 6px; }
  .story-media figcaption strong { font-size: 17px; }
  .story-benefits { margin-top: 14px; }
  .story-benefits > div { padding-block: 10px; }
  .story-benefits small { display: none; }
  .story-trust { padding-top: 15px; }
  .story-trust > i { width: 30px; height: 30px; }
  .story-trust p { font-size: 10px; }
}

@media (min-width: 861px) and (max-height: 700px) {
  .story-media { display: none; }
  .story-benefits { margin-top: 20px; }
}

@media (max-width: 860px) {
  .onboard-layout { display: block; }
  .onboard-story { position: relative; height: auto; min-height: 0; overflow: hidden; }
  .story-inner { min-height: auto; padding: 28px 24px 34px; }
  .story-logo, .story-media, .story-benefits, .story-trust { display: none; }
  .story-copy { margin-top: 0; }
  .story-copy h1 { max-width: 600px; margin-top: 10px; font-size: clamp(29px, 7vw, 42px); }
  .story-copy > p { margin-top: 12px; font-size: 14px; }
  .workspace-topbar { min-height: 68px; padding: 12px 22px; }
  .mobile-logo { display: inline-flex; width: 142px; height: 42px; align-items: center; overflow: visible; }
  .mobile-logo img { display: block; width: 138px; height: auto; max-width: none; max-height: 40px; object-fit: contain; object-position: left center; }
  .site-link { display: none; }
  .form-shell { width: min(720px, calc(100% - 36px)); padding-top: 42px; }
}

@media (max-width: 620px) {
  .story-inner { padding: 24px 18px 28px; }
  .story-kicker { font-size: 10px; }
  .story-copy h1 { font-size: 30px; }
  .story-copy > p { display: none; }
  .workspace-topbar { padding-inline: 18px; }
  .topbar-account { font-size: 0; }
  .topbar-account a { font-size: 12px; }
  .form-shell { width: calc(100% - 32px); padding-top: 36px; }
  .form-intro h2 { font-size: 32px; }
  .stepper { margin: 34px 0; }
  .stepper-item b { display: none; }
  .step-heading { grid-template-columns: 42px 1fr; margin-bottom: 25px; }
  .step-icon { width: 42px; height: 42px; border-radius: 12px; }
  .step-heading h3 { font-size: 19px; }
  .field-grid { grid-template-columns: 1fr; gap: 18px; }
  .field.wide { grid-column: auto; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .upload-card { grid-template-columns: 40px minmax(0, 1fr); padding: 13px; }
  .upload-action { display: none; }
  .form-actions { grid-template-columns: 1fr 1fr; }
  .step-counter { grid-column: 1 / -1; grid-row: 1; justify-self: center; }
  .button-primary, .button-secondary { width: 100%; padding: 0 12px; }
  .workspace-footer { margin-top: 52px; }
  .workspace-footer span:last-child { display: none; }
}

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

@media (prefers-reduced-transparency: reduce) {
  .onboard-story::before { display: none; }
}
