:root {
  --ink: #17202c;
  --muted: #596574;
  --soft: #f7fafb;
  --surface: #ffffff;
  --surface-tint: #f8fbfc;
  --line: #d5dde4;
  --line-soft: #e7edf1;
  --teal: #087a73;
  --teal-dark: #06645f;
  --teal-soft: #e8f7f6;
  --amber: #b96d07;
  --amber-soft: #fff8eb;
  --blue: #2878a9;
  --shadow: 0 18px 42px rgba(25, 41, 57, 0.08);
  --radius: 7px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #fbfcfd 0%, #f7f9fa 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--teal);
  font-weight: 650;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-shell {
  width: min(1464px, calc(100vw - 72px));
  margin: 0 auto;
  padding: 30px 0 34px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 32px;
  align-items: start;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 4px;
  color: #263344;
  font-size: 18px;
  font-weight: 600;
}

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

h1 {
  margin-bottom: 0;
  font-size: clamp(44px, 5vw, 68px);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin-top: 16px;
}

.round-icon {
  display: grid;
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 10px;
  font-weight: 800;
}

.hero-copy {
  margin-bottom: 6px;
  font-size: 18px;
  line-height: 1.45;
}

.helper-copy,
.field-help,
.checks-heading p,
.site-footer,
.privacy-note {
  color: var(--muted);
}

.warning-card {
  display: grid;
  gap: 8px;
  min-height: 96px;
  margin-top: 10px;
  padding: 18px 20px 16px 62px;
  border: 1px solid #f0c981;
  border-radius: var(--radius);
  background: var(--amber-soft);
  position: relative;
}

.warning-card::before {
  content: "!";
  position: absolute;
  left: 22px;
  top: 25px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 6px;
  background: var(--amber);
  color: white;
  font-weight: 850;
}

.warning-card strong {
  color: #7d4705;
  font-size: 17px;
}

.warning-card p {
  margin: 0;
  line-height: 1.35;
}

.checker-shell {
  display: grid;
  grid-template-columns: minmax(340px, 38%) minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shell-title {
  grid-column: 1 / -1;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfd, #f4f7f8);
  font-size: 18px;
  font-weight: 760;
}

.lookup-panel,
.result-panel {
  padding: 20px 20px 18px;
}

.lookup-panel {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
}

.step-heading,
.result-actions,
.checks-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.step-heading h2,
.result-actions h2,
.checks-heading h2,
.info-card h2 {
  margin-bottom: 0;
  color: var(--teal);
  font-size: 18px;
  line-height: 1.2;
}

.step-heading span {
  padding: 5px 12px;
  border-radius: 999px;
  background: #eef1f3;
  color: #34404c;
  font-size: 13px;
  font-weight: 700;
}

.vin-field-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 16px;
  border: 1px solid #cdd7df;
  border-radius: 6px;
  background: #fff;
}

.vin-field-wrap:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 122, 115, 0.13);
}

#vin-input {
  width: 100%;
  min-height: 48px;
  padding: 0 12px;
  border: 0;
  color: var(--ink);
  font-size: 16px;
  outline: 0;
}

#vin-count {
  min-width: 58px;
  padding-right: 12px;
  color: var(--muted);
  text-align: right;
}

.field-help {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.field-error {
  min-height: 20px;
  margin: 6px 0 0;
  color: #a04300;
  font-size: 13px;
  font-weight: 650;
}

.primary-button,
.secondary-button,
.text-button {
  border-radius: 6px;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  border: 0;
  background: linear-gradient(135deg, #0c8e87, #056f68);
  color: white;
  font-size: 18px;
  font-weight: 780;
}

.primary-button:hover,
.secondary-button:hover,
.text-button:hover {
  transform: translateY(-1px);
}

.or-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: #263240;
}

.or-divider::before,
.or-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.secondary-button {
  min-height: 46px;
  border: 1px solid #c8d2da;
  background: white;
  color: var(--ink);
  font-weight: 650;
}

.secondary-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.quiet-button {
  min-width: 106px;
  color: var(--teal);
}

.privacy-note,
.source-note {
  display: flex;
  gap: 12px;
  align-items: center;
  margin: auto 0 0;
  padding: 13px 14px;
  border: 1px solid #d9e8ef;
  border-radius: 6px;
  background: #f4fbfd;
  font-size: 14px;
}

.privacy-note span,
.source-note::before {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 2px solid var(--teal);
  border-radius: 50%;
  color: var(--teal);
  font-weight: 800;
}

.result-actions {
  margin-bottom: 10px;
}

.result-actions h2 span,
.info-card h2 span {
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
}

.result-actions > div {
  display: flex;
  gap: 14px;
  align-items: center;
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--teal);
  font-weight: 760;
}

.summary-card {
  display: grid;
  grid-template-columns: 214px minmax(0, 1fr);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.vehicle-preview {
  display: grid;
  align-content: space-between;
  min-height: 188px;
  border-right: 1px solid var(--line);
  background: linear-gradient(180deg, #f7fafb, #eef3f5);
}

.vehicle-preview img {
  display: block;
  width: min(186px, 90%);
  height: auto;
  margin: 18px auto 8px;
}

.vehicle-vin {
  padding: 10px 14px 14px;
  border-top: 1px solid var(--line-soft);
}

.vehicle-vin span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.vehicle-vin strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(96px, 1fr));
  margin: 0;
}

.spec-grid div {
  min-height: 64px;
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--line-soft);
}

.spec-grid div:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.spec-grid dt {
  color: var(--muted);
  font-size: 12px;
}

.spec-grid dd {
  margin: 6px 0 0;
  font-size: 15px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.checks-heading {
  margin: 16px 0 6px;
}

.checks-heading p {
  margin-bottom: 0;
  font-size: 13px;
}

.check-table {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.check-row {
  display: grid;
  grid-template-columns: 150px minmax(210px, 1fr) 254px;
  align-items: center;
  min-height: 41px;
  border-bottom: 1px solid var(--line-soft);
}

.check-row:last-child {
  border-bottom: 0;
}

.check-row > * {
  padding: 10px 12px;
}

.check-row strong {
  font-weight: 740;
}

.check-row span {
  color: #384454;
}

.check-row em {
  height: 100%;
  border-left: 1px solid var(--line-soft);
  font-style: normal;
  font-weight: 650;
}

.status-good {
  color: #168060;
}

.status-warn {
  color: #bb6900;
}

.status-info {
  color: var(--blue);
}

.source-note {
  margin-top: 8px;
  color: #075a70;
}

.source-note::before {
  content: "i";
  flex: 0 0 auto;
}

.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr 0.9fr 1.2fr;
  gap: 16px;
  margin-top: 12px;
}

.info-card,
.guide-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.info-card {
  padding: 15px 16px;
}

.info-card h2 {
  margin-bottom: 14px;
  color: var(--ink);
}

.number-list,
.plain-list {
  display: grid;
  gap: 9px;
  margin: 0 0 14px;
  padding: 0;
}

.number-list {
  list-style: none;
}

.number-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.number-list span {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 12px;
  font-weight: 800;
}

.plain-list {
  padding-left: 19px;
  line-height: 1.45;
}

.example-table {
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  overflow: hidden;
  font-size: 13px;
}

.example-table > div {
  display: grid;
  grid-template-columns: minmax(150px, 1fr) minmax(145px, 1fr);
  border-bottom: 1px solid var(--line-soft);
}

.example-table > div:last-child {
  border-bottom: 0;
}

.example-table code,
.example-table span {
  padding: 8px 10px;
}

.example-table code {
  border-right: 1px solid var(--line-soft);
  color: #273344;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.examples-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.faq-card {
  display: grid;
  align-content: start;
}

details {
  border: 1px solid var(--line-soft);
  border-bottom: 0;
}

details:first-of-type {
  border-radius: 6px 6px 0 0;
}

details:last-of-type {
  border-bottom: 1px solid var(--line-soft);
  border-radius: 0 0 6px 6px;
}

summary {
  min-height: 38px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 620;
}

details p {
  margin: 0;
  padding: 0 12px 12px;
  color: var(--muted);
  line-height: 1.45;
}

.guide-section {
  margin-top: 16px;
  padding: 24px;
  line-height: 1.65;
}

.guide-section h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.guide-section h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.guide-section p:last-child {
  margin-bottom: 0;
}

.guide-grid,
.scenario-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.guide-grid article,
.scenario-list article {
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}

.example-review {
  margin-top: 24px;
}

.scenario-list strong {
  display: block;
  margin-bottom: 6px;
  color: #263344;
}

.site-footer {
  margin-top: 26px;
  text-align: center;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 48px));
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #17202c;
  color: white;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1100px) {
  .page-shell {
    width: min(100% - 32px, 900px);
  }

  .hero,
  .checker-shell,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .lookup-panel {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .privacy-note {
    margin-top: 28px;
  }

  .summary-card {
    grid-template-columns: 1fr;
  }

  .vehicle-preview {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 24px, 560px);
    padding-top: 22px;
  }

  h1 {
    font-size: 44px;
  }

  .hero-copy {
    font-size: 16px;
  }

  .warning-card {
    padding-left: 54px;
  }

  .lookup-panel,
  .result-panel {
    padding: 16px;
  }

  .result-actions,
  .checks-heading,
  .step-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .spec-grid,
  .check-row,
  .example-table > div,
  .guide-grid,
  .scenario-list,
  .secondary-actions {
    grid-template-columns: 1fr;
  }

  .spec-grid div,
  .spec-grid div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--line-soft);
  }

  .spec-grid div:last-child {
    border-bottom: 0;
  }

  .check-row em {
    border-left: 0;
    border-top: 1px solid var(--line-soft);
  }

  .example-table code {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }
}
