/* Public / Move design system: tokens, type, shared components.
   Used by the landing page (/) and the ride app (/app/). */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* color */
  --bg: #f4f6f5;
  --surface: #ffffff;
  --surface-2: #eef1ef;
  --ink: #0e1513;
  --ink-2: #39443f;
  --mute: #5f6b66;          /* 5.3:1 on white */
  --line: #e1e6e3;
  --line-2: #cfd6d2;

  --brand: #0a7a52;         /* civic green, 5.2:1 on white */
  --brand-ink: #075c3e;
  --brand-soft: #e2f3eb;
  --brand-bright: #2fd18f;

  --blue: #2453c4;
  --blue-soft: #e6edfb;
  --amber: #9a5800;         /* text-safe amber */
  --amber-fill: #e8930c;
  --amber-soft: #fdf1dc;
  --red: #c62d25;
  --red-soft: #fde8e6;
  --violet: #6d3fd1;
  --teal: #0b7285;

  --night: #0d1714;         /* dark cards / hero panels */
  --night-2: #16231f;
  --on-night: #e9f1ed;
  --on-night-mute: #a9bab3;

  /* type */
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.375rem;
  --fs-2xl: 1.75rem;
  --fs-3xl: clamp(2rem, 1.4rem + 2.4vw, 3rem);
  --fs-hero: clamp(2.5rem, 1.5rem + 4.4vw, 4.75rem);

  /* shape */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(14, 21, 19, .06), 0 1px 1px rgba(14, 21, 19, .04);
  --shadow-2: 0 6px 20px rgba(14, 21, 19, .08), 0 2px 6px rgba(14, 21, 19, .05);
  --shadow-3: 0 18px 48px rgba(14, 21, 19, .16), 0 4px 12px rgba(14, 21, 19, .06);

  /* motion */
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --dur: .28s;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: not-allowed; }
input { font: inherit; color: inherit; }
[hidden] { display: none !important; }

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

.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: var(--r-sm); text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.eyebrow { font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.h1 { font-size: var(--fs-3xl); line-height: 1.08; letter-spacing: -.025em; font-weight: 750; }
.h2 { font-size: var(--fs-2xl); line-height: 1.15; letter-spacing: -.02em; font-weight: 720; }
.h3 { font-size: var(--fs-lg); line-height: 1.3; letter-spacing: -.01em; font-weight: 650; }
.lead { font-size: var(--fs-lg); line-height: 1.55; color: var(--ink-2); }
.meta { font-size: var(--fs-sm); color: var(--mute); }
.fine { font-size: var(--fs-sm); color: var(--mute); line-height: 1.5; }
.src { display: block; margin-top: 4px; font-size: var(--fs-xs); color: var(--mute); }

/* ---------- icons ---------- */
.ic { width: 22px; height: 22px; flex: none; }
.ic.sm { width: 18px; height: 18px; }
.ic.lg { width: 28px; height: 28px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--ink); color: #fff;
  font-weight: 650; font-size: var(--fs-md); text-decoration: none; text-align: center;
  transition: transform .15s var(--ease), background .2s, box-shadow .2s;
}
.btn:hover { background: #24302c; }
.btn:active { transform: scale(.98); }
.btn:disabled { background: var(--line-2); color: var(--mute); }
.btn.block { display: flex; width: 100%; }
.btn.brand { background: var(--brand); }
.btn.brand:hover { background: var(--brand-ink); }
.btn.light { background: #fff; color: var(--ink); box-shadow: var(--shadow-1); }
.btn.light:hover { background: var(--surface-2); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn.ghost:hover { background: var(--surface-2); }
.btn.on-night { background: #fff; color: var(--ink); }
.btn.ghost-night { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.28); }
.btn.ghost-night:hover { background: rgba(255,255,255,.08); }
.btn.sm { min-height: 44px; padding: 0 16px; font-size: var(--fs-sm); }

.link-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 0 8px; color: var(--ink-2); font-weight: 600; font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.link-btn:hover { text-decoration-color: currentColor; }

/* ---------- chips & badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; border-radius: var(--r-pill); background: var(--surface-2); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
.chip .ic { width: 14px; height: 14px; }
.chip.good { background: var(--brand-soft); color: var(--brand-ink); }
.chip.info { background: var(--blue-soft); color: var(--blue); }
.chip.warn { background: var(--amber-soft); color: var(--amber); }
.chip.alert { background: var(--red-soft); color: var(--red); }
.chip.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-bright); box-shadow: 0 0 0 0 rgba(47,209,143,.6); animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(47,209,143,.55); } 70% { box-shadow: 0 0 0 7px rgba(47,209,143,0); } 100% { box-shadow: 0 0 0 0 rgba(47,209,143,0); } }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--r-lg); box-shadow: var(--shadow-1); border: 1px solid var(--line); padding: 20px; }
.card.night { background: var(--night); color: var(--on-night); border-color: transparent; }
.card.night .fine, .card.night .meta { color: var(--on-night-mute); }
.card.brand { background: var(--brand); color: #fff; border-color: transparent; }
.card.brand .fine, .card.brand .meta { color: #cdeee0; }

/* ---------- vehicle illustrations ---------- */
.vill { width: 100%; height: auto; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
