/* =========================================================
   UltimateCRM marketing site
   Clean & professional theme for financial advisors / RIAs
   ========================================================= */

:root {
  /* Palette */
  --navy-900: #0c1f38;
  --navy-800: #102a48;
  --navy-700: #13315c;
  --navy-600: #1c4170;
  --blue-600: #1f6fe0;
  --blue-500: #3b86f0;
  --blue-050: #eef4fd;
  --ink-900: #0f1b2d;
  --ink-700: #36465c;
  --ink-500: #5f6f84;
  --line: #e4e9f0;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-softer: #fbfcfe;
  --gold: #c79a3a;
  --green: #1c8a5b;
  --white: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(15, 27, 45, .06), 0 2px 8px rgba(15, 27, 45, .05);
  --shadow-md: 0 10px 30px rgba(15, 27, 45, .10);
  --shadow-lg: 0 24px 60px rgba(15, 27, 45, .16);
  --maxw: 1140px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-700);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  color: var(--ink-900);
  line-height: 1.18;
  margin: 0 0 .5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.25rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 750; }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 1rem; }

a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

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

.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 700;
  color: var(--blue-600);
  margin: 0 0 .8rem;
}

.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--navy {
  background: linear-gradient(160deg, var(--navy-800), var(--navy-900));
  color: #cdd9ea;
}
.section--navy h2, .section--navy h3 { color: #fff; }

.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head p { font-size: 1.08rem; color: var(--ink-500); }

.lead { font-size: 1.18rem; color: var(--ink-500); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 650;
  font-size: .98rem;
  padding: .8rem 1.4rem;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .15s ease, background .15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--blue-600); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #1a63c9; box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; color: var(--navy-700); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-light { background: #fff; color: var(--navy-800); }
.btn-light:hover { background: #eef2f8; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 1rem 1.7rem; font-size: 1.04rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(150deg, var(--blue-500), var(--navy-700));
  color: #fff;
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
  box-shadow: var(--shadow-sm);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; color: var(--ink-900); font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-sub { font-size: .68rem; color: var(--ink-500); letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-700);
  font-weight: 550;
  font-size: .96rem;
  padding: .5rem .85rem;
  border-radius: 8px;
}
.nav-links a:hover { background: var(--bg-soft); text-decoration: none; color: var(--ink-900); }
.nav-links a.active { color: var(--blue-600); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--ink-900);
  margin: 4px 0; border-radius: 2px; transition: .2s;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(59,134,240,.16), transparent 60%),
    linear-gradient(180deg, var(--bg-softer), #fff);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
  padding: 92px 0 84px;
}
.hero h1 { margin-bottom: .35em; }
.hero .lead { margin-bottom: 1.6rem; max-width: 33ch; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 1.4rem; }
.hero-note { font-size: .9rem; color: var(--ink-500); }
.hero-note strong { color: var(--ink-700); }

.badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 1.4rem; }
.badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--blue-050); color: var(--navy-700);
  font-size: .82rem; font-weight: 600;
  padding: .35rem .7rem; border-radius: 100px;
}

/* ---------- App mock / placeholder visuals ---------- */
.mock {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.mock-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 14px;
  background: #f2f5fa;
  border-bottom: 1px solid var(--line);
}
.mock-dot { width: 11px; height: 11px; border-radius: 50%; background: #cfd8e6; }
.mock-dot:nth-child(1){ background:#f0a8a0;} .mock-dot:nth-child(2){ background:#f3cf86;} .mock-dot:nth-child(3){ background:#a6d6a6;}
.mock-url {
  margin-left: 10px; font-size: .76rem; color: var(--ink-500);
  background: #fff; border: 1px solid var(--line);
  padding: .2rem .6rem; border-radius: 6px;
}
.mock-body { padding: 18px; }
.mock-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 42px rgba(14, 41, 88, 0.08);
  cursor: pointer;
}

/* generic "screenshot goes here" placeholder */
.shot {
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: .5rem;
  min-height: 240px;
  background:
    repeating-linear-gradient(45deg, #f4f7fb, #f4f7fb 14px, #eef3f9 14px, #eef3f9 28px);
  border: 1.5px dashed #c4d2e4;
  border-radius: var(--radius-sm);
  color: var(--ink-500);
  text-align: center;
  padding: 24px;
}
.shot .shot-icon {
  width: 42px; height: 42px; border-radius: 10px;
  background: var(--blue-050); color: var(--blue-600);
  display: grid; place-items: center; font-size: 1.3rem;
}
.shot .shot-label { font-weight: 700; color: var(--navy-700); }
.shot .shot-hint { font-size: .82rem; }
.shot--tall { min-height: 360px; }
.shot--wide { min-height: 300px; }

.image-popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 16, 38, 0.78);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .22s ease, visibility .22s ease;
}
.image-popup-overlay:not(.hidden) {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.image-popup-content {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: calc(100vh - 80px);
  width: 100%;
  border-radius: 24px;
  overflow: hidden;
  background: #031023;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.35);
}
.image-popup-backdrop {
  position: absolute;
  inset: 0;
}
.image-popup-content img {
  width: 100%;
  height: auto;
  max-height: calc(100vh - 140px);
  display: block;
  object-fit: contain;
  background: #0a1224;
}
.image-popup-caption {
  padding: 16px 20px;
  font-size: .95rem;
  color: #e9eff8;
  line-height: 1.5;
  background: rgba(0, 0, 0, 0.22);
}
.image-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
}
.image-popup-close:hover {
  background: rgba(255, 255, 255, 0.16);
}
body.image-popup-open {
  overflow: hidden;
}
.mock-body img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  box-shadow: 0 18px 42px rgba(14, 41, 88, 0.08);
}

/* ---------- Logos strip ---------- */
.logos {
  display: flex; flex-wrap: wrap; gap: 14px 34px;
  align-items: center; justify-content: center;
}
.logos .logo-pill {
  font-weight: 700; color: var(--ink-500);
  letter-spacing: .01em;
  opacity: .85;
}

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #d6e0ee; }
.card .icon {
  width: 46px; height: 46px; border-radius: 11px;
  background: var(--blue-050); color: var(--blue-600);
  display: grid; place-items: center; font-size: 1.35rem;
  margin-bottom: 16px;
}
.card h3 { margin-bottom: .35rem; }
.card p { margin: 0; color: var(--ink-500); font-size: .98rem; }

/* ---------- Alternating feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 60px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-media { order: 1; }
.feature-copy h2 { font-size: 1.7rem; }
.feature-copy .lead { font-size: 1.05rem; margin-bottom: 1.2rem; }
.feature-list { list-style: none; margin: 0; padding: 0; }
.feature-list li {
  position: relative; padding-left: 30px; margin-bottom: .65rem;
  color: var(--ink-700);
}
.feature-list li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-050); color: var(--blue-600);
  font-size: .72rem; font-weight: 800;
  display: grid; place-items: center;
  margin-top: 3px;
}

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; margin: 8px 0 0; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare th.center, .compare td.center { text-align: center; }
.compare tbody tr:hover { background: #fbfdff; }
.compare-wrap { overflow: auto; }

/* Highlight where UltimateCRM has an advantage */
.adv { display: inline-block; padding: .28rem .6rem; background: rgba(28,138,91,0.07); border-left: 3px solid var(--green); border-radius: 6px; color: var(--ink-900); font-weight: 700; }

/* adv badge and tooltip */
.adv { position: relative; }
.adv .adv-note {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px; margin-left: 8px;
  background: var(--green); color: #fff; font-size: 11px; font-weight: 800;
  border-radius: 50%; line-height: 1; box-shadow: 0 4px 12px rgba(4,20,10,.12);
}
.adv[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  left: 50%; transform: translateX(-50%);
  bottom: calc(100% + 10px);
  white-space: nowrap;
  background: rgba(3,16,35,0.95);
  color: #e6f5ee;
  padding: 8px 10px; border-radius: 8px; font-size: .86rem;
  box-shadow: 0 10px 30px rgba(3,16,35,.28);
  z-index: 1200;
  pointer-events: none;
}
.adv[data-tooltip]:hover::before {
  content: '';
  position: absolute; left: 50%; transform: translateX(-50%);
  bottom: calc(100% + 2px);
  border: 6px solid transparent; border-top-color: rgba(3,16,35,0.95);
  z-index: 1200;
}


/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat .num { font-size: 2.4rem; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.stat .lbl { font-size: .92rem; color: #b9c7da; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  max-width: 880px;
  margin: 0 auto;
  align-items: stretch;
}
.plan {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 32px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.plan--featured {
  border: 2px solid var(--blue-600);
  box-shadow: var(--shadow-md);
  position: relative;
}
.plan-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--blue-600); color: #fff;
  font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: .3rem .8rem; border-radius: 100px;
}
.plan-name { font-size: 1.3rem; font-weight: 750; color: var(--ink-900); }
.plan-desc { color: var(--ink-500); font-size: .95rem; min-height: 44px; }
.plan-price { display: flex; align-items: baseline; gap: .3rem; margin: 14px 0 4px; }
.plan-price .amount { font-size: 3rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; }
.plan-price .per { color: var(--ink-500); font-weight: 600; }
.plan-bill { font-size: .85rem; color: var(--ink-500); margin-bottom: 20px; }
.plan .btn { width: 100%; justify-content: center; margin-bottom: 22px; }
.plan-features { list-style: none; margin: 0; padding: 0; }
.plan-features li {
  position: relative; padding-left: 28px; margin-bottom: .6rem;
  font-size: .95rem; color: var(--ink-700);
}
.plan-features li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  color: var(--green); font-weight: 800;
}
.plan-features li.muted { color: var(--ink-500); }
.plan-features li.muted::before { content: "—"; color: #c2cdda; }
.plan-features .group-label {
  font-size: .74rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 700; color: var(--ink-500); padding-left: 0; margin: 16px 0 8px;
}
.plan-features .group-label::before { content: ""; }

/* ---------- Comparison table ---------- */
.compare-wrap { overflow-x: auto; }
table.compare {
  width: 100%; border-collapse: collapse; background: #fff;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  font-size: .96rem;
}
table.compare th, table.compare td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line);
}
table.compare thead th { background: var(--bg-soft); color: var(--ink-900); font-weight: 700; }
table.compare td.center, table.compare th.center { text-align: center; }
table.compare tr:last-child td { border-bottom: none; }
table.compare .yes { color: var(--green); font-weight: 700; }
table.compare .no { color: #c2cdda; }
table.compare tbody tr:hover { background: var(--bg-softer); }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 4px 20px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; font-weight: 650; color: var(--ink-900);
  padding: 14px 0; list-style: none; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 12px;
  font-size: 1.3rem; color: var(--blue-600); font-weight: 400;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--ink-500); margin: 0 0 14px; }

/* ---------- Integrations ---------- */
.integration-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.integration {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease;
  display: flex; flex-direction: column;
}
.integration:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.integration-top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.integration-logo {
  width: 50px; height: 50px; border-radius: 12px; flex: none;
  display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; color: #fff;
}
.integration h3 { margin: 0; font-size: 1.08rem; }
.integration .tag {
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  padding: .15rem .5rem; border-radius: 6px; display: inline-block;
}
.tag-live { background: #e6f5ee; color: var(--green); }
.tag-soon { background: #fdf3e0; color: var(--gold); }
.integration p { font-size: .94rem; color: var(--ink-500); margin: 0; }
.integration .cat {
  margin-top: auto; padding-top: 14px; font-size: .82rem; color: var(--ink-500); font-weight: 600;
}

/* logo color helpers */
.lg-ms { background: linear-gradient(135deg,#2b7de9,#1b4f9e); }
.lg-rc { background: linear-gradient(135deg,#ff7a59,#e8492f); }
.lg-sv { background: linear-gradient(135deg,#19a974,#0e6b4a); }
.lg-gr { background: linear-gradient(135deg,#6b7bf0,#3f4fd0); }
.lg-pk { background: linear-gradient(135deg,#3b4b66,#1b2740); }
.lg-ip { background: linear-gradient(135deg,#5b6b80,#2f3a4c); }
.lg-cal { background: linear-gradient(135deg,#3b86f0,#1f6fe0); }

.cat-head {
  font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
  color: var(--ink-500); font-weight: 700; margin: 48px 0 20px;
  padding-bottom: 10px; border-bottom: 1px solid var(--line);
}
.cat-head:first-of-type { margin-top: 0; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-700), var(--navy-900));
  border-radius: 20px; padding: 56px 48px; text-align: center; color: #cdd9ea;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: .4rem; }
.cta-band p { font-size: 1.08rem; margin-bottom: 1.6rem; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: #9fb0c6;
  padding: 56px 0 28px; font-size: .92rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 36px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #8497ae; }
.footer-about { max-width: 32ch; margin-top: 14px; color: #8497ae; }
.footer-col h4 { color: #fff; font-size: .92rem; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #9fb0c6; }
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 22px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  color: #7d90a8; font-size: .85rem;
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.disclaimer { font-size: .82rem; color: var(--ink-500); max-width: 760px; margin: 28px auto 0; text-align: center; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 56px; }
  .hero .lead { max-width: none; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding: 44px 0; }
  .feature-row.reverse .feature-copy { order: 0; }
  .feature-row.reverse .feature-media { order: 0; }
  .grid-3, .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 70px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    padding: 12px 24px 18px; gap: 2px; box-shadow: var(--shadow-md);
  }
  .nav-links.open a { padding: .7rem .5rem; }
  .pricing-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-2, .integration-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .section { padding: 60px 0; }
}
