:root {
  --navy: #122C51;
  --navy-deep: #0C1F3A;
  --navy-hover: #1A3A66;
  --teal: #21B1B1;
  --teal-hover: #2BC0C0;
  --white: #FFFFFF;
  --mist: #F4F5F7;
  --rule: #E8EAED;
  --ink: #1A2030;
  --slate: #5C6470;
  --danger: #C0392B;
  --font: 'Inter', ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; line-height: 1.55; }
img { display: block; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -0.025em; line-height: 1.08; }
figure { margin: 0; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 4px; border-radius: 4px; }
.wrap { width: min(1200px, 100% - 3rem); margin-inline: auto; }

/* Buttons and links */
.btn {
  display: inline-block; font-weight: 600; font-size: 1.02rem; text-decoration: none;
  padding: .95rem 1.5rem; border-radius: 8px; background: var(--teal); color: var(--navy-deep);
  transition: background-color .15s ease;
}
.btn:hover { background: var(--teal-hover); }
.link { font-weight: 500; text-decoration: underline; text-decoration-color: rgba(33,177,177,.7); text-underline-offset: 4px; color: inherit; }
.ask { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }

/* Screen 1 */
.top {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; color: var(--white);
  background:
    radial-gradient(ellipse 60% 55% at 88% 18%, rgba(33,177,177,.16), transparent 60%),
    var(--navy);
}
.bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.word { font-weight: 700; font-size: 1.3rem; letter-spacing: -0.01em; }
.w-health { color: var(--white); }
.w-sync { color: var(--teal); }
.nav { display: flex; align-items: center; gap: 1.75rem; font-size: .95rem; font-weight: 500; }
.nav a { color: rgba(255,255,255,.85); text-decoration: none; }
.nav a:hover { color: var(--white); }
.nav .nav-cta { padding: .55rem 1rem; border-radius: 8px; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.4); }
.nav .nav-cta:hover { box-shadow: inset 0 0 0 1.5px var(--teal); color: var(--teal); }

.hero {
  flex: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center; padding-block: clamp(1.5rem, 4vh, 3rem);
}
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 5rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; max-width: 12ch; }
.lede { margin-top: 1.25rem; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(255,255,255,.8); max-width: 48ch; }
.hero .ask { margin-top: 2rem; }
.hero .link { color: rgba(255,255,255,.9); }

/* The management view, drawn as the product would show it */
.today {
  background: var(--white); color: var(--ink); border-radius: 14px; padding: 1.4rem;
  box-shadow: 0 30px 60px -20px rgba(4,12,28,.55), 0 0 0 1px rgba(255,255,255,.06);
}
.today-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 1px solid var(--rule); }
.today-title { font-weight: 700; color: var(--navy); }
.live { display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; font-weight: 600; color: var(--teal); }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(33,177,177,.18); }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--rule); margin-block: 1rem; border-radius: 10px; overflow: hidden; }
.kpis div { background: var(--white); padding: .85rem .9rem; }
.kpis b { display: block; font-size: 1.55rem; font-weight: 800; color: var(--navy); letter-spacing: -0.02em; }
.kpis span { font-size: .8rem; color: var(--slate); }
.flow-label { font-size: .8rem; color: var(--slate); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 64px; margin-top: .5rem; }
.bars i { flex: 1; height: var(--h); background: linear-gradient(var(--teal), #1A9393); border-radius: 3px 3px 0 0; }
.alert { margin-top: 1rem; padding: .75rem .9rem; border-radius: 8px; background: #FBEDEB; border-left: 3px solid var(--danger); font-size: .85rem; }
.alert strong { display: block; color: var(--danger); font-weight: 700; }
.alert span { color: #6B2A23; }

/* The logo's heartbeat line becomes a patient's visit */
.visit { padding-bottom: 2.25rem; }
.pulse { display: flex; align-items: center; height: 56px; }
.beat { flex: 0 0 140px; height: 56px; overflow: visible; }
.beat path { fill: none; stroke: var(--teal); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 260; stroke-dashoffset: 0; }
.line { position: relative; flex: 1; height: 3px; margin-top: 24px; background: var(--teal); transform-origin: left center; border-radius: 2px; }
.line::after { content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%); border-left: 14px solid var(--teal); border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.stops { list-style: none; margin: -19px 0 0; padding: 0 0 0 140px; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1rem; font-weight: 600; font-size: 1rem; }
.stops li { position: relative; padding-top: 1.4rem; }
.stops li::before { content: ""; position: absolute; top: -4px; left: 0; width: 14px; height: 14px; border-radius: 50%; background: var(--navy); box-shadow: 0 0 0 3px var(--teal); }

@media (prefers-reduced-motion: no-preference) {
  .beat path { animation: draw .9s ease-out .2s backwards; }
  .line { animation: grow 1.3s cubic-bezier(.4,0,.2,1) .9s backwards; }
  .stops li { animation: show .4s ease-out backwards; }
  .stops li:nth-child(1) { animation-delay: 1.05s; }
  .stops li:nth-child(2) { animation-delay: 1.25s; }
  .stops li:nth-child(3) { animation-delay: 1.45s; }
  .stops li:nth-child(4) { animation-delay: 1.65s; }
  .stops li:nth-child(5) { animation-delay: 1.85s; }
  .stops li:nth-child(6) { animation-delay: 2.05s; }
}
@keyframes draw { from { stroke-dashoffset: 260; } }
@keyframes grow { from { transform: scaleX(0); } }
@keyframes show { from { opacity: 0; } }

/* Section headings */
h2 { font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 800; color: var(--navy); max-width: 24ch; }

/* The platform */
.platform { padding-block: clamp(4rem, 9vw, 7rem); }
.sub { margin-top: 1rem; font-size: 1.12rem; color: var(--slate); max-width: 60ch; }
.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.75rem 2.25rem; margin-top: 3.25rem; }
.areas article { padding-top: 1.25rem; border-top: 1px solid var(--rule); }
.areas svg { width: 30px; height: 30px; fill: none; stroke: var(--teal); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.areas h3 { margin-top: .9rem; font-size: 1.15rem; font-weight: 700; color: var(--navy); }
.areas p { margin-top: .5rem; font-size: .96rem; color: var(--slate); }

/* Made for here */
.here { background: var(--mist); padding-block: clamp(3.5rem, 7vw, 5.5rem); }
.here-inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.here ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem 2.25rem; }
.here li { color: var(--slate); font-size: 1rem; }
.here b { display: block; color: var(--navy); font-size: 1.08rem; margin-bottom: .3rem; }

/* The ask */
.demo { background: var(--navy); color: var(--white); padding-block: clamp(4rem, 8vw, 6rem); }
.demo h2 { color: var(--white); }
.demo p { margin-top: 1.1rem; font-size: 1.15rem; color: rgba(255,255,255,.8); max-width: 56ch; }
.demo .ask { margin-top: 2rem; }
.demo .link { color: rgba(255,255,255,.9); }

.foot { background: var(--navy-deep); color: rgba(255,255,255,.6); font-size: .9rem; }
.foot-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-block: 1.5rem; }

/* Tablet */
@media (max-width: 1024px) {
  .areas { grid-template-columns: repeat(2, 1fr); }
  .here-inner { grid-template-columns: 1fr; }
}
/* Phone and small tablet: the visit runs down the page */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .today { max-width: 460px; }
  .nav a:not(.nav-cta) { display: none; }
  .pulse { display: none; }
  .stops { grid-template-columns: 1fr; gap: .9rem; margin-top: .5rem; padding-left: 1.5rem; border-left: 3px solid var(--teal); }
  .stops li { padding-top: 0; }
  .stops li::before { top: .3rem; left: calc(-1.5rem - 8.5px); }
}
@media (max-width: 560px) {
  .areas, .here ul { grid-template-columns: 1fr; }
  .nav .nav-cta { font-size: .85rem; padding: .45rem .75rem; }
  .word { font-size: 1.1rem; }
}

/* 3D stack of product screens in the hero */
.stack { position: relative; perspective: 1600px; min-height: 440px; margin-block: 3rem 4.5rem; display: grid; place-items: center; }
.stack .today { position: relative; z-index: 3; width: min(100%, 440px); transform: rotateY(-12deg) rotateX(5deg); transform-style: preserve-3d; }
.panel {
  position: absolute; z-index: 1; width: 260px; background: var(--white); color: var(--ink);
  border-radius: 12px; padding: 1rem; font-size: .82rem;
  box-shadow: 0 24px 48px -18px rgba(4,12,28,.6);
}
.panel-lab { top: -54px; right: -64px; transform: rotateY(-12deg) rotateX(5deg) translateZ(-120px); opacity: .92; }
.panel-staff { bottom: -78px; left: -36px; width: 230px; z-index: 4; transform: rotateY(-12deg) rotateX(5deg) translateZ(60px); }
.panel-head { font-weight: 700; color: var(--navy); padding-bottom: .55rem; border-bottom: 1px solid var(--rule); margin-bottom: .45rem; }
.worklist { list-style: none; margin: 0; padding: 0; }
.worklist li { display: flex; justify-content: space-between; gap: .75rem; padding: .32rem 0; color: var(--slate); }
.worklist em { font-style: normal; font-weight: 600; font-size: .75rem; padding: .1rem .45rem; border-radius: 999px; white-space: nowrap; }
.worklist .ok { color: #1E6B45; background: #E5F4EC; }
.worklist .run { color: #155E5E; background: #DFF4F4; }
.worklist .wait { color: #8A4A12; background: #FBF0E3; }
.worklist .due { color: var(--danger); background: #FBEDEB; }

@media (prefers-reduced-motion: no-preference) {
  .stack .today { animation: settle 1.1s cubic-bezier(.2,.7,.2,1) .1s backwards; }
  .panel-lab { animation: settle-back 1.1s cubic-bezier(.2,.7,.2,1) .35s backwards; }
  .panel-staff { animation: settle-front 1.1s cubic-bezier(.2,.7,.2,1) .6s backwards; }
  .bars i { animation: rise .8s cubic-bezier(.2,.7,.2,1) backwards; }
  .bars i:nth-child(1) { animation-delay: .7s } .bars i:nth-child(2) { animation-delay: .76s }
  .bars i:nth-child(3) { animation-delay: .82s } .bars i:nth-child(4) { animation-delay: .88s }
  .bars i:nth-child(5) { animation-delay: .94s } .bars i:nth-child(6) { animation-delay: 1s }
  .bars i:nth-child(7) { animation-delay: 1.06s } .bars i:nth-child(8) { animation-delay: 1.12s }
  .bars i:nth-child(9) { animation-delay: 1.18s } .bars i:nth-child(10) { animation-delay: 1.24s }
}
@keyframes settle { from { opacity: 0; transform: rotateY(-28deg) rotateX(14deg) translateY(40px); } }
@keyframes settle-back { from { opacity: 0; transform: rotateY(-28deg) rotateX(14deg) translateZ(-260px); } }
@keyframes settle-front { from { opacity: 0; transform: rotateY(-28deg) rotateX(14deg) translateZ(160px) translateY(30px); } }
@keyframes rise { from { height: 0; } }

@media (max-width: 860px) {
  .stack { min-height: 0; perspective: none; }
  .stack .today { transform: none; }
  .panel { display: none; }
}

/* Inner pages */
.page-top { color: var(--white); background: radial-gradient(ellipse 60% 70% at 88% 0%, rgba(33,177,177,.16), transparent 60%), var(--navy); padding-bottom: clamp(3rem, 7vw, 5rem); }
.page-top h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; letter-spacing: -0.035em; max-width: 18ch; margin-top: clamp(2rem, 5vw, 4rem); }
.page-top .lede { max-width: 60ch; }
.nav a[aria-current="page"] { color: var(--teal); }

.rows { padding-block: clamp(3.5rem, 8vw, 6rem); }
.row { display: grid; grid-template-columns: 64px 1fr 1.2fr; gap: 1.5rem 2.5rem; padding-block: 2.25rem; border-top: 1px solid var(--rule); align-items: start; }
.row:last-child { border-bottom: 1px solid var(--rule); }
.row svg { width: 40px; height: 40px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.row h2 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); }
.row .intro { margin-top: .6rem; color: var(--slate); }
.row ul { margin: 0; padding: 0; list-style: none; display: grid; gap: .65rem; }
.row li { position: relative; padding-left: 1.4rem; color: var(--ink); }
.row li::before { content: ""; position: absolute; left: 0; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }

@media (max-width: 860px) {
  .row { grid-template-columns: 1fr; gap: .9rem; }
}
