/* Shared by index.html and PrivacyPolicy.html. Phone first; system typeface; no script. */

/* Colour roles. Blue is the one accent, as on the icon and, in a nearby shade, on the
   app's cycleways. Each fill is paired with the colour for content on it. */
:root {
    --bg: #ffffff;
    --surface: #f2f6fc;
    --text: #14181f;
    --muted: #465060;
    --rule: #d3dae6;
    --primary: #0b57d0;
    --on-primary: #ffffff;
    --link: #0b57d0;
    --focus: #0b57d0;
    --cta: #0b57d0;
    --on-cta: #ffffff;
    --bezel: #14181f;
    --shadow: 0 24px 48px -16px rgb(20 40 80 / 0.35);
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0f1319;
        --surface: #171c25;
        --text: #e8ebf0;
        --muted: #b9c1ce;
        --rule: #333b49;
        --primary: #8ab4f8;
        --on-primary: #0a1a33;
        --link: #8ab4f8;
        --focus: #8ab4f8;
        --cta: #12356f;
        --on-cta: #ffffff;
        --bezel: #2a3140;
        --shadow: 0 24px 48px -16px rgb(0 0 0 / 0.6);
    }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    margin: 0;
    font: 1.0625rem/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--text);
    background: var(--bg);
}

a { color: var(--link); text-underline-offset: 0.15em; }

:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}

img { max-width: 100%; height: auto; }

h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.4rem + 4.2vw, 3.75rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.5rem, 1.25rem + 1.2vw, 2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
p { margin: 0 0 12px; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}
.wrap.narrow { max-width: 760px; }

/* A link that stands on its own line gets a full 48px touch target (TE-1). */
.block-link,
.footer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
}

.skip-link {
    position: absolute;
    left: 8px;
    top: -100px;
    z-index: 1;
    padding: 12px 16px;
    background: var(--bg);
}
.skip-link:focus { top: 8px; }

/* Header ------------------------------------------------------------------------ */

.site-header { border-bottom: 1px solid var(--rule); }
.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 64px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 48px;
    color: var(--text);
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
}
.brand img { width: 40px; height: 40px; flex: none; }

.button {
    display: inline-flex;
    align-items: center;
    min-height: 48px;
    padding: 0 20px;
    border-radius: 24px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
}
.button:hover { filter: brightness(1.1); }

/* On a narrow phone the badge in the hero is the way to the store; the header keeps the name. */
@media (max-width: 479px) {
    .site-header .button { display: none; }
}

/* Sections ---------------------------------------------------------------------- */

section { padding: 56px 0; }
section h2 { margin-bottom: 24px; }
.band { background: var(--surface); }

.hero {
    padding: 40px 0 56px;
    background:
        radial-gradient(60rem 30rem at 85% -10%, color-mix(in srgb, var(--primary) 14%, transparent), transparent 70%),
        var(--bg);
}
.hero-grid { display: grid; gap: 40px; }
.lead {
    margin: 16px 0 24px;
    max-width: 34rem;
    font-size: clamp(1.125rem, 1rem + 0.6vw, 1.375rem);
    line-height: 1.45;
    color: var(--muted);
}

/* The badge is 60px tall: above the 48px floor and the same image the track pages use. */
.store { display: inline-block; border-radius: 10px; }
.store img { display: block; width: 172px; height: 60px; }

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 20px;
    margin-top: 20px;
    color: var(--muted);
    font-size: 1rem;
}
.facts li::before {
    content: "";
    display: inline-block;
    width: 0.5em;
    height: 0.5em;
    margin-right: 0.5em;
    border-radius: 50%;
    background: var(--primary);
    vertical-align: 0.1em;
}

/* The app's own screen, in a plain phone outline. */
.phone {
    justify-self: center;
    width: min(300px, 78vw);
    padding: 8px;
    border-radius: 36px;
    background: var(--bezel);
    box-shadow: var(--shadow);
}
.phone img { display: block; width: 100%; border-radius: 28px; }

.steps { display: grid; gap: 24px; counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
    content: counter(step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 12px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--on-primary);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.steps h3, .features h3 { margin-bottom: 6px; }
.steps p, .features p { margin: 0; color: var(--muted); }

.features { display: grid; gap: 16px; }
.features li {
    padding: 20px;
    border: 1px solid var(--rule);
    border-radius: 16px;
    background: var(--bg);
}
.icon {
    display: block;
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
    fill: none;
    stroke: var(--primary);
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.columns { display: grid; gap: 40px; }
.columns h2 { margin-bottom: 12px; }
.columns p { max-width: 34rem; }
.limits { margin-top: 16px; }
.limits li {
    position: relative;
    max-width: 34rem;
    margin-bottom: 8px;
    padding-left: 1.25em;
}
.limits li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 0.5em;
    height: 0.5em;
    border-radius: 50%;
    background: var(--primary);
}

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 56px;
    padding: 8px 0;
    font-size: 1.125rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
/* A plus that becomes a minus: the two states differ in shape, not colour. */
.faq summary::after {
    content: "+";
    flex: none;
    width: 1em;
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1;
    text-align: center;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { max-width: 40rem; color: var(--muted); }
.faq details p:last-child { margin-bottom: 16px; }

.cta {
    background: var(--cta);
    color: var(--on-cta);
    text-align: center;
}
.cta :focus-visible { outline-color: var(--on-cta); }

.site-footer {
    padding: 32px 0 24px;
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 0.9375rem;
}
.site-footer p { margin: 0 0 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 8px; }

/* Privacy policy ---------------------------------------------------------------- */

.legal { padding: 40px 20px 56px; }
.legal h1 { margin-bottom: 16px; font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem); }
.legal h2 { margin: 32px 0 8px; font-size: 1.25rem; }
/* Addresses are the longest words on the page; let them break on a narrow phone. */
.legal a, .site-footer a { overflow-wrap: anywhere; }

/* Wider screens ----------------------------------------------------------------- */

@media (min-width: 600px) {
    .features { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 760px) {
    .steps { grid-template-columns: repeat(3, 1fr); gap: 32px; }
    .columns { grid-template-columns: repeat(2, 1fr); gap: 56px; }
}

@media (min-width: 900px) {
    section { padding: 80px 0; }
    .hero { padding: 72px 0 88px; }
    .hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 56px; }
    .phone { width: min(320px, 100%); }
    .features { grid-template-columns: repeat(3, 1fr); gap: 20px; }
    .features li { padding: 24px; }
}
