/* Drive or Pass site: "Signal" identity of the app (graphite background, green under the limit, red for PASS,
   Bangers for titles, system font for text). Light and dark. The only font is self-hosted: no third-party
   requests, no script, no cookies. */

@font-face {
  font-family: "Bangers";
  src: url("fonts/Bangers-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --bg: #e8e9ec;
  --surface: #f6f7f9;
  --text: #1c1d20;
  --muted: #5b5e66;
  --line: #cfd1d6;
  --green: #2e7d32;
  --red: #c62828;
  --green-text: #2e7d32;
  --red-text: #c62828;
  --link: #1b5e20;
  --radius: 16px;
  --max: 760px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1c1d20;
    --surface: #26272b;
    --text: #eceef1;
    --muted: #a2a6ae;
    --line: #3a3c42;
    --green-text: #66bb6a;
    --red-text: #ef5350;
    --link: #81c784;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--link); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--green-text); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

header.site { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 8px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Bangers", Impact, sans-serif; font-size: 26px; letter-spacing: .03em; color: var(--text); text-decoration: none; white-space: nowrap; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
nav.site { display: flex; flex-wrap: wrap; justify-content: flex-end; }
nav.site a { color: var(--muted); text-decoration: none; margin-left: 14px; font-size: 15px; font-weight: 600; }
nav.site a:hover, nav.site a[aria-current="page"] { color: var(--text); }
@media (max-width: 460px) { .brand { font-size: 22px; } .brand img { width: 30px; height: 30px; } nav.site a { margin-left: 10px; font-size: 14px; } }

.langs { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 0 6px; font-size: 14px; }
.langs a { color: var(--muted); text-decoration: none; font-weight: 700; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; }
.langs a:hover { color: var(--text); }
.langs a[aria-current="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Landing */
.hero { padding: 28px 0 12px; text-align: center; }
.hero .icon { width: 120px; height: 120px; border-radius: 27px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); }
.hero h1 { font-family: "Bangers", Impact, sans-serif; font-weight: 400; font-size: clamp(44px, 11vw, 72px); line-height: 1; letter-spacing: .03em; margin: 20px 0 10px; }
.drive { color: var(--green-text); }
.pass { color: var(--red-text); }
.hero p.lead { color: var(--muted); font-size: 19px; margin: 0 auto 22px; max-width: 34em; }
.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 12px 28px; border-radius: 999px;
  font-weight: 800; font-size: 17px; text-decoration: none;
  background: var(--green); color: #fff;
}
.button:hover { filter: brightness(1.08); }
.hero .note { color: var(--muted); font-size: 14px; margin: 10px 0 0; }

.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 30px 0 8px; }
.shots img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); display: block; }

.features { display: grid; gap: 14px; margin: 30px 0 20px; }
@media (min-width: 600px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.feature h3 { margin: 0 0 4px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); }

.warning { border-left: 6px solid var(--red); background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0; padding: 14px 18px; margin: 24px 0 8px; }
.warning p { margin: 0; }

/* Text pages */
.doc h1 { font-family: "Bangers", Impact, sans-serif; font-weight: 400; letter-spacing: .03em; font-size: 42px; line-height: 1.1; margin: 28px 0 6px; }
.doc .updated { color: var(--muted); margin: 0 0 18px; }
.doc .summary { background: var(--surface); border: 1px solid var(--line); border-left: 6px solid var(--green); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 8px; }
.doc h2 { font-size: 22px; margin: 32px 0 8px; }
.doc h3 { font-size: 18px; margin: 20px 0 4px; }
.doc ul { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 700; }
.table-wrap { overflow-x: auto; }

footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 22px 0 40px; color: var(--muted); font-size: 14px; }
footer.site nav a { color: var(--muted); margin-right: 16px; display: inline-block; }
footer.site p { margin: 8px 0 0; }
