/* ============================================================
   앱형 디자인 테마 (v1.5.0, 2026-11-05)  — ⑥ 홈페이지 전체 앱형 리디자인
   ------------------------------------------------------------
   · 3초 요금계산기의 카드/라운드/그라데이션 스타일을 홈페이지 전체로 확장
   · 기능(JS/DOM id/class)은 그대로 두고 "겉모습"만 덮어쓰는 레이어
   · style.css, calculator.css 뒤에 로드됨 → 이 파일의 <link> 한 줄만 빼면 즉시 원복
   ============================================================ */

:root {
    --app-bg: #f4f8ff;
    --app-card: #ffffff;
    --app-line: #e6eefb;
    --app-radius: 20px;
    --app-radius-lg: 28px;
    --app-shadow: 0 8px 30px rgba(26, 115, 232, 0.10);
    --app-shadow-hover: 0 14px 38px rgba(26, 115, 232, 0.18);
    --app-grad: linear-gradient(135deg, #0a1f4e 0%, #1a73e8 60%, #0891b2 100%);
    --app-grad-soft: linear-gradient(135deg, #1a73e8 0%, #0891b2 100%);
}

body { background: var(--app-bg); -webkit-tap-highlight-color: transparent; }

/* ───────── 상단 공지 / 헤더 ───────── */
.top-notice { padding: 8px 16px; font-size: 13px; background: linear-gradient(90deg, #ff6b35, #ff4d6d); }
/* 주의: .header에 backdrop-filter를 걸면 내부의 position:fixed 모바일 메뉴(.gnav)가
   화면 전체가 아니라 헤더 영역에 갇히므로 투명 블러는 사용하지 않는다. */
.header {
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 1px 0 var(--app-line);
}
.header-inner { height: 60px; }
.logo { font-size: 20px; letter-spacing: -0.5px; }
.gnav a { border-radius: 999px; font-size: 14px; font-weight: 700; padding: 8px 14px; }
.btn-login {
    background: var(--app-grad-soft) !important;
    border-radius: 999px !important;
    box-shadow: 0 4px 14px rgba(26, 115, 232, 0.3);
}

/* ───────── 버튼 공통 ───────── */
.btn { border-radius: 14px; }
.btn-lg { border-radius: 999px; }
.btn-primary { background: var(--app-grad-soft); }
.btn-primary:hover { background: var(--app-grad-soft); filter: brightness(1.06); }

/* ───────── 히어로 ───────── */
.hero {
    min-height: auto;
    padding: 56px 0 96px;
    border-radius: 0 0 32px 32px;
    background: var(--app-grad);
}
.hero-badge { border-radius: 999px; font-weight: 700; }
.hero-title { letter-spacing: -1px; }
.hero-btn-primary, .hero-btn-outline { border-radius: 999px !important; }
.hero-btns { margin-bottom: 32px; }
.hero-stats {
    border-top: none;
    padding-top: 0;
    gap: 12px;
}
.stat-item {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    padding: 14px 22px;
    min-width: 128px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
}
.hero-time-card { border-radius: var(--app-radius-lg); }

/* ───────── 3초 요금계산기: 히어로 위로 겹쳐 올리는 앱 카드 ───────── */
.calc-section {
    background: transparent;
    padding: 0 0 40px;
    margin-top: -64px;
    position: relative;
    z-index: 2;
}
.calc-wrap {
    border-radius: var(--app-radius-lg);
    border: 1px solid var(--app-line);
    box-shadow: 0 16px 50px rgba(10, 31, 78, 0.18);
}

/* ───────── 섹션 공통 ───────── */
.section-header h2 { font-size: 26px; letter-spacing: -0.5px; }
.section-header h2::after {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    border-radius: 4px;
    background: var(--app-grad-soft);
    margin: 12px auto 0;
}
.section-header p { font-size: 14.5px; }

/* ───────── 실시간 신청현황 + 후기 ───────── */
body .social-proof-section { background: transparent; padding: 24px 0 48px; border-bottom: none; }
body .ticker-track-outer { border-radius: 16px; border: 1px solid var(--app-line); box-shadow: var(--app-shadow); }
body .review-card { border-radius: var(--app-radius); border: 1px solid var(--app-line); box-shadow: var(--app-shadow); }
body .review-card:hover { box-shadow: var(--app-shadow-hover); }
body .btn-reviews-cta { background: var(--app-grad-soft); }

/* ───────── 통신사별 인기상품 ───────── */
.providers-section { background: #fff; padding: 56px 0 64px; }
.provider-view-tabs {
    display: flex;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto 28px;
    background: var(--primary-light);
    padding: 4px;
    border-radius: 999px;
    gap: 4px;
}
.provider-view-tab {
    border: none;
    background: transparent;
    border-radius: 999px;
    padding: 10px 22px;
    color: var(--gray);
}
.provider-view-tab:hover { background: rgba(255, 255, 255, 0.7); color: var(--primary); border: none; }
.provider-view-tab.active {
    background: var(--app-grad-soft);
    color: #fff;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}
.speed-tier-tab { border: 1.5px solid var(--app-line); background: #fff; border-radius: 999px; }
.speed-tier-tab.active { background: var(--app-grad-soft); border-color: transparent; }
.compare-card {
    border-radius: 22px;
    border: 1px solid var(--app-line);
    box-shadow: var(--app-shadow);
    transition: transform .2s, box-shadow .2s;
}
.compare-card:hover { transform: translateY(-3px); box-shadow: var(--app-shadow-hover); }
.compare-card-provider { padding: 10px; font-size: 13px; }
.product-card { border-radius: var(--app-radius); }
.btn-detail, .btn-apply, .btn-secret-gift, .install-check-tag { border-radius: 12px; }
.speed-compare-card { border-radius: var(--app-radius); border: 1.5px solid var(--app-line); box-shadow: var(--app-shadow); }

/* ───────── 혜택 안내: 어두운 배경 → 밝은 앱 카드 리스트 ───────── */
.benefits-section { background: var(--app-bg); padding: 56px 0 64px; }
.benefits-section .section-header.light h2 { color: var(--dark); }
.benefits-section .section-header.light p { color: var(--gray); }
.benefits-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.benefit-card {
    flex-direction: row;
    align-items: center;
    gap: 16px;
    text-align: left;
    background: #fff;
    color: var(--dark);
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius);
    padding: 20px;
    box-shadow: var(--app-shadow);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
}
.benefit-card:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--app-shadow-hover); }
.benefit-card > div { width: auto; flex: 1; }
.benefit-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    margin: 0;
    border-radius: 16px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}
.benefit-card h3 { font-size: 16px; margin-bottom: 4px; color: var(--dark); }
.benefit-card p { font-size: 13.5px; opacity: 1; color: var(--gray); line-height: 1.6; }

/* ───────── 정수기 렌탈 ───────── */
.rental-section { background: #fff; padding: 56px 0 64px; }
.rental-brand-card { border-radius: 22px; border: 1px solid var(--app-line); box-shadow: var(--app-shadow); }
.rental-brand-card:hover { box-shadow: var(--app-shadow-hover); transform: translateY(-4px); }
.rental-brand-header { border-radius: 0; }
.rental-consult-btn { border-radius: 14px; }
.rental-notice { border-radius: 16px; background: var(--primary-light); border: none; }

/* ───────── 상담 예약 ───────── */
.reservation-section { background: var(--app-bg); padding: 56px 0 72px; }
.reservation-wrap { gap: 32px; align-items: stretch; }
.reservation-info h2 { font-size: 28px; letter-spacing: -0.5px; }
.reservation-features { gap: 10px; }
.reservation-features li {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
}
.btn-kakao { border-radius: 16px; padding: 15px 24px; }
.reservation-form-wrap {
    background: #fff;
    border: 1px solid var(--app-line);
    border-radius: var(--app-radius-lg);
    padding: 32px;
    box-shadow: var(--app-shadow);
}
.reservation-form h3 { font-size: 20px; }
.form-group input, .form-group select, .form-group textarea {
    border: 1.5px solid #e1e9f7;
    border-radius: 14px;
    background: #f7faff;
    padding: 13px 16px;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.12);
}
.reservation-form .btn-primary { padding: 15px; border-radius: 16px; font-size: 16px; font-weight: 800; }
.privacy-consent-box { border-radius: 16px; overflow: hidden; }

/* ───────── 푸터 ───────── */
.footer { border-radius: 28px 28px 0 0; }

/* ───────── 모달 / 플로팅 ───────── */
.modal-box { border-radius: var(--app-radius-lg); }
.modal-footer .btn-outline { border-radius: 14px; }
.float-btn { width: 60px; height: 60px; }

/* ───────── 모바일 하단 탭바 (앱처럼 항상 보이는 바로가기) ───────── */
.app-tabbar { display: none; }

@media (max-width: 768px) {
    body { padding-bottom: 68px; }

    .hero { padding: 36px 0 84px; border-radius: 0 0 26px 26px; }
    .calc-section { margin-top: -56px; padding-bottom: 28px; }
    .calc-wrap { border-radius: 24px; }

    .stat-item { min-width: 0; padding: 12px 6px; border-radius: 16px; }

    .section-header h2 { font-size: 22px; }
    .providers-section, .benefits-section, .rental-section, .reservation-section { padding: 40px 0 44px; }
    body .social-proof-section { padding: 16px 0 36px; }

    .provider-view-tabs { width: 100%; }
    .provider-view-tab { flex: 1; padding: 10px 8px; font-size: 13px; }
    .speed-tier-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 6px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .speed-tier-tabs::-webkit-scrollbar { display: none; }
    .speed-tier-tab { flex-shrink: 0; }

    .benefits-grid { grid-template-columns: 1fr; gap: 12px; }
    .benefit-card { padding: 16px; flex-direction: row; text-align: left; }
    .benefit-icon { width: 48px; height: 48px; font-size: 24px; margin: 0; }
    .benefit-card h3 { font-size: 15px; }
    .benefit-card p { font-size: 12.5px; }

    .reservation-form-wrap { padding: 22px 18px; border-radius: 24px; }
    .reservation-info h2 { font-size: 24px; }

    .footer { border-radius: 24px 24px 0 0; padding-bottom: 12px; }

    /* 플로팅 버튼은 탭바 위로 */
    .floating-btns { bottom: 84px; right: 12px; }
    .float-btn { width: 50px; height: 50px; }

    .app-tabbar {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 900; /* 헤더(1000)·모달(2000)·플로팅(1500) 아래 */
        height: calc(62px + env(safe-area-inset-bottom));
        padding-bottom: env(safe-area-inset-bottom);
        background: rgba(255, 255, 255, 0.96);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
        border-top: 1px solid var(--app-line);
        box-shadow: 0 -6px 24px rgba(10, 31, 78, 0.08);
    }
    .app-tabbar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 11px;
        font-weight: 700;
        color: #8a94a6;
        transition: color .15s;
    }
    .app-tabbar a .tab-ico { font-size: 20px; line-height: 1; filter: grayscale(1); opacity: .7; transition: all .15s; }
    .app-tabbar a.active { color: var(--primary); }
    .app-tabbar a.active .tab-ico { filter: none; opacity: 1; transform: translateY(-1px) scale(1.08); }
    .app-tabbar a.tab-cta { color: #fff; }
    .app-tabbar a.tab-cta span.tab-pill {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        width: 92%;
        height: 80%;
        border-radius: 16px;
        background: var(--app-grad-soft);
        box-shadow: 0 4px 12px rgba(26, 115, 232, 0.35);
    }
    .app-tabbar a.tab-cta .tab-ico { filter: none; opacity: 1; font-size: 18px; }
}

@media (max-width: 480px) {
    .hero { padding: 30px 0 80px; }
    .hero-title { font-size: 22px; }
}
