/* DSL 홈 — 스타일. 색은 colors.css 의 --dsl-* 토큰만 쓴다(hex·rgb 직접 기입 금지).
   값의 정답은 design_handoff_dsl_home/design/DSL 홈.dc.html 의 인라인 스타일이다. */

html, body { margin: 0; padding: 0; background: var(--dsl-paper); }
body {
  font-family: "Pretendard Variable", Pretendard, -apple-system, system-ui, sans-serif;
  color: var(--dsl-ink);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
* { box-sizing: border-box; }
a { color: var(--dsl-action); text-decoration: none; }
a:hover { color: var(--dsl-action-hover); text-decoration: underline; text-underline-offset: 3px; }
::selection { background: var(--dsl-action); color: var(--dsl-paper); }
h1, h2, h3, p, ul { margin: 0; }
ul { list-style: none; padding: 0; }
.page { width: 100%; max-width: 100%; overflow-x: hidden; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.tnum { font-variant-numeric: tabular-nums; }

/* ── 버튼 ───────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 52px; padding: 0 26px;
  font-size: 15.5px; font-weight: 600; text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--dsl-action); color: var(--dsl-paper); }
.btn-primary:hover { background: var(--dsl-action-hover); color: var(--dsl-paper); }
.btn-primary:active { background: var(--dsl-action-pressed); }
.btn-secondary { border: 1px solid var(--dsl-ink); color: var(--dsl-ink); }
.btn-secondary:hover { background: var(--dsl-ink); color: var(--dsl-paper); }
.btn-hero-secondary { border-color: var(--dsl-line); }
.btn-hero-secondary:hover { background: transparent; border-color: var(--dsl-ink); color: var(--dsl-ink); }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-md { height: 46px; padding: 0 22px; font-size: 14.5px; gap: 8px; }
.btn .ext { font-size: 12px; }
:focus-visible { outline: 2px solid var(--dsl-action); outline-offset: 2px; }

/* ── 헤더 ───────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(var(--dsl-paper-rgb) / 0.94);
  backdrop-filter: saturate(1.2) blur(8px);
  -webkit-backdrop-filter: saturate(1.2) blur(8px);
  border-bottom: 1px solid var(--dsl-line);
}
.site-header .wrap { padding-top: 14px; padding-bottom: 14px; display: flex; align-items: center; gap: 40px; flex-wrap: wrap; }
.logo { display: flex; align-items: center; }
.logo img { display: block; height: 26px; width: auto; }
.nav { display: flex; align-items: center; gap: 32px; flex: 1 1 320px; min-width: 0; font-size: 14.5px; font-weight: 500; }
.nav a { color: var(--dsl-ink-muted); text-decoration: none; padding: 6px 0; }
.nav a:hover { color: var(--dsl-ink); }
.nav a[aria-current="page"] { color: var(--dsl-ink); border-bottom: 2px solid var(--dsl-action); }
.header-actions { display: flex; align-items: center; gap: 10px; }

/* ── 공통 제목·리드 ─────────────────────────────── */
.h2 { font-size: clamp(25px, 3vw, 34px); font-weight: 600; line-height: 1.36; letter-spacing: -0.01em; text-wrap: pretty; }
.h2-lg { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.34; }
.lead { font-size: 16px; line-height: 1.75; color: var(--dsl-ink-muted); text-wrap: pretty; }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: 0.1em; color: var(--dsl-ink-muted); }
.band { background: var(--dsl-paper-alt); border-top: 1px solid var(--dsl-line); border-bottom: 1px solid var(--dsl-line); }
.sec-92 { padding-top: 92px; padding-bottom: 92px; }
.sec-84 { padding-top: 84px; padding-bottom: 84px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px; }
.grid-2 > * { min-width: 0; }

/* ── 01 히어로 ──────────────────────────────────── */
.hero { padding-top: 88px; padding-bottom: 96px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px; align-items: center; }
.hero-grid > * { min-width: 0; }
.hero .eyebrow { font-size: 13px; letter-spacing: 0.08em; color: var(--dsl-action); margin-bottom: 20px; }
.hero h1 {
  font-family: "Gowun Batang", serif; font-weight: 700;
  font-size: clamp(34px, 5.4vw, 58px); line-height: 1.24; letter-spacing: -0.01em;
  margin-bottom: 26px; text-wrap: pretty;
}
.hero p { font-size: 17px; line-height: 1.78; color: var(--dsl-ink-muted); margin-bottom: 36px; max-width: 44ch; text-wrap: pretty; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.frame { position: relative; aspect-ratio: 1 / 1; width: 100%; border-radius: 20px; overflow: hidden; }
.hero-frame { border: 1px solid var(--dsl-line); background: var(--dsl-paper-alt); }
.hero-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 90% center; display: block; }

/* ── 02 가맹 구조 ───────────────────────────────── */
.structure h2 { margin-bottom: 14px; }
.structure .lead { margin-bottom: 48px; max-width: 54ch; }
.cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1px; background: var(--dsl-line); border: 1px solid var(--dsl-line); }
.cell { background: var(--dsl-paper); padding: 34px 30px 38px; min-width: 0; }
.cell .eyebrow { margin-bottom: 18px; }
.cell h3 { font-size: 19px; font-weight: 600; margin-bottom: 16px; line-height: 1.45; }
.cell ul { display: flex; flex-direction: column; gap: 10px; }
.cell li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.65; color: var(--dsl-ink-muted); }
.cell li::before { content: "—"; color: var(--dsl-action); font-weight: 700; }
.cell-dark { background: var(--dsl-ink); color: var(--dsl-paper); }
.cell-dark .eyebrow { color: var(--dsl-paper); opacity: 0.7; }
.cell-dark h3 { color: var(--dsl-paper); }
.cell-dark li { color: var(--dsl-paper); }
.cell-dark li::before { color: var(--dsl-paper); }

/* ── 03 수요 ────────────────────────────────────── */
.demand h2 { margin-bottom: 14px; }
.demand .lead { margin-bottom: 48px; max-width: 52ch; }
.cards-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 20px; }
.card { background: var(--dsl-paper); border: 1px solid var(--dsl-line); padding: 32px 28px 36px; min-width: 0; }
.card .num { font-family: "Gowun Batang", serif; font-size: 30px; color: var(--dsl-action); line-height: 1; margin-bottom: 22px; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 12px; line-height: 1.45; }
.card p { font-size: 14.5px; line-height: 1.72; color: var(--dsl-ink-muted); }

/* ── 04 트럭원 ──────────────────────────────────── */
.support { border-top: 1px solid var(--dsl-line); }
.support-row { display: flex; flex-wrap: wrap; gap: 48px 56px; align-items: center; }
.support-text { flex: 1 1 380px; min-width: 0; }
.support-media { flex: 3 1 560px; min-width: 0; }
.support h2 { margin-bottom: 20px; }
.support-text > .lead { margin-bottom: 30px; max-width: 48ch; line-height: 1.78; }
.items { display: flex; flex-direction: column; gap: 1px; background: var(--dsl-line); border: 1px solid var(--dsl-line); }
.item { background: var(--dsl-paper); padding: 22px 24px; }
.item h3 { font-size: 16.5px; font-weight: 600; margin-bottom: 6px; }
.item p { font-size: 14.5px; line-height: 1.7; color: var(--dsl-ink-muted); }
.video-frame { max-width: 720px; margin: 0 auto; border: 1px solid var(--dsl-paper); background: var(--dsl-paper); }
/* 영상 우·하단이 깜빡이며 검게 보이던 문제: 원본이 1080px(16의 배수가 아님)이라 일부 GPU 디코더가
   가장자리 한 줄을 깨뜨린다. 영상을 1072px(16의 배수)로 다시 인코딩해 해결했다 — 해상도를 되돌리지 말 것.
   요소 배경은 만일을 위해 흰색으로 맞춰 둔다. */
/* 영상 틀 가장자리가 검게 보이던 문제(스크린샷에서는 사라짐 = 화면 직출력 때만 생기는 하드웨어 영상 합성 문제).
   둥근 틀 안의 <video>는 GPU 오버레이로 그려져 소수점 위치에서 가장자리가 어긋난다. main.js 가 영상을
   <canvas>에 그려(일반 페이지 합성) 이 경로를 없앤다. JS가 안 돌면 <video>가 그대로 보인다. */
.video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; background: var(--dsl-paper); }
.video-frame canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: none; background: var(--dsl-paper); }
.video-frame.canvas-on canvas { display: block; }
.video-frame.canvas-on video { opacity: 0; pointer-events: none; }

/* ── 05 토지 권리 ───────────────────────────────── */
.land .grid-2 { align-items: center; }
.land p { font-size: 16.5px; line-height: 1.8; max-width: 46ch; text-wrap: pretty; }
.land p + p { margin-top: 16px; color: var(--dsl-ink-muted); }
.land p:first-child { color: var(--dsl-ink); }

/* ── 06 개설 절차 ───────────────────────────────── */
.process h2 { margin-bottom: 48px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px 24px; }
.step { min-width: 0; border-top: 2px solid var(--dsl-ink); padding-top: 22px; }
.step:last-child { border-top-color: var(--dsl-action); }
.step .n { font-size: 26px; font-weight: 700; color: var(--dsl-action); line-height: 1; margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.step p { font-size: 14.5px; line-height: 1.7; color: var(--dsl-ink-muted); text-wrap: pretty; }

/* ── 07 운영 지역 ───────────────────────────────── */
.scale { background: var(--dsl-ink); color: var(--dsl-paper); }
.scale-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.scale h2 { color: var(--dsl-paper); }
.asof { font-size: 13px; font-weight: 500; color: var(--dsl-paper); opacity: 0.75; font-variant-numeric: tabular-nums; }
.scale .grid-2 { align-items: start; }
.map-frame { aspect-ratio: 3 / 4; background: var(--dsl-paper); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 32px 24px; padding-bottom: 40px; }
.stat .v { font-size: clamp(34px, 4vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -0.02em; margin-bottom: 10px; color: var(--dsl-paper); font-variant-numeric: tabular-nums; }
.stat .k { font-size: 14px; font-weight: 500; color: var(--dsl-paper); opacity: 0.75; }
.regions { margin-bottom: 28px; border-top: 1px solid rgb(var(--dsl-paper-rgb) / 0.22); }
.region-row { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid rgb(var(--dsl-paper-rgb) / 0.22); font-size: 15px; line-height: 1.6; }
.region-row b { font-weight: 600; color: var(--dsl-paper); }
.region-row span { color: var(--dsl-paper); opacity: 0.85; }
.scale .note { font-size: 15px; line-height: 1.75; color: var(--dsl-paper); opacity: 0.75; max-width: 44ch; text-wrap: pretty; }

/* ── 08 가맹 문의 ───────────────────────────────── */
.inquiry { background: var(--dsl-paper-alt); border-bottom: 1px solid var(--dsl-line); }
.inquiry .grid-2 { align-items: center; }
.inquiry h2 { margin-bottom: 18px; }
.inquiry .lead { margin-bottom: 30px; max-width: 46ch; line-height: 1.78; }
.inquiry-card { background: var(--dsl-paper); border: 1px solid var(--dsl-line); padding: 34px 32px; }
.inquiry-card .eyebrow { color: var(--dsl-action); margin-bottom: 22px; }
.rows { border-top: 1px solid var(--dsl-line); }
.row { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--dsl-line); font-size: 14.5px; line-height: 1.6; }
.row b { font-weight: 600; }
.row span { color: var(--dsl-ink-muted); }
.inquiry-card .foot { font-size: 14.5px; line-height: 1.6; margin-top: 20px; }

/* ── 09 차주 안내 ───────────────────────────────── */
.driver { padding-top: 40px; padding-bottom: 40px; }
.driver-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.driver-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.driver-text .t { font-size: 17px; font-weight: 600; line-height: 1.5; }
.driver-text .d { font-size: 15px; line-height: 1.6; color: var(--dsl-ink-muted); }

/* ── 소식(기본 숨김) ────────────────────────────── */
.news { border-top: 1px solid var(--dsl-line); }
.news[hidden] { display: none; }
.news .wrap { padding-top: 88px; padding-bottom: 96px; }
.news-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.news-head a { font-size: 14.5px; font-weight: 600; }
.news-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.news-card { display: block; background: var(--dsl-paper); border: 1px solid var(--dsl-line); padding: 30px 28px 34px; min-width: 0; color: var(--dsl-ink); }
.news-card:hover { background: var(--dsl-paper-alt); color: var(--dsl-ink); text-decoration: none; }
.news-card .meta { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; color: var(--dsl-ink-muted); margin-bottom: 16px; }
.news-card h3 { font-size: 17px; font-weight: 600; margin-bottom: 10px; line-height: 1.5; }
.news-card p { font-size: 14.5px; line-height: 1.7; color: var(--dsl-ink-muted); }

/* ── 푸터 ───────────────────────────────────────── */
.site-footer { background: var(--dsl-ink); color: var(--dsl-paper); }
.site-footer .wrap { padding-top: 64px; padding-bottom: 36px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 40px 48px; padding-bottom: 40px; border-bottom: 1px solid rgb(var(--dsl-paper-rgb) / 0.18); }
.foot-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; font-size: 14.5px; line-height: 1.5; flex: 1 1 140px; }
.foot-brand { flex: 2 1 260px; min-width: 0; }
.foot-brand img { display: block; height: 24px; width: auto; filter: brightness(0) invert(1); margin-bottom: 16px; }
.foot-brand p { font-size: 14.5px; line-height: 1.7; color: rgb(var(--dsl-paper-rgb) / 0.72); }
.foot-contact { flex: 1.4 1 200px; }
.foot-col .eyebrow { font-size: 12.5px; letter-spacing: 0.08em; color: rgb(var(--dsl-paper-rgb) / 0.55); margin-bottom: 4px; }
.foot-col a, .foot-bottom a { color: var(--dsl-paper); text-decoration: none; }
.foot-col a:hover { color: rgb(var(--dsl-paper-rgb) / 0.7); text-decoration: none; }
.foot-col p { margin: 4px 0 0; color: rgb(var(--dsl-paper-rgb) / 0.72); }
.foot-bottom { padding-top: 24px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: rgb(var(--dsl-paper-rgb) / 0.55); }
.foot-bottom .line { display: flex; flex-wrap: wrap; gap: 6px 20px; font-variant-numeric: tabular-nums; }
.foot-bottom .line.split { gap: 12px 24px; justify-content: space-between; align-items: center; }
.foot-bottom .links { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.foot-bottom .privacy { color: rgb(var(--dsl-paper-rgb) / 0.8); font-weight: 600; }
.foot-bottom .privacy:hover { color: var(--dsl-paper); text-decoration: none; }

/* ── 운영 지역 지도 (map.js) ────────────────────── */
.dsl-map { position: absolute; inset: 0; container-type: size; user-select: none; -webkit-user-select: none; }
.dsl-map svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; }
.dsl-map svg.dragging { cursor: grabbing; }
.dsl-map .ctrl { position: absolute; left: clamp(14px, 5cqmin, 28px); bottom: clamp(14px, 5cqmin, 28px); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dsl-map .seg { display: flex; gap: 2px; padding: 3px; background: var(--dsl-paper); border: 1px solid var(--dsl-line); border-radius: 999px; }
.dsl-map .seg button { appearance: none; border: 0; background: transparent; font: inherit; font-size: 13px; font-weight: 600; color: var(--dsl-ink-muted); height: 36px; padding: 0 15px; border-radius: 999px; cursor: pointer; }
.dsl-map .seg button[aria-pressed="true"] { background: var(--dsl-ink); color: var(--dsl-paper); }
.dsl-map .seg button:hover:not([aria-pressed="true"]) { color: var(--dsl-ink); }
.dsl-map .hint { font-size: 12px; color: var(--dsl-ink-muted); transition: opacity .4s; }
.dsl-map .src { position: absolute; right: clamp(12px, 4cqmin, 22px); bottom: clamp(10px, 3cqmin, 16px); font-size: 10.5px; color: var(--dsl-ink-muted); pointer-events: none; }
.dsl-map .tip { position: absolute; left: 0; top: 0; pointer-events: none; background: var(--dsl-ink); color: var(--dsl-paper); font-size: 13px; line-height: 1.4; padding: 8px 12px; border-radius: 8px; white-space: nowrap; opacity: 0; transform: translate(-50%, calc(-100% - 12px)); transition: opacity .15s; }
.dsl-map .msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--dsl-ink-muted); pointer-events: none; }
.dsl-map .ring { transform-box: fill-box; transform-origin: center; animation: dsl-ring 2.2s ease-out infinite; }
@keyframes dsl-ring { from { transform: scale(1); opacity: .55; } to { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dsl-map .ring { animation: none; opacity: 0; } }
@container (max-width: 400px) { .dsl-map .hint, .dsl-map .src { display: none; } }
