/*
 * Noble Skiptrace — customer-face styling.
 * Warm-professional, trust-first. NOT the tactical noble-glitch cyberpunk palette.
 * Tokens borrowed from OTP customer-face + FASP: cream/dusty-blue/sage/warm-off-black.
 */
:root {
  --cream: #faf6ef;
  --cream-2: #f3ede0;
  --ink: #2a2622;
  --ink-2: #4a423b;
  --muted: #8a8079;
  --hair: #e5dcc9;
  --blue: #3B6E8F;
  --blue-2: #2f5872;
  --sage: #6B9F72;
  --sage-2: #558658;
  --amber: #C89B3C;
  --danger: #B84A3B;
  --radius: 12px;
  --shadow-soft: 0 1px 2px rgba(42,38,34,.04), 0 4px 12px rgba(42,38,34,.05);
  --shadow-lift: 0 2px 6px rgba(42,38,34,.06), 0 12px 32px rgba(42,38,34,.08);
  --font-display: 'Fraunces', 'Source Serif Pro', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-2); text-decoration: underline; }

/* ── nav ─────────────────────────────────────────────────────────── */
.nav {
  padding: 18px 24px;
  border-bottom: 1px solid var(--hair);
  background: rgba(250,246,239,.92);
  backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
}
.nav .brand {
  font-family: var(--font-display); font-weight: 600; font-size: 20px;
  color: var(--ink); letter-spacing: -.01em;
}
.nav .brand .dot { color: var(--sage); }
.nav .links { display: flex; gap: 22px; align-items: center; }
.nav .links a { color: var(--ink-2); font-weight: 500; font-size: 14px; }
.nav .cta {
  background: var(--sage); color: white; padding: 8px 16px;
  border-radius: 8px; font-weight: 600; font-size: 14px;
}
.nav .cta:hover { background: var(--sage-2); color: white; text-decoration: none; }

/* ── layout ──────────────────────────────────────────────────────── */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; color: var(--ink); letter-spacing: -.015em; }
h1 { font-size: clamp(38px, 5vw, 60px); line-height: 1.08; margin: 0 0 20px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.15; margin: 0 0 16px; }
h3 { font-size: 22px; line-height: 1.25; margin: 0 0 8px; }
.eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .18em;
  font-size: 12px; color: var(--blue); font-weight: 600; margin-bottom: 12px;
}
.subline { font-size: 20px; color: var(--ink-2); max-width: 720px; line-height: 1.55; }

/* ── hero ────────────────────────────────────────────────────────── */
.hero {
  padding: 96px 0 72px;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
}
.hero .cta-row { margin-top: 32px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; padding: 14px 28px; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; font-family: var(--font-body);
  border: 1px solid transparent; cursor: pointer; transition: all .15s ease;
  text-decoration: none;
}
.btn-primary { background: var(--sage); color: white; }
.btn-primary:hover { background: var(--sage-2); color: white; text-decoration: none; box-shadow: var(--shadow-lift); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--hair); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.btn-blue { background: var(--blue); color: white; }
.btn-blue:hover { background: var(--blue-2); color: white; text-decoration: none; }

/* ── trust bar ───────────────────────────────────────────────────── */
.trust-bar {
  background: white;
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  padding: 22px 0;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-2);
  letter-spacing: .06em;
}
.trust-bar .items { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px; }
.trust-bar .item::before { content: "✓ "; color: var(--sage); font-weight: 700; }

/* ── how it works ────────────────────────────────────────────────── */
.hiw { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 32px; margin-top: 40px; }
.hiw .step {
  background: white; padding: 32px; border-radius: var(--radius);
  border: 1px solid var(--hair); box-shadow: var(--shadow-soft);
}
.hiw .step .num {
  font-family: var(--font-display); font-size: 40px; color: var(--blue); font-weight: 600;
  line-height: 1; margin-bottom: 16px;
}

/* ── pricing ─────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; margin-top: 40px; }
.tier-card {
  background: white; border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 32px 28px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-soft);
}
.tier-card.featured { border: 2px solid var(--sage); position: relative; }
.tier-card.featured::before {
  content: "MOST POPULAR"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--sage); color: white; padding: 4px 12px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; font-weight: 600;
}
.tier-card .tier-name { font-family: var(--font-display); font-size: 26px; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.tier-card .tier-price { font-family: var(--font-display); font-size: 40px; color: var(--blue); font-weight: 600; margin: 8px 0 4px; line-height: 1; }
.tier-card .tier-price .unit { font-size: 16px; color: var(--muted); }
.tier-card .tier-desc { color: var(--ink-2); margin-bottom: 20px; }
.tier-card ul { list-style: none; padding: 0; margin: 0 0 24px; }
.tier-card li { padding: 8px 0 8px 24px; position: relative; font-size: 15px; color: var(--ink-2); border-bottom: 1px dashed var(--hair); }
.tier-card li:last-child { border-bottom: none; }
.tier-card li::before { content: "→"; position: absolute; left: 0; color: var(--sage); font-weight: 700; }
.tier-card .btn { margin-top: auto; text-align: center; }

/* ── sample report ───────────────────────────────────────────────── */
.sample { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; margin-top: 32px; }
.sample .thumb {
  background: white; padding: 20px; border: 1px solid var(--hair); border-radius: var(--radius);
  box-shadow: var(--shadow-lift); text-align: center;
}
.sample .thumb .page {
  width: 100%; aspect-ratio: 8.5 / 11; background: linear-gradient(180deg, #fdfaf3 0%, #f5efdf 100%);
  border: 1px solid var(--hair); border-radius: 4px; position: relative; overflow: hidden;
  display: flex; flex-direction: column; padding: 20px;
}
.sample .thumb .page::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 12px, rgba(0,0,0,.03) 12px 13px);
}
.sample .thumb .page .title { font-family: var(--font-display); font-size: 12px; color: var(--ink); margin-bottom: 4px; }
.sample .thumb .page .sub { font-family: var(--font-mono); font-size: 8px; color: var(--muted); margin-bottom: 8px; }
.sample .thumb .page .fake-line { height: 5px; background: rgba(42,38,34,.08); border-radius: 2px; margin-bottom: 5px; }
.sample .thumb .caption { font-family: var(--font-mono); font-size: 11px; color: var(--muted); margin-top: 10px; letter-spacing: .08em; text-transform: uppercase; }

@media (max-width: 720px) { .sample { grid-template-columns: 1fr; } }

/* ── sources strip ───────────────────────────────────────────────── */
.sources { background: white; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.sources .grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px; margin-top: 24px;
}
.sources .chip {
  padding: 10px 14px; border: 1px solid var(--hair); border-radius: 8px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-2); text-align: center;
  background: var(--cream);
}

/* ── who uses ────────────────────────────────────────────────────── */
.audience { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 32px; }
.audience .who {
  padding: 20px; background: white; border-radius: var(--radius); border: 1px solid var(--hair);
  box-shadow: var(--shadow-soft);
}
.audience .who .role { font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-bottom: 4px; font-weight: 600; }
.audience .who .use { font-size: 14px; color: var(--ink-2); }

/* ── FCRA block ──────────────────────────────────────────────────── */
.fcra {
  background: #fff8e6; border: 1px solid var(--amber); border-radius: var(--radius);
  padding: 24px 28px; margin: 40px 0;
}
.fcra .head { font-family: var(--font-display); font-size: 22px; color: var(--amber); font-weight: 600; margin-bottom: 8px; }
.fcra p { color: var(--ink); margin: 0; }
.fcra p + p { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq details {
  background: white; border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 12px; box-shadow: var(--shadow-soft);
}
.faq summary {
  font-family: var(--font-display); font-size: 18px; color: var(--ink); cursor: pointer;
  font-weight: 600; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; font-size: 24px; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details[open] { border-color: var(--blue); }
.faq details > *:not(summary) { margin-top: 12px; color: var(--ink-2); }

/* ── footer ──────────────────────────────────────────────────────── */
footer.foot {
  background: var(--ink); color: var(--cream); padding: 48px 0;
}
footer.foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
@media (max-width: 700px) { footer.foot .wrap { grid-template-columns: 1fr; } }
footer.foot a { color: var(--cream); opacity: .8; }
footer.foot a:hover { color: white; opacity: 1; }
footer.foot h4 { font-family: var(--font-display); font-size: 15px; color: white; margin: 0 0 12px; }
footer.foot .legal { font-size: 13px; opacity: .7; line-height: 1.5; }

/* ── APP page ────────────────────────────────────────────────────── */
.app-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; padding: 40px 0; }
@media (max-width: 900px) { .app-wrap { grid-template-columns: 1fr; } }
.panel {
  background: white; border: 1px solid var(--hair); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-soft);
}
.panel h3 { margin: 0 0 16px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px;
  font-family: var(--font-body); font-size: 15px; color: var(--ink); background: white;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: 2px solid var(--blue); outline-offset: -2px; border-color: var(--blue); }
.field textarea { min-height: 60px; resize: vertical; }
.field-hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
.attest-row { margin-top: 12px; padding: 14px; background: var(--cream); border-radius: 8px; }
.attest-row label { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 14px; color: var(--ink); }
.attest-row input[type=checkbox] { margin-top: 3px; }
.tier-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.tier-pick label {
  padding: 12px; border: 1px solid var(--hair); border-radius: 8px; cursor: pointer;
  text-align: center; background: white;
}
.tier-pick input { display: none; }
.tier-pick label:has(input:checked) { border-color: var(--sage); background: #f0f6f1; }
.tier-pick .name { font-weight: 600; font-size: 14px; }
.tier-pick .price { font-size: 12px; color: var(--blue); margin-top: 2px; }
#paypal-buttons { margin-top: 16px; min-height: 45px; }
.progress {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); background: var(--cream);
  padding: 16px; border-radius: 8px; max-height: 240px; overflow: auto;
  border: 1px solid var(--hair); white-space: pre-wrap; line-height: 1.6;
}
.result-summary { margin-top: 16px; }
.result-summary .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--hair); font-size: 15px; }
.result-summary .row:last-child { border-bottom: none; }
.result-summary .row .k { color: var(--muted); }
.result-summary .row .v { color: var(--ink); font-weight: 600; }
.pdf-cta { margin-top: 20px; }
.err { background: #fce6e2; border: 1px solid var(--danger); border-radius: 8px; padding: 12px 16px; color: var(--danger); font-size: 14px; margin-top: 12px; }
.ok  { background: #eaf5eb; border: 1px solid var(--sage); border-radius: 8px; padding: 12px 16px; color: var(--sage-2); font-size: 14px; margin-top: 12px; }

/* ── waitlist form ───────────────────────────────────────────────── */
.waitlist-box {
  background: white; border: 2px solid var(--blue); border-radius: var(--radius);
  padding: 32px; text-align: center; margin: 32px auto; max-width: 560px;
  box-shadow: var(--shadow-lift);
}
.waitlist-box h3 { color: var(--blue); }
.waitlist-box form { display: flex; gap: 8px; margin-top: 16px; }
.waitlist-box input {
  flex: 1; padding: 12px 16px; border: 1px solid var(--hair); border-radius: 8px;
  font-family: var(--font-body); font-size: 16px;
}
.waitlist-box input:focus { outline: 2px solid var(--blue); outline-offset: -2px; }
