/* CliniManage marketing site — shared styles (v2, FinTech/HRTech). */

:root {
  --navy:        #0a1628;
  --navy-mid:    #12213d;
  --teal:        #0d7a6e;
  --teal-dark:   #0b6860;
  --teal-pale:   #e8f7f5;
  --teal-bright: #14b8a6;
  --amber:       #d97706;
  --red:         #dc2626;
  --green:       #16a34a;
  --green-pale:  #dcfce7;
  --purple:      #5b21b6;
  --purple-pale: #ede9fe;
  --cream:       #faf8f4;
  --off-white:   #f8fafc;
  --border:      #e2e8f0;
  --border-md:   #cbd5e0;
  --muted:       #4a5568;
  --slate-soft:  #64748b;
  --slate-mid:   #94a3b8;
  --gold:        #b8975a;

  --serif: 'Playfair Display', Georgia, serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, Inter, sans-serif;

  --radius:    10px;
  --radius-lg: 14px;
  --shadow:    0 2px 12px rgba(10, 22, 40, .05);
  --shadow-lg: 0 12px 38px rgba(10, 22, 40, .08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; font-family: var(--sans); color: var(--navy); background: #fff; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; display: block; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

/* ── Layout primitives ──────────────────────────────────────────── */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 1.4rem; }
.wrap--tight { max-width: 880px; }
.wrap--wide  { max-width: 1320px; }
.section { padding: 5.5rem 0; }
.section--tight { padding: 3.5rem 0; }
.section--cream { background: var(--cream); }
.section--navy { background: var(--navy); color: #fff; }
.section--purple { background: linear-gradient(135deg, #f5f3ff 0%, var(--purple-pale) 100%); }
.section--teal { background: linear-gradient(135deg, #ecfdf5 0%, var(--teal-pale) 100%); }
.section--off { background: var(--off-white); }
.section--gradient-navy {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: #fff;
}

h1, h2, h3, h4 { font-family: var(--serif); color: var(--navy); margin: 0 0 1rem; line-height: 1.18; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 1.9vw, 1.4rem); }
h4 { font-size: 1.05rem; }
p { margin: 0 0 1rem; color: var(--muted); font-size: 1rem; }
p.lead { font-size: 1.15rem; line-height: 1.65; color: #1f2937; max-width: 740px; }

.eyebrow {
  display: inline-block;
  font-size: .78rem; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--teal); margin-bottom: .9rem;
}
.eyebrow--purple { color: var(--purple); }
.eyebrow--red { color: var(--red); }
.eyebrow--amber { color: var(--amber); }
.eyebrow--gold  { color: var(--gold); }
.eyebrow--on-navy { color: var(--teal-bright); }
.section--navy h1, .section--navy h2, .section--navy h3, .section--navy h4,
.section--gradient-navy h1, .section--gradient-navy h2, .section--gradient-navy h3, .section--gradient-navy h4 { color: #fff; }
.section--navy p,
.section--gradient-navy p { color: rgba(255, 255, 255, .82); }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; gap: 1.5rem;
}
.brand {
  font-family: var(--serif); font-size: 1.45rem; color: var(--navy); font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: .55rem;
}
.brand::before {
  content: ''; width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--teal), var(--purple));
  border-radius: 6px; box-shadow: 0 2px 6px rgba(13, 122, 110, .25);
}
.brand small {
  font-family: var(--sans); font-weight: 500; font-size: .68rem;
  color: var(--teal); letter-spacing: .12em; text-transform: uppercase;
  margin-left: .35rem;
}
.nav { display: flex; gap: 1.4rem; align-items: center; }
.nav a { font-size: .94rem; font-weight: 500; color: var(--navy); text-decoration: none; }
.nav a:hover { color: var(--teal); }
.nav .btn { margin-left: .6rem; }
.nav__menu { position: relative; }
.nav__menu-trigger { background: none; border: 0; font: inherit; color: var(--navy); cursor: pointer; font-weight: 500; font-size: .94rem; display: inline-flex; align-items: center; gap: .3rem; }
.nav__menu-trigger::after { content: '▾'; font-size: .7rem; }
.nav__menu-panel {
  position: absolute; top: 100%; left: -1rem; margin-top: .6rem;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); min-width: 280px; padding: .8rem;
  display: none;
}
.nav__menu:hover .nav__menu-panel { display: block; }
.nav__menu-panel a {
  display: block; padding: .6rem .8rem; border-radius: 8px;
  color: var(--navy); text-decoration: none; font-size: .92rem;
}
.nav__menu-panel a small {
  display: block; color: var(--slate-soft); font-weight: 400; font-size: .78rem; margin-top: .15rem;
}
.nav__menu-panel a:hover { background: var(--teal-pale); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .85rem 1.4rem; font-size: 1rem; font-weight: 600;
  border: 1.5px solid transparent; border-radius: var(--radius);
  cursor: pointer; text-decoration: none; transition: .15s; font-family: var(--sans);
  gap: .4rem;
}
.btn--primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn--primary:hover { background: var(--navy-mid); }
.btn--accent  { background: var(--teal); color: #fff; border-color: var(--teal); }
.btn--accent:hover { background: var(--teal-dark); }
.btn--outline { background: transparent; color: var(--navy); border-color: var(--border-md); }
.btn--outline:hover { border-color: var(--navy); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn--outline-light:hover { background: rgba(255, 255, 255, .08); }
.btn--lg { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--sm { padding: .55rem 1rem; font-size: .88rem; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 0 4.5rem;
  background:
    radial-gradient(ellipse at top right, rgba(13, 122, 110, .12), transparent 55%),
    radial-gradient(ellipse at top left,  rgba(91,  33, 182, .08), transparent 60%),
    linear-gradient(180deg, var(--cream), #fff);
}
.hero__pill {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--purple-pale); color: var(--purple);
  padding: .42rem 1rem; border-radius: 30px;
  font-size: .8rem; font-weight: 700; letter-spacing: .04em;
  margin-bottom: 1.5rem;
}
.hero h1 em { font-style: normal; color: var(--teal); }
.hero__sub { max-width: 700px; }
.hero__ctas { display: flex; gap: .9rem; margin-top: 2rem; flex-wrap: wrap; }
.hero__sub-note { margin-top: 1.2rem; font-size: .88rem; color: var(--slate-soft); display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.hero__sub-note span { display: inline-flex; align-items: center; gap: .3rem; }

/* ── Logo strip ─────────────────────────────────────────────────── */
.logo-strip {
  background: var(--off-white);
  padding: 2.5rem 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.logo-strip__intro {
  text-align: center; font-size: .82rem; color: var(--slate-soft);
  font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: 1.4rem;
}
.logo-strip__grid {
  display: flex; gap: 2.4rem; flex-wrap: wrap;
  align-items: center; justify-content: center;
}
.logo-strip__logo {
  font-family: var(--serif); font-size: 1.2rem; color: var(--slate-mid); font-weight: 700;
  opacity: .85; display: inline-flex; align-items: center; gap: .4rem;
}
.logo-strip__logo small { font-family: var(--sans); font-weight: 500; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

/* ── Cards / grids ──────────────────────────────────────────────── */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-2-bias { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
@media (max-width: 900px) {
  .grid-3, .grid-2, .grid-2-bias { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .site-header__inner { flex-direction: column; gap: 1rem; }
  .nav { flex-wrap: wrap; justify-content: center; }
}

.card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.8rem; box-shadow: var(--shadow);
}
.card h3 { margin-bottom: .55rem; }
.card .icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: var(--teal-pale); color: var(--teal);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; font-size: 1.4rem;
}
.card--feature .icon { background: var(--purple-pale); color: var(--purple); }
.card--ai .icon      { background: #fef3c7; color: var(--amber); }
.card--ops .icon     { background: var(--teal-pale); color: var(--teal); }
.card--red .icon     { background: #fee2e2; color: var(--red); }
.card--blue .icon    { background: #dbeafe; color: #1e40af; }
.card--green .icon   { background: var(--green-pale); color: #166534; }
.card--gold .icon    { background: #fef3c7; color: var(--gold); }

.feature-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.6rem; transition: .15s; cursor: default;
  display: flex; flex-direction: column; gap: .55rem;
}
.feature-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.feature-card h4 { margin: 0; font-size: 1.05rem; color: var(--navy); font-weight: 700; }
.feature-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.feature-card .tag {
  display: inline-block; font-size: .68rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px;
  background: var(--teal-pale); color: var(--teal); align-self: flex-start;
}
.feature-card .tag--purple { background: var(--purple-pale); color: var(--purple); }
.feature-card .tag--gold   { background: #fef3c7; color: var(--gold); }

/* ── Domain cards ───────────────────────────────────────────────── */
.domain-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 2rem; }
@media (max-width: 900px) { .domain-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .domain-grid { grid-template-columns: 1fr; } }
.domain {
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  padding: 1.2rem 1.3rem; transition: .15s; cursor: default;
}
.domain:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
.domain h4 { margin: 0 0 .5rem; font-size: 1rem; color: var(--navy); font-weight: 700; font-family: var(--sans); }
.domain ul { padding-left: 1.1rem; margin: .35rem 0 0; color: var(--muted); font-size: .88rem; }
.domain li { margin: .15rem 0; }

/* ── Stat strip ─────────────────────────────────────────────────── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  padding: 2.5rem 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; }
.stat__num {
  font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--navy);
  line-height: 1; margin-bottom: .35rem;
}
.stat__label { font-size: .82rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; line-height: 1.4; }

/* ── Pricing ────────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.plan {
  background: #fff; border: 1.5px solid var(--border); border-radius: 18px;
  padding: 2rem; position: relative; display: flex; flex-direction: column;
}
.plan--highlight { border-color: var(--teal); box-shadow: 0 12px 38px rgba(13, 122, 110, .15); transform: translateY(-6px); }
.plan__ribbon {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--teal); color: #fff; padding: .25rem .85rem; border-radius: 30px;
  font-size: .75rem; font-weight: 700; letter-spacing: .04em;
}
.plan__tier { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); margin-bottom: .6rem; }
.plan--compliance .plan__tier { color: var(--green); }
.plan--practice .plan__tier { color: var(--teal); }
.plan--group .plan__tier { color: var(--purple); }
.plan__name { font-family: var(--serif); font-size: 1.55rem; color: var(--navy); font-weight: 700; margin-bottom: .35rem; }
.plan__price { display: flex; align-items: baseline; gap: .35rem; margin-bottom: .35rem; }
.plan__price-num { font-family: var(--serif); font-size: 2.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.plan__price-unit { font-size: .9rem; color: var(--muted); }
.plan__cap { font-size: .85rem; color: var(--muted); margin-bottom: 1.2rem; }
.plan__features { list-style: none; padding: 0; margin: 0 0 1.6rem; flex: 1; }
.plan__features li { padding: .35rem 0; font-size: .92rem; color: var(--navy); display: flex; gap: .55rem; }
.plan__features li::before { content: '✓'; color: var(--green); font-weight: 700; }
.plan__features li.muted { color: var(--slate-soft); }
.plan__features li.muted::before { content: '—'; color: var(--slate-soft); }

/* ── Quote / case study ─────────────────────────────────────────── */
.quote {
  border-left: 4px solid var(--teal); padding: .8rem 1.4rem;
  font-style: italic; color: #1f2937; font-size: 1.1rem; line-height: 1.6;
  max-width: 760px; margin: 0;
}
.quote__attribution { font-style: normal; font-size: .9rem; color: var(--muted); margin-top: .6rem; }
.quote__attribution strong { color: var(--navy); }

/* ── Outstanding badge ──────────────────────────────────────────── */
.outstanding-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  border: 1px solid var(--gold); color: #78350f;
  padding: .5rem 1.1rem; border-radius: 30px;
  font-size: .82rem; font-weight: 700; letter-spacing: .04em;
}
.outstanding-badge::before {
  content: '★'; color: var(--gold); font-size: 1rem;
}

/* ── Steps ──────────────────────────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
  margin-top: 2rem; position: relative;
}
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem; position: relative;
}
.step__num {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--navy); color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-weight: 700; font-size: 1.2rem;
  margin-bottom: .8rem;
}
.step__title { font-family: var(--serif); font-size: 1.15rem; color: var(--navy); margin-bottom: .4rem; }
.step__desc { font-size: .92rem; color: var(--muted); line-height: 1.55; margin: 0; }

/* ── Compare table ──────────────────────────────────────────────── */
.compare {
  width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 2rem;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.compare th, .compare td { padding: .9rem 1.2rem; text-align: left; font-size: .92rem; }
.compare thead th {
  background: var(--off-white); border-bottom: 1px solid var(--border);
  font-weight: 700; color: var(--navy); font-size: .82rem; letter-spacing: .04em; text-transform: uppercase;
}
.compare tbody tr { border-bottom: 1px solid var(--border); }
.compare tbody tr:last-child { border-bottom: 0; }
.compare td:first-child { font-weight: 600; color: var(--navy); }
.compare .tick { color: var(--green); font-weight: 700; }
.compare .dash { color: var(--slate-mid); }
.compare .ours { background: linear-gradient(0deg, var(--teal-pale), #fff); }
.compare thead th.ours { background: var(--teal-pale); color: var(--teal-dark); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 4rem 0 2rem; }
.site-footer h4 { color: #fff; font-family: var(--sans); font-size: .88rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 1rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2.5rem; }
@media (max-width: 800px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .35rem 0; }
.site-footer a { color: rgba(255, 255, 255, .72); text-decoration: none; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 1.5rem; font-size: .8rem; display: flex; gap: 1.4rem; flex-wrap: wrap; justify-content: space-between; }

/* ── Utility ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: .8rem; }
.mb-2 { margin-bottom: 1.4rem; }
.mb-3 { margin-bottom: 2.2rem; }
.muted { color: var(--muted); }
