:root {
  color-scheme: light;
  --ink: #162029;
  --muted: #5f6b76;
  --paper: #f8faf7;
  --panel: #ffffff;
  --line: #d8ded8;
  --accent: #c83f30;
  --accent-dark: #9f2d22;
  --teal: #087f7a;
  --gold: #c79120;
  --blue: #275a88;
  --soft: #eef3f0;
  --shadow: 0 18px 40px rgba(15, 23, 32, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
}

button,
select,
input {
  font: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(216, 222, 216, 0.82);
  background: rgba(248, 250, 247, 0.94);
  backdrop-filter: blur(12px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 0 45%, rgba(255, 255, 255, 0.75) 45% 55%, transparent 55%),
    linear-gradient(135deg, var(--accent), var(--gold));
}

.nav-links {
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

main {
  padding: 28px clamp(18px, 4vw, 56px) 54px;
}

.tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.82fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: stretch;
  max-width: 1180px;
  margin: 0 auto;
}

.hero-copy {
  align-self: end;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.25rem, 4.8vw, 5rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.lede {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.visual-panel {
  position: relative;
  min-height: 260px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(8, 127, 122, 0.08), transparent 48%),
    linear-gradient(160deg, #1a2730, #11171d);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-panel::before,
.visual-panel::after {
  position: absolute;
  content: "";
  inset: auto auto 0 0;
  width: 100%;
  height: 42%;
  background:
    linear-gradient(90deg, transparent 12%, rgba(255, 255, 255, 0.14) 12% 13%, transparent 13% 48%, rgba(255, 255, 255, 0.14) 48% 49%, transparent 49% 86%, rgba(255, 255, 255, 0.14) 86% 87%, transparent 87%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent);
  transform: perspective(240px) rotateX(58deg);
  transform-origin: bottom;
}

.visual-panel::after {
  inset: 18px 18px auto auto;
  width: 86px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  transform: none;
}

.camera-shell {
  position: absolute;
  inset: 42px 28px 28px;
  display: grid;
  grid-template-rows: 1fr 28px;
  gap: 12px;
}

.camera-screen {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(0deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px) 0 0 / 36px 36px,
    linear-gradient(180deg, rgba(39, 90, 136, 0.42), rgba(8, 127, 122, 0.2));
  overflow: hidden;
}

.lane {
  position: absolute;
  bottom: 0;
  width: 2px;
  height: 70%;
  background: var(--gold);
  transform-origin: bottom;
}

.lane-a {
  left: 28%;
  transform: rotate(16deg);
}

.lane-b {
  left: 50%;
  height: 76%;
  background: rgba(255, 255, 255, 0.72);
}

.lane-c {
  right: 28%;
  transform: rotate(-16deg);
}

.car-shape {
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 82px;
  height: 42px;
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 16px 16px 8px 8px;
  transform: translateX(-50%);
}

.car-shape::before,
.car-shape::after {
  position: absolute;
  bottom: -10px;
  width: 16px;
  height: 16px;
  content: "";
  border-radius: 50%;
  background: #0f1720;
  border: 2px solid rgba(255, 255, 255, 0.82);
}

.car-shape::before {
  left: 8px;
}

.car-shape::after {
  right: 8px;
}

.scan-line {
  position: absolute;
  left: 0;
  top: 34%;
  width: 100%;
  height: 2px;
  background: rgba(200, 63, 48, 0.86);
  box-shadow: 0 0 18px rgba(200, 63, 48, 0.85);
  animation: scan 3.4s ease-in-out infinite;
}

.camera-base {
  width: min(52%, 220px);
  height: 100%;
  margin: 0 auto;
  border-radius: 0 0 8px 8px;
  background: linear-gradient(180deg, #33424d, #18222a);
}

@keyframes scan {
  0%,
  100% {
    transform: translateY(-46px);
  }
  50% {
    transform: translateY(58px);
  }
}

.checker-card {
  grid-column: 1 / -1;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 690;
}

select,
input {
  width: 100%;
  min-height: 46px;
  border: 1px solid #cfd7d3;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 10px 12px;
  outline: none;
}

select:focus,
input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(8, 127, 122, 0.15);
}

.actions,
.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.quick-picks button,
.result-link {
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 10px 15px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 760;
}

.primary-button {
  background: var(--accent);
  color: #fff;
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button,
.quick-picks button,
.result-link {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.secondary-button:hover,
.quick-picks button:hover,
.result-link:hover {
  border-color: var(--teal);
}

.quick-picks,
.results-layout,
.recent-section,
.faq-section {
  max-width: 1180px;
  margin: 18px auto 0;
}

.results-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-items: start;
}

.results-panel,
.source-panel,
.recent-section,
.faq-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.results-panel,
.source-panel {
  padding: clamp(18px, 3vw, 24px);
}

.empty-state h2,
.source-panel h2,
.section-heading h2,
.result-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  letter-spacing: 0;
}

.empty-state p,
.source-panel p,
.result-head p,
.recall-card p,
.recent-section p,
.faq-section p {
  color: var(--muted);
}

.source-panel {
  display: grid;
  gap: 12px;
}

.source-panel a {
  display: block;
  color: var(--blue);
  font-weight: 740;
}

.ad-slot {
  display: grid;
  min-height: 220px;
  place-items: center;
  border: 1px dashed #b8c1bd;
  border-radius: 8px;
  background: var(--soft);
  color: var(--muted);
  font-size: 0.82rem;
}

.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 30px;
  border-radius: 999px;
  padding: 5px 10px;
  font-weight: 820;
  font-size: 0.82rem;
}

.status.match {
  background: rgba(200, 63, 48, 0.12);
  color: var(--accent-dark);
}

.status.clear {
  background: rgba(8, 127, 122, 0.12);
  color: #075f5b;
}

.status.warn {
  background: rgba(199, 145, 32, 0.18);
  color: #77530b;
}

.result-head {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 4px;
}

.recall-results {
  display: grid;
  gap: 12px;
}

.recall-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.recall-card h3 {
  margin: 8px 0 6px;
  font-size: 1.05rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  padding: 4px 9px;
  font-size: 0.78rem;
  font-weight: 820;
}

.recent-section,
.faq-section {
  padding: clamp(18px, 3vw, 26px);
}

.section-heading {
  margin-bottom: 16px;
}

.recall-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.recall-list article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfb;
}

.recall-list h3 {
  margin: 10px 0 8px;
  font-size: 1.02rem;
}

details {
  border-top: 1px solid var(--line);
  padding: 14px 0;
}

details:first-of-type {
  border-top: 0;
}

summary {
  cursor: pointer;
  font-weight: 820;
}

.site-footer {
  display: grid;
  gap: 4px;
  padding: 26px clamp(18px, 4vw, 56px) 38px;
  color: var(--muted);
  text-align: center;
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

@media (max-width: 820px) {
  .site-header,
  .nav-links {
    align-items: flex-start;
  }

  .site-header {
    position: static;
    flex-direction: column;
    gap: 10px;
  }

  .tool-hero,
  .results-layout,
  .recall-list {
    grid-template-columns: 1fr;
  }

  .visual-panel {
    min-height: 220px;
  }

  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  main {
    padding-top: 18px;
  }

  h1 {
    font-size: 2.15rem;
  }

  .nav-links {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .primary-button,
  .secondary-button,
  .quick-picks button,
  .result-link {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}
