/* TyperLab Landing Page */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1E3A8A;
    --primary-light: #3B82F6;
    --bg: #F8FAFC;
    --text: #1E293B;
    --text-muted: #64748B;
    --surface: #FFFFFF;
    --border: #E2E8F0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ── Section Common ── */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    color: var(--text);
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 480px;
    margin: 0 auto;
}

/* ── Nav ── */
.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1080px;
    margin: 0 auto;
    padding: 20px 24px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--primary);
    font-weight: 700;
    font-size: 1.25rem;
}

.nav-logo img {
    width: 28px;
    height: 28px;
}

.nav-links {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: var(--primary);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text);
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    margin: 5px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* ── Hero ── */
.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 24px 80px;
    text-align: center;
}

.hero-inner {
    max-width: 640px;
}

.badge {
    display: inline-block;
    background: #EFF6FF;
    color: var(--primary);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 14px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    color: var(--text);
}

.hero h1 .accent {
    color: var(--primary-light);
}

.hero p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-group {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.hero-stat {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 500;
}

.hero-stat-icon {
    font-size: 1.1rem;
}

/* ── Buttons ── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: #15306E;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1.5px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--primary-light);
    color: var(--primary);
}

/* ── Social Proof ── */
.social-proof {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface);
}

.social-proof-text {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 24px;
    font-weight: 500;
}

.proof-stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
    max-width: 600px;
    margin: 0 auto;
}

.proof-stat {
    text-align: center;
}

.proof-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--primary);
}

.proof-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ── How It Works ── */
.how-it-works {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 24px;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    position: relative;
}

.step-card {
    text-align: center;
    position: relative;
}

.step-number-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.step-arrow {
    display: none;
}

/* ── Features ── */
.features {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px 80px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 28px 24px;
}

.feature-icon {
    width: 40px;
    height: 40px;
    background: #EFF6FF;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 1.2rem;
}

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

.feature-card p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ── Comparison Table ── */
.comparison {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 24px;
}

.comparison-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--surface);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

.comparison-table thead th.highlight {
    background: #EFF6FF;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.9rem;
}

.comparison-table tbody td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}

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

.comparison-table tbody td.highlight {
    background: #EFF6FF;
    font-weight: 600;
    color: var(--primary);
}

.comparison-table .row-label {
    font-weight: 600;
    color: var(--text);
}

/* ── Pricing ── */
.pricing {
    max-width: 1080px;
    margin: 0 auto;
    padding: 80px 24px;
}

.pricing-section-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.pricing-tiers {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 48px;
}

.pricing-tier {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 20px;
    text-align: center;
}

.pricing-tier-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.pricing-tier-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.pricing-tier-unit {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.pricing-tier-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 8px;
}

.package-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.package-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    position: relative;
}

.package-card.recommended {
    border-color: var(--primary-light);
    box-shadow: 0 0 0 1px var(--primary-light);
}

.package-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 12px;
    border-radius: 10px;
    white-space: nowrap;
}

.package-card-name {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 8px;
}

.package-card-points {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 4px;
}

.package-card-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 4px;
}

.package-card-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pricing-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ── FAQ ── */
.faq {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px;
}

.faq-list {
    list-style: none;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-bottom: 8px;
    background: var(--surface);
    overflow: hidden;
}

.faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text);
    user-select: none;
    transition: color 0.2s;
}

.faq-question:hover {
    color: var(--primary);
}

.faq-question::after {
    content: '+';
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: transform 0.3s;
    flex-shrink: 0;
    margin-left: 12px;
}

.faq-item.active .faq-question::after {
    content: '\2212';
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer-inner {
    padding: 0 20px 16px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

/* ── Final CTA ── */
.final-cta {
    background: var(--primary);
    padding: 64px 24px;
    text-align: center;
}

.final-cta h2 {
    font-size: 1.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 12px;
}

.final-cta p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 28px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.final-cta .btn {
    background: #fff;
    color: var(--primary);
    font-weight: 700;
}

.final-cta .btn:hover {
    background: #F0F4FF;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ── Footer ── */
.footer {
    border-top: 1px solid var(--border);
    padding: 32px 24px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.footer-inner {
    max-width: 1080px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-business {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 8px;
}

.footer-copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ── Responsive ── */
@media (max-width: 768px) {
    /* Nav mobile */
    .nav-toggle {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--surface);
        flex-direction: column;
        padding: 16px 24px;
        gap: 12px;
        border-bottom: 1px solid var(--border);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
        z-index: 100;
    }

    .nav-links.open {
        display: flex;
    }

    .nav {
        position: relative;
    }

    /* Hero */
    .hero {
        padding: 40px 24px 60px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-stats {
        gap: 16px;
    }

    /* Section titles */
    .section-title {
        font-size: 1.5rem;
    }

    /* Steps */
    .steps-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
    }

    /* Comparison - scrollable */
    .comparison-table {
        min-width: 500px;
    }

    /* Pricing */
    .pricing-tiers {
        grid-template-columns: 1fr;
    }

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

    /* Social Proof */
    .proof-stats {
        gap: 24px;
    }

    /* Footer */
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
}

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