:root {
  --ink: #16191b;
  --ink-soft: #30363a;
  --muted: #667079;
  --paper: #f7f6f2;
  --panel: #ffffff;
  --line: #d9dedf;
  --forest: #174238;
  --steel: #31576b;
  --copper: #9b5f2e;
  --sage: #dfe8df;
  --ice: #edf4f5;
  --rose: #f0dad5;
  --shadow: 0 24px 70px rgba(18, 26, 31, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body.has-detail-open {
  overflow: hidden;
}

main,
section,
article,
div,
form,
label,
figure {
  min-width: 0;
}

img,
svg,
video {
  max-width: 100%;
}

button,
input,
select {
  font: inherit;
}

button {
  max-width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 6px;
  background: var(--forest);
  color: #fff;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 760;
  line-height: 1.15;
  white-space: normal;
}

button:hover,
button:focus-visible {
  background: #0f3029;
}

button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:disabled:hover,
button:disabled:focus-visible {
  background: var(--forest);
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #fff;
  padding: 0 12px;
}

label span,
.select-control span {
  display: block;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 18px;
  font-size: clamp(42px, 8vw, 92px);
  line-height: 0.94;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  line-height: 1.18;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 246, 242, 0.94);
  border-bottom: 1px solid rgba(22, 25, 27, 0.1);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--forest);
  border-radius: 50%;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(18, 26, 31, 0.16);
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

nav {
  display: flex;
  gap: 14px;
}

nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}

.outline-button,
.dark-outline {
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(22, 25, 27, 0.28);
}

.outline-button:hover,
.outline-button:focus-visible {
  background: rgba(22, 25, 27, 0.07);
}

.dark-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.38);
}

.dark-outline:hover,
.dark-outline:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #12171a;
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 12, 14, 0.9), rgba(8, 12, 14, 0.54) 58%, rgba(8, 12, 14, 0.16)),
    linear-gradient(0deg, rgba(8, 12, 14, 0.88), rgba(8, 12, 14, 0.16) 56%);
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-inner {
  position: relative;
  width: calc(100% - 36px);
  max-width: 1160px;
  margin: 0 auto 34px;
  color: white;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--steel);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #b9d6df;
}

.hero-copy {
  max-width: 700px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 19px;
}

.search-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1.3fr) minmax(160px, 0.8fr) minmax(160px, 0.8fr) auto;
  gap: 10px;
  max-width: 1030px;
  margin-top: 28px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-shadow: none;
}

.search-panel button {
  align-self: end;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 190px));
  gap: 10px;
  margin-top: 18px;
}

.hero-stats article {
  min-height: 78px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  padding: 14px;
  backdrop-filter: blur(8px);
}

.hero-stats span {
  display: block;
  font-size: 22px;
  font-weight: 850;
}

.hero-stats small {
  display: block;
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.76);
  font-weight: 700;
}

.market-section,
.model-section,
.process,
.payment-section,
.portal-section,
.walkthrough-section,
.options-section,
.faq-section,
.terms-section,
.calculator-section,
.enquiry {
  width: calc(100% - 36px);
  max-width: 1180px;
  margin: 0 auto;
  padding: 76px 0;
}

.walkthrough-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #101518;
  box-shadow: var(--shadow);
}

.walkthrough-panel iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #101518;
}

.video-fallback {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  background: #101518;
  text-decoration: none;
}

.video-fallback img {
  width: 96px;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 6px;
}

.video-fallback span {
  font-weight: 700;
}

.walkthrough-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.walkthrough-steps article {
  min-height: 176px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
  box-shadow: 0 16px 44px rgba(18, 26, 31, 0.08);
}

.walkthrough-steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  font-weight: 900;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 470px);
  gap: 42px;
  align-items: end;
  margin-bottom: 28px;
}

.section-heading.compact {
  margin-bottom: 20px;
}

.section-heading p,
.calculator-section p,
.process p,
.payment-section p,
.portal-section p,
.options-section p,
.faq-section p,
.terms-section p,
.enquiry-copy p {
  color: var(--muted);
}

.portal-section {
  max-width: 1240px;
}

.portal-shell {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.portal-sidebar,
.portal-card,
.portal-support {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 44px rgba(18, 26, 31, 0.08);
}

.portal-sidebar {
  position: sticky;
  top: 84px;
  display: grid;
  gap: 16px;
  padding: 18px;
}

.portal-user,
.portal-selected-car {
  display: flex;
  gap: 12px;
  align-items: center;
}

.portal-user > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-weight: 900;
}

.portal-login-controls {
  display: grid;
  gap: 8px;
  margin-top: -6px;
}

.portal-login-controls input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: #fff;
  color: var(--ink);
}

.portal-login-button {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 38px;
  background: #fff;
  color: var(--forest);
  font-weight: 850;
}

.portal-user strong,
.portal-user small,
.portal-selected-car span,
.portal-selected-car strong,
.portal-selected-car small {
  display: block;
}

.portal-user small,
.portal-selected-car span,
.portal-selected-car small,
.portal-facts dt,
.portal-kpis span,
.vehicle-file-grid span,
.document-item small,
.payment-ledger small,
.admin-task small {
  color: var(--muted);
}

.portal-selected-car img {
  width: 88px;
  height: 68px;
  border-radius: 7px;
  object-fit: cover;
  background: var(--ice);
}

.portal-selected-car strong {
  line-height: 1.2;
}

.portal-facts {
  display: grid;
  gap: 10px;
  margin: 0;
}

.portal-facts div {
  display: grid;
  grid-template-columns: minmax(84px, 0.78fr) minmax(0, 1fr);
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.portal-facts dt,
.portal-facts dd {
  margin: 0;
}

.portal-facts dd {
  font-weight: 850;
}

.portal-main {
  min-width: 0;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.portal-tab,
.payment-route {
  min-height: 38px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.portal-tab.is-active,
.payment-route.is-active {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.portal-panel {
  display: none;
}

.portal-panel.is-active {
  display: block;
}

.portal-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.portal-kpis article,
.document-item,
.payment-ledger article,
.admin-task {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.portal-kpis strong {
  display: block;
  margin: 5px 0;
  font-size: 21px;
  line-height: 1.1;
}

.portal-columns {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.portal-card,
.portal-support {
  padding: 18px;
}

.portal-card h3,
.portal-support h3 {
  margin-bottom: 10px;
}

.timeline-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.timeline-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.timeline-list span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--forest);
  font-size: 12px;
  font-weight: 900;
}

.timeline-list li.is-current span {
  background: var(--forest);
  color: #fff;
}

.timeline-list strong,
.timeline-list small {
  display: block;
}

.timeline-list small {
  color: var(--muted);
}

.vehicle-file-grid,
.document-list,
.payment-ledger,
.admin-queue {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vehicle-file-grid > div {
  min-height: 132px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
  padding: 14px;
}

.vehicle-file-grid strong,
.vehicle-file-grid a,
.document-item strong,
.document-item small,
.payment-ledger strong,
.payment-ledger small,
.admin-task strong,
.admin-task small {
  display: block;
}

.vehicle-file-grid a {
  margin-top: 10px;
  color: var(--forest);
  font-weight: 850;
}

.document-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.doc-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--forest);
  background: var(--sage);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.doc-status.is-needed {
  color: #7c3b14;
  background: #f3dfcf;
}

.doc-action {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--forest);
  font-size: 12px;
  font-weight: 850;
}

.timeline-action,
.ops-action {
  justify-self: start;
  min-height: 28px;
  margin-top: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: #fff;
  color: var(--forest);
  font-size: 12px;
  font-weight: 850;
}

.timeline-list em {
  display: inline-flex;
  width: max-content;
  min-height: 24px;
  margin-top: 7px;
  align-items: center;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--forest);
  color: #fff;
  font-size: 11px;
  font-style: normal;
  font-weight: 850;
}

.upload-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  overflow: hidden;
  cursor: pointer;
}

.upload-action input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.payment-route-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0;
}

.payment-ledger article,
.admin-task {
  display: grid;
  gap: 6px;
}

.payment-ledger article > span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.payment-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 34px;
  margin-top: 6px;
  border-radius: 6px;
  padding: 0 12px;
  color: #fff;
  background: var(--forest);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

.payment-action.secondary {
  width: max-content;
  min-height: 34px;
  border: 1px solid var(--line);
  color: var(--forest);
  background: #fff;
}

.launch-checklist {
  width: calc(100% - 36px);
  max-width: 980px;
  margin: 0 auto;
  padding: 0 0 80px;
}

.launch-checklist ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.launch-checklist li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
  box-shadow: 0 14px 38px rgba(18, 26, 31, 0.07);
}

.launch-checklist li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  color: #fff;
  background: var(--forest);
  font-weight: 900;
}

.launch-checklist li.is-placeholder::before {
  content: "•";
  color: var(--forest);
  background: var(--sage);
}

.launch-checklist strong,
.launch-checklist small {
  display: block;
}

.launch-checklist small {
  color: var(--muted);
}

.launch-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: var(--forest);
  background: var(--sage);
  font-size: 12px;
  font-weight: 850;
  white-space: nowrap;
}

.launch-status.is-placeholder {
  color: #7c3b14;
  background: #f3dfcf;
}

.portal-support {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 1.1fr);
  gap: 14px;
  align-items: end;
  margin-top: 12px;
  background: var(--ink);
  color: #fff;
}

.portal-support p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.portal-support form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.portal-support input {
  border-color: rgba(255, 255, 255, 0.2);
}

#portalSupportAnswer {
  grid-column: 1 / -1;
  min-height: 24px;
}

.controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 172px 190px;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.reset-button {
  align-self: end;
}

.browse-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.button-group {
  display: flex;
  gap: 8px;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding-bottom: 2px;
}

.filter {
  flex: 0 0 auto;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.filter.is-active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

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

.results-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

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

.filter-toggle {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
}

.filter-toggle.is-active {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.vehicle-card {
  display: grid;
  grid-template-rows: 230px 1fr;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 36px rgba(18, 26, 31, 0.08);
}

.vehicle-card.is-selected {
  border-color: rgba(23, 66, 56, 0.42);
  box-shadow: 0 18px 44px rgba(23, 66, 56, 0.16);
}

.vehicle-card figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #d7dad8;
  cursor: pointer;
}

.vehicle-card figure:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -6px;
}

.vehicle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 260ms ease;
}

.vehicle-card:hover img {
  transform: scale(1.03);
}

.vehicle-card figcaption,
.image-credit {
  position: absolute;
  left: 10px;
  bottom: 10px;
  max-width: calc(100% - 20px);
  border-radius: 999px;
  padding: 5px 9px;
  color: #fff;
  background: rgba(0, 0, 0, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.photo-count {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.64);
  font-size: 11px;
  font-weight: 800;
}

.image-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  color: #fff;
  background: rgba(128, 70, 28, 0.86);
  font-size: 11px;
  font-weight: 900;
}

.image-badge.is-listing {
  background: rgba(23, 66, 56, 0.9);
}

.vehicle-card .body {
  display: grid;
  align-content: start;
  padding: 18px;
}

.vehicle-card h3 {
  min-height: 52px;
  font-size: 22px;
  overflow-wrap: anywhere;
}

.spread-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 12px 0 14px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}

.spread-bar > * {
  min-width: 0;
}

.spread-bar span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.spread-bar strong {
  color: var(--forest);
  font-size: 24px;
  overflow-wrap: anywhere;
  text-align: right;
}

.spread-bar.is-market-check strong {
  color: #8b3027;
}

.meta-row,
.chips,
.checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.meta-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.chips > *,
.checks > *,
.spec-strip > * {
  min-width: 0;
}

.meta-row span,
.price-stack span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.meta-row strong,
.price-stack strong {
  display: block;
  font-size: 17px;
  line-height: 1.16;
}

.chip,
.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  min-height: 28px;
  border-radius: 999px;
  padding: 0 10px;
  background: var(--ice);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.chip.low,
.badge.low {
  color: var(--forest);
  background: var(--sage);
}

.chip.medium,
.badge.medium {
  color: #81511e;
  background: #efe0c7;
}

.chip.high,
.badge.high {
  color: #8b3027;
  background: var(--rose);
}

.chip.confidence {
  color: #244c61;
  background: #d9e8ed;
}

.chip.opportunity {
  color: #244c61;
  background: #d9e8ed;
}

.spec-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.spec-strip span {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 8px;
  color: var(--ink-soft);
  background: #faf9f5;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.25;
}

.source-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 14px;
  color: var(--forest);
  font-weight: 800;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
}

.vehicle-card button {
  width: 100%;
  margin-top: 16px;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 18px;
}

.detail-modal[hidden] {
  display: none;
}

.detail-modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(13, 18, 21, 0.7);
  backdrop-filter: blur(10px);
}

.detail-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
  width: min(1240px, calc(100vw - 36px));
  max-height: calc(100vh - 36px);
  overflow: auto;
  min-height: 680px;
  color: #fff;
  background: var(--ink);
  border-radius: 10px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.detail-gallery {
  position: relative;
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
}

.detail-gallery img {
  width: 100%;
  height: 100%;
  min-height: 560px;
  object-fit: cover;
}

.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  color: #fff;
  background: rgba(8, 12, 14, 0.64);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.detail-close:hover,
.detail-close:focus-visible {
  background: rgba(8, 12, 14, 0.9);
}

.detail-thumbs {
  display: flex;
  gap: 10px;
  padding: 14px;
  background: rgba(8, 12, 14, 0.92);
  overflow-x: auto;
}

.detail-thumb {
  flex: 0 0 auto;
  width: 88px;
  height: 64px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
}

.detail-thumb img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.detail-thumb.is-active {
  border-color: rgba(159, 211, 213, 0.86);
  box-shadow: inset 0 0 0 1px rgba(159, 211, 213, 0.4);
}

.detail-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(28px, 6vw, 70px);
}

.detail-panel .eyebrow {
  color: #9fd3d5;
}

.detail-panel p {
  color: rgba(255, 255, 255, 0.76);
}

.detail-meta,
.detail-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detail-meta {
  margin-top: 6px;
}

.detail-links {
  margin-top: 18px;
}

.detail-pill,
.detail-links a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border-radius: 999px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 800;
}

.detail-pill {
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.08);
}

.detail-links a {
  color: #fff;
  text-decoration: none;
  background: rgba(159, 211, 213, 0.18);
}

.detail-links a:hover,
.detail-links a:focus-visible {
  background: rgba(159, 211, 213, 0.28);
}

.price-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.price-stack div {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 16px;
}

.price-stack span {
  color: rgba(255, 255, 255, 0.58);
}

.price-stack strong {
  color: #fff;
  font-size: 23px;
}

.gate-list {
  margin-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}

.spec-panel {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  padding-top: 18px;
}

.spec-panel h3 {
  font-size: 18px;
}

.spec-panel p {
  margin-bottom: 10px;
}

.spec-panel ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spec-panel li {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.07);
  font-size: 13px;
  font-weight: 760;
}

.gate-list h3 {
  font-size: 18px;
}

.gate-list ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.fineprint {
  margin: 16px 0 0;
  font-size: 13px;
}

.calculator-section .section-heading {
  margin-bottom: 22px;
}

.calc-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 18px;
}

.fx-strip {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-column: 1 / -1;
  gap: 4px 12px;
  align-items: baseline;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ice);
  padding: 14px;
}

.fx-strip span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.fx-strip strong {
  font-size: 22px;
}

.fx-strip small {
  grid-column: 1 / -1;
  color: var(--muted);
}

#calcOutput {
  display: block;
  grid-column: 1 / -1;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  padding: 20px;
  font-weight: 850;
}

#calcOutput span {
  display: block;
  font-size: 25px;
  line-height: 1.16;
}

#calcOutput small {
  display: block;
  margin-top: 10px;
  color: #9fd3d5;
  font-size: 16px;
}

.lane-grid,
.steps,
.payment-grid,
.finance-grid,
.trust-panel,
.option-grid,
.terms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.lane-card,
.steps article,
.payment-grid article,
.finance-grid article,
.trust-panel article,
.option-grid article,
.terms-grid article {
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 20px;
}

.lane-card span,
.steps span,
.payment-grid span {
  display: block;
  margin-bottom: 22px;
  color: var(--steel);
  font-weight: 900;
}

.lane-card strong {
  display: block;
  font-size: 18px;
  line-height: 1.2;
}

.lane-card p,
.steps p,
.payment-grid p,
.finance-grid p,
.trust-panel p,
.option-grid p,
.terms-grid p,
.faq-list p {
  color: var(--muted);
}

.lane-card small {
  color: var(--forest);
  font-weight: 800;
}

.payment-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.finance-section {
  padding: 72px clamp(18px, 4vw, 54px);
  background: var(--ice);
}

.finance-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.finance-grid article {
  background: #fff;
}

.trust-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 14px;
}

.trust-panel article {
  min-height: 156px;
  display: grid;
  gap: 8px;
  align-content: start;
  background: var(--ink);
  color: #fff;
}

.trust-panel p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
}

.trust-panel strong {
  font-size: 18px;
}

.trust-logo {
  display: inline-grid;
  place-items: center;
  width: max-content;
  min-height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 6px;
  padding: 0 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.payment-grid article {
  background: var(--ice);
}

.payment-grid article:nth-child(2),
.payment-grid article:nth-child(4) {
  background: #fff;
}

.options-section {
  padding-top: 54px;
}

.option-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-grid article {
  min-height: 205px;
  display: grid;
  align-content: start;
  background: var(--panel);
}

.option-grid strong {
  align-self: end;
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--forest);
  background: var(--sage);
  font-size: 14px;
}

.option-grid p {
  margin-bottom: 18px;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 0 18px;
}

.faq-list summary {
  min-height: 58px;
  display: flex;
  align-items: center;
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.faq-list p {
  margin: 0;
  padding: 0 0 18px;
}

.terms-section {
  max-width: none;
  width: 100%;
  background: #eef2ef;
  padding-right: max(18px, calc((100vw - 1180px) / 2));
  padding-left: max(18px, calc((100vw - 1180px) / 2));
}

.terms-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.terms-grid article {
  min-height: 190px;
}

.enquiry {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(320px, 1.14fr);
  gap: 42px;
  align-items: center;
}

.lead-form {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 22px;
}

.lead-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  resize: vertical;
  font: inherit;
}

.selected-vehicle-note {
  margin: 0;
  border: 1px solid rgba(23, 66, 56, 0.14);
  border-radius: 8px;
  background: var(--ice);
  padding: 12px 14px;
  color: var(--ink-soft);
  font-weight: 700;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--forest);
  font-weight: 850;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(170px, 0.45fr) minmax(260px, 0.75fr);
  gap: 34px;
  padding: 28px clamp(18px, 4vw, 54px);
  color: rgba(255, 255, 255, 0.72);
  background: var(--ink);
}

.site-footer h3 {
  margin: 0 0 10px;
  color: #fff;
  font-family: inherit;
  font-size: 14px;
}

.site-footer p {
  margin: 0;
  max-width: 56ch;
}

.site-footer a {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 760;
}

.site-footer a + a {
  margin-top: 7px;
}

.site-footer .footer-brand {
  color: #fff;
  margin-bottom: 10px;
  font-size: 18px;
  font-weight: 900;
}

.featured-market {
  padding-top: 64px;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(22, 25, 27, 0.28);
  border-radius: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 820;
}

.button-link.primary-link {
  color: #fff;
  background: var(--forest);
  border-color: var(--forest);
}

.split-feature {
  width: calc(100% - 36px);
  max-width: 1180px;
  margin: 0 auto 76px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.split-feature article {
  min-height: 280px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 18px 52px rgba(18, 26, 31, 0.1);
}

.split-feature h2 {
  font-size: clamp(28px, 3vw, 42px);
}

.page-home .hero-copy {
  max-width: 760px;
}

.service-path-section {
  width: calc(100% - 36px);
  max-width: 1180px;
  margin: 0 auto 80px;
  padding: clamp(28px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(18, 26, 31, 0.1);
}

.service-path-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.service-path-grid.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-path-grid article,
.detail-service-menu article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.service-path-grid span,
.service-path-grid strong,
.detail-service-menu span,
.detail-service-menu strong {
  display: block;
}

.service-path-grid span {
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
}

.service-path-grid strong,
.detail-service-menu strong {
  margin-top: 8px;
  line-height: 1.25;
}

.service-path-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.detail-service-menu {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.detail-service-menu article {
  min-height: 118px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}

.detail-service-menu span {
  color: #cfd9d6;
  font-size: 12px;
  font-weight: 900;
}

.detail-service-menu strong {
  color: #fff;
  font-size: 14px;
}

.service-path-card {
  margin-top: 14px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.light-home {
  min-height: min(78vh, 760px);
}

.light-home .hero-inner {
  max-width: 900px;
}

.light-home h1 {
  max-width: 760px;
}

.clean-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero-link {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.home-intro-band,
.content-link-section,
.content-hero,
.content-card-grid,
.content-split,
.cta-panel {
  width: calc(100% - 36px);
  max-width: 1180px;
  margin-inline: auto;
}

.home-intro-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 58px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--line);
}

.home-intro-band article,
.content-card-grid > a,
.content-card-grid > article,
.content-split article,
.cta-panel {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(18, 26, 31, 0.08);
}

.home-intro-band article {
  min-height: 180px;
  padding: clamp(22px, 3vw, 32px);
  border: 0;
  box-shadow: none;
}

.home-intro-band span,
.content-card-grid span {
  display: block;
  color: var(--copper);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-intro-band strong,
.content-card-grid strong {
  display: block;
  margin-top: 10px;
  font-size: clamp(20px, 2vw, 26px);
  line-height: 1.14;
}

.home-intro-band p,
.content-card-grid p {
  margin: 10px 0 0;
  color: var(--muted);
}

.content-link-section {
  padding-block: clamp(56px, 7vw, 84px);
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.content-card-grid.content-wide {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 64px;
}

.content-card-grid > a,
.content-card-grid > article {
  min-height: 220px;
  padding: 24px;
  border-radius: 10px;
  text-decoration: none;
}

.content-hero {
  padding: clamp(110px, 13vw, 170px) 0 clamp(42px, 7vw, 76px);
}

.content-hero h1 {
  max-width: 900px;
  font-size: clamp(42px, 7vw, 82px);
}

.content-hero p {
  max-width: 760px;
  font-size: 19px;
}

.service-path-section.standalone {
  margin-bottom: 64px;
}

.service-path-grid.page-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.content-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 76px;
}

.content-split article {
  min-height: 260px;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 10px;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 76px;
  padding: clamp(24px, 4vw, 42px);
  border-radius: 10px;
}

.cta-panel h2 {
  margin-bottom: 8px;
}

@media (max-width: 1080px) {
  nav {
    display: none;
  }

  .search-panel,
  .controls,
  .filter-grid,
  .section-heading,
  .enquiry {
    grid-template-columns: 1fr;
  }

  .detail-band {
    grid-template-columns: 1fr;
    max-height: calc(100vh - 24px);
  }

  .vehicle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .lane-grid,
  .steps,
  .walkthrough-steps,
  .split-feature,
  .service-path-grid,
  .service-path-grid.compact,
  .service-path-grid.page-grid,
  .detail-service-menu,
  .home-intro-band,
  .content-card-grid,
  .content-card-grid.content-wide,
  .content-split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .payment-grid,
  .finance-grid,
  .trust-panel,
  .portal-shell,
  .portal-kpis,
  .portal-columns,
  .vehicle-file-grid,
  .document-list,
  .payment-ledger,
  .admin-queue,
  .payment-route-options,
  .portal-support,
  .option-grid,
  .terms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calc-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-gallery img {
    min-height: 440px;
  }
}

@media (max-width: 900px) {
  .topbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    padding: 14px;
    color: #fff;
    background: linear-gradient(180deg, rgba(8, 12, 14, 0.78), rgba(8, 12, 14, 0));
    border-bottom: 0;
    backdrop-filter: none;
  }

  .brand {
    color: #fff;
  }

  .brand-mark {
    border-color: rgba(255, 255, 255, 0.86);
  }

  .topbar .outline-button {
    display: none;
  }

  .brand small {
    color: rgba(255, 255, 255, 0.74);
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 0;
    padding: 96px 0 18px;
    align-items: end;
  }

  .hero-media::after {
    background:
      linear-gradient(180deg, rgba(8, 12, 14, 0.88) 0%, rgba(8, 12, 14, 0.52) 38%, rgba(8, 12, 14, 0.9) 100%),
      linear-gradient(90deg, rgba(8, 12, 14, 0.84), rgba(8, 12, 14, 0.58) 48%, rgba(8, 12, 14, 0.28));
  }

  .hero-media img {
    object-position: 56% center;
  }

  .hero-inner {
    width: calc(100% - 28px);
    margin-bottom: 0;
  }

  .hero-stats,
  .vehicle-grid,
  .lane-grid,
  .steps,
  .split-feature,
  .service-path-grid,
  .service-path-grid.compact,
  .service-path-grid.page-grid,
  .detail-service-menu,
  .home-intro-band,
  .content-card-grid,
  .content-card-grid.content-wide,
  .content-split,
  .payment-grid,
  .finance-grid,
  .trust-panel,
  .portal-shell,
  .portal-kpis,
  .portal-columns,
  .vehicle-file-grid,
  .document-list,
  .payment-ledger,
  .admin-queue,
  .payment-route-options,
  .portal-support,
  .option-grid,
  .terms-grid,
  .price-stack,
  .calc-panel,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .cta-panel {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-stats {
    display: none;
  }

  .hero-copy,
  .section-heading p,
  .vehicle-card p,
  .detail-panel p,
  .enquiry-copy p {
    overflow-wrap: anywhere;
  }

  .market-section,
  .model-section,
  .process,
  .payment-section,
  .portal-section,
  .walkthrough-section,
  .options-section,
  .faq-section,
  .calculator-section,
  .enquiry {
    width: calc(100% - 28px);
    max-width: 1180px;
    padding: 56px 0;
  }

  .terms-section {
    padding: 56px 14px;
  }

  .portal-sidebar {
    position: static;
  }

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

  .section-heading,
  .controls,
  .search-panel {
    max-width: 100%;
  }

  .search-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 18px;
    padding: 11px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.32);
  }

  .search-panel label:first-of-type,
  .search-panel button {
    grid-column: 1 / -1;
  }

  .hero-copy {
    margin-bottom: 0;
    max-width: 34ch;
    font-size: 16px;
    line-height: 1.42;
  }

  .hero .eyebrow {
    max-width: 30ch;
    line-height: 1.45;
    letter-spacing: 0.09em;
    overflow-wrap: anywhere;
  }

  .button-group {
    margin-right: -14px;
    padding-right: 14px;
  }

  .browse-summary {
    display: grid;
    justify-content: stretch;
  }

  .filter {
    max-width: 72vw;
  }

  .meta-row {
    grid-template-columns: 1fr;
  }

  .spread-bar {
    grid-template-columns: minmax(0, 1fr);
  }

  .spread-bar strong {
    font-size: clamp(19px, 7vw, 24px);
    text-align: left;
  }

  .detail-band {
    display: block;
    min-height: 0;
    width: min(100%, calc(100vw - 18px));
    max-height: calc(100vh - 18px);
  }

  .detail-gallery img {
    display: block;
    min-height: 260px;
    max-height: 320px;
    aspect-ratio: 16 / 10;
  }

  .detail-panel {
    padding: 28px 18px;
  }

  .action-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .action-row button {
    width: 100%;
  }

  .detail-thumbs {
    padding: 10px 12px 12px;
  }

  .detail-thumb {
    width: 74px;
    height: 56px;
  }

  h1 {
    max-width: 11ch;
    margin-bottom: 16px;
    font-size: clamp(36px, 10.4vw, 43px);
    line-height: 0.98;
  }
}

@media (min-width: 681px) and (max-width: 900px) {
  .hero {
    min-height: 0;
  }

  .hero-inner {
    padding-top: 18px;
  }

  h1 {
    max-width: 12ch;
    font-size: clamp(40px, 7vw, 58px);
  }

  .search-panel {
    grid-template-columns: minmax(220px, 1fr) minmax(160px, 0.7fr);
  }

  .search-panel label:first-of-type,
  .search-panel button {
    grid-column: 1 / -1;
  }
}

@media (max-width: 430px) {
  .market-section,
  .model-section,
  .process,
  .calculator-section,
  .enquiry {
    padding: 42px 0;
  }

  .vehicle-card {
    grid-template-rows: 198px 1fr;
  }

  .vehicle-card .body,
  .lead-form {
    padding: 16px;
  }

  h2 {
    font-size: 32px;
  }
}

.assistant-bubble {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 10px;
  font-family: inherit;
}

.assistant-launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 14px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #f6efe7;
  background: #15110f;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
  cursor: pointer;
}

.assistant-launcher span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  color: #16110d;
  background: #d6b36a;
  font-size: 12px;
  font-weight: 800;
}

.assistant-launcher strong {
  font-size: 14px;
  letter-spacing: 0;
}

.assistant-panel {
  display: none;
  width: min(390px, calc(100vw - 28px));
  overflow: hidden;
  border: 1px solid rgba(28, 24, 20, 0.14);
  border-radius: 8px;
  background: #fffaf3;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.assistant-bubble.is-open .assistant-panel {
  display: block;
}

.assistant-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 14px 12px;
  color: #f6efe7;
  background: #18130f;
}

.assistant-panel header strong,
.assistant-panel header small {
  display: block;
}

.assistant-panel header small {
  margin-top: 2px;
  color: rgba(246, 239, 231, 0.72);
  font-size: 12px;
}

.assistant-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: #f6efe7;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.assistant-log {
  display: grid;
  gap: 10px;
  max-height: 310px;
  padding: 14px;
  overflow: auto;
}

.assistant-message {
  max-width: 88%;
  padding: 10px 12px;
  border-radius: 8px;
  background: #eee5d6;
}

.assistant-message.user {
  justify-self: end;
  background: #15110f;
  color: #fff7ec;
}

.assistant-message-label {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: rgba(80, 62, 43, 0.68);
}

.assistant-message.user .assistant-message-label {
  color: rgba(255, 247, 236, 0.7);
}

.assistant-message p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.assistant-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 14px 12px;
}

.assistant-actions button {
  border: 1px solid rgba(24, 19, 15, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: #221913;
  background: #fff;
  font-size: 12px;
  cursor: pointer;
}

.assistant-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(24, 19, 15, 0.1);
}

.assistant-form input {
  min-width: 0;
  border: 1px solid rgba(24, 19, 15, 0.18);
  border-radius: 6px;
  padding: 11px 12px;
  font: inherit;
}

.assistant-form button {
  border: 0;
  border-radius: 6px;
  padding: 0 14px;
  color: #16110d;
  background: #d6b36a;
  font-weight: 800;
  cursor: pointer;
}

@media (max-width: 560px) {
  .assistant-bubble {
    right: 10px;
    bottom: 10px;
    left: auto;
  }

  .assistant-panel {
    width: 100%;
  }

  .assistant-bubble.is-open {
    left: 10px;
  }

  .assistant-launcher {
    width: 48px;
    min-width: 48px;
    padding: 8px;
  }

  .assistant-launcher strong {
    display: none;
  }

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

  .assistant-form button {
    min-height: 42px;
  }
}
