:root {
  --ink: #212121;
  --dark: #020e24;
  --cream: #f7f8fa;
  --muted: #5c6b80;
  --line: #d5e2f0;
  --accent: #004393;
  --accent-hover: #00357a;
  --accent-soft: #ecf5ff;
  --danger: #b42318;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--dark); color: var(--cream); font-family: var(--sans); font-size: 16px; line-height: 1.65; word-break: keep-all; }
button, input { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 16px; top: -80px; background: #fff; color: var(--ink); padding: 8px 12px; z-index: 20; }
.skip-link:focus { top: 12px; }
.wordmark { font-weight: 750; letter-spacing: -.04em; font-size: 28px; }
.eyebrow { color: #9ec4f0; font-size: 12px; font-weight: 700; letter-spacing: .14em; }
.button { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 56px; border-radius: 10px; font-weight: 700; }
.button-light { background: #fff; color: var(--ink); }
.button-light:hover { background: #eef1f4; }
.button-dark { background: var(--accent); color: #fff; }
.button-dark:hover { background: var(--accent-hover); }
.button:disabled { opacity: .6; cursor: wait; }
.text-nav, .text-button { color: #d6e4f5; text-decoration: underline; text-underline-offset: 4px; }
.text-button { color: var(--accent); font-weight: 600; padding: 8px 0; }
.hint { color: var(--muted); font-size: 13px; margin-top: 8px; }
.error { color: var(--danger); font-size: 14px; min-height: 0; margin-top: 12px; }
.error:empty { display: none; }

.site-header { position: absolute; z-index: 2; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: 28px 48px; }
.site-header nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center; overflow: hidden; padding: 120px 24px 48px; text-align: center; }
.hero-art { position: absolute; inset: 0; background: radial-gradient(1100px 520px at 72% 78%, #004393 0%, transparent 58%), linear-gradient(180deg, #020e24 0%, #0c2f66 46%, #020e24 100%); }
.hero-road { position: absolute; left: -10%; right: -10%; bottom: 12%; height: 90px; background: linear-gradient(#16325c, #020e24); transform: perspective(400px) rotateX(48deg); opacity: .75; }
.hero-car { position: absolute; width: min(520px, 78vw); left: 50%; bottom: -6%; transform: translateX(-50%); opacity: .42; }
.hero-copy, .hero-bottom { position: relative; z-index: 1; }
.hero-description { text-shadow: 0 2px 16px #0c1116; }
.hero-tagline { font-size: clamp(18px, 2vw, 22px); margin-bottom: 8px; }
.hero-tagline em { font-style: normal; color: #d6e6ff; font-size: 1.15em; }
.hero h1 { font-size: clamp(72px, 12vw, 148px); line-height: 1.05; letter-spacing: -.06em; font-weight: 750; }
.hero h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 600; margin-top: 18px; }
.hero-description { max-width: 640px; margin: 16px auto 0; color: #d5dbe2; }
.hero-bottom { margin-top: 36px; }
.scroll-link { display: inline-flex; flex-direction: column; gap: 4px; color: #d5dbe2; }
.scroll-link span { font-size: 13px; }

.promise { min-height: 100svh; display: flex; align-items: center; padding: 80px 8vw; background: linear-gradient(180deg, #132543, #020e24 42%); }
.promise-content { max-width: 760px; }
.promise h2 { font-size: clamp(36px, 5vw, 52px); margin: 10px 0 12px; }
.promise-intro { color: #c6cdd5; font-size: 17px; }
.promise-list { margin: 28px 0; }
.promise-list article { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid #ffffff22; }
.promise-list span { color: #8eb6ef; font-variant-numeric: tabular-nums; }
.promise-list h3 { font-size: 22px; margin-bottom: 6px; }
.promise-list p { color: #c6cdd5; }
.quote-activity { display: inline-block; margin: 8px 0 16px; padding: 14px 18px; border-radius: 16px; background: #d6e6ff; color: #132543; font-weight: 600; }
.quote-activity strong { color: #004393; }
.promise-action .button { max-width: 420px; }
.site-footer { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; padding: 28px 48px 40px; color: #aeb8c3; border-top: 1px solid #ffffff22; }
.site-footer .wordmark { font-size: 22px; color: #e7ecef; }

dialog { border: 0; padding: 0; color: var(--ink); }
dialog::backdrop { background: #020e24cc; }
.wizard[open] { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; background: #fff; }
.wizard-layout { height: 100%; display: grid; grid-template-columns: 34% 66%; }
.wizard-art { position: relative; color: #f7f8fa; background: linear-gradient(180deg, #004393, #020e24 72%); padding: 36px; display: flex; flex-direction: column; justify-content: space-between; }
.wizard-art h2 { font-size: 34px; line-height: 1.35; margin: 12px 0; }
.wizard-workspace { display: flex; flex-direction: column; min-width: 0; background: #f5f9ff; }
.wizard-header, .wizard-footer { display: flex; align-items: center; gap: 12px; padding: 12px 28px; background: #fff; border-color: var(--line); }
.wizard-header { height: 72px; border-bottom: 1px solid var(--line); }
.wizard-footer { border-top: 1px solid var(--line); display: block; }
.wizard-footer .button { max-width: 640px; margin: 8px auto 0; }
.wizard-brand { font-weight: 750; font-size: 22px; }
#step-label { margin-left: auto; color: var(--muted); font-size: 13px; letter-spacing: .08em; }
.icon-button { width: 40px; height: 40px; border-radius: 50%; font-size: 22px; }
.icon-button:hover { background: #20262e10; }
.progress-track { height: 3px; background: #e5e8ec; }
.progress-track > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .4s; }
.wizard-scroll { flex: 1; overflow: auto; padding: 36px 8% 24px; }
.step { max-width: 660px; margin: 0 auto; }
.step h2 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -.03em; line-height: 1.35; }
.step > p, .config-intro p { color: var(--muted); margin: 12px 0 24px; }
fieldset { border: 0; padding: 0; margin: 22px 0; }
legend { font-weight: 700; margin-bottom: 10px; }
legend small, .field-label small { color: var(--muted); font-weight: 500; margin-left: 6px; }
.selection-block h3, legend { font-size: 18px; }
.vehicle-picker { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; min-height: 96px; padding: 16px 18px; border: 1px solid #cbd0d6; border-radius: 12px; background: #fff; }
.vehicle-picker:hover { border-color: var(--accent); }
.vehicle-picker small { display: block; color: var(--muted); }
.vehicle-picker strong { font-size: 18px; }
.vehicle-mark { width: 72px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; flex: 0 0 auto; overflow: hidden; }
.vehicle-mark.has-photo { width: 92px; background: #eef5ff; }
.vehicle-mark img { width: 100%; height: 100%; object-fit: contain; }
.picker-arrow { margin-left: auto; color: var(--accent); font-weight: 700; }
.choices { display: grid; gap: 8px; }
.choices.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choices.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choices:not(.two):not(.three) { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.choices label { min-width: 0; }
.choices input { position: absolute; opacity: 0; }
.choices label > span { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 10px; border: 1px solid #cbd2db; border-radius: 9px; background: #fff; color: #434d58; text-align: center; }
.choices input:checked + span { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-hover); font-weight: 700; box-shadow: inset 0 0 0 1px var(--accent); }
.choices input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.product-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.product-options label > span { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-height: 108px; padding: 16px; border: 1px solid #d6dbe0; border-radius: 10px; background: #fff; }
.product-options small { color: var(--muted); font-weight: 400; }
.product-options input { position: absolute; opacity: 0; }
.product-options input:checked + span { border-color: var(--accent); background: #f7fbf9; box-shadow: inset 0 0 0 1px var(--accent); }
.field-label { display: block; font-weight: 700; margin: 16px 0 8px; }
input[type="text"], input[type="tel"], input[type="search"], input[type="password"] { width: 100%; min-height: 52px; border: 1px solid #bac3ce; border-radius: 8px; padding: 12px 14px; background: #fff; color: var(--ink); }
.tel { display: grid; grid-template-columns: 72px 1fr 1fr; gap: 8px; }
.summary-card, .quote-card, .example-car { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.summary-card { padding: 14px 16px; margin: 8px 0 18px; }
.summary-card summary { display: flex; justify-content: space-between; cursor: pointer; font-weight: 700; }
.summary-card dl, .example-terms { margin: 12px 0 0; }
.summary-card dl > div, .example-terms > div, .delivery-line { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 14px; }
.summary-card dt, .example-terms dt, .delivery-line span { color: var(--muted); }
.summary-card dd, .example-terms dd { margin: 0; }
.summary-card.static { padding: 18px; }
.quote-card { display: block; width: 100%; text-align: left; padding: 0; overflow: hidden; color: var(--ink); }
.quote-card-top, .quote-card-more, .quote-lines span { display: flex; justify-content: space-between; gap: 8px; padding: 12px 16px; }
.quote-card-top { border-bottom: 1px solid var(--line); }
.quote-card-top em { font-style: normal; font-size: 12px; color: var(--muted); }
.quote-card-car { display: block; padding: 14px 16px 0; font-weight: 700; }
.quote-card-car small { display: block; font-weight: 400; color: var(--muted); }
.quote-lines span { border-bottom: 1px solid #edf0f1; }
.quote-lines i { font-style: normal; color: var(--muted); font-size: 13px; }
.quote-card-more { color: var(--accent); font-weight: 700; background: #f8faf9; }
.agreements .agree { display: flex; align-items: center; gap: 8px; margin: 8px 0; font-size: 14px; }
.agreements a { margin-left: auto; color: var(--accent); font-size: 13px; }
.agree.is-invalid label { color: var(--danger); }
.extra-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.extra-row .vehicle-picker { flex: 1; min-height: 72px; }
.extra-row select { min-height: 44px; border-radius: 8px; border: 1px solid #bac3ce; }
.remove-vehicle { color: var(--muted); font-size: 13px; text-decoration: underline; }
.add-vehicle { margin-top: 12px; color: var(--accent); font-weight: 700; }
#powertrain-box { margin-top: 14px; }
#powertrain-box > p { font-weight: 700; margin-bottom: 8px; }
#powertrain-status { color: var(--accent); font-weight: 600; }

.complete-step { text-align: center; }
.complete-mark { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: 28px; }
.complete-lead { color: var(--muted); margin: 12px 0 18px; }
.complete-step .summary-card { text-align: left; }
.complete-step #complete-car { font-size: 20px; font-weight: 700; }

.loading-screen { position: absolute; inset: 0; display: flex; flex-direction: column; color: #f7f8fa; background: radial-gradient(800px 420px at 78% 72%, #004393, transparent 62%), #020e24; }
.loading-screen header, .sheet header { display: flex; align-items: center; gap: 12px; padding: 20px 28px; }
.loading-screen header .icon-button { margin-left: auto; color: #fff; }
.loading-copy { margin: auto 10% auto 12%; max-width: 680px; }
.loading-copy h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.3; margin: 12px 0; }
.loading-car { margin-top: 28px; font-size: 22px; font-weight: 700; }
.loading-track { height: 3px; margin-top: 16px; background: #ffffff33; }
.loading-track > span { display: block; height: 100%; width: 0; background: #8eb6ef; transition: width .6s; }

.sheet, .info-dialog { background: #f5f9ff; color: var(--ink); border-radius: 16px; }
.sheet[open] { display: flex; flex-direction: column; width: min(880px, calc(100% - 32px)); max-height: 88dvh; }
.sheet header h2, .info-dialog h2 { font-size: 26px; }
.sheet-body { overflow: auto; padding: 8px 28px 28px; }
.brand-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; margin-bottom: 18px; }
.brand-tile, .model-grid button { background: #fff; border: 1px solid var(--line); border-radius: 8px; min-height: 64px; padding: 10px 6px; color: var(--ink); }
.brand-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; }
.brand-tile b { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 14px; }
.brand-tile img { width: 72px; height: 42px; object-fit: contain; }
.picked-brand { display: flex; align-items: center; gap: 12px; }
.picked-brand img { width: 96px; height: 52px; object-fit: contain; }
.brand-tile span, .model-grid button { font-size: 13px; }
.brand-tile:hover, .model-grid button:hover { border-color: var(--accent); background: var(--accent-soft); }
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.picked-brand { font-size: 22px; font-weight: 750; }
.info-dialog { width: min(640px, calc(100% - 28px)); padding: 28px; }
.info-dialog .icon-button { position: absolute; right: 12px; top: 12px; }
.info-dialog h2 { margin: 8px 48px 12px 0; }
.info-dialog p { color: #43505a; margin-bottom: 12px; }
.compare-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.compare-cols section { background: #fff; border-radius: 10px; padding: 14px; }
.example-car, .example-terms { padding: 14px; margin-bottom: 12px; background: #fff; }
.tag { display: inline-block; border: 1px solid var(--line); border-radius: 4px; padding: 3px 6px; font-size: 12px; color: var(--muted); }
.table-scroll { overflow: auto; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; }
table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
.noscript { position: fixed; inset: auto 16px 16px 16px; background: #fff; color: var(--ink); padding: 12px; border-radius: 8px; }
.doc-page { background: #f5f9ff; color: var(--ink); }
.doc { max-width: 860px; margin: 0 auto; padding: 48px 20px 80px; }
.doc h1 { font-size: 32px; margin: 8px 0 18px; }
.doc li { margin: 10px 0; }
.doc a { color: var(--accent); }
.admin-login { display: grid; gap: 8px; max-width: 360px; }
.admin-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.lead-table td { white-space: normal; vertical-align: top; }

@media (max-width: 900px) {
  .site-header { padding: 18px 20px; }
  .site-header nav a, .site-header .text-nav { display: none; }
  .wizard-layout { display: block; }
  .wizard-art { display: none; }
  .wizard-workspace, .wizard { height: 100%; }
  .wizard-scroll { padding: 24px 18px; }
  .brand-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-options, .compare-cols, .choices.three { grid-template-columns: 1fr; }
  .loading-copy { margin: 80px 24px; }
  .site-footer { padding: 24px; }
  .promise { padding: 72px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-track > span, .loading-track > span { transition: none; }
}
