/*
 * The one stylesheet behind every public document this edge serves — the landing page and the privacy
 * notice — so the two cannot drift apart visually. The palette is the app's and the Manual's: the tokens
 * below are the same values as car-engine's help-site style.css, which in turn takes its accent from
 * car-ui's theme, so a reader moving from the app to the Manual to here sees one product.
 */

:root {
    color-scheme: light dark;
    --ink: #1f2937;
    --muted: #6b7280;
    /* --muted on --panel is 4.39:1, under WCAG AA for text below 18.66px; this is the same grey darkened until
       it clears the bar (5.8:1). Dark mode needs no equivalent — there the pair is already 5.77:1. */
    --muted-strong: #55606f;
    --paper: #ffffff;
    --panel: #f3f4f6;
    --line: #e5e7eb;
    --accent: #2563eb;
}

@media (prefers-color-scheme: dark) {
    :root {
        --ink: #e5e7eb;
        --muted: #9ca3af;
        --muted-strong: #9ca3af;
        --paper: #111827;
        --panel: #1f2937;
        --line: #374151;
        --accent: #60a5fa;
    }
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    background: var(--paper);
    -webkit-text-size-adjust: 100%;
}

main {
    max-width: 46rem;
    margin: 0 auto;
    padding: 2rem 1.25rem 3rem;
}

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

h1 {
    font-size: 1.6rem;
    margin-bottom: 0.2rem;
}

h2 {
    font-size: 1.15rem;
    margin-top: 2rem;
}

.meta {
    color: var(--muted);
    font-size: 0.9rem;
}

ul {
    padding-left: 1.2rem;
}

table {
    border-collapse: collapse;
    width: 100%;
    font-size: 0.92rem;
}

th, td {
    border: 1px solid var(--line);
    padding: 0.45rem 0.6rem;
    text-align: left;
    vertical-align: top;
}

th {
    background: var(--panel);
}

/* Both documents end in a footer. It sits outside <main> so it maps to the contentinfo landmark, which means it
   repeats main's width and centring rather than inheriting them. */
footer {
    max-width: 46rem;
    margin: 0 auto;
    padding: 1.25rem 1.25rem 3rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.9rem;
    text-align: center;
}

footer a {
    white-space: nowrap;
}

/* The landing page only, from here down. */

.hero {
    text-align: center;
    padding: 1.5rem 0 0.5rem;
}

.hero img {
    width: 7rem;
    height: 7rem;
}

.hero h1 {
    margin: 0.6rem 0 0.3rem;
    font-size: 2.1rem;
    letter-spacing: -0.01em;
}

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

.stores {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 2rem 0 0.5rem;
}

/* Deliberately not links: the apps are not published yet, and a control that looks tappable and does
   nothing is worse than one that says why it is inert. */
.store {
    border: 1px dashed var(--line);
    border-radius: 0.6rem;
    padding: 0.7rem 1.1rem;
    background: var(--panel);
    color: var(--muted);
    text-align: left;
    line-height: 1.25;
}

.store strong {
    display: block;
    color: var(--ink);
    font-size: 1rem;
}

.store span {
    color: var(--muted-strong);
    font-size: 0.82rem;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    margin: 2.5rem 0 0;
    padding: 0;
    list-style: none;
}

.features li {
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    padding: 1rem 1.1rem;
    background: var(--panel);
}

.features h2 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.features p {
    margin: 0;
    font-size: 0.95rem;
}

.works-with {
    margin-top: 2.5rem;
    padding: 1rem 1.1rem;
    border: 1px solid var(--line);
    border-radius: 0.6rem;
    font-size: 0.95rem;
}

.works-with p {
    margin: 0;
}

