/* ── Marketing Site — MortgageCRM Pro ──────────────────────────────────────── */

:root {
  --brand:       #5B8DB8;
  --brand-dark:  #3D6E96;
  --brand-light: #eef4fa;
  --accent:      #6aaed6;
  --text-dark:   #2D3748;
  --text-muted:  #718096;
  --surface:     #f5f7fa;
  --border:      #dce4ed;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(30,47,64,.07);
  --shadow-lg:   0 12px 48px rgba(30,47,64,.12);
}

/* ── Reset / Base ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body.mkt-body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: #fff;
  line-height: 1.6;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.mkt-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: .875rem 0;
}
.mkt-nav .container { display: flex; align-items: center; gap: 2rem; }
.mkt-brand {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.mkt-brand-icon { font-size: 1.4rem; }
.mkt-nav-links { display: flex; gap: 1.75rem; margin-left: auto; align-items: center; list-style: none; }
.mkt-nav-links a { color: var(--text-muted); text-decoration: none; font-weight: 500; font-size: .95rem; transition: color .2s; }
.mkt-nav-links a:hover { color: var(--brand); }
.btn-mkt-nav  { background: #5B8DB8; color: #fff !important; padding: .45rem 1.25rem; border-radius: 8px; font-weight: 600 !important; transition: background .2s, transform .15s !important; }
.btn-mkt-nav:hover { background: #3D6E96 !important; transform: translateY(-1px); color: #fff !important; }
.btn-mkt-nav-outline { border: 2px solid #5B8DB8; color: #5B8DB8 !important; padding: .4rem 1.2rem; border-radius: 8px; font-weight: 600 !important; transition: all .2s !important; }
.btn-mkt-nav-outline:hover { background: rgba(91,141,184,.1) !important; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn-primary-lg {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: #5B8DB8;
  color: #fff;
  padding: .9rem 2.2rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 16px rgba(91,141,184,.28);
}
.btn-primary-lg:hover { background: #3D6E96; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(91,141,184,.36); color: #fff; }

.btn-outline-lg {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: transparent;
  color: #5B8DB8;
  padding: .85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid #5B8DB8;
  cursor: pointer;
  transition: all .2s;
}
.btn-outline-lg:hover { background: rgba(91,141,184,.1); transform: translateY(-1px); color: #3D6E96; }

/* ── Hero ────────────────────────────────────────────────────────────────── */
.mkt-hero {
  background: linear-gradient(135deg, #eef4fb 0%, #e6f0f9 55%, #dce9f7 100%);
  color: var(--text-dark);
  padding: 7rem 0 5rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.mkt-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(91,141,184,.10) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(91,141,184,.07)  0%, transparent 40%);
}
.mkt-hero .container { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(91,141,184,.12);
  border: 1px solid rgba(91,141,184,.28);
  color: #3D6E96;
  padding: .35rem .9rem;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -.02em;
}
.hero-title span { color: #3D6E96; }
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 580px;
  margin-bottom: 2.5rem;
  line-height: 1.7;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-trust { margin-top: 3.5rem; padding-top: 2rem; border-top: 1px solid var(--border); }
.hero-trust-label { color: var(--text-muted); font-size: .85rem; margin-bottom: 1rem; }
.hero-trust-logos { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; }
.trust-logo {
  background: rgba(91,141,184,.08);
  border: 1px solid rgba(91,141,184,.18);
  border-radius: 8px;
  padding: .5rem 1.2rem;
  font-size: .82rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: .04em;
}
.hero-dashboard-preview {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.preview-topbar {
  display: flex; align-items: center; gap: .6rem; margin-bottom: 1rem; padding-bottom: .75rem;
  border-bottom: 1px solid var(--border);
}
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-kpi-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.preview-kpi {
  background: var(--surface);
  border-radius: 10px;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
}
.preview-kpi-label { font-size: .72rem; color: var(--text-muted); margin-bottom: .25rem; }
.preview-kpi-value { font-size: 1.3rem; font-weight: 800; color: var(--text-dark); }
.preview-kpi-change { font-size: .7rem; color: #3a8c5c; }

/* ── Sections ────────────────────────────────────────────────────────────── */
.mkt-section { padding: 6rem 0; }
.mkt-section-alt { background: var(--surface); }
.section-eyebrow {
  color: #5B8DB8;
  font-weight: 700;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: 1rem;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── Stats row ───────────────────────────────────────────────────────────── */
.stat-item { text-align: center; }
.stat-value { font-size: 2.8rem; font-weight: 900; color: #5B8DB8; line-height: 1; }
.stat-label { color: var(--text-muted); font-size: .9rem; margin-top: .4rem; }

/* ── Feature cards ───────────────────────────────────────────────────────── */
.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: box-shadow .25s, transform .2s;
  height: 100%;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}
.feature-title { font-size: 1.1rem; font-weight: 700; margin-bottom: .6rem; }
.feature-desc  { color: var(--text-muted); font-size: .92rem; line-height: 1.65; }

/* ── How it works ────────────────────────────────────────────────────────── */
.step-card {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.step-num {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h5 { font-weight: 700; margin-bottom: .4rem; }
.step-content p  { color: var(--text-muted); font-size: .93rem; }

/* ── Testimonial ─────────────────────────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  height: 100%;
}
.testimonial-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 1rem; }
.testimonial-text  { color: var(--text-dark); font-size: .97rem; line-height: 1.7; margin-bottom: 1.5rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
}
.author-name  { font-weight: 700; font-size: .9rem; }
.author-title { color: var(--text-muted); font-size: .82rem; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.pricing-toggle { display: flex; align-items: center; gap: 1rem; justify-content: center; margin-bottom: 3rem; }
.toggle-label { font-weight: 600; color: var(--text-muted); font-size: .95rem; }
.toggle-label.active { color: var(--text-dark); }
.toggle-switch {
  position: relative;
  width: 52px;
  height: 28px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #e2e8f0;
  border-radius: 999px;
  cursor: pointer;
  transition: background .3s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 20px; height: 20px;
  left: 4px; top: 4px;
  background: #fff;
  border-radius: 50%;
  transition: transform .3s;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--brand); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(24px); }
.save-badge {
  background: #dcfce7;
  color: #16a34a;
  font-size: .75rem;
  font-weight: 700;
  padding: .2rem .6rem;
  border-radius: 999px;
}

.pricing-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 2.25rem;
  height: 100%;
  position: relative;
  transition: box-shadow .25s, transform .2s;
}
.pricing-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.pricing-card.popular {
  border-color: var(--brand);
  box-shadow: 0 8px 32px rgba(37,99,235,.18);
}
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  padding: .3rem 1.1rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.plan-name  { font-size: 1rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .75rem; }
.plan-price { display: flex; align-items: flex-end; gap: .3rem; margin-bottom: .4rem; }
.plan-price .amount { font-size: 3rem; font-weight: 900; line-height: 1; color: var(--text-dark); }
.plan-price .currency { font-size: 1.2rem; font-weight: 700; color: var(--text-muted); margin-bottom: .4rem; }
.plan-price .period  { font-size: .85rem; color: var(--text-muted); margin-bottom: .3rem; }
.plan-desc  { color: var(--text-muted); font-size: .9rem; margin-bottom: 1.75rem; min-height: 2.8rem; }
.plan-features { list-style: none; margin-bottom: 2rem; display: flex; flex-direction: column; gap: .7rem; }
.plan-features li { display: flex; align-items: flex-start; gap: .6rem; font-size: .9rem; }
.plan-features li .check { color: #16a34a; font-weight: 700; flex-shrink: 0; margin-top: .1rem; }
.plan-features li .cross { color: #94a3b8; flex-shrink: 0; }
.btn-plan {
  display: block;
  width: 100%;
  text-align: center;
  padding: .85rem;
  border-radius: 10px;
  font-weight: 700;
  font-size: .97rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
}
.btn-plan-primary { background: var(--brand); color: #fff; }
.btn-plan-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(37,99,235,.35); color: #fff; }
.btn-plan-outline  { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn-plan-outline:hover  { background: var(--brand-light); }
.btn-plan-ghost    { background: var(--surface); color: var(--text-muted); }
.btn-plan-ghost:hover    { background: var(--border); }

.plan-savings { text-align: center; color: #16a34a; font-size: .82rem; font-weight: 600; margin-top: .6rem; min-height: 1.2rem; }

/* ── Comparison table ────────────────────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; }
.compare-table th { background: var(--surface); padding: 1rem 1.25rem; text-align: center; font-size: .88rem; font-weight: 700; border-bottom: 2px solid var(--border); }
.compare-table th:first-child { text-align: left; }
.compare-table td { padding: .85rem 1.25rem; border-bottom: 1px solid var(--border); font-size: .9rem; text-align: center; }
.compare-table td:first-child { text-align: left; font-weight: 500; color: var(--text-dark); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .cat-row td { background: var(--surface); font-weight: 700; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); padding: .6rem 1.25rem; }
.check-yes { color: #16a34a; font-size: 1.1rem; }
.check-no  { color: #cbd5e1; font-size: 1.1rem; }
.th-popular { color: var(--brand); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  color: var(--text-dark);
  text-align: left;
  gap: 1rem;
}
.faq-q .icon { transition: transform .3s; flex-shrink: 0; color: var(--brand); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: .95rem;
  line-height: 1.7;
}
.faq-item.open .faq-a { display: block; }

/* ── CTA Banner ──────────────────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #dce9f7 0%, #e6f0fb 100%);
  color: var(--text-dark);
  border-radius: 20px;
  padding: 4rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid #c8ddf0;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 70% 50%, rgba(91,141,184,.12) 0%, transparent 60%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-title   { font-size: 2.2rem; font-weight: 900; margin-bottom: 1rem; color: var(--text-dark); }
.cta-subtitle{ color: var(--text-muted); max-width: 500px; margin: 0 auto 2rem; line-height: 1.7; }
.cta-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-cta-white { background: var(--brand); color: #fff; padding: .9rem 2rem; border-radius: 10px; font-weight: 700; text-decoration: none; transition: all .2s; }
.btn-cta-white:hover { background: var(--brand-dark); box-shadow: 0 6px 20px rgba(91,141,184,.35); transform: translateY(-2px); color: #fff; }
.btn-cta-ghost { background: rgba(255,255,255,.7); color: var(--brand); padding: .9rem 2rem; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1px solid var(--border); transition: all .2s; }
.btn-cta-ghost:hover { background: #fff; color: var(--brand-dark); }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.mkt-footer {
  background: #1e2d3d;
  color: #9fb8cc;
  padding: 4rem 0 2rem;
}
.footer-brand { color: #e8f1f8; font-size: 1.1rem; font-weight: 800; margin-bottom: .75rem; }
.footer-tagline { font-size: .88rem; max-width: 220px; line-height: 1.6; }
.footer-col h6 { color: #e8f1f8; font-weight: 700; margin-bottom: 1rem; font-size: .9rem; letter-spacing: .04em; text-transform: uppercase; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-links a { color: #9fb8cc; text-decoration: none; font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: #e8f1f8; }
.footer-divider { border-color: #2a3f52; margin: 2.5rem 0 1.5rem; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }

/* ── Checkout pages ──────────────────────────────────────────────────────── */
.checkout-wrap {
  min-height: 100vh;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem;
}
.checkout-card {
  background: #fff;
  border-radius: 20px;
  padding: 3rem;
  max-width: 480px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  text-align: center;
}
.checkout-icon { font-size: 4rem; margin-bottom: 1.5rem; }
.checkout-title { font-size: 1.75rem; font-weight: 800; margin-bottom: .75rem; }
.checkout-desc  { color: var(--text-muted); line-height: 1.7; margin-bottom: 2rem; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.text-brand { color: var(--brand); }
.bg-brand   { background: var(--brand); }

/* ── Footer ─────────────────────────────────────────────────────── */
.lp-footer {
    background: #1e2d3d;
    color: rgba(255,255,255,.55);
    padding: 3.5rem 1.5rem 2rem;
    font-size: .875rem;
}
.lp-footer .footer-brand {
    font-size: 1.2rem;
    font-weight: 700;
    color: #e8f1f8;
    text-decoration: none;
    display: inline-block;
    margin-bottom: .6rem;
}
.lp-footer .footer-brand span { color: #b8cfe0; }
.lp-footer h6 { color: rgba(255,255,255,.75); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .9rem; }
.lp-footer ul { list-style: none; padding: 0; margin: 0; }
.lp-footer ul li { margin-bottom: .45rem; }
.lp-footer ul li a { color: rgba(255,255,255,.5); text-decoration: none; transition: color .2s; }
.lp-footer ul li a:hover { color: #e8f1f8; }
.lp-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,.08);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .75rem;
    font-size: .8rem;
}
.lp-footer .footer-bottom a { color: rgba(255,255,255,.45); text-decoration: none; }
.lp-footer .footer-bottom a:hover { color: #e8f1f8; }

@media (max-width: 767px) {
  .mkt-nav-links .hide-mobile { display: none; }
  .hero-title { font-size: 2.1rem; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .cta-title  { font-size: 1.6rem; }
  .pricing-card { margin-bottom: 1.5rem; }
}
