:root {
  --ink: #151817;
  --muted: #66706c;
  --paper: #fff;
  --soft: #f3f6f4;
  --line: #dce3df;
  --green: #087a59;
  --green-dark: #07513d;
  --mint: #e3f3ed;
  --orange: #e95d3b;
  --shadow: 0 16px 42px rgba(18, 28, 23, .1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 20px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif; letter-spacing: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
h1, h2, h3, p { margin: 0; }

.site-header { position: absolute; inset: 0 0 auto; z-index: 10; display: flex; align-items: center; justify-content: space-between; min-height: 66px; padding: 10px max(18px, calc((100% - 1120px) / 2)); color: #fff; border-bottom: 1px solid rgba(255,255,255,.2); }
.brand { font-size: 16px; font-weight: 900; }
.header-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 13px; color: #111; background: #fff; border-radius: 5px; font-size: 13px; font-weight: 900; }

.hero { min-height: 620px; color: #fff; background: linear-gradient(90deg, rgba(8,12,10,.9) 0%, rgba(8,12,10,.72) 52%, rgba(8,12,10,.18) 100%), url("assets/hero-dashcam-install.png") center / cover no-repeat; }
.hero-inner { display: flex; flex-direction: column; justify-content: center; width: min(1120px, calc(100% - 40px)); min-height: 620px; margin: 0 auto; padding: 104px 0 46px; }
.eyebrow { margin-bottom: 10px; color: #bde9db; font-size: 12px; font-weight: 900; }
.eyebrow.dark { color: var(--green); }
h1 { max-width: 720px; font-size: clamp(42px, 4.8vw, 62px); line-height: 1.14; }
.hero-lead { margin-top: 16px; color: rgba(255,255,255,.76); font-size: 17px; }
.route-picker { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; width: min(680px, 100%); margin-top: 28px; }
.route-card { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 82px; padding: 16px 18px; color: var(--ink); background: rgba(255,255,255,.97); border: 2px solid transparent; border-radius: 7px; transition: border-color .18s ease, transform .18s ease; }
.route-card:hover { transform: translateY(-2px); border-color: #39a480; }
.route-card > span { display: grid; gap: 4px; }
.route-card strong { font-size: 18px; }
.route-card small { color: var(--muted); font-size: 12px; }
.route-card svg { color: var(--green); }

.booking-section, .finder-section, .recommendation-output { padding: 76px max(20px, calc((100% - 960px) / 2)); }
.booking-section { background: var(--soft); }
.section-heading, .recommend-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 26px; }
.section-heading h2, .recommend-head h2 { font-size: clamp(29px, 3vw, 38px); line-height: 1.22; }
.section-heading > p, .recommend-head > p { color: var(--muted); font-size: 13px; }

.booking-form { display: grid; gap: 0; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); }
.form-topline { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.form-topline strong { font-size: 20px; }
.form-topline span { color: var(--green); font-size: 14px; font-weight: 900; }
.estimate-hint { padding-bottom: 20px; color: var(--muted); border-bottom: 1px solid var(--line); font-size: 12px; }
.form-section { display: grid; gap: 13px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.form-section h3 { font-size: 15px; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
label { display: grid; gap: 7px; min-width: 0; }
label > span, legend { color: #343a37; font-size: 12px; font-weight: 800; }
label small, legend small { color: var(--muted); font-weight: 500; }
input, select, textarea { width: 100%; min-height: 47px; padding: 0 13px; color: var(--ink); background: #fff; border: 1px solid #ccd5d1; border-radius: 5px; outline: none; }
textarea { min-height: 76px; padding-top: 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(8,122,89,.1); }
.privacy-consent { display: flex; align-items: flex-start; gap: 9px; margin-top: 18px; cursor: pointer; }
.privacy-consent input { width: 17px; min-height: 17px; margin: 0; accent-color: var(--green); }
.privacy-consent span { color: var(--muted); font-size: 11px; line-height: 1.5; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; margin-top: 16px; padding: 0 18px; border: 1px solid transparent; border-radius: 5px; font-weight: 900; }
.button.primary { color: #fff; background: var(--green); }
.button.primary:hover { background: var(--green-dark); }
.button.full { width: 100%; }
.form-note { margin-top: 9px; color: var(--muted); font-size: 11px; text-align: center; }

.finder-section { background: #fff; }
.finder-heading { align-items: flex-end; }
.affiliate-disclosure { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 12px; padding: 13px 15px; color: #4e5753; background: #fff8ec; border: 1px solid #ead9b9; border-radius: 6px; font-size: 11px; line-height: 1.55; }
.affiliate-disclosure strong { flex: 0 0 auto; color: #7b4d12; font-size: 11px; }
.affiliate-disclosure p { max-width: 720px; }
.finder-panel { display: grid; grid-template-columns: .7fr 1.5fr 1.5fr 1fr; gap: 14px; align-items: end; padding: 22px; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; }
fieldset { margin: 0; }
.choice-group { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 6px; padding: 0; border: 0; }
.choice-group legend { grid-column: 1 / -1; margin-bottom: 1px; padding: 0; }
.choice-group label { display: block; cursor: pointer; }
.choice-group input { position: absolute; width: 1px; height: 1px; min-height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.choice-group label > span { display: grid; place-items: center; min-height: 47px; padding: 6px; color: #59625e; background: #fff; border: 1px solid #ccd5d1; border-radius: 5px; font-size: 11px; text-align: center; }
.choice-group label:has(input:checked) > span { color: var(--green-dark); background: var(--mint); border-color: var(--green); font-weight: 800; }
.finder-panel > .button { min-height: 47px; margin: 0; }

.recommendation-output { background: #fff; padding-top: 20px; }
.recommendation-output[hidden] { display: none; }
.recommend-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.product-card { display: flex; flex-direction: column; min-height: 330px; padding: 20px; border: 1px solid var(--line); border-radius: 7px; }
.product-card.featured { border: 2px solid var(--green); }
.product-topline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 20px; color: var(--muted); font-size: 11px; }
.product-badge { padding: 5px 7px; color: var(--green-dark); background: var(--mint); border-radius: 4px; font-weight: 900; }
.product-card h3 { font-size: 21px; }
.product-spec { margin-top: 7px; color: var(--muted); font-size: 13px; }
.match-line { display: grid; gap: 4px; margin-top: 18px; padding: 11px; background: var(--soft); border-radius: 5px; font-size: 12px; }
.match-line span { color: var(--muted); }
.product-card ul { display: grid; gap: 7px; margin: 16px 0 20px; padding-left: 17px; color: #525b57; font-size: 13px; }
.product-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: auto; }
.product-actions .button { min-height: 42px; margin: 0; padding: 0 8px; font-size: 12px; }
.coupang-button { color: #fff; background: var(--orange); }
.product-button { color: var(--green-dark); background: var(--mint); }
.purchase-note { margin-top: 14px; color: var(--muted); font-size: 11px; }
.purchase-return { position: fixed; left: 50%; bottom: 18px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 18px; width: min(720px, calc(100% - 28px)); padding: 16px 18px; color: #fff; background: #18231f; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; box-shadow: 0 18px 45px rgba(0,0,0,.24); transform: translateX(-50%); }
.purchase-return[hidden] { display: none; }
.purchase-return > span { display: grid; gap: 4px; }
.purchase-return small { color: rgba(255,255,255,.62); }
.purchase-return strong { font-size: 17px; }
.purchase-return .button { min-height: 44px; margin: 0; white-space: nowrap; }

.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 24px max(20px, calc((100% - 960px) / 2)); color: #fff; background: #171b19; font-size: 13px; }
.site-footer a { color: #bde9db; font-weight: 900; }
.confirm-dialog { width: min(500px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 8px; box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: rgba(9,13,11,.66); }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.dialog-head h2 { font-size: 19px; }
.icon-button { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 5px; background: var(--soft); }
.confirm-body { display: grid; gap: 7px; padding: 20px; }
.confirm-row { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.confirm-row span { color: var(--muted); }
.confirm-dialog > .button { width: calc(100% - 40px); margin: 0 20px 20px; }

@media (max-width: 900px) {
  .finder-panel { grid-template-columns: 1fr 1fr; }
  .recommend-grid { grid-template-columns: 1fr 1fr; }
  .product-card:last-child { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .site-header { min-height: 58px; padding: 9px 14px; }
  .brand { font-size: 14px; }
  .header-cta { min-height: 34px; font-size: 11px; }
  .hero { min-height: 570px; background: linear-gradient(180deg, rgba(8,12,10,.88) 0%, rgba(8,12,10,.68) 100%), url("assets/hero-dashcam-install.png") 60% center / cover no-repeat; }
  .hero-inner { justify-content: flex-end; width: calc(100% - 28px); min-height: 570px; padding: 82px 0 30px; }
  h1 { font-size: 36px; }
  .hero-lead { font-size: 14px; }
  .route-picker { grid-template-columns: 1fr; gap: 7px; margin-top: 21px; }
  .route-card { min-height: 68px; padding: 12px 14px; }
  .route-card strong { font-size: 16px; }
  .booking-section, .finder-section, .recommendation-output { padding: 52px 14px; }
  .section-heading, .recommend-head { display: grid; gap: 8px; margin-bottom: 20px; }
  .section-heading h2, .recommend-head h2 { font-size: 28px; }
  .booking-form { padding: 18px; }
  .form-section { padding: 19px 0; }
  .field-row, .finder-panel, .recommend-grid { grid-template-columns: 1fr; }
  .finder-panel { padding: 16px; }
  .affiliate-disclosure { display: grid; gap: 4px; }
  .choice-group { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .product-card:last-child { grid-column: auto; }
  .product-actions { grid-template-columns: 1fr; }
  .purchase-return { align-items: stretch; gap: 11px; bottom: 10px; flex-direction: column; padding: 14px; }
}
