/* LicenseReady — design system
   Palette: deep navy + high-visibility amber, evoking the commercial trucking world.
   Typography: Inter for body & UI, Roboto Condensed for headings (eyebrow / brand cues). */

:root {
  --navy-900: #07142a;
  --navy-800: #0b1d3a;
  --navy-700: #14315c;
  --navy-600: #1d437f;
  --amber-500: #f5a524;
  --amber-600: #d98b13;
  --amber-100: #fef3d7;
  --paper: #fbf8f1;
  --paper-2: #ffffff;
  --ink: #0e1422;
  --ink-2: #2b3142;
  --muted: #5b6478;
  --line: #e7e2d4;
  --line-2: #cfd6e2;
  --right-bg: #def5e0;
  --right-fg: #186b34;
  --wrong-bg: #fadbd8;
  --wrong-fg: #92231e;
  --max: 1180px;
  --shadow-sm: 0 1px 2px rgba(7,20,42,.05), 0 2px 6px rgba(7,20,42,.05);
  --shadow-md: 0 8px 18px rgba(7,20,42,.08), 0 2px 4px rgba(7,20,42,.04);
  --shadow-lg: 0 28px 60px rgba(7,20,42,.30);
  --radius: 10px;
  --radius-lg: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font: 16px/1.65 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--navy-700); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--amber-600); }

h1, h2, h3, h4 { font-family: "Inter", sans-serif; letter-spacing: -.01em; line-height: 1.2; color: var(--ink); }
h1 { font-weight: 800; }
h2 { font-weight: 700; }
h3 { font-weight: 600; }

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

/* ---------- Header ---------- */
.site-header {
  background: var(--navy-900);
  color: #fff;
  border-bottom: 3px solid var(--amber-500);
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 0 rgba(255,255,255,.04);
}
.header-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: #fff; text-decoration: none;
  font-family: "Roboto Condensed", "Inter", sans-serif;
  font-weight: 700; font-size: 22px; letter-spacing: .04em;
  text-transform: uppercase;
}
.brand-mark { display: inline-flex; }
.brand-accent { color: var(--amber-500); }
.primary-nav a {
  color: #d8e1f1; margin-left: 24px;
  text-decoration: none; font-weight: 500; font-size: 15px;
}
.primary-nav a:hover { color: var(--amber-500); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(245,165,36,.18), transparent 60%),
    linear-gradient(150deg, #07142a 0%, #0b1d3a 60%, #14315c 100%);
  color: #fff;
  padding: 72px 0 84px;
  position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 6px; background: linear-gradient(90deg, var(--amber-500), var(--amber-600));
}
.hero-grid {
  display: grid; grid-template-columns: 1.15fr 1fr;
  gap: 48px; align-items: center;
}
.hero-copy .eyebrow {
  display: inline-block;
  font-family: "Roboto Condensed", sans-serif;
  color: var(--amber-500);
  text-transform: uppercase; letter-spacing: .22em;
  font-size: 12px; margin: 0 0 18px;
  font-weight: 700;
  padding: 6px 12px;
  border: 1px solid rgba(245,165,36,.4);
  border-radius: 999px;
  background: rgba(245,165,36,.08);
}
.hero-copy h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05; margin: 0 0 20px;
  font-weight: 800; letter-spacing: -.02em;
  color: #fff;
}
.hero-copy h1 em { color: var(--amber-500); font-style: normal; }
.hero-copy .lede {
  font-size: 18px; line-height: 1.6;
  color: #c5d2ec; margin: 0 0 32px;
  max-width: 56ch;
}
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 36px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 26px; border-radius: 8px;
  font-weight: 700; font-size: 15px; letter-spacing: .01em;
  text-decoration: none; transition: transform .12s, box-shadow .12s, background .12s;
  border: 0;
}
.btn-primary {
  background: var(--amber-500); color: var(--navy-900);
  box-shadow: 0 6px 20px rgba(245,165,36,.35);
}
.btn-primary:hover {
  background: #ffba3d; color: var(--navy-900);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(245,165,36,.45);
}
.btn-ghost {
  color: #fff; border: 1.5px solid rgba(255,255,255,.55);
  background: transparent;
}
.btn-ghost:hover { border-color: #fff; background: rgba(255,255,255,.06); color: #fff; }
.hero-stats {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; padding: 0; margin: 0; list-style: none;
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 22px;
}
.hero-stats li { display: flex; flex-direction: column; }
.hero-stats strong {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 32px; color: var(--amber-500); font-weight: 700;
  line-height: 1.1;
}
.hero-stats span { color: #9fb1d2; font-size: 13px; margin-top: 4px; }
.hero-img {
  position: relative;
}
.hero-img img {
  width: 100%; height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: block;
}
.hero-img::before {
  content: ""; position: absolute; inset: -12px -12px auto auto;
  width: 80px; height: 80px;
  background: var(--amber-500); border-radius: 12px;
  z-index: -1; opacity: .6;
}

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px; letter-spacing: -.02em;
}
.section-head .muted { color: var(--muted); margin: 0; max-width: 70ch; font-size: 16px; }

/* ---------- Cards ---------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.card {
  display: block; padding: 24px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none; color: inherit;
  transition: transform .14s, border-color .14s, box-shadow .14s;
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--amber-500);
  box-shadow: var(--shadow-md);
}
.card .badge {
  display: inline-block; background: var(--navy-800); color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700; font-size: 12px; letter-spacing: .15em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.card h3 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.55; }
.card .meta {
  margin-top: 14px; padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--navy-700); font-weight: 600;
  letter-spacing: .03em; text-transform: uppercase;
}

/* ---------- State grid ---------- */
.state-grid {
  list-style: none; padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px;
}
.state-grid a {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 8px; text-decoration: none;
  color: var(--ink); font-weight: 500; font-size: 15px;
  transition: border-color .12s, background .12s;
}
.state-grid a:hover { border-color: var(--amber-500); background: var(--amber-100); color: var(--navy-800); }
.state-grid .abbr {
  display: inline-block; min-width: 36px; text-align: center;
  background: var(--navy-800); color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700; font-size: 13px;
  padding: 5px 0; border-radius: 4px; letter-spacing: .1em;
}

/* ---------- Crumbs / prose ---------- */
.crumbs { color: var(--muted); margin: 0 0 14px; font-size: 13px; }
.crumbs a { color: var(--navy-700); }
h1 { font-size: clamp(28px, 4vw, 38px); margin: 0 0 14px; }
.lede { font-size: 18px; color: var(--ink-2); max-width: 72ch; margin: 0 0 28px; line-height: 1.55; }
.prose { max-width: 74ch; margin: 36px 0; }
.prose h2 { margin-top: 36px; font-size: 24px; color: var(--navy-800); }
.prose h3 { margin-top: 26px; font-size: 19px; }
.prose p { margin: 14px 0; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--navy-700); }

/* ---------- Test / quiz ---------- */
.howto {
  background: var(--paper-2); border: 1px solid var(--line);
  padding: 16px 20px; border-radius: 8px; margin: 16px 0 24px;
}
.howto summary { font-weight: 600; cursor: pointer; }

.scoreboard {
  display: flex; gap: 24px; align-items: center;
  padding: 14px 20px;
  background: var(--navy-900); color: #fff;
  border-radius: var(--radius);
  margin: 16px 0;
  position: sticky; top: 64px; z-index: 20;
  box-shadow: var(--shadow-md);
  font-size: 15px;
}
.scoreboard strong {
  color: var(--amber-500);
  font-family: "Roboto Condensed", sans-serif;
  font-size: 20px; margin-right: 4px;
}
.verdict {
  margin-left: auto; padding: 6px 14px;
  border-radius: 999px; font-weight: 700; font-size: 13px;
  font-family: "Roboto Condensed", sans-serif; letter-spacing: .05em; text-transform: uppercase;
}
.verdict.pending { background: rgba(255,255,255,.12); color: #d8e1f1; }
.verdict.pass { background: var(--right-bg); color: var(--right-fg); }
.verdict.fail { background: var(--wrong-bg); color: var(--wrong-fg); }

.qlist { list-style: none; padding: 0; margin: 0; }
.q {
  background: var(--paper-2);
  border: 1px solid var(--line); border-left: 3px solid var(--amber-500);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.q h3 { margin: 0 0 16px; font-size: 17px; line-height: 1.45; color: var(--ink); }
.q .num { color: var(--amber-600); margin-right: 4px; font-weight: 700; }
.choices { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 10px; }
.choice {
  display: flex; align-items: flex-start; gap: 14px; width: 100%;
  background: var(--paper);
  border: 1.5px solid var(--line); color: var(--ink);
  text-align: left; padding: 13px 16px; border-radius: 8px; cursor: pointer;
  font: inherit; line-height: 1.5;
  transition: border-color .12s, background .12s;
}
.choice:hover { border-color: var(--navy-700); background: #fff; }
.choice .letter {
  width: 24px; height: 24px; flex: 0 0 24px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--navy-800); color: #fff;
  font-size: 12px; font-weight: 700;
}
.choice.right { background: var(--right-bg); border-color: var(--right-fg); }
.choice.right .letter { background: var(--right-fg); }
.choice.wrong { background: var(--wrong-bg); border-color: var(--wrong-fg); }
.choice.wrong .letter { background: var(--wrong-fg); }
.choice[disabled] { cursor: default; }
.explain {
  background: var(--amber-100);
  border-left: 3px solid var(--amber-500);
  padding: 12px 16px; margin: 8px 0 0;
  border-radius: 4px;
  color: #5a3e10;
  font-size: 14px; line-height: 1.55;
}

/* ---------- Adsense placeholders ---------- */
.adsense { max-width: var(--max); margin: 24px auto; padding: 0 24px; }
.adsense-placeholder {
  border: 1px dashed var(--line); padding: 18px;
  text-align: center; color: var(--muted); font-size: 12px;
  letter-spacing: .15em; text-transform: uppercase;
  background: var(--paper-2);
}

/* ---------- Related-resources strip ---------- */
.related-strip {
  background: linear-gradient(180deg, var(--paper-2), var(--paper));
  padding: 56px 0;
  border-top: 1px solid var(--line);
}
.related-strip h2 {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 22px; margin: 0 0 8px; letter-spacing: .03em;
  text-transform: uppercase; color: var(--navy-800);
}
.related-strip > .wrap > .muted { max-width: 70ch; margin-bottom: 24px; font-size: 14px; }
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.related-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  text-decoration: none; color: var(--ink);
  transition: border-color .12s, transform .12s, box-shadow .12s;
}
.related-card:hover {
  border-color: var(--amber-500); transform: translateY(-2px);
  box-shadow: var(--shadow-sm); color: var(--ink);
}
.related-tag {
  display: inline-block; align-self: flex-start;
  background: var(--navy-800); color: #fff;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
}
.related-card strong { font-size: 15px; color: var(--navy-800); }
.related-desc { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: #c5d2ec;
  padding: 56px 0 20px; margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 36px;
}
.site-footer h3 {
  color: #fff; margin: 0 0 10px;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700; letter-spacing: .03em;
}
.site-footer h4 {
  color: #fff; margin: 0 0 12px;
  font-family: "Roboto Condensed", sans-serif;
  font-size: 13px; text-transform: uppercase; letter-spacing: .15em;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c5d2ec; text-decoration: none; font-size: 14px; }
.site-footer a:hover { color: var(--amber-500); }
.copyright {
  margin-top: 32px; padding-top: 20px;
  border-top: 1px solid #1a3057;
  color: #7689a8; font-size: 12px;
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-img { order: -1; }
  .hero-img::before { display: none; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .hero-stats strong { font-size: 24px; }
  .primary-nav a { margin-left: 14px; font-size: 14px; }
  .scoreboard { flex-wrap: wrap; gap: 12px; font-size: 14px; position: static; top: auto; }
  .verdict { margin-left: 0; }
  .section { padding: 44px 0; }
  .related-strip { padding: 44px 0; }
}
@media (max-width: 560px) {
  .header-wrap { padding: 12px 18px; }
  .brand-name { font-size: 18px; }
  .primary-nav { display: flex; flex-wrap: wrap; gap: 4px 0; justify-content: flex-end; max-width: 60%; }
  .primary-nav a { margin-left: 12px; font-size: 13px; }
  .wrap { padding: 0 18px; }
  .hero-copy h1 { font-size: 30px; }
  .cta-row .btn { width: 100%; }
  .hero-stats { grid-template-columns: 1fr 1fr; }
  .hero-stats strong { font-size: 22px; }
  .footer-grid { gap: 28px; }
}
