/* ==========================================================================
   Fayeed AutoCare — marketing site
   Shared stylesheet for index.html (app + services) and franchise.html.

   Design tokens mirror the Flutter app's Garage OS design system
   (apps/customer_app/lib/core/theme.dart) so the site and the product
   read as one brand. Site chrome is dark; the phone mock-ups render the
   app's real light UI.
   ========================================================================== */

:root {
  --orange: #f97316;
  --orange-lt: #fb923c;
  --orange-deep: #ea580c;

  --ink: #0e0e10;
  --ink-2: #141517;
  --card: #17181b;
  --card-2: #1a1b1f;

  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);

  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.62);
  --text-3: rgba(255, 255, 255, 0.42);

  --success: #3ddc96;
  --success-deep: #1aa469;

  /* App (light) surfaces used inside the phone mock-ups */
  --app-bg: #f5f6f8;
  --app-card: #ffffff;
  --app-ink: #14171c;

  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --shell: 1200px;
  --pad: 40px;
  --radius: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0;
}

p { margin: 0; }

a {
  color: var(--orange);
  text-decoration: none;
  transition: color 0.18s ease;
}

a:hover { color: #fff; }

img { max-width: 100%; }

::selection {
  background: rgba(249, 115, 22, 0.32);
  color: #fff;
}

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

.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

.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;
}

/* ===================== Animation ===================== */

@keyframes fac-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes fac-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fac-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.9); }
}

@keyframes fac-sweep {
  from { transform: translateX(-120%); }
  to { transform: translateX(120%); }
}

@keyframes fac-ring {
  0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); }
  100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

@keyframes fac-fill {
  from { width: 0; }
}

/* Scroll-reveal: elements start hidden, .is-in is added by fac.js.
   Without JS (or with reduced motion) everything stays visible. */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.reveal.is-in {
  opacity: 1;
  transform: none;
}

.no-js .reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal { opacity: 1; transform: none; }
}

/* ===================== Buttons ===================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 16px 30px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 0.18s ease, background-color 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--orange-lt), var(--orange));
  color: #fff;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.36);
}

.btn--primary:hover {
  color: #fff;
  box-shadow: 0 16px 36px rgba(249, 115, 22, 0.46);
}

.btn--primary .sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.26), transparent);
  animation: fac-sweep 3.4s ease-in-out 1.4s infinite;
  pointer-events: none;
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--line-2);
  color: #fff;
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--sm {
  padding: 11px 22px;
  font-size: 13px;
  border-radius: 11px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* ===================== Nav ===================== */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 16, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav__inner {
  display: flex;
  align-items: center;
  gap: 34px;
  padding-top: 15px;
  padding-bottom: 15px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
  color: #fff;
}

.brand:hover { color: #fff; }

.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: contain;
  background: transparent;
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.5px;
  line-height: 1;
}

.brand__sub {
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 2.3px;
  color: var(--orange-lt);
  margin-top: 3px;
  line-height: 1;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
}

.nav__link {
  position: relative;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-2);
}

.nav__link:hover { color: #fff; }

.nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--orange);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.nav__link:hover::after,
.nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav__link[aria-current="page"] { color: #fff; }

.nav__spacer { flex: 1; }

/* The franchise tab is deliberately styled apart from the customer links —
   it leads to a different site section for a different audience. */
.nav__tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid rgba(249, 115, 22, 0.36);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.1);
  color: var(--orange-lt);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav__tab:hover {
  background: rgba(249, 115, 22, 0.18);
  border-color: var(--orange);
  color: #fff;
}

.nav__tab[aria-current="page"] {
  background: linear-gradient(180deg, var(--orange-lt), var(--orange));
  border-color: transparent;
  color: #fff;
}

.nav__toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.nav__toggle svg { display: block; }

/* ===================== Section furniture ===================== */

/* Anchor targets must clear the sticky nav, or the heading lands underneath it. */
:target,
[id] { scroll-margin-top: 88px; }

.section { padding-top: 104px; }

.section--tight { padding-top: 76px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.6px;
  color: var(--orange-lt);
  text-transform: uppercase;
}

.eyebrow--pill {
  padding: 7px 16px;
  border: 1px solid rgba(249, 115, 22, 0.32);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.12);
  letter-spacing: 0.8px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: fac-pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

.dot--green { background: var(--success); }

.section__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 28px;
  margin-bottom: 38px;
}

.section__title {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin-top: 10px;
}

.section__note {
  max-width: 340px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.65;
}

/* ===================== Hero ===================== */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 8%, rgba(249, 115, 22, 0.14), transparent 46%),
    linear-gradient(180deg, #121316 0%, var(--ink) 62%);
}

.hero__orb {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(249, 115, 22, 0.16);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.82fr);
  align-items: center;
  gap: 60px;
  padding-top: 92px;
  padding-bottom: 100px;
}

.hero__title {
  font-size: clamp(36px, 5.6vw, 62px);
  line-height: 1.03;
  margin: 24px 0 0;
}

.hero__title em {
  font-style: normal;
  color: var(--orange-lt);
}

.hero__lead {
  max-width: 520px;
  margin-top: 22px;
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-2);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  margin-top: 32px;
}

.hero__meta {
  margin-top: 16px;
  font-size: 12.5px;
  color: var(--text-3);
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 42px;
  margin-top: 48px;
}

.stat__value {
  font-family: var(--display);
  font-size: 30px;
  font-weight: 800;
  line-height: 1;
}

.stat__value span {
  font-size: 16px;
  color: var(--text-3);
}

.stat__label {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-3);
}

.hero__device {
  display: flex;
  justify-content: center;
  position: relative;
}

/* ===================== Phone mock-up ===================== */

.device {
  position: relative;
  width: 300px;
  flex-shrink: 0;
  padding: 11px;
  border-radius: 44px;
  background: linear-gradient(160deg, #2a2c31, #131417);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 2px 0 rgba(255, 255, 255, 0.06) inset;
}

.device--sm { width: 258px; border-radius: 40px; }

.device__screen {
  position: relative;
  overflow: hidden;
  border-radius: 34px;
  background: var(--app-bg);
  color: var(--app-ink);
  font-size: 12px;
  line-height: 1.4;
}

.device__notch {
  position: absolute;
  top: 9px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 22px;
  border-radius: 999px;
  background: #0b0c0e;
  z-index: 3;
}

.device__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 20px 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--app-ink);
}

.device__status-icons {
  display: flex;
  align-items: center;
  gap: 4px;
}

.device__body {
  padding: 10px 15px 20px;
}

/* Glow behind the hero device */
.device-glow::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22), transparent 62%);
  filter: blur(28px);
  z-index: -1;
}

/* --- App UI primitives (light theme, mirrors the Flutter screens) --- */

.ui-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ui-card {
  background: var(--app-card);
  border-radius: 16px;
  padding: 13px 14px;
  box-shadow: 0 6px 16px rgba(16, 28, 28, 0.06);
}

.ui-card + .ui-card { margin-top: 11px; }

.ui-title {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.ui-sub {
  font-size: 10.5px;
  color: rgba(20, 23, 28, 0.5);
}

.ui-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: rgba(20, 23, 28, 0.45);
  text-transform: uppercase;
}

.ui-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(26, 164, 105, 0.12);
  color: var(--success-deep);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.ui-pill .dot {
  width: 6px;
  height: 6px;
  background: var(--success-deep);
}

.ui-back {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 2px 10px rgba(16, 28, 28, 0.08);
  font-size: 14px;
  color: rgba(20, 23, 28, 0.7);
  flex-shrink: 0;
}

.ui-eta {
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  color: var(--orange);
}

/* Tracker stage list */
.ui-stages {
  display: grid;
  gap: 0;
}

.ui-stage {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 10px;
  position: relative;
  padding-bottom: 13px;
}

.ui-stage:last-child { padding-bottom: 0; }

.ui-stage__mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid rgba(20, 23, 28, 0.16);
  background: #fff;
  font-size: 10px;
  color: #fff;
  z-index: 1;
}

/* Connector line between stage marks */
.ui-stage:not(:last-child) .ui-stage__mark::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 15px;
  background: rgba(20, 23, 28, 0.1);
}

.ui-stage--done .ui-stage__mark {
  background: var(--success-deep);
  border-color: var(--success-deep);
}

.ui-stage--done:not(:last-child) .ui-stage__mark::after {
  background: rgba(26, 164, 105, 0.45);
}

.ui-stage--now .ui-stage__mark {
  background: var(--orange);
  border-color: var(--orange);
  animation: fac-ring 2s ease-out infinite;
}

.ui-stage__label {
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(20, 23, 28, 0.45);
  padding-top: 2px;
}

.ui-stage--done .ui-stage__label { color: rgba(20, 23, 28, 0.75); }

.ui-stage--now .ui-stage__label {
  color: var(--app-ink);
  font-weight: 800;
}

.ui-stage__time {
  font-size: 9.5px;
  color: rgba(20, 23, 28, 0.35);
  margin-top: 1px;
}

/* Progress bar */
.ui-bar {
  height: 7px;
  border-radius: 999px;
  background: rgba(20, 23, 28, 0.08);
  overflow: hidden;
}

.ui-bar__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--orange-lt), var(--orange));
  animation: fac-fill 1.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Checklist */
.ui-check {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3.5px 0;
  font-size: 11px;
  color: rgba(20, 23, 28, 0.72);
}

.ui-check__box {
  display: grid;
  place-items: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 1.6px solid rgba(20, 23, 28, 0.22);
  font-size: 8px;
  color: #fff;
  flex-shrink: 0;
}

.ui-check--done .ui-check__box {
  background: var(--success-deep);
  border-color: var(--success-deep);
}

.ui-check--done { color: rgba(20, 23, 28, 0.45); }

/* Photo-proof thumbnails: CSS-drawn stand-ins, not real photography */
.ui-shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.ui-shot {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, #2c3038, #171a1f);
}

.ui-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.28), transparent 46%),
    linear-gradient(112deg, transparent 42%, rgba(255, 255, 255, 0.14) 50%, transparent 58%);
}

.ui-shot--tag::before {
  content: "BEFORE";
  position: absolute;
  left: 5px;
  bottom: 5px;
  z-index: 2;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  font-size: 6.5px;
  font-weight: 800;
  letter-spacing: 0.4px;
}

.ui-shot--after::before { content: "AFTER"; }

/* Buttons inside the app mock-up */
.ui-btn {
  display: block;
  width: 100%;
  padding: 11px;
  border-radius: 11px;
  background: linear-gradient(180deg, var(--orange-lt), var(--orange));
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 6px 16px rgba(249, 115, 22, 0.32);
}

.ui-btn--ghost {
  background: #fff;
  color: rgba(20, 23, 28, 0.65);
  border: 1px solid rgba(20, 23, 28, 0.12);
  box-shadow: none;
}

.ui-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 11px;
}

/* Stamp card */
.ui-stamps {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 7px;
}

.ui-stamp {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1.6px dashed rgba(20, 23, 28, 0.18);
  display: grid;
  place-items: center;
  font-size: 10px;
  color: rgba(20, 23, 28, 0.3);
}

.ui-stamp--on {
  background: rgba(249, 115, 22, 0.12);
  border: 1.6px solid var(--orange);
  color: var(--orange);
}

.ui-stamp--ready {
  background: linear-gradient(180deg, var(--orange-lt), var(--orange));
  border-color: transparent;
  color: #fff;
}

/* Bottom tab bar */
.ui-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  padding: 10px 6px 14px;
  margin: 14px -15px -20px;
  background: #fff;
  border-top: 1px solid rgba(20, 23, 28, 0.07);
}

.ui-tab {
  display: grid;
  justify-items: center;
  gap: 3px;
  font-size: 7.5px;
  font-weight: 700;
  color: rgba(20, 23, 28, 0.35);
}

.ui-tab__icon {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  background: rgba(20, 23, 28, 0.18);
}

.ui-tab--on { color: var(--orange); }

.ui-tab--on .ui-tab__icon { background: var(--orange); }

/* ===================== Feature grid ===================== */

.grid {
  display: grid;
  gap: 20px;
}

.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.22s ease, box-shadow 0.22s ease;
}

.card--hover:hover {
  transform: translateY(-4px);
  border-color: rgba(249, 115, 22, 0.42);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
}

.card__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.24);
  color: var(--orange-lt);
  margin-bottom: 18px;
}

.card__title {
  font-size: 19px;
  line-height: 1.2;
}

.card__body {
  margin-top: 9px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.62;
}

/* ===================== Alternating feature rows ===================== */

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.72fr);
  align-items: center;
  gap: 64px;
  padding: 66px 0;
  border-bottom: 1px solid var(--line);
}

.feature:last-of-type { border-bottom: 0; }

.feature--flip .feature__media { order: -1; }

.feature__media {
  display: flex;
  justify-content: center;
}

.feature__title {
  font-size: clamp(25px, 3.2vw, 34px);
  line-height: 1.14;
  margin-top: 12px;
}

.feature__body {
  margin-top: 16px;
  font-size: 15px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 480px;
}

.ticks {
  display: grid;
  gap: 11px;
  margin-top: 22px;
  padding: 0;
  list-style: none;
}

.ticks li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 11px;
  align-items: start;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.55;
}

.ticks svg {
  margin-top: 3px;
  color: var(--orange);
  flex-shrink: 0;
}

/* ===================== Steps ===================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 26px;
  border-top: 2px solid var(--line-2);
}

.step--on { border-top-color: var(--orange); }

.step__num {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--orange-lt);
}

.step__title {
  margin-top: 10px;
  font-size: 19px;
}

.step__body {
  margin-top: 8px;
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ===================== Services ===================== */

.svc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.svc--flag { border-color: rgba(249, 115, 22, 0.3); }

.svc__head {
  position: relative;
  padding: 24px 24px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), transparent);
}

.svc--flag .svc__head {
  background: linear-gradient(160deg, rgba(249, 115, 22, 0.16), transparent 70%);
}

.svc__flag {
  position: absolute;
  top: 20px;
  right: 20px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.svc__name { font-size: 23px; }

.svc__blurb {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.6;
  max-width: 90%;
}

.svc__list {
  padding: 8px 24px 24px;
  margin: 0;
  list-style: none;
  flex: 1;
}

.svc__item {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.78);
}

.svc__item:last-child { border-bottom: 0; }

.svc__price {
  font-family: var(--display);
  font-size: 15px;
  font-weight: 700;
  color: var(--orange-lt);
  white-space: nowrap;
}

/* ===================== Branches ===================== */

.branch {
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
}

.branch__name { font-size: 20px; }

.branch__addr {
  margin-top: 7px;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
  min-height: 40px;
}

.branch__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.chip {
  padding: 6px 11px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-2);
}

.chip--star { color: var(--orange-lt); border-color: rgba(249, 115, 22, 0.34); }

/* ===================== Download band ===================== */

.download {
  position: relative;
  overflow: hidden;
  margin-top: 104px;
  padding: 68px 0 74px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 15% 20%, rgba(249, 115, 22, 0.16), transparent 42%),
    linear-gradient(180deg, #16171a, var(--ink));
}

.download__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 56px;
}

.download__title {
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.1;
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 0.18s ease, background-color 0.18s ease;
}

.store:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.26);
  color: #fff;
}

.store--soon {
  opacity: 0.55;
  cursor: default;
}

.store--soon:hover {
  transform: none;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--line-2);
}

.store__sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--text-3);
  text-transform: uppercase;
}

.store__name {
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.1;
}

/* ===================== FAQ ===================== */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

.faq__item {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.faq__item:hover { border-color: rgba(249, 115, 22, 0.34); }

.faq__item[open] { border-color: rgba(249, 115, 22, 0.3); }

.faq__q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  font-family: var(--display);
  font-size: 17px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker { display: none; }

.faq__q::after {
  content: "+";
  font-size: 22px;
  font-weight: 400;
  color: var(--orange);
  line-height: 1;
  flex-shrink: 0;
}

.faq__item[open] .faq__q::after { content: "\2212"; }

.faq__a {
  padding: 0 22px 21px;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
}

/* ===================== CTA band ===================== */

.cta {
  margin-top: 104px;
  padding: 74px 0 78px;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, #16171a, var(--ink));
  text-align: center;
}

.cta__title {
  font-size: clamp(30px, 4.4vw, 46px);
  line-height: 1.08;
}

.cta__body {
  max-width: 560px;
  margin: 18px auto 0;
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.65;
}

.cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 13px;
  justify-content: center;
  margin-top: 30px;
}

/* ===================== Footer ===================== */

.footer {
  padding: 54px 0 44px;
  border-top: 1px solid var(--line);
  background: #0b0b0d;
}

.footer__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 40px;
}

.footer__blurb {
  margin-top: 16px;
  max-width: 280px;
  font-size: 13px;
  color: var(--text-3);
  line-height: 1.65;
}

.footer__title {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: var(--text-3);
  text-transform: uppercase;
  font-family: var(--body);
}

.footer__links {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 0;
  list-style: none;
}

.footer__links a {
  font-size: 13.5px;
  color: var(--text-2);
}

.footer__links a:hover { color: #fff; }

.footer__base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-3);
}

/* ===================== Franchise page ===================== */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.metric {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
}

.metric--good { border-color: rgba(26, 164, 105, 0.3); }
.metric--warm { border-color: rgba(249, 115, 22, 0.3); }

.metric__label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--text-3);
  text-transform: uppercase;
}

.metric__value {
  margin-top: 12px;
  font-family: var(--display);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.metric--good .metric__value { color: var(--success); }
.metric--warm .metric__value { color: var(--orange-lt); }

.metric__note {
  margin-top: 9px;
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

/* Investment packages */
.pack {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 30px 28px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.pack--featured {
  border-color: var(--orange);
  background: linear-gradient(150deg, #1a1208, var(--card));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.pack__flag {
  position: absolute;
  top: -12px;
  left: 28px;
  padding: 6px 13px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--orange-lt), var(--orange));
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
}

.pack__name { font-size: 24px; }

.pack__sub {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.5;
  min-height: 38px;
}

.pack__price {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
  line-height: 1;
}

.pack--featured .pack__price { color: var(--orange-lt); }

.pack__price-note {
  margin-top: 8px;
  font-size: 11.5px;
  color: var(--text-3);
}

.pack__list {
  flex: 1;
  display: grid;
  gap: 11px;
  margin: 22px 0 24px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.pack__list li {
  display: grid;
  grid-template-columns: 17px 1fr;
  gap: 10px;
  align-items: start;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.5;
}

.pack__list svg {
  margin-top: 3px;
  color: var(--orange);
}

/* Process timeline */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 21px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, var(--orange), rgba(255, 255, 255, 0.12));
}

.tl {
  position: relative;
  text-align: center;
}

.tl__mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 0 auto;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  background: var(--card);
  font-family: var(--display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-2);
}

.tl--on .tl__mark {
  border-color: var(--orange);
  background: rgba(249, 115, 22, 0.16);
  color: var(--orange-lt);
}

.tl__when {
  margin-top: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--orange-lt);
}

.tl__title {
  margin-top: 7px;
  font-size: 17px;
}

.tl__body {
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.55;
}

/* Quote */
.quote {
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(150deg, #1a1208, var(--card));
}

.quote__text {
  font-family: var(--display);
  font-size: clamp(19px, 2.4vw, 25px);
  font-weight: 500;
  line-height: 1.45;
  color: #fff;
}

.quote__by {
  margin-top: 20px;
  font-size: 13px;
  color: var(--text-3);
}

.quote__by strong { color: #fff; }

/* ===================== Application form ===================== */

.form-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  overflow: hidden;
}

.form-aside {
  padding: 40px;
  border-right: 1px solid var(--line);
  background: linear-gradient(170deg, rgba(249, 115, 22, 0.09), transparent 55%);
}

.form-main { padding: 40px; }

.form-steps {
  display: flex;
  gap: 7px;
  margin-bottom: 10px;
}

.form-steps span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  transition: background-color 0.3s ease;
}

.form-steps span.is-on { background: var(--orange); }

.form-stepname {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-3);
  margin-bottom: 22px;
}

.field { margin-bottom: 18px; }

.field__label {
  display: block;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.8);
}

.field__hint {
  font-weight: 500;
  color: var(--text-3);
}

.input {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font-family: var(--body);
  font-size: 14.5px;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}

.input::placeholder { color: rgba(255, 255, 255, 0.3); }

.input:focus {
  outline: none;
  border-color: var(--orange);
  background: rgba(255, 255, 255, 0.06);
}

.input[aria-invalid="true"] { border-color: #e14d4d; }

.field__error {
  margin-top: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #ff8b8b;
}

.picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pick {
  padding: 10px 15px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-2);
  font-family: var(--body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.18s ease,
              background-color 0.18s ease, color 0.18s ease;
}

.pick:hover {
  transform: translateY(-1px);
  border-color: rgba(249, 115, 22, 0.6);
}

.pick[aria-pressed="true"] {
  background: rgba(249, 115, 22, 0.14);
  border-color: var(--orange);
  color: var(--orange-lt);
}

.form-nav {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.review {
  display: grid;
  gap: 0;
  margin-bottom: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.review__row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.review__row:last-child { border-bottom: 0; }

.review__row dt { color: var(--text-3); }

.review__row dd {
  margin: 0;
  color: #fff;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.form-sent { text-align: center; padding: 22px 0; }

.form-sent__mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: rgba(26, 164, 105, 0.14);
  border: 1px solid rgba(26, 164, 105, 0.4);
  color: var(--success);
}

.form-sent__ref {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 16px;
  border: 1px dashed var(--line-2);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
  color: var(--orange-lt);
}

.form-alert {
  margin-bottom: 18px;
  padding: 13px 15px;
  border: 1px solid rgba(225, 77, 77, 0.4);
  border-radius: 12px;
  background: rgba(225, 77, 77, 0.1);
  font-size: 13px;
  color: #ffb4b4;
  line-height: 1.55;
}

/* Honeypot — off-screen, never shown to humans */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ===================== Responsive ===================== */

@media (max-width: 1080px) {
  :root { --pad: 28px; }

  .nav__inner { gap: 20px; }
  .nav__links { gap: 18px; }

  .hero__inner {
    gap: 40px;
    padding-top: 72px;
    padding-bottom: 80px;
  }

  .grid--4, .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }

  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
  .timeline::before { display: none; }

  .feature { gap: 40px; }
  .form-aside, .form-main { padding: 32px; }
}

@media (max-width: 880px) {
  .nav__links,
  .nav__spacer { display: none; }

  .nav__inner { justify-content: space-between; gap: 12px; }
  .nav__toggle { display: flex; }

  /* Mobile drawer */
  .nav__links.is-open {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--pad) 18px;
    background: rgba(14, 14, 16, 0.98);
    border-bottom: 1px solid var(--line);
  }

  .nav__links.is-open .nav__link {
    padding: 14px 0;
    font-size: 15px;
    border-bottom: 1px solid var(--line);
  }

  .nav__links.is-open .nav__link::after { display: none; }

  .hero__inner {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .hero__orb { display: none; }

  .stats { gap: 28px 34px; margin-top: 38px; }

  .section { padding-top: 74px; }
  .section__head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .section__note { max-width: 100%; }

  .grid--2, .grid--3 { grid-template-columns: 1fr; }

  .feature,
  .feature--flip {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 48px 0;
  }

  .feature--flip .feature__media { order: 0; }

  .download { margin-top: 74px; }
  .download__inner { grid-template-columns: 1fr; gap: 36px; }

  .form-wrap { grid-template-columns: 1fr; }

  .form-aside {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cta { margin-top: 74px; }
}

@media (max-width: 560px) {
  :root { --pad: 20px; }

  .grid--4, .grid--3, .metrics, .steps { grid-template-columns: 1fr; }

  /* 2x2 reads better than 3-then-1 at phone widths. */
  .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 26px 20px;
  }
  .timeline { grid-template-columns: 1fr; }
  .tl { text-align: left; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
  .tl__mark { margin: 0; }
  .tl__when { margin-top: 0; }

  .btn { width: 100%; }
  .hero__actions, .cta__actions { flex-direction: column; }
  .stores { flex-direction: column; }
  .store { width: 100%; }

  .device { width: min(300px, 100%); }
  .footer__inner { grid-template-columns: 1fr; }
  .quote { padding: 28px 24px; }
  .form-aside, .form-main { padding: 24px 20px; }
  .review__row { grid-template-columns: 1fr; gap: 4px; }
}

/* ==========================================================================
   "Wash in motion" — the hero's car-wash motion language.

   Three coordinated pieces: a squeegee blade wiping the headline into view,
   wet-glass glare crossing the phone, and the tracker inside it actually
   running a wash. Everything here is transform/opacity
   only so it composites on the GPU, and all of it is switched off under
   prefers-reduced-motion (see the block at the end).
   ========================================================================== */

/* ---- Squeegee headline reveal ---- */

.squeegee {
  position: relative;
  display: inline-block;
  clip-path: inset(0 100% 0 0);
  animation: fac-squeegee 1.05s cubic-bezier(0.45, 0, 0.15, 1) 0.15s forwards;
}

@keyframes fac-squeegee {
  to { clip-path: inset(0 -2% 0 0); }
}

/* The blade itself: a bright wet edge travelling with the reveal. */
.squeegee::after {
  content: "";
  position: absolute;
  top: -4%;
  bottom: -4%;
  width: 130px;
  left: -140px;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    transparent,
    rgba(255, 255, 255, 0.06) 30%,
    rgba(251, 146, 60, 0.5) 52%,
    rgba(255, 255, 255, 0.85) 60%,
    transparent 72%
  );
  filter: blur(0.4px);
  animation: fac-blade 1.05s cubic-bezier(0.45, 0, 0.15, 1) 0.15s forwards;
}

@keyframes fac-blade {
  to { left: 104%; }
}

/* ---- Wet-glass glare across the phone ---- */

.device__screen::after {
  content: "";
  position: absolute;
  top: -60%;
  bottom: -60%;
  left: -60%;
  width: 42%;
  z-index: 4;
  pointer-events: none;
  transform: rotate(18deg) translateX(-140%);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.28),
    rgba(255, 255, 255, 0.06),
    transparent
  );
  animation: fac-glare 7.5s ease-in-out 2.2s infinite;
}

@keyframes fac-glare {
  0% { transform: rotate(18deg) translateX(-140%); }
  /* One quick pass, then a long rest — constant shimmer reads as broken. */
  18%, 100% { transform: rotate(18deg) translateX(430%); }
}

/* ---- Live tracker: stages advancing ---- */

/* Stage marks animate between states as JS moves the "now" class along. */
.ui-stage__mark,
.ui-stage__label { transition: background-color .45s ease, border-color .45s ease, color .45s ease; }

.ui-check__box { transition: background-color .4s ease, border-color .4s ease; }

.ui-bar__fill { transition: width .8s cubic-bezier(.2,.8,.2,1); }

/* The ETA ticks down; a soft flash marks each change. */
@keyframes fac-tick {
  0% { transform: translateY(-3px); opacity: 0; }
  100% { transform: none; opacity: 1; }
}

.ui-eta.is-tick { animation: fac-tick .38s cubic-bezier(.2,.8,.2,1); }

/* Water drip under the download band's headline. */
.drip {
  position: relative;
  display: inline-block;
}

.drip::after {
  content: "";
  position: absolute;
  left: 12%;
  bottom: -9px;
  width: 5px;
  height: 5px;
  border-radius: 50% 50% 55% 55%;
  background: linear-gradient(180deg, var(--orange-lt), var(--orange));
  opacity: 0;
  animation: fac-drip 5.5s ease-in 1.5s infinite;
}

@keyframes fac-drip {
  0% { transform: translateY(0) scaleY(0.6); opacity: 0; }
  8% { opacity: 1; }
  16% { transform: translateY(6px) scaleY(1.25); }
  30% { transform: translateY(34px) scaleY(0.8); opacity: 0; }
  100% { transform: translateY(34px); opacity: 0; }
}

/* ---- Motion off ---- */

@media (prefers-reduced-motion: reduce) {
  .squeegee {
    clip-path: none;
    animation: none;
  }

  .squeegee::after,
  .device__screen::after,
  .drip::after { display: none; }

  .ui-eta.is-tick { animation: none; }
}


/* ==========================================================================
   Detailing bay — the hero backdrop.

   The read is a freshly polished panel, not a light show: a car sitting in
   the dark while light travels slowly across its paint, a buffer working
   swirls into the clear coat, and water beading off. Everything is slow and
   soft — detailing is patient work, and the motion should feel that way.
   ========================================================================== */

.detailfx {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

/* Protects headline contrast over anything moving behind it. */
.detailfx::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(14, 14, 16, 0.95) 26%,
    rgba(14, 14, 16, 0.66) 48%,
    rgba(14, 14, 16, 0.22) 100%
  );
}

/* ---- The car ---- */

.car {
  position: absolute;
  right: -4%;
  bottom: 6%;
  width: min(80%, 1060px);
  opacity: 1;
}

.car svg { display: block; width: 100%; height: auto; }

/* Deep clear-coat: the body sits dark, so highlights have somewhere to land. */
.car__body { fill: url(#paint); }

.car__glass { fill: rgba(150, 190, 225, 0.26); }

.car__trim { fill: none; stroke: rgba(255, 255, 255, 0.3); stroke-width: 2.5; }

/* Specular band travelling along the flank, the way a strip light does. */
.car__shine {
  fill: url(#shine);
  mix-blend-mode: screen;
  animation: fac-shine 9s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  transform-box: fill-box;
}

@keyframes fac-shine {
  0%, 8% { transform: translateX(-115%); }
  62%, 100% { transform: translateX(118%); }
}

/* ---- Buffer working the paint ---- */

.buffer {
  position: absolute;
  width: 132px;
  height: 132px;
  right: 26%;
  top: 34%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 40% 36%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.1) 44%, transparent 66%),
    conic-gradient(from 0deg, rgba(255, 255, 255, 0.2), transparent 38%, rgba(255, 255, 255, 0.2) 72%, transparent);
  filter: blur(5px);
  animation: fac-buff 14s ease-in-out infinite, fac-swirl 1.6s linear infinite;
  will-change: transform;
}

/* Slow figure-of-eight across a panel, the way a pad is actually worked. */
@keyframes fac-buff {
  0%   { translate: 0 0; opacity: 0.35; }
  20%  { translate: -150px 54px; opacity: 0.7; }
  45%  { translate: -40px 130px; opacity: 0.5; }
  70%  { translate: -195px 176px; opacity: 0.68; }
  100% { translate: 0 0; opacity: 0.35; }
}

@keyframes fac-swirl {
  to { rotate: 360deg; }
}

/* The gloss the pad leaves behind. */
.buffer::after {
  content: "";
  position: absolute;
  inset: -28% -10%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  opacity: 0.5;
}

/* ---- Water beading off the paint ---- */

.bead {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border-radius: 50% 50% 58% 58%;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.95), rgba(186, 224, 255, 0.5) 52%, rgba(186, 224, 255, 0.08) 78%);
  box-shadow: 0 0 10px rgba(190, 226, 255, 0.35);
  opacity: 0;
  animation: fac-bead var(--t) cubic-bezier(0.55, 0, 0.85, 0.4) var(--d) infinite;
  will-change: transform, opacity;
}

/* Beads hang, swell, then run — they do not fall like rain. */
@keyframes fac-bead {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  14% { transform: translateY(0) scale(1); opacity: 0.9; }
  38% { transform: translateY(6px) scale(1.05); opacity: 0.9; }
  100% { transform: translateY(190px) scale(0.75); opacity: 0; }
}

@media (max-width: 880px) {
  .car { width: 128%; right: -30%; bottom: 12%; opacity: 0.5; }
  .buffer { display: none; }
  .detailfx::after { background: rgba(14, 14, 16, 0.88); }
}

@media (prefers-reduced-motion: reduce) {
  .car__shine, .buffer, .bead { animation: none; }
  .buffer, .bead { opacity: 0.25; }
}
