/* =====================================================
   보험대리점 제휴 제안서 — 스마트스토어 운영대행 파트너십
   디자인 시스템: 화이트 베이스 + 블루/퍼플 그라데이션 포인트
   Pretendard, 슬라이드 덱(scroll-snap) 구조
   ===================================================== */

:root {
    --black: #111111;
    --charcoal: #1c1f24;
    --gray-800: #2c2f36;
    --gray-700: #4b5057;
    --gray-500: #777777;
    --gray-400: #9aa1ab;
    --gray-300: #d9dde3;
    --gray-200: #e7eaf0;
    --gray-100: #f2f2f7;
    --gray-50: #f8f9fb;
    --white: #ffffff;
    --blue: #2fa6f6;
    --blue-deep: #1d7fd1;
    --blue-soft: #eaf6fe;
    --purple: #b94bff;
    --purple-soft: #f6f2fd;
    --pink: #f06cff;
    --green: #1fb978;
    --green-soft: #e8fbf1;
    --amber: #ff9f43;
    --amber-soft: #fff4e8;
    --red: #ff5470;
    --gradient: linear-gradient(135deg, #b94bff 0%, #f06cff 100%);
    --gradient-blue: linear-gradient(135deg, #2fa6f6 0%, #7b5cff 100%);
    --gradient-brand: linear-gradient(100deg, #2fa6f6 0%, #7b5cff 45%, #f06cff 100%);
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 10px;
    --radius-pill: 50px;
    --shadow-soft: 0 10px 34px rgba(28, 31, 36, 0.07);
    --shadow-card: 0 2px 14px rgba(28, 31, 36, 0.06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
    color: var(--black);
    background: var(--charcoal);
    line-height: 1.6;
    letter-spacing: -0.01em;
    -webkit-font-smoothing: antialiased;
    word-break: keep-all;
}

img { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
.hidden { display: none !important; }
.muted { color: var(--gray-500); }

/* ===== Gradient text ===== */
.grad-text {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
.grad-text-blue {
    background: var(--gradient-blue);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ===== Deck container ===== */
#deck {
    scroll-snap-type: y mandatory;
    overflow-y: auto;
    height: 100vh;
    scrollbar-width: none;
}
#deck::-webkit-scrollbar { display: none; }

.slide {
    scroll-snap-align: start;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 64px 8vw 84px;
    background: var(--white);
}

.slide-inner {
    max-width: 1180px;
    width: 100%;
    margin: 0 auto;
}

.slide-dark {
    background: linear-gradient(150deg, #14161b 0%, #1c1f24 55%, #241a33 100%);
    color: var(--white);
}
.slide-gray { background: var(--gray-50); }
.slide-lavender { background: var(--purple-soft); }
.slide-blue { background: var(--blue-soft); }

/* ===== Page chrome ===== */
.page-tag {
    position: absolute;
    top: 28px;
    left: 8vw;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--gray-400);
    text-transform: uppercase;
}
.slide-dark .page-tag { color: rgba(255,255,255,0.55); }

.page-no {
    position: absolute;
    bottom: 28px;
    right: 8vw;
    font-size: 13px;
    font-weight: 700;
    color: var(--gray-400);
    letter-spacing: 0.02em;
}
.slide-dark .page-no { color: rgba(255,255,255,0.5); }

.brand-mark {
    position: absolute;
    top: 28px;
    right: 8vw;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--gray-700);
}
.brand-mark span { color: var(--purple); }
.slide-dark .brand-mark { color: rgba(255,255,255,0.75); }
.slide-dark .brand-mark span { color: var(--pink); }

/* ===== Pills / Eyebrow ===== */
.pill-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-soft);
    color: var(--blue-deep);
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 18px;
}
.pill-label.on-dark { background: rgba(255,255,255,0.1); color: #bcd9ff; }
.pill-label.purple { background: var(--purple-soft); color: var(--purple); }
.pill-label.green { background: var(--green-soft); color: #0f8a58; }
.pill-label.amber { background: var(--amber-soft); color: #b9660b; }

/* ===== Titles ===== */
.slide-title {
    font-size: clamp(28px, 3.6vw, 46px);
    font-weight: 800;
    line-height: 1.28;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
}
.slide-sub {
    font-size: clamp(15px, 1.5vw, 18px);
    color: var(--gray-700);
    max-width: 760px;
    margin-bottom: 34px;
}
.slide-dark .slide-sub { color: rgba(255,255,255,0.72); }

.impact-line {
    font-size: clamp(15px, 1.6vw, 19px);
    font-weight: 700;
    color: var(--purple);
    margin-top: 6px;
}

/* ===== Cover (slide 1) ===== */
.cover-slide {
    justify-content: center;
    align-items: flex-start;
}
.cover-eyebrow {
    display: inline-block;
    font-size: 14px;
    font-weight: 700;
    color: #bcd9ff;
    background: rgba(47,166,246,0.15);
    border: 1px solid rgba(47,166,246,0.35);
    padding: 8px 18px;
    border-radius: var(--radius-pill);
    margin-bottom: 28px;
}
.cover-title {
    font-size: clamp(34px, 5vw, 60px);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 22px;
}
.cover-sub {
    font-size: clamp(16px, 1.7vw, 20px);
    color: rgba(255,255,255,0.78);
    max-width: 680px;
    margin-bottom: 46px;
}
.cover-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    padding-top: 26px;
    border-top: 1px solid rgba(255,255,255,0.16);
    width: 100%;
    max-width: 760px;
}
.cover-meta div dt { font-size: 12px; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.cover-meta div dd { font-size: 15px; font-weight: 700; }
.cover-logo {
    position: absolute;
    top: 40px;
    right: 8vw;
    font-size: 17px;
    font-weight: 800;
    color: var(--white);
}
.cover-logo span { color: var(--pink); }

/* ===== Card grid ===== */
.card-grid {
    display: grid;
    gap: 20px;
}
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }

.card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 26px 22px;
    box-shadow: var(--shadow-card);
}
.card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--gray-700); line-height: 1.55; }
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px; height: 42px;
    border-radius: 12px;
    font-size: 20px;
    margin-bottom: 14px;
}
.card-icon.blue { background: var(--blue-soft); }
.card-icon.purple { background: var(--purple-soft); }
.card-icon.green { background: var(--green-soft); }
.card-icon.amber { background: var(--amber-soft); }

/* ===== Table of contents (slide 2) ===== */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 40px;
}
.toc-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 6px;
    border-bottom: 1px solid var(--gray-200);
}
.toc-num {
    font-size: 20px;
    font-weight: 800;
    color: var(--gray-300);
    width: 34px;
}
.toc-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 2px; }
.toc-item p { font-size: 13px; color: var(--gray-500); }

/* ===== Stat grid ===== */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 22px 18px;
    text-align: center;
}
.stat-value { font-size: 26px; font-weight: 800; color: var(--purple); margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--gray-600, #666); }

/* ===== Flow diagram (slide 6) ===== */
.flow-row {
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-wrap: wrap;
}
.flow-box {
    flex: 1;
    min-width: 180px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px 18px;
    text-align: center;
}
.flow-box.highlight { border-color: var(--purple); box-shadow: 0 8px 24px rgba(185,75,255,0.15); }
.flow-box .flow-tag { font-size: 12px; font-weight: 700; color: var(--purple); margin-bottom: 8px; display:block; }
.flow-box h4 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.flow-box p { font-size: 12.5px; color: var(--gray-500); }
.flow-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--gray-300);
    padding: 0 2px;
}

/* ===== Tables ===== */
.table-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
thead th {
    background: var(--charcoal);
    color: var(--white);
    text-align: left;
    padding: 13px 18px;
    font-weight: 700;
    font-size: 13.5px;
}
tbody td {
    padding: 13px 18px;
    border-bottom: 1px solid var(--gray-100);
}
tbody tr:last-child td { border-bottom: none; }
tr.highlight-row td { background: var(--purple-soft); font-weight: 700; }
.badge-recommend {
    display: inline-block;
    background: var(--gradient);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 2px 9px;
    border-radius: var(--radius-pill);
    margin-left: 6px;
}

/* ===== Process steps ===== */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}
.process-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px 16px;
}
.step-badge {
    display: inline-block;
    background: var(--charcoal);
    color: var(--white);
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: var(--radius-pill);
    margin-bottom: 10px;
}
.process-card h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.step-cost { font-size: 15px; font-weight: 800; color: var(--purple); }
.step-cost.free { color: var(--green); }

/* ===== Number list (benefits) ===== */
.benefit-list {
    display: grid;
    gap: 16px;
}
.benefit-item {
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    padding: 20px 22px;
}
.benefit-no {
    font-size: 22px;
    font-weight: 800;
    color: var(--gray-300);
    min-width: 34px;
}
.benefit-item h4 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.benefit-item p { font-size: 13.5px; color: var(--gray-700); }

/* ===== ROI bars ===== */
.roi-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}
.roi-bars { display: grid; gap: 22px; }
.roi-bar-row { }
.roi-bar-row .roi-label { display:flex; justify-content: space-between; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; }
.roi-bar-track { background: var(--gray-100); border-radius: var(--radius-pill); height: 20px; overflow: hidden; }
.roi-bar-fill { height: 100%; border-radius: var(--radius-pill); }
.roi-bar-fill.cost { background: var(--gray-400); }
.roi-bar-fill.revenue { background: var(--gradient-blue); }

/* ===== Highlight box ===== */
.info-box {
    background: var(--gradient-blue);
    border-radius: var(--radius-md);
    padding: 24px 28px;
    color: var(--white);
    margin-top: 22px;
}
.info-box h3 { font-size: 16px; font-weight: 800; margin-bottom: 6px; }
.info-box p { font-size: 14px; opacity: 0.95; }

.number-callout {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.number-callout .num-block {
    text-align: left;
}
.number-callout .num-block .n {
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 800;
    color: var(--purple);
    line-height: 1.1;
}
.number-callout .num-block .l {
    font-size: 13.5px;
    color: var(--gray-600, #666);
    margin-top: 4px;
}

/* ===== Contact / CTA (last slide) ===== */
.contact-card {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: var(--radius-lg);
    padding: 34px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 26px;
}
.contact-role { font-size: 13px; color: rgba(255,255,255,0.55); margin-bottom: 6px; }
.contact-name { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.contact-phone {
    font-size: 22px;
    font-weight: 800;
    color: #bcd9ff;
    letter-spacing: 0.01em;
}
.cta-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 26px;
    border-radius: var(--radius-pill);
    font-weight: 700;
    font-size: 15px;
}
.btn-cta.primary { background: var(--gradient-blue); color: var(--white); box-shadow: 0 10px 26px rgba(79,124,255,0.4); }
.btn-cta.outline { background: transparent; border: 1px solid rgba(255,255,255,0.3); color: var(--white); }

.disclaimer-box {
    font-size: 12.5px;
    color: rgba(255,255,255,0.5);
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 16px;
    margin-top: 10px;
    line-height: 1.7;
}

/* ===== Warning / footnote ===== */
.warning-box {
    background: var(--amber-soft);
    border: 1px solid #ffd9ab;
    border-radius: var(--radius-md);
    padding: 16px 20px;
    font-size: 13px;
    color: #9a5b0c;
    margin-top: 20px;
}
.warning-box strong { display: block; margin-bottom: 4px; color: #7a4708; }

/* ===== Deck navigation UI ===== */
#nav-dots {
    position: fixed;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 9px;
    z-index: 50;
}
#nav-dots button {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(0,0,0,0.18);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.2s ease;
}
#nav-dots button.active { background: var(--purple); transform: scale(1.5); }

#deck-progress {
    position: fixed;
    top: 0; left: 0;
    height: 4px;
    background: var(--gradient-brand);
    z-index: 60;
    width: 0%;
    transition: width 0.15s ease;
}

#nav-arrows {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(20,22,27,0.85);
    color: var(--white);
    padding: 8px 10px;
    border-radius: var(--radius-pill);
    z-index: 50;
    font-size: 13px;
    backdrop-filter: blur(6px);
}
#nav-arrows button {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: var(--white);
    border: none;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}
#nav-arrows button:hover { background: rgba(255,255,255,0.24); }
#nav-arrows #nav-counter { min-width: 48px; text-align: center; font-weight: 700; }
#print-btn {
    width: auto !important;
    border-radius: var(--radius-pill) !important;
    padding: 0 16px !important;
    font-weight: 700;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .cols-3, .cols-4 { grid-template-columns: repeat(2, 1fr); }
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
    .process-grid { grid-template-columns: repeat(2, 1fr); }
    .toc-grid { grid-template-columns: 1fr; }
    .roi-wrap { grid-template-columns: 1fr; }
    .flow-row { flex-direction: column; }
    .flow-arrow { transform: rotate(90deg); padding: 6px 0; }
    #nav-dots { display: none; }
}
@media (max-width: 640px) {
    .slide { padding: 90px 6vw 110px; }
    .cols-2 { grid-template-columns: 1fr; }
    .contact-card { flex-direction: column; align-items: flex-start; }
}

/* ===== Print (PDF export) ===== */
@media print {
    #nav-dots, #nav-arrows, #deck-progress { display: none !important; }
    #deck { height: auto; overflow: visible; }
    .slide {
        min-height: 100vh;
        page-break-after: always;
        scroll-snap-align: none;
    }
    body { background: var(--white); }
}
