/* ==========================================================================
   PreBuyIQ — site.css
   Landing page, intake form, and delivered-report chrome.
   Loaded AFTER style.css, reusing its design tokens (--brand-navy, etc.).
   ========================================================================== */

/* The HTML [hidden] attribute must win over component display rules
   (e.g. .vin-picker { display: grid }), so the report viewer can hide the
   demo tabs/banner in delivery mode. */
[hidden] { display: none !important; }

/* ----- shared buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  line-height: 1;
  padding: 12px 20px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.04s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-cta {
  background: var(--brand-blue);
  color: #fff;
  border-color: var(--brand-blue);
}
.btn-cta:hover { background: #1d4ed8; color: #fff; }
.btn-ghost {
  background: #fff;
  color: var(--brand-navy);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-lg { padding: 15px 26px; font-size: 16px; border-radius: 12px; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-block { width: 100%; }

/* topbar CTA override (topbar styles come from style.css) */
.topbar-cta .btn-cta { padding: 9px 16px; font-size: 14px; }

/* ==========================================================================
   Landing page
   ========================================================================== */
.eyebrow-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-blue);
  background: #eef4ff;
  border: 1px solid #dbe7ff;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero-lp {
  background: linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-lp-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 64px 24px 56px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.hero-lp-copy h1 {
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--brand-navy);
}
.lede { font-size: 18px; color: var(--ink-soft); margin: 0 0 28px; max-width: 36em; }
.hero-lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero-lp-verdicts { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.verdict-chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 5px 11px;
  border-radius: 6px;
}
.verdict-buy { color: #fff; background: var(--good); }
.verdict-negotiate { color: #fff; background: var(--warn); }
.verdict-walk { color: #fff; background: var(--bad); }
.verdict-note { font-size: 13px; color: var(--ink-mute); }

/* hero mini-report card */
.hero-lp-card { display: flex; justify-content: center; }
.mini-report {
  width: 100%;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 22px;
}
.mini-report-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-soft);
}
.mini-price { font-size: 30px; font-weight: 700; color: var(--brand-navy); line-height: 1.1; }
.mini-range { font-size: 13px; color: var(--ink-mute); margin-top: 2px; }
.mini-verdict { margin: 14px 0 10px; font-size: 15px; color: var(--ink-soft); }
.mini-verdict strong { color: var(--warn); }
.mini-bullets { margin: 0; padding-left: 18px; color: var(--ink-soft); font-size: 14px; }
.mini-bullets li { margin-bottom: 6px; }
.mini-foot { margin-top: 16px; font-size: 12px; color: var(--ink-mute); text-transform: uppercase; letter-spacing: 0.04em; }

/* trust strip */
.trust-strip { background: var(--brand-navy); }
.trust-strip-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 22px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.trust-item { color: #e2e8f0; text-align: center; }
.trust-item strong { display: block; font-size: 22px; color: #fff; }
.trust-item span { font-size: 13px; color: #94a3b8; }

/* generic section */
.section { padding: 64px 24px; }
.section-alt { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-narrow { max-width: 760px; }
.section-title { font-size: 30px; letter-spacing: -0.01em; color: var(--brand-navy); margin: 0 0 8px; text-align: center; }
.section-sub { font-size: 16px; color: var(--ink-soft); text-align: center; margin: 0 auto 40px; max-width: 40em; }
.section-cta { text-align: center; margin-top: 36px; }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
}
.step-num {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: #eef4ff; color: var(--brand-blue);
  font-weight: 700; font-size: 16px;
  margin-bottom: 14px;
}
.step h3 { margin: 0 0 8px; font-size: 18px; color: var(--brand-navy); }
.step p { margin: 0; color: var(--ink-soft); font-size: 15px; }

/* feature grid */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}
.feature h4 { margin: 0 0 6px; font-size: 15px; color: var(--brand-navy); }
.feature p { margin: 0; font-size: 14px; color: var(--ink-soft); }

/* pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 24px; justify-content: center; }
.price-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.price-card-featured { border-color: var(--brand-blue); box-shadow: 0 8px 30px rgba(37, 99, 235, 0.14); }
.price-badge {
  position: absolute; top: -12px; right: 24px;
  background: var(--brand-blue); color: #fff;
  font-size: 12px; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.price-tier { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-mute); }
.price-amount { font-size: 44px; font-weight: 700; color: var(--brand-navy); line-height: 1.1; margin-top: 4px; }
.price-per { font-size: 13px; color: var(--ink-mute); margin-bottom: 20px; }
.price-list { list-style: none; margin: 0 0 24px; padding: 0; }
.price-list li { position: relative; padding-left: 26px; margin-bottom: 10px; font-size: 14px; color: var(--ink-soft); }
.price-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--good); font-weight: 700;
}
.pricing-note { text-align: center; color: var(--ink-mute); font-size: 14px; max-width: 44em; margin: 28px auto 0; }

/* faq */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--brand-navy);
  padding: 16px 0;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--ink-mute); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 16px; color: var(--ink-soft); font-size: 15px; }

/* closing cta */
.closing-cta { background: var(--brand-navy); }
.closing-cta-inner { max-width: 760px; margin: 0 auto; padding: 64px 24px; text-align: center; }
.closing-cta h2 { color: #fff; font-size: 30px; margin: 0 0 10px; letter-spacing: -0.01em; }
.closing-cta p { color: #cbd5e1; font-size: 17px; margin: 0 0 28px; }

/* ==========================================================================
   Intake form
   ========================================================================== */
.intake { max-width: 760px; margin: 0 auto; padding: 40px 24px 72px; }
.intake-head h1 { font-size: 32px; color: var(--brand-navy); margin: 0 0 10px; letter-spacing: -0.01em; }
.intake-head p { font-size: 16px; color: var(--ink-soft); margin: 0 0 32px; }

.intake-form { display: flex; flex-direction: column; gap: 20px; }
.intake-section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 0;
}
.intake-section legend {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  padding: 0 8px;
  margin-left: -8px;
}
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; }
.field-wide { grid-column: 1 / -1; }
.field label { font-size: 14px; font-weight: 600; color: var(--brand-navy); margin-bottom: 6px; }
.req { color: var(--bad); }
.field input[type="text"],
.field input[type="email"],
.field input[type="url"],
.field textarea {
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  width: 100%;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
.field-hint { font-size: 13px; color: var(--ink-mute); margin: 6px 0 0; }
.field-hint-block { margin: 0 0 16px; }

/* tier choice */
.tier-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tier-option { cursor: pointer; }
.tier-option input { position: absolute; opacity: 0; pointer-events: none; }
.tier-card {
  display: block;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 18px;
  height: 100%;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.tier-option input:checked + .tier-card {
  border-color: var(--brand-blue);
  background: #f5f9ff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.tier-name { display: block; font-weight: 700; color: var(--brand-navy); }
.tier-price { display: block; font-size: 26px; font-weight: 700; color: var(--brand-navy); margin: 2px 0 6px; }
.tier-desc { display: block; font-size: 13px; color: var(--ink-soft); }

/* checkbox lines */
.checkbox-line { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 400; color: var(--ink-soft); font-size: 15px; cursor: pointer; }
.checkbox-line input { margin-top: 3px; width: 17px; height: 17px; flex: 0 0 auto; }
.checkbox-auth { background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; padding: 16px; }

/* file upload */
.file-drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-align: center;
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 28px 20px;
  cursor: pointer;
  background: #fafcff;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.file-drop:hover, .file-drop-active { border-color: var(--brand-blue); background: #f0f6ff; }
.file-drop-strong { font-weight: 600; color: var(--brand-blue); font-size: 15px; }
.file-drop-sub { font-size: 13px; color: var(--ink-mute); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.file-list { list-style: none; margin: 12px 0 0; padding: 0; }
.file-row {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 9px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}
.file-name { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-size { color: var(--ink-mute); flex: 0 0 auto; }
.file-row-error { border-color: var(--bad); background: var(--bad-bg); }
.file-row-error .file-size { color: var(--bad); }

/* errors + actions */
.intake-error {
  background: var(--bad-bg);
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 14px;
}
.intake-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
.intake-actions .btn { width: 100%; }
.intake-actions-note { font-size: 13px; color: var(--ink-mute); text-align: center; margin: 0; }
.intake-thanks { text-align: center; padding: 24px 8px; }
.intake-thanks h2 { color: var(--brand-navy); margin: 0 0 10px; }
.intake-thanks p { color: var(--ink-soft); margin: 0 auto 8px; max-width: 40em; }
.intake-thanks-id { font-size: 13px; color: var(--ink-mute); }

/* ==========================================================================
   Delivered-report header (report.html?r=<token>)
   ========================================================================== */
.delivery-header { background: #fff; border-bottom: 1px solid var(--line); }
.delivery-header-inner {
  max-width: 1200px; margin: 0 auto; padding: 18px 24px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.delivery-eyebrow { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-blue); }
.delivery-for { font-size: 20px; font-weight: 700; color: var(--brand-navy); }
.delivery-meta { display: flex; align-items: center; gap: 16px; color: var(--ink-mute); font-size: 13px; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .hero-lp-inner { grid-template-columns: 1fr; gap: 32px; }
  .hero-lp-copy h1 { font-size: 34px; }
  .hero-lp-card { order: -1; }
  .trust-strip-inner { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .steps, .feature-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .field-grid, .tier-choice { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .hero-lp-copy h1 { font-size: 28px; }
  .topnav { display: none; }
}

/* ==========================================================================
   Print — used by the "Save as PDF" button on delivered reports
   ========================================================================== */
@media print {
  .topbar, .demo-banner, .vin-picker, .footer-brand,
  .delivery-meta, .topbar-cta { display: none !important; }
  body { background: #fff; font-size: 12px; }
  .delivery-header { border: none; }
  .card, .hero, .twoup .card {
    box-shadow: none;
    border: 1px solid #e2e8f0;
    break-inside: avoid;
  }
  .page { max-width: none; }
}

/* ----- Account settings panel ----- */
.settings-wrap { display: grid; gap: 16px; max-width: 560px; }
.set-card { background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; padding: 18px 20px; box-shadow: var(--shadow, 0 1px 2px rgba(0,0,0,.04)); }
.set-card h3 { margin: 0 0 12px; font-size: 15px; color: var(--brand-navy, #0f1d36); }
.set-row { display: flex; justify-content: space-between; gap: 12px; margin: 6px 0; font-size: 14px; color: var(--ink-soft, #475569); }
.set-row strong { color: var(--ink, #0f172a); font-weight: 600; }
.set-help { margin: 0 0 12px; font-size: 13px; color: var(--ink-mute, #64748b); }
.set-inline { display: flex; gap: 8px; }
.set-inline input { flex: 1; padding: 8px 10px; border: 1px solid var(--line, #e2e8f0); border-radius: 8px; font-size: 14px; }
.set-msg { margin-top: 10px; font-size: 13px; min-height: 1em; }
.set-msg.ok { color: #15803d; }
.set-msg.err { color: #b91c1c; }
.set-card.set-danger { border-color: #fecaca; background: #fff7f7; }
.set-card.set-danger h3 { color: #b91c1c; }
.btn-danger { background: #dc2626; color: #fff; border: 1px solid #dc2626; }
.btn-danger:hover { background: #b91c1c; }
