/* ============================================================
   TruckerPro Telematics — Landing
   Implemented from "TruckerPro Landing.dc.html" design canvas.
   Palette + type preserved exactly; made responsive + accessible.
   ============================================================ */

:root {
  --bg:        #0a0b0e;
  --bg-2:      #0d0f13;
  --bg-hero:   #101319;
  --panel:     #1d2027;
  --panel-2:   #14171c;
  --ink:       #ece9e3;
  --muted:     #a8a6a0;
  --muted-2:   #9a988f;
  --dim:       #8a8880;
  --dimmer:    #7a7870;
  --accent:    #e2a24a;
  --accent-ink:#14171c;
  --line:      rgba(255,255,255,0.08);
  --line-2:    rgba(255,255,255,0.18);

  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  --pad-x: clamp(20px, 5vw, 64px);
  --radius: 2px;
  --radius-lg: 6px;
  --maxw: 1240px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

h1, h2, h3 { margin: 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius);
}

.skip-link {
  position: absolute; left: 50%; top: -60px; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 18px; font-weight: 700; border-radius: var(--radius);
  z-index: 100; transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 16px; letter-spacing: 0.3px;
  padding: 17px 32px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn-sm { padding: 12px 22px; font-size: 14px; }
.btn-block { display: flex; width: 100%; padding: 14px; font-size: 15px; }

.btn-solid {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(226,162,74,0.25);
}
.btn-solid:hover { background: #eeb15f; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(226,162,74,0.35); }

.btn-ghost { border-color: var(--line-2); color: var(--ink); font-weight: 600; }
.btn-ghost:hover { border-color: var(--ink); background: rgba(255,255,255,0.04); }

.btn-outline { border-color: var(--accent); color: var(--accent); font-weight: 700; background: transparent; }
.btn-outline:hover { background: rgba(226,162,74,0.1); }

.btn:active { transform: translateY(0); }

/* ---------- Brand ---------- */
.brand {
  font-family: var(--display); font-weight: 800; font-size: 24px;
  letter-spacing: 0.5px; color: var(--ink);
}
.brand span { color: var(--accent); }
.brand-sm { font-size: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--pad-x);
  background: rgba(10,11,14,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; gap: clamp(20px, 3vw, 40px); align-items: center; font-size: 15px; font-weight: 500; }
.nav-links > a:not(.btn) { color: #b8b6b0; transition: color .2s ease; }
.nav-links > a:not(.btn):hover { color: var(--ink); }

@media (max-width: 780px) {
  .nav-links > a:not(.btn) { display: none; }
}

/* ---------- Section scaffolding ---------- */
.section { padding: clamp(64px, 9vw, 100px) var(--pad-x); }
.section-alt { background: var(--bg-2); }
.glow-top { background: radial-gradient(ellipse at 50% 30%, rgba(226,162,74,0.06), transparent 60%), var(--bg-2); }

.section-head { text-align: center; margin-bottom: clamp(40px, 6vw, 64px); }
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); margin: 0 0 16px;
}
.section-head h2 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.5px;
  font-size: clamp(26px, 6vw, 48px); line-height: 1.02;
  overflow-wrap: break-word;
}

.card-grid { display: grid; gap: 28px; max-width: var(--maxw); margin: 0 auto; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 860px; }

@media (max-width: 900px) { .card-grid.three { grid-template-columns: 1fr; max-width: 520px; } }
@media (max-width: 760px) { .card-grid.two { grid-template-columns: 1fr; max-width: 460px; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: 40px;
  padding: clamp(56px, 8vw, 100px) var(--pad-x) clamp(72px, 10vw, 120px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background:
    radial-gradient(ellipse at 72% 42%, rgba(226,162,74,0.14), transparent 55%),
    radial-gradient(ellipse at 20% 90%, rgba(60,90,140,0.10), transparent 50%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-hero) 100%);
}
.hero-copy { animation: fadeUp .7s ease both; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(226,162,74,0.12); border: 1px solid rgba(226,162,74,0.3);
  color: var(--accent); font-size: 13px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; padding: 6px 14px; border-radius: var(--radius); margin-bottom: 28px;
}
.hero-title {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.5px;
  font-size: clamp(34px, 9vw, 72px); line-height: 0.98; margin-bottom: 24px;
  text-transform: uppercase; overflow-wrap: break-word;
}
.hero-sub { font-size: clamp(16px, 2.2vw, 19px); line-height: 1.6; color: var(--muted); max-width: 520px; margin: 0 0 40px; }

.btn-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-row.center { justify-content: center; }

.hero-stats {
  display: flex; gap: clamp(24px, 4vw, 36px); margin: 56px 0 0; padding-top: 32px;
  border-top: 1px solid var(--line); flex-wrap: wrap;
}
.hero-stats div { margin: 0; }
.hero-stats dt { font-family: var(--display); font-weight: 800; font-size: 32px; color: var(--accent); }
.hero-stats dd { margin: 4px 0 0; font-size: 13px; color: var(--dim); }

.hero-art { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-glow {
  position: absolute; width: min(440px, 90%); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(226,162,74,0.22), transparent 68%); filter: blur(4px);
}
.hero-art img {
  position: relative; width: 100%; max-width: 520px;
  filter: drop-shadow(0 40px 70px rgba(0,0,0,0.75)) drop-shadow(0 0 40px rgba(226,162,74,0.12));
}

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 340px; }
}

/* ---------- Specs ---------- */
.spec-grid {
  list-style: none; margin: 0 auto; padding: 0; max-width: var(--maxw);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--line); border: 1px solid var(--line);
}
.spec-cell { background: var(--bg-2); padding: 40px 32px; }
.spec-cell h3 { font-weight: 700; font-size: 18px; margin-bottom: 10px; }
.spec-cell p { font-size: 14px; line-height: 1.6; color: var(--muted-2); margin: 0; }
.spec-ico {
  width: 44px; height: 44px; border-radius: var(--radius); background: rgba(226,162,74,0.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 24px;
}
.ico-ring { width: 18px; height: 18px; border: 2px solid var(--accent); border-radius: 50%; }
.ico-diamond { width: 16px; height: 16px; background: var(--accent); transform: rotate(45deg); }
.ico-cell { width: 20px; height: 12px; border: 2px solid var(--accent); border-radius: 2px; }
.ico-square { width: 20px; height: 20px; border: 2px solid var(--accent); border-radius: 4px; }

@media (max-width: 900px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .spec-grid { grid-template-columns: 1fr; } }

/* ---------- Use cases ---------- */
.use-card { background: var(--panel); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.use-shot {
  height: 180px; display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px;
  font-size: 14px; color: #6a685f;
  background: repeating-linear-gradient(135deg, #262a32, #262a32 12px, #21242b 12px, #21242b 24px);
}
.use-body { padding: 28px; }
.use-body h3 { font-weight: 700; font-size: 19px; margin-bottom: 10px; }
.use-body p { font-size: 14px; line-height: 1.6; color: var(--muted-2); margin: 0; }

/* ---------- Comparison ---------- */
.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 1100px; margin: 0 auto; }
.product-card {
  position: relative; background: var(--panel-2); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); padding: 40px;
}
.product-card.featured { border-color: var(--accent); }
.product-card > img { margin-bottom: 32px; filter: drop-shadow(0 24px 40px rgba(0,0,0,0.7)); }
.product-card.featured > img { filter: drop-shadow(0 24px 40px rgba(0,0,0,0.7)) drop-shadow(0 0 30px rgba(226,162,74,0.1)); }
.product-name { font-family: var(--display); font-weight: 700; font-size: 28px; margin-bottom: 6px; }
.product-tag { font-size: 14px; color: var(--dim); margin: 0 0 24px; }
.product-feats { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 12px; font-size: 14px; color: #c4c2ba; }
.product-feats li { position: relative; padding-left: 20px; }
.product-feats li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.product-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); }
.price { font-family: var(--display); font-weight: 800; font-size: 34px; }

.ribbon {
  position: absolute; top: -14px; right: 32px;
  background: var(--accent); color: var(--accent-ink);
  font-size: 12px; font-weight: 800; letter-spacing: 0.5px; text-transform: uppercase;
  padding: 6px 14px; border-radius: var(--radius);
}
.ribbon-left { right: auto; left: 36px; }

@media (max-width: 820px) { .compare-grid { grid-template-columns: 1fr; max-width: 460px; } }

/* ---------- Pricing ---------- */
.plan-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; }
.plan-card.featured { border: 2px solid var(--accent); }
.plan-name { font-weight: 700; font-size: 20px; margin-bottom: 8px; }
.plan-scope { font-size: 14px; color: var(--muted-2); margin: 0 0 24px; }
.plan-price { font-family: var(--display); font-weight: 800; font-size: 40px; margin: 0 0 24px; }
.plan-price span { font-family: var(--body); font-size: 16px; color: var(--muted-2); font-weight: 500; }
.plan-feats { list-style: none; padding: 0; margin: 0 0 32px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #c4c2ba; }
.plan-feats li { position: relative; padding-left: 20px; }
.plan-feats li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.plan-feats li strong { color: var(--ink); font-weight: 700; }

/* All-in price presentation */
.plan-price span { display: block; margin-top: 4px; }
.plan-price .was {
  display: inline; font-family: var(--body); font-size: 22px; font-weight: 600;
  color: var(--dim); text-decoration: line-through; margin-right: 10px;
}
.plan-renew { font-size: 14px; color: var(--muted-2); margin: -16px 0 24px; }
.section-lede { max-width: 620px; margin: 16px auto 0; color: var(--muted); font-size: 17px; line-height: 1.6; }
.pricing-fine { max-width: 780px; margin: 32px auto 0; text-align: center; font-size: 13px; color: var(--dim); line-height: 1.7; }
.price s { color: var(--dim); font-weight: 600; font-size: 24px; margin-right: 6px; }

/* ---------- Promo banner ---------- */
.promo-bar {
  background: var(--accent); color: var(--accent-ink);
  text-align: center; font-size: 14px; font-weight: 600;
  padding: 10px var(--pad-x); letter-spacing: 0.2px;
}
.promo-bar strong { font-weight: 800; }
.promo-bolt { margin-right: 4px; }
.promo-bar a { color: var(--accent-ink); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; margin-left: 10px; white-space: nowrap; }
@media (max-width: 520px) { .promo-bar { font-size: 12.5px; } .promo-bar a { display: block; margin: 4px 0 0; } }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; margin: 0; }
.quote-card blockquote { margin: 0 0 24px; font-size: 15px; line-height: 1.7; color: #c4c2ba; }
.quote-card figcaption { display: flex; flex-direction: column; gap: 2px; }
.q-name { font-weight: 700; font-size: 15px; }
.q-role { font-size: 13px; color: var(--dim); }

.logo-row {
  list-style: none; padding: 0; margin: 56px auto 0; max-width: var(--maxw);
  display: flex; justify-content: center; flex-wrap: wrap; gap: clamp(28px, 5vw, 56px);
  opacity: 0.5; font-family: var(--display); font-weight: 700; font-size: 22px;
  letter-spacing: 0.5px; text-transform: uppercase; color: var(--dim);
}

/* ---------- CTA ---------- */
.cta { padding: clamp(80px, 11vw, 110px) var(--pad-x); text-align: center; }
.glow-top-strong { background: radial-gradient(ellipse at 50% 0%, rgba(226,162,74,0.1), transparent 60%); }
.cta h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.5px; font-size: clamp(28px, 7vw, 52px); margin-bottom: 20px; overflow-wrap: break-word; }
.cta p { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 auto 40px; }

/* ---------- Footer ---------- */
.footer {
  padding: 40px var(--pad-x); border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--dimmer);
}
.footer-note { margin: 0; }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
