/* Civic Research — Shared Styles */
:root {
    --navy: #0f172a;
    --slate-dark: #1e293b;
    --slate: #334155;
    --slate-light: #475569;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --border: #e2e8f0;
    --bg-subtle: #f8fafc;
    --bg-alt: #f1f5f9;
    --blue: #2563eb;
    --blue-dark: #1d4ed8;
    --text: #1a2332;
    --white: #ffffff;
}

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

.skip-link {
    position: absolute;
    top: -100%;
    left: 16px;
    background: var(--blue);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 100;
    text-decoration: none;
}
.skip-link:focus { top: 8px; }

:focus-visible {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    line-height: 1.6;
    background: var(--white);
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: 1060px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
header {
    padding: 16px 0;
    background: var(--navy);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.logo:hover { text-decoration: none; }
.logo-img {
    height: 32px;
    width: 32px;
    object-fit: contain;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}
.nav-link {
    color: var(--gray-light);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
}
.nav-link:hover { color: var(--white); text-decoration: none; }
.nav-link.active { color: var(--white); }

/* Header auth buttons */
.header-auth {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}
.header-auth-email {
    font-size: 0.8rem;
    color: var(--gray-light);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

/* Section labels and titles */
.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--blue);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-align: center;
    margin-bottom: 8px;
}
.section-title {
    font-size: 1.85rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 48px;
    color: var(--text);
    letter-spacing: -0.02em;
}

/* Cards */
.card {
    flex: 1;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: 10px;
    transition: box-shadow 0.2s, transform 0.15s;
    background: var(--white);
}
.card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
    transform: translateY(-2px);
}
.card-icon {
    font-size: 1.5rem;
    margin-bottom: 12px;
    display: block;
}
.card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
.card p {
    font-size: 0.92rem;
    color: var(--slate-light);
    line-height: 1.55;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    background: var(--blue);
    color: var(--white);
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.btn-primary:hover {
    background: var(--blue-dark);
    text-decoration: none;
    transform: translateY(-1px);
}
.btn-outline {
    display: inline-block;
    background: transparent;
    color: var(--blue);
    padding: 14px 36px;
    border-radius: 6px;
    font-size: 1.05rem;
    font-weight: 600;
    border: 2px solid var(--blue);
    transition: background 0.2s, transform 0.15s;
    cursor: pointer;
    font-family: inherit;
}
.btn-outline:hover {
    background: rgba(37, 99, 235, 0.08);
    text-decoration: none;
    transform: translateY(-1px);
}

/* Footer */
footer {
    padding: 40px 0;
    background: var(--navy);
    text-align: center;
}
.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.footer-links {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}
.footer-links a {
    color: var(--gray-light);
    font-size: 0.85rem;
}
.footer-links a:hover { color: var(--white); text-decoration: none; }
.footer-copyright {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 8px;
}
.footer-disclaimer {
    font-size: 0.8rem;
    color: var(--gray);
    max-width: 640px;
    margin: 0 auto;
    opacity: 0.7;
}

/* FAQ (reusable) */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-item:first-child {
    border-top: 1px solid var(--border);
}
.faq-item summary {
    padding: 20px 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+';
    font-size: 1.3rem;
    font-weight: 400;
    color: var(--gray);
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-left: 16px;
}
.faq-item[open] summary::after {
    content: '\2212';
}
.faq-item .faq-answer {
    padding: 0 0 20px;
    font-size: 0.93rem;
    color: var(--slate-light);
    line-height: 1.65;
}

/* Pricing note */
.pricing-note { font-size: 0.8rem; color: var(--gray); margin: 8px 0 16px; line-height: 1.4; }

/* Access features (homepage #access section) */
.access-features { display: flex; gap: 24px; justify-content: center; margin: 24px 0; }
.access-feature { text-align: left; max-width: 280px; }
.access-feature strong { display: block; font-weight: 600; margin-bottom: 4px; }
.access-feature span { font-size: 0.9rem; color: var(--gray-light); }

/* Mobile */
@media (max-width: 768px) {
    .section-title { font-size: 1.5rem; margin-bottom: 32px; }
    .nav-links { gap: 16px; }
    .nav-link { font-size: 0.8rem; }
    .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
    .header-auth { margin-left: 8px; gap: 6px; }
    .header-auth-email { max-width: 120px; font-size: 0.75rem; }
    #hdr-signup { display: none; }
}
@media (max-width: 480px) {
    .nav-links { gap: 10px; }
    .nav-link { font-size: 0.75rem; }
    .header-auth-email { display: none; }
    .access-features { flex-direction: column; align-items: center; }
}

/* Header auth loading placeholder */
.header-auth-loading { color: var(--gray); font-size: 0.8rem; }

/* Header auth button overrides — smaller buttons in header and auth bar */
.header-auth button.btn-primary,
.header-auth button.btn-outline,
.header-auth a.btn-primary,
.header-auth a.btn-outline {
    padding: 5px 12px;
    font-size: 0.8rem;
    border-radius: 4px;
}
/* Auth bar small buttons (reports page) */
.auth-bar .btn-primary,
.auth-bar .btn-outline {
    padding: 8px 16px;
    font-size: 0.85rem;
}
