:root {
  --yellow: #f4b400;
  --yellow-dark: #b98200;
  --ink: #171717;
  --muted: #68707b;
  --line: #dde1e6;
  --surface: #f5f6f7;
  --white: #fff;
  --danger: #b62e2e;
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif; letter-spacing: 0; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--ink); color: white; }
.skip-link:focus { top: 16px; }
.site-header { position: sticky; top: 0; z-index: 40; height: 76px; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(23,23,23,.08); backdrop-filter: blur(14px); }
.header-inner { max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 30px; }
.brand { width: 122px; height: 58px; overflow: hidden; display: flex; align-items: center; }
.brand img { width: 116px; height: 58px; object-fit: contain; object-position: left center; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 700; }
.site-nav a { padding: 26px 0; }
.site-nav a:hover { color: var(--yellow-dark); }
.button { min-height: 48px; padding: 0 22px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 0; border-radius: 6px; font-weight: 800; white-space: nowrap; }
.button svg { width: 18px; }
.button-primary { background: var(--yellow); color: var(--ink); }
.button-primary:hover { background: #ffc21a; transform: translateY(-1px); }
.button-dark { background: var(--ink); color: white; }
.header-cta { min-height: 42px; padding-inline: 18px; }
.menu-toggle { display: none; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; align-items: center; justify-content: center; }

.hero { position: relative; min-height: 650px; display: flex; align-items: center; overflow: hidden; background: #141414; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(8,10,12,.88) 0%, rgba(8,10,12,.62) 34%, rgba(8,10,12,.12) 65%, rgba(8,10,12,.08) 100%); }
.hero-content { position: relative; width: 100%; max-width: var(--max); margin: 0 auto; padding: 72px 24px 100px; color: white; }
.eyebrow { margin: 0 0 17px; color: var(--yellow); font-size: 13px; font-weight: 900; letter-spacing: 0; }
.eyebrow.dark { color: var(--yellow-dark); }
.hero h1 { max-width: 680px; margin: 0; font-size: clamp(42px, 5vw, 72px); line-height: 1.13; letter-spacing: 0; }
.hero-content > p:not(.eyebrow) { margin: 26px 0 0; color: rgba(255,255,255,.82); font-size: 19px; line-height: 1.75; }
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 36px; }
.text-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 800; }
.text-link svg { width: 18px; }

.feature-band { padding: 92px 24px 104px; }
.section-heading { max-width: 720px; margin: 0 auto 58px; text-align: center; }
.section-heading h2, .admin-copy h2, .cta-section h2 { margin: 0; font-size: 38px; line-height: 1.25; letter-spacing: 0; }
.section-heading > p:last-child, .admin-copy > p, .cta-section > div > p:last-child { color: var(--muted); line-height: 1.75; }
.feature-grid { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 36px; }
.feature-item { min-width: 0; }
.feature-title { display: flex; align-items: center; gap: 12px; }
.feature-title h3 { margin: 0; font-size: 20px; }
.feature-icon { width: 38px; height: 38px; display: grid; place-items: center; color: var(--yellow-dark); }
.feature-icon svg { width: 30px; height: 30px; }
.feature-item > p { min-height: 50px; margin: 12px 0 22px; color: var(--muted); font-size: 15px; line-height: 1.65; }
.phone-shot, .capture-panel, .offline-panel { height: 422px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: white; }
.ocr-shot { position: relative; }
.ocr-shot > img { width: 100%; height: 245px; object-fit: cover; object-position: 55% center; filter: brightness(.72); }
.focus-box { position: absolute; left: 28%; top: 112px; width: 46%; height: 50px; border: 3px solid var(--yellow); }
.status-chip { position: absolute; left: 50%; top: 188px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 4px; padding: 7px 10px; color: var(--yellow); background: rgba(12,12,12,.75); font-size: 12px; font-weight: 800; }
.status-chip svg { width: 13px; }
.ocr-shot > strong { position: absolute; top: 126px; left: 0; right: 0; color: white; text-align: center; font-size: 24px; }
.ocr-shot dl { margin: 0; padding: 12px 20px; }
.ocr-shot dl div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid #eee; font-size: 13px; }
.ocr-shot dt { color: var(--muted); }
.ocr-shot dd { margin: 0; font-weight: 700; }
.capture-panel { padding: 14px; }
.capture-head { height: 38px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; font-size: 13px; }
.capture-head svg { width: 18px; }
.capture-head span { justify-self: end; color: var(--yellow-dark); font-weight: 800; }
.capture-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.capture-grid span { height: 95px; border-radius: 4px; background: url("assets/carpic-workshop-hero.png") center/cover; position: relative; }
.capture-grid span::after { content: "✓"; position: absolute; right: 6px; top: 6px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: var(--yellow); font-size: 11px; font-weight: 900; }
.capture-grid span:nth-child(2n) { background-position: 65% center; }
.capture-grid span:nth-child(3n) { background-position: 45% bottom; }
.capture-status { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; font-size: 12px; }
.capture-status b { display: inline-flex; align-items: center; gap: 5px; padding: 8px 10px; border-radius: 4px; background: #eceff1; }
.capture-status svg { width: 15px; }
.offline-panel { padding: 18px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.offline-head { width: 100%; display: flex; align-items: center; gap: 7px; }
.offline-head svg { width: 16px; }
.cloud-mark { width: 84px; height: 84px; margin: 48px 0 19px; border-radius: 50%; display: grid; place-items: center; background: #eef0f2; color: #5b626b; }
.cloud-mark svg { width: 36px; height: 36px; }
.offline-panel small { color: var(--muted); }
.photo-count { margin-top: 7px; font-size: 34px; }
.photo-count em { font-size: 16px; font-style: normal; }
.auto-upload { width: 100%; margin-top: 30px; padding: 13px; display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--yellow); border-radius: 4px; font-size: 14px; font-weight: 900; }
.auto-upload svg { width: 17px; }
.offline-panel > p { margin: 10px 0 0; color: var(--muted); font-size: 12px; }

.admin-section { padding: 100px max(24px, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: 310px minmax(0,1fr); gap: 62px; align-items: center; background: var(--surface); }
.admin-copy h2 { font-size: 42px; }
.check-list { margin: 30px 0 0; padding: 0; display: grid; gap: 13px; list-style: none; font-weight: 700; font-size: 14px; }
.check-list li { display: flex; align-items: center; gap: 9px; }
.check-list svg { width: 19px; color: var(--yellow-dark); }
.admin-window { min-width: 0; overflow: hidden; border: 1px solid #cfd4da; border-radius: 8px; background: white; box-shadow: 0 18px 55px rgba(27,32,38,.10); }
.window-bar { height: 36px; padding: 0 13px; display: flex; align-items: center; gap: 6px; background: #252930; color: white; }
.window-bar span { width: 8px; height: 8px; border-radius: 50%; background: #68707b; }
.window-bar b { margin-left: 8px; font-size: 11px; }
.category-tabs { min-width: max-content; height: 54px; padding: 9px 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.category-tabs button, .department-tabs button, .bulk-actions button { height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 4px; background: white; font-size: 11px; font-weight: 800; }
.category-tabs button { display: inline-flex; align-items: center; gap: 4px; }
.category-tabs svg { width: 13px; }
.category-tabs .active, .department-tabs .active { background: var(--yellow); border-color: var(--yellow); }
.admin-body { height: 490px; display: grid; grid-template-columns: 220px minmax(0,1fr); }
.vehicle-pane { border-right: 1px solid var(--line); overflow: hidden; }
.vehicle-pane > label { height: 38px; margin: 12px; padding: 0 10px; display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 4px; }
.vehicle-pane label svg { width: 14px; color: var(--muted); }
.vehicle-pane input { min-width: 0; width: 100%; border: 0; outline: 0; font-size: 11px; }
.date-button { width: calc(100% - 24px); height: 36px; margin: 0 12px 10px; border: 1px solid var(--line); border-radius: 4px; background: white; font-size: 11px; }
.date-button svg { width: 13px; vertical-align: middle; }
.count-tabs { margin: 0 12px 10px; display: flex; border-radius: 4px; overflow: hidden; background: #f0f1f3; font-size: 10px; }
.count-tabs > * { flex: 1; padding: 10px 3px; text-align: center; }
.count-tabs b { background: var(--yellow); }
.vehicle-pane ul { margin: 0; padding: 0; list-style: none; }
.vehicle-pane li:not(.date-separator) { padding: 12px 15px; display: grid; gap: 4px; border-bottom: 1px solid #eceef0; font-size: 12px; }
.vehicle-pane li.selected { background: #fff7df; border-left: 3px solid var(--yellow); }
.vehicle-pane small { color: var(--muted); font-size: 10px; }
.date-separator { padding: 7px 14px; background: #f1f2f4; color: var(--muted); font-size: 9px; font-weight: 800; }
.photo-pane { min-width: 0; padding: 16px; }
.photo-head { display: flex; justify-content: space-between; align-items: center; }
.photo-head > div { display: flex; align-items: baseline; gap: 8px; }
.photo-head strong { font-size: 18px; }
.photo-head span { color: var(--muted); font-size: 10px; }
.photo-head button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); background: white; }
.photo-head svg { width: 15px; }
.department-tabs { display: flex; gap: 5px; margin-top: 13px; overflow: hidden; }
.department-tabs button { flex: 0 0 54px; }
.bulk-actions { margin-top: 12px; padding: 9px 0; display: flex; justify-content: flex-end; gap: 6px; border-block: 1px solid #eceef0; }
.bulk-actions button { display: inline-flex; align-items: center; gap: 4px; }
.bulk-actions svg { width: 13px; }
.bulk-actions .danger { color: var(--danger); border-color: #e8b4b4; }
.photo-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin-top: 13px; }
.photo-card { min-width: 0; padding: 0; overflow: hidden; position: relative; border: 2px solid transparent; border-radius: 4px; background: #f2f3f4; text-align: left; }
.photo-card.selected { border-color: var(--yellow); }
.photo-card img { width: 100%; height: 100px; object-fit: cover; }
.photo-card small { display: block; padding: 6px 7px; font-size: 9px; font-weight: 800; }
.photo-card .check { position: absolute; top: 5px; left: 5px; width: 18px; height: 18px; display: grid; place-items: center; border-radius: 3px; background: var(--yellow); }
.photo-card .check svg { width: 12px; }

.operations-band { padding: 48px max(24px, calc((100vw - var(--max))/2)); display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-block: 1px solid var(--line); }
.operation { min-width: 0; padding: 4px 30px; display: flex; gap: 17px; align-items: flex-start; border-right: 1px solid var(--line); }
.operation:first-child { padding-left: 0; }
.operation:last-child { padding-right: 0; border-right: 0; }
.operation > svg { flex: 0 0 auto; width: 34px; height: 34px; }
.operation h3 { margin: 0 0 7px; font-size: 16px; }
.operation p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.cta-section { padding: 72px max(24px, calc((100vw - var(--max))/2)); display: flex; align-items: center; justify-content: space-between; gap: 40px; background: var(--yellow); }
.cta-section .eyebrow { color: rgba(23,23,23,.65); }
.cta-section > div > p:last-child { margin-bottom: 0; color: #4b3b0b; }
.site-footer { padding: 55px max(24px, calc((100vw - var(--max))/2)) 28px; background: #1e2227; color: white; }
.footer-main { display: grid; grid-template-columns: 190px 1fr auto; align-items: center; gap: 30px; }
.footer-brand { width: 174px; height: 52px; overflow: hidden; }
.footer-brand img { width: 185px; height: 52px; object-fit: contain; object-position: left center; }
.footer-main > p { color: #aeb4bb; font-size: 14px; }
.footer-main nav { display: grid; grid-template-columns: repeat(2,auto); gap: 12px 28px; color: #d8dbe0; font-size: 13px; }
.footer-main nav a:hover { color: var(--yellow); }
.footer-bottom { margin-top: 42px; padding-top: 22px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #3a3f46; color: #8f969f; font-size: 12px; }
.business-info { display: flex; flex-wrap: wrap; gap: 8px 20px; }

.policy-page { background: var(--surface); }
.policy-shell { max-width: 860px; margin: 0 auto; padding: 72px 24px 110px; }
.policy-shell h1 { font-size: 40px; }
.policy-card { padding: 40px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.policy-card h2 { margin-top: 34px; font-size: 21px; }
.policy-card h2:first-child { margin-top: 0; }
.policy-card p, .policy-card li { color: #505862; line-height: 1.8; }
.back-link { display: inline-flex; align-items: center; gap: 7px; margin-bottom: 30px; font-weight: 800; }
.back-link svg { width: 18px; }

@media (max-width: 1020px) {
  .site-nav { gap: 18px; }
  .site-nav a:nth-last-child(1) { display: none; }
  .feature-grid { gap: 18px; }
  .admin-section { grid-template-columns: 1fr; }
  .admin-copy { max-width: 620px; }
  .operations-band { grid-template-columns: repeat(2,1fr); gap: 30px 0; }
  .operation:nth-child(2) { border-right: 0; }
}

@media (max-width: 760px) {
  .site-header { height: 66px; }
  .header-inner { padding-inline: 16px; }
  .brand { width: 98px; height: 48px; }
  .brand img { width: 96px; height: 48px; }
  .menu-toggle { margin-left: auto; display: inline-flex; }
  .header-cta { display: none; }
  .site-nav { position: absolute; top: 66px; left: 0; right: 0; margin: 0; padding: 10px 16px 18px; display: none; flex-direction: column; align-items: stretch; gap: 0; background: white; border-bottom: 1px solid var(--line); box-shadow: 0 14px 28px rgba(0,0,0,.08); }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav a:nth-last-child(1) { display: block; padding: 14px 4px; }
  .hero { min-height: 630px; align-items: flex-end; }
  .hero-image { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(8,10,12,.94) 0%, rgba(8,10,12,.73) 52%, rgba(8,10,12,.18) 100%); }
  .hero-content { padding: 70px 20px 64px; }
  .hero h1 { font-size: 42px; }
  .hero-content > p:not(.eyebrow) { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .feature-band { padding: 72px 18px; }
  .section-heading { text-align: left; }
  .section-heading h2, .admin-copy h2, .cta-section h2 { font-size: 31px; }
  .feature-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-item > p { min-height: 0; }
  .phone-shot, .capture-panel, .offline-panel { height: 440px; }
  .admin-section { padding: 72px 16px; gap: 38px; overflow: hidden; }
  .admin-window { overflow-x: auto; }
  .admin-window > * { min-width: 760px; }
  .operations-band { padding-block: 42px; grid-template-columns: 1fr; gap: 0; }
  .operation, .operation:first-child, .operation:last-child { padding: 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .operation:last-child { border-bottom: 0; }
  .cta-section { padding: 58px 20px; align-items: flex-start; flex-direction: column; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-main nav { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; }
  .policy-shell { padding-top: 44px; }
  .policy-card { padding: 24px 20px; }
}

@media (prefers-reduced-motion: no-preference) {
  .button, .feature-item, .admin-window { transition: transform .2s ease, box-shadow .2s ease, background .2s ease; }
  .feature-item:hover { transform: translateY(-4px); }
  .admin-window:hover { box-shadow: 0 22px 65px rgba(27,32,38,.15); }
}
