/* ===========================================================
   D&W Truck — dwt.solutions storefront prototype
   Design system / tokens
   =========================================================== */

:root {
  /* Brand — clean white + light blue (two-tone blue, no purple) */
  --purple: #0E5C9C;        /* deep brand blue — eyebrows, logo, accents */
  --purple-700: #0a4577;
  --purple-050: #e9f3fc;    /* light blue tint */
  --blue: #1583D1;          /* primary action blue — CTAs, links */
  --blue-700: #1069ab;
  --sky: #5cabe0;

  /* Ink / neutrals (cool) */
  --ink: #0F1A2A;
  --ink-80: #2a3340;
  --ink-60: #56606e;
  --ink-45: #828b97;
  --ink-30: #b1b8c2;
  --line: #e4e8ee;
  --line-2: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f4f7fb;
  --surface-3: #e9eef5;

  /* Accents */
  --reman: #1F8A5B;
  --reman-bg: #e7f4ee;
  --warn: #b4520a;
  --warn-bg: #fbeede;

  /* Type — Barlow superfamily (industrial / transport signage feel) */
  --sans: "Barlow", -apple-system, system-ui, sans-serif;
  --display: "Barlow Semi Condensed", "Barlow", system-ui, sans-serif;

  /* Radius / shadow */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 26px;
  --sh-1: 0 1px 2px rgba(14,14,16,.06), 0 1px 1px rgba(14,14,16,.04);
  --sh-2: 0 6px 20px -8px rgba(14,14,16,.16), 0 2px 6px rgba(14,14,16,.05);
  --sh-3: 0 24px 60px -18px rgba(14,14,16,.28), 0 8px 20px -10px rgba(14,14,16,.14);
  --sh-purple: 0 14px 34px -12px rgba(21,131,209,.45);

  --maxw: 1240px;
  --header-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--surface);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

h1,h2,h3,h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 1.04; margin: 0; }
p { margin: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--display); font-weight: 600; font-size: 12px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--purple);
}
.muted { color: var(--ink-60); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  border: 1px solid transparent; border-radius: 999px;
  padding: 0 22px; height: 48px; min-height: 44px;
  transition: transform .12s ease, box-shadow .2s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 8px 22px -10px rgba(18,121,190,.7); }
.btn-primary:hover { background: var(--blue-700); box-shadow: 0 12px 26px -10px rgba(18,121,190,.85); }
.btn-purple { background: var(--purple); color: #fff; box-shadow: var(--sh-purple); }
.btn-purple:hover { background: var(--purple-700); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #25252a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--ink-30); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 56px; padding: 0 30px; font-size: 16.5px; }
.btn-block { width: 100%; }

/* ---------- chips / badges ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 600; letter-spacing: -0.01em;
  padding: 5px 11px; border-radius: 999px;
  background: var(--surface-2); color: var(--ink-80); border: 1px solid var(--line);
}
.chip .mono { font-size: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--display); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 6px;
}
.badge-reman { background: var(--reman-bg); color: var(--reman); }
.badge-oem { background: #eef3fb; color: var(--blue-700); }
.badge-new { background: var(--purple-050); color: var(--purple); }
.badge-call { background: var(--warn-bg); color: var(--warn); }

/* ---------- placeholder media ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--r-md);
  background:
    repeating-linear-gradient(135deg, #ecebef 0 12px, #f4f3f6 12px 24px);
  display: grid; place-items: center;
}
.ph::after {
  content: attr(data-label);
  font-family: ui-monospace, Menlo, monospace; font-size: 11px;
  color: var(--ink-45); letter-spacing: .02em; text-align: center;
  padding: 6px 10px; max-width: 80%;
}
.ph-dark {
  background: repeating-linear-gradient(135deg, #1a1a1f 0 12px, #232329 12px 24px);
}
.ph-dark::after { color: #8a8a93; }

/* ---------- cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
  transition: transform .18s ease, box-shadow .22s ease, border-color .2s ease;
}

/* ---------- reveal animation (transform-only — never hides content) ---------- */
.reveal { transform: translateY(16px); transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.in { transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { transform: none !important; transition: none !important; }
  * { scroll-behavior: auto !important; }
}
/* tweak: motion off */
.motion-off .reveal, .motion-off .reveal.in { transform: none !important; transition: none !important; }

/* ---------- skeleton ---------- */
@keyframes shimmer { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.sk {
  background: linear-gradient(90deg, #f0eff2 25%, #e6e5ea 37%, #f0eff2 63%);
  background-size: 800px 100%; animation: shimmer 1.3s infinite linear;
  border-radius: 6px;
}

/* ---------- spec table ---------- */
.spec-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-2); }
.spec-row dt { color: var(--ink-60); font-size: 14px; }
.spec-row dd { margin: 0; font-weight: 600; font-size: 14.5px; text-align: right; }

/* utility */
.hide-mobile { }
.only-mobile { display: none; }
.flex { display: flex; }
.between { display: flex; align-items: center; justify-content: space-between; }
.center { display: flex; align-items: center; }
