/* Recall Lot Check — shared styles */
:root {
  --bg: #f7f9fc;
  --surface: #ffffff;
  --ink: #1c2733;
  --muted: #5b6b7c;
  --line: #e3e9f0;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eaf1fe;
  --red: #b42318;
  --red-soft: #fef3f2;
  --red-line: #fecdca;
  --green: #067647;
  --green-soft: #ecfdf3;
  --green-line: #a6f4c5;
  --amber: #92400e;
  --amber-soft: #fffaeb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px rgba(16, 24, 40, .06);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h2 { font-size: clamp(1.25rem, 3vw, 1.6rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); }

.container { max-width: 1060px; margin: 0 auto; padding: 0 20px; }
.container-narrow { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; padding-bottom: 12px; gap: 16px;
}
.logo {
  font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none;
  display: flex; align-items: center; gap: 8px; white-space: nowrap;
}
.logo .logo-mark {
  width: 26px; height: 26px; border-radius: 8px; flex: none;
  background: var(--blue); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.site-nav { display: flex; gap: 18px; align-items: center; font-size: .95rem; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.nav-cta {
  color: var(--blue); border: 1px solid var(--blue); border-radius: 999px;
  padding: 6px 14px;
}
@media (max-width: 560px) {
  .site-nav { gap: 12px; font-size: .88rem; }
  .site-nav a.nav-cta { padding: 5px 10px; }
}

/* Hero */
.hero { padding: 56px 0 28px; text-align: center; }
.hero .eyebrow {
  display: inline-block; background: var(--blue-soft); color: var(--blue-dark);
  font-size: .82rem; font-weight: 600; border-radius: 999px; padding: 5px 12px;
  margin-bottom: 16px;
}
.hero p.lede {
  color: var(--muted); font-size: 1.08rem; max-width: 620px; margin: 0 auto 8px;
}

/* Checker */
.checker {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px; margin: 28px auto 0; max-width: 720px;
  text-align: left;
}
.checker label {
  display: block; font-weight: 600; font-size: .92rem; margin: 0 0 6px;
}
.checker .field { margin-bottom: 18px; position: relative; }
.checker input[type="text"], .checker textarea {
  width: 100%; border: 1.5px solid var(--line); border-radius: 10px;
  padding: 13px 14px; font-size: 1.02rem; font-family: inherit; color: var(--ink);
  background: #fbfcfe; outline: none; transition: border-color .15s, box-shadow .15s;
}
.checker input[type="text"]:focus, .checker textarea:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); background: #fff;
}
.hint { font-size: .85rem; color: var(--muted); margin: 6px 0 0; }

.autocomplete-list {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 20;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); margin-top: 4px; overflow: hidden;
  max-height: 280px; overflow-y: auto; display: none;
}
.autocomplete-list.open { display: block; }
.autocomplete-item {
  padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item:hover, .autocomplete-item.active { background: var(--blue-soft); }
.autocomplete-item .ac-brand { color: var(--muted); font-size: .82rem; display: block; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.chips-label { font-size: .82rem; color: var(--muted); width: 100%; margin-bottom: 2px; }
.chip {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 6px 13px; font-size: .85rem; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.chip:hover { border-color: var(--blue); background: var(--blue-soft); }

.btn {
  display: inline-block; border: 0; border-radius: 10px; cursor: pointer;
  font-size: 1rem; font-weight: 650; font-family: inherit; text-decoration: none;
  padding: 13px 26px; text-align: center; transition: background .15s, transform .05s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blue); color: #fff; width: 100%; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-secondary { background: #fff; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-secondary:hover { background: var(--blue-soft); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; }

/* Result panels */
.result { margin-top: 20px; border-radius: var(--radius); padding: 20px; display: none; }
.result.show { display: block; }
.result-match { background: var(--red-soft); border: 1.5px solid var(--red-line); }
.result-match h3 { color: var(--red); }
.result-nomatch { background: var(--green-soft); border: 1.5px solid var(--green-line); }
.result-nomatch h3 { color: var(--green); }
.result-inconclusive { background: var(--amber-soft); border: 1.5px solid #fedf89; }
.result-inconclusive h3 { color: var(--amber); }
.result .result-badge {
  display: inline-block; font-size: .78rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; border-radius: 999px; padding: 3px 10px; margin-bottom: 8px;
}
.result-match .result-badge { background: var(--red); color: #fff; }
.result-nomatch .result-badge { background: var(--green); color: #fff; }
.result-inconclusive .result-badge { background: var(--amber); color: #fff; }
.result ul { margin: 8px 0 8px 20px; padding: 0; }
.result li { margin-bottom: 6px; }
.result .freshness { font-size: .84rem; color: var(--muted); margin-top: 10px; }

/* Sections */
.section { padding: 40px 0; }
.section-head { text-align: center; margin-bottom: 26px; }
.section-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* Recall cards */
.card-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px;
}
.recall-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s;
}
.recall-card:hover { box-shadow: var(--shadow); border-color: #cdd8e4; }
.recall-card .card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.badge {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  border-radius: 999px; padding: 3px 10px; white-space: nowrap;
}
.badge-drug { background: #eef4ff; color: #3538cd; }
.badge-food { background: #ecfdf3; color: #067647; }
.badge-product { background: #f4f3ff; color: #5925dc; }
.badge-vehicle { background: #fffaeb; color: #92400e; }
.recall-card .card-date { font-size: .8rem; color: var(--muted); }
.recall-card h3 { margin: 0; font-size: 1.02rem; }
.recall-card .card-reason {
  font-size: .88rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.recall-card .card-link { font-size: .88rem; font-weight: 600; color: var(--blue); margin-top: auto; }

/* Risk pill */
.risk { font-size: .78rem; font-weight: 600; }
.risk-high { color: var(--red); }
.risk-medium { color: var(--amber); }

/* Ad placeholders */
[data-ad-slot] {
  border: 1.5px dashed var(--line); border-radius: var(--radius);
  min-height: 90px; margin: 28px auto; max-width: 720px;
  display: flex; align-items: center; justify-content: center;
  color: #b3bfcc; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  background: #fbfcfe;
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
@media (max-width: 860px) { .pricing-grid { grid-template-columns: 1fr; } }
.price-card {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; position: relative; min-width: 0;
}
.price-card.featured { border-color: var(--blue); box-shadow: var(--shadow); }
.price-card .popular-tag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue); color: #fff; font-size: .75rem; font-weight: 700;
  border-radius: 999px; padding: 4px 14px; white-space: nowrap;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 2px; }
.price { font-size: 2.1rem; font-weight: 750; margin: 8px 0 2px; letter-spacing: -0.02em; }
.price small { font-size: .95rem; font-weight: 500; color: var(--muted); }
.price-alt { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.price-card ul { list-style: none; padding: 0; margin: 12px 0 20px; flex: 1; }
.price-card li { padding: 6px 0 6px 26px; position: relative; font-size: .94rem; }
.price-card li::before {
  content: "✓"; position: absolute; left: 0; color: var(--green); font-weight: 700;
}
.billing-toggle {
  display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px;
  overflow: hidden; margin: 0 auto 24px; background: #fff;
}
.billing-toggle button {
  border: 0; background: transparent; padding: 8px 18px; font-size: .9rem;
  font-weight: 600; cursor: pointer; color: var(--muted); font-family: inherit;
}
.billing-toggle button.active { background: var(--blue); color: #fff; }

/* Forms (waitlist / email capture) */
.email-form { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.email-form input[type="email"], .email-form input[type="text"] {
  flex: 1; border: 1.5px solid var(--line); border-radius: 10px; padding: 12px 14px;
  font-size: .98rem; font-family: inherit; background: #fbfcfe; outline: none;
}
.email-form input:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.email-form .btn { width: auto; white-space: nowrap; }
@media (max-width: 520px) { .email-form { flex-direction: column; } .email-form .btn { width: 100%; } }
.form-note { font-size: .82rem; color: var(--muted); margin-top: 8px; }
.form-success {
  background: var(--green-soft); border: 1.5px solid var(--green-line); color: var(--green);
  border-radius: 10px; padding: 14px; margin-top: 14px; font-weight: 600; display: none;
}
.form-success.show { display: block; }

/* Recall detail page */
.recall-hero { padding: 40px 0 8px; }
.recall-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: .9rem; margin: 10px 0 18px; }
.detail-block {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; margin-bottom: 18px;
}
.code-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.code-pill {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background: var(--blue-soft); color: var(--blue-dark); border-radius: 8px;
  padding: 5px 11px; font-size: .92rem; font-weight: 600;
}
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  counter-increment: step; padding: 10px 0 10px 44px; position: relative;
  border-bottom: 1px solid var(--line);
}
.steps li:last-child { border-bottom: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 10px;
  width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff;
  font-size: .85rem; font-weight: 700; display: flex; align-items: center; justify-content: center;
}
.source-box {
  background: var(--blue-soft); border-radius: 10px; padding: 14px 16px; font-size: .92rem;
}

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

/* Report page */
.report-toolbar { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.report-toolbar .btn { width: auto; }
.report-output { margin-top: 22px; display: none; }
.report-output.show { display: block; }
.report-hit, .report-miss, .report-unknown {
  border-radius: 10px; padding: 14px 16px; margin-bottom: 10px; border: 1.5px solid;
}
.report-hit { background: var(--red-soft); border-color: var(--red-line); }
.report-miss { background: var(--green-soft); border-color: var(--green-line); }
.report-unknown { background: #f8fafc; border-color: var(--line); color: var(--muted); }
.report-hit h4, .report-miss h4, .report-unknown h4 { margin: 0 0 4px; font-size: .98rem; }
.lock-box {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center;
}

/* Legal pages */
.legal h2 { margin-top: 1.6em; }
.legal p, .legal li { color: #37475a; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line); background: var(--surface);
  margin-top: 48px; padding: 32px 0 40px; font-size: .88rem; color: var(--muted);
}
.site-footer .footer-grid { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; }
.site-footer a { color: var(--muted); }
.site-footer .footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-disclaimer { max-width: 720px; margin-top: 16px; font-size: .8rem; }

.notice-inline {
  background: var(--amber-soft); border: 1px solid #fedf89; color: var(--amber);
  border-radius: 10px; padding: 12px 16px; font-size: .92rem; margin: 16px 0;
}

/* Print styles (Home Safety Report) */
@media print {
  .site-header, .site-footer, .no-print, [data-ad-slot], .report-toolbar { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .report-hit, .report-miss, .report-unknown { border: 1px solid #999; background: #fff; break-inside: avoid; }
  a { color: #000; text-decoration: none; }
}
