/* Dirt Signal public website (Phase 24). Colours are the app's own tokens (src/TrailCrew.UI/wwwroot/app.css).
   No web fonts, no scripts: the site's Content-Security-Policy allows this stylesheet and same-origin images only. */
:root {
    --bg: #101916; --panel: #1a2620; --raised: #24332a; --line: #344338; --field: #142019; --tagbg: #30402e;
    --text: #f0eee5; --muted: #a7b3a8; --faint: #748578; --accent: #e7ac68; --green: #c3d294; --danger: #f0a096;
    --radius: 18px; --max: 1080px; --gutter: 20px;
    color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #f2c48f; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; }
h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 650; }
p { margin: 0 0 1em; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.muted { color: var(--muted); }
.eyebrow { color: var(--green); font-size: 12px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--bg); padding: 10px 14px; border-radius: 8px; z-index: 10; font-weight: 700; }
.skip:focus { left: 12px; }

/* ---- Header ---- */
.site-header { position: sticky; top: 0; z-index: 5; background: rgba(16, 25, 22, .92); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand-icon { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 13px; display: grid; place-items: center; flex-shrink: 0; }
.brand-icon img { width: 38px; height: 38px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .12em; color: var(--text); }
.brand-signal { color: var(--accent); }
.brand-tag { font-size: 9px; font-weight: 700; letter-spacing: .14em; color: var(--muted); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 9px 11px; border-radius: 8px; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--panel); }
.site-nav .cta { background: var(--accent); color: var(--bg); margin-left: 6px; }
.site-nav .cta:hover { background: #f2c48f; color: var(--bg); }
@media (max-width: 760px) {
    .site-nav a:not(.cta) { display: none; }
    .brand-tag { display: none; }
}

/* ---- Buttons ---- */
.buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 20px; border-radius: 14px;
    text-decoration: none; font-weight: 700; font-size: 15px; border: 1px solid var(--line); color: var(--text); background: var(--panel); }
.btn:hover { color: var(--text); border-color: var(--accent); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: #f2c48f; color: var(--bg); }
.store { flex-direction: column; align-items: flex-start; gap: 0; line-height: 1.2; min-width: 190px; }
.store small { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--muted); text-transform: uppercase; }
.store strong { font-size: 18px; }
.store.soon strong::after { content: " · soon"; color: var(--green); font-size: 13px; font-weight: 700; }
.store-row { display: flex; align-items: center; gap: 12px; }

/* ---- Hero ---- */
.hero { position: relative; padding: 72px 0 64px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .55;
    background: url("topo.svg") center / cover no-repeat; }
.hero .wrap { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .hero .wrap { grid-template-columns: 1.15fr .85fr; } .hero { padding: 96px 0 88px; } }
.hero-logo { width: 96px; height: 96px; border: 1px solid var(--line); border-radius: 26px; display: grid; place-items: center; margin-bottom: 26px; background: var(--bg); }
.hero-logo img { width: 84px; height: 84px; }
.hero h1 span { color: var(--accent); }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); max-width: 34em; }
.hero-note { font-size: 13px; color: var(--faint); margin-top: 14px; }

/* A phone with a sketch of the Map tab, drawn in CSS until real screenshots replace it (README: Screenshots). */
.phone { justify-self: center; width: min(300px, 80vw); aspect-ratio: 9 / 18.5; border-radius: 42px; padding: 12px;
    background: #0b110f; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 2px #1d2924; }
.screen { position: relative; height: 100%; border-radius: 32px; overflow: hidden; background: var(--field); display: flex; flex-direction: column; }
.screen img { width: 100%; height: 100%; object-fit: cover; }
.screen-bar { display: flex; align-items: center; gap: 8px; padding: 22px 16px 12px; border-bottom: 1px solid var(--line); background: var(--bg); }
.screen-bar img { width: 26px; height: 26px; }
.screen-bar b { color: var(--text); font-size: 12px; letter-spacing: .14em; }
.screen-map { flex: 1; position: relative; background: url("topo.svg") center / 260% no-repeat, #16231c; }
.pin { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--bg);
    background: var(--accent); box-shadow: 0 0 0 6px rgba(231, 172, 104, .2); font-size: 11px; font-weight: 800; }
.pin.g { background: var(--green); box-shadow: 0 0 0 6px rgba(195, 210, 148, .18); }
.pin.p1 { top: 22%; left: 28%; } .pin.p2 { top: 40%; left: 64%; } .pin.p3 { top: 63%; left: 36%; } .pin.p4 { top: 74%; left: 72%; }
.you { position: absolute; top: 50%; left: 47%; width: 16px; height: 16px; border-radius: 50%; background: #7fb2ff; border: 3px solid #fff;
    box-shadow: 0 0 0 10px rgba(127, 178, 255, .2); }
.screen-card { margin: 10px; padding: 12px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); font-size: 12px; line-height: 1.4; }
.screen-card b { display: block; font-size: 13px; }
.screen-card span { color: var(--muted); }
.screen-nav { display: flex; justify-content: space-around; padding: 10px 6px 16px; border-top: 1px solid var(--line); background: var(--bg); color: var(--muted); }
.screen-nav .icon { width: 18px; height: 18px; }
.screen-nav .on { color: var(--accent); }

/* ---- Sections ---- */
.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 36px; }
.features { display: grid; gap: 16px; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature .tile { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--tagbg); color: var(--green); margin-bottom: 16px; }
.feature p { color: var(--muted); margin: 0; }
.feature ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.feature.wide { grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 6px; background: var(--raised); color: var(--text); font-size: 13px; font-weight: 600; padding: 6px 11px; border-radius: 999px; }
.chips .icon { width: 15px; height: 15px; color: var(--green); }

.split { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 56px; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ticks li { display: flex; gap: 12px; }
.ticks .icon { color: var(--green); margin-top: 2px; }
.ticks b { display: block; }
.ticks span { color: var(--muted); }

.principles { display: grid; gap: 16px; }
@media (min-width: 800px) { .principles { grid-template-columns: repeat(3, 1fr); } }
.principle { border-left: 3px solid var(--accent); padding: 4px 0 4px 18px; }
.principle p { color: var(--muted); margin: 0; }

.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; font-weight: 650; padding: 16px 32px 16px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 24px; color: var(--accent); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-right: 32px; }

.callout { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.callout .icon { color: var(--accent); margin-top: 2px; }
.callout.danger { border-color: #5a3a35; }
.callout.danger .icon { color: var(--danger); }
.callout p:last-child { margin: 0; }

.band { background: var(--panel); border: 1px solid var(--line); border-radius: 24px; padding: 40px 28px; text-align: center; }
.band .buttons { justify-content: center; }

/* ---- Document pages (privacy, terms, support…) ---- */
.page { padding: 56px 0 72px; }
.page h1 { font-size: clamp(32px, 5vw, 44px); }
.page h2 { font-size: 22px; margin-top: 2em; }
.page h3 { margin-top: 1.4em; }
.page p, .page li { color: #d9dccf; }
.page ul, .page ol { padding-left: 22px; }
.page li { margin-bottom: .45em; }
.updated { color: var(--faint); font-size: 14px; }
.draft { display: inline-block; background: #3a2e1d; color: var(--accent); border: 1px solid #5c4526; font-size: 12px; font-weight: 750;
    letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 8px; margin-bottom: 18px; }
.toc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 22px; margin: 24px 0; }
.toc ol { margin: 0; columns: 2 220px; }
.toc a { text-decoration: none; }
table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.table-scroll { overflow-x: auto; }
.steps { counter-reset: s; list-style: none; padding: 0 !important; }
.steps li { counter-increment: s; position: relative; padding-left: 44px; margin-bottom: 14px; }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%;
    background: var(--tagbg); color: var(--green); font-weight: 800; display: grid; place-items: center; font-size: 14px; }
code { background: var(--raised); padding: 2px 6px; border-radius: 5px; font-size: .92em; }
.address { font-weight: 700; color: var(--text); user-select: all; }

/* ---- Download ---- */
.download-grid { display: grid; gap: 16px; margin-top: 28px; }
@media (min-width: 700px) { .download-grid { grid-template-columns: 1fr 1fr; } }
.platform { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.platform:target { border-color: var(--accent); }
.platform h2 { font-size: 22px; display: flex; align-items: center; gap: 10px; }
.status { display: inline-block; font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px;
    background: var(--tagbg); color: var(--green); }

.qr-block { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; margin-top: 28px; background: var(--panel);
    border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.qr-block h2 { font-size: 22px; }
.qr { width: 180px; height: 180px; border-radius: 14px; }

/* ---- 404 ---- */
.lost { text-align: center; padding: 96px 0; }
.lost .icon { width: 56px; height: 56px; color: var(--accent); margin: 0 auto 18px; }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0 36px; color: var(--muted); font-size: 14px; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h3 { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.fine { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }

@media (prefers-reduced-motion: no-preference) {
    .hero .wrap > * { animation: rise .6s ease-out both; }
    .hero .wrap > *:nth-child(2) { animation-delay: .12s; }
    @keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
}
@media print {
    .site-header, .site-footer, .skip { display: none; }
    body { background: #fff; color: #000; }
    .page p, .page li { color: #000; }
}
