/* ==========================================================================
   Jitcar — home template layer (/)
   Hero with conversational entry + payment chips, body-type tiles,
   fresh-on-lot row. Anatomy per v3 boards (D1 desktop, 01 mobile).
   ========================================================================== */

/* --- Hero — the one dark band, lane dashes underneath --------------------- */
.dhero {
  position: relative;
  background: var(--asphalt);
  color: #fff;
  padding: 40px 44px 46px;
}
.dhero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 14px;
  height: 4px;
  background: var(--lane-dashes);
  opacity: .9;
}
.dhero h1 {
  font-size: var(--fs-4xl);
  font-weight: var(--w-black);
  line-height: 1.03;
  letter-spacing: -.018em;
  max-width: 640px;
}
.dhero h1 mark {
  background: none;
  color: var(--lane);
}
.dhero .sub {
  font-size: var(--fs-base);
  color: var(--steel-2);
  margin: 12px 0 18px;
}

/* Conversational entry — one of two front doors, same destination */
.heroline {
  display: flex;
  gap: 12px;
  align-items: stretch;
  max-width: 760px;
}
.ai-entry {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 0;
  border-radius: var(--radius-field);
  padding: 13px 16px;
}
.ai-entry .ico { color: var(--lane-ink); }
.ai-entry input {
  flex: 1;
  border: 0;
  outline: none;
  font-family: var(--sans);
  font-size: var(--fs-sm);
  color: var(--asphalt);
  line-height: 1.35;
  background: transparent;
}
.ai-entry input::placeholder {
  color: var(--steel);
  font-style: italic;
}

.dhero .paychips { margin-top: 13px; }
.dhero .paychips .chip { text-decoration: none; cursor: pointer; }

/* --- Sections -------------------------------------------------------------- */
.dsect {
  max-width: 1260px;
  margin: 0 auto;
  padding: 22px 28px 6px;
}
.dsect h2 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: var(--fs-md);
  font-weight: var(--w-extrabold);
  letter-spacing: 0;
  margin-bottom: 12px;
}
.dsect h2 a {
  font-size: var(--fs-xs);
  font-weight: var(--w-bold);
  color: var(--asphalt);
  text-decoration: none;
  border-bottom: 2px solid var(--lane);
}
.dsect h2 a .mono { font-size: inherit; }

/* --- Body-type tiles — live values, live counts ---------------------------- */
.btiles {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 10px;
}
.btile {
  display: block;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-field);
  padding: 10px 6px 8px;
  text-align: center;
  text-decoration: none;
  color: var(--asphalt);
}
.btile svg { width: 100%; height: 30px; }
.btile em {
  font-style: normal;
  font-size: var(--fs-2xs);
  font-weight: var(--w-bold);
  display: block;
  margin-top: 4px;
}
.btile .count {
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  color: var(--steel);
}

/* --- Fresh on the lot ------------------------------------------------------- */
.home-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  max-width: 1260px;
  margin: 0 auto;
  padding: 14px 28px 34px;
}

/* --- Responsive ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .dhero { padding: 30px 18px 40px; }
  .heroline { flex-direction: column; }
  .btiles { grid-template-columns: repeat(4, 1fr); }
  .home-grid { grid-template-columns: 1fr; padding: 14px 14px 30px; }
  .dsect { padding: 18px 14px 4px; }
  .dhero .paychips { flex-wrap: wrap; }
}
