/* Homepage composition adapted from Ed's approved payment-first reference. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
  overscroll-behavior-x: none;
}
.uh-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.uh-page {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: clip;
  color: var(--asphalt);
  background: var(--concrete);
}
.uh-page [hidden] { display: none !important; }

.uh-hero {
  position: relative;
  color: var(--paper);
  background: var(--asphalt);
}
.uh-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(430px, 500px);
  gap: var(--sp-12);
  align-items: center;
  width: min(1280px, calc(100% - (var(--sp-12) * 2)));
  margin: 0 auto;
  padding: calc(var(--sp-12) + var(--sp-4)) 0 calc(var(--sp-12) + var(--sp-6));
}
.uh-eyebrow {
  margin: 0 0 var(--sp-3);
  color: var(--lane-ink);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: var(--w-bold);
  letter-spacing: .09em;
  text-transform: uppercase;
}
.uh-hero .uh-eyebrow { color: var(--lane); }
.uh-hero-copy > .uh-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-4);
  background: color-mix(in srgb, var(--lane) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--lane) 32%, transparent);
  border-radius: var(--radius-pill);
}
.uh-hero-copy > .uh-eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--lane);
  border-radius: var(--radius-pill);
}
.uh-hero h1 {
  max-width: 720px;
  margin: var(--sp-2) 0 var(--sp-4);
  color: var(--paper);
  font-size: clamp(var(--fs-3xl), 5vw, 3.55rem);
  font-weight: var(--w-black);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.uh-hero h1 mark {
  color: var(--lane);
  background: transparent;
}
.uh-lead {
  max-width: 650px;
  margin: 0 0 var(--sp-8);
  color: var(--steel-2);
  font-size: var(--fs-md);
  line-height: var(--lh-body);
}

.uh-ai-search {
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  max-width: 720px;
  padding: var(--sp-2);
  background: var(--asphalt-2);
  border: 1px solid var(--stage);
  border-radius: var(--radius-field);
  box-shadow: var(--shadow-sheet);
}
.uh-ai-search:focus-within {
  position: relative;
  z-index: 5;
  border-color: var(--lane);
}
.uh-ai-search .ico {
  width: 22px;
  height: 22px;
  margin-left: var(--sp-2);
  color: var(--lane);
  fill: currentColor;
}
.uh-ai-search input {
  min-width: 0;
  flex: 1;
  padding: var(--sp-3) var(--sp-2);
  color: var(--paper);
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: var(--fs-base);
}
.uh-ai-search input::placeholder {
  color: var(--steel-2);
  font-style: italic;
}
.uh-ai-search button,
.uh-search-button {
  min-height: 50px;
  padding: var(--sp-3) var(--sp-5);
  color: var(--asphalt);
  background: var(--lane);
  border: 0;
  border-radius: var(--radius-control);
  cursor: pointer;
  font: inherit;
  font-weight: var(--w-extrabold);
}
.uh-ai-search button:hover,
.uh-search-button:hover { filter: brightness(.96); }
.uh-ai-search button:focus-visible,
.uh-search-button:focus-visible,
.uh-quick-budgets button:focus-visible,
.uh-quick-budgets a:focus-visible {
  outline: 3px solid var(--lane);
  outline-offset: 3px;
}

.uh-quick-budgets {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  align-items: center;
  margin-top: var(--sp-5);
}
.uh-quick-budgets > span {
  margin-right: var(--sp-1);
  color: var(--steel-2);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: var(--w-bold);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.uh-quick-budgets button,
.uh-quick-budgets a {
  padding: var(--sp-2) var(--sp-4);
  color: var(--paper);
  background: var(--asphalt-2);
  border: 1px solid var(--stage);
  border-radius: var(--radius-pill);
  cursor: pointer;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: var(--w-semibold);
  text-decoration: none;
}
.uh-quick-budgets button:hover,
.uh-quick-budgets a:hover {
  color: var(--asphalt);
  background: var(--lane);
  border-color: var(--lane);
}

.uh-finder {
  padding: var(--sp-8);
  color: var(--asphalt);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: calc(var(--radius-card) + var(--sp-2));
  box-shadow: var(--shadow-sheet);
}
.uh-finder-head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  align-items: flex-start;
  margin-bottom: var(--sp-6);
  padding-bottom: var(--sp-5);
  border-bottom: 1px solid var(--hairline);
}
.uh-finder-head .uh-eyebrow { margin-bottom: var(--sp-1); }
.uh-finder-head h2 {
  margin: 0;
  font-size: var(--fs-lg);
  letter-spacing: -.02em;
}
.uh-finder-head > span {
  padding: var(--sp-1) var(--sp-3);
  color: var(--steel);
  background: var(--fill-quiet);
  border-radius: var(--radius-control);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: var(--w-bold);
  text-transform: uppercase;
}
.uh-slider-block { margin-bottom: var(--sp-6); }
.uh-label-row {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-4);
  align-items: baseline;
  margin-bottom: var(--sp-4);
}
.uh-label-row label,
.uh-finder-fields label > span {
  color: var(--steel);
  font-size: var(--fs-xs);
  font-weight: var(--w-bold);
  letter-spacing: .05em;
  text-transform: uppercase;
}
.uh-label-row output {
  color: var(--asphalt);
  font-family: var(--mono);
  font-size: var(--fs-2xl);
  font-weight: var(--w-bold);
}
.uh-label-row output span {
  color: var(--steel);
  font-size: var(--fs-sm);
}
.uh-slider-block input[type="range"] {
  width: 100%;
  height: 8px;
  margin: var(--sp-2) 0;
  background: var(--fill-quiet);
  border-radius: var(--radius-pill);
  cursor: pointer;
  appearance: none;
}
.uh-slider-block input[type="range"]::-webkit-slider-thumb {
  width: 24px;
  height: 24px;
  background: var(--lane);
  border: 3px solid var(--asphalt);
  border-radius: var(--radius-pill);
  cursor: grab;
  appearance: none;
}
.uh-slider-block input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  background: var(--lane);
  border: 3px solid var(--asphalt);
  border-radius: var(--radius-pill);
  cursor: grab;
}
.uh-slider-block input[type="range"]:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--lane) 55%, transparent);
  outline-offset: 4px;
}
.uh-range-ends {
  display: flex;
  justify-content: space-between;
  color: var(--steel);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
}
.uh-finder-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
.uh-finder-fields label { min-width: 0; }
.uh-finder-fields label > span {
  display: block;
  margin-bottom: var(--sp-2);
}
.uh-finder-fields select {
  width: 100%;
  min-height: 50px;
  padding: 0 var(--sp-3);
  color: var(--asphalt);
  background: var(--concrete);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  font: inherit;
  font-weight: var(--w-semibold);
}
.uh-finder-fields select:focus {
  background: var(--paper);
  border-color: var(--asphalt);
  box-shadow: 0 0 0 3px var(--asphalt-08);
  outline: 0;
}
.uh-live-result {
  display: flex;
  justify-content: center;
  gap: var(--sp-2);
  align-items: baseline;
  margin-bottom: var(--sp-4);
  padding: var(--sp-4);
  color: var(--paper);
  background: var(--asphalt);
  border-radius: var(--radius-control);
  font-size: var(--fs-sm);
}
.uh-live-result .mono {
  color: var(--lane);
  font-size: var(--fs-lg);
  font-weight: var(--w-bold);
}
.uh-search-button { width: 100%; }
.uh-estimate-note {
  margin: var(--sp-3) 0 0;
  color: var(--steel);
  font-size: var(--fs-2xs);
  text-align: center;
}
.uh-lane {
  height: 5px;
  background: var(--lane-dashes);
}

.uh-trust {
  background: var(--paper);
  border-bottom: 1px solid var(--hairline);
}
.uh-trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-6);
  width: min(1280px, calc(100% - (var(--sp-12) * 2)));
  margin: 0 auto;
  padding: var(--sp-6) 0;
}
.uh-trust-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: var(--sp-3);
  align-items: center;
}
.uh-trust-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--lane-ink);
  background: color-mix(in srgb, var(--lane) 18%, var(--paper));
  border-radius: var(--radius-control);
  font-family: var(--mono);
  font-size: var(--fs-2xs);
  font-weight: var(--w-bold);
}
.uh-trust-item h3 {
  margin: 0 0 var(--sp-1);
  font-size: var(--fs-sm);
}
.uh-trust-item p {
  margin: 0;
  color: var(--steel);
  font-size: var(--fs-xs);
  line-height: var(--lh-body);
}

.uh-main {
  width: min(1280px, calc(100% - (var(--sp-12) * 2)));
  margin: 0 auto;
  padding: var(--sp-12) 0;
}
.uh-section { margin-bottom: calc(var(--sp-12) + var(--sp-4)); }
.uh-section-head {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-6);
  align-items: flex-end;
  margin-bottom: var(--sp-6);
}
.uh-section-head .uh-eyebrow { margin-bottom: var(--sp-1); }
.uh-section-head h2 {
  margin: 0;
  color: var(--asphalt);
  font-size: var(--fs-2xl);
  letter-spacing: -.025em;
}
.uh-section-head p:not(.uh-eyebrow) {
  margin: var(--sp-1) 0 0;
  color: var(--steel);
  font-size: var(--fs-base);
}
.uh-section-head > a {
  flex: none;
  color: var(--asphalt);
  border-bottom: 2px solid var(--lane);
  font-size: var(--fs-sm);
  font-weight: var(--w-bold);
  text-decoration: none;
}
.uh-section-head > a:focus-visible,
.uh-body-card:focus-visible,
.uh-make-card:focus-visible {
  outline: 3px solid var(--lane);
  outline-offset: 3px;
}

.uh-body-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: var(--sp-3);
}
.uh-body-card {
  min-width: 0;
  padding: var(--sp-4) var(--sp-2);
  color: var(--asphalt);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-card);
  text-align: center;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease);
}
.uh-body-card:hover {
  border-color: var(--asphalt);
  transform: translateY(-3px);
}
.uh-body-art {
  width: 100%;
  height: 66px;
  color: var(--stage);
  overflow: visible;
}
.uh-icon-body { fill: currentColor; }
.uh-icon-window { fill: var(--concrete); }
.uh-icon-detail {
  fill: none;
  stroke: var(--steel);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: .72;
}
.uh-icon-tire { fill: var(--asphalt); }
.uh-icon-hub {
  fill: var(--paper);
  stroke: var(--steel);
  stroke-width: 1.5;
}
.uh-icon-lane {
  fill: none;
  stroke: var(--lane);
  stroke-width: 3;
  stroke-linecap: round;
}
.uh-body-card:hover .uh-body-art { color: var(--asphalt); }
.uh-body-card strong {
  display: block;
  margin-top: var(--sp-2);
  font-size: var(--fs-sm);
  overflow-wrap: anywhere;
}
.uh-body-card .mono {
  display: block;
  margin-top: var(--sp-1);
  color: var(--steel);
  font-size: var(--fs-2xs);
}

.uh-make-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: var(--sp-3);
}
.uh-make-card {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-3);
  align-items: center;
  min-width: 0;
  padding: var(--sp-4);
  color: var(--asphalt);
  background: var(--paper);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-control);
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.uh-make-card strong {
  min-width: 0;
  overflow: hidden;
  font-size: var(--fs-base);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.uh-make-card .mono {
  color: var(--steel);
  font-size: var(--fs-xs);
}
.uh-make-card:hover {
  color: var(--paper);
  background: var(--asphalt);
  transform: translateY(-2px);
}
.uh-make-card:hover .mono { color: var(--lane); }

.uh-inventory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sp-6);
}
.uh-inventory-grid .vcard {
  height: 100%;
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.uh-inventory-grid .vcard:hover {
  box-shadow: var(--shadow-sheet);
  transform: translateY(-4px);
}

.uh-clarity {
  overflow: hidden;
  padding: var(--sp-12);
  color: var(--paper);
  background: var(--asphalt);
  border-radius: calc(var(--radius-card) + var(--sp-2));
}
.uh-clarity > header {
  max-width: 720px;
  margin: 0 auto var(--sp-10);
  text-align: center;
}
.uh-clarity > header .uh-eyebrow { color: var(--lane); }
.uh-clarity > header h2 {
  margin: 0;
  color: var(--paper);
  font-size: var(--fs-3xl);
  letter-spacing: -.03em;
}
.uh-clarity > header > p:last-child {
  margin: var(--sp-3) 0 0;
  color: var(--steel-2);
  line-height: var(--lh-body);
}
.uh-clarity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--sp-6);
  max-width: 1000px;
  margin: 0 auto;
}
.uh-clarity-card {
  padding: var(--sp-8);
  background: var(--asphalt-2);
  border: 1px solid var(--stage);
  border-radius: var(--radius-card);
}
.uh-clarity-card.is-highlighted {
  background: var(--stage);
  border: 2px solid var(--lane);
}
.uh-clarity-label {
  margin: 0 0 var(--sp-5);
  color: var(--steel-2);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: var(--w-bold);
  letter-spacing: .08em;
  text-transform: uppercase;
}
.uh-clarity-card.is-highlighted .uh-clarity-label { color: var(--lane); }
.uh-clarity-card ul {
  display: grid;
  gap: var(--sp-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.uh-clarity-card li {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: var(--sp-3);
  align-items: start;
  color: var(--paper);
  font-size: var(--fs-base);
  line-height: var(--lh-body);
}
.uh-clarity-card li span {
  color: var(--lane);
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: var(--w-bold);
}

@media (max-width: 1080px) {
  .uh-hero-grid {
    grid-template-columns: 1fr;
    max-width: 760px;
  }
  .uh-trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uh-body-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .uh-make-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .uh-hero-grid,
  .uh-trust-grid,
  .uh-main {
    width: calc(100% - (var(--sp-4) * 2));
  }
  .uh-hero-grid {
    gap: var(--sp-8);
    padding: var(--sp-8) 0 var(--sp-10);
  }
  .uh-hero h1 { font-size: var(--fs-3xl); }
  .uh-page input,
  .uh-page select { font-size: 16px; }
  .uh-ai-search {
    display: grid;
    grid-template-columns: auto 1fr;
    scroll-margin-block: var(--sp-4);
    transform: translate3d(0, 0, 0);
  }

  .uh-ai-search button {
    grid-column: 1 / -1;
    width: 100%;
  }
  .uh-finder { padding: var(--sp-5); }
  .uh-trust-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-4);
  }
  .uh-main { padding: var(--sp-8) 0; }
  .uh-section { margin-bottom: var(--sp-10); }
  .uh-section-head {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: var(--sp-5);
  }
  .uh-body-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uh-make-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .uh-inventory-grid { grid-template-columns: 1fr; }
  .uh-clarity {
    padding: var(--sp-8) var(--sp-5);
    border-radius: var(--radius-card);
  }
  .uh-clarity-grid { grid-template-columns: 1fr; }
}

@media (max-width: 460px) {
  .uh-finder-fields { grid-template-columns: 1fr; }
  .uh-label-row { align-items: flex-start; flex-direction: column; }
  .uh-make-grid { grid-template-columns: 1fr; }
  .uh-quick-budgets > span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .uh-body-card,
  .uh-make-card,
  .uh-inventory-grid .vcard { transition: none; }
  .uh-body-card:hover,
  .uh-make-card:hover,
  .uh-inventory-grid .vcard:hover { transform: none; }
}
.uh-ai-search .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
