@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css');
@import url('https://webfontworld.github.io/naver/MaruBuri.css');
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700;800;900&display=swap');

:root {
    --primary-green: #2E7D32;
    --earth-brown: #5D4037;
    --bg-color: #f4f7f0;
    --highlight-cyan: #81D4FA;
    --tip-yellow: #FFEB3B;
}

body {
    /* 영문, 국문 고딕, 국문 명조 폰트를 자연스럽게 혼합 적용 */
    font-family: 'Pretendard', 'Inter', 'MaruBuri', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
    background-color: var(--bg-color);
    word-break: keep-all;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    background: #fff;
    padding: 10px 20px 20px 20px; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    min-height: 100vh;
}

/* Header 공통 */
header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 15px 0 12px 0; 
    border-bottom: 3px solid var(--primary-green);
    margin-bottom: 25px;
}

.brand-icon-area { flex: 0 0 auto; }
.brand-graphic { height: 85px; width: auto; object-fit: contain; }
.right-stack { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: 1; }
.corp-logo { height: 22px; width: auto; object-fit: contain; }
.logo-text { font-size: 26px; font-weight: 900; color: var(--primary-green); letter-spacing: -1px; margin: 0; line-height: 1; }
.sub-title { font-size: 14px; color: var(--earth-brown); font-weight: 500; margin-top: 2px; }

/* 언어 전환 스위치 */
.lang-switch { font-size: 12px; font-weight: 700; margin-bottom: 6px; display: flex; gap: 8px; }
.lang-switch a { text-decoration: none; color: #aaa; transition: color 0.2s; }
.lang-switch a.active { color: var(--primary-green); border-bottom: 2px solid var(--primary-green); }

/* 산도바로 플러스 전용 (AI 카메라 버튼) */
.ai-analysis-container { margin: 10px 0 40px 0; }
.ai-analysis-btn {
    display: flex; flex-direction: column; align-items: center; position: relative;
    background: linear-gradient(135deg, #388E3C 0%, #2E7D32 100%);
    border: none; border-radius: 16px; padding: 20px 15px; text-decoration: none; text-align: center;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3); transition: all 0.3s; overflow: hidden; animation: pulse-glow 2s infinite;
}
.app-badge { display: inline-block; font-size: 13px; font-weight: 800; color: var(--primary-green); background-color: #FFEB3B; padding: 5px 14px; border-radius: 20px; margin-bottom: 10px; }
.ai-analysis-btn .main-text { display: block; font-size: 20px; font-weight: 900; color: #FFFFFF; margin-bottom: 8px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.ai-analysis-btn .sub-text { display: inline-block; font-size: 13px; color: #E8F5E9; font-weight: 600; background: rgba(0, 0, 0, 0.2); padding: 6px 14px; border-radius: 20px; }
.pwa-install-guide {
    margin-top: 12px; padding: 12px 14px; border: 1px solid #C8E6C9; border-radius: 12px;
    background: #F1F8E9; color: #355E3B; font-size: 12px; line-height: 1.55;
}
.pwa-install-guide strong, .pwa-install-guide span { display: block; }
.pwa-install-guide strong { margin-bottom: 4px; color: var(--primary-green); font-size: 13px; }
.pro-pwa-install-guide { margin-top: -23px; margin-bottom: 35px; }

/* 산도바로 프로 전용 (GPS 지도 버튼) */
.gps-map-link {
    display: flex; flex-direction: column; align-items: center; text-decoration: none;
    background: linear-gradient(135deg, #43A047 0%, #1B5E20 100%); 
    border-radius: 16px; padding: 24px 16px; text-align: center; color: white;
    box-shadow: 0 8px 20px rgba(46, 125, 50, 0.3); margin-bottom: 35px; transition: transform 0.2s; position: relative; border: 2px solid rgba(255,255,255,0.2);
}
.gps-btn-title { font-size: 19px; font-weight: 800; margin-bottom: 8px; display: flex; align-items: center; justify-content: center; gap: 6px; text-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.gps-btn-desc { font-size: 14px; font-weight: 400; color: rgba(255, 255, 255, 0.95); margin-bottom: 18px; line-height: 1.4; }
.gps-btn-action {
    display: inline-flex; align-items: center; justify-content: center; background-color: var(--tip-yellow); color: #1B5E20; 
    padding: 10px 22px; border-radius: 30px; font-size: 15px; font-weight: 800; box-shadow: 0 4px 10px rgba(0,0,0,0.15); gap: 6px; animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(255, 235, 59, 0.6); }
    70% { box-shadow: 0 0 0 10px rgba(255, 235, 59, 0); }
    100% { box-shadow: 0 0 0 0 rgba(255, 235, 59, 0); }
}

/* 본문 공통 */
section { margin-bottom: 35px; text-align: left; }
h2 { display: flex; align-items: center; font-size: 19px; font-weight: 800; color: var(--primary-green); border-left: 6px solid var(--primary-green); padding-left: 12px; margin-bottom: 18px; }

.usage-steps-grid { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 20px; }
.step-item { flex: 1; display: flex; flex-direction: column; align-items: center; }
.step-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 8px; border: 1px solid #eee; margin-bottom: 12px; display: block; }
.step-text { font-size: 13px; font-weight: 700; text-align: center; line-height: 1.4; color: #333; min-height: 40px; }

.tip-box-container { background-color: #FDEBD0; border: 1px solid #D7CCC8; border-radius: 8px; padding: 15px; margin: 0 0 20px 0; display: flex; align-items: flex-start; gap: 12px; }
.tip-box-icon { font-size: 20px; flex-shrink: 0; padding-top: 2px; }
.tip-box-text { font-size: 14px; color: #4E342E; line-height: 1.5; }
.tip-box-text strong { color: #2E7D32; }

.notice-box { background-color: #222; color: #fff; padding: 16px; border-radius: 8px; font-size: 13.5px; line-height: 1.8; margin-top: 10px; }
.notice-box strong { color: #FFEB3B; display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700;}
.notice-list { margin: 0; padding-left: 0; list-style: none; }
.notice-list li { margin-bottom: 10px; display: flex; flex-direction: column; }
.notice-list li .list-item-main { display: flex; align-items: flex-start; }
.notice-list li span.num { margin-right: 6px; font-weight: bold; }
.emphasize-text { color: var(--highlight-cyan); font-weight: 700; display: block; margin-top: 4px; margin-left: 18px; font-size: 13px; }

.manual-img, .manual-video { width: 100%; height: auto; border-radius: 10px; border: 1px solid #eee; margin-bottom: 12px; display: block; }
.video-wrapper { position: relative; width: 100%; border-radius: 10px; overflow: hidden; background: #000; margin-bottom: 5px; }

.ai-disclaimer { font-size: 11px; color: #888; text-align: center; margin-bottom: 20px; }
.img-caption { font-size: 14px; color: #222; text-align: center; font-weight: 700; margin: 5px 0 25px 0; }
.text-highlight { color: #d32f2f; font-weight: 800; text-decoration: underline; }

.features-container { background-color: #f9fdf9; border: 1px solid #e8f5e9; border-radius: 12px; padding: 20px 0; margin-bottom: 25px; }
.features { display: flex; justify-content: space-around; align-items: flex-start; }
.feature-item { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.feature-icon { font-size: 1.6rem; background: #e8f5e9; width: 50px; height: 50px; line-height: 50px; text-align: center; border-radius: 50%; }
.feature-text { font-size: 0.9rem; color: var(--primary-green); font-weight: 700; line-height: 1.4; text-align: center; }

.description { font-size: 1.05rem; color: #444; line-height: 1.8; padding: 0 10px; text-align: center; }
.description strong { color: var(--primary-green); }

/* 하단 Footer 공통 */
.footer-btn-container { text-align: center; margin: 40px 0; }
.footer-btn { display: inline-block; width: 95%; background: var(--primary-green); color: white; padding: 16px 0; text-decoration: none; border-radius: 50px; font-weight: bold; font-size: 16px; box-shadow: 0 4px 10px rgba(46, 125, 50, 0.3); }
.contact-info { font-size: 11px; color: #666; padding: 20px 25px; background-color: #f9f9f9; border-radius: 10px; line-height: 1.8; text-align: left; }
.copyright { margin-top: 10px; font-size: 11px; color: #bbb; }

/* 산도바로 프로 전용 팁 박스 (초록 바탕에 흰 글씨) */
.tip-box-pro { 
    background-color: var(--primary-green); 
    padding: 18px 22px; 
    border-radius: 10px; 
    margin: 20px 0 25px 0; 
    display: flex; 
    align-items: flex-start; 
    gap: 12px; 
}
.tip-box-pro .tip-box-icon { font-size: 24px; flex-shrink: 0; }
.tip-box-pro .tip-box-text { flex: 1; font-size: 14.5px; color: #fff; line-height: 1.5; }
.tip-box-pro .tip-box-text strong { color: #fff; font-weight: 700; } /* 글씨를 강제로 흰색으로! */

/* ───────────────────────────────────────────────
   Lucide 라인 아이콘 (이모지 대체 · 2026-07 교체)
   - 이모지 → 얇은 선 SVG. 색은 currentColor로 문맥 상속
─────────────────────────────────────────────── */
.qr-ico {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
    width: 22px;
    height: 22px;
}

/* 팁 박스: plus(연한 배경)=초록, pro(초록 배경)=흰색 */
.tip-box-icon .qr-ico { width: 22px; height: 22px; color: var(--primary-green); }
.tip-box-pro .tip-box-icon .qr-ico { width: 24px; height: 24px; color: #fff; }

/* 특징 3종: 원형 배지 안에 중앙정렬, 초록 */
.feature-icon { display: inline-flex; align-items: center; justify-content: center; }
.feature-icon .qr-ico { width: 26px; height: 26px; color: var(--primary-green); }

/* 섹션 제목(사용영상) 앞 아이콘 — h2는 이미 flex */
.h2-ico { width: 20px; height: 20px; margin-right: 8px; }

/* PLUS 앱 버튼 */
.app-badge { display: inline-flex; align-items: center; gap: 5px; }
.app-badge .qr-ico { width: 15px; height: 15px; }
.ai-analysis-btn .main-text { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ai-analysis-btn .main-text .qr-ico { width: 22px; height: 22px; }

/* PRO 앱 버튼(GPS 지도) — 제목/액션 모두 이미 flex+gap */
.gps-btn-title .qr-ico { width: 20px; height: 20px; }
.gps-btn-action .qr-ico { width: 18px; height: 18px; }

/* PRO 주의사항 박스 제목 */
.notice-box strong { display: flex; align-items: center; gap: 6px; }
.notice-box strong .qr-ico { width: 18px; height: 18px; }

/* 하단 홈페이지 버튼 */
.footer-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.footer-btn .qr-ico { width: 18px; height: 18px; }
