/* LeadSmarts marketing styles — shared by index.html and the use-case pages.
   Tokens mirror the app's TailGrids theme (web/src/app.css): DM Sans,
   primary #3758f9, gray scale, 16px cards, soft-tinted pill badges. The site
   stays hand-built static HTML; only the visual language is shared. */

:root {
  --ink: #1f2937;          /* app --color-title-50 */
  --text: #374151;         /* app --color-text-50 */
  --muted: #6b7280;        /* app --color-text-100 */
  --line: #e5e7eb;         /* app border base */
  --line-soft: #f3f4f6;
  --bg: #f9fafb;           /* app background-soft-50 */
  --card: #ffffff;
  --accent: #3758f9;       /* app primary-500 */
  --accent-dark: #2237ee;  /* app primary-600 */
  --accent-soft: #eff3ff;  /* app primary-50 */
  --green: #15803d;        /* app badge-success-text */
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; }
body { font-family: var(--sans); color: var(--text); background: var(--bg); line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: 1060px; margin: 0 auto; padding: 0 1.25rem; }

nav { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 0; }
/* No flex gap here: "Lead" (text node) and the Smarts span are separate
   flex items, so gap would split the wordmark. Space via img margin only. */
.logo { display: flex; align-items: center; font-weight: 700; font-size: 1.25rem; color: var(--ink); }
.logo img { width: 26px; height: 26px; display: block; margin-right: .55rem; }
.logo span { color: var(--accent); }
nav .links { display: flex; align-items: center; }
nav .links a { color: var(--muted); margin-left: 1.5rem; font-size: .95rem; }
.btn {
  display: inline-block; background: var(--accent); color: #fff; font-weight: 600;
  padding: .65rem 1.25rem; border-radius: 8px; border: 0; font-size: 1rem;
}
.btn:hover { background: var(--accent-dark); }
.btn.ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn.ghost:hover { background: var(--line-soft); }

header.hero { padding: 4rem 0 3.75rem; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }
header.hero.narrow { grid-template-columns: 1fr; max-width: 46rem; }
h1 { font-size: clamp(2.05rem, 4.4vw, 3.15rem); line-height: 1.1; font-weight: 700; letter-spacing: -.6px; color: var(--ink); }
h1 em { font-style: normal; color: var(--accent); }
.hero p.sub { margin: 1.25rem 0 1.5rem; font-size: 1.13rem; color: var(--muted); max-width: 36rem; }
.hero .tagline { font-weight: 600; color: var(--ink); margin-bottom: 1.5rem; }
.hero .actions { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; }
.hero .fine { margin-top: .8rem; font-size: .85rem; color: var(--muted); }

/* Badges — app Badge component: rounded-full, soft tint + strong text */
.badge {
  display: inline-flex; align-items: center; font-weight: 600; font-size: .8rem;
  border-radius: 999px; padding: .18rem .7rem; white-space: nowrap;
}
.badge-hot { background: #fef2f2; color: #b91c1c; }
.badge-warm { background: #fffbeb; color: #b45309; }
.badge-cold { background: #eff6ff; color: #1d4ed8; }
.badge-gray { background: #f3f4f6; color: #374151; }
.badge-success { background: #f0fdf4; color: var(--green); }
.badge-primary { background: var(--accent-soft); color: var(--accent); }

/* Mock scored-lead card — styled like the app's result view */
.leadcard {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 12px 32px -16px rgba(16, 24, 40, .14); padding: 1.4rem; font-size: .92rem;
}
.leadcard .head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; margin-bottom: .9rem; }
.leadcard .who strong { color: var(--ink); font-size: 1.05rem; font-weight: 700; }
.leadcard .who div { color: var(--muted); font-size: .85rem; }
.leadcard .row {
  display: flex; justify-content: space-between; align-items: baseline; gap: .75rem;
  padding: .55rem 0; border-top: 1px solid var(--line-soft); font-size: .86rem;
}
.leadcard .row .pts { white-space: nowrap; font-weight: 600; color: var(--muted); }
.leadcard .row .pts.plus { color: var(--green); }
.leadcard .row .src { color: var(--accent); white-space: nowrap; font-size: .8rem; }
.leadcard .totals { display: flex; gap: .75rem; margin-top: 1rem; }
.leadcard .totals div { flex: 1; text-align: center; background: var(--bg); border: 1px solid var(--line-soft); border-radius: 10px; padding: .55rem .25rem; }
.leadcard .totals b { color: var(--ink); font-size: 1.25rem; display: block; }
.leadcard .totals span { font-size: .72rem; color: var(--muted); }

section { padding: 3.5rem 0; }
section.alt { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); letter-spacing: -.4px; margin-bottom: .6rem; color: var(--ink); }
.lede { color: var(--muted); max-width: 44rem; margin-bottom: 2.1rem; font-size: 1.05rem; }

/* Use-case cards */
.usecases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.usecase {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 16px; padding: 1.5rem; color: var(--text);
}
section.alt .usecase { background: var(--bg); }
.usecase:hover { border-color: var(--accent); }
.usecase h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: .45rem; }
.usecase p { color: var(--muted); font-size: .95rem; margin-bottom: 1rem; }
.usecase .go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: .93rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.4rem; }
section.alt .step { background: var(--bg); }
.step .n { color: var(--accent); font-weight: 700; font-size: .8rem; margin-bottom: .5rem; }
.step h3 { color: var(--ink); font-size: 1.1rem; margin-bottom: .45rem; }
.step p { color: var(--muted); font-size: .95rem; }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.feat h3 { color: var(--ink); font-size: 1.05rem; margin-bottom: .4rem; }
.feat p { color: var(--muted); font-size: .93rem; }

/* Numbered workflow list (use-case pages) */
ol.workflow { counter-reset: wf; list-style: none; padding: 0; max-width: 44rem; }
ol.workflow li {
  counter-increment: wf; position: relative; padding: .7rem 0 .7rem 2.6rem;
  border-top: 1px solid var(--line-soft); color: var(--text);
}
ol.workflow li:first-child { border-top: 0; }
ol.workflow li::before {
  content: counter(wf); position: absolute; left: 0; top: .62rem;
  width: 1.7rem; height: 1.7rem; border-radius: 999px; background: var(--accent-soft);
  color: var(--accent); font-weight: 700; font-size: .8rem;
  display: flex; align-items: center; justify-content: center;
}

/* Evidence panel — light card, app-like (replaces the old dark terminal) */
.evidence {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 1.25rem 1.4rem; font-size: .88rem;
}
section.alt .evidence { background: var(--bg); }
.evidence .ev-head { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); padding: .4rem 0; }
.evidence .ev-row { display: flex; gap: .75rem; padding: .38rem 0; border-top: 1px solid var(--line-soft); }
.evidence .ev-row span:first-child { color: var(--muted); min-width: 6.5rem; }
.evidence .ev-row .g { color: var(--green); font-weight: 600; }

/* Example CRM note card */
.crmnote {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--accent);
  border-radius: 12px; padding: 1.2rem 1.4rem; font-size: .92rem; max-width: 34rem;
}
section.alt .crmnote { background: var(--bg); }
.crmnote .nt { font-weight: 700; color: var(--ink); margin-bottom: .5rem; }
.crmnote p { margin: .25rem 0; color: var(--text); }
.crmnote p b { color: var(--ink); }
.crmnote .meta { color: var(--muted); font-size: .85rem; margin-top: .5rem; }

/* Supported-CRM logo strip */
.crmlogos { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.25rem; }
.crmlogos span { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-size: .9rem; font-weight: 500; }
.crmlogos img { width: 22px; height: 22px; display: block; }

/* Two-column split (CRM section, copilot, worked examples) */
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; }
.cols ul { padding-left: 1.2rem; color: var(--text); }
.cols ul li { margin: .45rem 0; }

/* Audience split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; max-width: 52rem; }
.split div { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem 1.4rem; }
section.alt .split div { background: var(--bg); }
.split h3 { color: var(--ink); font-size: 1rem; margin-bottom: .35rem; }
.split p { color: var(--muted); font-size: .95rem; }

table.pricing { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.pricing th, .pricing td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
.pricing th { font-size: .85rem; color: var(--muted); font-weight: 500; }
.pricing td.price { font-weight: 700; color: var(--ink); }
.pricing tr.hl { background: var(--accent-soft); }
.pricing .note { color: var(--muted); font-size: .85rem; }

details { border-bottom: 1px solid var(--line); padding: .9rem 0; max-width: 44rem; }
summary { font-weight: 600; cursor: pointer; color: var(--ink); }
details p { color: var(--muted); margin-top: .5rem; }

/* Multi-column footer */
footer.site { border-top: 1px solid var(--line); background: var(--card); padding: 3rem 0 3.5rem; margin-top: 1rem; }
.footgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
.footbrand p { color: var(--muted); font-size: .93rem; max-width: 20rem; margin-top: .8rem; }
.footbrand .copyright { font-size: .85rem; margin-top: 1.4rem; }
.footgrid h4 { color: var(--ink); font-size: .95rem; margin-bottom: .9rem; }
.footgrid .col a { display: block; color: var(--muted); font-size: .93rem; margin-bottom: .65rem; }
.footgrid .col a:hover { color: var(--accent); }

/* Contact form — inputs styled like the app's TailGrids fields */
.form-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; }
.form-card label { display: block; font-weight: 600; color: var(--ink); font-size: .9rem; margin: 1.1rem 0 .4rem; }
.form-card label:first-of-type { margin-top: 0; }
.form-card label .opt { color: var(--muted); font-weight: 400; }
.form-card input, .form-card select, .form-card textarea {
  width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: .6rem .75rem;
  font: inherit; color: var(--ink); background: #fff;
}
.form-card input:focus, .form-card select:focus, .form-card textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(55, 88, 249, .2);
}
.form-card textarea { min-height: 8rem; resize: vertical; }
.form-card .btn { margin-top: 1.4rem; width: 100%; }
.form-success {
  background: #f0fdf4; border: 1px solid #bbf7d0; color: var(--green);
  border-radius: 12px; padding: 1rem 1.2rem; font-weight: 600; margin-bottom: 1.25rem;
}

@media (max-width: 840px) {
  header.hero { grid-template-columns: 1fr; padding-top: 2.5rem; }
  .steps, .grid, .usecases, .split { grid-template-columns: 1fr; }
  .cols { grid-template-columns: 1fr; }
  .footgrid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footbrand { grid-column: 1 / -1; }
  nav .links a:not(.btn) { display: none; }
}
