/* =========================================================================
   MOTARIX AUTOMOTIVE - Design System
   Tokens inherited verbatim from the app: motarix/docs/DESIGN-SYSTEM.md
   Idiom: Stripe (precision, data-as-design, one accent, generous air)
   Job:   funnel to the mobile app (Monzo model)
   ========================================================================= */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  /* Ground + surface */
  --graphite:        #141517;
  --graphite-raised: #1D1F22;
  --graphite-deep:   #0D0E10;
  --bone:            #F6F4EF;
  --paper:           #FFFFFF;

  /* Ink */
  --ink:             #1A1B1D;
  --steel:           #666D77;
  --steel-light:     #9AA1AA;

  /* Lines */
  --hairline:        #E4E1DA;
  --hairline-dark:   #2A2D31;

  /* The one accent */
  --signal:          #C6402A;
  --signal-hot:      #E05237;
  --signal-deep:     #96301F;
  --signal-wash:     rgba(198, 64, 42, 0.08);

  /* State - never used for anything but state */
  --in-stock:        #2E7D4F;
  --order-in:        #A96A00;

  /* Type */
  --font-display: "Oswald", "Avenir Next Condensed", "HelveticaNeue-CondensedBold",
                  "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                  Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular,
                  Menlo, Consolas, monospace;

  /* Spacing - 4px base */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s6: 24px; --s8: 32px; --s12: 48px; --s16: 64px;
  --s20: 80px; --s24: 96px; --s30: 120px;

  /* Radius */
  --r-ctl:  8px;
  --r-card: 14px;
  --r-lg:   20px;
  --r-pill: 999px;

  /* Elevation - layered, Stripe-style */
  --lift-1: 0 1px 2px rgba(20,21,23,.04), 0 2px 6px rgba(20,21,23,.04);
  --lift-2: 0 2px 4px rgba(20,21,23,.04), 0 8px 20px rgba(20,21,23,.07);
  --lift-3: 0 4px 8px rgba(20,21,23,.05), 0 18px 44px rgba(20,21,23,.11);
  --lift-4: 0 8px 16px rgba(20,21,23,.08), 0 32px 72px rgba(20,21,23,.16);

  /* Layout */
  --page:  1160px;
  --prose: 720px;

  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ---------- 2. Reset + base --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  font-feature-settings: "kern" 1, "liga" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }

::selection { background: var(--signal); color: #fff; }

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

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--signal); color: #fff; padding: 12px 20px;
  font: 600 14px/1 var(--font-body); border-radius: 0 0 var(--r-ctl) 0;
}
.skip-link:focus { left: 0; }

/* ---------- 3. Layout ---------------------------------------------------- */
.wrap { width: 100%; max-width: var(--page); margin-inline: auto; padding-inline: 24px; }
.wrap--narrow { max-width: 900px; }

.section { padding-block: var(--s30); position: relative; }
.section--tight { padding-block: var(--s20); }
.section--dark { background: var(--graphite); color: var(--bone); }
.section--deep { background: var(--graphite-deep); color: var(--bone); }
.section--paper { background: var(--paper); }

@media (max-width: 860px) {
  .section { padding-block: var(--s16); }
  .section--tight { padding-block: var(--s12); }
}

/* ---------- 4. Type ------------------------------------------------------ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--signal);
  margin: 0 0 var(--s4);
  display: flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: currentColor;
  flex: none; opacity: .6;
}
.eyebrow--plain::before { display: none; }
.section--dark .eyebrow, .section--deep .eyebrow { color: var(--signal-hot); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .005em;
  text-transform: uppercase;
  line-height: 1.04;
  margin: 0;
  text-wrap: balance;
}

.h-display {
  font-size: clamp(2.5rem, 4.7vw, 4.05rem);
  letter-spacing: .002em;
}
.h1 { font-size: clamp(2.25rem, 4.6vw, 3.5rem); }
.h2 { font-size: clamp(1.75rem, 3.2vw, 2.6rem); }
.h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: .02em; }

.lede {
  font-size: clamp(1.05rem, 1.45vw, 1.3rem);
  line-height: 1.55;
  color: var(--steel);
  max-width: 56ch;
  margin: var(--s6) 0 0;
  text-wrap: pretty;
}
.section--dark .lede, .section--deep .lede { color: var(--steel-light); }

.body-copy { color: var(--steel); max-width: 62ch; text-wrap: pretty; }
.section--dark .body-copy { color: var(--steel-light); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* Head block */
.head { max-width: 760px; }
.head--center { margin-inline: auto; text-align: center; }
.head--center .eyebrow { justify-content: center; }
.head--center .lede { margin-inline: auto; }

/* ---------- 5. Buttons --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 24px;
  border-radius: var(--r-ctl);
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .005em;
  cursor: pointer;
  white-space: nowrap;
  max-width: 100%;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease),
              background-color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn--signal { background: var(--signal); color: #fff; box-shadow: var(--lift-2); }
.btn--signal:hover { background: var(--signal-hot); box-shadow: var(--lift-3); }

.btn--ink { background: var(--ink); color: var(--bone); box-shadow: var(--lift-2); }
.btn--ink:hover { background: #2b2d30; box-shadow: var(--lift-3); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn--ghost:hover { border-color: var(--steel); background: rgba(20,21,23,.03); }

.section--dark .btn--ghost, .hero .btn--ghost, .section--deep .btn--ghost {
  color: var(--bone); border-color: rgba(246,244,239,.25);
}
.section--dark .btn--ghost:hover, .hero .btn--ghost:hover, .section--deep .btn--ghost:hover {
  border-color: rgba(246,244,239,.55); background: rgba(246,244,239,.07);
}

.btn--lg { padding: 16px 30px; font-size: 16px; }
.btn--sm { padding: 10px 18px; font-size: 14px; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
@media (max-width: 400px) {
  /* Long labels (the full WhatsApp number) would otherwise force a 300px
     minimum and push past the gutter. */
  .btn { white-space: normal; text-align: center; }
}

/* Arrow link - the Stripe motif */
.arrow-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 15px; color: var(--signal);
}
.arrow-link svg { transition: transform .22s var(--ease); flex: none; }
.arrow-link:hover svg { transform: translateX(4px); }
.section--dark .arrow-link, .section--deep .arrow-link { color: var(--signal-hot); }

/* ---------- 6. Store badges ---------------------------------------------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.badge-link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 18px 10px 15px;
  border-radius: 10px;
  background: #000; color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  transition: transform .18s var(--ease), border-color .18s var(--ease);
}
.badge-link:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.5); }
.badge-link svg { flex: none; }
.badge-link .b-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.badge-link .b-sm { font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; opacity: .8; }
.badge-link .b-lg { font-size: 16px; font-weight: 600; letter-spacing: .005em; }

.on-light .badge-link { background: var(--ink); border-color: transparent; }

/* ---------- 7. Cards ----------------------------------------------------- */
.card {
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  padding: var(--s6);
  box-shadow: var(--lift-1);
  transition: transform .22s var(--ease), box-shadow .22s var(--ease),
              border-color .22s var(--ease);
}
.card--hover:hover {
  transform: translateY(-3px);
  box-shadow: var(--lift-3);
  border-color: #d8d4cb;
}
.card__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--signal-wash); color: var(--signal);
  margin-bottom: var(--s4);
}
.card h3 { margin-bottom: var(--s2); }
.card p { margin: 0; color: var(--steel); font-size: 15.5px; line-height: 1.6; }

.card--dark {
  background: var(--graphite-raised);
  border-color: var(--hairline-dark);
  box-shadow: none;
}
.card--dark p { color: var(--steel-light); }
.card--dark .card__icon { background: rgba(224,82,55,.14); color: var(--signal-hot); }

/* Grid */
.grid { display: grid; gap: var(--s4); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
}

/* Split layout */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.split--wide-left { grid-template-columns: 1.05fr .95fr; }
@media (max-width: 940px) {
  .split, .split--wide-left { grid-template-columns: 1fr; gap: 40px; }
  .split--flip > *:first-child { order: 2; }
}

/* ---------- 8. Pills + data --------------------------------------------- */
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px 5px 9px;
  border-radius: var(--r-pill);
  border: 1px solid currentColor;
  font-family: var(--font-mono);
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.pill::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex: none;
}
.pill--fits   { color: var(--in-stock); }
.pill--order  { color: var(--order-in); }
.pill--signal { color: var(--signal); }
.pill--steel  { color: var(--steel); }

/* Spec row - label / value, hairline between */
.spec { border-top: 1px solid var(--hairline); }
.spec__row {
  display: grid;
  grid-template-columns: minmax(0, 128px) minmax(0, 1fr);
  gap: var(--s4);
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  align-items: baseline;
}
.spec__label {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; color: var(--steel);
}
.spec__value {
  font-family: var(--font-mono); font-size: 13.5px; color: var(--ink);
  min-width: 0; overflow-wrap: anywhere;
}
.card--dark .spec, .card--dark .spec__row { border-color: var(--hairline-dark); }
.card--dark .spec__value { color: var(--bone); }
@media (max-width: 480px) {
  .spec__row { grid-template-columns: 1fr; gap: 2px; }
}

/* Stat block */
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}
.card .stat__num {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1;
  font-weight: 700;
  letter-spacing: -.02em;
}
.card p.stat__label, .card p.stat__note { font-size: inherit; }

.stat__label {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--steel); margin-top: 10px;
}
.section--dark .stat__label, .section--deep .stat__label { color: var(--steel-light); }
.stat__note { font-size: 14px; color: var(--steel); margin-top: 6px; line-height: 1.5; }
.section--dark .stat__note { color: var(--steel-light); }

/* ---------- 9. Footer ---------------------------------------------------- */
.footer { background: var(--graphite-deep); color: var(--steel-light); padding-block: var(--s16) var(--s8); }
.footer a { color: var(--steel-light); transition: color .16s var(--ease); }
.footer address a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(154,161,170,.5); }
.footer address a:hover { text-decoration-color: currentColor; }
.footer a:hover { color: var(--bone); }
.footer .footer__h {
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--bone);
  margin: 0 0 var(--s4);
}
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; font-size: 15px; }
.footer__grid {
  display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s8);
}
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: var(--s8) var(--s6); } }
@media (max-width: 480px) { .footer__grid { grid-template-columns: 1fr; } }
.footer__base {
  margin-top: var(--s12); padding-top: var(--s6);
  border-top: 1px solid var(--hairline-dark);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between;
  font-size: 13.5px;
}

/* ---------- 10. Utility -------------------------------------------------- */
.stack   { display: grid; gap: var(--s4); }
.stack-6 { display: grid; gap: var(--s6); }
.stack-8 { display: grid; gap: var(--s8); }
.mt-6 { margin-top: var(--s6); } .mt-8 { margin-top: var(--s8); }
.mt-12 { margin-top: var(--s12); } .mt-16 { margin-top: var(--s16); }
.center { text-align: center; }
.hairline-top { border-top: 1px solid var(--hairline); }
.section--dark .hairline-top { border-color: var(--hairline-dark); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Plain, clearly non-interactive counterpart to the copyable OE chips */
.console__oe-more {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--steel-light); padding: 5px 2px; align-self: center;
}
