/* The tokens: the same names and values as the dashboard's, so the site and the product read as one. */
:root {
    --bg: #f4f6f8;
    --surface: #ffffff;
    --border: #dde3e9;
    --text: #22303c;
    --muted: #6b7a88;
    --accent: #2f6fed;
    --accent-contrast: #ffffff;
    --ok: #1e9e56;
    --warn: #c98a1b;
    --radius: 0.6rem;
    --radius-lg: 0.9rem;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --shadow-sm: 0 1px 2px rgb(16 33 51 / 5%);
    --shadow-md: 0 2px 4px rgb(16 33 51 / 5%), 0 8px 20px rgb(16 33 51 / 6%);
    --ring: 0 0 0 3px color-mix(in srgb, var(--accent) 28%, transparent);
    --gutter: 16px;
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0b111a;
        --surface: #1b2534;
        --border: #314052;
        --text: #e4ebf2;
        --muted: #97a6b6;
        --accent: #5b93f5;
        --accent-contrast: #0f1520;
        --ok: #3fb977;
        --warn: #d9a441;
        --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
        --shadow-md: 0 2px 4px rgb(0 0 0 / 30%), 0 8px 20px rgb(0 0 0 / 35%);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0b111a;
    --surface: #1b2534;
    --border: #314052;
    --text: #e4ebf2;
    --muted: #97a6b6;
    --accent: #5b93f5;
    --accent-contrast: #0f1520;
    --ok: #3fb977;
    --warn: #d9a441;
    --shadow-sm: 0 1px 2px rgb(0 0 0 / 30%);
    --shadow-md: 0 2px 4px rgb(0 0 0 / 30%), 0 8px 20px rgb(0 0 0 / 35%);
    color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    background: var(--bg);
    color: var(--text);
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
:where(a, button):focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius); }

h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 700; }
h3 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; max-width: 42rem; }

.wrap { width: min(1040px, 100% - var(--gutter) * 2); margin-inline: auto; }

/* The header: the mark, the name, and the sections. */
header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.8rem 0; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-size: 1.2rem; font-weight: 700; color: var(--text); }
.brand:hover { text-decoration: none; }
.mark {
    display: inline-flex; align-items: center; justify-content: center;
    width: 1.8rem; height: 1.8rem; border-radius: 0.5rem;
    background: var(--accent); color: var(--accent-contrast); font-size: 1rem; font-weight: 700;
}
header nav { display: flex; gap: 0.2rem 1.1rem; flex-wrap: wrap; font-size: 0.95rem; }
header nav a { color: var(--muted); padding: 0.2rem 0; }
header nav a:hover { color: var(--text); text-decoration: none; }

/* The opening: the one-line claim and the picture beside it. */
.hero .wrap {
    display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 2.5rem; align-items: center;
    padding: 4rem 0 3.5rem;
}
.hero .copy { display: flex; flex-direction: column; gap: 1.2rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
    display: inline-block; padding: 0.2rem 0.7rem; border-radius: 999px; font-size: 0.82rem;
    background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent);
}
.figure { display: flex; justify-content: center; }
.figure svg { width: 100%; max-width: 420px; height: auto; }
.figure .land { fill: color-mix(in srgb, var(--accent) 7%, var(--surface)); stroke: var(--border); stroke-width: 1.5; }
.figure .city { fill: color-mix(in srgb, var(--accent) 22%, var(--surface)); stroke: var(--accent); stroke-width: 1.5; }
.figure .city.working { fill: var(--accent); }
.figure .move { fill: none; stroke: var(--ok); stroke-width: 2; stroke-linecap: round; }
.figure .trade { fill: none; stroke: var(--warn); stroke-width: 1.5; stroke-dasharray: 4 4; }
.figure .head { fill: var(--ok); }
.figure text { font-size: 11px; fill: var(--muted); font-family: var(--font); }

/* The sections, alternating on the ground and on the surface. */
section { padding: 3.25rem 0; }
section:nth-of-type(even) { background: var(--surface); border-block: 1px solid var(--border); }
.section-head { display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.8rem; max-width: 46rem; }
.prose { display: flex; flex-direction: column; gap: 1rem; max-width: 46rem; }
.prose li { margin: 0.25rem 0; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.1rem; }
.card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 0.6rem;
}
section:nth-of-type(even) .card { background: var(--bg); box-shadow: none; }
.card h3 { display: flex; align-items: flex-start; gap: 0.55rem; }
.dot { width: 0.6rem; height: 0.6rem; margin-top: 0.4rem; border-radius: 50%; background: var(--accent); flex: none; }
.dot.ok { background: var(--ok); }
.dot.warn { background: var(--warn); }
.dot.muted { background: var(--muted); }

.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1.1rem; margin-top: 1.8rem; }
.pillar { border-left: 3px solid var(--accent); padding: 0.2rem 0 0.2rem 1rem; display: flex; flex-direction: column; gap: 0.3rem; }
.pillar.without { border-color: var(--ok); }
.pillar .where { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }

.readings { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.1rem; margin-top: 1.8rem; }
.reading { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.5rem; }
.reading .curve { height: 56px; }
.reading .curve svg { width: 100%; height: 100%; }
.reading .curve path { fill: none; stroke-width: 2.5; stroke-linecap: round; }
.reading .curve .ground { stroke: var(--border); stroke-width: 1; }
.reading .curve .better { stroke: var(--ok); }
.reading .curve .deeper { stroke: var(--accent); }

.nots { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.9rem 2rem; list-style: none; margin: 0; padding: 0; }
.nots li { display: flex; flex-direction: column; gap: 0.15rem; padding-left: 1rem; border-left: 2px solid var(--border); }
.nots strong { font-weight: 600; }

footer { padding: 2rem 0 2.5rem; color: var(--muted); font-size: 0.9rem; }
footer .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 760px) {
    .hero .wrap { grid-template-columns: minmax(0, 1fr); padding: 2.5rem 0 2.25rem; gap: 1.8rem; }
    .figure svg { max-width: 340px; }
    section { padding: 2.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
