/* ============================================================
   MOTORCHECK V4 — LAYOUT
   Light theme matching motorcheck.us brand pattern
   ============================================================ */

/* ════════════════════════════
   NAV
   ════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--pad-x);
  height: var(--nav-h);
  background: var(--bg-dark);
}
.nav__logo { display: flex; align-items: center; gap: 6px; }
.nav__logo img { height: 30px; width: auto; }
.nav__logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 19px;
  color: var(--text-inv);
}
.nav__logo-text span { color: var(--green); }
.nav__menu { display: flex; align-items: center; gap: 32px; }
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-inv-muted);
  transition: color var(--dur) var(--ease);
}
.nav__link:hover, .nav__link--active { color: var(--text-inv); }
.nav__right { display: flex; align-items: center; gap: 14px; }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
  background: none;
  border: none;
}
.nav__burger span { display: block; width: 20px; height: 2px; background: rgba(255,255,255,0.7); transition: all 200ms var(--ease); }
.nav__burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

.nav__drawer {
  display: none;
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: var(--bg-dark);
  flex-direction: column;
  padding: 20px var(--pad-x) 28px;
  gap: 2px;
  z-index: 199;
}
.nav__drawer.open { display: flex; }
.nav__drawer-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-inv-muted);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav__drawer-link:hover { color: var(--text-inv); }
.nav__drawer-link:last-of-type { border-bottom: none; }
.nav__drawer-cta { margin-top: 14px; text-align: center; }

/* ════════════════════════════
   HERO
   ════════════════════════════ */
.hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  padding: 0 var(--pad-x);
  background: linear-gradient(120deg, #1c2735 0%, #243042 100%);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero-car.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.55;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15,20,28,0.92) 0%, rgba(15,20,28,0.55) 55%, rgba(15,20,28,0.18) 100%);
}
.hero__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 64px 0;
}
.hero__left { color: var(--text-inv); }
.hero__tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 22px;
}
.hero__tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 2.4s ease infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(32px, 4.2vw, 48px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}
.hero__title em { color: var(--green); font-style: italic; }
.hero__body { font-size: 16px; line-height: 1.7; color: rgba(255,255,255,0.78); max-width: 48ch; margin-bottom: 32px; }
.hero__body strong { color: #fff; font-weight: 600; }

.hero__stats { display: flex; gap: 0; }
.hero__stat { padding-right: 22px; margin-right: 22px; border-right: 1px solid rgba(255,255,255,0.18); }
.hero__stat:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero__stat-n { font-family: var(--font-heading); font-size: 24px; font-weight: 800; color: var(--green); line-height: 1; }
.hero__stat-l { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 4px; }

/* Form card */
.form-card {
  background: var(--bg);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
}
.form-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 20px; margin-bottom: 6px; color: var(--text); }
.form-card__sub { font-size: 13px; color: var(--text-muted); margin-bottom: 22px; line-height: 1.5; }
.form-card__note { font-size: 11px; color: var(--text-faint); text-align: center; margin-top: 10px; line-height: 1.5; }

/* ════════════════════════════
   STRIP
   ════════════════════════════ */
.strip { background: var(--bg-dark); padding: 16px 0; overflow: hidden; }
.strip__inner { display: flex; white-space: nowrap; animation: strip-run 55s linear infinite; }
.strip:hover .strip__inner { animation-play-state: paused; }
@keyframes strip-run { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
.strip__item { font-size: 12px; font-weight: 600; color: rgba(255,255,255,0.5); flex-shrink: 0; padding: 0 32px; border-right: 1px solid rgba(255,255,255,0.1); }
.strip__item--hi { color: var(--green); }

/* ════════════════════════════
   NUMBERS
   ════════════════════════════ */
.numbers { background: var(--bg); padding: 72px var(--pad-x); }
.numbers__grid { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.numbers__card { background: var(--bg-soft); border-radius: var(--radius-lg); padding: 28px 24px; transition: transform var(--dur) var(--ease); }
.numbers__card:hover { transform: translateY(-3px); }
.numbers__n { font-family: var(--font-heading); font-weight: 800; font-size: clamp(30px, 3.4vw, 40px); color: var(--text); margin-bottom: 6px; }
.numbers__label { font-size: 13px; font-weight: 600; color: var(--text-mid); margin-bottom: 8px; }
.numbers__desc { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* ════════════════════════════
   PROBLEM
   ════════════════════════════ */
.problem { background: var(--bg-soft); padding: 88px var(--pad-x); }
.problem__inner { max-width: var(--max-w); margin: 0 auto; }
.problem__headline { margin-bottom: 44px; }
.problem__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.problem__item { background: var(--bg); border-radius: var(--radius-lg); padding: 32px 28px; transition: transform var(--dur) var(--ease); }
.problem__item:hover { transform: translateY(-3px); }
.problem__num { font-size: 12px; font-weight: 700; color: var(--text-faint); margin-bottom: 16px; }
.problem__item h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 11px; line-height: 1.35; }
.problem__item p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.problem__item p strong { color: var(--text); font-weight: 600; }

/* ════════════════════════════
   HOW IT WORKS
   ════════════════════════════ */
.how { background: var(--bg); padding: 88px var(--pad-x); }
.how__inner { max-width: var(--max-w); margin: 0 auto; }
.how__headline { margin-bottom: 0; }
.how__grid { display: grid; grid-template-columns: 240px 1fr 320px; gap: 48px; margin-top: 48px; align-items: start; }

.how__nav { display: flex; flex-direction: column; gap: 4px; }
.how__nav-item { padding: 15px 18px; border-radius: var(--radius-md); cursor: pointer; transition: background var(--dur) var(--ease); }
.how__nav-item.active { background: #EAF6EE; }
.how__nav-item:not(.active):hover { background: var(--bg-soft); }
.how__nav-num { font-size: 11px; font-weight: 700; color: var(--green-dark); margin-bottom: 3px; }
.how__nav-title { font-size: 14px; font-weight: 600; color: var(--text-faint); transition: color var(--dur) var(--ease); }
.how__nav-item.active .how__nav-title { color: var(--text); }

.how__panel-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 16px; }
.how__panel-title { font-family: var(--font-heading); font-size: clamp(22px, 2.6vw, 28px); font-weight: 700; color: var(--text); margin-bottom: 16px; }
.how__panel-body { font-size: 15px; color: var(--text-muted); line-height: 1.7; margin-bottom: 24px; max-width: 48ch; }
.how__panel-body strong { color: var(--text); font-weight: 600; }
.how__panel-list { display: flex; flex-direction: column; gap: 12px; }
.how__panel-list li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--text-mid); line-height: 1.5; }

.how__image { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-soft); position: sticky; top: 100px; min-height: 280px; }
.how__image img { width: 100%; display: block; }

/* ════════════════════════════
   GREEN BLOCK (trust section)
   ════════════════════════════ */
.green-block { background: var(--green); padding: 72px var(--pad-x); }
.green-block__inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.green-block__img { border-radius: var(--radius-lg); overflow: hidden; min-height: 280px; background: rgba(15,26,38,0.12); }
.green-block__img img { width: 100%; display: block; }

.green-stats { display: flex; gap: 0; margin-top: 20px; background: var(--green-deep); border-radius: var(--radius-md); padding: 18px 0; }
.gs { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,0.15); }
.gs:last-child { border-right: none; }
.gs-n { font-family: var(--font-heading); font-weight: 800; font-size: 26px; color: var(--text-inv); }
.gs-l { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

.green-block__right h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 700; color: var(--green-deep); margin-bottom: 18px; line-height: 1.25; }
.green-block__right p { font-size: 14px; color: rgba(15,26,38,0.75); line-height: 1.7; margin-bottom: 14px; }

/* ════════════════════════════
   COMPARE
   ════════════════════════════ */
.compare { background: var(--bg-soft); padding: 88px var(--pad-x); }
.compare__inner { max-width: var(--max-w); margin: 0 auto; }
.compare__sub { margin-bottom: 40px; }

.compare__table { width: 100%; background: var(--bg); border-radius: var(--radius-lg); overflow: hidden; border-collapse: collapse; }
.compare__table thead tr { background: var(--border-soft); }
.compare__table th { padding: 16px 22px; font-size: 11px; font-weight: 700; color: var(--text-muted); text-align: left; text-transform: uppercase; letter-spacing: 0.05em; }
.compare__table th.mc { color: var(--green-dark); }
.compare__table tr { transition: background 120ms; }
.compare__table tr:hover { background: var(--bg-soft); }
.compare__table td { padding: 15px 22px; font-size: 13px; color: var(--text-muted); border-top: 1px solid var(--border-soft); }
.compare__table td.feat { color: var(--text); font-weight: 600; }
.compare__table td.mc { color: var(--text); }
.compare__no { color: #D1D5DB; }
.compare__yes { color: var(--green); font-weight: 700; }

.compare__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 32px;
  flex-wrap: wrap;
}
.compare__footer p { font-size: 14px; color: var(--text-muted); }
.compare__footer strong { color: var(--green-dark); }

/* ════════════════════════════
   FAQ
   ════════════════════════════ */
.faq { background: var(--bg); padding: 88px var(--pad-x); }
.faq__inner { max-width: 820px; margin: 0 auto; }
.faq__list { margin-top: 40px; display: flex; flex-direction: column; gap: 12px; }
.faq__item {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease);
}
.faq__item[open] { border-color: var(--green); }
.faq__q {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+';
  font-size: 24px;
  font-weight: 400;
  color: var(--green);
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease);
  line-height: 1;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__a { padding: 0 24px 22px; }
.faq__a p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 10px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__bullets { margin: 10px 0; padding-left: 4px; display: flex; flex-direction: column; gap: 7px; }
.faq__bullets li {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.faq__bullets li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
}

/* ════════════════════════════
   FOOTER
   ════════════════════════════ */
.footer { background: var(--bg-dark); padding: 64px var(--pad-x) 32px; }
.footer__inner { max-width: var(--max-w); margin: 0 auto; }
.footer__grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer__logo { height: 28px; width: auto; margin-bottom: 12px; }
.footer__brand-name { font-family: var(--font-heading); font-weight: 800; font-size: 18px; color: var(--text-inv); margin-bottom: 12px; display: flex; align-items: center; gap: 4px; }
.footer__brand-name span { color: var(--green); }
.footer__brand-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; max-width: 30ch; }
.footer__tagline { font-size: 12px; font-weight: 700; color: var(--green); margin-top: 12px; }
.footer__col-title { font-size: 12px; font-weight: 700; color: rgba(255,255,255,0.85); margin-bottom: 14px; }
.footer__links a, .footer__links span { display: block; font-size: 13px; color: rgba(255,255,255,0.5); margin-bottom: 10px; transition: color var(--dur); }
.footer__links a:hover { color: var(--text-inv); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 22px; flex-wrap: wrap; gap: 8px; }
.footer__copy { font-size: 12px; color: rgba(255,255,255,0.35); }
.footer__copy a:hover { color: rgba(255,255,255,0.6); }

/* ════════════════════════════
   REVEAL
   ════════════════════════════ */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 480ms var(--ease), transform 480ms var(--ease); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.06s; }
.reveal-d2 { transition-delay: 0.13s; }
.reveal-d3 { transition-delay: 0.2s; }
.reveal-d4 { transition-delay: 0.27s; }

/* ════════════════════════════
   RESPONSIVE ≤1024px
   ════════════════════════════ */
@media (max-width: 1024px) {
  :root { --pad-x: 32px; }
  .hero__inner { grid-template-columns: 1fr; gap: 36px; padding: 48px 0; }
  .hero { min-height: auto; }
  .numbers__grid { grid-template-columns: 1fr 1fr; }
  .problem__grid { grid-template-columns: 1fr; }
  .how__grid { grid-template-columns: 1fr; gap: 32px; }
  .how__nav { flex-direction: row; flex-wrap: wrap; }
  .how__nav-item { flex: 1 1 45%; }
  .how__image { position: static; max-width: 480px; }
  .green-block__inner { grid-template-columns: 1fr; gap: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .compare__table th:nth-child(2), .compare__table td:nth-child(2) { display: none; }
}

/* ════════════════════════════
   RESPONSIVE ≤768px
   ════════════════════════════ */
@media (max-width: 768px) {
  :root { --pad-x: 20px; --nav-h: 60px; }
  .nav__menu, .nav__right .btn { display: none; }
  .nav__burger { display: flex; }
  .row-2 { grid-template-columns: 1fr; }
  .numbers__grid { grid-template-columns: 1fr 1fr; gap: 14px; }
  .numbers__card { padding: 22px 18px; }
  .problem { padding: 64px var(--pad-x); }
  .how { padding: 64px var(--pad-x); }
  .how__nav-item { flex: 1 1 100%; }
  .green-block { padding: 56px var(--pad-x); }
  .green-stats { flex-direction: column; gap: 0; }
  .gs { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.15); padding: 12px 0; }
  .gs:last-child { border-bottom: none; }
  .compare { padding: 64px var(--pad-x); }
  .compare__footer { flex-direction: column; align-items: flex-start; }
  .compare__footer .btn { width: 100%; justify-content: center; }
  .footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; align-items: flex-start; gap: 6px; }
  .form-card { padding: 24px; }
}

/* ════════════════════════════
   RESPONSIVE ≤480px
   ════════════════════════════ */
@media (max-width: 480px) {
  :root { --pad-x: 16px; }
  .numbers__grid { grid-template-columns: 1fr; }
}
