:root {
  --ink: #20231f;
  --muted: #555b54;
  --paper: #fbfcf9;
  --line: #dee3da;
  --cobalt: #3449c7;
  --cobalt-dark: #293aa4;
}
body { background: var(--paper); }
.glass-nav {
  --glass-tint: rgb(250 252 255 / .44);
  isolation: isolate;
  background: none;
  border-color: transparent;
  border-radius: 28px;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}
.glass-nav.is-scrolled { --glass-tint: rgb(249 251 255 / .57); }
.glass-nav::before, .glass-nav::after {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
}
.glass-nav::before {
  background: #f9fbfff5;
  border: 1px solid rgb(255 255 255 / .85);
  box-shadow: 0 10px 30px #253c631c, 0 2px 6px #2f41691c,
    inset 0 1px 1px #fff, inset 0 -1px 2px #a6b6e165;
}
.glass-nav::after {
  background: radial-gradient(ellipse 135px 55px at var(--glass-x, 30%) var(--glass-y, 0%),
    rgb(255 255 255 / .75), transparent 90%);
  opacity: .7;
  transition: opacity .24s ease;
}
.glass-nav:hover::after { opacity: 1; }
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-nav::before {
    background: linear-gradient(165deg, rgb(255 255 255 / .44), transparent 54%, rgb(210 223 255 / .15)), var(--glass-tint);
    -webkit-backdrop-filter: blur(18px) saturate(1.65);
    backdrop-filter: blur(18px) saturate(1.65);
  }
}
.nav-links a { transition: background .2s ease, box-shadow .2s ease, color .2s ease; }
.nav-links a:hover, .nav-links a[aria-current="location"] {
  color: #283d9c;
  background: rgb(255 255 255 / .54);
  box-shadow: inset 0 1px 1px rgb(255 255 255 / .86), 0 1px 3px rgb(66 90 143 / .12);
}
.nav-cta, .mobile-toggle { transition: background .22s ease, box-shadow .22s ease, transform .22s ease; }
.nav-cta:hover { box-shadow: 0 4px 13px #3449c74d; }
.nav-cta:active, .mobile-toggle:active { transform: scale(.96); }
.nav-progress { height: 1px; inset-inline: 25px; box-shadow: 0 0 5px #7c91df8a; }
.hero-section {
  isolation: isolate;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid #dfe5e8;
  background: radial-gradient(ellipse 75% 50% at 50% 91%, #e6edff, transparent 94%), #fff;
}
.hero-section::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 max(22px, calc((100vw - 1200px) / 2));
  border-inline: 1px solid #dce5f0;
  background:
    linear-gradient(#7c9abd16 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(90deg, #7c9abd16 1px, transparent 1px) 0 0 / 30px 30px;
  mask-image: linear-gradient(0deg, #000, #0004 64%, #0000 92%);
}
.hero { display: block; min-height: 0; padding: 124px 0 50px; }
.hero-copy { padding-bottom: 0; text-align: center; }
.hero-copy > * { animation: iris-illustration-in .62s cubic-bezier(.2,.7,.25,1) both; }
.hero-copy h1 { animation-delay: .05s; }
.hero-copy .hero-description { animation-delay: .11s; }
.hero-copy .hero-actions { animation-delay: .16s; }
.hero-copy .hero-note { animation-delay: .20s; }
.hero-copy .eyebrow, .hero-actions, .hero-note { justify-content: center; }
.hero h1 {
  margin: 14px auto 16px;
  max-width: 1020px;
  font-size: clamp(44px, 5.6vw, 78px);
  line-height: 1.03;
  font-weight: 765;
  letter-spacing: -.062em;
  text-wrap: balance;
}
.hero h1 em { color: #354bc0; }
.hero-description { max-width: 580px; margin-inline: auto; font-size: clamp(15px,1.6vw,19px); }
.hero-actions { margin-top: 19px; gap: 7px; }
.hero-actions .button { min-height: 45px; border-radius: 9px; font-size: 13px; }
.hero-actions .secondary { color: #293547; background: white; border: 1px solid #d8dedc; }
.hero-actions .secondary:hover { background: #f4f6f8; }
.hero-note { margin-top: 11px; }
.hero-illustration {
  max-width: 830px;
  margin: 14px auto 0;
  animation: iris-illustration-in .75s .12s cubic-bezier(.2,.7,.25,1) both;
}
.hero-illustration img { display: block; width: 100%; height: auto; }
.hero-illustration figcaption {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 5px 15px;
  color: #435581;
  font-size: 11px;
  font-weight: 730;
}
.hero-illustration figcaption span + span::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  margin: 0 8px 2px 0;
  background: #91a3dc;
}
.closing-inner [hidden] { display: none; }
@keyframes iris-illustration-in {
  from { opacity: .45; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-illustration, .hero-copy > * { animation: none; }
}

.platform-section { padding-block: 84px 64px; }
.platform-intro { max-width: 860px; margin: 0 auto 28px; text-align: center; }
.platform-intro .eyebrow { justify-content: center; }
.platform-intro h2, .workspace-header h2 { margin-top: 9px; font-size: clamp(33px,5vw,62px); font-weight: 765; letter-spacing: -.059em; line-height: 1.04; text-wrap: balance; }
.feature-story { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: clamp(20px,5vw,78px); align-items: center; padding: 24px 0; border-top: 1px solid #e0e5dd; }
.feature-story.in-view { animation: none; }
.feature-story.in-view .story-copy { animation: iris-illustration-in .56s cubic-bezier(.2,.7,.25,1) both; }
.feature-story.in-view .story-art { animation: iris-illustration-in .65s .09s cubic-bezier(.2,.7,.25,1) both; }
.story-reverse { grid-template-columns: minmax(0,1.14fr) minmax(0,.86fr); }
.story-reverse .story-art { grid-column: 1; grid-row: 1; }
.story-copy { max-width: 490px; padding: 10px 0; }
.story-index { display: flex; gap: 7px; align-items: center; color: #4b5d8a; font-size: 10px; letter-spacing: .105em; font-weight: 810; }
.story-index span { width: 17px; height: 1px; background: #a2b2d4; }
.story-copy h3 { margin: 9px 0; font-size: clamp(24px,3.45vw,48px); font-weight: 760; line-height: 1.08; letter-spacing: -.052em; text-wrap: balance; }
.story-copy > p:not(.story-index) { max-width: 405px; color: var(--muted); font-size: 15px; line-height: 1.48; }
.story-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.story-link { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; margin-top: 10px; color: #3449a5; font-weight: 770; font-size: 13px; }
.story-link .icon { width: 15px; height: 15px; }
.story-art { min-height: 263px; display: grid; align-items: center; padding: clamp(10px,3vw,32px); border: 1px solid #dce5fa; border-radius: 17px; background: linear-gradient(140deg,#f1f5ff,#e4ecfc); }
.story-art-agenda { border-color: #e5e7d9; background: linear-gradient(140deg,#f7f7ec,#eeeddc); }
.story-art-care { border-color: #dcece4; background: linear-gradient(140deg,#f0f9f3,#e1f2ea); }
.story-window { overflow: hidden; border: 1px solid #e1e5e5; border-radius: 10px; background: white; box-shadow: 0 11px 26px #30466715; transition: box-shadow .25s ease; }
.story-art:hover .story-window { box-shadow: 0 14px 32px #30466728; }
.story-window-bar { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 6px 8px; border-bottom: 1px solid #ebeee9; }
.story-window-bar > div { display: flex; align-items: center; gap: 5px; }
.story-window-bar strong { font-size: 12px; }
.story-window-bar > span { font-size: 9px; color: #5b655e; text-align: right; }
.story-window-icon { width: 23px; height: 23px; border-radius: 6px; }
.story-window-icon .icon { width: 12px; height: 12px; }
.story-kanban { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 5px; min-height: 154px; padding: 7px; }
.story-column { min-width: 0; padding: 5px; border-radius: 6px; background: #f2f4f5; }
.story-column > div { display: flex; align-items: center; gap: 4px; color: #455252; font-size: 9px; font-weight: 750; padding: 1px 1px 5px; }
.story-column > div > i { width: 5px; height: 5px; border-radius: 50%; background: #6884bc; flex: none; }
.story-column:nth-child(2) > div > i { background: #ad8034; }
.story-column:nth-child(3) > div > i { background: #5c946e; }
.story-column > div > small { margin-left: auto; font-size: 8px; }
.story-column section { padding: 5px; min-height: 33px; border: 1px solid #e3e6e7; border-radius: 5px; background: white; }
.story-column section + section { margin-top: 4px; }
.story-column section strong, .story-column section span, .story-column section small { display: block; font-size: 9px; overflow-wrap: anywhere; }
.story-column section span { margin-top: 2px; font-size: 8px; color: #5c665f; }
.story-column .story-highlight { background: #eef2ff; border-color: #b5c2f2; }
.story-column section small { margin-top: 5px; color: #3b4c80; font-size: 8px; }
.story-column section small > i { display: inline-grid; place-items: center; width: 13px; height: 13px; border-radius: 4px; background: #dbe3fc; font-size: 6px; font-style: normal; font-weight: 760; }
.story-agenda > div, .story-alert { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 6px; min-height: 34px; padding: 5px 8px; border-bottom: 1px solid #eef0e9; }
.story-agenda .story-highlight { background: #fff9e8; }
.story-agenda time { color: #435347; font-weight: 750; font-size: 10px; }
.story-agenda strong, .story-alert strong, .story-record strong { display: block; font-size: 10px; }
.story-agenda small, .story-alert small, .story-record small { display: block; margin-top: 2px; color: #5f675d; font-size: 9px; }
.story-alert { margin: 6px; border: 1px solid #e0e5f4; border-radius: 6px; background: #f3f5fe; }
.story-alert .icon { width: 15px; height: 15px; color: #455aaf; }
.story-alert .pill, .story-agenda .pill { font-size: 8px; }
.story-record { display: flex; align-items: center; gap: 7px; padding: 8px; margin: 7px; border: 1px solid #e4eee5; border-radius: 7px; background: #f0f7f1; }
.story-record .story-window-icon { color: #27674a; background: #e0f0e6; }
.story-outputs { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 5px; margin: 7px; }
.story-outputs > div { display: grid; gap: 4px; padding: 7px; border: 1px solid #e2ebe5; border-radius: 6px; color: #26533c; background: #f7faf8; }
.story-outputs .icon { width: 15px; height: 15px; }
.story-outputs span { font-size: 9px; }
.story-outputs strong { font-size: 11px; }
.platform-note { border-top: 1px solid #e0e5dd; padding-top: 9px; color: #5e665f; font-size: 11px; }

.demo-section { background: linear-gradient(140deg,#eff4fb,#f6f8f7 86%); border-color: #dfe8ef; }
.demo-sidebar, .control-section { background: #252522; }
.demo-workspace { background: #f5f4ef; }
.demo-nav button[aria-pressed="true"] { background: #f5f4eb; }
.scenario-picker { grid-template-columns: repeat(5,minmax(0,1fr)); }
.scenario-picker button { grid-template-columns: auto minmax(0,1fr); border-color: #dce3ec; background: #fafcfd; }
.scenario-picker button { transition: background .22s ease, border-color .22s ease, box-shadow .22s ease; }
.scenario-number .icon { width: 14px; height: 14px; }
.finance-settlement { flex-wrap: wrap; }
.finance-settlement .demo-select { min-width: 128px; }
.crm-item.crm-current { background: #eef1ff; border-color: #b9c4f4; }
.closing-inner { background: #283b87; }

.workspace-section { padding-block: 83px 74px; }
.workspace-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 21px; }
.workspace-header > p { max-width: 250px; color: var(--muted); font-size: 14px; line-height: 1.45; }
.workspace-header h2 { max-width: 720px; }
.workspace-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }
.workspace-card {
  --scene-tint: #e9efff;
  --scene-ink: #344998;
  padding: clamp(12px,1.8vw,20px);
  display: grid;
  min-width: 0;
  gap: 12px;
  border: 1px solid #e1daed;
  border-radius: 17px;
  background: linear-gradient(140deg,var(--scene-tint),#fdfcfd 80%);
  transition: box-shadow .22s, border-color .22s;
}
.workspace-card:hover { border-color: #c3b4e2; box-shadow: 0 10px 26px #39305d16; }
.workspace-records { --scene-tint: #eef1fb; --scene-ink: #4b4790; }
.workspace-finance { --scene-tint: #e0f1ea; --scene-ink: #29624d; }
.workspace-card-head, .workspace-footer > div { display: flex; align-items: center; gap: 8px; }
.workspace-symbol { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--scene-tint,#e9efff); color: var(--scene-ink,#344998); flex: none; }
.workspace-symbol .icon { width: 17px; height: 17px; }
.workspace-card-head h3 { font-size: 16px; letter-spacing: -.025em; }
.workspace-card-head p { color: #60596c; font-size: 12px; line-height: 1.35; margin-top: 4px; }
.migration-section {
  background: radial-gradient(ellipse at 85% 10%, #e3e8ff 0%, transparent 56%), #f3f3f9;
  padding-block: clamp(36px, 6vw, 84px);
  border-top: 1px solid #e6e3f1;
}
.migration-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(20px, 4vw, 62px); align-items: center; }
.migration-copy h2 {
  max-width: 15ch;
  font-size: clamp(34px, 5vw, 62px);
  letter-spacing: -.06em;
  line-height: 1.03;
  margin-top: 10px;
}
.migration-copy > p:not(.eyebrow) { color: var(--muted); max-width: 43ch; margin-top: 14px; line-height: 1.6; }
.migration-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 21px 0 0; }
.migration-steps li {
  display: flex; align-items: center; gap: 6px; padding: 6px 9px 6px 6px;
  border: 1px solid #dedcf0; border-radius: 100px; background: #fff; font-size: 12px; font-weight: 650;
}
.migration-steps li span { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; background: #e9edff; color: #344998; }
.migration-areas { display: grid; gap: 8px; }
.migration-areas article {
  display: flex; align-items: flex-start; gap: 11px; padding: 14px;
  border: 1px solid #e0ddf0; border-radius: 13px; background: #ffffffd9;
}
.migration-areas h3 { font-size: 15px; }
.migration-areas article p, .migration-formats { margin-top: 4px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.migration-formats { padding-inline: 4px; }
@media (max-width: 760px) {
  .migration-inner { grid-template-columns: 1fr; }
}
.workspace-window { overflow: hidden; min-height: 130px; border: 1px solid #ebe6ef; border-radius: 10px; background: white; }
.workspace-window-head { padding: 8px; min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 4px; border-bottom: 1px solid #ede8f2; font-size: 11px; }
.workspace-window-head span { color: #6c6376; font-size: 9px; text-align: right; }
.agenda-preview-row, .patient-preview li { display: grid; align-items: center; grid-template-columns: auto minmax(0,1fr) auto; gap: 5px; min-height: 32px; padding: 4px 7px; border-bottom: 1px solid #f0edf2; font-size: 10px; }
.agenda-preview-row:last-child, .patient-preview li:last-child { border-bottom: 0; }
.agenda-preview-row time, .patient-preview small { color: #6c6078; font-size: 9px; }
.agenda-preview-row .pill { font-size: 8px; padding: 4px 5px; }
.patient-preview { margin: 0; padding: 0; list-style: none; }
.patient-preview li > span { width: 7px; height: 7px; border-radius: 50%; background: #9e8ee6; }
.cash-preview { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 9px 8px 7px; }
.cash-preview small, .cash-preview strong { display: block; }
.cash-preview small { font-size: 9px; color: #645e6a; }
.cash-preview strong { margin-top: 4px; font-size: 19px; letter-spacing: -.045em; }
.cash-line { display: flex; gap: 3px; margin-inline: 8px; }
.cash-line span { height: 6px; border-radius: 8px; background: #4b936f; flex: 3; }
.cash-line span + span { flex: 2; background: #d7c7f5; }
.cash-legend { display: flex; justify-content: space-between; color: #6b626f; font-size: 9px; margin: 6px 8px; }
.workspace-card > a { display: flex; align-items: center; justify-content: space-between; gap: 5px; color: var(--scene-ink); font-size: 12px; font-weight: 780; min-height: 32px; }
.workspace-card > a:hover, .workspace-footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
.workspace-card > a .icon, .workspace-footer a .icon { width: 15px; height: 15px; }
.workspace-footer { margin-top: 12px; padding: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #e4ddef; border-radius: 12px; background: #fbf9ff; }
.workspace-footer strong { font-size: 13px; }
.workspace-footer p { margin-top: 3px; color: #625a71; font-size: 11px; line-height: 1.4; }
.workspace-footer a { flex: none; color: #594285; font-size: 12px; }

@media (max-width: 1000px) {
  .scenario-picker { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 800px) {
  .hero { padding: 106px 0 37px; }
  .hero h1 { font-size: clamp(36px,6.25vw,55px); }
  .platform-section { padding-block: 57px 43px; }
  .workspace-section { padding-block: 54px; }
  .workspace-card { gap: 8px; }
  .story-art { min-height: 217px; }
}
@media (max-width: 620px) {
  .glass-nav { border-radius: 21px; }
  .mobile-toggle {
    border-color: rgb(255 255 255 / .8);
    background: rgb(255 255 255 / .39);
    box-shadow: inset 0 1px 1px #fff, 0 1px 3px #2b416321;
  }
  .mobile-toggle path { transition: transform .24s cubic-bezier(.2,.75,.26,1); }
  .mobile-toggle path:first-child { transform-origin: 12px 8px; }
  .mobile-toggle path:last-child { transform-origin: 12px 16px; }
  .mobile-toggle[aria-expanded="true"] path:first-child { transform: translateY(4px) rotate(45deg); }
  .mobile-toggle[aria-expanded="true"] path:last-child { transform: translateY(-4px) rotate(-45deg); }
  .nav-links {
    display: grid;
    inset: calc(100% + 8px) 0 auto;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-5px) scale(.98);
    transform-origin: 82% 0;
    border-radius: 18px;
    border-color: rgb(255 255 255 / .83);
    background: #f8fafff6;
    box-shadow: inset 0 1px 1px #fff, 0 8px 25px #30446b24;
    transition: opacity .19s ease, transform .24s cubic-bezier(.2,.75,.26,1), visibility 0s .24s;
  }
  .mobile-toggle[aria-expanded="true"] + .nav-links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }
  @supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .nav-links {
      background: linear-gradient(155deg, #ffffffa3, #edf2ff47), #f7faff70;
      -webkit-backdrop-filter: blur(21px) saturate(1.5);
      backdrop-filter: blur(21px) saturate(1.5);
    }
  }
  .hero { padding: 88px 0 23px; }
  .hero h1 { margin: 10px auto 11px; }
  .hero-description { max-width: 385px; font-size: 14px; }
  .hero-actions { margin-top: 14px; }
  .hero-actions .button { min-height: 40px; padding-inline: 9px; font-size: 11px; gap: 5px; }
  .hero-actions .icon { width: 14px; height: 14px; }
  .hero-note { margin-top: 8px; font-size: 11px; }
  .hero-illustration { margin-top: 16px; }
  .hero-illustration figcaption { gap: 5px 9px; font-size: 10px; }
  .platform-section { padding-block: 36px 28px; }
  .platform-intro { margin-bottom: 12px; text-align: left; }
  .platform-intro .eyebrow { justify-content: flex-start; }
  .feature-story, .story-reverse { grid-template-columns: minmax(0,1fr); gap: 8px; padding: 13px 0; }
  .story-reverse .story-art { grid-column: auto; grid-row: auto; }
  .story-copy { padding: 0; }
  .story-copy > p:not(.story-index) { font-size: 14px; }
  .story-art { min-height: 182px; border-radius: 12px; }
  .scenario-picker { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .scenario-picker button { grid-template-columns: auto minmax(0,1fr); }
  .workspace-section { padding-block: 40px; }
  .workspace-header { display: block; margin-bottom: 13px; }
  .workspace-header > p { margin-top: 7px; }
  .workspace-grid { grid-template-columns: minmax(0,1fr); gap: 8px; }
  .workspace-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .feature-story.in-view .story-copy, .feature-story.in-view .story-art { animation: none; }
  .nav-cta:active, .mobile-toggle:active { transform: none; }
  .nav-links { transition: none; }
}
