/* ROAD LOG — design tokens (spec §1) + base + auth screens */
:root {
  --brand-blue: #1059D5;
  --brand-blue-deep: #0049CE;
  --ink: #000000;
  --navy-bar: #0C121B;
  --text-secondary: #6B7280;
  --live-green: #1CC16E;
  --danger-red: #DC2626;
  --amber-private: #D97706;
  --divider: #E2E4E8;
  --track-grey: #E3E5E8;
  --surface: #FFFFFF;
  --page-bg: #F5F6F9;
  --radius-card: 14px;
  --radius-btn: 8px;
  --shadow-float: 0 2px 10px rgba(12, 18, 27, 0.10);
  --font: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--page-bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- type scale (spec §1.2) --- */
h1 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 12px; }
.brand { text-transform: uppercase; font-weight: 900; }
.label-caps {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-secondary);
}
small, .muted { color: var(--text-secondary); font-size: 12px; }

/* --- buttons (spec §3.4) --- */
.btn {
  display: inline-block; padding: 10px 18px; border-radius: var(--radius-btn);
  border: 1px solid var(--divider); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn--primary { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.btn--primary:hover { background: var(--brand-blue-deep); }
.btn--danger { color: var(--danger-red); }
.btn--wide { width: 100%; }
a { color: var(--brand-blue); }

/* --- auth cards --- */
.auth-card {
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-card);
  max-width: 420px; margin: 48px auto; padding: 32px 28px; width: calc(100% - 32px);
}
.auth-card form label { display: block; margin: 0 0 16px; font-weight: 600; }
.auth-card input {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--divider); border-radius: var(--radius-btn);
  font: inherit; background: #fff;
}
.auth-card input:focus { outline: 2px solid var(--brand-blue); outline-offset: -1px; border-color: var(--brand-blue); }
.auth-card .actions { display: flex; gap: 12px; }
.auth-card .alt { margin-top: 18px; }
.lede { color: var(--text-secondary); font-size: 15px; }

/* honeypot: visually gone, present for bots */
.hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }

/* --- flash + verify banner --- */
.flash {
  padding: 12px 16px; text-align: center; font-weight: 600;
  background: #E9F9F0; color: #0B7A43; border-bottom: 1px solid #C8EFD9;
}
.flash--err { background: #FDECEC; color: var(--danger-red); border-color: #F6C9C9; }
.verify-banner {
  padding: 10px 16px; text-align: center; background: #FFF6E8; color: #8A5A00;
  border-bottom: 1px solid #F4E2C0; font-size: 13px;
}
.verify-banner a { font-weight: 700; }

/* --- footer (dynamic year, spec Q9) --- */
.site-footer {
  margin-top: auto; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-top: 1px solid var(--divider);
  background: #F8F9FB; color: var(--text-secondary); font-size: 12px;
}
.site-footer a { color: var(--text-secondary); text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* --- pass 2: app pages (functional; designed UI in pass 4) --- */
.page { max-width: 860px; margin: 24px auto; padding: 0 16px; width: 100%; }
.page-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .grid2 { grid-template-columns: 1fr; } }
.trip-form label, .checkin-test label { display: block; margin: 0 0 14px; font-weight: 600; }
.trip-form input, .trip-form select, .trip-form textarea, .checkin-test input[type=text], #ciComment {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  border: 1px solid var(--divider); border-radius: var(--radius-btn); font: inherit; background: #fff;
}
.trip-form input:focus, .trip-form textarea:focus, .trip-form select:focus {
  outline: 2px solid var(--brand-blue); outline-offset: -1px; }
.trip-form .check, .checkin-test .check { font-weight: 600; }
.trip-form .check input, .checkin-test .check input { display: inline; width: auto; margin-right: 8px; }
.btn--cta { text-transform: uppercase; letter-spacing: 0.02em; padding: 14px 22px; }
.form-errors { background: #FDECEC; color: var(--danger-red); border: 1px solid #F6C9C9;
  border-radius: var(--radius-btn); padding: 12px; margin: 12px 0; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 8px; }
.trip-list { list-style: none; padding: 0; }
.trip-row { display: flex; justify-content: space-between; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius-card);
  padding: 14px 16px; margin-bottom: 10px; }
.trip-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 6px; }
.dot--green { background: var(--live-green); }
.cp-row { border-top: 1px solid var(--divider); padding: 10px 0; }
.checkin-test { background: var(--surface); border: 1px solid var(--divider);
  border-radius: var(--radius-card); padding: 16px; margin: 16px 0; }
