/* ---------------------------------------------------------------------------
   repoglot landing — minimal CSS, dev-tool aesthetic.

   Design rules (so future edits stay coherent):
   - System font stack (no web font dependency).
   - One accent (a muted indigo) used sparingly: primary CTA + table highlight row.
   - Code blocks use a dark background, monospaced, generous padding.
   - One-column layout, max-width 860px, breathing room everywhere.
   - No JavaScript. Works without a build step. Served as-is from /docs/.
   --------------------------------------------------------------------------- */

:root {
    --fg: #1a1a1a;
    --muted: #555;
    --bg: #fafaf7;
    --code-bg: #1e1e2a;
    --code-fg: #e6e6f0;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --rule: #e2e2dd;
    --highlight-bg: #eef2ff;
    --highlight-border: #c7d2fe;
    --container: 860px;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    font-size: 17px;
    line-height: 1.55;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, sans-serif;
}

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

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.92em;
}

code {
    background: rgba(0, 0, 0, 0.06);
    padding: 0.1em 0.35em;
    border-radius: 4px;
}

pre.code-block {
    background: var(--code-bg);
    color: var(--code-fg);
    padding: 1em 1.25em;
    border-radius: 8px;
    overflow-x: auto;
    margin: 1em 0;
}

pre.code-block code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ----- header ----- */

.site-header {
    padding: 4rem 0 3rem;
    border-bottom: 1px solid var(--rule);
    background: linear-gradient(to bottom, #ffffff, var(--bg));
}

.logo {
    margin: 0 0 0.5rem;
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.tagline {
    margin: 0 0 0.75rem;
    font-size: 1.15rem;
    color: var(--muted);
    max-width: 56ch;
}

.tagline-credit {
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
    color: var(--muted);
    opacity: 0.8;
    max-width: 56ch;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem;
    margin: 0;
}

.badges img {
    display: block;
    height: 20px;
}

.badge-link {
    font-size: 0.95rem;
    font-weight: 500;
}

/* ----- main sections ----- */

main section {
    padding: 3rem 0;
    border-bottom: 1px solid var(--rule);
}

main section:last-of-type {
    border-bottom: none;
}

h2 {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

/* ----- install ----- */

.install-intro,
.install-alt,
.hint {
    margin: 0.5rem 0;
    color: var(--muted);
}

.hero-install {
    font-size: 0.95rem;
}

/* ----- bullets ----- */

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

.bullets li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--rule);
}

.bullets li:last-child {
    border-bottom: none;
}

/* ----- demo ----- */

.demo-placeholder p {
    margin: 0 0 0.5rem;
    color: var(--muted);
    font-style: italic;
}

/* ----- comparison table ----- */

.compare {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
}

.compare th,
.compare td {
    text-align: left;
    padding: 0.75rem 0.9rem;
    border-bottom: 1px solid var(--rule);
    vertical-align: top;
}

.compare th {
    background: rgba(0, 0, 0, 0.025);
    font-weight: 600;
    font-size: 0.95rem;
}

.compare tr.highlight td {
    background: var(--highlight-bg);
    border-color: var(--highlight-border);
}

.seam {
    margin: 1.25rem 0 0;
    color: var(--muted);
    font-style: italic;
}

/* ----- CTA buttons ----- */

.buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin: 1rem 0 0;
}

.btn {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border: 1px solid var(--rule);
    border-radius: 6px;
    background: #ffffff;
    color: var(--fg);
    font-weight: 500;
    transition: border-color 120ms ease, background 120ms ease;
}

.btn:hover {
    border-color: var(--accent);
    color: var(--accent);
    text-decoration: none;
}

.btn.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

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

/* ----- footer ----- */

.site-footer {
    padding: 2rem 0 3rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.site-footer p {
    margin: 0;
}

/* ----- responsive tweaks ----- */

@media (max-width: 600px) {
    html {
        font-size: 16px;
    }

    .site-header {
        padding: 2.5rem 0 2rem;
    }

    .logo {
        font-size: 2rem;
    }

    main section {
        padding: 2rem 0;
    }

    .compare th,
    .compare td {
        padding: 0.6rem 0.5rem;
        font-size: 0.95rem;
    }
}
