/* ===========================================================
   LeadReacher — marketing site
   Linear-inspired dark theme, matched to the desktop app.
   =========================================================== */

:root {
  --bg: #08090a;
  --bg-2: #0c0d0f;
  --surface: #101113;
  --surface-2: #16181c;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #f7f8f8;
  --text-muted: #8a8f98;
  --text-dim: #62666d;
  --accent: #5e6ad2;
  --accent-hover: #6b77e0;
  --accent-soft: rgba(94, 106, 210, 0.14);
  --radius: 12px;
  --radius-sm: 8px;
  --maxw: 1120px;
  --ease: 160ms cubic-bezier(0.4, 0, 0.2, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--ease), border-color var(--ease), transform var(--ease), color var(--ease);
  white-space: nowrap;
  font-family: inherit;
}
.btn-sm { padding: 7px 14px; font-size: 14px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { background: transparent; border-color: var(--border-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--text-dim); }
.btn-block { width: 100%; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--accent); color: #fff;
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { color: var(--text-muted); font-size: 15px; font-weight: 500; transition: color var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a.btn-primary { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 92px 0 40px;
  text-align: center;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(94, 106, 210, 0.16), transparent 70%),
    var(--bg);
  overflow: hidden;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 500; color: var(--text-muted);
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 28px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 0 3px rgba(62,207,142,.18); }

.hero-title {
  font-size: clamp(40px, 6.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 22px;
}
.grad {
  background: linear-gradient(120deg, #8b93ea, #5e6ad2 55%, #9b6ad2);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub {
  max-width: 620px; margin: 0 auto 32px;
  font-size: clamp(16px, 2vw, 19px); color: var(--text-muted);
}

.waitlist-form {
  display: flex; gap: 10px; justify-content: center;
  max-width: 480px; margin: 0 auto; flex-wrap: wrap;
}
.waitlist-form input[type="email"] {
  flex: 1 1 240px;
  background: var(--surface); border: 1px solid var(--border-strong);
  color: var(--text); font-size: 15px; font-family: inherit;
  padding: 11px 16px; border-radius: var(--radius-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}
.waitlist-form input[type="email"]::placeholder { color: var(--text-dim); }
.waitlist-form input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.waitlist-form.is-done { justify-content: center; }
.form-success {
  display: inline-flex; align-items: center; gap: 10px;
  color: #3ecf8e; font-weight: 600; font-size: 16px;
  background: rgba(62, 207, 142, 0.08);
  border: 1px solid rgba(62, 207, 142, 0.25);
  padding: 12px 22px; border-radius: var(--radius-sm);
}
.hero-note { font-size: 13px; color: var(--text-dim); margin-top: 14px; }

.trust-strip {
  display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: center;
  margin: 40px auto 0; font-size: 14px; color: var(--text-muted);
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip .i { width: 16px; height: 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Screenshot frames ---------- */
.hero-shot { margin-top: 56px; }
.hero-shot img, .feature-shot img {
  display: block; width: 100%; height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}
.hero-shot img {
  box-shadow: 0 40px 120px -30px rgba(94, 106, 210, 0.4), 0 24px 60px -20px rgba(0,0,0,0.6);
  max-width: 1000px; margin: 0 auto;
}
/* placeholder styling when an image hasn't been added yet */
img.shot-missing {
  aspect-ratio: 16 / 10;
  display: grid; place-items: center;
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.015) 0 12px, transparent 12px 24px),
    var(--surface);
}

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.02em; margin-bottom: 12px; }
.section-title { font-size: clamp(26px, 4vw, 40px); letter-spacing: -0.03em; line-height: 1.1; font-weight: 700; }
.section-head { margin-bottom: 56px; }
.lead { color: var(--text-muted); font-size: 18px; margin-top: 16px; }
.center-lead { max-width: 560px; margin-left: auto; margin-right: auto; }
.muted-note { color: var(--text-dim); font-size: 14px; margin-top: 18px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.step-num {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 9px; background: var(--accent-soft); color: #aeb5f0;
  font-weight: 700; margin-bottom: 18px;
}
.step h3 { font-size: 19px; letter-spacing: -0.01em; margin-bottom: 8px; }
.step p { color: var(--text-muted); font-size: 15px; }

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
}
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-shot { order: 1; }
.feature-copy .section-title { margin-bottom: 6px; }
.feature-copy .lead { margin-bottom: 24px; }

.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li {
  position: relative; padding-left: 30px; color: var(--text-muted); font-size: 15.5px;
}
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238b93ea' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
}
.check-list li strong { color: var(--text); font-weight: 600; }

/* ---------- Feature grid (cards) ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px;
  transition: transform var(--ease), border-color var(--ease), background var(--ease);
}
.card:hover { transform: translateY(-3px); border-color: var(--border-strong); background: var(--surface-2); }
.card-ic {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 10px; background: var(--accent-soft); margin-bottom: 16px;
}
.card-ic svg { width: 20px; height: 20px; fill: none; stroke: #aeb5f0; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { font-size: 18px; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--text-muted); font-size: 15px; }

/* ---------- Roadmap / future ---------- */
.roadmap {
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(94, 106, 210, 0.10), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
}
.roadmap-grid { margin-bottom: 8px; }
.card.soon { position: relative; }
.card.soon .card-ic { background: rgba(94, 106, 210, 0.10); }
.card.soon em { color: var(--text); font-style: normal; font-weight: 600; }
.soon-tag {
  position: absolute; top: 18px; right: 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase;
  color: #aeb5f0; background: var(--accent-soft);
  border: 1px solid rgba(94, 106, 210, 0.3);
  padding: 3px 9px; border-radius: 999px;
}
.roadmap-foot {
  text-align: center; max-width: 640px; margin: 36px auto 0;
  color: var(--text-muted); font-size: 15px;
}
.roadmap-foot em { color: var(--text); font-style: normal; font-weight: 600; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 380px)); gap: 24px; justify-content: center; }
.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.price-card.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 30px 80px -40px var(--accent); }
.price-tag {
  position: absolute; top: -12px; right: 24px;
  background: var(--accent); color: #fff; font-size: 12px; font-weight: 600;
  padding: 4px 12px; border-radius: 999px;
}
.price-name { font-size: 16px; color: var(--text-muted); font-weight: 600; margin-bottom: 10px; }
.price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 24px; }
.price-amt { font-size: 40px; font-weight: 700; letter-spacing: -0.03em; }
.price-per { color: var(--text-dim); font-size: 14px; }
.price-card .check-list { margin-bottom: 28px; }

/* ---------- CTA ---------- */
.cta {
  background:
    radial-gradient(70% 100% at 50% 100%, rgba(94, 106, 210, 0.16), transparent 70%),
    var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.cta .lead { margin-bottom: 28px; }

/* ---------- Footer ---------- */
.footer { padding: 48px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--text-muted); font-size: 14px; transition: color var(--ease); }
.footer-links a:hover { color: var(--text); }
.footer-copy { color: var(--text-dim); font-size: 13px; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-links a:not(.btn) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .grid { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .feature-copy { order: 1; }
  .feature-row.reverse .feature-shot { order: 2; }
  .price-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}
