/* ============================================================
   Skip Trace API — site styles
   Lesson from Colorado Land Cash: write this file on day one,
   never reference a stylesheet that doesn't exist.
   ============================================================ */

:root {
  --color-bg: #ffffff;
  --color-bg-alt: #f7f8fa;
  --color-bg-dark: #0b1221;
  --color-text: #0b1221;
  --color-text-muted: #5a6374;
  --color-border: #e5e7eb;
  --color-primary: #1d4ed8;
  --color-primary-dark: #1e3a8a;
  --color-primary-light: #eff4ff;
  --color-accent: #10b981;
  --color-error: #dc2626;
  --color-success: #059669;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 33, 0.06);
  --shadow-md: 0 4px 16px rgba(11, 18, 33, 0.08);
  --shadow-lg: 0 16px 48px rgba(11, 18, 33, 0.12);
  --container-max: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text);
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1rem; }

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--color-primary);
  color: #fff;
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-ghost:hover { background: var(--color-bg-alt); }
.btn-lg { padding: 0.9rem 1.8rem; font-size: 1.05rem; }

/* ---------- Header ---------- */
.site-header {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.site-nav a { color: var(--color-text); font-weight: 500; }
.site-nav a.btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(180deg, #f7f8fa 0%, #ffffff 100%);
  text-align: center;
}
.hero-inner { max-width: 820px; margin: 0 auto; }
.eyebrow {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.hero h1 { margin-bottom: 1rem; }
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  color: var(--color-text-muted);
  margin: 0 auto 2rem;
  max-width: 680px;
}
.hero-sub strong { color: var(--color-text); }
.hero-cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}
.hero-phone-placeholder {
  display: inline-flex;
  align-items: center;
  padding: 0.9rem 1.4rem;
  color: var(--color-text-muted);
  font-size: 0.95rem;
  font-style: italic;
}
.hero-trust {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}

/* ---------- Sections ---------- */
.features, .use-cases, .pricing { padding: 4.5rem 0; }
.features { background: var(--color-bg); }
.use-cases { background: var(--color-bg-alt); }
.pricing { background: var(--color-bg); }

.features h2, .use-cases h2, .pricing h2, .waitlist h2 {
  text-align: center;
}
.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin: -0.5rem 0 2rem;
}

/* ---------- Feature grid ---------- */
.feature-grid, .use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card, .use-case {
  padding: 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.feature-card:hover, .use-case:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.feature-card h3, .use-case h3 {
  margin-bottom: 0.5rem;
  color: var(--color-text);
}
.feature-card p, .use-case p {
  color: var(--color-text-muted);
  margin: 0;
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.price-card {
  position: relative;
  padding: 2rem 1.6rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.price-card--featured {
  border-color: var(--color-primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.price-card h3 { font-size: 1.1rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-muted); margin-bottom: 0.8rem; }
.price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--color-text); margin: 0.4rem 0 1.2rem; }
.price-card .price span { font-size: 0.95rem; color: var(--color-text-muted); font-weight: 500; }
.price-card ul { list-style: none; padding: 0; margin: 0; text-align: left; }
.price-card li {
  padding: 0.5rem 0;
  border-top: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-size: 0.95rem;
}
.price-card li:first-child { border-top: none; }
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-primary);
  color: #fff;
  padding: 0.2rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}

/* ---------- Waitlist ---------- */
.waitlist {
  padding: 5rem 0;
  background: linear-gradient(180deg, var(--color-bg-alt) 0%, #ffffff 100%);
}
.waitlist-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.waitlist > .container > h2,
.waitlist .waitlist-inner > p {
  text-align: center;
}
.waitlist-inner > p {
  color: var(--color-text-muted);
  margin-bottom: 2rem;
}
.waitlist-form {
  text-align: left;
  background: var(--color-bg);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}
.form-row { margin-bottom: 1.1rem; }
.form-row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.form-row label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-text);
}
.form-row input,
.form-row select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  font-family: inherit;
  font-size: 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}
.waitlist-form .btn {
  width: 100%;
  margin-top: 0.5rem;
}
.form-status {
  margin: 1rem 0 0;
  font-size: 0.95rem;
  text-align: center;
  min-height: 1.4em;
}
.form-status--success { color: var(--color-success); }
.form-status--error { color: var(--color-error); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--color-bg-dark);
  color: #c4cbda;
  padding: 2.5rem 0;
  font-size: 0.9rem;
}
.footer-inner { text-align: center; }
.site-footer p { margin: 0.5rem 0; }
.disclaimer {
  max-width: 760px;
  margin: 0.8rem auto 0;
  color: #8b95a8;
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .form-row--two { grid-template-columns: 1fr; }
  .site-nav { gap: 0.8rem; }
  .site-nav a:not(.btn) { display: none; }
  .price-card--featured { transform: none; }
}

/* ---------- Article pages (light theme — matches homepage) ---------- */
.article { padding: 3rem 0 5rem; background: var(--color-bg); }
.article-body { max-width: 760px; color: var(--color-text); }
.article-body h1 { font-size: 2.4rem; line-height: 1.15; margin: 0.5rem 0 1.2rem; color: var(--color-text); }
.article-body .lede {
  font-size: 1.2rem;
  color: #2a3142;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 400;
}
.article-body .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  color: var(--color-primary);
  font-weight: 600;
  margin: 0 0 0.6rem;
  display: inline-block;
  background: var(--color-primary-light);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.prose { color: var(--color-text); }
.prose h2 {
  margin-top: 2.8rem;
  margin-bottom: 0.9rem;
  font-size: 1.55rem;
  line-height: 1.25;
  color: var(--color-text);
  font-weight: 700;
}
.prose h3 { margin-top: 1.8rem; font-size: 1.18rem; color: var(--color-text); font-weight: 600; }
.prose p { line-height: 1.75; margin: 0 0 1.15rem; color: #1a2238; font-size: 1.02rem; }
.prose ul, .prose ol { line-height: 1.75; margin: 0 0 1.2rem 1.4rem; color: #1a2238; }
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--color-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.prose a:hover { color: var(--color-primary-dark); }
.prose strong { color: var(--color-text); font-weight: 700; }
.prose em { color: var(--color-text); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2rem;
  font-size: 0.95rem;
  background: var(--color-bg);
}
.prose th, .prose td {
  text-align: left;
  padding: 0.8rem 0.95rem;
  border-bottom: 1px solid #e2e6ee;
  color: var(--color-text);
}
.prose th { color: #fff; font-weight: 600; background: #0b1221; }
.prose tbody tr:nth-child(even) { background: var(--color-bg-alt); }
.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding: 0.4rem 0 0.4rem 1.1rem;
  margin: 1.4rem 0;
  color: #2a3142;
  font-style: italic;
}
.prose code {
  background: var(--color-bg-alt);
  padding: 0.1rem 0.4rem;
  border-radius: 4px;
  font-size: 0.92em;
  color: #0b1221;
}

details.faq {
  margin: 0.8rem 0;
  padding: 1rem 1.2rem;
  background: var(--color-bg-alt);
  border: 1px solid #e2e6ee;
  border-radius: 8px;
}
details.faq summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text);
}
details.faq[open] summary { margin-bottom: 0.5rem; }
.faq-answer { padding-top: 0.7rem; color: #1a2238; line-height: 1.7; }
.faq-answer a { color: var(--color-primary); text-decoration: underline; }

.cta-card {
  margin: 3rem 0 2rem;
  padding: 2rem;
  background: linear-gradient(135deg, var(--color-primary-light), #ffffff);
  border: 1px solid #d4dcec;
  border-radius: 12px;
}
.cta-card h3 { margin: 0 0 0.5rem; color: var(--color-text); font-size: 1.35rem; }
.cta-card p { margin: 0 0 1.1rem; color: #2a3142; line-height: 1.6; }

.related { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid #e2e6ee; }
.related h3 { color: var(--color-text); margin-bottom: 0.8rem; }
.related ul { list-style: none; padding: 0; }
.related li { padding: 0.6rem 0; border-bottom: 1px solid #eef1f6; }
.related a { color: var(--color-primary); text-decoration: none; font-weight: 500; }
.related a:hover { text-decoration: underline; }

/* Blog index */
.post-list { display: grid; gap: 1.4rem; margin-top: 2rem; }
.post-card {
  padding: 1.6rem 1.8rem;
  background: var(--color-bg);
  border: 1px solid #e2e6ee;
  border-radius: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.post-card:hover { border-color: var(--color-primary); box-shadow: 0 4px 16px rgba(11, 18, 33, 0.06); }
.post-card h2 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.post-card h2 a { color: var(--color-text); text-decoration: none; }
.post-card h2 a:hover { color: var(--color-primary); }
.post-card p { margin: 0 0 0.6rem; color: var(--color-text-muted); line-height: 1.6; }
.post-link { color: var(--color-primary); font-size: 0.92rem; font-weight: 500; }

.link-list { list-style: none; padding: 0; }
.link-list li { padding: 0.65rem 0; border-bottom: 1px solid #eef1f6; }
.link-list a { color: var(--color-text); text-decoration: none; font-weight: 500; }
.link-list a:hover { color: var(--color-primary); text-decoration: underline; }

.btn-sm { padding: 0.5rem 1rem; font-size: 0.88rem; }

/* Footer link grid */
.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
  text-align: left;
}
.footer-links h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin: 0 0 0.75rem;
}
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links li {
  margin-bottom: 0.4rem;
}
.footer-links a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 0.92rem;
}
.footer-links a:hover { color: #fff; text-decoration: underline; }
