/* Pass CDL Prep — "Night Haul" web theme
   Palette from docs/design/NIGHT-HAUL-SPEC.md (ipapapa/cdlprep):
   bg #121417 · surface #1C1F24 · border #2E333A · text #ECEDEE
   textMuted #A9AEB5 · amber #F5A524 · onAmber #1A1300
   success #3DD68C · danger #FF6B6B · dashed #4A5058 */
:root {
  --bg: #121417;
  --surface: #1c1f24;
  --border: #2e333a;
  --text: #ecedee;
  --muted: #a9aeb5;
  --amber: #f5a524;
  --on-amber: #1a1300;
  --success: #3dd68c;
  --danger: #ff6b6b;
  --dashed: #4a5058;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Barlow", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .display {
  font-family: "Barlow Semi Condensed", "Barlow", "Arial Narrow", system-ui, sans-serif;
  line-height: 1.15;
}
a { color: var(--amber); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1024px; margin: 0 auto; padding: 0 20px; }

/* Header */
header.site {
  border-bottom: 1px solid var(--border);
  background: rgba(18, 20, 23, 0.92);
  position: sticky; top: 0; z-index: 10;
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 64px; gap: 16px;
}
.brand {
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-weight: 800; font-size: 28px; letter-spacing: 0.02em; color: var(--text);
  text-transform: uppercase; white-space: nowrap;
}
.brand .dot { color: var(--amber); }
nav.main a {
  color: var(--muted); font-weight: 600; font-size: 15px; margin-left: 22px;
}
nav.main a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 48px; text-align: center; }
.hero .kicker {
  color: var(--amber); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.hero h1 { font-size: 56px; font-weight: 800; text-transform: uppercase; margin: 12px 0 8px; }
.hero h1 .amber { color: var(--amber); }
.hero .tagline { color: var(--muted); font-size: 20px; max-width: 640px; margin: 0 auto 28px; }
.signs-row {
  display: flex; justify-content: center; gap: 18px; margin: 0 auto 30px;
}
.signs-row img { width: 64px; height: 64px; }
.btn-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 14px 26px; border-radius: var(--radius-sm);
  font-family: "Barlow Semi Condensed", "Barlow", sans-serif;
  font-size: 18px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
}
.btn:hover { text-decoration: none; }
.btn-amber { background: var(--amber); color: var(--on-amber); }
.btn-amber:hover { background: #ffb63e; }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border); }
.btn-ghost:hover { border-color: var(--dashed); }
.hero .note { color: var(--muted); font-size: 13px; margin-top: 16px; }

/* Sections */
section.block { padding: 48px 0 8px; }
.label {
  color: var(--muted); font-weight: 700; font-size: 14px;
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px;
}
section.block h2 { font-size: 32px; font-weight: 700; margin-bottom: 10px; }
section.block .lede { color: var(--muted); max-width: 720px; margin-bottom: 26px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px;
}
.card h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }
.card .ico { color: var(--amber); font-size: 26px; line-height: 1; display: block; margin-bottom: 12px; }

/* FAQ */
.faq-item {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 20px 22px; margin-bottom: 12px;
}
.faq-item h3 { font-size: 18px; margin-bottom: 6px; }
.faq-item p { color: var(--muted); font-size: 15px; }

/* Legal / prose pages */
.prose { padding: 48px 0 24px; max-width: 780px; }
.prose h1 { font-size: 40px; font-weight: 800; margin-bottom: 8px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.prose h2 { font-size: 24px; margin: 30px 0 10px; }
.prose p, .prose li { color: #d6d8db; font-size: 16px; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 14px 22px; }
.prose li { margin-bottom: 6px; }

/* Redirect page */
.redirect-box {
  max-width: 520px; margin: 80px auto; text-align: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
}
.redirect-box h1 { font-size: 30px; margin-bottom: 10px; }
.redirect-box p { color: var(--muted); margin-bottom: 22px; }
.redirect-box .btn { margin: 4px; }

/* Footer */
footer.site {
  border-top: 1px solid var(--border); margin-top: 64px; padding: 32px 0 40px;
  color: var(--muted); font-size: 13px;
}
footer.site .links { margin-bottom: 14px; }
footer.site .links a { color: var(--muted); margin-right: 20px; font-weight: 600; }
footer.site .links a:hover { color: var(--text); }
footer.site p { margin-bottom: 10px; max-width: 860px; }

@media (max-width: 640px) {
  .hero { padding: 48px 0 36px; }
  .hero h1 { font-size: 40px; }
  .hero .tagline { font-size: 17px; }
  nav.main a { margin-left: 14px; }
  .brand { font-size: 23px; }
}
