:root { color-scheme: dark; }
.onboarding-page { min-height: 100vh; background: #0b0b09; color: #f7f4eb; }
.checkout-header { border-bottom: 1px solid rgba(255,255,255,.1); background: rgba(7,7,7,.92); }
.checkout-nav { display: flex; min-height: 82px; align-items: center; justify-content: space-between; gap: 24px; }
.checkout-nav .brand { width: 235px; }
.checkout-help { color: #ffc400; font-size: .83rem; font-weight: 850; text-decoration: none; }
.onboarding-main { padding: 64px 0 80px; }
.onboarding-shell { display: grid; grid-template-columns: 360px minmax(0, 760px); gap: 72px; align-items: start; justify-content: center; }
.onboarding-side { position: sticky; top: 28px; }
.prototype-badge { display: inline-flex; padding: 8px 11px; border: 1px solid rgba(255,196,0,.4); border-radius: 999px; color: #ffc400; font-size: .67rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.onboarding-side h1 { margin: 24px 0 16px; font-size: clamp(2.8rem, 5vw, 4.7rem); line-height: .94; letter-spacing: -.06em; }
.onboarding-side > p { margin: 0; color: #a8a49a; line-height: 1.65; }
.stepper { margin: 38px 0; padding: 0; list-style: none; }
.stepper li { position: relative; display: grid; grid-template-columns: 38px 1fr; gap: 14px; min-height: 67px; color: #6f6c65; }
.stepper li:not(:last-child)::after { content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; width: 1px; background: #2a2a26; }
.stepper li > span { z-index: 1; display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #363630; border-radius: 50%; background: #0b0b09; font-size: .72rem; font-weight: 900; }
.stepper strong, .stepper small { display: block; }
.stepper strong { padding-top: 2px; font-size: .85rem; }
.stepper small { margin-top: 3px; font-size: .68rem; }
.stepper li.active, .stepper li.complete { color: #f7f4eb; }
.stepper li.active > span { border-color: #ffc400; background: #ffc400; color: #111; box-shadow: 0 0 0 6px rgba(255,196,0,.08); }
.stepper li.complete > span { border-color: #6c5c1d; color: #ffc400; }
.no-charge-note { display: grid; gap: 6px; padding: 18px; border: 1px solid rgba(255,196,0,.25); border-radius: 17px; background: rgba(255,196,0,.06); }
.no-charge-note strong { color: #ffc400; font-size: .83rem; }
.no-charge-note span { color: #99958b; font-size: .72rem; line-height: 1.55; }
.onboarding-card { min-height: 680px; padding: 46px; border: 1px solid #d8d1c3; border-radius: 30px; background: #f5f1e8; color: #11110f; box-shadow: 0 35px 100px rgba(0,0,0,.35); }
.form-step[hidden] { display: none; }
.step-heading > span { color: #8b7b45; font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.step-heading h2 { margin: 11px 0 10px; font-size: clamp(2.15rem, 4vw, 3.6rem); line-height: .98; letter-spacing: -.055em; }
.step-heading p { margin: 0 0 34px; color: #716c62; line-height: 1.6; }
fieldset { margin: 0; padding: 0; border: 0; }
.field-label, .field-group label { display: block; margin-bottom: 9px; color: #49463f; font-size: .75rem; font-weight: 850; }
.field-group label b { color: #a76e00; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 28px; }
.choice-grid legend { grid-column: 1 / -1; }
.choice-card { position: relative; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card span { display: block; height: 100%; min-height: 110px; padding: 18px; border: 1px solid #d5cec0; border-radius: 16px; background: #fffdf8; cursor: pointer; transition: .18s ease; }
.choice-card strong, .choice-card small { display: block; }
.choice-card strong { margin-bottom: 8px; font-size: .88rem; }
.choice-card small { color: #777167; font-size: .68rem; line-height: 1.45; }
.choice-card input:checked + span { border-color: #b68b00; background: #fff3bd; box-shadow: 0 0 0 3px rgba(255,196,0,.18); }
.choice-card input:focus-visible + span { outline: 3px solid rgba(255,196,0,.5); }
.power-method { margin-bottom: 25px; }
.segmented-control { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 13px; background: #e6e0d4; }
.segmented-control label { position: relative; }
.segmented-control input { position: absolute; opacity: 0; }
.segmented-control span { display: block; padding: 12px 10px; border-radius: 10px; color: #6f695f; cursor: pointer; text-align: center; font-size: .73rem; font-weight: 800; }
.segmented-control input:checked + span { background: #11110f; color: #fff; box-shadow: 0 4px 12px rgba(0,0,0,.14); }
.field-group { min-width: 0; }
.field-group input, .field-group select { width: 100%; height: 52px; padding: 0 14px; border: 1px solid #d5cec0; border-radius: 11px; background: #fffdf8; color: #11110f; font: inherit; font-size: .85rem; outline: 0; }
.field-group input:focus { border-color: #a77f00; box-shadow: 0 0 0 3px rgba(255,196,0,.18); }
.field-group input[type="file"] { height: auto; min-height: 52px; padding: 13px; font-size: .72rem; }
.field-unit { display: flex; align-items: center; border: 1px solid #d5cec0; border-radius: 11px; background: #fffdf8; }
.field-unit:focus-within { border-color: #a77f00; box-shadow: 0 0 0 3px rgba(255,196,0,.18); }
.field-unit input { border: 0; background: transparent; box-shadow: none !important; }
.field-unit span { padding: 0 14px; color: #766f62; font-size: .75rem; font-weight: 850; }
.module-fields, .form-grid { display: grid; gap: 18px; }
.module-fields { grid-template-columns: 1fr 1fr; }
.calculated-power { grid-column: 1 / -1; margin: 0; padding: 13px 15px; border-radius: 11px; background: #ece7dc; color: #675f52; font-size: .75rem; }
.form-grid.two-columns { grid-template-columns: 1fr 1fr; }
.form-grid .full { grid-column: 1 / -1; }
.optional-block { margin-top: 30px; padding-top: 28px; border-top: 1px solid #d8d1c3; }
.optional-block > div:first-child { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.optional-block > div:first-child span { font-size: .83rem; font-weight: 900; }
.optional-block > div:first-child small { color: #7d766a; font-size: .68rem; }
.form-error { min-height: 20px; margin-top: 20px; color: #a22e24; font-size: .75rem; font-weight: 750; }
.step-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: 22px; }
.button-secondary { display: inline-flex; min-height: 49px; align-items: center; justify-content: center; padding: 0 22px; border: 1px solid #c8c0b2; border-radius: 999px; background: transparent; color: #25231e; cursor: pointer; font: inherit; font-size: .75rem; font-weight: 900; text-decoration: none; }
.proposal-card { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; margin-bottom: 20px; border: 1px solid #d6cfc2; border-radius: 20px; background: #d6cfc2; }
.proposal-card > div { padding: 20px; background: #fffdf8; }
.proposal-card span, .proposal-card strong { display: block; }
.proposal-card span { margin-bottom: 7px; color: #756e62; font-size: .68rem; }
.proposal-card strong { font-size: 1rem; }
.proposal-card .proposal-price { grid-column: 1 / -1; background: #ffc400; }
.proposal-card .proposal-price strong { font-size: 2.5rem; letter-spacing: -.05em; }
.validation-promise { margin: 20px 0; padding: 20px; border-radius: 16px; background: #181814; color: #fff; }
.validation-promise strong { color: #ffc400; }
.validation-promise p { margin: 8px 0 0; color: #b5b0a6; font-size: .76rem; line-height: 1.55; }
.contract-box { margin: 20px 0; border: 1px solid #d5cec0; border-radius: 14px; background: #fffdf8; }
.contract-box summary { padding: 17px 18px; cursor: pointer; font-size: .78rem; font-weight: 900; }
.contract-box > div { max-height: 245px; overflow: auto; padding: 0 18px 16px; border-top: 1px solid #e5dfd4; }
.contract-box p { color: #625d54; font-size: .72rem; line-height: 1.55; }
.contract-box .prototype-contract { color: #985d00; font-weight: 800; }
.acceptance-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin: 13px 0; color: #555148; font-size: .72rem; line-height: 1.5; }
.acceptance-check input { width: 18px; height: 18px; accent-color: #b88c00; }
.acceptance-check b { color: #a76e00; }
.test-warning { display: grid; gap: 4px; margin-bottom: 25px; padding: 15px 17px; border: 1px solid #dd8a54; border-radius: 14px; background: #fff0e4; }
.test-warning strong { color: #8b3c0b; font-size: .78rem; }
.test-warning span { color: #8a5e42; font-size: .69rem; line-height: 1.45; }
.mock-payment { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; align-items: center; }
.mock-card { display: flex; min-height: 200px; flex-direction: column; justify-content: space-between; padding: 25px; border-radius: 22px; background: linear-gradient(145deg,#1d1d18,#080807); color: #fff; box-shadow: 0 22px 45px rgba(0,0,0,.25); }
.mock-card span, .mock-card small { color: #ffc400; font-size: .7rem; font-weight: 900; letter-spacing: .12em; }
.mock-card strong { font-size: 1.1rem; letter-spacing: .08em; }
.payment-summary > span { color: #756e62; font-size: .7rem; }
.payment-summary > strong { display: block; margin: 6px 0 15px; font-size: 2rem; letter-spacing: -.04em; }
.payment-summary ul { margin: 0; padding: 0; list-style: none; }
.payment-summary li { position: relative; margin: 9px 0; padding-left: 19px; color: #686257; font-size: .72rem; line-height: 1.45; }
.payment-summary li::before { content: "✓"; position: absolute; left: 0; color: #9b7600; font-weight: 900; }
.payment-confirm { margin-top: 26px; padding: 15px; border-radius: 13px; background: #ece7dc; }
.confirmation-step { text-align: center; }
.success-mark { display: grid; width: 76px; height: 76px; margin: 0 auto 25px; place-items: center; border-radius: 50%; background: #ffc400; color: #111; font-size: 2rem; font-weight: 900; box-shadow: 0 0 0 10px rgba(255,196,0,.16); }
.confirmation-step .step-heading p { max-width: 570px; margin-right: auto; margin-left: auto; }
.confirmation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; overflow: hidden; border: 1px solid #d7d0c3; border-radius: 18px; background: #d7d0c3; text-align: left; }
.confirmation-grid > div { padding: 18px; background: #fffdf8; }
.confirmation-grid span, .confirmation-grid strong { display: block; }
.confirmation-grid span { margin-bottom: 6px; color: #7b7468; font-size: .66rem; }
.confirmation-grid strong { font-size: .82rem; }
.status-review { color: #8a6700; }
.no-charge-confirmation { display: grid; gap: 5px; margin: 22px 0; padding: 18px; border-radius: 14px; background: #11110f; color: #fff; }
.no-charge-confirmation strong { color: #ffc400; }
.no-charge-confirmation span { color: #aaa59b; font-size: .72rem; }
.confirmation-actions { justify-content: center; }
.checkout-footer { padding: 25px 0; border-top: 1px solid rgba(255,255,255,.1); color: #74716a; font-size: .68rem; }
.checkout-footer .shell { display: flex; justify-content: space-between; gap: 20px; }

@media (max-width: 980px) {
  .onboarding-shell { grid-template-columns: 1fr; gap: 28px; }
  .onboarding-side { position: static; }
  .onboarding-side h1, .onboarding-side > p, .no-charge-note { display: none; }
  .stepper { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; }
  .stepper li { display: flex; min-height: 40px; justify-content: center; }
  .stepper li:not(:last-child)::after { top: 19px; left: calc(50% + 19px); right: calc(-50% + 19px); bottom: auto; width: auto; }
  .stepper li > div { display: none; }
}

@media (max-width: 680px) {
  .checkout-nav { min-height: 70px; }
  .checkout-nav .brand { width: 185px; }
  .checkout-help { font-size: .7rem; }
  .onboarding-main { padding: 30px 0 50px; }
  .onboarding-card { min-height: 0; padding: 28px 19px; border-radius: 23px; }
  .choice-grid, .form-grid.two-columns, .module-fields, .mock-payment, .confirmation-grid { grid-template-columns: 1fr; }
  .choice-card span { min-height: 0; }
  .form-grid .full, .proposal-card .proposal-price, .calculated-power { grid-column: auto; }
  .proposal-card { grid-template-columns: 1fr; }
  .optional-block > div:first-child { flex-direction: column; gap: 5px; }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .button, .step-actions .button-secondary { width: 100%; }
  .checkout-footer .shell { flex-direction: column; }
}
