/* BuyCar.tech — shared styles. No external fonts, no trackers, no dependencies. */

:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-card: #ffffff;
  --text: #16181d;
  --text-muted: #5b6270;
  --border: #e3e6ea;
  --accent: #1a56db;
  --accent-text: #ffffff;
  --maxw: 1080px;
  --readw: 760px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1014;
    --bg-soft: #14171d;
    --bg-card: #171a21;
    --text: #e8eaed;
    --text-muted: #9aa2b1;
    --border: #262b34;
    --accent: #6d9bff;
    --accent-text: #0e1014;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.read { max-width: var(--readw); }

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

.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  flex-wrap: wrap;
}

.brand {
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--text);
  font-size: 17px;
}
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--text-muted); font-size: 15px; }
.nav a:hover { color: var(--text); text-decoration: none; }

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

.btn {
  display: inline-block;
  padding: 11px 20px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 560;
  font-size: 15px;
  border: 1px solid transparent;
}
.btn:hover { text-decoration: none; opacity: 0.9; }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

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

section { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }
.section-soft { background: var(--bg-soft); }

h1 {
  font-size: clamp(32px, 5vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
  font-weight: 680;
}

h2 {
  font-size: clamp(24px, 3.2vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 640;
}

h3 {
  font-size: 19px;
  line-height: 1.35;
  margin: 0 0 10px;
  font-weight: 620;
}

.lede {
  font-size: clamp(18px, 2.2vw, 20px);
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 0 28px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12.5px;
  font-weight: 640;
  color: var(--text-muted);
  margin: 0 0 14px;
}

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 26px;
}

.card p:last-child, .card ul:last-child { margin-bottom: 0; }

.step-num {
  font-variant-numeric: tabular-nums;
  font-size: 13px;
  font-weight: 640;
  color: var(--accent);
  margin: 0 0 8px;
}

/* ---------- pricing ---------- */

.plan { display: flex; flex-direction: column; }
.plan-featured { border-color: var(--accent); }

.price {
  font-size: 38px;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 6px 0 4px;
}
.price span { font-size: 16px; font-weight: 500; color: var(--text-muted); }

.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; }
.plan li { padding-left: 26px; position: relative; margin-bottom: 10px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.plan .btn { margin-top: auto; text-align: center; }

.badge {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* ---------- legal / long-form pages ---------- */

.legal { padding: 56px 0 80px; }
.legal h1 { margin-bottom: 8px; }
.legal .updated { color: var(--text-muted); font-size: 15px; margin: 0 0 40px; }
.legal h2 {
  font-size: 22px;
  margin: 44px 0 14px;
  padding-top: 4px;
}
.legal h3 { margin: 28px 0 10px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 9px; }
.legal strong { font-weight: 620; }

.callout {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: 18px 22px;
  margin: 26px 0;
}
.callout p:first-child { margin-top: 0; }
.callout p:last-child { margin-bottom: 0; }

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

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-soft);
  padding: 44px 0;
  font-size: 15px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin-bottom: 22px;
}
.footer-links a { color: var(--text); }

.legal-entity { margin: 0; line-height: 1.75; }

/* ---------- responsive ---------- */

@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 52px 0; }
  .card { padding: 22px; }
  .site-header .wrap { min-height: 56px; padding-top: 10px; padding-bottom: 10px; }
  .nav { gap: 16px; }
}
