:root {
  --ink: #101010;
  --blue: #1478f5;
  --soft: #f1f6fb;
  --orange: #ff9638;
  --green: #bdeccd;
  --yellow: #ffe6a5;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  font-size: 16px;
}

.container {
  width: 100%;
  max-width: 1170px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

.site-header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  font-size: 19px;
}

.brand-mark {
  color: #1976f2;
  font-size: 27px;
  margin-right: 3px;
}

nav {
  display: flex;
  gap: 34px;
  margin-left: 100px;
}

nav a,
.language {
  font-size: 15px;
  color: #111;
  text-decoration: none;
}

.language {
  color: #777;
}

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

h2 {
  font-size: 28px;
  text-align: center;
}

.hero {
  min-height: 395px;
  background: var(--soft);
  padding: 50px 55px;
  display: flex;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero h1 {
  font-size: 42px;
  line-height: 1.06;
  margin-bottom: 12px;
}

.hero p {
  line-height: 1.35;
}

.lookup-form {
  width: min(490px, 100%);
  display: flex;
  border: 1px solid #aeb4bc;
  border-radius: 7px;
  padding: 3px;
  background: #fff;
  margin: 19px 0;
}

.lookup-form input {
  border: 0;
  outline: 0;
  padding: 10px 12px;
  flex: 1;
  min-width: 0;
  font-size: 14px;
}

.lookup-form button,
.bundle-card button {
  border: 0;
  border-radius: 18px;
  background: var(--blue);
  color: white;
  padding: 8px 18px;
  font-size: 14px;
  cursor: pointer;
}

.uncover {
  font-size: 14px;
  margin-top: 26px;
}

.confirm-panel {
  width: min(560px, 100%);
  background: #fff;
  border: 1px solid #aeb4bc;
  border-radius: 10px;
  padding: 20px 22px;
  margin: 19px 0 0;
}

.confirm-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 18px 0;
}

.confirm-loading p {
  margin: 0;
  font-size: 14px;
  color: #555;
}

.spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #d7e3f3;
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.confirm-result h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.confirm-car {
  display: flex;
  gap: 16px;
}

.confirm-car > img {
  width: 96px;
  height: 88px;
  object-fit: cover;
  border-radius: 6px;
}

.confirm-car h4 {
  font-size: 16px;
  margin: 0 0 4px;
}

.confirm-car p {
  font-size: 12px;
  margin-bottom: 10px;
}

.confirm-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}

.btn-primary,
.btn-ghost {
  border-radius: 18px;
  border: 0;
  padding: 9px 20px;
  font-size: 13px;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
}

.btn-ghost {
  background: #fff;
  color: var(--ink);
  border: 1px solid #aeb4bc;
}

.uncover p {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 22px;
  margin-top: 10px;
}

.uncover span {
  white-space: nowrap;
}

.benefits {
  padding: 38px 0 55px;
}

.three-grid,
.four-grid,
.five-grid,
.score-grid {
  display: grid;
}

.three-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 70px;
  text-align: center;
  margin-top: 32px;
}

.three-grid img {
  height: 52px;
  width: 52px;
  object-fit: contain;
}

.three-grid h3 {
  font-size: 15px;
  margin: 15px 0;
}

.three-grid p,
.five-grid p,
.four-grid p {
  font-size: 14px;
  line-height: 1.35;
}

.features {
  padding: 34px 0 48px;
}

.features h2 {
  margin-bottom: 30px;
}

.five-grid {
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  text-align: center;
}

.five-grid article {
  border: 1px solid #c6c6c6;
  border-radius: 8px;
  padding: 13px 10px;
  box-shadow: 0 3px 3px #0002;
}

.five-grid img {
  height: 43px;
  width: 50px;
  object-fit: contain;
}

.five-grid h3 {
  font-size: 15px;
  line-height: 1.25;
  margin: 10px 0;
}

.bundles {
  background: var(--soft);
  padding: 25px 0 35px;
  text-align: center;
}

.bundles h2 {
  margin: 0 0 8px;
}

.bundles em {
  font-style: normal;
  color: #f22626;
}

.bundles > .container > p {
  font-size: 14px;
}

.bundle-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 80px;
  max-width: 820px;
  margin: 20px auto 0;
}

.bundle-card {
  border: 1px solid #b9c0c7;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 3px 3px #0003;
  padding: 16px 25px;
}

.bundle-card img {
  height: 60px;
  width: 85px;
  object-fit: contain;
}

.bundle-card h3 {
  font-size: 16px;
  margin: 3px;
}

.bundle-card p {
  font-size: 14px;
}

.bundle-card p b {
  background: #e12c2c;
  color: #fff;
  border-radius: 2px;
  padding: 4px 8px;
  margin-right: 8px;
}

.bundle-card span,
.bundle-card strong {
  display: block;
  font-size: 15px;
  margin-top: 15px;
}

.bundle-card button {
  margin-top: 15px;
  width: 150px;
}

.how {
  padding: 48px 0;
}

.four-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 42px;
  text-align: center;
  margin: 35px 0 15px;
}

.four-grid img {
  height: 60px;
  width: 65px;
  object-fit: contain;
}

.four-grid p {
  font-weight: 600;
}

.report-area {
  background: var(--soft);
  padding: 48px 0;
}

.report-card {
  background: #fff;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 30px;
}

.summary h3 {
  font-size: 16px;
}

.car-heading {
  display: flex;
  gap: 20px;
}

.car-heading > img {
  width: 135px;
  height: 125px;
  object-fit: cover;
}

.car-heading h2 {
  font-size: 20px;
  text-align: left;
  margin: 8px 0;
}

.car-heading p {
  font-size: 14px;
}

.vehicle-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vehicle-tags span {
  font-size: 12px;
  background: #eee;
  border-radius: 4px;
  padding: 5px 11px;
}

.score-title {
  margin-top: 30px;
}

.score-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.score-grid article {
  border: 1px solid #aeb4ba;
  border-radius: 8px;
  padding: 12px;
}

.score-grid h4 {
  font-size: 15px;
  margin-bottom: 10px;
}

.score-grid p {
  font-size: 13px;
  margin: 9px 0 0;
}

.status {
  font-size: 12px;
  padding: 4px 9px;
  border-radius: 10px;
  font-weight: 600;
}

.success {
  background: var(--green);
}

.warning {
  background: var(--yellow);
}

.timeline h2 {
  text-align: left;
  margin-bottom: 3px;
}

.timeline > p {
  font-size: 14px;
}

.records {
  display: inline-block;
  background: #8dbfff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 13px;
}

.timeline-list {
  max-width: 900px;
  margin: 10px auto 0;
}

.timeline-list article {
  display: grid;
  grid-template-columns: 130px 1fr;
  position: relative;
  gap: 25px;
  padding: 7px 0;
}

.timeline-list article:before {
  content: "";
  position: absolute;
  height: 100%;
  left: 148px;
  top: 15px;
  border-left: 2px solid #1478f5;
}

.timeline-list article:after {
  content: "";
  position: absolute;
  background: #1478f5;
  border-radius: 50%;
  height: 8px;
  width: 8px;
  left: 145px;
  top: 29px;
}

.timeline-list time {
  background: #eee;
  border-radius: 7px;
  justify-self: end;
  padding: 4px 9px;
  font-size: 12px;
  height: max-content;
}

.timeline-list div {
  border: 1px solid #aaa;
  border-radius: 8px;
  padding: 12px 16px;
}

.timeline-list h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.timeline-list p {
  font-size: 13px;
  margin: 0;
}

.check-panel,
.damage-panel,
.mileage-panel {
  display: grid;
  grid-template-columns: 37% 1fr;
  gap: 48px;
}

.check-panel h2,
.damage-panel h2,
.mileage-panel h2 {
  text-align: left;
  font-size: 23px;
}

.check-panel p,
.damage-panel > div > p,
.mileage-panel > div > p {
  font-size: 14px;
  line-height: 1.35;
  margin-top: 14px;
}

.check-panel h3,
.damage-panel h3,
.mileage-panel h3 {
  font-size: 16px;
}

.checked-box,
.damage-box,
.chart {
  border: 1px solid #999;
  border-radius: 8px;
  padding: 12px;
}

.checked-box p {
  position: relative;
  padding-left: 50px;
  margin: 0 0 10px;
  font-size: 13px;
}

.checked-box p:last-child {
  margin-bottom: 0;
}

.checked-box img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  position: absolute;
  left: 0;
  top: 0;
}

.compact p {
  min-height: 42px;
}

.legal {
  margin-bottom: 30px;
}

.damage-panel {
  margin-bottom: 30px;
}

.damage-box {
  display: flex;
  align-items: center;
}

.damage-box > img {
  width: 230px;
  height: 190px;
  object-fit: contain;
}

.damage-box p {
  font-size: 13px;
}

.damage-box span {
  display: block;
  background: #ffe7ac;
  padding: 7px 14px;
  margin: 7px 0;
  border-radius: 3px;
  font-size: 13px;
}

.mileage-panel {
  align-items: start;
}

.last-mileage {
  margin-top: 30px !important;
}

.chart {
  height: 270px;
  position: relative;
}

.chart svg {
  width: 100%;
  height: 100%;
}

footer {
  background: #07101f;
  color: #fff;
  padding: 28px 0 16px;
  text-align: center;
}

footer h2 {
  font-size: 26px;
  margin-bottom: 10px;
}

footer .lookup-form {
  margin: 0 auto 25px;
}

footer .lookup-form input {
  color: #111;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: left;
  max-width: 850px;
  margin: 20px auto;
}

.footer-grid h3 {
  font-size: 15px;
}

.footer-grid a {
  display: block;
  color: #cbd0da;
  font-size: 14px;
  margin: 9px 0;
}

.copyright {
  font-size: 13px;
  color: #cbd0da;
  margin: 30px 0 0;
}

@media (max-width: 760px) {
  .container {
    width: 100%;
    padding-left: 14px;
    padding-right: 14px;
  }

  .site-header {
    height: 68px;
  }

  .site-header nav {
    display: flex;
    gap: 14px;
    margin-left: 0;
  }

  .site-header nav a {
    font-size: 13px;
  }

  .language {
    font-size: 13px;
  }

  .hero {
    padding: 35px 25px;
    min-height: auto;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 34px;
  }

  .three-grid,
  .four-grid,
  .five-grid,
  .score-grid,
  .bundle-grid,
  .check-panel,
  .damage-panel,
  .mileage-panel {
    grid-template-columns: 1fr;
  }

  .three-grid,
  .four-grid {
    gap: 28px;
  }

  .five-grid {
    gap: 15px;
  }

  .bundle-grid {
    gap: 20px;
  }

  .uncover p {
    grid-template-columns: 1fr;
  }

  .confirm-car {
    flex-direction: column;
  }

  .confirm-car > img {
    width: 100%;
    height: 160px;
  }

  .confirm-actions {
    flex-direction: column;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .report-card {
    padding: 16px;
  }

  .car-heading {
    display: block;
  }

  .car-heading > img {
    width: 100%;
    height: 190px;
  }

  .timeline-list article {
    grid-template-columns: 80px 1fr;
    gap: 17px;
  }

  .timeline-list article:before {
    left: 94px;
  }

  .timeline-list article:after {
    left: 91px;
  }

  .check-panel {
    gap: 22px;
  }

  .damage-box {
    display: block;
  }

  .damage-box > img {
    width: 100%;
  }

  .vehicle-tags span {
    font-size: 11px;
  }
}