.hero .hero-actions { justify-content: center; }
.hero .hero-actions .button {
  min-height: 54px;
  padding-inline: clamp(19px, 5vw, 34px);
  box-shadow: 0 10px 23px #192b4052, 0 2px 5px #1020303d;
}
.hero .hero-actions .button:focus-visible { outline-offset: 5px; }
.hero-demo-link { margin-top: 12px; min-height: 44px; align-items: center; }

.workflow-stage.showcase-stage { display: block; min-height: 0; padding: clamp(9px, 2.3vw, 27px); }
.workflow-window { padding: 0; min-height: 0; background: var(--surface-raised); }
.workflow-desk { border-radius: inherit; overflow: hidden; }
.workflow-desk-head {
  display: grid; grid-template-columns: 35px minmax(0,1fr) auto; gap: 9px;
  align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line);
}
.workflow-desk-icon {
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 8px; color: #2d576e; background: #e9f2f6;
}
.workflow-desk-icon svg { width: 16px; height: 16px; }
.workflow-desk-head h3 { font-size: 1rem; line-height: 1.15; margin: 0 0 3px; }
.workflow-desk-head p { margin: 0; font-size: .75rem; color: var(--muted); line-height: 1.2; }
.workflow-record-count {
  white-space: nowrap; padding: 4px 7px; border: 1px solid var(--line);
  border-radius: 5px; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums;
}
.workflow-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.05fr); }
.workflow-queue { min-width: 0; border-right: 1px solid var(--line); align-self: stretch; }
.workflow-queue table { width: 100%; border-spacing: 0; font-size: .78rem; line-height: 1.2; text-align: left; }
.workflow-queue :is(td,th) { padding: 7px 8px; }
.workflow-queue :is(td,th):first-child { padding-inline-start: 14px; }
.workflow-queue :is(td,th):last-child { padding-inline-end: 12px; }
.workflow-queue thead th {
  background: color-mix(in srgb, var(--ink) 4%, var(--surface-raised)); text-align: left;
  color: var(--muted); font-size: .66rem; letter-spacing: .035em;
}
.workflow-queue tbody :is(td,th) { border-top: 1px solid var(--line); }
.workflow-queue tbody td:first-child { color: var(--muted); font-size: .7rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.workflow-queue tbody th { font-weight: 600; text-align: left; }
.workflow-queue tbody th small { display: block; color: var(--muted); font-weight: 400; font-size: .67rem; margin-top: 2px; }
.workflow-row-follow { background: #e6f0f6; }
.workflow-row-follow > td:first-child { box-shadow: inset 3px 0 #548ba4; }
.queue-status {
  display: inline-block; border-radius: 4px; padding: 3px 6px;
  font-size: .69rem; font-weight: 600; line-height: 1.16; color: #2b566d; background: #e7eff6;
}
.queue-status[data-tone="green"] { color: #285b46; background: #e6f1eb; }
.queue-status[data-tone="amber"] { color: #804c27; background: #f7eee4; }
.workflow-detail { display: flex; flex-direction: column; min-width: 0; }
.workflow-detail-inner { min-width: 0; }
.workflow-frame + .workflow-frame { border-top: 1px solid var(--line); }
.workflow-frame { min-width: 0; }
.workflow-frame .preview-window-bar { gap: 6px; flex-wrap: wrap; padding: 10px 13px; }
.workflow-ref { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .7rem; white-space: nowrap; }
.workflow-ref > span { margin-left: 4px; }
.is-scroll-demo .workflow-detail-inner { display: grid; }
.is-scroll-demo .workflow-frame {
  grid-area: 1 / 1; visibility: hidden; border: 0; background: var(--surface-raised);
}
.is-scroll-demo .workflow-frame[data-active] { visibility: visible; z-index: 1; }
.js .workflow-story:not(.is-scroll-demo) .workflow-frame:not(:first-child) { display: none; }
.workflow-activity {
  flex: 1; padding: 10px 13px 12px; border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink) 3%, var(--surface-raised));
}
.workflow-activity-title { display: flex; align-items: center; gap: 6px; font-size: .75rem; margin-bottom: 5px; }
.workflow-activity-title svg { width: 15px; height: 15px; color: #587b8a; }
.workflow-activity ol { list-style: none; padding: 0; margin: 0; }
.workflow-activity li {
  position: relative; padding-inline-start: 14px; line-height: 1.25;
  color: var(--muted); font-size: .72rem; margin-bottom: 4px;
}
.workflow-activity li::before {
  content: ""; position: absolute; top: .62em; left: 2px; width: 5px; height: 5px;
  border-radius: 50%; background: #8a9eaa;
}
.workflow-activity li[data-event-current] { color: var(--ink); font-weight: 600; }
.workflow-activity li[data-event-current]::before { background: #476e83; }
.is-scroll-demo .workflow-row-follow:has(.queue-status[data-tone]) { transition: background-color .25s; }
.is-scroll-demo .workflow-row-follow:has(.queue-status[data-tone="green"]) { background: #e3eee9; }
:root[data-theme="dark"] .workflow-row-follow { background: #2b4351; }
:root[data-theme="dark"] .is-scroll-demo .workflow-row-follow:has(.queue-status[data-tone="green"]) { background: #294139; }
:root[data-theme="dark"] .queue-status { color: #d2e7f4; background: #304956; }
:root[data-theme="dark"] .queue-status[data-tone="green"] { color: #cfebdc; background: #315347; }
:root[data-theme="dark"] .queue-status[data-tone="amber"] { color: #f5dcc4; background: #544135; }
.mock-pane {
  --mock-line: var(--line);
  --mock-background: var(--surface-raised);
  padding: 13px;
  max-width: 560px;
  margin-inline: auto;
}
.mock-pane h3 { font-size: clamp(1rem, 1.85vw, 1.25rem); margin: 0 0 9px; }
.mock-fields { display: grid; gap: 6px; }
.mock-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2px 12px;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--mock-line);
  border-radius: 5px;
  line-height: 1.35;
  font-size: .8125rem;
}
.mock-row > span { color: var(--muted); }
.mock-row strong { font-weight: 600; }
.mock-worklist .mock-row { border-width: 0 0 1px; border-radius: 0; padding-inline: 0; }
.mock-status { margin: 10px 0 0; font-size: .75rem; color: var(--muted); }
.mock-bubble { width: min(100%, 390px); margin-left: auto; padding: 8px 11px; border-radius: 9px 9px 2px 9px; background: #e7f0f7; color: #233b4b; }
.mock-bubble p { font-size: .875rem; margin: 0; line-height: 1.4; }
.mock-message .mock-status { text-align: right; }
.mock-message-action { display: block; font-size: .8125rem; font-weight: 600; margin-top: 4px; color: #234c6b; }
.mock-pane-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.mock-pane-heading > span { font-size: .8125rem; color: var(--muted); }
.mock-slot { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 8px; font-size: .8125rem; }
.mock-slot time { white-space: nowrap; font-variant-numeric: tabular-nums; }
.mock-slot > div { padding: 6px 9px; background: #e9f2ed; color: #214836; border-inline-start: 3px solid #548773; border-radius: 4px; }
.mock-slot strong, .mock-slot span { display: block; }
.mock-slot span { font-size: .75rem; }
.mock-calendar-line { margin: 10px 0 0; border-bottom: 1px solid var(--mock-line); }
:root[data-theme="dark"] .mock-bubble { color: #e1edf5; background: #314853; }
:root[data-theme="dark"] .mock-message-action { color: #c2dafa; }
:root[data-theme="dark"] .mock-slot > div { color: #cae2d3; background: #2d443e; }
.workflow-progress {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  list-style: none;
  gap: 4px;
  padding: 0;
  margin: 14px 0 0;
  font-size: clamp(.625rem, 2.6vw, .875rem);
}
.workflow-progress li { min-width: 0; }
.workflow-progress button {
  width: 100%; min-height: 38px; padding: 5px 2px; border: 0; cursor: pointer;
  text-align: center; font: inherit; background: #f5fafbeb; color: #314d5f; border-radius: 5px;
}
.workflow-progress li[aria-current] button { color: white; background: #304f61; font-weight: 600; }
.workflow-progress button:focus-visible { outline: 2px solid #254e6b; outline-offset: 2px; }
.workflow-story:not(.is-scroll-demo) .workflow-progress { display: none; }

.hero-tools {
  position: relative; z-index: 3; margin: clamp(21px, 4vw, 35px) auto 0;
  width: min(100%, 1000px); padding: 11px 0; text-align: center;
  border-radius: 14px; background: #f4f8f8eb; color: #30414c;
}
.hero-tools-header { position: relative; padding: 1px 75px; }
.hero-tools p { margin: 0; font-size: .8125rem; }
.hero-tools-control {
  position: absolute; inset-inline-end: 9px; top: 50%; translate: 0 -50%;
  padding: 4px 7px; min-height: 30px; color: inherit;
  background: transparent; border: 0; border-radius: 5px; cursor: pointer;
  font: inherit; font-size: .69rem;
}
.hero-tools-control:hover { background: #7690a124; }
.logo-viewport { overflow: hidden; margin-top: 8px; mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent); }
.logo-track { display: flex; width: max-content; }
.hero-tools[data-logos-ready] .logo-track { animation: tool-ticker 46s linear infinite; }
.hero-tools:not([data-logos-ready]) .logo-track { width: 100%; }
.hero-tools:not([data-logos-ready]) .hero-tool-marks { width: 100%; flex-wrap: wrap; justify-content: center; }
.hero-tools:not([data-logos-ready]) .hero-tool-marks[aria-hidden] { display: none; }
.hero-tool-marks { display: flex; flex: none; list-style: none; align-items: center; padding: 0; margin: 0; }
.hero-tool-marks li { display: grid; place-items: center; width: clamp(116px, 14.3vw, 159px); height: 38px; }
.hero-tool-marks img { display: block; width: min(87%, 113px); height: 23px; object-fit: contain; opacity: .65; filter: grayscale(1) brightness(0); }
.hero-tool-marks img[alt="NexHealth"] { filter: grayscale(1) invert(1); }
.hero-tools[data-logos-ready][data-logos-paused] .logo-track { animation-play-state: paused; }
@keyframes tool-ticker { from { transform: translateX(-50%); } to { transform: translateX(0); } }
:root[data-theme="dark"] .hero-tools { background: #23313a; color: #e0e9ef; }
:root[data-theme="dark"] .hero-tool-marks img { filter: brightness(0) invert(1); }
:root[data-theme="dark"] .hero-tool-marks img[alt="NexHealth"] { filter: grayscale(1); }
.hero-trust {
  position: relative; z-index: 3; display: grid; justify-items: center; gap: 8px;
  width: min(100%, 1000px); margin: 10px auto 0; padding: 13px 12px;
  border: 1px solid #dce9efb8; border-radius: 12px; background: #f4f8f8ed;
  color: #30414c; text-align: center;
}
.hero-trust p { font-size: .75rem; color: inherit; margin: 0; }
.hero-trust ul { display: flex; justify-content: center; flex-wrap: wrap; gap: 5px 8px; list-style: none; margin: 0; padding: 0; }
.hero-trust li {
  display: inline-flex; align-items: center; gap: 6px; border: 1px solid #5076883b;
  padding: 4px 8px; border-radius: 5px; font-size: .75rem; font-weight: 600;
}
.hero-trust svg { width: 14px; height: 14px; color: #51768a; }
:root[data-theme="dark"] .hero-trust { background: #23313a; border-color: #445968; color: #e0e9ef; }
:root[data-theme="dark"] .hero-trust svg { color: #accbda; }
body[data-page="home"] .opening-scene:has(.hero-trust) { padding-bottom: clamp(72px, 11vw, 138px); }

@media (max-width: 615px) {
  .workflow-split { grid-template-columns: 1fr; }
  .workflow-queue { border-right: 0; }
  .workflow-detail { border-top: 1px solid var(--line); }
  .workflow-queue :is(td,th) { padding-block: 4px; }
  .workflow-queue tbody th small { display: inline; margin: 0 0 0 5px; }
}
@media (max-width: 420px) {
  .workflow-window .preview-window-bar { font-size: .75rem; }
  .workflow-ref { font-size: .6875rem; }
  .workflow-window .preview-window-bar svg { width: 14px; height: 14px; }
  .workflow-queue tbody th small { display: block; margin: 2px 0 0; }
  .workflow-queue :is(td,th):first-child { padding-inline-start: 9px; }
  .workflow-queue :is(td,th):last-child { padding-inline-end: 7px; }
  .hero-tools-header { padding-inline: 52px; }
  .hero-tools-control { inset-inline-end: 4px; padding-inline: 3px; max-width: 53px; line-height: 1.1; }
}
@media (prefers-reduced-motion: reduce) {
  .logo-viewport { mask-image: none; }
  .hero-tools[data-logos-ready] .logo-track { width: 100%; animation: none; }
  .hero-tool-marks { flex: 1; justify-content: center; flex-wrap: wrap; }
  .hero-tool-marks[aria-hidden], .hero-tools-control { display: none; }
  .hero-tools-header { padding-inline: 10px; }
  .is-scroll-demo .workflow-row-follow { transition: none; }
}
