:root {
  --black: #09090b;
  --dark: #18181b;
  --muted: #71717a;
  --light: #f4f4f5;
  --white: #ffffff;
  --border: #e4e4e7;
  --accent: #38c6ff;
  --accent-dark: #0b7cff;
  --accent-soft: #e8f8ff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--black);
  background: #fafafa;
}

.hero {
  background: radial-gradient(circle at 15% 10%, #3f3f46, transparent 28%), linear-gradient(135deg, #09090b, #18181b);
  color: var(--white);
  padding: 20px;
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo { font-weight: 900; font-size: 20px; letter-spacing: -0.02em; }
.nav-btn, .secondary-btn {
  color: var(--white);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.25);
  padding: 12px 18px;
  border-radius: 16px;
  font-weight: 800;
}

.hero-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 70px 0 80px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  color: #d4d4d8;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.08em;
  font-size: 13px;
}
.eyebrow.dark { color: var(--muted); }

h1 {
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin: 14px 0 22px;
}

.subtext {
  color: #d4d4d8;
  font-size: 19px;
  line-height: 1.7;
  max-width: 680px;
}

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.assistant-hero-btn {
  border: 1px solid rgba(56,198,255,0.55);
  background: linear-gradient(180deg, rgba(56,198,255,0.18), rgba(255,255,255,0.06));
  color: var(--white);
  border-radius: 16px;
  padding: 15px 22px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(0,0,0,0.15);
}
.assistant-hero-btn:hover { background: rgba(255,255,255,0.2); }
.primary-btn {
  background: var(--black);
  color: var(--white);
  border: none;
  text-decoration: none;
  padding: 15px 22px;
  border-radius: 16px;
  font-weight: 900;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  font-size: 16px;
}
.hero .primary-btn { background: var(--white); color: var(--black); }

.hero-card {
  background: var(--white);
  color: var(--black);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0,0,0,0.25);
}
.hero-card h2 { font-size: 30px; margin: 0 0 18px; letter-spacing: -0.04em; }
.hero-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hero-card li { background: var(--light); padding: 15px; border-radius: 16px; font-weight: 800; }
.hero-card li::before { content: "✓"; margin-right: 10px; }

.section { max-width: 1120px; margin: 0 auto; padding: 54px 20px 20px; }
.section h2, .request-box h2 { font-size: clamp(32px, 5vw, 48px); margin: 8px 0 12px; letter-spacing: -0.05em; }
.section p, .request-box p { color: var(--muted); font-size: 18px; line-height: 1.6; max-width: 760px; }

.specials-grid {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.car-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.car-card img { width: 100%; height: 220px; object-fit: contain; display: block; background: var(--light); padding: 8px; }
.placeholder-img {
  height: 220px;
  background: linear-gradient(135deg, #18181b, #3f3f46);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  text-align: center;
  padding: 20px;
  font-size: 22px;
  letter-spacing: -0.03em;
}
.card-body { padding: 20px; }
.badge { display: inline-block; background: var(--black); color: var(--white); border-radius: 99px; padding: 7px 11px; font-size: 12px; font-weight: 900; text-transform: uppercase; }
.make { color: var(--muted); font-weight: 800; margin: 18px 0 4px; }
.car-card h3 { font-size: 28px; margin: 0; letter-spacing: -0.04em; }
.trim, .notes { color: var(--muted); line-height: 1.5; }
.deal-box { background: var(--light); border-radius: 20px; padding: 16px; margin: 16px 0; }
.deal-box strong { display: block; font-size: 30px; letter-spacing: -0.04em; line-height: 1; }
.deal-box span { color: var(--muted); font-weight: 900; display: block; margin-top: 8px; }
.card-disclaimer { color: var(--muted); font-size: 12px; line-height: 1.4; margin: 10px 0 16px; font-weight: 700; }
.deal-btn { width: 100%; background: var(--black); color: var(--white); border: none; border-radius: 16px; padding: 15px; font-weight: 900; font-size: 16px; cursor: pointer; }


.filter-panel-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 10px;
}
.filter-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 24px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.05);
}
.filter-copy h2 {
  font-size: clamp(30px, 4vw, 44px);
  margin: 8px 0 8px;
  letter-spacing: -0.05em;
}
.filter-copy p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.5;
  max-width: 760px;
  margin: 0 0 18px;
}
.filter-count {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}

.request-box-wrap { max-width: 1120px; margin: 0 auto; padding: 24px 20px 10px; }
.request-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}
.request-box.compact h2 { font-size: clamp(28px, 4vw, 40px); }
.bottom-request { padding-top: 36px; }

.filters {
  background: #f4f4f5;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 14px;
  align-items: end;
}
.clear-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 15px 18px;
  font-weight: 900;
  cursor: pointer;
}

.status-message {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  color: var(--muted);
  font-weight: 800;
}
.status-message.hidden { display: none; }
.no-results {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px;
  color: var(--muted);
  font-size: 17px;
  font-weight: 800;
}

.how { padding-bottom: 60px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps div { background: var(--white); border: 1px solid var(--border); border-radius: 24px; padding: 22px; }
.steps strong { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--black); color: var(--white); }
.steps h3 { margin-bottom: 4px; }
.steps p { font-size: 15px; margin: 0; }

.modal { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.65); padding: 18px; align-items: center; justify-content: center; z-index: 10; }
.modal.show { display: flex; }
.modal-box { background: var(--white); border-radius: 28px; padding: 24px; width: 100%; max-width: 560px; position: relative; max-height: 92vh; overflow: auto; }
.close { position: absolute; top: 16px; right: 18px; border: none; background: var(--light); border-radius: 50%; width: 38px; height: 38px; font-size: 24px; cursor: pointer; }
.modal-box h2 { margin: 8px 40px 6px 0; font-size: 30px; letter-spacing: -0.04em; }
.modal-deal { color: var(--muted); font-weight: 800; }
form { display: grid; gap: 13px; margin-top: 18px; }
label { display: grid; gap: 7px; font-size: 14px; font-weight: 800; color: #3f3f46; }
input, textarea, select { width: 100%; border: 1px solid var(--border); border-radius: 15px; padding: 14px; font: inherit; outline: none; background: #fff; }
input:focus, textarea:focus, select:focus { border-color: var(--black); }
.full { width: 100%; }
.privacy-note { text-align: center; color: var(--muted); font-size: 12px; }
.hidden-field { display: none; }
.hidden-field.show { display: grid; }

.success-message {
  display: none;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 16px;
  background: #f1f1f4;
  color: #111;
  font-weight: 800;
  text-align: center;
}
.success-message.show { display: block; }

footer { text-align: center; background: var(--white); border-top: 1px solid var(--border); padding: 26px 18px; color: var(--muted); }
.fine-print { max-width: 780px; margin: 8px auto 0; font-size: 12px; line-height: 1.5; }

@media (max-width: 920px) {
  .hero-inner, .specials-grid, .steps, .filters { grid-template-columns: 1fr; }
  .hero-inner { padding: 48px 0 58px; }
  .nav { gap: 14px; }
  .nav-btn { padding: 10px 13px; }
  .request-box { align-items: stretch; flex-direction: column; }
  .request-box .primary-btn { width: 100%; }
}

/* Shopping-style filter tab / drawer update */
.shopping-filter-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 38px 20px 8px;
}
.shopping-filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  box-shadow: 0 12px 35px rgba(0,0,0,0.05);
}
.shopping-filter-bar h2 {
  font-size: clamp(30px, 4vw, 46px);
  margin: 6px 0 4px;
  letter-spacing: -0.05em;
}
.filter-tab-btn {
  border: none;
  background: var(--black);
  color: var(--white);
  border-radius: 18px;
  padding: 16px 20px;
  min-width: 190px;
  font-size: 16px;
  font-weight: 900;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.filter-icon {
  font-size: 17px;
  line-height: 1;
  transform: translateY(-1px);
}
.active-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}
.active-filter-pills span {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-weight: 900;
  font-size: 13px;
}
.filter-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 20;
}
.filter-backdrop.show { display: block; }
.filter-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -18px 0 45px rgba(0,0,0,0.18);
  z-index: 21;
  padding: 24px;
  transform: translateX(105%);
  transition: transform 0.22s ease;
  overflow-y: auto;
}
.filter-drawer.show { transform: translateX(0); }
.filter-drawer-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}
.filter-drawer-header h2 {
  margin: 4px 0 6px;
  font-size: 34px;
  letter-spacing: -0.05em;
}
.filter-drawer-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}
.drawer-close {
  border: none;
  background: var(--light);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.drawer-filters {
  grid-template-columns: 1fr;
  background: transparent;
  border: none;
  padding: 0;
  gap: 16px;
}
.drawer-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.compact-heading { padding-top: 10px; }
.compact-heading h2 { display: none; }

@media (max-width: 920px) {
  .shopping-filter-bar {
    align-items: stretch;
    flex-direction: column;
  }
  .filter-tab-btn {
    width: 100%;
    min-width: 0;
  }
  .drawer-actions {
    grid-template-columns: 1fr;
  }
}


/* Funnel upgrades */
.top-request { padding-top: 6px; padding-bottom: 28px; }
.highlight-request {
  background: linear-gradient(135deg, #ffffff, #f4f4f5);
  border: 2px solid #d4d4d8;
}
.highlight-request h2 { margin-top: 4px; }

.sticky-contact-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: none;
  grid-template-columns: 1fr 1fr 1.2fr;
  gap: 8px;
  padding: 10px;
  background: rgba(255,255,255,0.96);
  border-top: 1px solid var(--border);
  box-shadow: 0 -12px 28px rgba(0,0,0,0.12);
  backdrop-filter: blur(12px);
}
.sticky-contact-bar a, .sticky-contact-bar button {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 15px;
  text-decoration: none;
  font-weight: 900;
  font-size: 13px;
  cursor: pointer;
}
.sticky-contact-bar a {
  background: var(--light);
  color: var(--black);
  border: 1px solid var(--border);
}
.sticky-contact-bar button {
  background: var(--black);
  color: var(--white);
  border: none;
}

@media (max-width: 760px) {
  body { padding-bottom: 78px; }
  .sticky-contact-bar { display: grid; }
  .car-card img, .placeholder-img { height: 190px; }
  .deal-box strong { font-size: 28px; }
}


.turnstile-wrap {
  display: grid;
  gap: 0.45rem;
  justify-items: start;
  margin: 0.25rem 0 0.75rem;
}

.turnstile-message {
  display: none;
  margin: 0;
  color: #b42318;
  font-size: 0.9rem;
  font-weight: 700;
}

.turnstile-message.show {
  display: block;
}

/* Guided Find My Deal assistant */
.deal-assistant {
  position: fixed;
  right: 24px;
  bottom: 92px;
  z-index: 40;
  display: grid;
  justify-items: end;
  gap: 12px;
}
.assistant-prompt {
  position: relative;
  display: grid;
  gap: 10px;
  width: min(270px, calc(100vw - 28px));
  background: var(--white);
  color: var(--black);
  border: 1px solid rgba(9,9,11,0.08);
  border-radius: 20px;
  padding: 14px 16px;
  box-shadow: 0 22px 60px rgba(0,0,0,0.18);
  font-size: 13px;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.assistant-prompt::after {
  content: "";
  position: absolute;
  right: 56px;
  bottom: -8px;
  width: 16px;
  height: 16px;
  background: var(--white);
  border-right: 1px solid rgba(9,9,11,0.08);
  border-bottom: 1px solid rgba(9,9,11,0.08);
  transform: rotate(45deg);
}
.assistant-prompt strong {
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.assistant-prompt span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}
.assistant-prompt.show {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
  animation: assistantBounce 0.55s ease both;
}
.assistant-prompt-close {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 20px;
  font-weight: 900;
  cursor: pointer;
}
.assistant-mini-action {
  justify-self: start;
  border: none;
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 10px 15px;
  font-weight: 900;
  cursor: pointer;
}
.chat-toggle {
  border: none;
  background: transparent;
  color: var(--white);
  font-weight: 900;
  cursor: pointer;
}
.avatar-toggle {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 10px;
  transform: translateY(22px);
  opacity: 0;
  animation: assistantSlideUp 0.65s ease 0.7s forwards;
}
.assistant-new-badge {
  position: absolute;
  top: 4px;
  right: 20px;
  z-index: 4;
  background: linear-gradient(180deg, #4fe2ff, #21c3ff);
  color: #fff;
  border: 3px solid #fff;
  border-radius: 999px;
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1;
  font-weight: 1000;
  box-shadow: 0 10px 20px rgba(0,0,0,0.18);
}
.assistant-ring {
  position: absolute;
  width: 138px;
  height: 138px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,198,255,0.28) 0%, rgba(56,198,255,0.08) 45%, rgba(56,198,255,0) 72%);
  animation: assistantPulse 2.1s infinite;
  bottom: 44px;
}
.assistant-avatar-shell {
  position: relative;
  width: 150px;
  height: 128px;
  overflow: visible;
  display: grid;
  align-items: end;
  justify-items: center;
}
.assistant-avatar {
  width: 164px;
  max-width: none;
  height: auto;
  display: block;
  position: relative;
  transform: translateY(2px);
  filter: drop-shadow(0 18px 28px rgba(0,0,0,0.20));
}
.assistant-label {
  background: var(--black);
  color: var(--white);
  border-radius: 999px;
  padding: 12px 16px;
  font-size: 15px;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

@keyframes assistantPulse {
  0% { transform: scale(0.9); opacity: 0.72; }
  70% { transform: scale(1.18); opacity: 0; }
  100% { transform: scale(1.18); opacity: 0; }
}
@keyframes assistantSlideUp {
  from { transform: translateY(22px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}
@keyframes assistantBounce {
  0% { transform: translateY(18px) scale(0.96); }
  60% { transform: translateY(-4px) scale(1.02); }
  100% { transform: translateY(0) scale(1); }
}
.chat-window {
  display: none;
  width: min(410px, calc(100vw - 28px));
  max-height: min(680px, calc(100vh - 140px));
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: 0 22px 70px rgba(0,0,0,0.28);
  overflow: hidden;
}
.chat-window.show { display: grid; grid-template-rows: auto 1fr auto auto; }
.chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  border-bottom: 1px solid var(--border);
}
.chat-header h2 { margin: 3px 0 0; font-size: 26px; letter-spacing: -0.05em; }
.chat-close {
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 50%;
  background: var(--light);
  font-size: 24px;
  cursor: pointer;
}
.chat-messages {
  padding: 16px;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  min-height: 260px;
}
.chat-message {
  max-width: 88%;
  border-radius: 18px;
  padding: 12px 13px;
  line-height: 1.45;
  font-size: 13px;
}
.chat-message.bot {
  background: var(--light);
  color: var(--black);
  justify-self: start;
}
.chat-message.user {
  background: var(--black);
  color: var(--white);
  justify-self: end;
}
.chat-results {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}
.chat-result-card {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 16px;
  padding: 11px;
}
.chat-result-card strong {
  display: block;
  font-size: 15px;
  margin-bottom: 4px;
}
.chat-result-card span {
  display: block;
  color: var(--muted);
  font-weight: 800;
  font-size: 13px;
  margin-bottom: 8px;
}
.chat-result-card button {
  border: none;
  background: var(--black);
  color: var(--white);
  border-radius: 12px;
  padding: 10px 12px;
  font-weight: 900;
  cursor: pointer;
  width: 100%;
}
.chat-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 16px 14px;
}
.chat-chips button {
  border: 1px solid var(--border);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 10px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
}
.chat-form {
  border-top: 1px solid var(--border);
  margin: 0;
  padding: 14px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
.chat-form input {
  border-radius: 14px;
  padding: 12px;
}
.chat-form button {
  border: none;
  border-radius: 14px;
  background: var(--black);
  color: var(--white);
  font-weight: 900;
  padding: 0 14px;
  cursor: pointer;
}
@media (max-width: 760px) {
  .deal-assistant {
    right: 10px;
    bottom: 88px;
    gap: 8px;
  }
  .assistant-prompt {
    width: min(230px, calc(100vw - 24px));
    font-size: 12px;
    padding: 12px 14px;
  }
  .assistant-prompt strong { font-size: 15px; }
  .assistant-avatar-shell {
    width: 122px;
    height: 108px;
    overflow: visible;
  }
  .assistant-avatar {
    width: 138px;
    transform: translateY(1px);
  }
  .assistant-ring {
    width: 112px;
    height: 112px;
    bottom: 39px;
  }
  .assistant-label {
    font-size: 13px;
    padding: 10px 13px;
  }
  .assistant-new-badge {
    right: 10px;
    top: 2px;
  }
  .chat-window {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 130px);
  }
}
