/* PermitLead Feed — styles.css
   Plain CSS, no build step. Mobile-first, responsive. */

:root {
  --navy: #0e1b2e;
  --navy-2: #16263d;
  --ink: #14202f;
  --muted: #5b6b7f;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --brand: #1f6feb;
  --brand-dark: #1553b8;
  --amber: #f59e0b;
  --good: #128a5b;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(14, 27, 46, 0.08);
  --shadow-sm: 0 2px 8px rgba(14, 27, 46, 0.06);
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .86em;
  background: #eef2f7;
  padding: .1em .4em;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.wrap.narrow { max-width: 760px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em;
  padding: 13px 22px;
  border-radius: 10px;
  font-weight: 650;
  font-size: 1rem;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .06s ease, background .15s ease, box-shadow .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(31,111,235,.28); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-alt); }
.btn-block { display: flex; width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-weight: 750; }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 9px;
  background: var(--navy); color: #fff;
}
.brand-name { font-size: 1.02rem; letter-spacing: -0.01em; }
.nav-links { display: flex; align-items: center; gap: 22px; }
.nav-links a { color: var(--muted); font-weight: 550; font-size: .94rem; }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta {
  color: #fff !important; background: var(--navy);
  padding: 9px 16px; border-radius: 9px; font-weight: 650 !important;
}
.nav-cta:hover { background: var(--navy-2); }

/* ---------- Hero ---------- */
.hero {
  background:
    radial-gradient(1100px 420px at 78% -10%, rgba(31,111,235,.10), transparent 62%),
    linear-gradient(180deg, #f7fafe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 44px;
  align-items: center;
  padding-top: 56px; padding-bottom: 56px;
}
.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--brand); background: rgba(31,111,235,.09);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.hero h1 { font-size: clamp(1.75rem, 4.4vw, 2.85rem); margin-bottom: .45em; }
.hero .hl { color: var(--brand); }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 0; }
.hero-badges li { font-size: .9rem; color: var(--muted); }

.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.card-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 16px; background: var(--navy); color: #cdd8e6;
  font-size: .8rem;
}
.card-head .dot { width: 10px; height: 10px; border-radius: 50%; background: #3d5a80; }
.card-head .card-title { margin-left: 8px; font-family: ui-monospace, monospace; color: #9fb3cc; }
.mini-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.mini-table th, .mini-table td { text-align: left; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.mini-table th { color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; }
.mini-table tr:last-child td { border-bottom: 0; }
.mini-note { margin: 0; padding: 12px 16px; font-size: .82rem; color: var(--muted); background: var(--bg-alt); border-top: 1px solid var(--line); }

/* ---------- Offer strip ---------- */
.offer { padding: 26px 0; }
.offer-box {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow);
}
.offer-price { display: flex; align-items: baseline; gap: 4px; }
.price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; }
.price-per { color: #a9bbd2; font-weight: 600; }
.offer-text { flex: 1 1 320px; }
.offer-text h2 { font-size: 1.15rem; margin: 0 0 4px; }
.offer-text p { margin: 0; color: #b9c8dc; font-size: .92rem; }
.offer-box .btn-primary { background: #fff; color: var(--navy); box-shadow: none; }
.offer-box .btn-primary:hover { background: #eaf1fb; }

/* ---------- Sections ---------- */
.section { padding: 62px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-kicker {
  font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--brand); margin: 0 0 8px;
}
.section-title { font-size: clamp(1.45rem, 3.4vw, 2.05rem); }
.section-sub { color: var(--muted); font-size: 1.05rem; max-width: 46em; margin-bottom: 30px; }

/* ---------- Stats ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px;
}
.stat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column; gap: 6px;
}
.stat-num { font-size: 1.85rem; font-weight: 800; letter-spacing: -0.02em; color: var(--navy); }
.stat-label { font-size: .9rem; color: var(--ink); }
.stat-src { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: auto; }
.provenance {
  font-size: .86rem; color: var(--muted);
  border-left: 3px solid var(--amber); padding: 4px 0 4px 14px; margin-top: 18px;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
  counter-reset: step;
}
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow-sm);
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: rgba(31,111,235,.1); color: var(--brand);
  font-weight: 800; margin-bottom: 12px;
}
.step h3 { font-size: 1.05rem; margin-bottom: .3em; }
.step p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Data table + sample ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; min-width: 720px; background: #fff; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th {
  background: var(--navy); color: #dbe6f4; font-size: .76rem; text-transform: uppercase;
  letter-spacing: .05em; font-weight: 650; position: sticky; top: 0;
}
.data-table tbody tr:nth-child(even) { background: #fafbfd; }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* ---------- Email capture ---------- */
.capture {
  margin-top: 34px;
  background: linear-gradient(180deg, #f7fafe, #ffffff);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm);
}
.capture-copy h3 { font-size: 1.3rem; margin-bottom: .25em; }
.capture-copy p { color: var(--muted); margin-bottom: 18px; }
.capture-form { display: flex; gap: 10px; flex-wrap: wrap; }
.capture-form input, .capture-form select {
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  font-size: 1rem; font-family: inherit; background: #fff; color: var(--ink);
}
.capture-form input { flex: 1 1 240px; }
.capture-form select { flex: 0 0 auto; }
.capture-form input:focus, .capture-form select:focus { outline: 2px solid rgba(31,111,235,.35); border-color: var(--brand); }
.capture-foot { font-size: .8rem; color: var(--muted); margin: 14px 0 0; }
.form-msg { margin: 12px 0 0; font-weight: 600; min-height: 1.2em; }
.form-msg.ok { color: var(--good); }
.form-msg.err { color: #c0392b; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 22px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--brand); box-shadow: var(--shadow); position: relative; }
.plan-tag {
  position: absolute; top: -13px; left: 28px;
  background: var(--amber); color: #4a2c00; font-weight: 700; font-size: .74rem;
  text-transform: uppercase; letter-spacing: .05em; padding: 5px 12px; border-radius: 999px;
}
.plan-name { font-size: 1.15rem; margin-bottom: .2em; }
.plan-price { font-size: 1rem; color: var(--muted); margin-bottom: 18px; }
.plan-price span { font-size: 2.6rem; font-weight: 800; color: var(--ink); letter-spacing: -0.02em; }
.plan-list { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-direction: column; gap: 10px; }
.plan-list li { position: relative; padding-left: 26px; font-size: .95rem; }
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--good); font-weight: 800;
}
.plan-featured .btn { margin-top: auto; }
.plan-side { background: var(--bg-alt); }
.plan-side .btn { margin-top: auto; }
.plan-note { font-size: .82rem; color: var(--muted); margin: 12px 0 0; text-align: center; }

/* ---------- FAQ ---------- */
.faq {
  border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px;
  background: #fff; box-shadow: var(--shadow-sm); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 16px 20px; font-weight: 650; font-size: 1rem;
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 700; font-size: 1.2rem; }
.faq[open] summary::after { content: "–"; }
.faq p { padding: 0 20px 16px; margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Roadmap ---------- */
.roadmap { padding: 34px 0; background: #fff; }
.roadmap-line {
  font-size: .95rem; color: var(--muted);
  background: #fff8ec; border: 1px solid #f6dcae; border-left: 4px solid var(--amber);
  border-radius: 12px; padding: 18px 20px; margin: 0;
}
.roadmap-line strong { color: var(--ink); }

/* ---------- Footer ---------- */
.foot { background: var(--navy); color: #c3d0e0; padding: 40px 0 26px; }
.foot-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.foot .brand-name { color: #fff; font-weight: 750; }
.foot-note { font-size: .88rem; color: #8fa3bd; margin: 6px 0 0; }
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; }
.foot-links a { color: #c3d0e0; font-size: .92rem; }
.foot-links a:hover { color: #fff; }
.foot-fine { font-size: .78rem; color: #7c90ab; border-top: 1px solid rgba(255,255,255,.1); margin-top: 26px; padding-top: 18px; }

/* ================= RESPONSIVE ================= */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; padding-bottom: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-cta) { display: none; }
}

@media (max-width: 620px) {
  .section { padding: 44px 0; }
  .stats { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 1.72rem; }
  .offer-box { padding: 20px; }
  .offer-box .btn { width: 100%; }
  .capture { padding: 20px; }
  .capture-form input, .capture-form select, .capture-form .btn { flex: 1 1 100%; width: 100%; }
  .plan { padding: 22px; }

  /* Turn wide tables into stacked cards on phones */
  .table-scroll { overflow: visible; border: 0; box-shadow: none; }
  .data-table { min-width: 0; display: block; }
  .data-table thead { display: none; }
  .data-table tbody, .data-table tr, .data-table td { display: block; width: 100%; }
  .data-table tr {
    border: 1px solid var(--line); border-radius: 12px; margin-bottom: 14px;
    padding: 6px 4px; box-shadow: var(--shadow-sm); background: #fff !important;
  }
  .data-table td { border-bottom: 0; padding: 8px 16px; }
  .data-table td::before {
    content: attr(data-label); display: block;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .05em;
    color: var(--muted); font-weight: 700; margin-bottom: 2px;
  }
}
