/*
 * Shared CSS for SEO landing pages (/alternatives/*, /use-cases/*,
 * /features/*, /docs/*, /glossary). One stylesheet, every page, so we
 * don't ship inline <style> blocks on each generated page.
 *
 * Tone: visually consistent with /about (Inter font, --brand blue, soft
 * panels) but lighter — these are SEO content pages, not the app shell.
 */

:root {
    --bg: #ffffff;
    --fg: #1a1a1a;
    --muted: #666;
    --border: #eaeaea;
    --brand: #007aff;
    --panel: rgba(0, 0, 0, 0.03);
    --accent: #0a7d3b;
    --warn: #b25b00;
    --card: rgba(0, 0, 0, 0.02);
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #121212;
        --fg: #e0e0e0;
        --muted: #aaa;
        --border: #2a2a2a;
        --brand: #0a84ff;
        --panel: rgba(255, 255, 255, 0.04);
        --accent: #5bd38a;
        --warn: #ffb066;
        --card: rgba(255, 255, 255, 0.03);
    }
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg);
    color: var(--fg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.wrap {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 24px 96px;
}

nav.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 12px;
}

nav.topnav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

nav.topnav a:hover { color: var(--fg); }

.brand {
    font-weight: 700;
    font-size: 18px;
    color: var(--fg);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.brand-logo { height: 1em; width: 1em; display: block; }

@media (prefers-color-scheme: dark) {
    .brand-logo { filter: invert(1); }
}

.breadcrumbs {
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.breadcrumbs a:hover { color: var(--brand); }

.breadcrumbs span[aria-current="page"] { color: var(--fg); }

h1 {
    font-size: clamp(28px, 5vw, 44px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.12;
    margin-bottom: 16px;
}

.lead {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--muted);
    margin-bottom: 28px;
    max-width: 640px;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--brand);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, transform 0.1s;
}

.cta:hover { background: #005bb5; }
.cta:active { transform: scale(0.97); }

.cta.ghost {
    background: transparent;
    color: var(--fg);
    border: 1px solid var(--border);
}

.cta.ghost:hover { background: var(--panel); }

.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

section { margin-top: 56px; }

h2 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.015em;
}

h2 + p, h2 + .lead {
    color: var(--muted);
    font-size: 15px;
    margin-bottom: 20px;
    max-width: 680px;
}

h3 {
    font-size: 17px;
    font-weight: 600;
    margin: 24px 0 8px;
    letter-spacing: -0.01em;
}

p { margin: 0 0 12px; }

ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 6px; }

strong { font-weight: 600; }

code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.92em;
    background: var(--panel);
    padding: 2px 6px;
    border-radius: 4px;
}

pre {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px 18px;
    overflow-x: auto;
    font-size: 13px;
    margin: 12px 0 20px;
}

pre code { background: transparent; padding: 0; }

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin: 16px 0 24px;
}

.table-scroll { overflow-x: auto; margin: 0 -8px; padding: 0 8px; }

th, td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    font-weight: 600;
    color: var(--fg);
    background: var(--panel);
}

td.us { background: color-mix(in srgb, var(--brand) 7%, transparent); font-weight: 500; }

.check { color: var(--accent); font-weight: 700; }
.yes { color: var(--accent); }
.no { color: var(--muted); }
.partial { color: var(--warn); }

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 14px;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px 18px;
}

.card h3 { margin-top: 0; }

.card p { color: var(--muted); font-size: 14px; }

.callout {
    margin: 20px 0;
    padding: 14px 18px;
    border: 1px solid var(--border);
    border-left: 4px solid var(--brand);
    border-radius: 8px;
    background: var(--card);
    font-size: 14.5px;
}

.related {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.related a {
    color: var(--brand);
    text-decoration: none;
    font-size: 13px;
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--panel);
}

.related a:hover { background: var(--brand); color: white; border-color: var(--brand); }

footer {
    margin-top: 72px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 13px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

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