@font-face {
  font-family: Manrope;
  src: url("./assets/manrope.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Manrope, system-ui, sans-serif;
  --ink: #101d2d;
  --dark: #111f31;
  --muted: #4b5a6a;
  --paper: #f4f7fa;
  --white: #fff;
  --line: #d9e1e8;
  --lime: #d9f764;
  --lime-dark: #354818;
  --blue: #0000ff;
  --red: #ff0000;
  --header-height: 4.6rem;
  --landing-container-width: min(78rem, calc(100% - 6rem));
  scroll-padding-top: calc(var(--header-height) + 1px);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); }
h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; }
input, select { font: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #235b98; outline-offset: 4px; }
.container { width: var(--landing-container-width); margin-inline: auto; }
.section { padding-block: clamp(4rem, 7.25vw, 7rem); }
section[id], article[id] { scroll-margin-top: 2rem; }

.skip-link {
  position: fixed;
  z-index: 5;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  background: var(--white);
  transform: translateY(calc(-100% - 2rem));
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 4;
  border-bottom: 1px solid #e5eaf0;
  background: var(--white);
}
.home-header {
  margin-block-end: calc(-1 * var(--header-height));
  border-bottom: 0;
  background-color: transparent;
  color: var(--white);
  transition: background-color .18s ease;
}

.home-header.is-scrolled { background-color: #080808; }
.home-header :focus-visible { outline-color: var(--white); }
.header-inner {
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
}

.wordmark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: .65rem;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -.035em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.wordmark strong { color: #4b621e; }
.site-header .wordmark strong { color: var(--blue); }
.wordmark-icon {
  width: 2.35rem;
  aspect-ratio: 1;
  background: url("./assets/one-motor-icon.svg?v=transparent") center / contain no-repeat;
}

.home-wordmark { min-height: 2.75rem; }
.wordmark-logo { display: block; width: clamp(8.35rem, 11.13vw, 10.13rem); height: auto; }
.home-header .wordmark-logo { filter: brightness(0) invert(1); }

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.75rem);
  font-size: .9rem;
  font-weight: 800;
}
.home-header .site-nav { font-weight: 400; }

.site-nav a, .header-account a {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  text-decoration: none;
}

.site-nav a:hover, .header-account a:hover, .header-account a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .25em;
}

.header-activity, .header-account { justify-self: end; }
.header-account {
  display: flex;
  gap: clamp(.65rem, 2vw, 1.5rem);
  font-size: .9rem;
  font-weight: 400;
}
.home-header .header-account { transition: margin-inline-end .18s ease; }
.home-header:not(.is-scrolled) .header-account { margin-inline-end: clamp(0rem, 19vw - 11.4rem, 6.5rem); }
.header-account a[aria-current="page"] { color: var(--blue); }

.button-group { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; }
.button {
  display: inline-flex;
  min-height: 3.1rem;
  align-items: center;
  justify-content: center;
  padding: .7rem 1.2rem;
  border: 1px solid transparent;
  border-radius: .55rem;
  font-size: .9rem;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}

.button-accent { background: var(--lime); color: var(--ink); }
.button-accent:hover { background: #e9ff9d; }
.button-ink { background: var(--ink); color: var(--white); }
.button-ink:hover { background: #2b425b; }
.button-quiet { border-color: #bac7d2; background: var(--white); color: var(--ink); }
.button-quiet:hover { border-color: var(--ink); background: var(--paper); }
.header-activity.button { min-height: 2.65rem; }
.button[aria-disabled="true"] { background: #c2ccd6; color: #455465; cursor: default; }

.hero {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 100vh;
  min-height: 100svh;
  background: #080808;
  color: var(--white);
}

.hero-stage {
  position: relative;
  display: grid;
  padding-block-start: var(--header-height);
  align-items: center;
  isolation: isolate;
}

.hero-art, .hero-stage::after {
  position: absolute;
  inset: 0;
}
.hero-art { z-index: -2; overflow: hidden; }
.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 62%;
}
.hero-stage::after {
  z-index: -1;
  background: linear-gradient(90deg, #080808 0%, #080808e3 24%, #08080882 47%, #08080812 70%, transparent 90%),
    linear-gradient(0deg, #080808 0%, #08080800 23%);
  content: "";
}

.hero-inner { padding-block: clamp(2rem, 4vw, 4rem) clamp(5rem, 8vw, 8rem); }
.hero-copy {
  position: relative;
  inset-block-start: clamp(-1.5rem, -1.6vw, -.5rem);
  max-width: 42rem;
}
.hero :focus-visible { outline-color: var(--white); }
.tool :focus-visible { outline-color: var(--lime); }
.hero h1 {
  font-size: clamp(3.45rem, 6.3vw, 6.35rem);
  font-weight: 800;
  letter-spacing: -.068em;
  line-height: .98;
}

.hero h1 span { display: block; color: #d6d6d6; }
.hero h1 span::after {
  display: block;
  width: .58em;
  height: .042em;
  margin-top: .17em;
  border-radius: 1rem;
  background: var(--red);
  content: "";
}
.hero h1 + p {
  max-width: 40rem;
  margin-top: 1.25rem;
  color: #e8e8e8;
  font-size: clamp(1.06rem, 1.55vw, 1.25rem);
  line-height: 1.55;
  text-wrap: balance;
}
.hero-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid #505050;
}

.hero-actions a {
  display: flex;
  min-height: 4.25rem;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .7rem clamp(.65rem, 2vw, 1.5rem);
  font-size: .95rem;
  line-height: 1.3;
  text-decoration: none;
}

.hero-actions a + a { border-inline-start: 1px solid #505050; }
.hero-actions a:hover { background: #202020; text-decoration: underline; text-underline-offset: .2em; }
.hero-actions a:focus-visible { outline-offset: -4px; }
.hero-actions a span { font-size: 1.2rem; line-height: 1; }

@media (max-width: 46rem) {
  .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions a { min-height: 3.65rem; }
  .hero-actions a:last-child {
    grid-column: 1 / -1;
    border-inline-start: 0;
    border-top: 1px solid #505050;
  }
}

.section-header { margin-bottom: 1.85rem; }
.section-header h2, .help-grid h1 {
  font-size: clamp(2.3rem, 4.25vw, 4.1rem);
  font-weight: 800;
  letter-spacing: -.052em;
  line-height: 1.06;
  text-wrap: balance;
}

.section-header > p {
  max-width: 45ch;
  margin-top: .9rem;
  color: var(--muted);
  font-size: 1.075rem;
  line-height: 1.65;
}

.products { padding-block: clamp(3rem, 5vw, 4.5rem) 0; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.product {
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #e9ecef;
}

.product img { display: block; width: 100%; height: auto; aspect-ratio: 2.35; object-fit: cover; object-position: center 60%; }
.product-content { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: clamp(1.2rem, 2vw, 1.5rem); }
.product-content h2 {
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -.052em;
  line-height: 1.16;
}

.product-content > p {
  max-width: 41ch;
  margin: .55rem 0 1rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}

#used-car-search .product-content { container: vehicle-search-card / inline-size; }
.vehicle-search-summary-wide { display: none; }

@container vehicle-search-card (min-width: 22rem) {
  .vehicle-search-summary { display: none; }
  .vehicle-search-summary-wide { display: block; }
}

.product-link {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  align-self: stretch;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-block: .5rem;
  border-top: 1px solid var(--line);
  font-size: .92rem;
  font-weight: 300;
  line-height: 1.35;
  text-decoration: none;
}
.product-link:hover { color: var(--blue); }
.product-link > span { flex-shrink: 0; color: var(--blue); font-size: 1.15rem; font-weight: 350; line-height: 1; }

.text-link { font-size: .92rem; font-weight: 800; text-decoration-thickness: 1px; text-underline-offset: .25em; }
.text-link:hover { text-decoration-thickness: 2px; }

.help-section { border-block: 1px solid #e5ebf1; background: var(--paper); }

.coverage-section {
  padding-block: 4rem;
  background: var(--white);
}
.coverage-postcard {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  overflow: hidden;
  border: 1px solid #242424;
  border-radius: 1rem;
  background: #080808;
  color: var(--white);
}
.postcard-address {
  align-self: start;
  padding: clamp(1.35rem, 4.25vw, 3.75rem);
  padding-block-start: clamp(1.35rem, 3vw, 2.25rem);
}
.postcard-address h2 {
  font-size: clamp(1.375rem, 2.4vw, 2rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: 1.05;
}
.postcard-address-line {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  align-items: baseline;
  gap: .6rem;
  padding-block: .4rem .55rem;
  border-bottom: 1px solid #383838;
}
.postcard-address-label {
  color: #bcbcbc;
  font-size: .875rem;
  font-weight: 750;
  letter-spacing: 0;
}
.postcard-message {
  margin-block-start: .875rem;
  color: #d6d6d6;
  font-size: .84rem;
  line-height: 1.4;
  text-wrap: pretty;
}
.postcard-photo {
  position: relative;
  min-height: clamp(15rem, 20vw, 18rem);
  isolation: isolate;
}
.postcard-skyline, .postcard-photo::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.postcard-skyline { z-index: -2; object-fit: cover; object-position: center; }
.postcard-station { object-position: calc(50% + clamp(1.5rem, 4vw, 3rem)) 0%; }
.postcard-photo::before {
  z-index: -1;
  background: linear-gradient(90deg, #080808, transparent 26%), linear-gradient(0deg, #080808 0%, transparent 40%);
  content: "";
}

.help-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(1rem, 6vw, 5rem); align-items: start; }
.resource-links { display: grid; justify-items: start; gap: .7rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
.faqs { overflow: hidden; border: 1px solid var(--line); border-radius: .8rem; background: var(--white); }
.faqs details + details { border-top: 1px solid var(--line); }
.faqs summary {
  display: flex;
  min-height: 3.65rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .7rem 1.2rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.4;
  list-style: none;
  cursor: pointer;
}
.faqs summary:focus-visible { outline-offset: -4px; }
.faqs summary::-webkit-details-marker { display: none; }
.faqs summary::after { content: "+"; font-size: 1.4rem; line-height: 1; }
.faqs details[open] summary::after { content: "−"; }
.faqs p { max-width: 57ch; padding: 0 1.2rem 1.05rem; color: var(--muted); line-height: 1.6; }


@media (width > 66rem) {
  .hero-art {
    inset-inline-start: min(6vw, 6rem);
    mask-image: linear-gradient(90deg, transparent, #000 16%);
  }
}

@media (max-width: 66rem) {
  :root { --landing-container-width: calc(100% - 4rem); }
  .hero-image { object-position: 70% 62%; }
}

@media (42rem < width <= 64rem) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 51rem) {
  :root {
    --header-height: 6.35rem;
    --landing-container-width: calc(100% - 2.5rem);
  }
  .header-inner { min-height: auto; grid-template-columns: 1fr auto; gap: .15rem 1rem; padding-top: .6rem; }
  .home-header .header-inner { min-height: var(--header-height); }
  .wordmark-logo { width: min(33.38vw, 8.35rem); }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: space-between; gap: .5rem; }
  .site-nav a { line-height: 1.3; }
  .header-activity, .header-account { grid-column: 2; grid-row: 1; }
  .hero-stage { grid-template-rows: auto 1fr; }
  .hero-inner { grid-row: 1; padding-block: clamp(2.15rem, 5vw, 3.5rem) 0; }
  .hero-art {
    position: relative;
    grid-row: 2;
    min-height: clamp(13.5rem, 57vw, 24rem);
    align-self: stretch;
    margin-top: .25rem;
    mask-image: linear-gradient(180deg, transparent 0%, black 17%, black 82%, transparent 100%);
  }
  .hero-image {
    position: absolute;
    inset: 0 auto 0 0;
    width: 144%;
    margin-left: -44%;
    object-position: 76% 66%;
  }
  .hero-stage::after { display: none; }
  .hero h1 { font-size: clamp(2.65rem, 9vw, 5.25rem); }
  .product-content h2 { font-size: 1.5rem; }
  .help-grid { grid-template-columns: minmax(0, 1fr); }
  .help-grid .section-header { margin-bottom: .5rem; }
}

@media (max-width: 42rem) {
  .coverage-postcard { grid-template-columns: minmax(0, 1fr); }
  .postcard-photo { min-height: clamp(11rem, 52vw, 19rem); }
  .postcard-station { object-position: 50% 0%; }
  .postcard-photo::before { background: linear-gradient(180deg, #080808, transparent 25%, transparent 67%, #080808); }
  .product-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 23rem) {
  :root { --landing-container-width: calc(100% - 2rem); }
  .wordmark { font-size: .9rem; gap: .45rem; }
  .wordmark-icon { width: 2.05rem; }
  .site-nav { font-size: .82rem; }
  .hero h1 { font-size: clamp(2.45rem, 11.5vw, 2.65rem); }
}

@media (prefers-reduced-motion: reduce) {
  .button, .home-header, .home-header .header-account { transition: none; }
}
