:root {
  --ink: #102d2b;
  --ink-2: #254b47;
  --muted: #526966;
  --paper: #fbfaf5;
  --cream: #f3efe4;
  --white: #ffffff;
  --mint: #dceee8;
  --mint-2: #bde1d7;
  --green: #113d3a;
  --green-2: #1d5a53;
  --coral: #a7462f;
  --amber: #eab76f;
  --line: rgba(16, 45, 43, .14);
  --shadow: 0 24px 80px rgba(16, 45, 43, .12);
  --radius: 18px;
  --shell: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, textarea { font: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  transform: translateY(-160%);
  border-radius: 8px;
  background: var(--green);
  color: #fff;
}

.skip-link:focus { transform: translateY(0); }

.shell { width: var(--shell); margin-inline: auto; }

.site-header {
  position: sticky;
  z-index: 30;
  top: 0;
  background: rgba(251, 250, 245, .9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 820;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img { width: 42px; height: 42px; }
.brand small { display: block; color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.primary-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 32px);
  font-size: .9rem;
  font-weight: 700;
}

.primary-nav a { text-decoration: none; }
.primary-nav a:not(.button):hover,
.primary-nav a:not(.button):focus-visible { color: var(--coral); }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.button:hover,
.button:focus-visible { transform: translateY(-2px); }
.button.primary { background: var(--green); color: #fff; box-shadow: 0 12px 30px rgba(17, 61, 58, .18); }
.button.primary:hover,
.button.primary:focus-visible { background: var(--green-2); }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.62); }
.button.light { background: #fff; color: var(--green); }

.pilot-bar {
  padding: 9px 20px;
  background: var(--green);
  color: #dff5ef;
  text-align: center;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .02em;
}

.pilot-bar a { color: #fff; text-underline-offset: 3px; }

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 8vw, 120px) 0 84px;
  background:
    radial-gradient(circle at 80% 12%, rgba(130, 203, 187, .38), transparent 28%),
    radial-gradient(circle at 10% 92%, rgba(226, 111, 82, .12), transparent 28%),
    linear-gradient(145deg, #fbfaf5, #eef6f2);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: linear-gradient(rgba(17,61,58,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(17,61,58,.07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, transparent, #000 68%, transparent);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .78fr);
  align-items: center;
  gap: clamp(48px, 7vw, 92px);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--coral);
  font-size: .75rem;
  font-weight: 900;
  letter-spacing: .13em;
  text-transform: uppercase;
}

h1, h2, h3 { margin: 0; line-height: 1.04; letter-spacing: -.045em; }
h1 { max-width: 720px; font-size: clamp(3rem, 6vw, 5.65rem); }
h2 { font-size: clamp(2.2rem, 4vw, 4.1rem); }
h3 { font-size: 1.35rem; letter-spacing: -.025em; }

.hero-lede {
  max-width: 670px;
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 9px 18px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 650;
}

.hero-note span::before { content: "✓"; margin-right: 7px; color: var(--green-2); font-weight: 900; }

.workspace-preview {
  position: relative;
  padding: 18px;
  border: 1px solid rgba(17, 61, 58, .13);
  border-radius: 28px;
  background: rgba(255, 255, 255, .82);
  box-shadow: var(--shadow);
}

.workspace-preview::before {
  content: "";
  position: absolute;
  inset: 14px -18px -18px 24px;
  z-index: -1;
  border-radius: 28px;
  background: var(--mint-2);
  transform: rotate(2deg);
}

.preview-top { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 5px 4px 18px; }
.preview-title { display: flex; align-items: center; gap: 10px; font-weight: 850; }
.preview-title i { width: 11px; height: 11px; border-radius: 50%; background: #53b59d; box-shadow: 0 0 0 5px #daf0ea; }
.preview-date { color: var(--muted); font-size: .75rem; font-weight: 700; }
.preview-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin-bottom: 14px; }
.preview-summary div { padding: 12px; border-radius: 13px; background: #f3f7f5; }
.preview-summary strong { display: block; font-size: 1.35rem; }
.preview-summary span { color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; }
.patient-list { display: grid; gap: 9px; }
.patient-row { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.patient-row .initial { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 12px; background: var(--mint); color: var(--green); font-size: .78rem; font-weight: 900; }
.patient-row strong { display: block; font-size: .86rem; }
.patient-row small { display: block; color: var(--muted); font-size: .7rem; }
.status { padding: 6px 9px; border-radius: 999px; background: #dff3ed; color: #216b5d; font-size: .65rem; font-weight: 900; text-transform: uppercase; }
.status.waiting { background: #faebd2; color: #8a5b16; }
.status.sent { background: #edf1ef; color: #5f706d; }
.status.delivery { background: #e8e4f8; color: #574794; }

.section { padding: clamp(76px, 9vw, 118px) 0; }
.section.alt { background: var(--cream); }
.section.deep { background: var(--green); color: #fff; }
.section-heading { max-width: 800px; margin-bottom: 44px; }
.section-heading p:last-child { max-width: 690px; margin: 20px 0 0; color: var(--muted); font-size: 1.08rem; }
.deep .section-heading p:last-child { color: #c7dfda; }
.deep .eyebrow,
.cta-card .eyebrow { color: #f4aa96; }

.answer-box {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: .42fr 1fr;
  gap: 32px;
  align-items: start;
  margin-top: -34px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 50px rgba(16,45,43,.08);
}

.answer-box strong { color: var(--coral); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.answer-box p { margin: 0; color: var(--ink-2); font-size: 1.08rem; }

.problem-grid,
.feature-grid,
.principle-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 15px; }
.problem-grid article,
.feature-card,
.principle-grid article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.68); }
.number { display: inline-flex; width: 38px; height: 38px; align-items: center; justify-content: center; margin-bottom: 28px; border-radius: 11px; background: var(--mint); color: var(--green); font-size: .78rem; font-weight: 900; }
.problem-grid p,
.feature-card p,
.principle-grid p { margin: 13px 0 0; color: var(--muted); }

.suite-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
}

.module-card {
  position: relative;
  display: flex;
  min-height: 340px;
  flex-direction: column;
  padding: clamp(25px, 4vw, 38px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.module-card::after {
  content: "";
  position: absolute;
  right: -60px;
  bottom: -90px;
  width: 210px;
  height: 210px;
  border: 1px solid rgba(17, 61, 58, .09);
  border-radius: 50%;
}

.module-card:hover,
.module-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(17, 61, 58, .34);
  box-shadow: 0 22px 60px rgba(16,45,43,.1);
  outline: none;
}

.module-number {
  position: absolute;
  top: 28px;
  right: 30px;
  color: #607773;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .08em;
}

.module-card .tag {
  color: var(--coral);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.module-card h3 {
  max-width: 440px;
  margin-top: 40px;
  font-size: clamp(2rem, 3.3vw, 3.2rem);
}

.module-card p {
  position: relative;
  z-index: 1;
  max-width: 540px;
  margin: 17px 0 30px;
  color: var(--muted);
}

.module-card > b {
  position: relative;
  z-index: 1;
  margin-top: auto;
  color: var(--green-2);
  font-size: .83rem;
}

.workflow { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1px; overflow: hidden; border: 1px solid rgba(255,255,255,.17); border-radius: var(--radius); background: rgba(255,255,255,.17); }
.workflow article { position: relative; min-height: 285px; padding: 27px; background: var(--green); }
.workflow .step { color: #83d4c3; font-size: .72rem; font-weight: 900; letter-spacing: .1em; }
.workflow h3 { margin-top: 54px; color: #fff; font-size: 1.7rem; }
.workflow p { color: #c7dfda; }
.care-lifecycle { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.care-lifecycle article { min-height: 320px; padding: 24px; }
.care-lifecycle h3 { font-size: 1.48rem; }

.split { display: grid; grid-template-columns: minmax(280px,.75fr) minmax(0,1.15fr); gap: clamp(44px, 8vw, 105px); align-items: start; }
.sticky-copy { position: sticky; top: 120px; }
.sticky-copy p:last-child { color: var(--muted); }
.stack { display: grid; gap: 14px; }
.feature-card { background: #fff; }
.feature-card .tag { display: block; margin-bottom: 19px; color: var(--coral); font-size: .7rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.boundary {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(280px,.65fr);
  gap: 35px;
  align-items: center;
  padding: clamp(30px,5vw,58px);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}

.boundary p { color: var(--muted); }
.boundary-list { display: grid; gap: 10px; }
.boundary-list div { padding: 15px 17px; border-radius: 13px; background: #f2f7f5; font-size: .86rem; font-weight: 760; }
.boundary-list div::before { content: "✓"; margin-right: 10px; color: var(--green-2); }

.faq { display: grid; gap: 10px; max-width: 900px; }
.faq details { padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 820; }
.faq p { margin: 14px 0 0; color: var(--muted); }

.cta-band { padding: 0 0 clamp(76px,9vw,118px); }
.cta-card { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 30px; padding: clamp(34px,6vw,70px); border-radius: 28px; background: var(--green); color: #fff; overflow: hidden; }
.cta-card p { max-width: 650px; margin: 16px 0 0; color: #c7dfda; }

.site-footer { padding: 46px 0; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.footer-copy { max-width: 480px; margin: 16px 0 0; color: var(--muted); font-size: .82rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 12px 24px; font-size: .82rem; font-weight: 700; }
.footer-links a { text-underline-offset: 4px; }
.copyright { grid-column: 1 / -1; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .76rem; }

.page-hero { padding: clamp(72px,9vw,112px) 0 66px; background: linear-gradient(145deg, #fbfaf5, #edf5f1); }
.page-hero .shell { max-width: 960px; }
.page-hero h1 { max-width: 900px; }
.page-hero p:last-child { max-width: 760px; margin: 24px 0 0; color: var(--ink-2); font-size: 1.2rem; }
.content-grid { display: grid; grid-template-columns: minmax(0,1fr) 280px; gap: clamp(40px,8vw,100px); align-items: start; }
.prose { max-width: 780px; }
.prose h2 { margin-top: 58px; font-size: clamp(1.8rem,3vw,2.8rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 32px; }
.prose p, .prose li { color: var(--muted); }
.prose a { color: var(--green-2); font-weight: 760; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li + li { margin-top: 9px; }
.aside-card { position: sticky; top: 112px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.aside-card strong { display: block; }
.aside-card p { color: var(--muted); font-size: .84rem; }
.aside-card .button { width: 100%; margin-top: 8px; }
.callout { margin: 34px 0; padding: 24px; border-left: 4px solid var(--coral); border-radius: 0 14px 14px 0; background: #fff; }
.callout strong { color: var(--ink); }

@media (max-width: 940px) {
  .primary-nav a:not(.button) { display: none; }
  .hero-grid,
  .split,
  .boundary,
  .content-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .workspace-preview { max-width: 650px; }
  .problem-grid,
  .feature-grid,
  .principle-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .workflow,
  .care-lifecycle { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .sticky-copy,
  .aside-card { position: static; }
  .aside-card { max-width: 520px; }
}

@media (max-width: 640px) {
  :root { --shell: min(100% - 28px, 1180px); }
  .nav-wrap { min-height: 68px; }
  .brand img { width: 38px; height: 38px; }
  .brand small { display: none; }
  .primary-nav .button { min-height: 42px; padding: 0 15px; font-size: .78rem; }
  .hero { padding-top: 62px; }
  .hero-grid { gap: 56px; }
  .hero-actions .button { width: 100%; }
  .hero-note { display: grid; }
  .workspace-preview { padding: 12px; border-radius: 20px; }
  .preview-summary { grid-template-columns: 1fr 1fr; }
  .preview-summary div:last-child { display: none; }
  .patient-row { padding: 11px; }
  .patient-row .initial { width: 34px; height: 34px; }
  .patient-row small { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .status { padding: 5px 7px; font-size: .57rem; }
  .answer-box,
  .problem-grid,
  .feature-grid,
  .principle-grid,
  .suite-grid,
  .workflow,
  .cta-card,
  .footer-grid { grid-template-columns: 1fr; }
  .answer-box { gap: 12px; }
  .workflow article { min-height: 235px; }
  .footer-links { justify-content: flex-start; }
  .cta-card .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
