/* Reset */
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
    color: #1a1a2e;
    line-height: 1.6;
}

/* Typography */
h1, h2, h3, h4 {
    margin-top: 0;
    line-height: 1.3;
}
h2 {
    font-size: 32px;
    margin-bottom: 40px;
    text-align: center;
}
a {
    text-decoration: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Legal pages */
body.legal .container {
    max-width: 800px;
}
body.legal main {
    padding: 40px 20px;
}
body.legal h1 {
    font-size: 28px;
    margin-bottom: 24px;
}
body.legal h2 {
    font-size: 22px;
    text-align: left;
    margin-bottom: 16px;
    margin-top: 32px;
}
body.legal p, body.legal li {
    color: #374151;
}

/* Header/Nav */
.header {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 16px 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.logo {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a2e;
    text-decoration: none;
}
.header nav {
    display: flex;
    align-items: center;
    gap: 24px;
}
.header nav a {
    color: #4a5568;
    font-weight: 500;
    transition: color 0.2s;
}
.header nav a:hover {
    color: #667eea;
}

/* Hero */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
}
.hero h1 {
    font-size: 42px;
    margin-bottom: 20px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}
.hero p {
    font-size: 18px;
    opacity: 0.9;
    max-width: 560px;
    margin: 0 auto 32px;
}

/* Sections */
.section {
    padding: 60px 20px;
}
.section-gray {
    background: #f8fafc;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.step {
    text-align: center;
    padding: 24px;
}
.step-num {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-size: 20px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}
.step h3 {
    font-size: 18px;
    margin-bottom: 8px;
}
.step p {
    color: #4a5568;
    margin: 0;
}

/* Digest card example */
.digest-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 28px 32px;
    max-width: 520px;
    margin: 0 auto;
    box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.digest-card p {
    margin: 0 0 20px;
    line-height: 1.8;
}
.digest-card code {
    background: #f1f5f9;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}
.card-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Pricing cards */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}
.pricing-card {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    background: white;
}
.pricing-card.featured {
    border-color: #667eea;
    position: relative;
}
.pricing-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
}
.price {
    font-size: 36px;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 20px;
}
.price span {
    font-size: 16px;
    font-weight: 400;
    color: #94a3b8;
}
.pricing-card ul {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.pricing-card ul li {
    padding: 6px 0;
    color: #374151;
}
.pricing-card ul li::before {
    content: '✓ ';
    color: #667eea;
    font-weight: 700;
}

/* FAQ accordion */
details {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 12px;
    background: white;
    overflow: hidden;
}
summary {
    padding: 16px 20px;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
}
summary::-webkit-details-marker {
    display: none;
}
summary::after {
    content: '+';
    font-size: 20px;
    color: #667eea;
    font-weight: 400;
    transition: transform 0.2s;
}
details[open] summary::after {
    content: '–';
}
details[open] summary {
    border-bottom: 1px solid #e2e8f0;
}
details p {
    padding: 16px 20px;
    margin: 0;
    color: #374151;
}

/* Footer */
.footer {
    background: #1a1a2e;
    color: #94a3b8;
    padding: 40px 20px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.footer a {
    color: #94a3b8;
    transition: color 0.2s;
}
.footer a:hover {
    color: #e2e8f0;
}
.footer-info p {
    margin: 4px 0;
    font-size: 14px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: opacity 0.2s, transform 0.1s;
}
.btn-primary:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    color: white;
}
.btn-secondary {
    background: white;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 12px 26px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}
.btn-secondary:hover {
    background: #667eea;
    color: white;
}
.btn-success {
    background: #10b981;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-danger {
    background: #ef4444;
    color: white;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
.btn-link {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 10px 18px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* Responsive 768px */
@media (max-width: 768px) {
    .pricing-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .hero h1 {
        font-size: 28px;
    }
    .hero p {
        font-size: 16px;
    }
    h2 {
        font-size: 26px;
    }
    .header nav a:not(.btn-primary) {
        display: none;
    }
    .footer-inner {
        flex-direction: column;
    }
}

/* Responsive 480px */
@media (max-width: 480px) {
    .section {
        padding: 40px 16px;
    }
    .hero {
        padding: 60px 16px;
    }
    .hero h1 {
        font-size: 24px;
    }
    .digest-card {
        padding: 20px 16px;
    }
    .pricing-card {
        padding: 24px 20px;
    }
    .btn-primary {
        padding: 12px 20px;
        font-size: 15px;
    }
}
