/* FirstFiling shared stylesheet: marketing pages, legal pages and the base for the dashboard.
   Design tokens live on :root so the dashboard sheet can build on them. */

:root {
  --ink: #14171a;
  --muted: #5b6470;
  --faint: #8a94a0;
  --line: #e4e7eb;
  --line-strong: #cfd5dc;
  --accent: #1a5fb4;
  --accent-hover: #144a8d;
  --accent-soft: #e8f0fb;
  --accent-ink: #0d3d7a;
  --panel: #f6f8fa;
  --good: #1a7a3c;
  --good-bg: #e6f4ea;
  --warn: #8a5a00;
  --warn-bg: #fff4d6;
  --bad: #b3261e;
  --bad-bg: #fdecea;
  --grey-bg: #eef1f4;
  --radius: 8px;
  --shadow: 0 1px 2px rgba(20, 23, 26, 0.05), 0 4px 16px rgba(20, 23, 26, 0.06);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}

a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 12px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
ul, ol { margin: 0 0 12px; padding-left: 22px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--panel); padding: 1px 5px; border-radius: 4px; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
button { cursor: pointer; }
button[disabled] { cursor: not-allowed; opacity: 0.55; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- Site header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 17px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.logo-mark {
  width: 26px; height: 26px;
  border-radius: 7px;
  background: var(--accent);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}
.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.site-nav a:hover { color: var(--ink); }
.site-nav a.nav-cta {
  color: #fff;
  background: var(--accent);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
}
.site-nav a.nav-cta:hover { background: var(--accent-hover); }
.nav-toggle {
  display: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 14px;
}

/* ---------------------------------------------------------------- Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 6px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { background: var(--panel); border-color: var(--line-strong); color: var(--ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); padding-left: 8px; padding-right: 8px; }
.btn.ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }
.btn.danger { background: #fff; color: var(--bad); border-color: #f0c2bf; }
.btn.danger:hover { background: var(--bad-bg); }
.btn.small { padding: 6px 11px; font-size: 13px; }
.btn.large { padding: 13px 24px; font-size: 16px; }
.btn.block { width: 100%; }

/* ---------------------------------------------------------------- Score pills and badges (shared with the dashboard) */
.score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 999px;
  line-height: 1.3;
  white-space: nowrap;
  background: var(--grey-bg);
  color: var(--muted);
}
.score .num { font-variant-numeric: tabular-nums; }
.score.strong { background: var(--good-bg); color: var(--good); }
.score.good { background: var(--warn-bg); color: var(--warn); }
.score.possible { background: var(--grey-bg); color: var(--muted); }
.badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  line-height: 1.4;
  white-space: nowrap;
  background: var(--accent-soft);
  color: var(--accent-ink);
}
.badge.serial { background: #ede7fb; color: #4b2e9e; }
.badge.agent { background: var(--warn-bg); color: var(--warn); }
.badge.pro { background: var(--ink); color: #fff; }
.chip {
  display: inline-block;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------------------------------------------------------------- Lead card (landing mock + digest look) */
.lead-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.lead-card .lead-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.lead-card .lead-name { font-weight: 700; font-size: 16px; margin: 0; }
.lead-card .lead-industry { color: var(--ink); font-size: 14px; margin-top: 4px; }
.lead-card .lead-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.lead-card .lead-contact { font-size: 13.5px; margin-top: 8px; }
.lead-card ul.reasons { margin: 10px 0 0; padding-left: 18px; font-size: 13.5px; }
.lead-card ul.reasons li { margin-bottom: 3px; }
.lead-card .lead-badges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }

/* ---------------------------------------------------------------- Marketing sections */
.hero { padding: 72px 0 48px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 { font-size: 40px; margin-bottom: 16px; }
.hero .lede { font-size: 18px; color: var(--muted); margin-bottom: 26px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.hero-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.mock-frame {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.mock-frame .mock-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
}

section.band { padding: 56px 0; border-top: 1px solid var(--line); }
section.band.soft { background: var(--panel); }
section.band h2 { font-size: 26px; margin-bottom: 8px; }
section.band .sub { color: var(--muted); font-size: 16px; margin-bottom: 28px; max-width: 640px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; background: #fff; }
.step .step-num {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-ink);
  font-weight: 700; font-size: 14px; margin-bottom: 12px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.tile { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; background: #fff; }
.tile h3 { font-size: 15px; margin-bottom: 4px; }
.tile p { font-size: 13.5px; color: var(--muted); margin: 0; }

table.simple { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
table.simple th, table.simple td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
table.simple th { background: var(--panel); font-weight: 600; }

.pricing { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.plan { border: 1px solid var(--line); border-radius: 10px; padding: 24px; background: #fff; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.plan .plan-name { font-size: 14px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.plan .plan-price { font-size: 36px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -0.02em; }
.plan .plan-price small { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .plan-for { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 20px; font-size: 14px; }
.plan ul li { padding: 6px 0 6px 24px; position: relative; border-top: 1px solid var(--line); }
.plan ul li::before { content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.plan ul li.off { color: var(--faint); }
.plan ul li.off::before { background: var(--line-strong); }
.plan .btn { margin-top: auto; }
.trial-note { margin-top: 18px; font-size: 14px; color: var(--muted); }

.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { font-weight: 600; cursor: pointer; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 10px 0 0; color: var(--muted); font-size: 14.5px; max-width: 720px; }

/* ---------------------------------------------------------------- Forms */
.form-card { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 28px; box-shadow: var(--shadow); }
.form-section { padding-top: 22px; margin-top: 22px; border-top: 1px solid var(--line); }
.form-section:first-child { padding-top: 0; margin-top: 0; border-top: 0; }
.form-section h3 { font-size: 16px; margin-bottom: 4px; }
.form-section .section-hint { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field.full { grid-column: 1 / -1; }
.field > label, .field > legend, .field .field-label { font-size: 13.5px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field .hint.error { color: var(--bad); }
.field input[type="text"], .field input[type="email"], .field input[type="date"], .field input[type="number"], .field select, .field textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  font-size: 14.5px;
  line-height: 1.4;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent); outline: 2px solid var(--accent-soft); outline-offset: 0; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
.field textarea { resize: vertical; min-height: 84px; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 4px; }
.checks { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.checks label { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 400; cursor: pointer; }
.checks input { width: 16px; height: 16px; margin: 0; accent-color: var(--accent); }
.checks.columns { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 12px; max-height: 220px; overflow: auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--panel); }
.toggle { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; }
.toggle input { margin-top: 3px; accent-color: var(--accent); width: 16px; height: 16px; }
.toggle .hint { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type="range"] { flex: 1; accent-color: var(--accent); }
.range-row output { font-variant-numeric: tabular-nums; font-weight: 700; min-width: 32px; text-align: right; }
.form-actions { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 22px; }

/* ---------------------------------------------------------------- Notices */
.notice {
  border-radius: var(--radius);
  padding: 12px 16px;
  font-size: 14px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}
.notice.ok { background: var(--good-bg); border-color: #b9dcc4; color: var(--good); }
.notice.err { background: var(--bad-bg); border-color: #f3b8b4; color: var(--bad); }
.notice.warn { background: var(--warn-bg); border-color: #f1d98a; color: var(--warn); }
.notice a { color: inherit; font-weight: 600; word-break: break-all; }
.dev-link { margin-top: 10px; padding: 10px 12px; border: 1px dashed var(--warn); background: #fffaf0; border-radius: 6px; font-size: 13px; color: var(--warn); }
.dev-link a { color: var(--accent-ink); word-break: break-all; }

/* ---------------------------------------------------------------- Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 13.5px; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); text-decoration: none; margin-right: 18px; }
.site-footer a:hover { color: var(--ink); }

/* ---------------------------------------------------------------- Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 48px 20px 64px; }
.legal h1 { font-size: 30px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 28px; }
.legal h2 { font-size: 19px; margin-top: 30px; }
.legal p, .legal li { font-size: 15px; color: #2b3138; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { font-size: 32px; }
  .steps, .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding: 40px 0 32px; }
  .hero h1 { font-size: 28px; }
  section.band { padding: 40px 0; }
  .steps, .grid-3, .grid-2, .pricing, .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .nav-toggle { display: inline-block; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 60px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 14px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 0; }
  .site-nav a.nav-cta { text-align: center; margin-top: 6px; }
  table.simple.responsive thead { display: none; }
  table.simple.responsive tr { display: block; border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; }
  table.simple.responsive td { display: block; border: 0; border-top: 1px solid var(--line); }
  table.simple.responsive td:first-child { border-top: 0; font-weight: 600; background: var(--panel); }
  table.simple.responsive td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); font-weight: 500; }
}
