:root {
  --paper: #fbfaf7;
  --paper-2: #f3f1eb;
  --paper-3: #ebe7dd;
  --ink: #101413;
  --ink-2: #34423f;
  --muted: #65736f;
  --line: #ded9cb;
  --line-strong: #c9c1af;
  --brand: #0d7c66;
  --brand-dark: #095f4d;
  --blue: #2f6cb3;
  --blue-dark: #1e4779;
  --amber: #b26a16;
  --green: #177a4f;
  --white: #ffffff;
  --dark: #0d1626;
  --shadow: 0 18px 54px rgba(16, 20, 19, 0.12);
  --shadow-soft: 0 10px 28px rgba(16, 20, 19, 0.08);
  --radius: 8px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }

.wrap { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(222, 217, 203, 0.72);
  background: rgba(251, 250, 247, 0.88);
  backdrop-filter: blur(14px);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: var(--white);
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 10px 22px rgba(13, 124, 102, 0.24);
}
.brand-name { display: grid; gap: 1px; }
.brand-name strong { font-size: 15px; line-height: 1.1; }
.brand-name span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  border-radius: var(--radius);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 12px;
}
.nav-links a:hover, .nav-links a[aria-current="page"] {
  background: var(--paper-2);
  color: var(--ink);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.mobile-panel { display: none; }
.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 14px;
  font-weight: 800;
  padding: 11px 16px;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--brand); color: var(--white); }
.button-primary:hover { background: var(--brand-dark); }
.button-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
.button-secondary:hover { border-color: var(--line-strong); background: var(--white); }

.hero {
  position: relative;
  min-height: min(770px, calc(100svh - 78px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--white);
  background-image:
    linear-gradient(90deg, rgba(7, 13, 22, 0.92), rgba(7, 13, 22, 0.72) 44%, rgba(7, 13, 22, 0.24)),
    linear-gradient(0deg, rgba(7, 13, 22, 0.54), rgba(7, 13, 22, 0.1)),
    url("/screenshots/app-clinical-workspace.png");
  background-position: center;
  background-size: cover;
}
.hero-inner { padding: clamp(80px, 10vw, 128px) 0 clamp(40px, 8vw, 88px); }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #20d0a3;
}
.hero h1, .page-hero h1 {
  max-width: 830px;
  margin: 18px 0 18px;
  font-size: clamp(46px, 7vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}
.hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.5;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-proof span, .pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.03em;
  padding: 7px 10px;
  text-transform: uppercase;
}

.section { padding: clamp(64px, 8vw, 112px) 0; }
.section-tight { padding: clamp(44px, 7vw, 78px) 0; }
.section-alt { border-block: 1px solid var(--line); background: var(--paper-2); }
.section-dark { background: var(--dark); color: var(--white); }
.section-head {
  display: grid;
  max-width: 790px;
  gap: 14px;
  margin-bottom: 34px;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-kicker {
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.section-dark .section-kicker { color: #6fe3c4; }
h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 1.03;
  letter-spacing: 0;
}
h3 { margin: 0; font-size: 20px; line-height: 1.25; letter-spacing: 0; }
p { margin: 0; }
.lead { color: var(--ink-2); font-size: 18px; line-height: 1.65; }
.section-dark .lead, .section-dark p { color: rgba(255, 255, 255, 0.75); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  padding: 24px;
}
.card.flat { box-shadow: none; }
.section-dark .card {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--brand) 13%, white);
  color: var(--brand);
}
.card p, .feature-list p, .screen-copy p { color: var(--muted); margin-top: 10px; }
.section-dark .card p { color: rgba(255, 255, 255, 0.7); }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-block: 1px solid var(--line);
  background: var(--white);
}
.stat { min-height: 132px; border-right: 1px solid var(--line); padding: 26px; }
.stat:last-child { border-right: 0; }
.stat strong { display: block; color: var(--ink); font-size: clamp(28px, 4vw, 42px); line-height: 1; }
.stat span { display: block; margin-top: 12px; color: var(--muted); font-size: 13px; font-weight: 750; }

.problem-layout {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: 44px;
  align-items: start;
}
.quote-panel { border-left: 4px solid var(--brand); padding: 6px 0 6px 22px; }
.quote-panel p { color: var(--ink); font-size: clamp(26px, 3vw, 38px); font-weight: 850; line-height: 1.14; }
.feature-list { display: grid; gap: 14px; }
.feature-row {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row svg { color: var(--brand); margin-top: 2px; }

.screen-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--dark);
  box-shadow: var(--shadow);
}
.screen-stage img { width: 100%; aspect-ratio: 1440 / 1040; object-fit: cover; }
.screen-stage figcaption, .image-note {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 22, 38, 0.94);
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 700;
  padding: 12px 14px;
}
.screen-block {
  display: grid;
  grid-template-columns: minmax(0, 1.34fr) minmax(280px, 0.66fr);
  gap: 28px;
  align-items: center;
}
.screen-block + .screen-block { margin-top: 54px; }
.screen-copy { display: grid; gap: 14px; }
.screen-copy ul, .check-list {
  display: grid;
  gap: 10px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.screen-copy li, .check-list li { position: relative; padding-left: 24px; color: var(--ink-2); }
.screen-copy li::before, .check-list li::before {
  content: "";
  position: absolute;
  top: 0.67em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--brand);
}

.timeline {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.timeline-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 22px;
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.timeline-item:last-child { border-bottom: 0; }
.timeline-time {
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.status-table th, .status-table td {
  border-bottom: 1px solid var(--line);
  padding: 16px 18px;
  text-align: left;
  vertical-align: top;
}
.status-table tr:last-child td { border-bottom: 0; }
.status-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  padding: 5px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}
.tag.green { border-color: rgba(23, 122, 79, 0.22); background: rgba(23, 122, 79, 0.1); color: var(--green); }
.tag.amber { border-color: rgba(178, 106, 22, 0.28); background: rgba(178, 106, 22, 0.1); color: var(--amber); }
.tag.blue { border-color: rgba(47, 108, 179, 0.26); background: rgba(47, 108, 179, 0.1); color: var(--blue-dark); }

.cta-band {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  padding: clamp(28px, 5vw, 48px);
}
.cta-band p { max-width: 740px; margin-top: 10px; color: rgba(255, 255, 255, 0.75); }
.page-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(13, 124, 102, 0.09), rgba(47, 108, 179, 0.09)), var(--paper);
  padding: clamp(70px, 10vw, 118px) 0 clamp(42px, 7vw, 78px);
}
.page-hero h1 { color: var(--ink); }
.page-hero p { max-width: 760px; color: var(--ink-2); font-size: clamp(18px, 2vw, 22px); }
.split-page {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 44px;
  align-items: start;
}
.price-card { display: grid; gap: 18px; }
.price-card strong { font-size: 28px; line-height: 1; }
.contact-card { display: grid; gap: 14px; }
.field-grid { display: grid; gap: 12px; }
.field-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 800;
}
.field-grid input, .field-grid textarea, .field-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  padding: 12px 13px;
}
.field-grid textarea { min-height: 132px; resize: vertical; }
.website-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  min-height: 22px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}
.form-status[data-state="success"] { color: var(--green); }
.form-status[data-state="error"] { color: #a33a32; }
.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}
.notice {
  border: 1px solid var(--line);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  background: #fff8ec;
  color: #5f3d13;
  padding: 16px 18px;
}

.footer {
  border-top: 1px solid var(--line);
  background: var(--ink);
  color: var(--white);
  padding: 48px 0 34px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 28px;
}
.footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.footer p, .footer a, .footer small { color: rgba(255, 255, 255, 0.68); }
.footer a { display: block; margin-top: 7px; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  margin-top: 34px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 22px;
}
.legal { max-width: 980px; color: rgba(255, 255, 255, 0.7); font-size: 12px; }

@media (max-width: 980px) {
  .grid-3, .grid-4, .stat-grid, .problem-layout, .screen-block, .split-page, .footer-grid, .cta-band {
    grid-template-columns: 1fr;
  }
  .grid-2 { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

@media (max-width: 840px) {
  .nav-links, .nav-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-panel { display: none; border-top: 1px solid var(--line); padding: 12px 0 18px; }
  .nav-open .mobile-panel { display: grid; gap: 8px; }
  .mobile-panel a { border-radius: var(--radius); color: var(--ink-2); font-weight: 800; padding: 12px; }
  .mobile-panel a:hover, .mobile-panel a[aria-current="page"] { background: var(--paper-2); color: var(--ink); }
}

@media (max-width: 640px) {
  .wrap { width: min(100% - 28px, 1180px); }
  .brand-name span { display: none; }
  .hero { min-height: 690px; background-position: 61% center; }
  .eyebrow {
    position: relative;
    display: block;
    max-width: 100%;
    padding-left: 16px;
    line-height: 1.45;
  }
  .eyebrow::before {
    position: absolute;
    left: 0;
    top: 0.45em;
  }
  .hero h1, .page-hero h1 { font-size: 44px; }
  .hero p { font-size: 18px; }
  .hero-proof span, .pill { white-space: normal; }
  .hero-actions, .cta-band { align-items: stretch; }
  .button { width: 100%; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .status-table { display: block; overflow-x: auto; }
}
