/*
 * LOGIQ support site — shared styles.
 *
 * Single stylesheet, no framework and no external requests: the site is four
 * text pages and pulling in a CDN would add tracking surface to pages whose
 * entire purpose is to explain that the app tracks very little.
 *
 * The palette matches the app's indigo so the site reads as the same product.
 */

:root {
    --indigo: #4338ca;
    --indigo-light: #eef0ff;
    --ink: #1b1b21;
    --muted: #55545e;
    --line: #e2e0ea;
    --bg: #fbf8ff;
    --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --indigo: #bec2ff;
        --indigo-light: #23233a;
        --ink: #e4e1e9;
        --muted: #a9a7b3;
        --line: #35343b;
        --bg: #131318;
        --card: #1b1b21;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
                 "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.65;
    -webkit-text-size-adjust: 100%;
}

.wrap { max-width: 46rem; margin: 0 auto; padding: 0 1.25rem; }

/* ── Header ─────────────────────────────────────────────── */

header { border-bottom: 1px solid var(--line); background: var(--card); }

.bar {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.mark {
    display: grid;
    grid-template-columns: repeat(3, 10px);
    grid-gap: 3px;
    flex: 0 0 auto;
}
.mark i { display: block; width: 10px; height: 10px; border-radius: 2px; background: var(--indigo); opacity: 0.3; }
.mark i.on { opacity: 1; }

.brand { font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; text-decoration: none; color: var(--ink); }
.brand span { display: block; font-weight: 400; font-size: 0.8rem; color: var(--muted); }

nav { margin-left: auto; display: flex; gap: 1.1rem; flex-wrap: wrap; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.93rem; }
nav a:hover, nav a[aria-current="page"] { color: var(--indigo); }

/* ── Content ────────────────────────────────────────────── */

main { padding: 2.5rem 0 3rem; }

h1 { font-size: 1.9rem; line-height: 1.25; letter-spacing: -0.02em; margin: 0 0 0.35rem; }
h2 { font-size: 1.2rem; margin: 2.2rem 0 0.6rem; letter-spacing: -0.01em; }
h3 { font-size: 1.02rem; margin: 1.5rem 0 0.4rem; }
p, li { color: var(--ink); }
.lead { color: var(--muted); font-size: 1.03rem; margin-top: 0; }
.updated { color: var(--muted); font-size: 0.88rem; margin-bottom: 2rem; }

a { color: var(--indigo); }

ul { padding-left: 1.15rem; }
li { margin: 0.3rem 0; }

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.15rem 1.25rem;
    margin: 1.5rem 0;
}
.card h3 { margin-top: 0; }

table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; }
th, td { text-align: left; padding: 0.6rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 0.9rem; margin: 1.75rem 0; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.tile h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.93rem; }
.tile a { text-decoration: none; }

.mail {
    display: inline-block;
    background: var(--indigo-light);
    border-radius: 999px;
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 600;
}

footer { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: 0.88rem; }
footer a { color: var(--muted); }
footer nav { margin: 0.5rem 0 0; gap: 1rem; }

@media (max-width: 34rem) {
    body { font-size: 16px; }
    h1 { font-size: 1.55rem; }
    nav { width: 100%; margin-left: 0; }
}
