/* DriverStandard marketing site — shared styles */

:root {
  --ink-950: #10151b;
  --ink-900: #1a2129;
  --ink-700: #39434f;
  --ink-500: #5c6875;
  --ink-300: #9aa5b0;
  --ink-100: #e4e8ec;
  --ink-50: #f4f6f8;
  --brand-900: #082c4e;
  --brand-700: #0d5290;
  --brand-600: #1266b0;
  --brand-100: #d9e8f5;
  --brand-50: #eef5fb;
  --gold: #f2b234;
  --good: #14663e;
  --radius: 12px;
}

* { box-sizing: border-box; margin: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-sans, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif);
  background: #fff;
  color: var(--ink-900);
  line-height: 1.6;
}

img, svg { max-width: 100%; height: auto; display: block; }

a { color: var(--brand-700); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- header / footer ---------- */

.site-header {
  background: var(--brand-900);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
}
.site-header .logo { height: 44px; width: auto; }
.site-header nav { display: flex; gap: 0.25rem; flex-wrap: wrap; margin-left: auto; }
.site-header nav a {
  color: #fff;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.45rem 0.8rem;
  border-radius: 8px;
}
.site-header nav a:hover { background: rgba(255,255,255,0.12); text-decoration: none; }
.site-header nav a[aria-current="page"] { background: rgba(255,255,255,0.18); }

.site-footer {
  background: var(--ink-950);
  color: var(--ink-300);
  font-size: 0.82rem;
  margin-top: 4rem;
}
.site-footer .wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.25rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.6rem;
}
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 0.35rem; }
.site-footer a { color: var(--ink-300); }
.site-footer a:hover { color: #fff; }
.site-footer .fineprint {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: 1.5rem;
  padding-top: 1.2rem;
  line-height: 1.55;
}
@media (max-width: 760px) {
  .site-footer .wrap { grid-template-columns: 1fr; gap: 1.2rem; }
}

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.25rem; }

/* ---------- hero ---------- */

.hero {
  background: linear-gradient(160deg, var(--brand-900) 0%, var(--brand-700) 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; align-items: center; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); line-height: 1.15; font-weight: 800; }
.hero p.lead { margin-top: 1rem; font-size: 1.15rem; color: var(--brand-100); max-width: 34rem; }
.hero .tagline {
  display: inline-block;
  margin-bottom: 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  color: var(--gold);
  text-transform: uppercase;
}
.hero .hero-visual { display: flex; justify-content: center; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn-primary { background: var(--gold); color: var(--ink-950); }
.btn-primary:hover { background: #ffc752; text-decoration: none; }
.btn-light { background: #fff; color: var(--brand-900); }
.btn-light:hover { background: var(--brand-100); text-decoration: none; }
.btn-outline { border-color: var(--brand-700); color: var(--brand-700); background: #fff; }
.btn-outline:hover { background: var(--brand-50); text-decoration: none; }

.cta-row { display: flex; gap: 0.9rem; flex-wrap: wrap; margin-top: 1.6rem; }

/* ---------- sections ---------- */

section { padding: 3.2rem 0; }
section.tinted { background: var(--ink-50); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--brand-600);
  margin-bottom: 0.5rem;
}
h2.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 800; line-height: 1.2; }
p.section-intro { margin-top: 0.7rem; color: var(--ink-500); max-width: 46rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; margin-top: 2rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; margin-top: 2rem; }
@media (max-width: 860px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--ink-100);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card .icon { font-size: 1.7rem; line-height: 1; }
.card h3 { font-size: 1.05rem; margin: 0.7rem 0 0.45rem; }
.card p { font-size: 0.93rem; color: var(--ink-700); }

/* ---------- facts ---------- */

.fact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  margin-top: 2rem;
}
@media (max-width: 860px) { .fact-strip { grid-template-columns: 1fr; } }
.fact {
  border-left: 4px solid var(--gold);
  padding: 0.3rem 0 0.3rem 1.1rem;
}
.fact .big { font-size: 1.9rem; font-weight: 800; color: var(--brand-900); line-height: 1.1; }
.fact .small { font-size: 0.88rem; color: var(--ink-500); margin-top: 0.3rem; }

.facts-table { width: 100%; border-collapse: collapse; margin-top: 1.6rem; font-size: 0.95rem; }
.facts-table th, .facts-table td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--ink-100);
}
.facts-table th {
  background: var(--ink-50);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
}
.facts-table td.rule-ref { color: var(--ink-500); font-size: 0.8rem; white-space: nowrap; }
.source-note { font-size: 0.8rem; color: var(--ink-300); margin-top: 1rem; }

/* ---------- cycle ---------- */

.cycle { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 860px) { .cycle { grid-template-columns: 1fr; } }
.cycle .step {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.cycle .step .num {
  width: 2.1rem; height: 2.1rem;
  border-radius: 999px;
  background: var(--brand-700);
  color: #fff;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.7rem;
}
.cycle .step h3 { font-size: 1.1rem; }
.cycle .step p { font-size: 0.92rem; color: var(--ink-700); margin-top: 0.4rem; }

/* ---------- page body ---------- */

.page-hero {
  background: var(--brand-900);
  color: #fff;
  padding: 3rem 0;
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; }
.page-hero p { color: var(--brand-100); margin-top: 0.5rem; max-width: 44rem; }

.prose { max-width: 46rem; }
.prose h2 { font-size: 1.35rem; margin: 2.2rem 0 0.6rem; }
.prose p { margin: 0.8rem 0; color: var(--ink-700); }
.prose ul { margin: 0.8rem 0 0.8rem 1.2rem; color: var(--ink-700); }
.prose li { margin: 0.35rem 0; }

.check-list { list-style: none; margin-left: 0 !important; }
.check-list li { padding-left: 1.9rem; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--good);
  font-weight: 800;
}

.callout {
  background: var(--brand-50);
  border: 1px solid var(--brand-100);
  border-left: 5px solid var(--brand-700);
  border-radius: 8px;
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  font-size: 0.95rem;
}
