/* LeadsHeaven — global stylesheet */
@font-face {
  font-family: 'Manrope';
  src: url('/assets/fonts/Manrope-var.woff2') format('woff2-variations');
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --navy: #0A2540;
  --navy-2: #0A1A2F;
  --blue: #2563EB;
  --sky: #38BDF8;
  --sky-l: #7DD3FC;
  --ink: #0A2540;
  --muted: #47586E;
  --line: #E2E8F0;
  --bg: #FFFFFF;
  --bg-soft: #F6F9FC;
  --grad: linear-gradient(135deg, var(--blue), var(--sky));
  --radius: 14px;
  --shadow: 0 1px 2px rgba(10,37,64,.06), 0 8px 24px rgba(10,37,64,.07);
  --maxw: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  font-family: 'Manrope', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
h3 { font-size: 1.25rem; }
p  { max-width: 68ch; }
.lead { font-size: 1.16rem; color: var(--muted); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav .logo img { height: 34px; width: auto; }
.nav-links { display: flex; gap: 24px; align-items: center; margin-left: auto; list-style: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--blue); text-decoration: none; }
.nav-links a[aria-current="page"] { color: var(--blue); }
.has-sub { position: relative; }
.has-sub > a::after { content: ""; display: inline-block; margin-left: 6px; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.sub {
  position: absolute; top: calc(100% + 10px); left: -14px; min-width: 230px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
  padding: 8px; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: translateY(0); }
.sub a { display: block; padding: 9px 12px; border-radius: 8px; }
.sub a:hover { background: var(--bg-soft); }
.cta-nav {
  background: var(--grad); color: #fff !important; font-weight: 700;
  padding: 10px 20px; border-radius: 999px; white-space: nowrap;
  box-shadow: 0 4px 14px rgba(37,99,235,.3);
  transition: transform .15s ease, box-shadow .15s ease;
}
.cta-nav:hover { transform: translateY(-1px); box-shadow: 0 6px 18px rgba(37,99,235,.4); text-decoration: none; }
.cta-nav:active { transform: translateY(0) scale(.98); }

.nav-toggle { display: none; }
.nav-burger { display: none; margin-left: auto; cursor: pointer; padding: 8px; }
.nav-burger span { display: block; width: 24px; height: 2.5px; background: var(--navy); margin: 5px 0; border-radius: 2px; transition: transform .2s, opacity .2s; }

@media (max-width: 940px) {
  .nav-burger { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px 24px; gap: 14px;
  }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .sub { position: static; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; padding: 4px 0 0 14px; }
  .has-sub > a::after { display: none; }
}

/* ---------- hero ---------- */
.hero { padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero .eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--blue); background: #EFF6FF; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.hero p.lead { margin: 18px 0 30px; }
.hero-img { border-radius: 20px; box-shadow: var(--shadow); }
.hero-img img { border-radius: 20px; width: 100%; object-fit: cover; }
.cta-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.btn-primary {
  display: inline-block; background: var(--grad); color: #fff; font-weight: 700;
  padding: 15px 30px; border-radius: 999px; font-size: 1.02rem; border: none; cursor: pointer;
  box-shadow: 0 6px 20px rgba(37,99,235,.32);
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(37,99,235,.42); text-decoration: none; }
.btn-primary:active { transform: translateY(0) scale(.98); }
.btn-ghost {
  display: inline-block; color: var(--navy); font-weight: 700; padding: 14px 8px;
  border-bottom: 2px solid var(--sky); border-radius: 0;
  transition: border-color .15s ease, color .15s ease;
}
.btn-ghost:hover { color: var(--blue); border-color: var(--blue); text-decoration: none; }
.hero-points { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; list-style: none; }
.hero-points li { font-size: .92rem; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-points li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); flex: none; }

@media (max-width: 880px) {
  .hero { padding: 44px 0 40px; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
}

/* ---------- sections ---------- */
section { padding: 76px 0; }
section.soft { background: var(--bg-soft); }
section.dark { background: var(--navy-2); color: #E6EEF7; }
section.dark h2, section.dark h3 { color: #fff; }
section.dark p { color: #B9C9DC; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.sec-head p { color: var(--muted); margin-top: 12px; font-size: 1.06rem; }
section.dark .sec-head p { color: #B9C9DC; }

/* split rows */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev > .split-img { order: 2; }
.split-img img { border-radius: 18px; box-shadow: var(--shadow); }
.split h2 { margin-bottom: 14px; }
.split ul { margin: 18px 0 24px 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.split ul li { padding-left: 30px; position: relative; }
.split ul li::before {
  content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #EFF6FF, #E0F2FE);
  border: 2px solid var(--sky);
}
.split ul li::after {
  content: ""; position: absolute; left: 5px; top: 10px; width: 8px; height: 5px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg);
}
@media (max-width: 880px) {
  .split { grid-template-columns: 1fr; gap: 30px; }
  .split.rev > .split-img { order: 0; }
}

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative;
}
section.dark .step { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-size: .95rem; font-weight: 800; color: var(--sky);
  display: block; margin-bottom: 14px; letter-spacing: .06em;
}
.step h3 { margin-bottom: 10px; }
.step p { font-size: .97rem; color: var(--muted); }
section.dark .step p { color: #B9C9DC; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }

/* model cards */
.models { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.model {
  border-radius: 18px; padding: 38px 34px; border: 1px solid var(--line); background: #fff;
  display: flex; flex-direction: column; color: var(--ink);
}
section.dark .model p { color: var(--muted); }
.model.featured { border: 2px solid transparent; background: linear-gradient(#fff,#fff) padding-box, var(--grad) border-box; }
.model .tag { align-self: flex-start; font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: #EFF6FF; padding: 5px 12px; border-radius: 999px; margin-bottom: 16px; }
.model h3 { font-size: 1.5rem; margin-bottom: 8px; }
.model .sub { position: static; opacity: 1; visibility: visible; transform: none; border: none; box-shadow: none; padding: 0; color: var(--muted); margin-bottom: 20px; }
.model ul { list-style: none; display: grid; gap: 10px; margin: 0 0 26px; }
.model ul li { padding-left: 28px; position: relative; font-size: .98rem; }
.model ul li::before { content: "✓"; position: absolute; left: 2px; color: var(--blue); font-weight: 800; }
.model .model-cta { margin-top: auto; }
@media (max-width: 880px) { .models { grid-template-columns: 1fr; } }

/* metric strip */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: left; }
.metric b { display: block; font-size: 2rem; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -0.02em; }
.metric span { color: var(--muted); font-size: .93rem; }
section.dark .metric span { color: #B9C9DC; }
@media (max-width: 880px) { .metrics { grid-template-columns: 1fr 1fr; } }

/* FAQ */
.faq-list { display: grid; gap: 12px; max-width: 800px; }
.faq-list details { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 0; }
.faq-list summary {
  cursor: pointer; font-weight: 700; padding: 18px 22px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; font-size: 1.4rem; color: var(--blue); font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "–"; }
.faq-list details p { padding: 0 22px 20px; color: var(--muted); }

/* calculator */
.calc {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px;
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 38px; box-shadow: var(--shadow);
}
.calc h3 { margin-bottom: 6px; }
.calc .field { margin: 18px 0; }
.calc label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 8px; }
.calc output { float: right; font-weight: 800; color: var(--blue); }
.calc input[type="range"] { width: 100%; accent-color: var(--blue); }
.calc select, .calc input[type="number"] {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; color: var(--ink); background: #fff;
}
.calc-results { display: grid; gap: 18px; align-content: start; }
.calc-card { border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.calc-card.featured { background: var(--navy-2); border-color: var(--navy-2); color: #E6EEF7; }
.calc-card.featured h4, .calc-card.featured b { color: #fff; }
.calc-card h4 { font-size: 1.05rem; margin-bottom: 12px; }
.calc-card .rows { display: grid; gap: 8px; font-size: .96rem; }
.calc-card .rows div { display: flex; justify-content: space-between; gap: 12px; }
.calc-card .rows b { font-weight: 800; }
.calc-card .roi { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(125,150,180,.25); display: flex; justify-content: space-between; font-weight: 800; }
.calc-card .roi b { color: var(--sky); font-size: 1.15rem; }
.calc-note { font-size: .85rem; color: var(--muted); margin-top: 14px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.seg button { border: none; background: #fff; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--navy); color: #fff; }
@media (max-width: 880px) { .calc { grid-template-columns: 1fr; padding: 26px; } }

/* blog */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.post-card {
  border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff;
  transition: transform .18s ease, box-shadow .18s ease; display: flex; flex-direction: column;
}
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.post-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card .pc-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 1.08rem; }
.post-card h3 a { color: var(--ink); }
.post-card p { font-size: .93rem; color: var(--muted); }
.post-card time { font-size: .82rem; color: #8CA0B8; margin-top: auto; }
@media (max-width: 880px) { .post-grid { grid-template-columns: 1fr; } }

/* article */
.article { padding: 56px 0 30px; }
.article .wrap { max-width: 780px; }
.article header h1 { margin: 12px 0 14px; }
.article .meta { color: #8CA0B8; font-size: .9rem; margin-bottom: 28px; }
.article img.cover { border-radius: 16px; margin: 8px 0 34px; box-shadow: var(--shadow); }
.article h2 { margin: 42px 0 14px; font-size: 1.55rem; }
.article h3 { margin: 30px 0 10px; }
.article p { margin: 0 0 18px; }
.article ul, .article ol { margin: 0 0 20px 24px; }
.article li { margin-bottom: 8px; }
.article blockquote { border-left: 3px solid var(--sky); padding: 6px 0 6px 20px; color: var(--muted); margin: 0 0 20px; font-weight: 600; }
.article .box { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin: 0 0 22px; }
.article .box p:last-child { margin: 0; }
.crumbs { font-size: .85rem; color: #8CA0B8; }
.crumbs a { color: #8CA0B8; }

/* forms */
.form { display: grid; gap: 16px; max-width: 560px; }
.form label { font-weight: 700; font-size: .92rem; display: grid; gap: 7px; }
.form input, .form textarea, .form select {
  padding: 13px 15px; border: 1px solid var(--line); border-radius: 10px; font: inherit; width: 100%;
  background: #fff; color: var(--ink);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--sky); outline-offset: 1px; border-color: var(--sky); }

/* CTA band */
.cta-band { background: var(--navy-2); border-radius: 24px; padding: 58px 48px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #B9C9DC; margin-top: 10px; }
.cta-band .cta-row { justify-content: flex-end; }
@media (max-width: 880px) { .cta-band { grid-template-columns: 1fr; padding: 38px 28px; } .cta-band .cta-row { justify-content: flex-start; } }

/* footer */
.site-footer { background: var(--navy-2); color: #B9C9DC; padding: 64px 0 36px; margin-top: 40px; }
.site-footer a { color: #DCE8F5; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 40px; }
.footer-grid h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-grid ul { list-style: none; display: grid; gap: 9px; font-size: .93rem; }
.footer-brand img { height: 32px; margin-bottom: 16px; }
.footer-brand p { font-size: .93rem; max-width: 34ch; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* landing pages */
.lp .site-header .nav-links { display: none; }
.lp .site-header .nav-burger { display: none; }
.lp .site-header .cta-nav-solo { margin-left: auto; }
.lp-hero { padding: 70px 0; }

/* reveal on mount */
@keyframes rise { from { transform: translateY(14px); } to { transform: translateY(0); } }
.hero-grid > * { animation: rise .6s ease both; }
.hero-grid > *:nth-child(2) { animation-delay: .12s; }

/* utility */
.mt-2 { margin-top: 20px; }
.center { text-align: center; }
.small { font-size: .88rem; color: var(--muted); }

/* ---------- accessibility ---------- */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--navy); color: #fff;
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 0; }
:where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ---------- tick list (used by /start/ landing pages) ---------- */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { padding-left: 30px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: linear-gradient(135deg, #EFF6FF, #E0F2FE);
  border: 2px solid var(--sky);
}
.check-list li::after {
  content: ""; position: absolute; left: 5px; top: 10px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue);
  transform: rotate(-45deg);
}

/* ---------- comparison tables ---------- */
/* Wrapper scrolls on narrow screens so the page body never scrolls sideways. */
.cmp-wrap { overflow-x: auto; margin: 28px 0; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%; min-width: 520px; border-collapse: collapse;
  font-size: .95rem; border: 1px solid var(--line); border-radius: 12px;
}
.cmp caption {
  caption-side: top; text-align: left; font-weight: 700;
  color: var(--muted); font-size: .9rem; padding-bottom: 10px;
}
.cmp th, .cmp td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--line); vertical-align: top;
}
.cmp thead th { background: var(--bg-soft); font-weight: 800; color: var(--ink); }
.cmp tbody th { font-weight: 700; width: 26%; color: var(--ink); }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp tbody tr:hover { background: #FAFCFE; }

/* ---------- booking card (contact page) ---------- */
.booking-card {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}
.booking-card h2 { font-size: 1.45rem; }
.booking-card p { margin-top: 10px; color: var(--muted); }
.booking-card .check-list { margin-top: 18px; }
.booking-card .cta-row { margin-top: 22px; }
/* The widget loads on click; show the wait on the button that was pressed. */
[data-calendly][aria-busy="true"] { opacity: .7; cursor: progress; }
