:root {
    --ink: #14201e;
    --muted: #687773;
    --line: #d5dfdc;
    --soft: #eff4f2;
    --paper: #ffffff;
    --green: #0b3d3a;
    --deep: #102724;
    --yellow: #f2b134;
    --danger: #b42318;
    --success: #16794a;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; background: var(--soft); }
body { margin: 0; color: var(--ink); background: var(--soft); font-family: Inter, "Segoe UI", ui-sans-serif, system-ui, sans-serif; font-size: 15px; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
svg { width: 1.25em; height: 1.25em; display: block; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }

.onboarding-header { min-height: 72px; padding: 0 max(24px, calc((100% - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 28px; background: var(--paper); border-bottom: 1px solid var(--line); }
.product-lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; }
.product-lockup > span { width: 38px; height: 38px; display: grid; place-items: center; color: var(--deep); background: var(--yellow); border: 1px solid #d39a28; border-radius: 7px; }
.product-lockup svg { width: 21px; height: 21px; }
.header-support { display: flex; align-items: center; gap: 17px; color: var(--muted); font-size: 13px; }
.header-support a, .legal-back { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; gap: 7px; color: var(--green); border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font-weight: 800; }
.header-support svg, .legal-back svg { width: 16px; height: 16px; }

.onboarding-main { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding-bottom: 70px; }
.onboarding-intro { min-height: 245px; padding: 48px 0 38px; display: flex; align-items: flex-end; justify-content: space-between; gap: 60px; }
.eyebrow { margin: 0 0 9px; color: var(--green); font-size: 10px; font-weight: 900; text-transform: uppercase; }
.onboarding-intro h1 { max-width: 690px; margin: 0; font-size: 45px; line-height: 1.06; letter-spacing: 0; }
.onboarding-intro h1 + p { max-width: 650px; margin: 18px 0 0; color: var(--muted); font-size: 16px; line-height: 1.65; }
.trial-strip { min-width: 295px; padding: 18px 20px; display: flex; align-items: center; gap: 14px; background: #fff8e7; border: 1px solid #e9d29e; border-left: 5px solid var(--yellow); border-radius: 6px; }
.trial-days { color: var(--green); font-size: 42px; font-weight: 850; line-height: 1; }
.trial-strip > span:last-child { display: grid; gap: 3px; }
.trial-strip strong { font-size: 14px; }
.trial-strip small { color: #786438; font-size: 11px; }

.onboarding-workspace { min-height: 660px; display: grid; grid-template-columns: 340px minmax(0, 1fr); background: var(--paper); border: 1px solid #cbd7d3; border-radius: 8px; overflow: hidden; box-shadow: 0 20px 55px rgba(20,32,30,.1); }
.setup-map { padding: 38px 34px; display: flex; flex-direction: column; color: #fff; background: var(--deep); }
.setup-map .eyebrow { color: #9dbbb4; }
.setup-map-heading h2 { margin: 0; font-size: 24px; }
.setup-map ol { margin: 42px 0; padding: 0; display: grid; list-style: none; }
.setup-map li { position: relative; min-height: 96px; display: grid; grid-template-columns: 40px 1fr; gap: 15px; opacity: .5; }
.setup-map li::after { position: absolute; content: ""; top: 38px; bottom: 0; left: 17px; width: 1px; background: rgba(255,255,255,.22); }
.setup-map li:last-child::after { display: none; }
.setup-map li > span { position: relative; z-index: 1; width: 36px; height: 36px; display: grid; place-items: center; color: #b8ccc7; background: #1d3b37; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; font-size: 11px; font-weight: 900; }
.setup-map li.is-active, .setup-map li.is-complete { opacity: 1; }
.setup-map li.is-active > span { color: var(--deep); background: var(--yellow); border-color: var(--yellow); }
.setup-map li.is-complete > span { color: #fff; background: var(--success); border-color: #5dbf89; }
.setup-map li strong, .setup-map li small { display: block; }
.setup-map li strong { margin-top: 4px; font-size: 14px; }
.setup-map li small { margin-top: 5px; color: #a6bbb6; font-size: 11px; line-height: 1.45; }
.included-list { margin-top: auto; padding-top: 25px; display: grid; gap: 12px; border-top: 1px solid rgba(255,255,255,.15); }
.included-list p { margin: 0 0 3px; color: #92ada6; font-size: 10px; font-weight: 900; text-transform: uppercase; }
.included-list span { display: flex; align-items: center; gap: 8px; color: #d6e3e0; font-size: 11px; font-weight: 700; }
.included-list svg { width: 15px; height: 15px; color: var(--yellow); }

.form-workspace { min-width: 0; padding: 45px 54px 38px; }
.mobile-progress { display: none; }
.form-alert { margin-bottom: 24px; padding: 13px 15px; display: flex; align-items: flex-start; gap: 9px; color: #821b13; background: #fff1f0; border: 1px solid #f1c0bc; border-radius: 6px; font-size: 13px; font-weight: 700; }
.form-alert svg { width: 18px; height: 18px; flex: 0 0 18px; }
.form-step { max-width: 760px; }
.form-heading { margin-bottom: 31px; }
.form-heading h2 { margin: 0; font-size: 29px; line-height: 1.14; }
.form-heading > p:last-child { margin: 9px 0 0; color: var(--muted); line-height: 1.55; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 21px 18px; }
.form-field { min-width: 0; }
.field-wide { grid-column: 1 / -1; }
.form-field label { margin-bottom: 8px; display: block; color: #34443f; font-size: 12px; font-weight: 800; }
.form-field label > span { color: var(--danger); }
.form-field label em { color: var(--muted); font-style: normal; font-weight: 500; }
.form-field > input, .form-field > select, .workspace-field, .email-field > input, .password-field, .code-field input { width: 100%; min-height: 49px; color: var(--ink); background: #fff; border: 1px solid #bac9c5; border-radius: 6px; }
.form-field > input, .form-field > select { padding: 0 14px; }
.form-field input::placeholder { color: #97a49f; }
.form-field input:focus, .form-field select:focus, .workspace-field:focus-within, .email-field > input:focus, .password-field:focus-within, .code-field input:focus { border-color: var(--green); outline: 3px solid rgba(11,61,58,.11); outline-offset: 0; }
.workspace-field { display: flex; align-items: center; overflow: hidden; }
.workspace-field > span { width: 46px; display: grid; place-items: center; color: var(--green); }
.workspace-field > span svg { width: 19px; height: 19px; }
.workspace-field input { min-width: 0; min-height: 47px; flex: 1; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; }
.workspace-field small { max-width: 48%; align-self: stretch; padding: 0 13px; display: grid; place-items: center; overflow: hidden; color: var(--muted); background: var(--soft); border-left: 1px solid var(--line); font-size: 11px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }
.field-status { margin-top: 7px; color: var(--muted); font-size: 10px; line-height: 1.4; }
.field-status.is-success { color: var(--success); font-weight: 800; }
.field-status.is-error, #codeStatus.is-error { color: var(--danger); font-weight: 800; }
.field-error { margin-top: 6px; display: block; color: var(--danger); font-size: 11px; font-weight: 750; }
.email-field { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.email-field > input { min-width: 0; padding: 0 14px; border-radius: 6px 0 0 6px; }
.email-field > button, .code-field button { min-height: 49px; padding: 0 16px; color: #fff; background: var(--green); border: 1px solid var(--green); border-radius: 0 6px 6px 0; cursor: pointer; font-size: 12px; font-weight: 850; }
.email-field > button:disabled, .code-field button:disabled { cursor: wait; opacity: .6; }
.verification-panel { margin-top: 13px; padding: 16px; background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--yellow); border-radius: 6px; }
.verification-panel > div:first-child { display: flex; align-items: center; gap: 10px; }
.verification-panel > div:first-child > svg { width: 20px; height: 20px; color: var(--green); }
.verification-panel strong, .verification-panel small { display: block; }
.verification-panel strong { font-size: 12px; }
.verification-panel small { margin-top: 2px; color: var(--muted); font-size: 10px; }
.code-field { margin-top: 13px; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.code-field input { padding: 0 14px; border-radius: 6px 0 0 6px; font-size: 18px; font-weight: 800; }
.verification-panel > p { margin: 8px 0 0; font-size: 10px; }
.verified-message { margin-top: 10px; display: flex; align-items: center; gap: 7px; color: var(--success); font-size: 11px; font-weight: 850; }
.verified-message svg { width: 17px; height: 17px; }
.password-field { position: relative; display: flex; align-items: center; overflow: hidden; }
.password-field input { min-width: 0; min-height: 47px; flex: 1; padding: 0 46px 0 14px; color: var(--ink); background: transparent; border: 0; outline: 0; }
.password-toggle { position: absolute; right: 4px; width: 39px; height: 39px; display: grid; place-items: center; color: var(--muted); background: transparent; border: 0; border-radius: 5px; cursor: pointer; }
.password-toggle svg { width: 19px; height: 19px; }

.plan-row { margin-top: 29px; padding: 18px; display: flex; align-items: center; justify-content: space-between; gap: 24px; background: #fff8e7; border: 1px solid #ead29c; border-radius: 7px; }
.plan-row > div { display: flex; align-items: center; gap: 11px; }
.plan-row > div:last-child { display: grid; justify-items: end; gap: 3px; }
.plan-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--deep); background: var(--yellow); border-radius: 6px; }
.plan-icon svg { width: 20px; height: 20px; }
.plan-row strong, .plan-row small { display: block; }
.plan-row small { margin-top: 3px; color: #74613b; font-size: 10px; }
.terms-field { margin-top: 22px; display: flex; align-items: flex-start; gap: 10px; color: #4f5e5a; font-size: 12px; line-height: 1.55; cursor: pointer; }
.terms-field input { width: 17px; height: 17px; margin: 1px 0 0; accent-color: var(--green); }
.terms-field a, .form-actions span a { color: var(--green); font-weight: 800; }
.terms-error { margin-left: 27px; }
.form-actions { margin-top: 33px; padding-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-top: 1px solid var(--line); }
.form-actions-end { justify-content: space-between; }
.form-actions > span { color: var(--muted); font-size: 11px; }
.primary-action, .secondary-action { min-height: 48px; padding: 0 17px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 6px; cursor: pointer; font-size: 13px; font-weight: 850; }
.primary-action { color: #fff; background: var(--green); border: 1px solid var(--green); }
.secondary-action { color: var(--green); background: #fff; border: 1px solid var(--line); }
.primary-action:disabled { cursor: wait; opacity: .65; }
.primary-action svg, .secondary-action svg { width: 17px; height: 17px; }
.onboarding-footer { min-height: 66px; padding: 0 max(24px, calc((100% - 1240px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 20px; color: #82908c; border-top: 1px solid var(--line); font-size: 10px; font-weight: 700; text-transform: uppercase; }

.legal-page { min-height: 100dvh; background: #fff; }
.legal-back { color: var(--green); }
.legal-document { width: min(780px, calc(100% - 40px)); margin: 70px auto 100px; }
.legal-document h1 { margin: 0; font-size: 42px; }
.legal-updated { margin: 10px 0 48px; color: var(--muted); }
.legal-document h2 { margin: 34px 0 10px; font-size: 19px; }
.legal-document h2 + p { margin: 0; color: #52615d; line-height: 1.75; }
.legal-contact { margin-top: 50px; padding-top: 25px; border-top: 1px solid var(--line); }
.legal-contact a { color: var(--green); font-weight: 800; }

@media (max-width: 900px) {
    .onboarding-intro { align-items: flex-start; flex-direction: column; gap: 28px; }
    .trial-strip { min-width: 0; }
    .onboarding-workspace { grid-template-columns: 280px minmax(0, 1fr); }
    .setup-map { padding: 34px 25px; }
    .form-workspace { padding: 40px 34px; }
}

@media (max-width: 720px) {
    .onboarding-header { min-height: 64px; }
    .header-support > span { display: none; }
    .onboarding-main { width: 100%; padding: 0; }
    .onboarding-intro { min-height: 0; padding: 38px 20px 32px; }
    .onboarding-intro h1 { font-size: 34px; }
    .trial-strip { width: 100%; }
    .onboarding-workspace { display: block; min-height: 0; border-right: 0; border-left: 0; border-radius: 0; box-shadow: none; }
    .setup-map { display: none; }
    .form-workspace { padding: 28px 20px 35px; }
    .mobile-progress { margin-bottom: 31px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; color: #84918e; font-size: 11px; font-weight: 800; }
    .mobile-progress span.is-active { color: var(--green); }
    .mobile-progress i { height: 1px; background: var(--line); }
    .form-heading h2 { font-size: 25px; }
    .onboarding-footer { padding: 22px 20px; align-items: flex-start; flex-direction: column; }
}

@media (max-width: 500px) {
    .product-lockup { font-size: 18px; }
    .product-lockup > span { width: 34px; height: 34px; }
    .header-support a { min-height: 37px; padding: 0 10px; }
    .onboarding-intro h1 { font-size: 30px; }
    .field-grid { grid-template-columns: 1fr; }
    .field-wide { grid-column: auto; }
    .form-actions, .form-actions-end { align-items: stretch; flex-direction: column-reverse; }
    .form-actions > button { width: 100%; }
    .form-actions > span { text-align: center; }
    .plan-row { align-items: flex-start; flex-direction: column; }
    .plan-row > div:last-child { justify-items: start; }
    .legal-back { width: 39px; padding: 0; justify-content: center; font-size: 0; }
    .legal-document { margin-top: 45px; }
    .legal-document h1 { font-size: 34px; }
}
