/* Clinzia — healthcare SaaS */
:root {
  --blue: #038AC9;
  --blue-light: #1E93FC;
  --blue-dark: #0D7FD4;
  --teal: #07777B;
  --green: #61CE70;
  --dark: #000000;
  --text: #67737E;
  --text-light: #7A7A7A;
  --bg: #ffffff;
  --bg-alt: #EDF6FF;
  --font: "Plus Jakarta Sans", system-ui, sans-serif;
  --shadow: 0 8px 32px rgba(3, 138, 201, 0.1);
  --radius: 12px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 15px;
}
a { color: var(--blue); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--blue-dark); }
.container { width: min(1140px, 92vw); margin: 0 auto; }
.container.narrow { width: min(880px, 92vw); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 12px rgba(0,0,0,0.06);
  height: var(--header-h);
  display: flex;
  align-items: center;
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--dark);
  letter-spacing: -0.03em;
}
.logo:hover { text-decoration: none; color: var(--dark); }
.logo-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: white;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 700;
}
.logo-mark.sm { width: 24px; height: 24px; font-size: 0.85rem; border-radius: 6px; }

.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.1rem; flex: 1; justify-content: center; }
.main-nav a {
  color: var(--dark);
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 500;
}
.main-nav a:hover,
.main-nav a.active { color: var(--blue); text-decoration: none; }

.btn-header {
  background: linear-gradient(117deg, var(--blue), var(--blue-dark));
  color: white !important;
  padding: 0.55rem 1.25rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-header:hover { opacity: 0.92; transform: translateY(-1px); color: white !important; text-decoration: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  margin: 5px 0;
}

/* Buttons */
.btn-primary {
  display: inline-block;
  background: linear-gradient(117deg, var(--blue), var(--blue-dark));
  color: white !important;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); text-decoration: none; color: white !important; }
.btn-outline {
  display: inline-block;
  border: 2px solid var(--blue);
  color: var(--blue) !important;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-outline:hover { background: var(--bg-alt); text-decoration: none; }
.btn-white {
  display: inline-block;
  background: white;
  color: var(--blue) !important;
  padding: 0.85rem 1.75rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
}
.btn-white:hover { opacity: 0.92; text-decoration: none; }
.btn-outline-white {
  display: inline-block;
  border: 2px solid rgba(255,255,255,0.6);
  color: white !important;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: 8px;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.1); text-decoration: none; }

/* Trust badge */
.trust-badge {
  background: var(--bg-alt);
  text-align: center;
  padding: 0.6rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue);
}

/* Hero */
.hero { padding: 3.5rem 0 4rem; background: linear-gradient(180deg, var(--bg-alt) 0%, var(--bg) 100%); }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
}
.hero h1 span { color: var(--blue); }
.hero-lead { font-size: 1.05rem; color: var(--text); margin: 0 0 1.25rem; line-height: 1.7; }
.hero-bullets {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--green);
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.hero-visual { display: flex; justify-content: center; }
.dashboard-mock {
  width: 100%;
  max-width: 420px;
  background: white;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  border: 1px solid rgba(3,138,201,0.1);
}
.mock-bar { height: 12px; background: var(--bg-alt); border-radius: 6px; margin-bottom: 1rem; width: 40%; }
.mock-row { display: flex; gap: 0.75rem; margin-bottom: 1rem; }
.mock-stat { flex: 1; height: 60px; background: var(--bg-alt); border-radius: 8px; }
.mock-chart { height: 140px; background: linear-gradient(180deg, rgba(3,138,201,0.15) 0%, transparent 100%); border-radius: 8px; border: 1px solid rgba(3,138,201,0.1); }

/* Stats */
.stats-bar {
  background: linear-gradient(117deg, var(--blue), var(--blue-dark));
  color: white;
  padding: 2rem 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stats-grid strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.2;
}
.stats-grid span { font-size: 0.85rem; opacity: 0.88; font-weight: 500; }

/* Sections */
.section { padding: 4rem 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; margin-bottom: 2.5rem; }
.section-head h2 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0;
  letter-spacing: -0.02em;
}
.section-head h2 span { color: var(--blue); }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature-card {
  background: white;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.25s, box-shadow 0.25s;
  display: block;
  color: inherit;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
}
.fc-icon { font-size: 2rem; margin-bottom: 0.75rem; }
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--dark);
  margin: 0 0 0.5rem;
}
.feature-card p { margin: 0; font-size: 0.88rem; color: var(--text); }

/* Testimonials */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.testimonial {
  background: white;
  border-radius: var(--radius);
  padding: 1.75rem;
  margin: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  border-left: 4px solid var(--blue);
}
.testimonial p { font-style: italic; margin: 0 0 1rem; font-size: 0.92rem; color: var(--text); }
.testimonial footer strong { display: block; color: var(--dark); font-size: 0.88rem; }
.testimonial footer span { font-size: 0.78rem; color: var(--text-light); }

/* CTA banner */
.cta-banner {
  background: linear-gradient(135deg, var(--blue) 0%, var(--teal) 100%);
  color: white;
  padding: 4rem 0;
  text-align: center;
}
.cta-inner h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin: 0 0 0.75rem;
}
.cta-inner p { margin: 0 0 1.75rem; opacity: 0.92; max-width: 520px; margin-inline: auto; }
.cta-inner .hero-ctas { justify-content: center; }

/* Page hero */
.page-hero {
  padding: 3.5rem 0;
  background: linear-gradient(135deg, var(--bg-alt), white);
  text-align: center;
  border-bottom: 1px solid rgba(3,138,201,0.08);
}
.page-hero h1 {
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}
.page-hero p { margin: 0; color: var(--blue); font-weight: 600; font-size: 0.95rem; }

.page-hero.feat-sched { background: linear-gradient(135deg, #EDF6FF, #e3f2fd); }
.page-hero.feat-staff { background: linear-gradient(135deg, #f3e5f5, #EDF6FF); }
.page-hero.feat-billing { background: linear-gradient(135deg, #e8f5e9, #EDF6FF); }
.page-hero.feat-expense { background: linear-gradient(135deg, #fff3e0, #EDF6FF); }
.page-hero.feat-analytics { background: linear-gradient(135deg, #e0f7fa, #EDF6FF); }
.page-hero.feat-hipaa { background: linear-gradient(135deg, #fce4ec, #EDF6FF); }

/* Feature detail */
.content-block { padding: 3.5rem 0; }
.lead { font-size: 1.05rem; line-height: 1.75; margin: 0 0 1.5rem; }
.feature-detail { max-width: 680px; margin: 0 auto; text-align: center; }
.fd-icon { font-size: 3rem; margin-bottom: 1rem; }
.detail-list {
  list-style: none;
  margin: 0 0 2rem;
  padding: 0;
  text-align: left;
}
.detail-list li {
  padding: 1rem 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.detail-list strong { display: block; color: var(--dark); font-size: 0.95rem; margin-bottom: 0.25rem; }
.detail-list span { font-size: 0.88rem; color: var(--text); }

.related-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}
.related-links a {
  padding: 0.5rem 1rem;
  border: 1px solid rgba(3,138,201,0.2);
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--blue);
}
.related-links a:hover { background: var(--bg-alt); text-decoration: none; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-grid h2 { font-size: 1.35rem; font-weight: 800; color: var(--dark); margin: 0 0 1rem; }
.contact-perks { list-style: none; margin: 0; padding: 0; }
.contact-perks li { padding: 0.5rem 0; font-size: 0.92rem; color: var(--text); font-weight: 500; }

.demo-form {
  background: var(--bg-alt);
  padding: 1.75rem;
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  border: 1px solid rgba(3,138,201,0.1);
}
.demo-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}
.demo-form input,
.demo-form select,
.demo-form textarea {
  font: inherit;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  background: white;
}
.form-note { margin: 0; color: var(--green); font-size: 0.9rem; font-weight: 600; }

/* Footer */
.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 2.5rem 0 1rem;
  font-size: 0.88rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
  font-size: 1.1rem;
  color: white;
  margin-bottom: 0.5rem;
}
.site-footer a { color: var(--blue-light); }
.site-footer a:hover { color: white; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 1rem;
  text-align: center;
  font-size: 0.78rem;
  opacity: 0.6;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .feature-grid, .testimonial-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-header { display: none; }
}

@media (max-width: 640px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 0.75rem;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: 0.35s;
  }
  .main-nav.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav a { width: 100%; text-align: center; padding: 0.85rem; }
}
