/* gosparq.com — Site CSS
   Load order: Google Fonts -> Bootstrap 5.3.2 -> sparq-base.css -> main.css */

/* ── Fonts & Tokens ───────────────────────────────── */

:root {
    --font-heading: 'Sora', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

    --color-bg: #ffffff;
    --color-bg-secondary: #f7f8fa;
    --color-border: #e4e6eb;
    --color-text: #111827;
    --color-text-muted: #6b7280;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-light: #eef2ff;
    --accent-surface: #eef2ff;
    --accent-border: #c7d2fe;
    --color-green: #10b981;
    --color-amber: #f59e0b;
    --color-surface: #ffffff;
    --color-shadow: rgba(0,0,0,0.06);
    --footer-bg: #111827;
    --radius-btn: 8px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--color-text);
}

code, pre, .mono {
    font-family: var(--font-mono);
}

/* Hide Alpine x-cloak until init */
[x-cloak] { display: none !important; }

/* ── Utility ──────────────────────────────────────── */

.container-narrow {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ── Nav ──────────────────────────────────────────── */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #fff;
    border-bottom: 1px solid var(--color-border);
    transition: box-shadow 0.2s;
}

.site-nav.has-shadow {
    box-shadow: 0 1px 8px var(--color-shadow);
}

.nav-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-brand { text-decoration: none; }

.brand-logo {
    height: 30px;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-group {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: #374151;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--color-text);
    background: var(--color-bg-secondary);
    text-decoration: none;
}

.nav-link--active {
    color: var(--color-text);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-user-name {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text);
}

.nav-logout {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-decoration: none;
    padding: 0.375rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all 0.15s;
}

.nav-logout:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
    background: var(--color-bg-secondary);
}

.nav-pill-admin {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: 9999px;
    background: var(--color-bg-secondary);
    color: var(--color-text-muted);
    text-decoration: none;
    border: 1px solid var(--color-border);
}

.nav-pill-admin:hover {
    color: var(--color-text);
    border-color: var(--color-text-muted);
}

.btn-ghost {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-muted);
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s;
}

.btn-ghost:hover {
    color: var(--color-text);
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 4px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: #374151;
    border-radius: 2px;
    transition: transform 0.2s;
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        border-bottom: 1px solid var(--color-border);
        padding: 1rem 1.5rem;
        flex-direction: column;
        gap: 0.5rem;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }

    .nav-group {
        flex-direction: column;
        align-items: stretch;
    }

    .nav-actions {
        flex-direction: column;
        align-items: stretch;
        padding-top: 0.75rem;
        border-top: 1px solid var(--color-border);
    }

    .nav-actions .btn-ghost {
        text-align: center;
    }

    .nav-toggle { display: flex; }

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

/* ── Buttons ──────────────────────────────────────── */

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-btn);
    transition: background 0.15s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

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

.btn-primary--large {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

.btn-primary-sm {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-btn);
    transition: background 0.15s;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

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

.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-btn);
    transition: background 0.15s, border-color 0.15s;
    text-decoration: none;
    cursor: pointer;
}

.btn-secondary:hover {
    background: var(--accent-surface);
    border-color: var(--accent-border);
    color: var(--accent);
}

.btn-link {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.btn-link:hover {
    color: var(--accent-hover);
}

/* ── Sections ─────────────────────────────────────── */

.section {
    padding: 5rem 0;
}

.section--alt {
    background: var(--color-bg-secondary);
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
    max-width: 640px;
    line-height: 1.6;
}

.text-center .section-subtitle {
    margin-inline: auto;
}

.section-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
    justify-content: center;
}

/* ── Hero ─────────────────────────────────────────── */

.hero {
    padding: 5rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: -100px;
    right: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(ellipse, var(--accent-light) 0%, transparent 70%);
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.hero .container-narrow {
    position: relative;
    z-index: 1;
}

.hero-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.hero-copy {
    max-width: 520px;
}

.hero-eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 3.25rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--color-text);
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    max-width: 480px;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.hero-microcopy {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
}

.hero-screenshots {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.hero-screenshot {
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(79,70,229,0.12);
    max-width: 100%;
}

.hero-screenshots .hero-screenshot {
    position: absolute;
}

.hero-screenshot--back {
    top: 0;
    left: 0;
    width: 82%;
    z-index: 1;
}

.hero-screenshot--front {
    bottom: 0;
    right: 0;
    width: 70%;
    z-index: 2;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
}

@media (max-width: 768px) {
    .hero { padding: 3rem 0 2rem; }
    .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
    .hero-title { font-size: 2.25rem; }
    .hero-subtitle { font-size: 1rem; }
    .hero-actions { flex-wrap: wrap; }
    .hero-screenshots { aspect-ratio: 5 / 4; }
    .hero-screenshot--back { width: 85%; }
    .hero-screenshot--front { width: 72%; }
}

/* ── Image Placeholder ────────────────────────────── */

.img-placeholder {
    background: var(--color-bg-secondary);
    border: 1px dashed var(--color-border);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.875rem;
    font-weight: 500;
    min-height: 280px;
    padding: 2rem;
    text-align: center;
}

/* ── Social Proof Bar ─────────────────────────────── */

.social-proof-bar {
    padding: 2.5rem 0;
    background: var(--color-bg-secondary);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.social-proof-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-text-muted);
    text-align: center;
    margin-bottom: 1.25rem;
}

.social-proof-logos {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.social-proof-logo {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #9ca3af;
    letter-spacing: 0.01em;
}

/* ── Problem Section ──────────────────────────────── */

.problem-section {
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.problem-section .section-title {
    font-size: 2rem;
}

.problem-section p {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.pain-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    text-align: left;
}

.pain-card {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
}

.pain-card-icon {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.pain-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
}

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

@media (max-width: 768px) {
    .pain-cards { grid-template-columns: 1fr; }
}

/* ── Feature Sections (alternating) ───────────────── */

.feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    padding: 4rem 0;
}

.feature-block:nth-child(even) {
    direction: rtl;
}

.feature-block:nth-child(even) > * {
    direction: ltr;
}

.feature-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.feature-block h3 {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 1rem;
}

.feature-block p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin-bottom: 1.25rem;
}

.feature-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-bullets li {
    font-size: 0.9375rem;
    color: var(--color-text);
    padding: 0.375rem 0;
    padding-left: 1.25rem;
    position: relative;
}

.feature-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

@media (max-width: 768px) {
    .feature-block,
    .feature-block:nth-child(even) {
        grid-template-columns: 1fr;
        gap: 2rem;
        direction: ltr;
    }
}

/* ── Aha Callout ──────────────────────────────────── */

.aha-callout {
    padding: 5rem 0;
    background: var(--accent);
    color: #fff;
    text-align: center;
}

.aha-callout h2 {
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 1rem;
    max-width: 640px;
    margin-inline: auto;
}

.aha-callout p {
    color: rgba(255,255,255,0.8);
    font-size: 1.0625rem;
    margin-bottom: 2rem;
    max-width: 520px;
    margin-inline: auto;
    line-height: 1.6;
}

.aha-callout .btn-primary {
    background: #fff;
    color: var(--accent);
    font-weight: 600;
}

.aha-callout .btn-primary:hover {
    background: rgba(255,255,255,0.9);
}

/* ── Who Cards ────────────────────────────────────── */

.who-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.who-card {
    padding: 2rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.who-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.who-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .who-cards { grid-template-columns: 1fr; }
}

/* ── Pricing Teaser ───────────────────────────────── */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    align-items: start;
    max-width: 720px;
    margin-inline: auto;
}

.pricing-card {
    padding: 2rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    text-align: center;
    position: relative;
}

.pricing-card--highlighted {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(79,70,229,0.12);
}

.pricing-badge {
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.75rem;
    background: var(--accent);
    color: #fff;
    border-radius: 100px;
    white-space: nowrap;
}

.pricing-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pricing-price {
    margin-bottom: 0.25rem;
}

.pricing-amount {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--color-text);
}

.pricing-period {
    font-size: 1rem;
    color: var(--color-text-muted);
}

.pricing-members {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    width: 100%;
}

.pricing-trial-note {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    font-style: italic;
}

.pricing-microcopy {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-top: 2rem;
    text-align: center;
}

@media (max-width: 768px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-inline: auto; }
}

/* ── Built Different Tiles ────────────────────────── */

.diff-tiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.diff-tile {
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-bg);
}

.diff-tile h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.diff-tile p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 768px) {
    .diff-tiles { grid-template-columns: 1fr; }
}

/* ── CTA Banner ───────────────────────────────────── */

.cta-banner {
    padding: 4rem 0;
    background: var(--color-bg-secondary);
    text-align: center;
}

.cta-banner h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.cta-banner p {
    color: var(--color-text-muted);
    font-size: 1.125rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-inline: auto;
    line-height: 1.6;
}

/* ── Comparison Table ─────────────────────────────── */

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

.comparison-table th,
.comparison-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--color-border);
}

.comparison-table thead th {
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--color-text-muted);
    border-bottom: 2px solid var(--color-border);
}

.comparison-table tbody tr:nth-child(even) {
    background: var(--color-bg-secondary);
}

.comparison-table .check,
.comparison-table .fa-check {
    color: var(--color-green);
    font-weight: 600;
}

.comparison-table .dash {
    color: #d1d5db;
}

@media (max-width: 768px) {
    .comparison-table-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .comparison-table {
        min-width: 560px;
    }
}

/* ── FAQ Accordion ────────────────────────────────── */

.faq-list {
    max-width: 720px;
    margin: 2rem auto 0;
}

.faq-item {
    border-bottom: 1px solid var(--color-border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: var(--color-text);
    text-align: start;
    font-family: var(--font-body);
}

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

.faq-icon {
    font-size: 1.25rem;
    transition: transform 0.2s;
    flex-shrink: 0;
    margin-inline-start: 1rem;
    color: var(--accent);
}

.faq-icon--open { transform: rotate(45deg); }

.faq-answer { overflow: hidden; }

.faq-answer p {
    padding-bottom: 1.25rem;
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Footer ───────────────────────────────────────── */

.site-footer {
    background: var(--footer-bg);
    padding: 3.5rem 0 2rem;
    margin-top: 0;
}

.footer-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 2rem;
}

.footer-col {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255,255,255,0.5);
    margin-bottom: 0.5rem;
}

.footer-col a {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-brand-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 280px;
}

.footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
}

.footer-copy a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
}

.footer-copy a:hover {
    color: rgba(255,255,255,0.7);
}

.footer-location {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
}

.footer-cookies {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-cookies:hover {
    color: rgba(255,255,255,0.7);
}

@media (max-width: 768px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-bottom { flex-direction: column; gap: 0.5rem; text-align: center; }
}

/* ── Contact Form ─────────────────────────────────── */

.contact-form {
    max-width: 560px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 0.375rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.625rem 0.875rem;
    font-size: 0.9375rem;
    font-family: var(--font-body);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
    transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-surface);
}

.contact-emails {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    font-size: 0.9375rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.contact-emails a {
    color: var(--accent);
    text-decoration: none;
}

.contact-emails a:hover {
    color: var(--accent-hover);
}

/* ── About Page ───────────────────────────────────── */

.prose {
    max-width: 680px;
    margin: 0 auto;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    font-size: 1.0625rem;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.prose ul {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.prose ul li {
    font-size: 1rem;
    color: var(--color-text-muted);
    padding: 0.375rem 0 0.375rem 1.25rem;
    position: relative;
    line-height: 1.6;
}

.prose ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.875rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.team-cards {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.team-card {
    text-align: center;
    width: 180px;
}

.team-card-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: var(--color-bg-secondary);
    border: 1px dashed var(--color-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    color: var(--color-text-muted);
    font-size: 0.75rem;
}

.team-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
}

.team-card p {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* ── Newsletter ───────────────────────────────────── */

.newsletter-form {
    display: flex;
    gap: 0.5rem;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter-input {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.9375rem;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    background: var(--color-bg);
    color: var(--color-text);
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-surface);
}

/* ── Image Placeholder — Avatar ───────────────────── */

.img-placeholder--avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    min-height: auto;
    margin: 0 auto 0.75rem;
    font-size: 0.75rem;
}

/* ── About: Values List ──────────────────────────── */

.values-list {
    max-width: 640px;
    margin: 0 auto;
}

.value-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--color-border);
}

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

.value-item p {
    font-size: 1rem;
    color: var(--color-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* ── Pricing: Detail & Features ──────────────────── */

.pricing-detail {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-top: 0.75rem;
    font-style: italic;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0 0;
    text-align: left;
}

.pricing-features li {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
}

.pricing-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-green);
    font-weight: 600;
}

/* ── Footer: Brand Column & Extras ───────────────── */

.footer-col--brand {
    gap: 0.375rem;
}

.footer-logo {
    height: 40px;
    width: auto;
    margin-bottom: 0.5rem;
    filter: brightness(0) invert(1);
}

.footer-tagline {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.5);
    line-height: 1.5;
    max-width: 280px;
    margin: 0;
}

.footer-legal {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.35);
    line-height: 1.4;
    margin: 0;
}

.footer-built {
    font-size: 0.8125rem;
    color: rgba(255,255,255,0.3);
}

/* ── Error Pages ──────────────────────────────────── */

.error-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-content { max-width: 400px; }

.error-code {
    font-size: 4rem;
    font-weight: 700;
    color: var(--accent-border);
    line-height: 1;
}

.error-content h1 {
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.error-content p {
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

/* ══════════════════════════════════════════════════════
   Community Pages (blog, help, changelog)
   ══════════════════════════════════════════════════════ */

/* Page hero */
.page-hero {
    padding: 3rem 0 2rem;
    background: linear-gradient(180deg, var(--accent-surface) 0%, var(--color-bg) 100%);
    text-align: center;
}

.page-hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-hero p {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    margin: 0;
}

/* Content card grid */
.content-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) { .content-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .content-grid { grid-template-columns: 1fr; } }

/* Content card */
.content-card {
    display: flex;
    flex-direction: column;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    overflow: hidden;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.content-card:hover {
    border-color: var(--accent);
    box-shadow: 0 2px 8px rgba(79,70,229,0.1);
    transform: translateY(-2px);
}

.content-card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.content-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.content-card-body {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.content-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.content-card-meta {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.content-card-meta-sep { margin: 0 0.125rem; }

.content-card-summary {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
    margin: 0 0 0.75rem;
    flex: 1;
}

.content-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

/* Tag / pill */
.tag {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 0.125rem 0.5rem;
    border-radius: 100px;
    background: var(--accent-surface);
    color: var(--accent);
}

/* Breadcrumb */
.breadcrumb {
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--accent); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-hover); }
.breadcrumb-sep { margin: 0 0.375rem; color: var(--color-text-muted); }

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 2.5rem;
}

.page-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.page-link:hover { color: var(--accent-hover); }
.page-info { font-size: 0.875rem; color: var(--color-text-muted); }

/* Detail page */
.page-detail { max-width: 720px; margin: 0 auto; }
.page-detail-header { margin-bottom: 2rem; }
.page-detail h1 { font-size: 2rem; font-weight: 700; margin-bottom: 0.75rem; line-height: 1.3; }

/* Content meta */
.content-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
    color: var(--color-text-muted);
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}

/* Content body (prose) */
.content-body { font-size: 1rem; line-height: 1.8; color: var(--color-text); }
.content-body h2 { font-size: 1.375rem; font-weight: 600; margin-top: 2rem; margin-bottom: 0.75rem; }
.content-body h3 { font-size: 1.125rem; font-weight: 600; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.content-body p { margin-bottom: 1rem; }
.content-body ul, .content-body ol { padding-inline-start: 1.5rem; margin-bottom: 1rem; }
.content-body blockquote { border-inline-start: 3px solid var(--accent); margin: 1.5rem 0; padding: 0.75rem 1.25rem; background: var(--accent-surface); border-radius: 0 6px 6px 0; color: var(--color-text); }
.content-body blockquote p { margin-bottom: 0; }
.content-body code { background: var(--color-bg-secondary); padding: 0.125rem 0.375rem; border-radius: 4px; font-size: 0.875rem; }
.content-body pre { background: var(--color-bg-secondary); padding: 1rem; border-radius: 6px; overflow-x: auto; margin-bottom: 1rem; }
.content-body pre code { background: none; padding: 0; }

/* Detail image */
.content-detail-image { margin-bottom: 2rem; border-radius: 8px; overflow: hidden; }
.content-detail-image img { width: 100%; display: block; }

/* Author avatar */
.content-author { display: flex; align-items: center; gap: 0.5rem; }
.content-author-avatar { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }

/* Filter bar */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1rem 1.25rem;
    background: var(--color-bg-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.filter-group { display: flex; align-items: center; gap: 0.5rem; }
.filter-label { font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.05em; }

.filter-pills { display: flex; flex-wrap: wrap; gap: 0.375rem; }

.filter-pill {
    font-size: 0.8125rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text-muted);
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.filter-pill:hover { border-color: var(--accent); color: var(--accent); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }

@media (max-width: 480px) { .filter-bar { flex-direction: column; } }

/* Sidebar */
.sidebar { position: sticky; top: 80px; }
.sidebar-heading { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--color-border); }
.sidebar-list { list-style: none; padding: 0; margin: 0; }
.sidebar-list li { margin-bottom: 0.5rem; }
.sidebar-list a { font-size: 0.875rem; color: var(--accent); text-decoration: none; }
.sidebar-list a:hover { color: var(--accent-hover); }

/* Detail layout with sidebar */
.detail-layout { display: grid; grid-template-columns: 1fr 240px; gap: 3rem; align-items: start; }
@media (max-width: 768px) { .detail-layout { grid-template-columns: 1fr; gap: 2rem; } }

/* Module chip */
.module-chip { font-size: 0.6875rem; font-weight: 600; padding: 0.125rem 0.5rem; border-radius: 100px; background: var(--accent-surface); color: var(--accent); }
.module-chip-more { background: var(--color-bg-secondary); color: var(--color-text-muted); }
.module-chip-lg { font-size: 0.8125rem; padding: 0.25rem 0.75rem; }

/* Community layout (sidebar + main) */
.community-layout { display: flex; gap: 2.5rem; padding: 2.5rem 0 4rem; }
.community-sidebar { width: 190px; flex-shrink: 0; position: sticky; top: 80px; align-self: start; }

.community-sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4375rem 0.625rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    text-decoration: none;
    border-radius: 0 6px 6px 0;
    border-left: 2px solid transparent;
    transition: background 0.12s, color 0.12s;
}

.community-sidebar-link:hover { background: var(--color-bg-secondary); color: var(--color-text); }
.community-sidebar-link--active { background: var(--accent-surface); color: var(--accent); font-weight: 600; border-left-color: var(--accent); }
.community-sidebar-divider { height: 1px; background: var(--color-border); margin: 0.75rem 0; }
.community-sidebar-ext { margin-left: auto; font-size: 0.625rem; color: var(--color-text-muted); }
.community-main { flex: 1; min-width: 0; }
.community-main .page-detail { max-width: none; margin: 0; }

.community-section-title { font-size: 1.875rem; font-weight: 700; margin: 0 0 0.5rem; letter-spacing: -0.01em; }
.community-section-desc { font-size: 0.9375rem; color: var(--color-text-muted); margin-bottom: 1.75rem; }

@media (max-width: 768px) {
    .community-layout { flex-direction: column; gap: 1.5rem; padding: 1.5rem 0 3rem; }
    .community-sidebar { width: 100%; position: static; display: flex; flex-wrap: wrap; gap: 0.375rem; }
    .community-sidebar .sidebar-heading, .community-sidebar-divider { display: none; }
    .community-sidebar-link { border-left: none; border-radius: 100px; border: 1px solid var(--color-border); padding: 0.25rem 0.75rem; font-size: 0.75rem; }
    .community-sidebar-link--active { border-color: var(--accent); }
}

/* ══════════════════════════════════════════════════════
   Cookie Consent
   ══════════════════════════════════════════════════════ */

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 12px rgba(0,0,0,0.08);
    padding: 1rem 1.5rem;
}

.cookie-banner-inner { max-width: 1140px; margin: 0 auto; display: flex; align-items: center; gap: 1.5rem; }
.cookie-banner-text { flex: 1; font-size: 0.875rem; color: var(--color-text); }
.cookie-banner-text p { margin: 0; }
.cookie-banner-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }
.cookie-banner-btn { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

.cookie-modal-overlay { position: fixed; inset: 0; z-index: 10000; background: rgba(26,26,46,0.5); display: flex; align-items: center; justify-content: center; padding: 1rem; }
.cookie-modal { background: var(--color-bg); border-radius: 12px; box-shadow: 0 16px 48px rgba(0,0,0,0.15); max-width: 480px; width: 100%; max-height: 90vh; overflow-y: auto; }
.cookie-modal-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--color-border); }
.cookie-modal-header h3 { font-size: 1.125rem; margin: 0; }
.cookie-modal-close { background: none; border: none; font-size: 1.5rem; color: var(--color-text-muted); cursor: pointer; padding: 0.25rem 0.5rem; border-radius: 6px; line-height: 1; transition: color 0.15s, background 0.15s; }
.cookie-modal-close:hover { color: var(--color-text); background: var(--color-bg-secondary); }
.cookie-modal-body { padding: 1rem 1.5rem; }
.cookie-modal-footer { display: flex; justify-content: flex-end; gap: 0.5rem; padding: 1rem 1.5rem; border-top: 1px solid var(--color-border); }
.cookie-modal-btn { padding: 0.5rem 1.25rem; font-size: 0.875rem; }

.cookie-category { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--color-border); }
.cookie-category:last-of-type { border-bottom: none; }
.cookie-category-info { display: flex; flex-direction: column; gap: 0.25rem; flex: 1; }
.cookie-category-name { font-weight: 600; font-size: 0.9375rem; color: var(--color-text); }
.cookie-category-desc { font-size: 0.8125rem; color: var(--color-text-muted); line-height: 1.5; }
.cookie-note { font-size: 0.8125rem; color: var(--color-text-muted); margin: 0.75rem 0 0; }

.cookie-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; margin-top: 0.15rem; cursor: pointer; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.cookie-toggle-slider { position: absolute; inset: 0; background: var(--color-bg-secondary); border-radius: 22px; transition: background 0.2s; }
.cookie-toggle-slider::before { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; background: var(--color-bg); border-radius: 50%; transition: transform 0.2s; box-shadow: 0 1px 3px rgba(0,0,0,0.1); }
.cookie-toggle input:checked + .cookie-toggle-slider { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-slider::before { transform: translateX(18px); }
.cookie-toggle-disabled { cursor: not-allowed; opacity: 0.6; }

@media (max-width: 768px) {
    .cookie-banner-inner { flex-direction: column; text-align: center; }
    .cookie-banner-actions { width: 100%; }
    .cookie-banner-actions button { flex: 1; }
}
