/* Milemark shared tokens. Overpass descends from the US highway-sign typeface, a fit for a cab log. */
:root {
  color-scheme: light;
  --bg: #E9EFF3;
  --surface: #FFFFFF;
  --surface-2: #F2F6F8;
  --ink: #0F2A3A;
  --muted: #566B78;
  --line: #CBD6DD;
  --accent: #F5A800;          /* taxi amber: only for the next thing to do, and the cab itself */
  --accent-ink: #1A1300;
  --ok: #14774A;
  --warn: #B3400C;
  --wa: #128C4A;
  --link: #1F5FA8;
  --shadow: 0 6px 20px rgba(15, 42, 58, .18);
  --r-card: 18px;
  --r-btn: 14px;
  --font: "Overpass", "Segoe UI", Roboto, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0C1820;
    --surface: #14262F;
    --surface-2: #1B323D;
    --ink: #EAF2F6;
    --muted: #9DB3BF;
    --line: #2B4552;
    --accent: #FFB703;
    --ok: #5FD39A;
    --warn: #FF9A5C;
    --wa: #1FA85C;
    --link: #7DB4F0;
    --shadow: 0 6px 20px rgba(0, 0, 0, .5);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
  font-size: 18px; line-height: 1.4; -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
a { color: var(--link); }
button { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.brand { display: flex; align-items: center; gap: 10px; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .word { font-size: 24px; font-weight: 900; letter-spacing: -0.02em; }

h1 { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 4px; }
.sub { color: var(--muted); font-size: 16px; margin: 0 0 16px; }

/* buttons */
.btn {
  font: inherit; font-weight: 700; font-size: 16px; min-height: 44px; padding: 8px 16px;
  border-radius: var(--r-btn); border: 2px solid var(--line); background: var(--surface); color: var(--ink);
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.ghost { background: transparent; }
.btn.pill { border-radius: 999px; }
.btn.small { min-height: 34px; padding: 4px 12px; font-size: 14px; border-radius: 10px; }

/* forms */
.field { display: block; margin: 0 0 14px; }
.field > span, .field > label > span { display: block; font-size: 15px; font-weight: 700; margin: 0 0 6px; }
.input, select.input, textarea.input {
  font: inherit; font-size: 17px; width: 100%; min-height: 48px; padding: 10px 12px;
  border-radius: 12px; border: 2px solid var(--line); background: var(--surface); color: var(--ink);
}
.input:focus { border-color: var(--ink); outline: none; }
.err { color: var(--warn); font-weight: 600; font-size: 15px; min-height: 1.4em; margin: 6px 0 0; }

.toast { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-btn); background: var(--surface);
  border-left: 5px solid var(--ok); font-size: 16px; font-weight: 600; }
.toast:empty { display: none; }
.toast.warn { border-left-color: var(--warn); }

/* the install / notification nudges */
.nudge { background: var(--surface); border-radius: var(--r-card); padding: 14px 16px; margin: 0 0 14px;
  border: 2px solid var(--line); font-size: 16px; }
.nudge p { margin: 0 0 10px; }
.nudge .row { display: flex; gap: 8px; flex-wrap: wrap; }
