/* ===========================================================================
 * 에쓰렌트카 — 홈 (`/`)
 * 청주 대형차 렌트 광고 랜딩.
 * 히어로(위젯 2탭) → 라인업 → 3단계 → 스토리 → 리뷰 → FAQ → 모달.
 * =========================================================================== */

/* ── 공통 유틸 (이 페이지 전용) ──────────────────────────── */
.dm-narrow-760 { max-width: 760px; }
.dm-lead {
    max-width: 560px;
    color: var(--dm-slate-600);
    font-size: 15px;
    line-height: 1.7;
}
.dm-sec-head { margin-bottom: 36px; }
.dm-sec-head--center { text-align: center; }
.dm-sec-head--center .dm-lead { margin: 0 auto; }
.dm-h2 {
    margin: 14px 0 12px;
    font-size: 30px;
    font-weight: var(--dm-fw-heavy);
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.dm-h2--story { margin-top: 14px; }

/* 옐로우톤 하이라이트 배지 (히어로 상단) */
.dm-badge-hl {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    padding: 9px 14px;
    background: rgba(42, 167, 160, .08);
    border: 1px solid rgba(42, 167, 160, .22);
    border-radius: var(--dm-radius-pill);
    color: var(--dm-teal);
    font-size: 13px;
    font-weight: var(--dm-fw-bold);
}

/* ── HERO ────────────────────────────────────────────────── */
.dm-hero {
    position: relative;
    overflow: hidden;
    /* 모바일: 상·하 대칭 (fixed header 아래 breathing room 은 이미 #dm-main padding-top 이 확보) */
    padding: 40px 0;
    background: linear-gradient(180deg, #f7fbfd 0%, #ffffff 70%);
}
.dm-hero-b1,
.dm-hero-b2 {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.dm-hero-b1 {
    top: -140px; right: -140px;
    width: 520px; height: 520px;
    background: radial-gradient(circle, rgba(42, 167, 160, .18), transparent 65%);
}
.dm-hero-b2 {
    bottom: -160px; left: -120px;
    width: 440px; height: 440px;
    background: radial-gradient(circle, rgba(31, 95, 156, .14), transparent 65%);
}
.dm-hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: center;
}
/* 모바일: 히어로 텍스트 숨기고 위젯만 노출 */
.dm-hero-lead { display: none; }
.dm-hero-title {
    margin: 20px 0 16px;
    font-size: 38px;
    font-weight: var(--dm-fw-heavy);
    line-height: 1.14;
    letter-spacing: -0.03em;
}
.dm-hero-sub {
    margin: 0 0 8px;
    color: var(--dm-slate-600);
    font-size: 16px;
    line-height: 1.7;
}

/* ── 예약 위젯 ───────────────────────────────────────────── */
.dm-wg-wrap { position: relative; }
.dm-wg {
    padding: 22px;
    background: #fff;
    border: 1px solid var(--dm-slate-100);
    border-radius: var(--dm-radius-lg);
    box-shadow: var(--dm-shadow-lg);
}
.dm-wg-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    margin-bottom: 20px;
    padding: 4px;
    background: var(--dm-slate-100);
    border-radius: var(--dm-radius-sm);
}
.dm-wg-tabs button {
    padding: 11px;
    border-radius: 8px;
    color: var(--dm-slate-600);
    font-size: 13.5px;
    font-weight: var(--dm-fw-bold);
    transition: background .15s, color .15s, box-shadow .15s;
}
.dm-wg-tabs button.is-active {
    background: #fff;
    color: var(--dm-ink);
    box-shadow: var(--dm-shadow-sm);
}
.dm-wg-form.is-hidden { display: none; }
.dm-wg-lbl {
    margin-bottom: 9px;
    color: var(--dm-slate-500);
    font-size: 10px;
    font-weight: var(--dm-fw-bold);
    letter-spacing: .16em;
    text-transform: uppercase;
}

/* 칩 그룹 */
.dm-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 18px;
}
.dm-chip {
    padding: 9px 14px;
    background: #fff;
    border: 1.5px solid var(--dm-slate-200);
    border-radius: var(--dm-radius-pill);
    color: var(--dm-slate-600);
    font-size: 13px;
    font-weight: var(--dm-fw-semibold);
    transition: border-color .15s, color .15s, background .15s;
}
.dm-chip.is-on {
    background: rgba(42, 167, 160, .06);
    border-color: var(--dm-teal);
    color: var(--dm-teal);
}

/* 예상가 + CTA */
.dm-wg-est {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 2px;
    padding-top: 16px;
    border-top: 1px solid var(--dm-slate-100);
}
.dm-wg-est .lbl {
    margin-bottom: 3px;
    color: var(--dm-slate-500);
    font-size: 10px;
    font-weight: var(--dm-fw-bold);
    letter-spacing: .16em;
}
.dm-wg-est .val {
    font-size: 22px;
    font-weight: var(--dm-fw-heavy);
}
.dm-wg-est .val small {
    color: var(--dm-slate-500);
    font-size: 12px;
    font-weight: var(--dm-fw-semibold);
    -webkit-text-fill-color: var(--dm-slate-500);
}
.dm-wg-go {
    padding: 13px 22px;
    background: var(--dm-gradient);
    border-radius: var(--dm-radius-pill);
    color: #fff;
    font-size: 14px;
    font-weight: var(--dm-fw-bold);
    box-shadow: 0 6px 16px rgba(42, 123, 189, .3);
    transition: transform .18s, box-shadow .18s;
}
.dm-wg-go:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(42, 123, 189, .38); }
.dm-wg-note {
    margin-top: 12px;
    text-align: center;
    color: var(--dm-slate-500);
    font-size: 11.5px;
}

/* ── SECTION 공용 ─────────────────────────────────────────── */
.dm-sec-lineup,
.dm-sec-how,
.dm-sec-story,
.dm-sec-stats,
.dm-sec-faq {
    padding: 64px 0;
}
/* 배경 교차 (인접 섹션 간 시각 구분):
   LINEUP 흰 · HOW 회색 · STORY 흰 · STATS 회색 · FAQ 흰 */
.dm-sec-how,
.dm-sec-stats {
    background: var(--dm-slate-50);
    border-top: 1px solid var(--dm-slate-100);
    border-bottom: 1px solid var(--dm-slate-100);
}
.dm-sec-faq { border-top: 1px solid var(--dm-slate-100); }

/* ── LINEUP (라인업 쇼케이스) ────────────────────────────── */
.dm-lineup-cat {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 34px 0 14px;
}
.dm-lineup-cat:first-of-type { margin-top: 0; }
.dm-lineup-cat-lbl {
    flex: none;
    color: var(--dm-slate-700);
    font-size: 11px;
    font-weight: var(--dm-fw-bold);
    letter-spacing: .18em;
    text-transform: uppercase;
}
.dm-lineup-cat-line {
    flex: 1;
    height: 1px;
    background: var(--dm-slate-200);
}
.dm-lineup-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.dm-lineup-card {
    display: flex;
    flex-direction: column;
    padding: 0;
    background: #fff;
    border: 1px solid var(--dm-slate-100);
    border-radius: var(--dm-radius-lg);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dm-lineup-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--dm-shadow-md);
    border-color: rgba(42, 167, 160, .35);
}
.dm-lineup-thumb {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--dm-gradient-soft);
    border-bottom: 1px solid var(--dm-slate-100);
}
.dm-lineup-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.dm-lineup-thumb:not(:has(img))::after {
    content: "이미지 준비 중";
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dm-slate-400);
    font-size: 12px;
    letter-spacing: .1em;
}
.dm-lineup-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 18px 20px 20px;
}
.dm-lineup-title {
    color: var(--dm-ink);
    font-size: 17px;
    font-weight: var(--dm-fw-heavy);
    letter-spacing: -0.01em;
}
.dm-lineup-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.dm-lineup-badges span {
    padding: 4px 10px;
    background: rgba(42, 167, 160, .08);
    border: 1px solid rgba(42, 167, 160, .2);
    border-radius: var(--dm-radius-pill);
    color: var(--dm-teal);
    font-size: 11.5px;
    font-weight: var(--dm-fw-semibold);
}
.dm-lineup-desc {
    margin: 0;
    color: var(--dm-slate-600);
    font-size: 13px;
    line-height: 1.65;
}
.dm-lineup-cta {
    margin-top: 4px;
    color: var(--dm-blue);
    font-size: 13px;
    font-weight: var(--dm-fw-bold);
}
.dm-lineup-note {
    margin: 24px 0 0;
    text-align: center;
    color: var(--dm-slate-500);
    font-size: 12.5px;
    line-height: 1.65;
}
.dm-br-mobile { display: inline; }
@media (max-width: 720px) {
    .dm-br-mobile { display: block; }
}

/* ── HOW (3-step) ────────────────────────────────────────── */
.dm-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.dm-step {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid var(--dm-slate-100);
    border-radius: var(--dm-radius-md);
}
.dm-step .no {
    flex: none;
    width: 34px; height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dm-gradient);
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    font-weight: var(--dm-fw-heavy);
}
.dm-step .t {
    margin-bottom: 4px;
    font-size: 16px;
    font-weight: var(--dm-fw-bold);
}
.dm-step .d {
    color: var(--dm-slate-500);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ── STORY ───────────────────────────────────────────────── */
.dm-story-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}
.dm-story-media {
    position: relative;
    aspect-ratio: 4 / 3;
}
.dm-story-main {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: var(--dm-radius-lg);
    box-shadow: var(--dm-shadow-lg);
}
.dm-story-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.dm-story-p {
    margin: 0 0 16px;
    color: var(--dm-slate-600);
    font-size: 15px;
    line-height: 1.85;
}
.dm-story-p strong { color: var(--dm-ink); font-weight: var(--dm-fw-bold); }
.dm-story-tagline {
    margin-top: 24px;
    padding: 20px 24px;
    background: var(--dm-gradient-soft);
    border: 1px solid rgba(42, 167, 160, .2);
    border-radius: var(--dm-radius-md);
    font-size: 22px;
    font-weight: var(--dm-fw-heavy);
    letter-spacing: -0.01em;
}
.dm-story-tagline .ink { color: var(--dm-ink); }

/* ── STATS · 숫자로 보는 에쓰렌트카 ────────────────────────
   3열 그리드 · 큰 수치 (그라디언트) + 라벨 + 짧은 설명.
   3번째 항목은 텍스트 (차종명) 라서 .is-text 로 폰트 사이즈만 축소. */
.dm-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}
.dm-stat-fact {
    /* 세로로 값 · 라벨 · 설명 순 · 카드 간 각 행 높이를 min-height 로 맞춤 (교차 정렬) */
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--dm-slate-100);
    border-radius: var(--dm-radius-lg);
    padding: 30px 26px;
    text-align: center;
    transition: transform .2s, box-shadow .2s, border-color .2s;
}
.dm-stat-fact:hover {
    transform: translateY(-2px);
    border-color: rgba(42, 167, 160, .28);
    box-shadow: var(--dm-shadow-md);
}
/* 값 영역 · min-height 는 숫자 폰트 (48px * 1.05) 기준. is-text 도 같은 높이 안에서 세로 중앙정렬. */
.dm-stat-fact-val {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px;
    font-size: 48px;
    font-weight: var(--dm-fw-heavy);
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.dm-stat-fact-val .unit {
    font-size: 22px;
    font-weight: var(--dm-fw-bold);
    color: var(--dm-slate-500);
    letter-spacing: -0.01em;
}
/* 3번째 카드처럼 값이 텍스트 (차종명) 인 경우 폰트 축소 · 높이는 동일 유지 */
.dm-stat-fact-val.is-text {
    font-size: 24px;
    line-height: 1.3;
    letter-spacing: -0.02em;
}
.dm-stat-fact-lbl {
    margin-top: 16px;
    color: var(--dm-ink);
    font-size: 15px;
    font-weight: var(--dm-fw-bold);
    letter-spacing: -0.01em;
}
.dm-stat-fact-desc {
    margin-top: 8px;
    color: var(--dm-slate-500);
    font-size: 13.5px;
    line-height: 1.6;
}

/* ── FAQ ─────────────────────────────────────────────────── */
.dm-faq-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.dm-faq-item {
    background: #fff;
    border: 1px solid var(--dm-slate-100);
    border-radius: var(--dm-radius-md);
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s;
}
.dm-faq-item.is-open {
    border-color: rgba(42, 167, 160, .35);
    box-shadow: 0 4px 16px rgba(42, 123, 189, .08);
}
.dm-faq-item .q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 20px 22px;
    color: var(--dm-ink);
    font-size: 15px;
    font-weight: var(--dm-fw-semibold);
    text-align: left;
}
.dm-faq-item .ic {
    flex: none;
    width: 26px; height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dm-slate-100);
    border-radius: 50%;
    color: var(--dm-slate-700);
    font-size: 15px;
    font-weight: var(--dm-fw-bold);
    transition: background .2s, color .2s;
}
.dm-faq-item.is-open .ic {
    background: var(--dm-gradient);
    color: #fff;
}
.dm-faq-item .a {
    max-height: 0;
    padding: 0 22px;
    overflow: hidden;
    color: var(--dm-slate-600);
    font-size: 13.5px;
    line-height: 1.75;
    transition: max-height .3s ease, padding .2s;
}
.dm-faq-item.is-open .a {
    max-height: 340px;
    padding: 0 22px 20px;
}

/* ── RESPONSIVE (≥ 900px 데스크톱) ─────────────────────── */
@media (min-width: 900px) {
    .dm-hero { padding: 100px 0 80px; }
    .dm-hero-grid {
        grid-template-columns: 1.1fr .95fr;
        gap: 22px 64px;
        align-items: start;
    }
    /* 데스크톱: 좌측 텍스트 · 우측 위젯 나란히 */
    .dm-hero-lead { display: block; grid-column: 1; }
    .dm-wg-wrap   { grid-column: 2; }
    .dm-hero-title { margin-top: 22px; font-size: 60px; }
    .dm-hero-sub { font-size: 17px; }

    .dm-sec-lineup,
    .dm-sec-how,
    .dm-sec-story,
    .dm-sec-stats,
    .dm-sec-faq { padding: 100px 0; }

    /* LINEUP: 3열 */
    .dm-lineup-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }

    .dm-h2 { font-size: 42px; }

    /* HOW: 3열 */
    .dm-steps { grid-template-columns: repeat(3, 1fr); }
    .dm-step { flex-direction: column; }

    /* STORY: 2열 · 우측 텍스트 컬럼을 이미지 높이에 맞춰 stretch, 태그라인은 하단으로 */
    .dm-story-grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: stretch; }
    .dm-story-grid > div:last-child { display: flex; flex-direction: column; }
    .dm-story-grid > div:last-child .dm-story-tagline { margin-top: auto; }
    .dm-story-tagline { font-size: 26px; }

    /* STATS: 3열 · 여백 확대 · 큰 숫자 강조 · 값 영역 min-height 재산정 (60px * 1.05) */
    .dm-stats-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .dm-stat-fact { padding: 40px 28px; }
    .dm-stat-fact-val { font-size: 60px; min-height: 66px; }
    .dm-stat-fact-val .unit { font-size: 26px; }
    .dm-stat-fact-val.is-text { font-size: 26px; }
}

@media (max-width: 720px) {
    .dm-hero-title { font-size: 32px; }
    .dm-h2 { font-size: 26px; }
    .dm-wg-est { flex-wrap: wrap; gap: 12px; }
    /* STATS: 모바일 값 살짝 축소 · min-height 도 같이 축소 (40px * 1.05) */
    .dm-stat-fact-val { font-size: 40px; min-height: 44px; }
    .dm-stat-fact-val .unit { font-size: 18px; }
    .dm-stat-fact-val.is-text { font-size: 20px; }
}
