/* Cognicard — Shared Stylesheet */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-purple: #6C5CE7;
    --brand-purple-dark: #5C4CD9;
    --text-primary: #1a1a2e;
    --text-secondary: #555;
    --text-muted: #888;
    --bg-page: #fafafa;
    --bg-card: #fff;
    --border-light: #e8e8e8;
    --max-width: 1080px;
    --max-width-narrow: 720px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--brand-purple);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ── Header ── */

.site-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border-light);
    background: #fff;
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.site-logo span {
    color: var(--brand-purple);
}

.site-nav {
    display: flex;
    gap: 28px;
    list-style: none;
}

.site-nav a {
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.15s;
}

.site-nav a:hover {
    color: var(--brand-purple);
    text-decoration: none;
}

/* ── Footer ── */

.site-footer {
    padding: 40px 24px;
    border-top: 1px solid var(--border-light);
    background: #fff;
    margin-top: 80px;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

/* ── About ── */

.about {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 0 24px 60px;
}

.about h2 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.about p {
    color: var(--text-secondary);
    margin-bottom: 14px;
    font-size: 1.02rem;
}

/* ── Hero ── */

.hero {
    text-align: center;
    padding: 80px 24px 60px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.hero h1 span {
    color: var(--brand-purple);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 0 auto 32px;
}

.app-store-badge {
    display: inline-block;
}

.app-store-badge img {
    height: 54px;
}

/* ── Features ── */

.features {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 60px;
}

.features h2 {
    text-align: center;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 40px;
    letter-spacing: -0.02em;
}

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

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

.feature-icon {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 6px;
}

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

/* ── CTA ── */

.cta {
    text-align: center;
    padding: 40px 24px 20px;
}

.cta h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* ── Legal Pages ── */

.legal {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 48px 24px;
}

.legal h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.legal .date {
    color: var(--text-muted);
    margin-bottom: 32px;
}

.legal h2 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-top: 36px;
    margin-bottom: 10px;
}

.legal h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal p,
.legal li {
    margin-bottom: 12px;
    color: var(--text-secondary);
}

.legal ul,
.legal ol {
    padding-left: 20px;
}

.legal a {
    color: var(--brand-purple);
}

/* ── Support Page ── */

.support {
    max-width: var(--max-width-narrow);
    margin: 0 auto;
    padding: 48px 24px;
}

.support h1 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.support .subtitle {
    color: var(--text-secondary);
    margin-bottom: 36px;
}

.contact-box {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 28px 24px;
    margin-bottom: 48px;
}

.contact-box h2 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.contact-box p {
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.support h2.faq-heading {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 24px;
}

.faq-item {
    border-bottom: 1px solid var(--border-light);
    padding: 20px 0;
}

.faq-item:first-of-type {
    border-top: 1px solid var(--border-light);
}

.faq-item h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .hero {
        padding: 48px 20px 40px;
    }

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

    .hero p {
        font-size: 1.05rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .header-inner {
        flex-direction: column;
        gap: 12px;
    }

    .site-nav {
        gap: 20px;
    }

    .footer-inner {
        flex-direction: column;
        text-align: center;
    }
}
