/* ===== 요금제 페이지 스타일 ===== */

/* ===== 히어로 ===== */
.pricing-page {
    min-height: 100vh;
}

.pricing-hero {
    padding: 120px 24px 64px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--blue-600) 60%, #1d4ed8 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.pricing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.pricing-hero-content {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
}

.pricing-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 24px;
}

.pricing-badge .material-symbols-outlined {
    font-size: 16px;
}

.pricing-hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 16px;
    line-height: 1.2;
}

.pricing-hero-desc {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.7;
    margin-bottom: 32px;
}

.pricing-hero-desc strong {
    color: #ffffff;
    font-weight: 700;
}


/* 캔디 정보 인포 */
.pricing-hodu-info {
    display: inline-flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 14px 28px;
    backdrop-filter: blur(8px);
}

.hodu-info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9375rem;
    font-weight: 500;
}

.hodu-info-item .material-symbols-outlined {
    font-size: 20px;
    color: #ffffff;
}

.hodu-info-divider {
    width: 1px;
    height: 28px;
    background: rgba(255, 255, 255, 0.15);
}

/* ===== 무료 안내 ===== */
.pricing-free-section {
    padding: 40px 24px;
    background: #f8fafc;
}

.pricing-container {
    max-width: 960px;
    margin: 0 auto;
}

.free-notice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.free-notice-card {
    display: flex;
    align-items: center;
    gap: 20px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.free-notice-icon {
    font-size: 36px;
    color: var(--hodu-primary);
    flex-shrink: 0;
}

.free-notice-text strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.free-notice-text p {
    font-size: 0.9375rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* ===== 공통 섹션 ===== */
.pricing-section {
    padding: 72px 24px;
    background: #ffffff;
}

.pricing-section-sub {
    background: #f8fafc;
}

.pricing-section-refund {
    background: #ffffff;
}

.pricing-section-faq {
    background: #f8fafc;
}

.pricing-section-header {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-section-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 12px;
}

.pricing-section-desc {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.7;
}

/* ===== 패키지 그리드 ===== */
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.package-card {
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 20px;
    padding: 28px 20px;
    text-align: center;
    position: relative;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.package-card:hover {
    border-color: var(--amber-500);
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12);
    transform: translateY(-2px);
}

.package-card.package-popular {
    background: linear-gradient(135deg, var(--amber-50) 0%, var(--amber-100) 100%);
    border-color: var(--amber-500);
    box-shadow: 0 8px 32px rgba(245, 158, 11, 0.18);
}

.package-popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--amber-500);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 100px;
    white-space: nowrap;
}

.package-hodu-count {
    font-size: 2.25rem;
    font-weight: 800;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 4px;
}

.package-hodu-count span {
    font-size: 1rem;
    font-weight: 600;
    color: #64748b;
}

.package-bonus {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--amber-600);
    background: rgba(245, 158, 11, 0.1);
    border-radius: 100px;
    padding: 2px 10px;
    display: inline-block;
    margin-bottom: 8px;
}

.package-sim-count {
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-bottom: 12px;
}

.package-price {
    font-size: 1.375rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 20px;
}

.package-price span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
}

.btn-package {
    width: 100%;
    padding: 10px 0;
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-package:disabled {
    background: var(--slate-300);
    color: var(--slate-400);
    cursor: not-allowed;
}

.package-popular .btn-package {
    background: var(--amber-500);
}

.package-popular .btn-package:disabled {
    background: var(--amber-400);
    color: var(--amber-700);
    opacity: 0.7;
}

.package-notice {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #94a3b8;
    margin-top: 8px;
}

.package-notice .material-symbols-outlined {
    font-size: 16px;
}

/* ===== 구독 테이블 ===== */
.sub-table-wrap {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

.sub-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    min-width: 560px;
}

.sub-table thead {
    background: #f1f5f9;
}

.sub-table th {
    padding: 14px 20px;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: 1px solid #e2e8f0;
    white-space: nowrap;
}

.sub-table td {
    padding: 18px 20px;
    font-size: 0.9375rem;
    color: #334155;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.sub-table tbody tr:last-child td {
    border-bottom: none;
}

.sub-row-popular {
    background: #fffbeb;
}

.sub-plan-name {
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.sub-popular-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    background: var(--hodu-primary);
    color: #ffffff;
    padding: 2px 8px;
    border-radius: 100px;
}

.bonus-tag {
    display: inline-block;
    background: var(--amber-50);
    color: var(--amber-600);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 2px 10px;
    border-radius: 100px;
}

.sub-price {
    font-weight: 700;
    color: #1e293b;
}

.btn-sub {
    padding: 8px 18px;
    background: #1e293b;
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
}

.btn-sub:disabled {
    background: var(--slate-300);
    color: var(--slate-400);
    cursor: not-allowed;
}

.btn-sub-popular {
    background: var(--amber-500);
}

.btn-sub-popular:disabled {
    background: var(--amber-400);
    color: var(--amber-700);
    opacity: 0.7;
}

/* ===== 환불 정책 ===== */
.refund-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.refund-card {
    border-radius: 20px;
    padding: 28px 24px;
    border: 1px solid transparent;
}

.refund-card-icon {
    margin-bottom: 14px;
}

.refund-card-icon .material-symbols-outlined {
    font-size: 32px;
}

.refund-card h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.refund-card p {
    font-size: 0.9rem;
    line-height: 1.7;
}

.refund-card p strong {
    font-weight: 700;
}

.refund-ok {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.refund-ok .material-symbols-outlined { color: #16a34a; }
.refund-ok h3 { color: #15803d; }
.refund-ok p { color: #166534; }

.refund-warn {
    background: #fffbeb;
    border-color: #fde68a;
}

.refund-warn .material-symbols-outlined { color: #d97706; }
.refund-warn h3 { color: #b45309; }
.refund-warn p { color: #92400e; }

.refund-no {
    background: #fef2f2;
    border-color: #fecaca;
}

.refund-no .material-symbols-outlined { color: #dc2626; }
.refund-no h3 { color: #b91c1c; }
.refund-no p { color: #991b1b; }

/* ===== FAQ ===== */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    background: #ffffff;
}

.faq-item {
    border-bottom: 1px solid #f1f5f9;
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    text-align: left;
    gap: 16px;
    transition: background 0.15s;
}

.faq-q:hover {
    background: #f8fafc;
}

.faq-arrow {
    flex-shrink: 0;
    font-size: 22px;
    color: #94a3b8;
    transition: transform 0.25s;
}

.faq-item.open .faq-arrow {
    transform: rotate(180deg);
}

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.2s;
    padding: 0 24px;
}

.faq-item.open .faq-a {
    max-height: 200px;
    padding: 0 24px 20px;
}

.faq-a p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.75;
}

/* ===== CTA ===== */
.pricing-cta {
    padding: 64px 24px;
    background: linear-gradient(to bottom right, var(--primary), var(--blue-600));
    position: relative;
    overflow: hidden;
}

.pricing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.pricing-cta-card {
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

.pricing-cta-card h2 {
    font-size: 1.875rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 12px;
}

.pricing-cta-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    margin-bottom: 32px;
    line-height: 1.6;
}

.btn-cta-pricing {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    padding: 14px 32px;
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s, transform 0.15s;
}

.btn-cta-pricing:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.btn-cta-pricing .material-symbols-outlined {
    font-size: 20px;
}

/* ===== 반응형 ===== */
@media (max-width: 768px) {
    .pricing-hero {
        padding: 100px 20px 48px;
    }

    .pricing-hero-title {
        font-size: 2rem;
    }

    .pricing-hodu-info {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }

    .hodu-info-divider {
        width: 100%;
        height: 1px;
    }

    .package-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .refund-grid {
        grid-template-columns: 1fr;
    }

    .pricing-section-title {
        font-size: 1.375rem;
    }

    .pricing-cta-card h2 {
        font-size: 1.5rem;
    }

    .free-notice-card {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .package-grid {
        grid-template-columns: 1fr;
    }
}
