/* ==========================================================================
   SubYourCar - Design Tokens
   Brand: ink #0B0C10 · volt #D4F32A · muted #8B8F98
   System derived from the FINN teardown: 1px borders (not shadows),
   tight radii, tint-paired semantics, big type gaps, lots of air.
   ========================================================================== */

/* --- Self-hosted fonts (GDPR: never load from Google/CDN at runtime) ----- */
@font-face {
  font-family: 'Geist';
  src: url('/assets/fonts/geist.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: 'InterVar';
  src: url('/assets/fonts/inter.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* ---------- Brand ---------- */
  --ink:            #0B0C10;   /* near-black - primary text, buttons, dark sections */
  --volt:           #D4F32A;   /* lime accent - use on <5% of pixels */
  --volt-deep:      #B8D419;   /* volt hover */
  --muted:          #8B8F98;

  /* ---------- Neutrals (the 1px borders do the "clean" work) ---------- */
  --white:          #FFFFFF;
  --page:           #F8F8F8;   /* page tint */
  --surface:        #F3F3F3;   /* card / image backdrop - ALL car renders sit on this */
  --border:         #E9EAEC;   /* the single most-used token on the site */
  --border-strong:  #D7D7D7;
  --text:           #0B0C10;
  --text-2:         #707070;   /* secondary */
  --text-3:         #979797;   /* tertiary / meta */

  /* ---------- Semantics - every one ships with a pale tint partner.
       Badges = tint background + saturated text. NEVER solid saturated pills.
       This one rule is most of why the page reads "fintech" not "car lot". --- */
  --ok:             #1E9E48;   --ok-tint:     #DEF5E6;
  --warn:           #E88F3D;   --warn-tint:   #FCEEE2;
  --bad:            #E71D3F;   --bad-tint:    #FCDFE4;
  --info:           #0072EA;   --info-tint:   #DFEFFF;

  /* ---------- WhatsApp ---------- */
  --wa:             #25D366;
  --wa-deep:        #1DA851;

  /* ---------- Type ----------
     Scale: 12/14/16/24/32/40/56/72. There is deliberately NO 18/20/22 -
     the gap between body and heading is what creates hierarchy and calm. */
  --font-display: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body:    'InterVar', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;

  --t-xs:   0.75rem;   /* 12 */
  --t-sm:   0.875rem;  /* 14 */
  --t-base: 1rem;      /* 16 */
  --t-lg:   1.5rem;    /* 24 */
  --t-xl:   2rem;      /* 32 */
  --t-2xl:  2.5rem;    /* 40 */
  --t-3xl:  3.5rem;    /* 56 */
  --t-4xl:  4.5rem;    /* 72 */

  --tracking-display: -0.025em;
  --leading-display: 1.06;
  --leading-body: 1.6;

  /* ---------- Space (4px grid) ---------- */
  --s-1: 4px;   --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 24px;  --s-6: 32px;  --s-7: 40px;  --s-8: 56px;
  --s-9: 80px;  --s-10: 112px;

  --section-y: 112px;      /* desktop section padding - "expensive" IS air */
  --section-y-mobile: 64px;

  /* ---------- Radius - restraint is the point.
       <=12px reads "financial product". 24px+ reads "toy app". ---------- */
  --r-sm:  4px;
  --r-md:  8px;    /* cards, buttons */
  --r-lg:  12px;   /* maximum for cards */
  --r-pill: 999px; /* chips only */

  /* ---------- Elevation - none at rest. The border does the work. ------ */
  --shadow-hover: 0 8px 24px rgba(11, 12, 16, 0.08);
  --shadow-lift:  0 12px 32px rgba(11, 12, 16, 0.10);

  /* ---------- Motion - functional only. Nothing over 500ms. ---------- */
  --ease: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast: 150ms;
  --dur: 200ms;
  --dur-slow: 400ms;

  /* ---------- Layout ---------- */
  --wrap: 1280px;
  --gutter: 24px;
}

/* ==========================================================================
   Reset
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

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

body {
  font-family: var(--font-body);
  font-size: var(--t-base);
  line-height: var(--leading-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis-weight: none;
}

img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* ==========================================================================
   Typography primitives
   ========================================================================== */
.display-1, .display-2, .display-3, h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-display);
  text-wrap: balance;
}

.display-1 { font-size: clamp(2.25rem, 6vw, var(--t-4xl)); }  /* hero */
.display-2 { font-size: clamp(2rem, 4.5vw, var(--t-3xl)); }   /* section head */
.display-3 { font-size: clamp(1.5rem, 3vw, var(--t-2xl)); }

.lede {
  font-size: var(--t-lg);
  line-height: 1.45;
  color: var(--text-2);
  font-weight: 300;               /* big + light = premium. big + bold = loud. */
  max-width: 62ch;
  text-wrap: pretty;
}

.body-lg { font-size: var(--t-base); color: var(--text-2); max-width: 68ch; }
.meta    { font-size: var(--t-sm); color: var(--text-2); }
.micro   { font-size: var(--t-xs); color: var(--text-3); }

.eyebrow {
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
}

.hl { color: var(--ink); position: relative; white-space: nowrap; z-index: 0; }
.hl::after {                       /* volt underline swipe - the one brand flourish */
  content: '';
  position: absolute;
  left: -2px; right: -2px; bottom: 0.06em;
  height: 0.34em;
  background: var(--volt);
  z-index: -1;
  border-radius: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section { padding-block: var(--section-y); }
@media (max-width: 768px) { section { padding-block: var(--section-y-mobile); } }

.section-head { margin-bottom: var(--s-8); max-width: 68ch; }
.section-head .display-2 { margin-bottom: var(--s-4); }

/* Dark section - punctuation. One or two per page, max. */
.dark {
  background: var(--ink);
  color: var(--white);
}
.dark .lede, .dark .body-lg, .dark .meta { color: rgba(255,255,255,0.66); }
.dark .eyebrow { color: var(--volt); }
.dark .card { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.10); }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--t-sm);
  line-height: 1;
  transition: background var(--dur) var(--ease),
              color var(--dur) var(--ease),
              transform var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: #22242C; }        /* darken ink ~8%. No hue change. */

.btn-volt { background: var(--volt); color: var(--ink); }
.btn-volt:hover { background: var(--volt-deep); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-strong);
}
.btn-ghost:hover { border-color: var(--ink); background: var(--page); }

.dark .btn-ghost { color: var(--white); border-color: rgba(255,255,255,0.24); }
.dark .btn-ghost:hover { border-color: var(--white); background: rgba(255,255,255,0.06); }

/* WhatsApp - the primary CTA of this entire site */
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); }
.btn-wa .ico { width: 18px; height: 18px; fill: currentColor; flex: none; }

.btn-block { width: 100%; }
.btn-lg { padding: 17px 28px; font-size: var(--t-base); }

/* Arrow nudge - costs nothing, reads expensive */
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }

/* ==========================================================================
   Chips / badges - tint bg + saturated text. Never solid saturated.
   ========================================================================== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  font-size: var(--t-xs);
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}
.chip-ok   { background: var(--ok-tint);   color: var(--ok); }
.chip-warn { background: var(--warn-tint); color: #B96B21; }
.chip-bad  { background: var(--bad-tint);  color: var(--bad); }
.chip-info { background: var(--info-tint); color: var(--info); }
.chip-neutral { background: var(--surface); color: var(--text-2); }
.chip-volt { background: var(--volt); color: var(--ink); }

.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

/* ==========================================================================
   Cards - 1px border, no shadow at rest. Shadow only on hover.
   ========================================================================== */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease),
              border-color var(--dur) var(--ease);
}
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-strong);
}

/* ==========================================================================
   Scroll reveal - opacity + transform only (GPU). Once. 60ms stagger.
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Utilities
   ========================================================================== */
.stack   { display: flex; flex-direction: column; }
.row     { display: flex; align-items: center; }
.gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); }
.gap-4 { gap: var(--s-4); } .gap-5 { gap: var(--s-5); } .gap-6 { gap: var(--s-6); }
.wrap-flex { flex-wrap: wrap; }
.mt-4 { margin-top: var(--s-4); } .mt-5 { margin-top: var(--s-5); }
.mt-6 { margin-top: var(--s-6); } .mt-8 { margin-top: var(--s-8); }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.divider { height: 1px; background: var(--border); border: 0; }
