/* Trucker Hub — one stylesheet, no external fonts, light + dark. */
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #f1f1f1;
  --text: #1a1a1a;
  --muted: #555555;
  --line: #dedede;
  --navy: #7f1d1d;
  --navy-text: #ffffff;
  --amber: #d62828;
  --amber-text: #ffffff;
  --link: #b3261e;
  --focus: #b3261e;
  --note-bg: #fdecec;
  --note-line: #e57373;
  --radius: 14px;
  --max: 1120px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121212;
    --surface: #1b1b1b;
    --surface-2: #232323;
    --text: #ededed;
    --muted: #b5b5b5;
    --line: #333333;
    --navy: #9b1c1c;
    --link: #ff8a80;
    --focus: #ff8a80;
    --note-bg: #2a1515;
    --note-line: #8a2a2a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.9rem, 5vw, 3rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

.skip {
  position: absolute; left: 8px; top: -60px;
  background: var(--surface); color: var(--text);
  padding: 10px 14px; border-radius: 8px; z-index: 100;
}
.skip:focus { top: 8px; }

/* Header (sticky on all sizes; CTAs show from tablet up) */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex; align-items: center; gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 1.15rem; color: var(--text); text-decoration: none;
}
.brand svg { width: 36px; height: 36px; flex: none; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a.plain {
  color: var(--text); text-decoration: none; padding: 8px 10px; border-radius: 8px; font-weight: 600;
}
.nav a.plain:hover { background: var(--surface-2); }
.nav .hide-sm { display: none; }
.header-cta { display: none; gap: 8px; }
@media (min-width: 860px) {
  .nav .hide-sm { display: inline-block; }
  .header-cta { display: flex; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px;
  border-radius: 10px; border: 2px solid transparent;
  font-weight: 700; font-size: 1rem; text-decoration: none; text-align: center;
}
.btn-amber { background: var(--amber); color: var(--amber-text); }
.btn-amber:hover { background: #e8424a; }
.btn-navy { background: var(--navy); color: var(--navy-text); }
.btn-navy:hover { filter: brightness(1.15); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: .95rem; }
.btn-block { width: 100%; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.audiences { display: grid; gap: 16px; margin-top: 24px; }
@media (min-width: 820px) { .audiences { grid-template-columns: 1fr 1fr; gap: 24px; } }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.audience { display: flex; flex-direction: column; }
.audience .tag {
  display: inline-block; align-self: flex-start;
  font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 12px;
}
.audience.drivers .tag { background: var(--amber); color: var(--amber-text); }
.audience.carriers .tag { background: var(--navy); color: var(--navy-text); }
.audience h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.audience ul { padding-left: 1.2em; margin: 0 0 20px; }
.audience li { margin-bottom: 6px; }
.audience .btn { margin-top: auto; }
.audience .small { font-size: .9rem; color: var(--muted); margin: 10px 0 0; }

.note {
  margin-top: 24px; padding: 16px 20px;
  background: var(--note-bg); border: 1px solid var(--note-line); border-radius: var(--radius);
}
.note p { margin: 0; }

/* Sections */
section.block { padding: 40px 0; }
section.block.alt { background: var(--surface-2); }
.steps-grid { display: grid; gap: 24px; }
@media (min-width: 820px) { .steps-grid { grid-template-columns: 1fr 1fr; } }
ol.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
ol.steps li {
  counter-increment: s; position: relative;
  padding: 0 0 18px 52px; min-height: 40px;
}
ol.steps li::before {
  content: counter(s);
  position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--navy); color: var(--navy-text); font-weight: 800;
}
ol.steps li { padding-top: 5px; }

.promises { display: grid; gap: 16px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 720px) { .promises { grid-template-columns: 1fr 1fr; } }
.promises li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.promises strong { display: block; margin-bottom: 4px; }

/* FAQ */
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 800; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 20px 16px; }
.faq details > div p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 32px; font-size: .95rem; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-bottom: 10px; }
.site-footer a { font-weight: 600; }

/* Sticky CTA bar on phones */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line);
  box-shadow: 0 -4px 16px rgba(0,0,0,.08);
}
.cta-bar .btn { min-height: 48px; padding: 10px 8px; font-size: .98rem; }
body.has-bar { padding-bottom: 80px; }
@media (min-width: 860px) {
  .cta-bar { display: none; }
  body.has-bar { padding-bottom: 0; }
}

/* Plain text pages (privacy, terms, 404) */
.doc { padding: 40px 0 56px; max-width: 760px; }
.doc h2 { font-size: 1.3rem; margin-top: 1.6em; }
.doc ul { padding-left: 1.2em; }
.doc .updated { color: var(--muted); }
.center { text-align: center; }
.big-404 { font-size: clamp(3rem, 12vw, 6rem); font-weight: 900; color: var(--amber); margin: 0; line-height: 1; }
