:root {
  --ink: #16233d;
  --muted: #687386;
  --line: #dce4ef;
  --blue: #2e67d6;
  --blue-dark: #1f50b5;
  --blue-soft: #eef4ff;
  --green: #168a74;
  --green-soft: #eaf8f4;
  --danger: #b42318;
  --danger-soft: #fff2f0;
  --paper: #ffffff;
  --canvas: #f4f7fc;
}

* { box-sizing: border-box; }
html { background: var(--canvas); }
body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: linear-gradient(135deg, #eef4ff 0%, #f8faff 48%, #eefaf7 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; letter-spacing: 0; }
button { cursor: pointer; }
a { color: inherit; }
.intake-shell { width: min(720px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 48px; }
.topbar { min-height: 76px; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; color: #fff; background: var(--blue); border-radius: 8px; box-shadow: 0 8px 20px rgb(46 103 214 / 20%); font-weight: 800; }
.topbar > div:nth-child(2) { display: flex; flex-direction: column; gap: 2px; }
.topbar strong { font-size: 16px; }
.topbar span { color: var(--muted); font-size: 11px; }
.topbar em { margin-left: auto; max-width: 220px; padding: 7px 10px; overflow: hidden; color: var(--blue-dark); background: var(--paper); border: 1px solid var(--line); border-radius: 8px; font-size: 11px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.progress-wrap { margin: 6px 0 24px; }
.progress-wrap > div:first-child { display: flex; justify-content: space-between; margin-bottom: 8px; font-size: 11px; }
.progress-wrap span { color: var(--muted); }
.progress-wrap strong { color: var(--blue); }
.progress-track { height: 5px; overflow: hidden; background: #dfe7f2; border-radius: 4px; }
.progress-track i { display: block; width: 0; height: 100%; background: var(--blue); transition: width 180ms ease; }
.landing { padding: 34px 0 14px; }
.kicker { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; color: var(--blue-dark); background: rgb(255 255 255 / 78%); border: 1px solid #d8e4f5; border-radius: 8px; box-shadow: 0 6px 18px rgb(40 72 120 / 7%); font-size: 12px; font-weight: 700; }
.kicker::before { width: 7px; height: 7px; content: ""; background: #46b99e; border-radius: 50%; box-shadow: 0 0 0 4px rgb(70 185 158 / 12%); }
.landing h1, .step-header h1, .result h1 { margin: 22px 0 14px; font-size: 48px; line-height: 1.18; letter-spacing: 0; }
.landing h1 span, .landing h1 strong { display: block; font-weight: 700; }
.landing h1 strong { color: var(--blue); background: linear-gradient(90deg, #2b63d3 0%, #2c78d0 58%, #2d9a87 100%); background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.landing-intro, .step-header p, .result-intro { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.8; }
.quick-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.quick-facts article { min-height: 92px; display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 18px; background: rgb(255 255 255 / 84%); border: 1px solid rgb(255 255 255 / 92%); border-radius: 8px; box-shadow: 0 10px 28px rgb(42 72 118 / 7%); }
.quick-facts strong { color: var(--blue-dark); font-size: 26px; line-height: 1; }
.quick-facts span { color: var(--muted); font-size: 11px; }
.identity-panel, .question-card, .number-panel, .result-panel { margin: 20px 0; padding: 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 12px 32px rgb(36 61 101 / 6%); }
.identity-panel h2, .question-card h2 { margin: 0 0 6px; font-size: 17px; }
.identity-panel > p, .question-card > p { margin: 0 0 16px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.panel-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.panel-heading > span { flex: 0 0 auto; padding: 6px 8px; color: var(--blue-dark); background: var(--blue-soft); border-radius: 6px; font-size: 10px; font-weight: 800; }
.panel-heading h2 { margin: 0 0 4px; font-size: 18px; }
.panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field-grid .wide { grid-column: 1 / -1; }
label.field { display: flex; flex-direction: column; gap: 7px; }
label.field span { color: #344054; font-size: 12px; font-weight: 700; }
label.field input { width: 100%; height: 48px; padding: 0 13px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 6px; outline: none; }
label.field input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px #1769d21a; }
.authorization { margin: 0; padding: 24px; overflow: hidden; color: #fff; background: linear-gradient(135deg, #2d65d5 0%, #2f78d4 60%, #3199a9 100%); border: 1px solid rgb(255 255 255 / 28%); border-radius: 8px; box-shadow: 0 18px 38px rgb(34 88 176 / 20%); }
.authorization-heading { display: flex; align-items: center; gap: 14px; }
.authorization-icon { width: 58px; height: 58px; display: grid; flex: 0 0 auto; place-items: center; background: rgb(255 255 255 / 12%); border: 1px solid rgb(255 255 255 / 26%); border-radius: 8px; font-size: 20px; font-weight: 800; }
.authorization-heading em { display: block; margin-bottom: 5px; color: #dfeaff; font-size: 10px; font-style: normal; font-weight: 800; }
.authorization h2 { margin: 0; font-size: 20px; }
.authorization > p { margin: 11px 0 0 72px; color: #e7f0ff; font-size: 12px; line-height: 1.7; }
.authorization a, .authorization-complete { width: 100%; display: flex; min-height: 52px; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding: 13px 16px; color: var(--blue-dark); background: #fff; border: 1px solid rgb(255 255 255 / 70%); border-radius: 6px; box-shadow: 0 10px 24px rgb(16 58 130 / 14%); font-size: 13px; font-weight: 800; text-align: center; text-decoration: none; }
.authorization a:hover, .authorization-complete:hover { background: #f6f9ff; }
.authorization-return .authorization-complete { margin-top: 18px; }
.check-row { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; color: #344054; font-size: 12px; line-height: 1.6; }
.check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 1px; accent-color: var(--blue); }
.consent-panel { margin: 18px 0 0; padding: 20px; background: rgb(255 255 255 / 84%); border: 1px solid var(--line); border-radius: 8px; }
.consent-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 14px; border-bottom: 1px solid #e7ecf3; }
.consent-heading h2 { margin: 0 0 5px; font-size: 16px; }
.consent-heading p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.consent-heading a { flex: 0 0 auto; color: var(--blue-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.consent-heading a:hover { text-decoration: underline; }
.consent-panel .check-row { margin-top: 0; }
.consent-panel .check-row + .check-row { margin-top: 11px; }
.consent-panel .check-row a { color: var(--blue-dark); font-weight: 700; }
.privacy-note { margin: 12px 0 0 27px; padding-top: 12px; color: var(--muted); border-top: 1px solid #e7ecf3; font-size: 11px; line-height: 1.7; }
.step-header { margin: 12px 0 22px; }
.step-header span { color: var(--blue); font-size: 12px; font-weight: 800; }
.step-header h1 { margin-top: 8px; font-size: 32px; }
.question-card h2 { font-size: 15px; }
.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.choice { min-height: 46px; display: flex; align-items: center; gap: 9px; padding: 11px 12px; color: #475467; background: #f8fafc; border: 1px solid #e1e7ef; border-radius: 6px; text-align: left; }
.choice:hover { border-color: #9fc2f1; }
.choice.active { color: var(--blue-dark); background: var(--blue-soft); border-color: #8bb7ed; font-weight: 700; }
.choice-mark { width: 16px; color: var(--blue); text-align: center; }
.number-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.number-field { display: flex; flex-direction: column; gap: 8px; padding: 13px; background: #f8fafc; border: 1px solid #e1e7ef; border-radius: 6px; }
.number-field span { min-height: 34px; color: #475467; font-size: 12px; line-height: 1.45; }
.number-field div { display: flex; align-items: center; gap: 7px; }
.number-field input { min-width: 0; width: 100%; height: 42px; padding: 0 10px; background: #fff; border: 1px solid var(--line); border-radius: 6px; outline: none; font-size: 17px; font-weight: 700; }
.number-field em { color: var(--muted); font-size: 11px; font-style: normal; }
.vehicle-section-label { grid-column: 1 / -1; padding: 5px 1px 2px; }
.vehicle-section-label:not(:first-child) { margin-top: 8px; padding-top: 18px; border-top: 1px solid var(--line); }
.vehicle-section-label strong { font-size: 14px; }
.year-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 15px; padding-top: 15px; border-top: 1px solid var(--line); }
.actions { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 10px; margin-top: 20px; }
.actions.single { grid-template-columns: 1fr; }
.button { min-height: 50px; padding: 13px 16px; border-radius: 6px; font-weight: 800; }
.button.primary { color: #fff; background: var(--blue); border: 1px solid var(--blue); box-shadow: 0 10px 22px rgb(46 103 214 / 16%); }
.button.primary:hover { background: #285ec9; }
.button.secondary { color: var(--ink); background: #fff; border: 1px solid var(--line); }
.button:disabled { cursor: wait; opacity: 0.65; }
.form-error { margin: 12px 0; padding: 11px 13px; color: var(--danger); background: var(--danger-soft); border: 1px solid #f6c8c4; border-radius: 6px; font-size: 12px; text-align: center; }
.hidden-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.result { padding: 28px 0 12px; text-align: center; }
.result-badge { display: inline-flex; padding: 7px 10px; color: var(--green); background: var(--green-soft); border: 1px solid #c7ebe1; border-radius: 8px; font-size: 12px; font-weight: 800; }
.result h1 { font-size: 34px; }
.score-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 20px 0; }
.score-card { min-height: 128px; display: flex; flex-direction: column; justify-content: center; padding: 15px 8px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.score-card strong { color: var(--blue-dark); font-size: 28px; }
.score-card span { color: var(--muted); font-size: 10px; line-height: 1.5; }
.result-panel { text-align: left; }
.result-panel h2 { margin: 0 0 12px; font-size: 16px; }
.result-panel p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.receipt { padding: 14px; color: var(--blue-dark); background: var(--blue-soft); border-radius: 6px; text-align: center; }
.receipt span { display: block; color: var(--muted); font-size: 10px; }
.receipt strong { display: block; margin-top: 4px; font-size: 16px; }
footer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
footer p { margin: 5px 0; color: #7b8798; font-size: 10px; line-height: 1.6; text-align: center; }
footer a { color: var(--blue-dark); text-decoration: none; }
footer a:hover { text-decoration: underline; }

.privacy-body { background: var(--canvas); }
.privacy-shell { width: min(840px, calc(100% - 32px)); margin: 0 auto; padding-bottom: 56px; }
.privacy-topbar > a { margin-left: auto; color: var(--blue-dark); font-size: 12px; font-weight: 700; text-decoration: none; }
.privacy-document { padding: 46px 54px; background: var(--paper); border: 1px solid var(--line); box-shadow: 0 14px 38px rgb(36 61 101 / 7%); }
.privacy-title { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.privacy-title span { color: var(--blue); font-size: 12px; font-weight: 800; }
.privacy-title h1 { margin: 10px 0 12px; font-size: 32px; line-height: 1.3; }
.privacy-title p { margin: 0; color: var(--muted); font-size: 12px; }
.privacy-document > section { padding: 25px 0 0; }
.privacy-document h2 { margin: 0 0 12px; font-size: 18px; }
.privacy-document p, .privacy-document li, .privacy-document dd, .privacy-document dt { font-size: 13px; line-height: 1.85; }
.privacy-document p { margin: 8px 0; color: #465268; }
.privacy-document ul { margin: 8px 0 0; padding-left: 22px; color: #465268; }
.privacy-document li + li { margin-top: 7px; }
.privacy-highlight { margin-top: 24px; padding: 18px 20px !important; background: var(--blue-soft); border-left: 4px solid var(--blue); }
.privacy-highlight strong { color: var(--blue-dark); font-size: 14px; }
.privacy-highlight p { margin-bottom: 0; }
.privacy-contact { margin: 14px 0 0; border-top: 1px solid var(--line); }
.privacy-contact div { display: grid; grid-template-columns: 92px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.privacy-contact dt { color: var(--muted); }
.privacy-contact dd { margin: 0; color: var(--ink); }
.privacy-contact a { color: var(--blue-dark); text-decoration: none; }
.privacy-document-footer { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; padding-top: 18px; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.privacy-document-footer a { color: var(--blue-dark); font-weight: 700; text-decoration: none; }

@media (max-width: 560px) {
  .intake-shell { width: min(100% - 24px, 720px); }
  .topbar { min-height: 64px; }
  .topbar em { max-width: 112px; }
  .landing { padding-top: 24px; }
  .landing h1 { margin-top: 20px; font-size: 34px; line-height: 1.2; }
  .landing-intro { font-size: 14px; line-height: 1.7; }
  .quick-facts { gap: 7px; margin: 22px 0; }
  .quick-facts article { min-height: 80px; gap: 6px; padding: 13px 10px; }
  .quick-facts strong { font-size: 22px; }
  .quick-facts span { font-size: 10px; }
  .authorization { padding: 18px; }
  .authorization-icon { width: 48px; height: 48px; font-size: 18px; }
  .authorization h2 { font-size: 18px; }
  .authorization > p { margin-left: 0; }
  .step-header h1, .result h1 { font-size: 28px; }
  .field-grid, .choice-grid, .number-panel, .year-grid { grid-template-columns: 1fr; }
  .identity-panel, .question-card, .number-panel, .result-panel { padding: 17px; }
  .number-field span { min-height: 0; }
  .score-grid { gap: 6px; }
  .score-card strong { font-size: 22px; }
  .consent-heading { display: block; }
  .consent-heading a { display: inline-block; margin-top: 8px; }
  .privacy-shell { width: min(100% - 20px, 840px); }
  .privacy-topbar > div:nth-child(2) span { display: none; }
  .privacy-document { padding: 28px 20px; }
  .privacy-title h1 { font-size: 25px; }
  .privacy-document h2 { font-size: 17px; }
  .privacy-contact div { grid-template-columns: 1fr; gap: 0; }
  .privacy-document-footer { display: block; }
  .privacy-document-footer a { display: block; margin-top: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
