/* VelosTrack website. Colours come from design/VelosTrack_Brand_Sheet in the app repo. */
:root {
  color-scheme: light dark;
  --bg: #f0f0f0;
  --surface: #ffffff;
  --ink: #141414;
  --muted: #5b6470;
  --line: #e2e4e8;
  --brand: #cc5c05;         /* Brand orange (light bg) */
  --link: #a84a00;          /* Darker orange so link text passes WCAG AA on white */
  --hero-from: #ffffff;
  --hero-to: #f6efe8;
  --chip: #fff4ea;
  --ok: #0f9e5c;            /* Town green (light UI) */
  --speed: linear-gradient(90deg, #0d6be0, #0f9e5c, #db8a05, #b80f0d, #bd2494);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1116;
    --surface: #181a1f;     /* Midnight */
    --ink: #eef1f4;
    --muted: #9aa4af;
    --line: #262b33;
    --brand: #ff8529;       /* Brand orange (dark bg) */
    --link: #ff9a4d;
    --hero-from: #233246;   /* Navy, as in the banner */
    --hero-to: #181a1f;
    --chip: #2a2118;
    --ok: #4de699;
    --speed: linear-gradient(90deg, #3899ff, #4de699, #ffbd38, #ff3d38, #ffb8ff);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.65 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }

.speedbar { height: 4px; background: var(--speed); }

/* Header */
.hero {
  background: linear-gradient(180deg, var(--hero-from), var(--hero-to));
  border-bottom: 1px solid var(--line);
}
.hero-inner, main, footer { max-width: 760px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.hero-inner { padding-top: 22px; padding-bottom: 40px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.wordmark { font-size: 17px; letter-spacing: .32em; white-space: nowrap; }
.wordmark .velos { font-weight: 300; color: var(--brand); }
.wordmark .track { font-weight: 800; color: var(--brand); }

.lang {
  display: inline-flex; border: 1px solid var(--line); border-radius: 999px;
  background: var(--surface); padding: 3px; font-size: 14px; font-weight: 600;
}
.lang a, .lang span { padding: 4px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang span { background: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .lang span { color: #181a1f; } }

h1 { font-size: clamp(30px, 7vw, 42px); line-height: 1.15; letter-spacing: -.02em; margin: 40px 0 8px; }
.updated { color: var(--muted); font-size: 15px; margin: 0; }

/* Summary card */
.summary {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px 22px 18px; box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.summary p { margin: 0 0 16px; font-size: 18px; }
.summary strong { color: var(--brand); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; list-style: none; margin: 0; padding: 0; }
.facts li {
  display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600;
  background: var(--chip); border-radius: 10px; padding: 8px 12px;
}
.facts svg { flex: none; color: var(--ok); }

/* Body */
main { padding-top: 12px; padding-bottom: 48px; }
section { padding-top: 32px; }
h2 {
  font-size: 21px; letter-spacing: -.01em; margin: 0 0 10px;
  display: flex; align-items: center; gap: 10px;
}
h2::before { content: ""; width: 4px; height: 20px; border-radius: 2px; background: var(--brand); flex: none; }
p { margin: 0 0 12px; }
ul.plain { padding-left: 20px; margin: 0; }
ul.plain li { margin-bottom: 6px; }
ul.plain li::marker { color: var(--brand); }

.uses { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 4px 0 0; }
.uses li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px 16px 14px; font-size: 16px;
}
.uses .label { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 4px; }
.uses .ico {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--chip); color: var(--brand); flex: none;
}

.callout {
  background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--ok);
  border-radius: 12px; padding: 14px 16px;
}
.callout strong { color: var(--ok); }

/* Footer */
footer { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; color: var(--muted); font-size: 14px; }
footer .row { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: space-between; }

@media (max-width: 420px) {
  .wordmark { font-size: 14px; letter-spacing: .24em; }
  .brand img { width: 38px; height: 38px; }
  .uses { grid-template-columns: 1fr; }
}

/* Support page */
.tagline { font-size: 19px; color: var(--muted); margin: 0; max-width: 560px; }
.contact {
  margin-top: 28px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 18px; padding: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.08);
}
.contact p { margin: 0 0 16px; font-size: 18px; }
.button {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  background: var(--brand); color: #fff; font-weight: 700; font-size: 17px;
  padding: 12px 20px; border-radius: 12px;
}
.button:hover { filter: brightness(1.08); }
@media (prefers-color-scheme: dark) { .button { color: #181a1f; } }
.address { display: block; margin-top: 12px; font-size: 15px; color: var(--muted); overflow-wrap: anywhere; }
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 4px 0 0; }
.links a {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; color: var(--ink); text-decoration: none; font-weight: 600;
}
.links a:hover { border-color: var(--brand); }
.links a span { color: var(--brand); }
