:root {
  --ink: #0d1424;
  --ink-soft: #4a5570;
  --line: #dfe5f0;
  --paper: #f3f6fb;
  --card: #ffffff;
  --blue: #2f5bea;
  --blue-dark: #1c3a9e;
  --sky-top: #1f3f8f;
  --sky-mid: #5d80c4;
  --sky-low: #c9d6ee;
  --ok: #127a4a;
  --warn: #9a5b00;
  --radius: 4px;
  --wrap: 1180px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: 20px; }

/* Header */
.site-header {
  position: absolute; inset: 0 0 auto 0; z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,.18);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo {
  color: #fff; text-decoration: none; font-weight: 800; letter-spacing: .14em;
  font-size: 15px; white-space: nowrap;
}
.logo span { font-weight: 400; opacity: .8; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; font-size: 14px; }
.nav a:hover { color: #fff; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border: 0; border-radius: var(--radius);
  font: 600 15px/1 var(--font); text-decoration: none; cursor: pointer;
  background: var(--blue); color: #fff; transition: background .15s;
}
.btn:hover { background: var(--blue-dark); }
.btn[disabled] { opacity: .6; cursor: progress; }
.nav .btn-light, .btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: #e8eefa; }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }

/* Hero
   The photo is scaled to the frame width and positioned so the car's roof always lands just
   under the headline: in hero.jpg the roof sits at 51.1% of the image width from the top
   (image height = 104% of width), and the tyres at 89.8%. --t is the height of the text block. */
.hero-frame { container-type: inline-size; position: relative; max-width: 1400px; margin: 0 auto; }
.hero {
  --t: 280px;
  position: relative; overflow: hidden; color: #fff; text-align: center;
  height: calc(var(--t) + 20px + 38.7cqw + 110px);
  background: #2c5aa6;
}
.hero .site-header { z-index: 3; }
.hero-img {
  position: absolute; left: 0; width: 100%; height: auto; max-width: none;
  top: calc(var(--t) + 20px - 51.1cqw);
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 90px);
  mask-image: linear-gradient(180deg, transparent 0, #000 90px);
}
.hero::after { /* melt the floor into the page so the lookup card can overlap it */
  content: ""; position: absolute; inset: auto 0 0 0; height: 170px; z-index: 1;
  background: linear-gradient(180deg, rgba(243,246,251,0), var(--paper));
}
.hero-text { position: relative; z-index: 2; padding-top: 118px; }
.hero-kicker { font-size: 13px; letter-spacing: .2em; text-transform: uppercase; opacity: .85; margin: 0 0 14px; }
.hero h1 {
  font-size: clamp(36px, 5.2vw, 68px); line-height: 1.04; letter-spacing: -.02em;
  margin: 0 auto; font-weight: 700; text-wrap: balance;
  text-shadow: 0 2px 24px rgba(13,20,36,.3);
}
.hero-lead { text-wrap: balance; max-width: 62ch; margin: 16px auto 0; font-size: 17px; opacity: .95; text-shadow: 0 1px 12px rgba(13,20,36,.35); }
.hero-specs {
  position: absolute; right: 24px; top: 46%; z-index: 2;
  list-style: none; margin: 0; padding: 14px 18px; text-align: left; font-size: 13px;
  background: rgba(13,20,36,.28); border: 1px solid rgba(255,255,255,.3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.hero-specs li { padding: 5px 0; }
.hero-specs b { display: block; font-size: 20px; }
@media (min-width: 1432px) {
  .hero-frame { margin-top: 16px; }
  .hero { border-radius: 10px 10px 0 0; }
}

/* Lookup card */
.lookup-card {
  position: relative; z-index: 5;
  background: var(--card); border-radius: var(--radius);
  box-shadow: 0 30px 60px -20px rgba(28,58,158,.25), 0 2px 6px rgba(13,20,36,.05);
  padding: 26px 28px 28px;
}
.lift { margin-top: -110px; }
.lookup-card h2 { margin: 0 0 4px; font-size: 20px; }
.lookup-card p.hint { margin: 0 0 18px; color: var(--ink-soft); font-size: 14px; }
.lookup-form { display: flex; gap: 10px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lookup-form input {
  flex: 1; min-width: 0; height: 56px; padding: 0 18px;
  border: 1px solid var(--line); border-radius: var(--radius);
  font: 600 22px/1 var(--font); letter-spacing: .06em; color: var(--ink); background: #fafbfe;
}
.lookup-form input::placeholder { color: #9aa5bd; font-weight: 400; letter-spacing: 0; font-size: 17px; }
.lookup-form input:focus { outline: 2px solid var(--blue); outline-offset: -1px; background: #fff; }
.lookup-form .btn { height: 56px; min-width: 130px; }

.result { margin-top: 18px; }
.result:empty { display: none; }
.result-card {
  display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  border: 1px solid var(--line); border-left: 4px solid var(--ok); padding: 18px 20px; background: #fbfdfc;
}
.result-card.missing { border-left-color: var(--warn); background: #fffcf6; }
.result-card .num { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.result-card .title { font-size: 20px; font-weight: 700; margin: 2px 0; }
.result-card .meta { color: var(--ink-soft); font-size: 14px; }
.result-card .price { font-weight: 700; color: var(--ink); }
.result-card p { margin: 4px 0 0; color: var(--ink-soft); font-size: 14px; }
.recent { margin-top: 14px; font-size: 13px; color: var(--ink-soft); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.recent:empty { display: none; }
.recent button {
  border: 1px solid var(--line); background: #fff; border-radius: 99px; padding: 4px 12px;
  font: 500 13px var(--font); color: var(--ink); cursor: pointer;
}
.recent button:hover { border-color: var(--blue); }

/* Sections */
section { padding: 90px 0; }
.section-title { text-align: center; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.15; margin: 0 auto 12px; max-width: 22ch; letter-spacing: -.01em; }
.section-lead { text-align: center; color: var(--ink-soft); max-width: 52ch; margin: 0 auto 48px; }

.makes { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.makes div {
  aspect-ratio: 16 / 10; display: grid; place-items: center; text-align: center; padding: 8px;
  font-weight: 700; letter-spacing: .08em; font-size: 14px; color: #6b7690;
  transition: background .2s, color .2s;
}
.makes div:hover { background: #e7ecf5; color: var(--ink); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { background: var(--card); padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); }
.step .n { font-size: 13px; font-weight: 700; color: var(--blue); letter-spacing: .1em; }
.step h3 { margin: 10px 0 8px; font-size: 18px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.band {
  background: linear-gradient(100deg, #0f1c3f 0%, #22408f 60%, #5d80c4 100%);
  color: #fff; padding: 70px 0;
}
.band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap; }
.band h2 { margin: 0 0 8px; font-size: clamp(24px, 3vw, 32px); }
.band p { margin: 0 0 22px; opacity: .8; max-width: 50ch; }
.stats { display: flex; gap: 40px; }
.stats b { display: block; font-size: 38px; line-height: 1; }
.stats span { font-size: 13px; opacity: .75; }

/* Footer */
.site-footer { background: #05070c; color: #c7cddb; padding: 60px 0 28px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; font-size: 14px; }
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0; }
.hours dt { color: #fff; }
.hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.foot-grid h4 { color: #fff; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; margin: 0 0 12px; }
.foot-grid p { margin: 0 0 6px; }
.foot-grid a { color: #c7cddb; text-decoration: none; }
.foot-grid a:hover { color: #fff; }
.foot-word {
  margin-top: 50px; font-weight: 800; letter-spacing: -.03em; line-height: .85;
  font-size: clamp(40px, 10vw, 140px); color: #fff; white-space: nowrap;
}
.foot-bottom { margin-top: 26px; border-top: 1px solid #1c2233; padding-top: 18px; font-size: 12px; color: #737c92; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Find page */
.find-page { min-height: 100vh; display: flex; flex-direction: column; }
.find-hero {
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 70%, var(--paper) 100%);
  color: #fff; padding: 118px 0 160px; text-align: center;
}
.find-hero h1 { margin: 0; font-size: clamp(30px, 5vw, 48px); letter-spacing: -.01em; }
.find-hero p { margin: 10px auto 0; opacity: .85; max-width: 44ch; }
.find-main { flex: 1; padding-bottom: 60px; }
.narrow { max-width: 720px; }
.help { margin-top: 28px; color: var(--ink-soft); font-size: 14px; text-align: center; }
.help a { color: var(--blue); }

@media (max-width: 860px) {
  .nav a:not(.btn) { display: none; }
  .hero { --t: 330px; }
  .hero-text { padding-top: 100px; }
  .hero-specs { display: none; }
  .makes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .makes div { font-size: 12px; letter-spacing: .04em; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  .lookup-card { padding: 20px 18px 22px; }
  .lookup-form { flex-direction: column; }
  .lookup-form input { flex: none; }
  .lookup-form .btn { width: 100%; }
  .result-card .btn { width: 100%; }
  .stats { gap: 26px; }
  .logo { font-size: 13px; letter-spacing: .1em; }
  .find-hero { padding-top: 100px; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero { --t: 320px; }
}
