/* ============================================================================
   Compass Health CRM — public site design system
   Brand: Momentum Marketing Blend LLC (operator) · Compass Health (brand)
   Aesthetic: refined "Modern Enterprise" — navy + periwinkle, premium serif
   display (Fraunces) over a humanist grotesque (Hanken Grotesk), generous
   whitespace, soft depth, subtle grain. Trust-first, not flashy.
   ============================================================================ */

/* Single clean grotesque (Helvetica-adjacent) to blend with chcagents.com's sans look */
@import url('https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700;800&display=swap');

:root {
  /* Compass palette (sampled from chcagents.com) */
  --navy:        #223E7A;   /* headings, deep brand */
  --navy-700:    #1B3A7A;
  --navy-900:    #142a55;   /* darkest ink panels */
  --periwinkle:  #5A83DD;   /* primary accent / CTAs */
  --periwinkle-600:#4670cf;
  --blue-bright: #4278E7;   /* links */
  --tint-1:      #A7C8F8;
  --tint-2:      #BAD3F3;
  --tint-3:      #CBDCE9;
  --wash:        #EEF3FB;   /* soft section band */
  --wash-2:      #F6F9FD;
  --white:       #ffffff;

  --ink:         #16243f;   /* body text on light */
  --ink-soft:    #4a5878;   /* muted text */
  --line:        #dbe4f2;   /* hairline borders */

  --font-display: 'Hanken Grotesk', system-ui, sans-serif;
  --font-sans:    'Hanken Grotesk', system-ui, sans-serif;

  --radius:      14px;
  --radius-pill: 999px;
  --shadow-sm:   0 1px 2px rgba(20,42,85,.06), 0 1px 3px rgba(20,42,85,.05);
  --shadow-md:   0 8px 24px -8px rgba(20,42,85,.18), 0 2px 6px rgba(20,42,85,.06);
  --shadow-lg:   0 30px 60px -20px rgba(20,42,85,.30);

  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* subtle page grain overlay for atmosphere */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: 9999; pointer-events: none;
  opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

h1, h2, h3 { font-family: var(--font-display); color: var(--navy); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: var(--blue-bright); text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.eyebrow {
  font-family: var(--font-sans); font-weight: 700; font-size: .76rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--periwinkle-600);
}

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .98rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  border: 1px solid transparent; cursor: pointer; transition: all .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--periwinkle); color: #fff; box-shadow: 0 8px 20px -8px rgba(90,131,221,.7); }
.btn-primary:hover { background: var(--periwinkle-600); transform: translateY(-2px); box-shadow: 0 14px 26px -10px rgba(90,131,221,.8); }
.btn-ghost { background: rgba(255,255,255,.7); color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { background: #fff; border-color: var(--tint-1); transform: translateY(-2px); }
.btn-lg { padding: 1.05rem 2rem; font-size: 1.05rem; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: saturate(140%) blur(12px);
  background: rgba(255,255,255,.78);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .65rem; font-family: var(--font-display); font-weight: 600; font-size: 1.3rem; color: var(--navy); letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; flex: 0 0 34px; }
.brand-logo { height: 44px; width: auto; display: block; }
.site-footer .footer-logo { filter: brightness(0) invert(1); opacity: .9; height: 38px; }
@media (max-width: 560px) { .brand-logo { height: 38px; } }
/* real logo featured large on focused funnel pages */
.page-logo { height: 86px; width: auto; margin: 0 auto 1.1rem; display: block; }
@media (max-width: 560px) { .page-logo { height: 66px; } }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a.navlink { color: var(--ink-soft); font-weight: 500; font-size: .96rem; transition: color .15s; }
.nav-links a.navlink:hover { color: var(--navy); }
.nav-cta { display: flex; align-items: center; gap: .75rem; }

/* ---- hero ---- */
.hero { position: relative; overflow: hidden; padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(4rem, 9vw, 7rem); }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 78% 8%, rgba(90,131,221,.20), transparent 60%),
    radial-gradient(50% 45% at 8% 100%, rgba(167,200,248,.30), transparent 65%),
    linear-gradient(180deg, #fff 0%, var(--wash-2) 100%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.1rem); margin: 1.1rem 0 0; }
.hero h1 em { font-style: normal; font-weight: 800; color: var(--periwinkle-600); }
.hero .lede { font-size: 1.2rem; color: var(--ink-soft); margin-top: 1.4rem; max-width: 33ch; }
.hero-cta { display: flex; gap: .9rem; margin-top: 2.1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.1rem; font-size: .9rem; color: var(--ink-soft); display: flex; align-items: center; gap: .5rem; }

/* hero visual card */
.hero-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 1.5rem; position: relative;
}
.hero-card .row { display: flex; align-items: center; gap: .85rem; padding: .85rem; border-radius: 12px; transition: background .2s; }
.hero-card .row + .row { border-top: 1px solid var(--wash); }
.hero-card .row:hover { background: var(--wash-2); }
.hero-card .dot { width: 38px; height: 38px; border-radius: 10px; flex: 0 0 38px; display: grid; place-items: center; color: #fff; font-weight: 700; }
.hero-card .meta { font-size: .82rem; color: var(--ink-soft); }
.hero-card .pill { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .25rem .6rem; border-radius: 999px; background: var(--wash); color: var(--navy); }

/* ---- generic section ---- */
.section { padding: clamp(3.5rem, 7vw, 6rem) 0; }
.section.band { background: var(--wash); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 56ch; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); margin-top: .7rem; }
.section-head p { font-size: 1.1rem; color: var(--ink-soft); margin-top: 1rem; }

/* feature cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--tint-2); }
.card .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 1.1rem; background: linear-gradient(135deg, var(--periwinkle), var(--blue-bright)); color: #fff; }
.card h3 { font-size: 1.3rem; margin-bottom: .5rem; }
.card p { color: var(--ink-soft); font-size: .98rem; }
.cards.four { grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cards.four .card { padding: 1.6rem; }
.cards.four .ico { width: 42px; height: 42px; }
.card .tag { display:inline-block; margin-top:.9rem; font-size:.74rem; font-weight:700; letter-spacing:.04em; text-transform:uppercase; color:var(--periwinkle-600); }
@media (max-width: 1000px) { .cards.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .cards.four { grid-template-columns: 1fr; } }

/* leads marketplace spotlight (the centerpiece) */
.spotlight { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.2rem; align-items: center; }
.spotlight-text h2 { font-size: clamp(2.1rem, 4.2vw, 3rem); margin: .8rem 0 1.1rem; }
.spotlight-text > p { color: var(--ink-soft); font-size: 1.14rem; }
.ticks { list-style: none; padding: 0; margin: 1.5rem 0 2rem; display: grid; gap: .75rem; }
.ticks li { display: flex; gap: .65rem; align-items: flex-start; font-weight: 500; }
.ticks li svg { flex: 0 0 20px; color: var(--periwinkle); margin-top: 3px; }
.mkt-panel { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); border-radius: 20px; padding: 1.5rem; color: #fff; box-shadow: var(--shadow-lg); }
.mkt-head { display: flex; align-items: center; justify-content: space-between; padding: .2rem .4rem 1rem; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: .6rem; }
.mkt-head .live { display: flex; align-items: center; gap: .45rem; font-size: .82rem; color: var(--tint-1); font-weight: 600; }
.mkt-head .blip { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,.2); }
.mkt-head .bal { font-size: .76rem; color: var(--tint-2); text-align: right; }
.mkt-head .bal b { color: #fff; font-size: 1.05rem; display: block; }
.mkt-row { display: flex; align-items: center; gap: .8rem; padding: .72rem .5rem; border-radius: 10px; transition: background .2s; }
.mkt-row + .mkt-row { border-top: 1px solid rgba(255,255,255,.07); }
.mkt-row:hover { background: rgba(255,255,255,.05); }
.mkt-row .ic { width: 36px; height: 36px; border-radius: 9px; flex: 0 0 36px; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #cddef6; }
.mkt-row .nm { font-weight: 600; font-size: .95rem; }
.mkt-row .sub { font-size: .76rem; color: var(--tint-2); }
.mkt-row .av { margin-left: auto; font-size: .72rem; font-weight: 700; padding: .28rem .65rem; border-radius: 999px; background: rgba(90,131,221,.28); color: #d7e8fb; white-space: nowrap; }
@media (max-width: 880px) { .spotlight { grid-template-columns: 1fr; gap: 2.4rem; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; counter-reset: s; }
.step { position: relative; padding-top: 2.6rem; }
.step::before {
  counter-increment: s; content: counter(s);
  position: absolute; top: 0; left: 0; width: 2.2rem; height: 2.2rem;
  display: grid; place-items: center; border-radius: 999px;
  font-family: var(--font-display); font-weight: 600; color: #fff; background: var(--navy);
}
.step h3 { font-size: 1.12rem; margin-bottom: .4rem; }
.step p { font-size: .94rem; color: var(--ink-soft); }
.step .line { position: absolute; top: 1.1rem; left: 2.6rem; right: -1rem; height: 2px; background: linear-gradient(90deg, var(--tint-1), transparent); }
.step:last-child .line { display: none; }

/* pricing */
.price-card {
  max-width: 460px; margin: 0 auto; background: #fff; border-radius: 20px;
  border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: hidden; text-align: center;
}
.price-card .top { background: linear-gradient(160deg, var(--navy) 0%, var(--navy-900) 100%); color: #fff; padding: 2.2rem 2rem 1.8rem; position: relative; }
.price-card .top h3 { color: #fff; font-size: 1.5rem; }
.price-card .amt { font-family: var(--font-display); font-size: 3.4rem; font-weight: 600; line-height: 1; margin: .8rem 0 .2rem; }
.price-card .amt span { font-size: 1.1rem; font-family: var(--font-sans); color: var(--tint-1); font-weight: 500; }
.price-card .trial { display: inline-block; margin-top: .7rem; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--navy); background: var(--tint-1); padding: .35rem .8rem; border-radius: 999px; }
.price-card ul { list-style: none; margin: 0; padding: 1.8rem 2.2rem; text-align: left; }
.price-card li { display: flex; gap: .7rem; padding: .55rem 0; color: var(--ink); font-size: .98rem; }
.price-card li svg { flex: 0 0 20px; color: var(--periwinkle); margin-top: 3px; }
.price-card .foot { padding: 0 2.2rem 2.2rem; }

/* CTA band */
.cta-band { background: linear-gradient(135deg, var(--navy) 0%, var(--periwinkle-600) 130%); color: #fff; border-radius: 24px; padding: clamp(2.5rem,5vw,4rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content:""; position:absolute; inset:0; pointer-events:none; background: radial-gradient(40% 60% at 85% 20%, rgba(255,255,255,.14), transparent 60%); }
.cta-band h2 { color: #fff; font-size: clamp(2rem,4vw,2.8rem); position: relative; }
.cta-band p { color: var(--tint-2); margin: 1rem auto 0; max-width: 50ch; position: relative; }
.cta-band .hero-cta { justify-content: center; position: relative; }

/* ---- footer ---- */
.site-footer { background: var(--navy-900); color: #b9c6e4; padding: 3.5rem 0 2.5rem; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; margin-bottom: .9rem; }
.site-footer h4 { color: #fff; font-family: var(--font-sans); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 1rem; font-weight: 700; }
.site-footer a { color: #b9c6e4; display: block; padding: .3rem 0; transition: color .15s; }
.site-footer a:hover { color: #fff; }
.foot-bottom { margin-top: 2.5rem; padding-top: 1.6rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; color: #8fa0c6; font-size: .85rem; }

/* page-load reveal */
.reveal { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* embed pages (survey / calendar) */
.page-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2rem,3.5vw,3rem); padding: clamp(3.25rem,5.5vw,4.75rem) 28px 0; }
.page-head h1 { font-size: clamp(2rem,4vw,2.9rem); margin-top: .7rem; }
.page-head p { color: var(--ink-soft); font-size: 1.12rem; margin-top: 1rem; }
.flow { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 2.2rem 0 .6rem; flex-wrap: wrap; }
.flow .node { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .9rem; color: var(--ink-soft); }
.flow .node .n { width: 1.7rem; height: 1.7rem; border-radius: 999px; display: grid; place-items: center; font-size: .8rem; background: var(--wash); color: var(--ink-soft); border: 1px solid var(--line); }
.flow .node.done { color: var(--navy); }
.flow .node.done .n { background: #e6f7ee; color: #1c7a4a; border-color: #bfe6cf; }
.flow .node.active { color: var(--navy); }
.flow .node.active .n { background: var(--periwinkle); color: #fff; border-color: var(--periwinkle); }
.flow .sep { width: 28px; height: 2px; background: var(--line); }
.embed-wrap { max-width: 920px; margin: 0 auto clamp(3rem,6vw,5rem); padding: 0 28px; }
.embed-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-md); padding: clamp(.5rem,2vw,1.5rem); overflow: hidden; }
.embed-card iframe { display: block; width: 100%; min-height: 720px; border: none; }
.assure { display:flex; gap:1.5rem; justify-content:center; flex-wrap:wrap; margin: 1.4rem auto 0; max-width: 740px; }
.assure span { display:flex; align-items:center; gap:.45rem; font-size:.88rem; color:var(--ink-soft); }

/* legal / content pages */
.legal { max-width: 760px; margin: 0 auto; padding: clamp(2.5rem,5vw,4rem) 0; }
.legal h1 { font-size: clamp(2.2rem,4vw,3rem); }
.legal .updated { color: var(--ink-soft); font-size: .9rem; margin-top: .6rem; }
.legal h2 { font-size: 1.4rem; margin: 2.2rem 0 .6rem; }
.legal p, .legal li { color: var(--ink); }
.legal ul { padding-left: 1.2rem; }

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .cards, .steps, .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
}
@media (max-width: 560px) {
  .cards, .steps, .foot-grid { grid-template-columns: 1fr; }
  .step .line { display: none; }

  /* tighter page gutters on phones — more room for content */
  .wrap { padding: 0 20px; }

  /* keep the header on one clean line: smaller wordmark + compact buttons */
  .nav { height: 64px; }
  .brand { font-size: 1.06rem; gap: .5rem; }
  .nav-cta { gap: .5rem; }
  .nav-cta .btn { padding: .58rem 1rem; font-size: .88rem; }

  /* primary CTAs go full-width + centered for big, even tap targets */
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .spotlight-text > .btn { width: 100%; justify-content: center; }

  /* funnel page heads get matching gutters (not inside .wrap) */
  .page-head { padding-left: 20px; padding-right: 20px; }

  /* step indicator: stack as a tidy vertical list instead of a broken
     horizontal row with a dangling connector that wraps mid-line */
  .flow { flex-direction: column; align-items: flex-start; gap: .7rem; width: max-content; max-width: 100%; margin-left: auto; margin-right: auto; }
  .flow .sep { display: none; }
}

/* very small phones (iPhone SE / older) — shrink the wordmark one more notch */
@media (max-width: 380px) {
  .brand { font-size: .98rem; }
  .nav-cta .btn { padding: .54rem .85rem; font-size: .84rem; }
}

/* ============ CONTACT PAGE ============ */
/* uses the shared interior-page shell (.page-head + .embed-wrap + .embed-card) */
.embed-card.contact-card { padding: clamp(1.5rem, 3.5vw, 2.75rem); }

.contact-form { display: grid; gap: 1.15rem; text-align: left; }
.contact-form .field { display: grid; gap: .4rem; }
.contact-form label.lbl { font-weight: 600; font-size: .9rem; color: var(--navy); }
.contact-form .req { color: var(--periwinkle); }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 12px;
  font: inherit; color: var(--ink); background: #fbfcff;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: #9aa6bf; }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--periwinkle); background: #fff;
  box-shadow: 0 0 0 3px rgba(90,131,221,.16);
}
.contact-form textarea { min-height: 120px; resize: vertical; }

.consent-group { display: grid; gap: .8rem; padding: 1rem 1.1rem; background: var(--wash); border: 1px solid var(--line); border-radius: 14px; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .86rem; color: var(--ink-soft); line-height: 1.55; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin-top: .14rem; flex: none; accent-color: var(--periwinkle); cursor: pointer; }
.consent-fine { font-size: .8rem; color: var(--ink-soft); line-height: 1.6; }
.consent-fine a { color: var(--blue-bright); }
.contact-form .btn { justify-self: center; }
.thanks { background: #e6f7ee; color: #1c7a4a; padding: .85rem 1.1rem; border-radius: 12px; font-weight: 600; font-size: .92rem; text-align: center; }
