/* ─────────────────────────────────────────────────────────────
   공통 토큰 · 리셋 (ACRO 디자인 기준)
   흰 바탕 · 넉넉한 여백 · 20px 둥근 카드 · 파란 포인트 1색 · Pretendard 500
   그라데이션 · 그림자 · 영문 장식 문구는 쓰지 않는다
   브레이크포인트: 1023px (태블릿) / 767px (모바일) 두 개만
   ───────────────────────────────────────────────────────────── */

@import url("fonts/pretendard.css");

:root {
    /* 브랜드 */
    --primary: #3182f6;
    --primary-hover: #106bee;
    --primary-press: #0051c4;
    --primary-soft: color-mix(in srgb, var(--primary) 9%, #fff);

    /* 글자 */
    --ink: #000;
    --ink-2: #2e2e27;
    --body-2: #4b4b4b;
    --sub: #707070;
    --muted: rgba(0, 0, 0, 0.5);
    --placeholder: #979797;

    /* 면 */
    --bg: #fff;
    --soft: #f7f9fb;
    --card: #f8fafc;
    --fill: #f2f4f6;
    --gray-bg: #f0f0f0;
    --line: #eceff3;
    --dark: #101010;

    /* 상태 (배지·숫자에만) */
    --success: #12a150;
    --success-soft: #e8f7ee;
    --danger: #f04452;
    --danger-soft: #fff0f1;
    --warning: #e08600;
    --warning-soft: #fff5e0;

    /* 모양 */
    --radius-card: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --radius-pill: 100px;
    --shadow-pop: 0 0 10px rgba(0, 0, 0, 0.1);

    /* 레이아웃 */
    --container: 1200px;
    --hd-h: 76px;

    --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

@media (max-width: 1023px) {
    :root {
        --hd-h: 68px;
    }
}

@media (max-width: 767px) {
    :root {
        --hd-h: 60px;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    font-family: var(--font);
    font-weight: 500;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    overflow-wrap: break-word;
}

body.is-drawer-open {
    overflow: hidden;
}

h1,
h2,
h3,
h4,
p {
    margin: 0;
}

button,
input,
select,
textarea {
    font: inherit;
    color: inherit;
}

button {
    border: 0;
    background: none;
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

::placeholder {
    color: var(--placeholder);
    opacity: 1;
}

/* ───────── 사진 배너 (ACRO 자동 슬라이드: 3초 대기 → 800ms ease-out) ───────── */
.slider {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.slider-view {
    width: 100%;
    height: 320px;
    border-radius: var(--radius-card);
    overflow: hidden;
    isolation: isolate;
}

.slide-track {
    display: flex;
    height: 100%;
    transition: transform 800ms ease-out;
}

.slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    overflow: hidden;
    color: var(--ink);
    background: var(--primary-soft);
}

.slide--blue {
    background: #eaf3ff;
}

.slide--green {
    background: #eaf7ef;
}

.slide--orange {
    background: #fff3e6;
}

/* 오른쪽 일러스트 */
.slide-illust {
    position: absolute;
    right: 56px;
    top: 50%;
    width: auto;
    height: 82%;
    max-width: none;
    transform: translateY(-50%);
    transition: transform 300ms ease-out;
}

@media (hover: hover) and (min-width: 768px) {
    .slide:hover .slide-illust {
        transform: translateY(-50%) scale(1.04);
    }
}

.slide-copy {
    position: absolute;
    left: 56px;
    top: 50%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    max-width: 520px;
    transform: translateY(-50%);
}

.slide-tag {
    display: inline-flex;
    align-items: center;
    height: 28px;
    padding: 0 12px;
    border-radius: 14px;
    background: #fff;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
}

.slide--green .slide-tag {
    color: var(--success);
}

.slide--orange .slide-tag {
    color: #e5701f;
}

.slide-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.5px;
}

.slide-desc {
    font-size: 16px;
    line-height: 1.5;
    color: var(--body-2);
}

.slide-btn {
    display: inline-flex;
    align-items: center;
    height: 40px;
    margin-top: 6px;
    padding: 0 20px;
    border-radius: 44.5px;
    background: var(--ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    transition: background-color 150ms ease;
}

.slide:hover .slide-btn {
    background: var(--primary);
}

.slide-dots {
    display: flex;
    gap: 12px;
}

.slide-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border-radius: 50%;
    background: #d9d9d9;
    transition: background-color 800ms ease-out;
}

.slide-dot.is-active {
    background: var(--ink-2);
}

@media (max-width: 1023px) {
    .slider-view {
        height: 300px;
    }

    .slide-copy {
        left: 40px;
        max-width: 360px;
    }

    .slide-illust {
        right: 24px;
        height: 64%;
    }

    .slide-title {
        font-size: 26px;
    }

    .slide-desc {
        font-size: 15px;
    }
}

@media (max-width: 767px) {
    .slider {
        gap: 14px;
    }

    .slider-view {
        height: 300px;
        border-radius: 16px;
    }

    .slide-illust {
        top: 14px;
        right: 10px;
        height: 132px;
        transform: none;
    }

    .slide-copy {
        left: 24px;
        right: 24px;
        top: auto;
        bottom: 26px;
        gap: 10px;
        transform: none;
    }

    .slide-title {
        font-size: 21px;
    }

    .slide-desc {
        display: none;
    }

    .slide-btn {
        height: 36px;
        margin-top: 2px;
        padding: 0 16px;
        font-size: 14px;
    }

    .slide-dot {
        width: 7px;
        height: 7px;
    }
}
