@import url("https://fonts.googleapis.com/css2?family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,700;9..40,900&family=Inter:wght@600;700;800;900&display=swap");

:root {
  color-scheme: light;
  --font-body: "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: Inter, "DM Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --coral: #ff6f61;
  --orange: #ff6f61;
  --teal: #008080;
  --gray: #696969;
  --silver: #c0c0c0;
  --white: #ffffff;
  --bg: color-mix(in srgb, var(--teal) 4%, var(--white));
  --surface: #ffffff;
  --surface-soft: color-mix(in srgb, var(--teal) 8%, var(--white));
  --ink: #10201e;
  --muted: #696969;
  --line: color-mix(in srgb, var(--silver) 72%, var(--teal));
  --header: color-mix(in srgb, var(--white) 88%, transparent);
  --header-ink: var(--ink);
  --shadow: 0 24px 70px rgba(16, 32, 30, 0.16);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: color-mix(in srgb, var(--teal) 10%, #000000);
  --surface: color-mix(in srgb, var(--gray) 18%, #000000);
  --surface-soft: color-mix(in srgb, var(--teal) 20%, #000000);
  --ink: #ffffff;
  --muted: #c0c0c0;
  --line: color-mix(in srgb, var(--silver) 32%, var(--teal));
  --header: rgba(0, 18, 17, 0.9);
  --header-ink: var(--white);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.44);
}

* {
  box-sizing: border-box;
}

*::before,
*::after {
  pointer-events: none;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 76px;
}

body {
  margin: 0;
  padding-top: 76px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

body,
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
small,
strong,
li,
label {
  cursor: default;
}

a,
button,
.button,
[role="button"] {
  cursor: pointer;
}

a *,
button *,
.button *,
[role="button"] * {
  cursor: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
textarea,
[contenteditable="true"] {
  cursor: text;
}

select,
input[type="checkbox"],
input[type="radio"],
input[type="file"] {
  cursor: default;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 76px;
  padding-block: 12px;
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1500px) / 2));
  border-bottom: 1px solid color-mix(in srgb, var(--teal) 70%, transparent);
  background: var(--header);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: max-content;
}

.brand img {
  width: clamp(98px, 8.5vw, 132px);
  height: auto;
}

.medflo-brand img {
  width: clamp(120px, 10vw, 158px);
}

.medflo-logo-dark {
  display: none;
}

:root[data-theme="dark"] .medflo-page .medflo-logo-light {
  display: none;
}

:root[data-theme="dark"] .medflo-page .medflo-logo-dark {
  display: block;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
  color: var(--header-ink);
  font-family: var(--font-display);
  font-size: 0.94rem;
  font-weight: 850;
}

.nav-menu {
  position: relative;
}

.site-nav a,
.nav-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  cursor: pointer;
}

.nav-trigger {
  gap: 8px;
  padding-right: 0;
}

.nav-trigger::before {
  position: static;
  order: 2;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  content: "";
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.site-nav a::after,
.nav-trigger::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--coral);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-menu .nav-trigger {
  margin-right: 6px;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after,
.site-nav a.active::after,
.nav-trigger:hover::after,
.nav-trigger:focus-visible::after,
.nav-trigger.active::after,
.nav-menu.open .nav-trigger::after {
  transform: scaleX(1);
}

.nav-menu.open .nav-trigger::before,
.nav-menu:hover .nav-trigger::before,
.nav-trigger:focus-visible::before {
  transform: translateY(2px) rotate(225deg);
}

.nav-dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  z-index: 60;
  display: grid;
  min-width: 210px;
  overflow: visible;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

/* Transparent hover bridge: spans the area between the MedFlo trigger and its
   dropdown so the menu stays open while the pointer moves down to it. The
   dropdown is far wider than the trigger and is centered under it, so the
   bridge must match the dropdown's width — otherwise a diagonal move toward a
   dropdown item exits the hover area and closes the menu before it's reached
   (the failure seen on laptop widths). Width tracks the dropdown's min-width. */
.nav-menu::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  width: 240px;
  height: 18px;
  transform: translateX(-50%);
}

.nav-menu:hover .nav-dropdown,
.nav-menu.open .nav-dropdown,
.nav-menu:focus-within .nav-dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.nav-dropdown a {
  display: flex;
  min-height: 38px;
  align-items: center;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  white-space: nowrap;
}

.nav-dropdown a::after {
  display: none;
}

.nav-dropdown a:hover,
.nav-dropdown a:focus-visible {
  background: var(--surface-soft);
  color: var(--teal);
}

.nav-submenu {
  position: relative;
}

.nav-submenu::after {
  display: none;
}

.nav-subtrigger {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.nav-dropdown .nav-subtrigger::after {
  display: none;
}

.nav-subtrigger::before {
  order: 2;
  margin-left: auto;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  content: "";
  transform: rotate(45deg);
}

.nav-subtrigger:hover,
.nav-subtrigger:focus-visible {
  background: var(--surface-soft);
  color: var(--teal);
}

.nav-subdropdown {
  position: absolute;
  top: 0;
  left: 100%;
  z-index: 70;
  display: none;
  width: min(330px, 42vw);
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-8px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.nav-submenu:hover .nav-subdropdown,
.nav-submenu.open .nav-subdropdown {
  display: grid;
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

.nav-subdropdown a {
  white-space: normal;
}

.nav-drawer-footer {
  display: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.menu-toggle {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, var(--teal) 72%, var(--header-ink));
  border-radius: 8px;
  background: transparent;
  color: var(--header-ink);
  font-family: var(--font-display);
  font-weight: 850;
  cursor: pointer;
}

.theme-toggle {
  grid-auto-flow: column;
  gap: 10px;
  padding: 8px 16px;
}

.theme-toggle::before {
  width: 21px;
  height: 21px;
  border: 3px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 8px -4px 0 currentColor;
  content: "";
}

.menu-toggle {
  display: none;
  width: 48px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(100vh - 76px);
  display: grid;
  align-items: center;
  padding: clamp(70px, 10vw, 132px) max(clamp(20px, 5vw, 76px), calc((100vw - 1440px) / 2));
  overflow: hidden;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 14%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 78% 32%, color-mix(in srgb, var(--coral) 28%, transparent), transparent 32%),
    radial-gradient(circle at 16% 82%, color-mix(in srgb, var(--teal) 26%, transparent), transparent 34%),
    color-mix(in srgb, var(--bg) 88%, #000000);
  background-size: 92px 92px, 92px 92px, auto, auto, auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(820px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: color-mix(in srgb, var(--teal) 72%, var(--white));
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(4.5rem, 12vw, 10.5rem);
  line-height: 0.86;
}

.hero-logo {
  display: block;
  width: clamp(220px, 42vw, 560px);
  height: auto;
  margin-inline-end: auto;
}

.hero h1 .tig {
  color: color-mix(in srgb, var(--teal) 78%, var(--white));
}

.hero h1 .flo {
  color: var(--coral);
}

.hero-lede {
  margin: 0 0 20px;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.8vw, 4.5rem);
  font-weight: 900;
  line-height: 0.98;
}

.hero-lede span {
  display: block;
}

.hero-lede .gradient-text,
.gradient-text {
  display: inline-block;
  background: linear-gradient(92deg, var(--white), var(--teal), var(--coral), var(--white));
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: text-gradient-flow 5s ease-in-out infinite;
}

.hero-text {
  max-width: 660px;
  margin-bottom: 0;
  color: color-mix(in srgb, var(--white) 80%, var(--silver));
  font-size: 1.1rem;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--teal) 30%, transparent);
}

.button.secondary {
  border-color: var(--coral);
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 18px 38px color-mix(in srgb, var(--coral) 28%, transparent);
}

.button.medflo-logo-button {
  gap: 8px;
  min-width: 184px;
  border-color: color-mix(in srgb, var(--teal) 70%, var(--white));
  background: color-mix(in srgb, var(--white) 92%, var(--teal));
  color: var(--ink);
  box-shadow:
    0 18px 38px color-mix(in srgb, var(--teal) 18%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--white) 60%, transparent);
}

.medflo-logo-swap {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 82px;
  min-width: 82px;
  height: 22px;
}

.button.medflo-logo-button img {
  width: 82px;
  height: auto;
}

.medflo-button-logo-dark {
  display: none;
}

:root[data-theme="dark"] .button.medflo-logo-button {
  border-color: color-mix(in srgb, var(--teal) 74%, var(--white));
  background: color-mix(in srgb, var(--surface) 78%, var(--teal));
  color: var(--white);
}

:root[data-theme="dark"] .medflo-button-logo-light {
  display: none;
}

:root[data-theme="dark"] .medflo-button-logo-dark {
  display: block;
}

.button.ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}

.hero-mark {
  position: absolute;
  right: max(clamp(-70px, 5vw, 76px), calc((100vw - 1440px) / 2));
  bottom: clamp(40px, 10vw, 120px);
  width: clamp(260px, 28vw, 520px);
  opacity: 0.9;
  animation: mark-drift 8s ease-in-out infinite;
}

.orbit-dot {
  position: absolute;
  right: clamp(210px, 28vw, 560px);
  top: 26%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 12px color-mix(in srgb, var(--coral) 18%, transparent);
  animation: dot-route 7s ease-in-out infinite;
}

.marquee-strip {
  display: flex;
  gap: 28px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--surface);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 900;
  text-transform: uppercase;
}

.marquee-strip div {
  display: flex;
  min-width: max-content;
  gap: 28px;
  padding: 16px 0;
  animation: marquee 24s linear infinite;
}

.section {
  padding: clamp(74px, 10vw, 132px) clamp(20px, 5vw, 76px);
}

main > .section {
  border-top: 1px solid var(--line);
}

.section.alt {
  background: var(--surface-soft);
}

.section-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: start;
}

.home-page .section-grid,
.home-page .split,
.home-page .idea-cta-inner,
.home-page .section > .section-intro,
.home-page .flow-steps,
.home-page .team-showcase-head,
.home-page .team-slider,
.home-page .home-contact-form {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.home-page .hero-copy {
  width: min(1180px, 100%);
}

.about-page .about-core-panel,
.about-page .about-operating-grid,
.about-page .about-progress-rail,
.about-page .about-footprint .section-grid,
.about-page .about-news-head,
.about-page .about-news-list {
  width: min(1280px, 100%);
  margin-inline: auto;
}

.home-page .section-grid,
.home-page .featured-product-section .split {
  justify-content: center;
  gap: clamp(28px, 4vw, 56px);
}

.home-page .section-grid {
  grid-template-columns: minmax(0, 480px) minmax(0, 560px);
}

.home-page .featured-product-section .split {
  grid-template-columns: minmax(0, 560px) minmax(0, 480px);
}

.section-intro {
  max-width: 760px;
}

.section-intro h2,
.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.section-intro p,
.page-hero p,
.card p,
.flow-step p,
.feature p,
.contact-card p,
.site-footer p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card,
.contact-card,
.form-panel,
.metric,
.feature {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 7%, transparent);
}

.card {
  padding: 22px;
}

.card span,
.metric span,
.feature span {
  display: inline-flex;
  min-width: 34px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
}

.card h3,
.feature h3 {
  margin-bottom: 10px;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(230px, 1fr));
  gap: 44px;
  overflow-x: auto;
  padding: 8px 4px 12px;
}

.home-page .flow-steps {
  grid-template-columns: repeat(4, minmax(0, 250px));
  justify-content: center;
  gap: clamp(24px, 3vw, 40px);
  overflow-x: visible;
}

.flow-step {
  position: relative;
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 12%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 42px 42px;
}

.flow-step::after {
  position: absolute;
  top: 50%;
  right: -35px;
  width: 28px;
  height: 3px;
  background: var(--coral);
  content: "";
  z-index: 3;
  transform: translateY(-50%);
}

.flow-step::before {
  position: absolute;
  top: 50%;
  right: -39px;
  width: 15px;
  height: 15px;
  border-top: 3px solid var(--coral);
  border-right: 3px solid var(--coral);
  content: "";
  transform: translateY(-50%) rotate(45deg);
  z-index: 4;
}

.flow-step:last-child::after,
.flow-step:last-child::before {
  display: none;
}

.step-art {
  position: relative;
  overflow: hidden;
  height: 82px;
  margin-bottom: 22px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 16%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 14%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--teal) 8%, var(--surface));
  background-size: 28px 28px;
}

.step-art i {
  position: absolute;
  display: block;
}

.map-art i {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 62px 32px 0 var(--teal), 136px 12px 0 color-mix(in srgb, var(--teal) 55%, var(--white));
}

.map-art i:nth-child(1) {
  top: 16px;
  left: 26px;
}

.map-art i:nth-child(2) {
  top: 26px;
  left: 36px;
  width: 134px;
  height: 3px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--teal) 60%, transparent);
  box-shadow: none;
  transform: rotate(12deg);
}

.map-art i:nth-child(3) {
  top: 51px;
  left: 96px;
  width: 84px;
  height: 3px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--coral) 80%, transparent);
  box-shadow: none;
  transform: rotate(-18deg);
}

.design-art i:nth-child(1) {
  inset: 16px 28px auto 28px;
  height: 48px;
  border: 2px solid var(--teal);
  border-radius: 8px;
}

.design-art i:nth-child(2) {
  top: 27px;
  left: 44px;
  width: 72px;
  height: 8px;
  border-radius: 99px;
  background: var(--coral);
}

.design-art i:nth-child(3) {
  top: 46px;
  left: 44px;
  width: 128px;
  height: 8px;
  border-radius: 99px;
  background: color-mix(in srgb, var(--teal) 62%, var(--white));
}

.build-art i:nth-child(1) {
  top: 18px;
  left: 30px;
  width: 54px;
  height: 46px;
  border-radius: 8px;
  background: var(--teal);
}

.build-art i:nth-child(2) {
  top: 30px;
  left: 102px;
  width: 92px;
  height: 8px;
  border-radius: 99px;
  background: var(--coral);
  box-shadow: 0 18px 0 color-mix(in srgb, var(--teal) 62%, var(--white));
}

.build-art i:nth-child(3) {
  right: 30px;
  bottom: 18px;
  width: 28px;
  height: 28px;
  border-right: 5px solid var(--teal);
  border-bottom: 5px solid var(--teal);
  transform: rotate(-45deg);
}

.improve-art i:nth-child(1) {
  left: 30px;
  bottom: 18px;
  width: 34px;
  height: 24px;
  border-radius: 8px 8px 0 0;
  background: color-mix(in srgb, var(--teal) 55%, var(--white));
  box-shadow: 48px -14px 0 var(--teal), 96px -32px 0 var(--coral);
}

.improve-art i:nth-child(2) {
  top: 20px;
  right: 42px;
  width: 52px;
  height: 52px;
  border: 4px solid color-mix(in srgb, var(--teal) 60%, var(--white));
  border-top-color: var(--coral);
  border-radius: 50%;
}

.improve-art i:nth-child(3) {
  top: 32px;
  right: 58px;
  width: 20px;
  height: 20px;
  border-top: 4px solid var(--coral);
  border-right: 4px solid var(--coral);
  transform: rotate(45deg);
}

.featured-product-section .split {
  align-items: center;
}

.featured-product-section .split > * {
  min-width: 0;
}

.featured-product-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  min-width: 0;
  width: 100%;
  max-width: 650px;
  margin: 0;
}

.featured-product-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.22));
}

.page-hero {
  padding: clamp(80px, 12vw, 150px) max(clamp(20px, 5vw, 76px), calc((100vw - 1440px) / 2));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 12%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 9%, transparent) 1px, transparent 1px),
    var(--bg);
  background-size: 88px 88px;
}

.page-hero > * {
  width: min(900px, 100%);
  margin-inline: auto;
}

.page-hero.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.75fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
}

.page-hero.product-hero > * {
  width: auto;
  min-width: 0;
  margin-inline: 0;
}

.page-hero.product-hero h1 {
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.page-hero.product-hero h1 span {
  display: block;
}

.page-hero.about-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  min-height: min(720px, calc(100vh - 76px));
  overflow: hidden;
}

.page-hero.about-hero > * {
  width: auto;
  min-width: 0;
  margin-inline: 0;
}

.about-hero h1 {
  max-width: 720px;
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.about-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  font-size: clamp(1rem, 1.45vw, 1.22rem);
}

.about-hero-panel {
  display: grid;
  align-self: center;
  border-block: 1px solid var(--line);
}

.about-hero-panel a {
  position: relative;
  display: grid;
  gap: 5px;
  padding: 18px 42px 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.about-hero-panel a:last-child {
  border-bottom: 0;
}

.about-hero-panel a::after {
  position: absolute;
  top: 20px;
  right: 0;
  color: color-mix(in srgb, var(--teal) 78%, var(--ink));
  content: "->";
  font-family: var(--font-display);
  font-weight: 900;
}

.about-hero-panel a:hover,
.about-hero-panel a:focus-visible {
  color: var(--teal);
  transform: translateY(-2px);
}

.about-hero-panel strong {
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.about-hero-panel span {
  color: var(--muted);
  font-size: 0.95rem;
}

.about-page .section-intro h2 {
  max-width: 680px;
  font-size: clamp(1.55rem, 2.6vw, 2.35rem);
}

.about-centered {
  width: min(720px, 100%);
  margin: 0 auto clamp(36px, 6vw, 64px);
  text-align: center;
}

.about-centered h2 {
  font-size: clamp(1.85rem, 3.2vw, 3rem);
}

.about-centered p:not(.eyebrow) {
  color: var(--muted);
}

.about-core-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 58px color-mix(in srgb, var(--ink) 7%, transparent);
}

.about-core-panel article {
  display: grid;
  align-content: start;
  min-height: 260px;
  padding: clamp(24px, 3vw, 34px);
  border-inline-end: 1px solid var(--line);
}

.about-core-panel article:last-child {
  border-inline-end: 0;
}

.about-core-panel span {
  margin-bottom: 34px;
  color: color-mix(in srgb, var(--muted) 30%, transparent);
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.85rem);
  font-weight: 900;
  line-height: 1;
}

.about-core-panel h3,
.about-lanes h3 {
  margin-bottom: 10px;
}

.about-core-panel p,
.about-lanes p {
  color: var(--muted);
}

.about-operating-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(32px, 6vw, 82px);
  align-items: start;
}

.about-lanes {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 93%, transparent);
  box-shadow: 0 22px 58px color-mix(in srgb, var(--ink) 6%, transparent);
}

.about-lanes article {
  display: grid;
  gap: 4px;
  padding: clamp(22px, 3vw, 30px);
  border-bottom: 1px solid var(--line);
}

.about-lanes article:last-child {
  border-bottom: 0;
}

.about-lanes article > span {
  color: color-mix(in srgb, var(--teal) 78%, var(--ink));
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.about-progress-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 30px 0 0;
  list-style: none;
}

.about-progress-rail::before {
  position: absolute;
  top: 0;
  left: 12.5%;
  width: 75%;
  height: 1px;
  background: var(--line);
  content: "";
}

.about-progress-rail li {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 0 clamp(9px, 1.5vw, 15px);
  text-align: center;
}

.about-progress-rail li::before {
  position: absolute;
  top: -36px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 999px;
  background: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
  content: "";
}

.about-progress-rail span {
  color: color-mix(in srgb, var(--muted) 36%, transparent);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
}

.about-progress-rail strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.12rem;
}

.about-progress-rail p {
  color: var(--muted);
}

.about-progress > .cta-row,
[dir="rtl"] .about-progress > .cta-row {
  justify-content: center;
  margin-top: clamp(32px, 5vw, 56px);
}

.about-footprint {
  background: var(--surface-soft);
}

.about-footprint-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-self: end;
}

.about-footprint-list span {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--line) 90%, transparent);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 900;
}

.about-team .team-showcase-head p:not(.eyebrow) {
  max-width: 620px;
  margin: 10px 0 0;
  color: var(--muted);
}

:root[data-theme="dark"] .about-core-panel,
:root[data-theme="dark"] .about-lanes,
:root[data-theme="dark"] .about-footprint-list span {
  background-color: color-mix(in srgb, var(--surface) 84%, #000000);
}

.medflo-hero-logo {
  display: inline-grid;
  align-items: center;
  width: clamp(170px, 18vw, 260px);
  margin-bottom: 22px;
}

.medflo-hero-logo img {
  width: 100%;
  height: auto;
}

.product-hero-visual {
  position: relative;
}

.product-hero-visual::before {
  position: absolute;
  inset: -16px;
  border: 1px solid color-mix(in srgb, var(--coral) 36%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 32%, transparent);
  content: "";
  pointer-events: none;
}

.product-hero-visual .app-window {
  position: relative;
}

.medflo-photo-hero {
  min-height: clamp(320px, 32vw, 480px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.medflo-photo-hero::before {
  display: none;
}

.medflo-photo-hero img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: 42% 50%;
}

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

.features-grid.faq-stack {
  max-width: 940px;
  margin-inline: auto;
  grid-template-columns: minmax(0, 1fr);
}

.feature {
  padding: 22px;
}

.faq-accordion {
  padding: 0;
  overflow: hidden;
}

.faq-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 24px 28px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.17em;
  font-weight: 700;
  line-height: 1.25;
  list-style: none;
  cursor: pointer;
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  content: "";
  transform: rotate(45deg);
  transform-origin: center;
  transition: transform 180ms ease;
}

.faq-accordion[open] summary::after {
  transform: rotate(225deg);
}

.faq-accordion summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: -6px;
}

.faq-accordion summary span {
  display: block;
  min-width: 0;
  min-height: 0;
  margin: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.faq-accordion p {
  max-width: 760px;
  margin: -6px 28px 26px;
  color: var(--muted);
}

.faq-accordion:not([open]) p {
  display: none;
}

.faq-accordion[open] p {
  display: block;
}

.careers-opportunities {
  padding-top: clamp(56px, 8vw, 96px);
}

.job-stack {
  align-items: stretch;
}

.job-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 4vw, 42px);
  padding: clamp(22px, 3vw, 32px);
}

.job-card .eyebrow {
  margin-bottom: 8px;
}

.job-card h3 {
  margin-bottom: 10px;
  font-size: clamp(1.35rem, 2vw, 1.9rem);
}

.job-card p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
}

.job-card-actions,
.job-detail-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.job-card-actions {
  justify-content: flex-end;
}

.job-detail-actions {
  margin-top: 8px;
}

.job-detail-actions-bottom {
  justify-content: center;
  margin-top: 38px;
}

.button.is-disabled {
  pointer-events: none;
  opacity: 0.55;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.route-card {
  min-height: 180px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 7%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.route-card:hover,
.route-card:focus-visible {
  border-color: var(--coral);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--coral) 14%, transparent);
}

.route-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.route-card span {
  color: var(--muted);
}

.workflow-lane {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
  overflow-x: auto;
}

.workflow-lane article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 24%, var(--coral) 0 6px, transparent 7px),
    color-mix(in srgb, var(--surface) 86%, var(--teal));
}

.workflow-lane h3 {
  margin-top: 34px;
  margin-bottom: 8px;
}

.medflo-page .page-hero.product-hero {
  min-height: clamp(680px, calc(100vh - 78px), 900px);
  padding-block: clamp(78px, 7vw, 112px);
}

.medflo-page .page-hero.product-hero > div:first-child {
  max-width: 700px;
}

.medflo-page .page-hero.product-hero p {
  max-width: 680px;
}

@media (min-width: 1025px) {
  .medflo-page .page-hero.product-hero:not(.module-detail-hero):not(.modules-hero):not(.integrations-hero) {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.5fr);
  }
}

.medflo-page .section {
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1280px) / 2));
}

/* Center section content on the remaining content pages (news, careers,
   contact, blog, article, job, privacy) the same way as home/about/medflo.
   Home/about/medflo carry their own centering; the CMS admin tool is excluded. */
body:not(.home-page):not(.about-page):not(.medflo-page):not(.cms-page) .section {
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1280px) / 2));
}

.medflo-page .page-hero.product-hero.module-detail-hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  align-items: start;
  min-height: 0;
  padding-block: clamp(72px, 5vw, 88px);
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1280px) / 2));
}

.module-detail-hero .module-device-wall {
  justify-self: end;
  width: 100%;
  max-width: min(580px, 100%);
}

.module-detail-hero .patient-module-devices,
.module-detail-hero .scheduling-module-devices {
  min-height: clamp(250px, 27vw, 330px);
}

.module-detail-hero .patient-module-image,
.module-detail-hero .scheduling-module-image {
  width: 100%;
  max-width: 100%;
}

.module-detail-hero .billing-flow-visual {
  width: 100%;
  max-width: min(560px, 100%);
  min-height: 320px;
}

.module-detail-focus .section-intro,
.module-detail-capability-section .section-intro,
.module-detail-role-section .section-intro,
.patient-module-focus .section-intro,
.patient-capability-section .section-intro,
.patient-role-section .section-intro {
  max-width: 760px;
}

.module-detail-focus-grid,
.patient-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.module-detail-focus-grid article,
.module-detail-role-grid article,
.patient-focus-grid article,
.patient-role-grid article {
  min-height: 260px;
  padding: 24px;
  border: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 64px color-mix(in srgb, var(--ink) 7%, transparent);
}

.module-detail-focus-grid span,
.module-detail-flow span,
.module-detail-role-grid span,
.module-detail-panel-header span,
.patient-focus-grid span,
.patient-clinical-flow span,
.patient-role-grid span,
.patient-record-header span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  margin-bottom: 34px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-detail-focus-grid h3,
.module-detail-role-grid h3,
.patient-focus-grid h3,
.patient-role-grid h3 {
  margin-bottom: 12px;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
}

.module-detail-flow,
.patient-clinical-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  margin-top: 34px;
}

.module-detail-flow article,
.patient-clinical-flow article {
  position: relative;
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 9%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 7%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 42px 42px;
}

.module-detail-flow article:not(:last-child)::before,
.patient-clinical-flow article:not(:last-child)::before {
  position: absolute;
  top: 50%;
  right: -22px;
  z-index: 2;
  width: 22px;
  height: 2px;
  background: color-mix(in srgb, var(--teal) 62%, var(--coral));
  content: "";
  transform: translateY(-50%);
}

.module-detail-flow article:not(:last-child)::after,
.patient-clinical-flow article:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -22px;
  z-index: 3;
  width: 10px;
  height: 10px;
  border-top: 2px solid color-mix(in srgb, var(--teal) 62%, var(--coral));
  border-right: 2px solid color-mix(in srgb, var(--teal) 62%, var(--coral));
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.module-detail-flow h3,
.patient-clinical-flow h3 {
  margin-bottom: 10px;
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
}

.module-detail-panel-layout,
.module-detail-connected-layout,
.patient-record-layout,
.patient-connected-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
}

.module-detail-panel,
.patient-record-panel {
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--teal) 38%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 30px 90px color-mix(in srgb, var(--ink) 10%, transparent);
}

.module-detail-panel-header,
.patient-record-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 12%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 8%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--surface-soft) 78%, var(--surface));
  background-size: 46px 46px;
}

.module-detail-panel-header span,
.patient-record-header span {
  margin-bottom: 14px;
}

.module-detail-panel-header strong,
.patient-record-header strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 2.15rem);
  line-height: 1.1;
}

.module-detail-panel-list,
.patient-record-list {
  display: grid;
}

.module-detail-panel-list span,
.patient-record-list span {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-weight: 760;
}

.module-detail-panel-list span:last-child,
.patient-record-list span:last-child {
  border-bottom: 0;
}

.module-detail-panel-list span::before,
.patient-record-list span::before {
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--teal) 48%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--teal) 9%, var(--surface));
  content: "";
}

.module-detail-panel-list span::after,
.patient-record-list span::after {
  position: absolute;
  left: 32px;
  top: 50%;
  width: 12px;
  height: 7px;
  border-bottom: 2px solid var(--teal);
  border-left: 2px solid var(--teal);
  content: "";
  transform: translateY(-58%) rotate(-45deg);
}

.module-detail-capability-grid,
.patient-capability-grid {
  margin-top: 34px;
}

.module-detail-connected-grid,
.patient-connected-grid {
  display: grid;
  gap: 14px;
}

.module-detail-connected-grid a,
.patient-connected-grid a {
  display: grid;
  gap: 8px;
  min-height: 128px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--teal) 32%, var(--line));
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 52px color-mix(in srgb, var(--ink) 6%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.module-detail-connected-grid a:hover,
.module-detail-connected-grid a:focus-visible,
.patient-connected-grid a:hover,
.patient-connected-grid a:focus-visible {
  border-color: var(--coral);
  box-shadow: 0 22px 62px color-mix(in srgb, var(--coral) 12%, transparent);
  transform: translateY(-2px);
}

.module-detail-connected-grid strong,
.patient-connected-grid strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1.15;
}

.module-detail-connected-grid span,
.patient-connected-grid span {
  color: var(--muted);
}

.module-detail-role-grid,
.patient-role-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.module-simple-section {
  padding-block: clamp(110px, 11vw, 170px);
}

.module-simple-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: clamp(54px, 9vw, 130px);
  align-items: start;
}

.module-simple-layout .section-intro {
  max-width: 600px;
}

.module-simple-list {
  display: grid;
  gap: 0;
}

.module-simple-list article {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
}

.module-simple-list article:last-child {
  border-bottom: 1px solid var(--line);
}

.module-simple-list span {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
}

.module-simple-list h3 {
  margin-bottom: 8px;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
}

.module-simple-list p {
  max-width: 560px;
  color: var(--muted);
}

.module-simple-statement {
  max-width: 860px;
  margin-inline: auto;
  text-align: center;
}

.module-simple-statement h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 4vw, 3.7rem);
  line-height: 1.04;
}

.module-simple-statement p {
  max-width: 680px;
  margin-inline: auto;
}

.module-balanced-section {
  padding-block: clamp(76px, 7vw, 108px);
}

.module-balanced-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(420px, 1fr);
  gap: clamp(42px, 6vw, 88px);
  align-items: start;
  width: min(1500px, 100%);
  margin-inline: auto;
}

.module-balanced-layout .section-intro {
  max-width: 640px;
}

.module-balanced-section > .section-intro {
  width: min(1500px, 100%);
  max-width: 1500px;
  margin-inline: auto;
}

.module-balanced-section > .section-intro > h2,
.module-balanced-section > .section-intro > p {
  max-width: 760px;
}

.module-balanced-section > .section-intro:has(.module-connection-line) {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(22px, 3vw, 42px);
  align-items: start;
}

.module-balanced-section > .section-intro:has(.module-connection-line) > :not(.module-connection-line) {
  grid-column: 1 / span 2;
}

.module-signature-panel {
  width: 100%;
  max-width: 860px;
  justify-self: end;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--teal) 36%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 9%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 7%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 48px 48px;
  box-shadow: 0 28px 90px color-mix(in srgb, var(--ink) 8%, transparent);
}

.module-signature-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.module-signature-panel header span {
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-signature-panel header strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.module-signature-body {
  display: grid;
  gap: 0;
  padding: 22px;
}

.signature-row {
  display: grid;
  grid-template-columns: minmax(112px, 0.4fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: start;
  min-height: 66px;
  padding: 16px 0;
  border-bottom: 1px solid color-mix(in srgb, var(--line) 72%, transparent);
}

.signature-row:last-child {
  border-bottom: 0;
}

.signature-row span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
}

.signature-row strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  line-height: 1.22;
  text-align: end;
  text-wrap: balance;
}

.signature-status {
  justify-self: start;
  min-width: 86px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--teal) 42%, var(--line));
  border-radius: 999px;
  color: var(--teal);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
  text-align: center;
}

.module-spec-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(34px, 5vw, 64px);
  align-items: start;
  width: min(1500px, 100%);
  margin-inline: auto;
}

.module-spec-grid .section-intro,
.module-spec-grid .section-intro h2 {
  max-width: 1040px;
}

.module-spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(42px, 7vw, 112px);
  gap: 0;
}

.module-spec-list article {
  min-height: 172px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.module-spec-list article:nth-last-child(-n + 2) {
  border-bottom: 1px solid var(--line);
}

.module-spec-list h3 {
  margin-bottom: 8px;
  font-size: clamp(1.16rem, 1.8vw, 1.55rem);
}

.module-spec-list p {
  max-width: none;
  color: var(--muted);
}

.module-connection-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 42px;
  width: 100%;
}

.module-balanced-section > .section-intro:has(.module-connection-line) .module-connection-line {
  grid-column: 3 / -1;
  grid-row: 1 / span 2;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-self: start;
  margin-top: 0;
}

.module-connection-line a {
  display: grid;
  gap: 10px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
}

.module-connection-line strong {
  color: var(--ink);
  font-family: var(--font-display);
}

.module-connection-line span {
  color: var(--muted);
}

.schedule-signature .signature-row {
  align-items: start;
}

.billing-signature .module-signature-body {
  gap: 18px;
}

.billing-sync-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.billing-sync-node {
  display: grid;
  align-content: start;
  min-height: 140px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, var(--teal));
}

.billing-sync-node span,
.content-publish-card span {
  display: block;
  margin-bottom: 10px;
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.billing-sync-node strong,
.content-publish-card strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.18;
  text-wrap: balance;
}

.billing-sync-arrow {
  height: 2px;
  background: color-mix(in srgb, var(--teal) 68%, var(--coral));
}

.billing-sync-arrow::after {
  display: block;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  margin-left: auto;
  border-top: 2px solid color-mix(in srgb, var(--teal) 68%, var(--coral));
  border-right: 2px solid color-mix(in srgb, var(--teal) 68%, var(--coral));
  content: "";
  transform: rotate(45deg);
}

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

.content-publish-card {
  display: grid;
  align-content: start;
  min-height: 150px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--teal) 32%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 86%, var(--teal));
}

.hero-checklist {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
}

.hero-checklist li {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 35%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 82%, var(--teal));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 850;
  list-style: none;
  white-space: normal;
}

.hero-checklist li::before {
  width: 8px;
  height: 8px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--coral);
  content: "";
  flex: 0 0 auto;
}

.medflo-overview-band {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(460px, 1fr);
  gap: clamp(34px, 6vw, 92px);
  align-items: center;
}

.medflo-overview-band .section-intro {
  max-width: 620px;
}

.medflo-menu-summary {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.medflo-menu-summary .overview-kpi {
  grid-column: span 2;
}

.medflo-menu-summary .overview-kpi:nth-child(4) {
  grid-column: 2 / span 2;
}

.medflo-menu-summary .overview-kpi:nth-child(5) {
  grid-column: 4 / span 2;
}

.medflo-menu-priority {
  width: min(820px, 100%);
  grid-template-columns: 1fr;
  gap: 0;
  justify-self: end;
  margin-top: 0;
  border-block: 1px solid var(--line);
}

.menu-priority-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.menu-priority-item:last-child {
  border-bottom: 0;
}

.menu-priority-item h3 {
  margin-bottom: 4px;
  font-size: 1.05rem;
}

.menu-priority-item p {
  max-width: 560px;
  color: var(--muted);
  font-size: 0.95rem;
}

.menu-priority-item .overview-card-actions {
  margin-top: 0;
  padding-top: 0;
}

.menu-priority-item .overview-card-actions a {
  min-height: 38px;
  white-space: nowrap;
}

.menu-priority-stock-photo {
  min-height: 220px;
  margin-top: 26px;
}

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

.overview-kpi {
  display: flex;
  min-height: 210px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 7%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 44px 44px;
  box-shadow: 0 22px 60px color-mix(in srgb, var(--ink) 7%, transparent);
}

.overview-kpi span,
.overview-flow article span,
.module-preview-card small,
.menu-summary-icon,
.module-card-icon,
.security-card-icon,
.integration-card-icon,
.pricing-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin-bottom: 42px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 900;
}

.menu-priority-item .menu-summary-icon {
  margin-bottom: 0;
}

.feature .security-card-icon,
.feature .integration-card-icon,
.feature .pricing-card-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin-bottom: 22px;
}

.menu-summary-icon svg,
.module-card-icon svg,
.security-card-icon svg,
.integration-card-icon svg,
.pricing-card-icon svg {
  display: block;
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.overview-kpi h3 {
  margin-bottom: 8px;
}

.overview-kpi p {
  color: var(--muted);
}

.overview-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(170px, 1fr));
  gap: 14px;
  margin-top: 34px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.overview-flow article {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.overview-flow article:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -16px;
  z-index: 2;
  width: 24px;
  height: 24px;
  border-top: 3px solid var(--coral);
  border-right: 3px solid var(--coral);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.overview-flow h3 {
  margin-bottom: 8px;
}

.overview-flow p {
  color: var(--muted);
}

.module-cta-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: auto;
  padding-top: 18px;
  color: var(--teal-strong);
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 900;
}

.module-cta-link::after {
  margin-left: 8px;
  color: var(--coral);
  content: "->";
  transition: transform 180ms ease;
}

.overview-kpi:hover .module-cta-link::after,
.overview-flow article:hover .module-cta-link::after,
.module-cta-link:focus-visible::after {
  transform: translateX(4px);
}

.overview-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.overview-card-actions a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 900;
}

.overview-card-actions a:first-child {
  border-color: color-mix(in srgb, var(--teal) 64%, var(--line));
  background: color-mix(in srgb, var(--teal) 10%, var(--surface));
  color: var(--teal-strong);
}

.overview-card-actions a:hover,
.overview-card-actions a:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
}

.stock-photo-slot {
  position: relative;
  display: grid;
  min-height: 260px;
  place-items: center;
  overflow: hidden;
  margin: 0;
  border: 1px dashed color-mix(in srgb, var(--teal) 54%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 86%, var(--teal)), var(--surface)),
    var(--surface);
  color: color-mix(in srgb, var(--teal) 82%, var(--ink));
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 900;
  text-transform: uppercase;
}

.stock-photo-slot::before {
  position: absolute;
  inset: 18px;
  border: 1px solid color-mix(in srgb, var(--teal) 38%, transparent);
  border-radius: 8px;
  content: "";
}

.stock-photo-slot::after {
  position: absolute;
  right: 28px;
  bottom: 28px;
  width: 64px;
  height: 44px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 46%, color-mix(in srgb, var(--coral) 62%, var(--surface)) 47% 68%, transparent 69%),
    radial-gradient(circle at 22% 24%, var(--teal) 0 8px, transparent 9px),
    color-mix(in srgb, var(--surface) 78%, var(--teal));
  content: "";
}

.stock-photo-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.overview-stock-photo {
  min-height: 300px;
  margin-top: 30px;
}

.module-summary-head {
  display: flex;
  max-width: none;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.module-summary-head > div {
  max-width: 760px;
}

.module-summary-head .button {
  flex: 0 0 auto;
  margin-top: 8px;
}

.medflo-module-preview {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.module-preview-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 80%, var(--teal)), var(--surface));
  color: var(--ink);
  box-shadow: 0 22px 60px color-mix(in srgb, var(--ink) 7%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.module-preview-card:hover,
.module-preview-card:focus-visible {
  border-color: var(--coral);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--coral) 14%, transparent);
}

.module-preview-card small {
  margin-bottom: 18px;
}

.module-preview-card strong {
  display: block;
  margin-top: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.1;
}

.module-preview-card span {
  display: block;
  margin-top: 12px;
  color: var(--muted);
}

.overview-module-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 24px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.overview-module-cta h3 {
  max-width: 620px;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.medflo-security-section .section-grid {
  align-items: center;
}

.security-visual-stack {
  display: grid;
  gap: 14px;
}

.security-stock-photo {
  min-height: 220px;
}

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

.medflo-page .home-seq-dark .section-intro p,
.medflo-page .home-seq-dark .overview-flow p {
  color: var(--muted);
}

.medflo-page .home-seq-dark .overview-flow article {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 9%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 7%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 42px 42px;
}

.medflo-integrations-overview {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 7%, transparent) 1px, transparent 1px),
    var(--bg);
  background-size: 64px 64px;
}

.integrations-overview-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.8fr);
  gap: clamp(30px, 5vw, 76px);
  align-items: center;
}

.integrations-stock-photo {
  min-height: 320px;
}

.integrations-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.integrations-overview-grid .feature {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--line);
}

.integrations-overview-grid .integration-card-icon {
  margin-bottom: 18px;
}

.integrations-overview-grid .feature h3 {
  margin-bottom: 8px;
}

.integrations-hero {
  overflow: hidden;
}

.integrations-hero-logo {
  position: relative;
  width: clamp(150px, 18vw, 230px);
  margin-bottom: clamp(24px, 4vw, 42px);
}

.integrations-hero-logo img {
  width: 100%;
  height: auto;
}

/* Floating integration partner logos arranged in a triangle (ERPNext apex,
   NPHIES + Yakeen at the base). Replaces the old Ready/Demand status panel. */
.integrations-hero .integration-logo-cloud {
  /* Size the logos against the cloud's own width (capped at 440px), not the
     viewport, so the triangle keeps its full 1440px proportions when it stacks
     and centers under the CTA on tablet/laptop. The clamp floors keep it from
     overflowing on small phones once the cloud itself drops below ~440px. */
  container-type: inline-size;
  --int-logo-size: clamp(104px, 33cqw, 146px);
  position: relative;
  align-self: center;
  justify-self: center;
  width: 100%;
  max-width: 440px;
  min-height: clamp(252px, 82cqw, 360px);
}

.int-logo {
  position: absolute;
  display: block;
  width: var(--int-logo-size);
  padding: 0;
  background: transparent;
  animation: intLogoFloat 6s ease-in-out infinite;
}

.int-logo img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.int-logo-erpnext {
  top: 0;
  left: 50%;
  margin-left: calc(var(--int-logo-size) / -2);
  animation-delay: 0s;
}

.int-logo-nphies {
  --int-logo-size: clamp(150px, 47.7cqw, 210px);
  bottom: 18px;
  left: 0;
  animation-delay: -2s;
}

.int-logo-yakeen {
  bottom: 6px;
  right: 0;
  animation-delay: -4s;
}

/* NPHIES wordmark text must contrast the theme background: dark text in light
   mode, white text in dark mode. Swap the two SVG variants by theme. */
.int-logo-nphies .nphies-dark {
  display: none;
}

:root[data-theme="dark"] .int-logo-nphies .nphies-light {
  display: none;
}

:root[data-theme="dark"] .int-logo-nphies .nphies-dark {
  display: block;
}

@keyframes intLogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (prefers-reduced-motion: reduce) {
  .int-logo { animation: none; }
}

.integration-status-panel {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--teal) 36%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 9%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 7%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 42px 42px;
  box-shadow: 0 24px 70px color-mix(in srgb, var(--ink) 8%, transparent);
}

.integration-status-panel.compact {
  align-content: center;
  gap: 14px;
  max-width: 540px;
  padding: 16px;
}

.status-panel-row,
.status-explainer,
.integration-detail-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--surface-soft));
}

.status-panel-row {
  padding: 18px;
}

.status-panel-row strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
}

.integration-status-panel.compact .status-panel-row strong {
  max-width: 360px;
}

.status-panel-row p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.92rem;
}

.status-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1;
  text-transform: uppercase;
}

.status-badge.ready {
  border-color: color-mix(in srgb, var(--teal) 52%, var(--line));
  background: color-mix(in srgb, var(--teal) 13%, var(--surface));
  color: var(--teal);
}

.status-badge.demand,
.status-badge.infrastructure {
  border-color: color-mix(in srgb, var(--orange) 58%, var(--line));
  background: color-mix(in srgb, var(--orange) 13%, var(--surface));
  color: color-mix(in srgb, var(--orange) 78%, var(--ink));
}

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

.status-explainer {
  padding: 24px;
  box-shadow: 0 22px 60px color-mix(in srgb, var(--ink) 7%, transparent);
}

.status-explainer h2 {
  margin-top: 20px;
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.6vw, 2rem);
  line-height: 1.12;
}

.status-explainer p {
  color: var(--muted);
}

.integration-card-grid {
  display: grid;
  gap: 14px;
  margin-top: 34px;
}

.integration-card-grid.ready-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.integration-card-grid.demand-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.integration-detail-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  padding: 22px;
  box-shadow: 0 22px 60px color-mix(in srgb, var(--ink) 7%, transparent);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.integration-detail-card:hover {
  border-color: color-mix(in srgb, var(--teal) 54%, var(--line));
  box-shadow: 0 22px 60px color-mix(in srgb, var(--teal) 11%, transparent);
  transform: translateY(-2px);
}

.integration-detail-card .integration-card-icon,
.integration-card-logo {
  margin-bottom: 20px;
}

.integration-card-logo {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--line) 78%, var(--ink));
  border-radius: 8px;
  background: #171717;
}

.integration-card-logo img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.integration-card-head {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.integration-card-head h3 {
  margin: 0;
  font-size: 1.08rem;
  line-height: 1.15;
}

.integration-detail-card p,
.integration-detail-card li,
.integration-detail-card small {
  color: var(--muted);
}

.integration-detail-card p {
  margin-bottom: 16px;
}

.integration-detail-card small {
  display: block;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  line-height: 1.45;
}

.integration-detail-card ul {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 18px 0 0;
  list-style: none;
}

.integration-detail-card li {
  position: relative;
  padding-left: 20px;
  font-size: 0.94rem;
}

.integration-detail-card li::before {
  position: absolute;
  top: 0.68em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
  transform: translateY(-50%);
}

.demand-grid .integration-detail-card li::before {
  background: var(--orange);
}

.integration-status-table {
  min-width: 860px;
}

.integration-status-table .status-badge {
  white-space: nowrap;
}

/* Integration availability table: center every cell (header + body) instead of
   hugging the start edge, which removes the unused gap on the right (LTR) /
   left (RTL). Compound selector beats the base .module-coverage-table align. */
.module-coverage-table.integration-status-table th,
.module-coverage-table.integration-status-table td {
  text-align: center;
}

/* The Ready/Demand status chips are redundant inside the cards (each card is
   already grouped under a Ready or Customer Demand section). Keep them only in
   the availability table and the legend panel. */
.integration-card-head .status-badge {
  display: none;
}

.medflo-pricing-overview .section-intro {
  margin-inline: auto;
  text-align: center;
}

.pricing-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  max-width: 980px;
  margin: 34px auto 0;
}

.pricing-overview-grid .feature {
  min-height: 250px;
}

.pricing-overview-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.medflo-faq-slice .section-intro {
  margin-inline: auto;
  text-align: center;
}

.overview-faq-list {
  display: grid;
  max-width: 920px;
  margin: 34px auto 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 22px 58px color-mix(in srgb, var(--ink) 7%, transparent);
}

.overview-faq-item {
  padding: clamp(20px, 3vw, 28px);
  border-bottom: 1px solid var(--line);
}

.overview-faq-item:last-child {
  border-bottom: 0;
}

.overview-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  font-weight: 900;
  list-style: none;
  cursor: pointer;
}

.overview-faq-item summary::-webkit-details-marker {
  display: none;
}

.overview-faq-item summary::after {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--teal);
  border-bottom: 3px solid var(--teal);
  content: "";
  transform: rotate(45deg) translateY(-3px);
  transition: transform 180ms ease;
}

.overview-faq-item[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}

.overview-faq-item summary:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 6px;
}

.overview-faq-item summary span {
  display: block;
  min-width: 0;
}

.overview-faq-item h3 {
  margin-bottom: 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.overview-faq-item p {
  max-width: 760px;
  margin: 12px 0 0;
  color: var(--muted);
}

.overview-faq-item:not([open]) p {
  display: none;
}

.overview-faq-item[open] p {
  display: block;
}

.overview-faq-cta {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.medflo-trust-band {
  align-items: center;
}

.trust-panel {
  display: grid;
  gap: 14px;
}

.trust-panel article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  column-gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.trust-panel article span {
  grid-row: span 2;
  width: 44px;
  height: 44px;
  border: 1px solid color-mix(in srgb, var(--coral) 60%, var(--line));
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--coral) 0 6px, transparent 7px),
    var(--surface-soft);
}

.trust-panel strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.trust-panel p {
  margin: 6px 0 0;
  color: var(--muted);
}

.medflo-final-cta {
  padding-block: clamp(48px, 7vw, 86px);
  text-align: center;
}

.medflo-final-cta .section-intro {
  max-width: 720px;
  margin-inline: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.medflo-final-cta .cta-row,
[dir="rtl"] .medflo-final-cta .cta-row {
  justify-content: center;
}

.page-hero.product-hero.modules-hero {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 0.9fr);
  min-height: min(640px, calc(100vh - 76px));
  overflow: hidden;
}

.modules-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 650px;
}

.modules-hero-visual {
  position: relative;
  z-index: 1;
  display: grid;
  align-self: center;
  justify-self: end;
  width: min(640px, 46vw);
  max-width: 640px;
  min-width: 0;
  margin: 0;
}

.modules-hero-visual img {
  display: block;
  width: 100%;
  max-width: 640px;
  height: auto;
  filter: drop-shadow(0 24px 42px color-mix(in srgb, var(--ink) 18%, transparent));
}

.medflo-module-overview .section-intro,
.medflo-role-section .section-intro,
.medflo-coverage-section .section-intro {
  margin-bottom: clamp(26px, 4vw, 42px);
}

.workflow-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: clamp(26px, 4vw, 42px);
}

.workflow-section-head .section-intro {
  margin-bottom: 0;
}

.workflow-section-head .button {
  justify-self: end;
  white-space: nowrap;
}

.module-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
}

.module-map-layout .section-intro {
  margin-bottom: 0;
}

.module-orbit-map {
  position: relative;
  justify-self: end;
  width: min(620px, 100%);
  aspect-ratio: 1;
  min-height: 0;
  margin: 0;
}

.module-orbit-map::before {
  position: absolute;
  inset: 18%;
  border: 2px dashed color-mix(in srgb, var(--teal) 46%, transparent);
  border-radius: 50%;
  content: "";
}

.module-orbit-map::after {
  display: none;
}

.module-orbit-core {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  display: grid;
  width: clamp(150px, 16vw, 210px);
  aspect-ratio: 1;
  place-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--teal) 12%, transparent), transparent 64%),
    color-mix(in srgb, var(--surface) 78%, transparent);
  transform: translate(-50%, -50%);
}

.module-orbit-logo {
  display: block;
  width: min(138px, 72%);
  margin: 0 auto;
  height: auto;
}

.module-orbit-logo-dark {
  display: none;
}

:root[data-theme="dark"] .module-orbit-logo-light {
  display: none;
}

:root[data-theme="dark"] .module-orbit-logo-dark {
  display: block;
}

.module-orbit-node {
  position: absolute;
  z-index: 3;
  display: grid;
  width: clamp(118px, 13vw, 162px);
  aspect-ratio: 1;
  place-items: center;
  padding: 16px;
  border: 1px solid color-mix(in srgb, var(--teal) 34%, transparent);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink);
  text-align: center;
  transition: border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.module-orbit-node:hover,
.module-orbit-node:focus-visible {
  border-color: var(--coral);
  color: var(--coral);
  transform: translateY(-3px);
}

.module-orbit-node strong {
  font-family: var(--font-display);
  font-size: clamp(0.88rem, 1.15vw, 1.06rem);
  line-height: 1.08;
}

.module-label-short {
  display: none;
}

.module-orbit-node-patient {
  top: 1%;
  left: 50%;
  transform: translateX(-50%);
}

.module-orbit-node-scheduling {
  top: 34%;
  right: 0;
}

.module-orbit-node-billing {
  right: 14%;
  bottom: 1%;
}

.module-orbit-node-services {
  bottom: 1%;
  left: 14%;
}

.module-orbit-node-admin {
  top: 34%;
  left: 0;
}

.module-orbit-node-patient:hover,
.module-orbit-node-patient:focus-visible {
  transform: translateX(-50%) translateY(-3px);
}

.module-role-grid article span,
.module-workflow-strip article span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: 8px;
  background: var(--teal);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 900;
}

.module-workflow-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(180px, 1fr));
  gap: clamp(10px, 2vw, 28px);
  align-items: center;
  margin-top: 0;
  overflow: visible;
}

.module-workflow-strip article {
  position: relative;
  display: flex;
  min-height: 118px;
  align-items: flex-start;
  justify-content: center;
  padding: 56px 10px 12px;
  text-align: center;
}

.module-workflow-strip article:not(:last-child)::after {
  position: absolute;
  top: 20px;
  left: calc(50% + 20px);
  z-index: 1;
  width: calc(100% - 40px);
  height: 32px;
  border-top: 2px dashed color-mix(in srgb, var(--teal) 62%, var(--coral));
  border-radius: 999px 999px 0 0;
  content: "";
  pointer-events: none;
}

.module-workflow-strip article:nth-child(even):not(:last-child)::after {
  top: 24px;
  border-top: 0;
  border-bottom: 2px dashed color-mix(in srgb, var(--coral) 68%, var(--teal));
  border-radius: 0 0 999px 999px;
}

/* RTL: the next step sits to the left, so anchor the connector arc from the
   right edge of each node and let it span leftward (mirror of the LTR layout). */
[dir="rtl"] .module-workflow-strip article:not(:last-child)::after {
  left: auto;
  right: calc(50% + 20px);
}

.module-workflow-strip h3,
.module-role-grid h3 {
  margin: 0 0 8px;
}

.module-role-grid p {
  color: var(--muted);
}

.module-workflow-strip h3 {
  position: relative;
  z-index: 3;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  line-height: 1;
}

.module-workflow-strip h3::before {
  position: absolute;
  top: -38px;
  left: 50%;
  display: block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--teal) 10%, transparent);
  content: "";
  transform: translateX(-50%);
}

.module-role-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.module-role-grid article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface-soft) 62%, var(--surface));
}

.module-role-grid article:nth-child(even) span {
  background: var(--coral);
}

.module-coverage-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--ink) 7%, transparent);
}

.module-coverage-table {
  width: 100%;
  min-width: 940px;
  border-collapse: collapse;
}

.module-coverage-table th,
.module-coverage-table td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  text-align: start;
  vertical-align: top;
}

.module-coverage-table thead th {
  background: color-mix(in srgb, var(--teal) 9%, var(--surface));
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-coverage-table tbody th {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1.15;
}

.module-coverage-table tbody tr:last-child th,
.module-coverage-table tbody tr:last-child td {
  border-bottom: 0;
}

.medflo-module-showcases {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.module-showcase {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  min-height: clamp(430px, 48vw, 560px);
  overflow: hidden;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid color-mix(in srgb, var(--teal) 34%, var(--line));
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 18%, color-mix(in srgb, var(--coral) 18%, transparent), transparent 28%),
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 8%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 6%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--surface-soft) 72%, var(--surface));
  background-size: auto, 56px 56px, 56px 56px, auto;
  box-shadow: 0 28px 90px color-mix(in srgb, var(--ink) 9%, transparent);
}

.module-showcase:nth-of-type(even) {
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 0.95fr);
}

.module-showcase:nth-of-type(even) .module-copy {
  order: 2;
  justify-self: center;
  width: 100%;
}

.module-showcase:nth-of-type(even) .module-device-wall {
  order: 1;
  width: 100%;
  max-width: 560px;
  justify-self: center;
}

.module-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 560px;
}

.module-copy h3 {
  margin-bottom: 20px;
  font-size: clamp(1.55rem, 3vw, 2.8rem);
  line-height: 1.06;
}

.module-copy ul {
  display: grid;
  gap: 14px;
  margin: 0 0 28px;
  padding: 0;
}

.module-copy li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--ink);
  list-style: none;
}

.module-copy li::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--teal) 62%, var(--line));
  border-radius: 8px;
  background: var(--white);
  color: var(--teal);
  content: "";
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--teal) 10%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--white) 42%, transparent);
}

.module-copy li::after {
  position: absolute;
  inset-inline-start: 9px;
  top: 50%;
  width: 20px;
  height: 20px;
  background: var(--teal);
  content: "";
  -webkit-mask: var(--module-icon) center / contain no-repeat;
  mask: var(--module-icon) center / contain no-repeat;
  transform: translateY(-50%);
}

:root[data-theme="dark"] .module-copy li::before {
  border-color: color-mix(in srgb, var(--teal) 68%, var(--white));
  background: color-mix(in srgb, var(--surface) 82%, var(--teal));
  box-shadow:
    0 10px 24px color-mix(in srgb, var(--teal) 12%, transparent),
    inset 0 0 0 1px color-mix(in srgb, var(--white) 8%, transparent);
}

:root[data-theme="dark"] .module-copy li::after {
  background: color-mix(in srgb, var(--teal) 72%, var(--white));
}

.module-showcase:nth-of-type(1) li:nth-child(1) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 21a8 8 0 0 0-16 0'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(1) li:nth-child(2) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h8l4 4v14H7z'/%3E%3Cpath d='M15 3v5h5'/%3E%3Cpath d='M9 13h6M9 17h4'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(1) li:nth-child(3) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v16H4z'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(1) li:nth-child(4) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 7-3 9h18c0-2-3-2-3-9'/%3E%3Cpath d='M10 21h4'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(2) li:nth-child(1) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3v4M17 3v4M4 9h16M5 5h14v16H5z'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(2) li:nth-child(2) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h16M4 12h12M4 17h8'/%3E%3Cpath d='m15 15 3 3 3-3'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(2) li:nth-child(3) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 11 3 3L22 4'/%3E%3Cpath d='M21 12v7a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h11'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(2) li:nth-child(4) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a4 4 0 0 1-4 4H8l-5 3V7a4 4 0 0 1 4-4h10a4 4 0 0 1 4 4z'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(3) li:nth-child(1) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 3h10v18l-2-1-2 1-2-1-2 1-2-1z'/%3E%3Cpath d='M9 8h6M9 12h6M9 16h4'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(3) li:nth-child(2) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='7' y='2' width='10' height='20' rx='2'/%3E%3Cpath d='M11 18h2'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(3) li:nth-child(3) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8h18v10H3z'/%3E%3Cpath d='M7 8V6h10v2M7 13h10'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(3) li:nth-child(4) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7'/%3E%3Cpath d='M21 3v7h-7'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(4) li:nth-child(1) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h10'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(4) li:nth-child(2) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12V5H5v14h7'/%3E%3Cpath d='m14 19 2 2 5-5'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(4) li:nth-child(3) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 1l4 4-11 11H6v-4z'/%3E%3Cpath d='M3 21h18'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(4) li:nth-child(4) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(5) li:nth-child(1) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V5M4 19h16'/%3E%3Cpath d='M8 16v-5M13 16V8M18 16v-9'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(5) li:nth-child(2) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-8 0v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3Cpath d='M20 8v6M23 11h-6'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(5) li:nth-child(3) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 13a5 5 0 0 0 7 0l3-3a5 5 0 0 0-7-7l-1.5 1.5'/%3E%3Cpath d='M14 11a5 5 0 0 0-7 0l-3 3a5 5 0 0 0 7 7l1.5-1.5'/%3E%3C/svg%3E"); }
.module-showcase:nth-of-type(5) li:nth-child(4) { --module-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='m7 15 4-4 3 3 5-7'/%3E%3C/svg%3E"); }

.module-device-wall {
  position: relative;
  display: grid;
  min-width: 0;
  width: 100%;
  max-width: 640px;
  min-height: 330px;
  overflow: visible;
  place-items: center;
}

.module-showcase:nth-of-type(odd) .module-device-wall {
  justify-self: end;
}

.module-device-wall::before {
  position: absolute;
  inset: 12% 2% 8% 8%;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 36%, color-mix(in srgb, var(--teal) 24%, transparent), transparent 32%),
    radial-gradient(circle at 78% 62%, color-mix(in srgb, var(--coral) 22%, transparent), transparent 30%);
  content: "";
  filter: blur(4px);
}

.device {
  position: absolute;
  display: block;
  border: 5px solid color-mix(in srgb, var(--ink) 86%, transparent);
  background: var(--surface);
  box-shadow: 0 28px 70px color-mix(in srgb, var(--ink) 18%, transparent);
}

.device.laptop {
  width: min(420px, 82%);
  aspect-ratio: 16 / 10;
  left: 2%;
  bottom: 18%;
  border-radius: 12px;
}

.device.laptop::after {
  position: absolute;
  left: 50%;
  bottom: -28px;
  width: 112%;
  height: 18px;
  border-radius: 0 0 18px 18px;
  background: color-mix(in srgb, var(--ink) 18%, var(--surface));
  content: "";
  transform: translateX(-50%);
}

.device.phone {
  width: min(160px, 32%);
  aspect-ratio: 9 / 18;
  right: 6%;
  top: 6%;
  z-index: 1;
  border-radius: 28px;
}

.device.phone::before {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 44%;
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 80%, transparent);
  content: "";
  transform: translateX(-50%);
}

.device span,
.device i {
  position: absolute;
  display: block;
  border-radius: 8px;
  background: var(--teal);
}

.device.laptop span {
  left: 9%;
  top: 16%;
  width: 38%;
  height: 18%;
}

.device.laptop i {
  right: 9%;
  top: 18%;
  width: 34%;
  height: 9%;
  box-shadow:
    0 36px 0 color-mix(in srgb, var(--teal) 62%, var(--white)),
    -74px 72px 0 var(--coral),
    0 108px 0 color-mix(in srgb, var(--silver) 72%, var(--teal));
}

.device.phone span {
  left: 18%;
  top: 22%;
  width: 64%;
  height: 9%;
  background: var(--coral);
  box-shadow:
    0 38px 0 color-mix(in srgb, var(--teal) 72%, var(--white)),
    0 76px 0 color-mix(in srgb, var(--teal) 50%, var(--white)),
    0 114px 0 color-mix(in srgb, var(--silver) 65%, var(--teal));
}

.device.phone i {
  left: 50%;
  bottom: 14px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--teal) 82%, var(--white));
  transform: translateX(-50%);
}

.device.schedule span {
  background:
    linear-gradient(90deg, var(--coral) 0 18%, transparent 18% 23%, color-mix(in srgb, var(--teal) 70%, var(--white)) 23% 42%, transparent 42% 47%, var(--teal) 47% 66%, transparent 66% 71%, color-mix(in srgb, var(--silver) 72%, var(--teal)) 71%);
}

.device.billing span {
  background: var(--teal);
  box-shadow:
    0 42px 0 var(--coral),
    0 84px 0 color-mix(in srgb, var(--teal) 54%, var(--white));
}

.device.services span {
  background: var(--coral);
  box-shadow:
    52px 0 0 color-mix(in srgb, var(--teal) 78%, var(--white)),
    104px 0 0 var(--teal),
    0 58px 0 color-mix(in srgb, var(--silver) 78%, var(--teal));
}

.device.admin span {
  background: color-mix(in srgb, var(--teal) 78%, var(--white));
  box-shadow:
    68px 18px 0 var(--coral),
    136px -10px 0 var(--teal),
    40px 82px 0 color-mix(in srgb, var(--silver) 72%, var(--teal));
}

.patient-module-devices {
  max-width: 760px;
  min-height: 420px;
}

.patient-module-devices::before {
  inset: 8% 0 4%;
}

.patient-module-image {
  position: relative;
  z-index: 1;
  display: block;
  width: min(760px, 112%);
  max-width: none;
  height: auto;
  filter: drop-shadow(0 30px 60px color-mix(in srgb, var(--ink) 16%, transparent));
}

.patient-module-image-dark {
  display: none;
}

:root[data-theme="dark"] .patient-module-image-light {
  display: none;
}

:root[data-theme="dark"] .patient-module-image-dark {
  display: block;
}

.scheduling-module-devices {
  max-width: 760px;
  min-height: 420px;
}

.module-showcase:nth-of-type(even) .scheduling-module-devices {
  max-width: 760px;
}

.scheduling-module-devices::before {
  inset: 8% 0 4%;
}

.scheduling-module-image-dark {
  display: none;
}

:root[data-theme="dark"] .scheduling-module-image-light {
  display: none;
}

:root[data-theme="dark"] .scheduling-module-image-dark {
  display: block;
}

.cms-module-devices,
.admin-module-devices {
  max-width: min(780px, 100%);
  min-height: 0;
  aspect-ratio: 2012 / 1500;
  align-self: center;
}

.module-showcase:nth-of-type(even) .cms-module-devices,
.module-showcase:nth-of-type(odd) .admin-module-devices {
  max-width: min(780px, 100%);
}

.cms-module-devices::before,
.admin-module-devices::before {
  display: none;
}

.cms-preview-monitor {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 23% 1fr;
  width: min(780px, 116%);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 10px solid #e6e8eb;
  border-radius: 18px;
  background: #f2faf9;
  box-shadow: 0 34px 80px color-mix(in srgb, var(--ink) 18%, transparent);
}

.cms-preview-monitor::before,
.cms-preview-monitor::after {
  position: absolute;
  left: 50%;
  content: "";
  transform: translateX(-50%);
}

.cms-preview-monitor::before {
  top: 7px;
  width: 7px;
  height: 7px;
  z-index: 4;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 54%, var(--silver));
}

.cms-preview-monitor::after {
  bottom: -112px;
  width: 25%;
  height: 110px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--teal) 55%, var(--neutral-variant)), color-mix(in srgb, var(--surface) 55%, var(--teal)));
  box-shadow: 0 108px 0 72px color-mix(in srgb, var(--teal) 42%, var(--neutral-variant));
}

.cms-preview-sidebar {
  display: grid;
  align-content: start;
  gap: clamp(9px, 1.1vw, 14px);
  padding: clamp(18px, 2.6vw, 34px) clamp(10px, 1.5vw, 20px);
  background: #edf6f6;
  color: #121d1b;
  font-size: clamp(0.42rem, 0.85vw, 0.74rem);
  font-weight: 700;
}

.cms-preview-logo {
  display: grid;
  width: clamp(54px, 8vw, 104px);
  aspect-ratio: 1;
  place-items: center;
  margin: 0 auto clamp(8px, 1vw, 18px);
  border-radius: 50%;
  background: #dce3ec;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: clamp(0.62rem, 1.3vw, 1.1rem);
}

.cms-preview-sidebar span {
  display: flex;
  min-height: 18px;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.cms-preview-sidebar span::before {
  display: inline-block;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-radius: 5px;
  content: "";
}

.cms-preview-main {
  padding: clamp(18px, 3vw, 48px) clamp(16px, 3.4vw, 58px);
  background: #f5fcfb;
}

.cms-preview-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: clamp(44px, 6vw, 68px);
  margin-bottom: clamp(12px, 1.8vw, 22px);
  padding: 0 clamp(12px, 1.6vw, 24px);
  border-radius: 8px;
  background: #e8f1f0;
  color: #121d1b;
}

.cms-preview-header strong {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-body);
  font-size: clamp(0.82rem, 1.65vw, 1.45rem);
  line-height: 1;
}

.cms-preview-header strong::before {
  width: clamp(16px, 2vw, 24px);
  height: clamp(16px, 2vw, 24px);
  background:
    linear-gradient(currentColor 0 0) 0 0 / 42% 42% no-repeat,
    linear-gradient(currentColor 0 0) 100% 0 / 42% 42% no-repeat,
    linear-gradient(currentColor 0 0) 0 100% / 42% 42% no-repeat,
    linear-gradient(currentColor 0 0) 100% 100% / 42% 42% no-repeat;
  content: "";
}

.cms-preview-header b {
  padding: clamp(8px, 1vw, 13px) clamp(14px, 1.8vw, 28px);
  border-radius: 7px;
  background: var(--teal);
  color: var(--white);
  font-size: clamp(0.48rem, 0.9vw, 0.78rem);
  white-space: nowrap;
}

.cms-preview-body {
  display: grid;
  grid-template-columns: minmax(128px, 28%) minmax(0, 1fr);
  gap: clamp(10px, 1.5vw, 18px);
}

.cms-preview-filters {
  display: grid;
  align-content: start;
  gap: clamp(7px, 0.9vw, 12px);
}

.cms-preview-filters span,
.cms-preview-filters div {
  min-height: clamp(30px, 3.7vw, 48px);
  border-radius: 7px;
  background: #dde5ee;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  font-size: clamp(0.42rem, 0.74vw, 0.64rem);
}

.cms-preview-filters span {
  display: flex;
  align-items: center;
  padding: 0 clamp(8px, 1vw, 14px);
}

.cms-preview-filters div {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
}

.cms-preview-filters div:nth-of-type(2) {
  grid-template-columns: repeat(3, 1fr);
}

.cms-preview-filters b {
  display: grid;
  place-items: center;
  border-radius: 6px;
  color: inherit;
  font-size: inherit;
}

.cms-preview-filters b:first-child,
.cms-preview-filters div:nth-of-type(2) b:nth-child(2) {
  background: var(--teal);
  color: var(--white);
}

.cms-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(8px, 1.1vw, 14px);
}

.cms-preview-grid article {
  position: relative;
  display: grid;
  min-height: clamp(82px, 10vw, 132px);
  align-content: end;
  overflow: hidden;
  padding: clamp(8px, 1vw, 13px);
  border-radius: 7px;
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.65), transparent 23%),
    linear-gradient(132deg, #008080 0 54%, #005a5f 54% 70%, #12211f 100%);
  color: var(--white);
}

.cms-preview-grid article::before {
  position: absolute;
  right: 8%;
  bottom: 18%;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(135deg, #f4f6f5, #b7c2c2);
  content: "";
  opacity: 0.78;
}

.cms-preview-grid article:nth-child(3)::before,
.cms-preview-grid article:nth-child(5)::before {
  right: auto;
  left: 8%;
}

.cms-preview-grid i {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 3px 7px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--ink);
  font-size: clamp(0.4rem, 0.7vw, 0.62rem);
  font-style: normal;
}

.cms-preview-grid strong {
  position: relative;
  z-index: 1;
  max-width: 72%;
  font-size: clamp(0.54rem, 1.1vw, 1rem);
  line-height: 0.98;
}

.cms-preview-grid small {
  position: absolute;
  right: 8px;
  bottom: 8px;
  z-index: 1;
  padding: 3px 7px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--teal) 90%, var(--white));
  color: var(--white);
  font-size: clamp(0.38rem, 0.64vw, 0.58rem);
}

:root[data-theme="dark"] .cms-preview-monitor {
  border-color: #e6e8eb;
  background: #0c1413;
}

:root[data-theme="dark"] .cms-preview-sidebar {
  background: #2b3334;
  color: #e8eeee;
}

:root[data-theme="dark"] .cms-preview-logo {
  background: #474e57;
  color: color-mix(in srgb, var(--teal) 52%, var(--white));
}

:root[data-theme="dark"] .cms-preview-main {
  background: #101816;
}

:root[data-theme="dark"] .cms-preview-header,
:root[data-theme="dark"] .cms-preview-filters span,
:root[data-theme="dark"] .cms-preview-filters div {
  background: #2b3334;
  color: #e6eeee;
}

:root[data-theme="dark"] .cms-preview-header b,
:root[data-theme="dark"] .cms-preview-filters b:first-child,
:root[data-theme="dark"] .cms-preview-filters div:nth-of-type(2) b:nth-child(2) {
  background: color-mix(in srgb, var(--teal) 48%, var(--white));
  color: #0c1413;
}

:root[data-theme="dark"] .cms-preview-grid article {
  background:
    radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.18), transparent 23%),
    linear-gradient(132deg, #008080 0 54%, #00656a 54% 70%, #10201e 100%);
}

.cms-module-devices .cms-module-image,
.admin-module-devices .admin-module-image {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.cms-module-image-dark,
.admin-module-image-dark {
  display: none;
}

:root[data-theme="dark"] .cms-module-image-light,
:root[data-theme="dark"] .admin-module-image-light {
  display: none;
}

:root[data-theme="dark"] .cms-module-image-dark,
:root[data-theme="dark"] .admin-module-image-dark {
  display: block;
}

.billing-flow-visual {
  align-content: center;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(16px, 2.4vw, 24px);
  max-width: 680px;
  min-height: 360px;
  padding: clamp(10px, 1.5vw, 16px);
}

.billing-flow-visual::before {
  inset: 5% 0 3%;
}

.billing-flow-card {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  align-content: start;
  min-height: 210px;
  padding: clamp(18px, 2.3vw, 24px);
  border: 1px solid color-mix(in srgb, var(--teal) 40%, var(--line));
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 88%, var(--white)), color-mix(in srgb, var(--surface-soft) 80%, var(--white))),
    var(--surface);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--ink) 10%, transparent);
}

.billing-flow-card span,
.billing-flow-sync strong {
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 800;
}

.billing-flow-card strong {
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.55rem);
  line-height: 1.05;
}

.billing-flow-card small {
  display: grid;
  grid-template-columns: 9px 1fr;
  gap: 9px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
}

.billing-flow-card small::before {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--coral);
  content: "";
}

.billing-flow-card-erp {
  border-color: color-mix(in srgb, var(--coral) 48%, var(--line));
}

.billing-flow-card-erp span {
  color: var(--coral);
}

.billing-flow-card-erp small::before {
  background: var(--teal);
}

.billing-flow-sync {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  align-self: center;
  gap: 7px;
  min-width: 92px;
  color: var(--muted);
  text-align: center;
}

.billing-flow-sync span {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 2px solid var(--teal);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 86%, var(--teal));
  box-shadow: 0 16px 42px color-mix(in srgb, var(--teal) 20%, transparent);
}

.billing-flow-sync span::before {
  color: var(--teal);
  content: "↔";
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.billing-flow-sync small {
  color: var(--muted);
  font-weight: 800;
}

:root[data-theme="dark"] .billing-flow-card {
  background: color-mix(in srgb, var(--surface) 82%, #000000);
  box-shadow: 0 24px 70px color-mix(in srgb, #000000 34%, transparent);
}

:root[data-theme="dark"] .billing-flow-sync span {
  background: color-mix(in srgb, var(--surface) 80%, var(--teal));
}

.module-device-frame {
  position: absolute;
  z-index: 1;
  display: grid;
  margin: 0;
}

.module-device-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dashboard-device {
  right: 0;
  bottom: 13%;
  width: min(610px, 88%);
  padding: 14px 14px 18px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  box-shadow: 0 30px 70px color-mix(in srgb, var(--ink) 20%, transparent);
}

.dashboard-device .device-screen {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
}

.laptop-base {
  position: absolute;
  left: 50%;
  bottom: -22px;
  width: 108%;
  height: 24px;
  border-radius: 0 0 24px 24px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--silver) 85%, var(--white)), color-mix(in srgb, var(--ink) 18%, var(--surface)));
  transform: translateX(-50%);
}

.phone-device {
  left: 0;
  bottom: 3%;
  z-index: 3;
  width: min(176px, 29%);
  padding: 10px;
  border-radius: 34px;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  box-shadow: 0 26px 60px color-mix(in srgb, var(--ink) 24%, transparent);
}

.phone-device::before {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 2;
  width: 42%;
  height: 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 92%, transparent);
  content: "";
  transform: translateX(-50%);
}

.phone-device .device-screen {
  aspect-ratio: 402 / 874;
  overflow: hidden;
  border-radius: 26px;
  background: var(--surface);
}

.device-dark {
  display: none;
}

:root[data-theme="dark"] .device-light {
  display: none;
}

:root[data-theme="dark"] .device-dark {
  display: block;
}

.team-showcase {
  position: relative;
  overflow: clip;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 12%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 9%, transparent) 1px, transparent 1px),
    var(--surface);
  background-size: 88px 88px, 88px 88px, auto;
}

.team-showcase::before {
  position: absolute;
  top: clamp(28px, 5vw, 72px);
  right: clamp(18px, 6vw, 96px);
  width: clamp(160px, 18vw, 260px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  content: "";
}

.team-showcase-head {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 34px;
}

.team-showcase-head h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(1.65rem, 3.2vw, 2.8rem);
  line-height: 1.08;
}

.team-slider-controls {
  display: flex;
  gap: 12px;
}

.team-slider-controls button {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--coral);
  border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--coral);
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease;
}

.team-slider-controls button:hover,
.team-slider-controls button:focus-visible {
  background: var(--coral);
  color: var(--white);
}

.team-slider {
  position: relative;
  z-index: 1;
  display: grid;
  grid-auto-columns: clamp(230px, 28vw, 330px);
  grid-auto-flow: column;
  gap: clamp(22px, 4vw, 46px);
  overflow-x: auto;
  padding: 18px clamp(24px, 3vw, 46px) 22px;
  scroll-padding-inline: clamp(24px, 3vw, 46px);
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--coral) color-mix(in srgb, var(--surface) 70%, var(--teal));
}

.team-slide {
  position: relative;
  display: grid;
  min-height: clamp(370px, 42vw, 460px);
  align-content: start;
  justify-items: center;
  overflow: visible;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  scroll-snap-align: start;
}

.team-orbit {
  position: relative;
  display: grid;
  width: clamp(210px, 24vw, 300px);
  max-width: 100%;
  aspect-ratio: 1;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--white) 26%, transparent), transparent 24%),
    var(--coral);
  box-shadow:
    inset 0 0 0 clamp(10px, 1.6vw, 18px) color-mix(in srgb, var(--white) 14%, transparent),
    0 28px 70px color-mix(in srgb, var(--coral) 28%, transparent);
}

.team-orbit::after {
  position: absolute;
  right: 18%;
  bottom: 12%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--teal);
  content: "";
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--teal) 18%, transparent);
}

.team-orbit img {
  width: calc(100% - clamp(24px, 3vw, 42px));
  height: calc(100% - clamp(24px, 3vw, 42px));
  border-radius: 50%;
  object-fit: cover;
  object-position: var(--team-photo-position, center top);
  transform: scale(var(--team-photo-scale, 1));
  transform-origin: center;
}

.team-orbit span {
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 900;
  line-height: 1;
}

.team-slide-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  width: min(300px, 100%);
  margin-top: 20px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  text-align: center;
}

.team-slide-copy span {
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

/* Arabic script is optically taller than Latin uppercase at the same point
   size, so the role label looks larger than the English version. Nudge it
   down so both read at the same visual size (home + about team sliders). */
[dir="rtl"] .team-slide-copy span {
  font-size: 0.68rem;
}

.team-slide-copy h3,
.team-slide-copy p {
  margin: 0;
}

.team-slide-copy p {
  color: var(--muted);
}

.team-slide-copy a {
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 900;
}

:root[data-theme="dark"] .team-showcase {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 14%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    color-mix(in srgb, #050908 82%, var(--teal));
  background-size: 88px 88px, 88px 88px, auto;
}

:root[data-theme="dark"] .team-showcase::before {
  background: color-mix(in srgb, var(--coral) 16%, transparent);
}

:root[data-theme="dark"] .team-orbit {
  background:
    radial-gradient(circle at 34% 28%, color-mix(in srgb, var(--white) 18%, transparent), transparent 24%),
    color-mix(in srgb, var(--coral) 92%, var(--white));
  box-shadow:
    inset 0 0 0 clamp(10px, 1.6vw, 18px) color-mix(in srgb, var(--white) 10%, transparent),
    0 28px 70px color-mix(in srgb, var(--coral) 22%, transparent);
}

:root[data-theme="dark"] .team-slide-copy h3 {
  color: var(--white);
}

:root[data-theme="dark"] .team-slide-copy p {
  color: color-mix(in srgb, var(--white) 72%, var(--teal));
}

:root[data-theme="dark"] .team-slide-copy a,
:root[data-theme="dark"] .team-slide-copy span {
  color: color-mix(in srgb, var(--teal) 76%, var(--white));
}

.about-team.team-showcase {
  padding-block: clamp(86px, 11vw, 150px);
}

.about-team .team-showcase-head {
  width: min(1040px, 100%);
  margin: 0 auto clamp(46px, 7vw, 86px);
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: start;
}

.about-team .team-showcase-head .cta-row {
  max-width: 440px;
  justify-content: flex-end;
}

.about-team .team-slider-controls {
  display: none;
}

.about-team .team-slider {
  position: relative;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(42px, 7vw, 92px);
  width: min(1040px, 100%);
  margin: 0 auto;
  overflow: visible;
  padding: 0;
  scroll-padding-inline: 0;
  scroll-snap-type: none;
  scrollbar-width: none;
}

.about-team .team-slider::-webkit-scrollbar {
  display: none;
}

.about-team .team-slide {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 86px);
  align-items: center;
  justify-items: stretch;
  min-height: 0;
  scroll-snap-align: none;
}

.about-team .team-slide:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.78fr);
}

.about-team .team-slide:nth-child(even) .team-orbit {
  order: 2;
  justify-self: end;
}

.about-team .team-slide:nth-child(even) .team-slide-copy {
  order: 1;
  justify-self: end;
  text-align: right;
}

.about-team .team-orbit {
  width: clamp(230px, 28vw, 340px);
  justify-self: start;
}

.about-team .team-slide-copy {
  width: min(440px, 100%);
  margin-top: 0;
  padding: clamp(18px, 3vw, 30px) 0;
  text-align: left;
}

.about-team .team-slide-copy span {
  color: color-mix(in srgb, var(--teal) 78%, var(--white));
}

.about-team .team-slide-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.about-team .team-slide-copy p {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
}

.about-news {
  background: var(--surface);
}

.about-news-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: end;
  margin-bottom: 28px;
}

.about-news-head .section-intro p:not(.eyebrow) {
  max-width: 620px;
}

.about-news-head .button {
  align-self: end;
}

.metric-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.metric {
  padding: 22px;
}

.metric strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(24px, 5vw, 70px);
}

.contact-card,
.form-panel {
  padding: 24px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  min-height: 640px;
  gap: 22px;
}

.contact-card h2 {
  margin-bottom: 0;
}

.contact-card-section {
  display: grid;
  min-width: 0;
}

.contact-channel-section {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.contact-channel-copy {
  max-width: 340px;
  margin: 8px 0 0;
  color: var(--muted);
}

.contact-channel-copy + .contact-channel-icons {
  margin-top: 10px;
}

.contact-location-section {
  flex: 1;
  align-content: end;
}

.contact-channel-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}

.contact-channel-icons a {
  display: inline-grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 88%, var(--teal));
  color: var(--ink);
  transition: border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.contact-channel-icons a:hover,
.contact-channel-icons a:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 16%, transparent);
}

.contact-channel-icons svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

.contact-card .contact-map-heading {
  margin: 0 0 10px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.5em;
  font-weight: 700;
  line-height: 1.55;
}

.contact-address {
  margin: 0 0 14px;
  color: var(--muted);
}

.contact-map {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 8%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--surface) 92%, var(--teal));
  background-size: 36px 36px, 36px 36px, auto;
}

.contact-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border: 0;
  filter: saturate(0.9);
}

.idea-cta {
  position: relative;
  overflow: clip;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 7%, transparent) 1px, transparent 1px),
    var(--bg);
  background-size: 88px 88px, 88px 88px, auto;
}

.idea-cta::before {
  position: absolute;
  right: clamp(20px, 8vw, 140px);
  bottom: clamp(-80px, -6vw, -36px);
  width: clamp(160px, 20vw, 300px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: color-mix(in srgb, var(--coral) 14%, transparent);
  content: "";
}

.idea-cta-inner {
  position: relative;
  z-index: 1;
  width: min(900px, 100%);
}

.idea-cta h2 {
  max-width: 780px;
  margin-bottom: 16px;
  font-size: clamp(1.8rem, 3.6vw, 3.2rem);
  line-height: 1.05;
}

.idea-cta p:not(.eyebrow) {
  max-width: 640px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

:root[data-theme="dark"] .idea-cta {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 14%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    color-mix(in srgb, #050908 82%, var(--teal));
  background-size: 88px 88px, 88px 88px, auto;
}

:root[data-theme="dark"] .idea-cta::before {
  background: color-mix(in srgb, var(--coral) 16%, transparent);
}

.home-contact {
  position: relative;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 7%, transparent) 1px, transparent 1px),
    var(--surface-soft);
  background-size: 88px 88px;
}

.home-contact-form {
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: clamp(26px, 4vw, 46px);
}

.home-page .home-contact-form,
.about-page .home-contact-form {
  width: min(980px, 100%);
}

.about-page .home-contact-form {
  margin-inline: auto;
}

.home-contact-form .form-heading,
.home-contact-form .form-field-wide,
.home-contact-form .button,
.home-contact-form .form-status {
  grid-column: 1 / -1;
}

.form-heading h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  line-height: 1.08;
}

.form-grid {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 12px;
}

textarea {
  resize: vertical;
}

.form-status {
  min-height: 26px;
  margin: 0;
  color: var(--teal);
  font-weight: 900;
}

.policy {
  max-width: 900px;
}

.policy h2 {
  margin-top: 42px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(180px, 0.75fr) minmax(280px, 1fr);
  align-items: start;
  justify-content: space-between;
  gap: clamp(28px, 6vw, 90px);
  padding-block: 34px;
  padding-inline: max(clamp(20px, 5vw, 76px), calc((100vw - 1500px) / 2));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.site-footer .brand img {
  width: clamp(94px, 8vw, 128px);
}

.footer-branding {
  display: grid;
  gap: 16px;
}

.footer-branding p {
  margin: 0;
}

.footer-branding .footer-copy {
  color: color-mix(in srgb, var(--muted) 84%, var(--ink));
  font-size: 0.88rem;
}

.footer-branding .footer-address {
  color: color-mix(in srgb, var(--teal) 72%, var(--muted));
  font-size: 0.92rem;
  font-weight: 700;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social a {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  transition: color 180ms ease, background 180ms ease;
}

.footer-social a:hover,
.footer-social a:focus-visible {
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--teal);
}

.footer-social svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, max-content);
  gap: clamp(18px, 4vw, 56px);
  justify-self: end;
  max-width: 100%;
}

.footer-nav div {
  display: grid;
  gap: 8px;
}

.footer-nav strong {
  margin-bottom: 4px;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 800;
  transition: color 180ms ease;
}

.footer-nav a:hover,
.footer-nav a:focus-visible {
  color: var(--teal);
}

.content-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.content-list.content-slider {
  display: grid;
  grid-auto-columns: minmax(280px, 360px);
  grid-auto-flow: column;
  grid-template-columns: none;
  gap: 18px;
  overflow-x: auto;
  padding: 4px 4px 22px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--teal) color-mix(in srgb, var(--surface) 74%, var(--teal));
}

.content-card,
.team-card,
.cms-panel,
.cms-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 18px 48px color-mix(in srgb, var(--ink) 7%, transparent);
}

.content-card,
.team-card {
  min-height: 260px;
  padding: 22px;
}

.content-slider .content-card {
  scroll-snap-align: start;
}

.about-news-list.content-slider {
  grid-auto-columns: minmax(260px, 340px);
  padding: 4px 4px 14px;
}

.about-news-list .content-card {
  min-height: 230px;
  padding: 20px;
}

.content-card-link {
  display: block;
}

.content-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.content-card h3,
.team-card h3 {
  margin-bottom: 12px;
  font-size: 1.35rem;
  line-height: 1.12;
}

.content-card h3 a:hover,
.content-card h3 a:focus-visible,
.read-more-link:hover,
.read-more-link:focus-visible,
.back-link:hover,
.back-link:focus-visible {
  color: var(--coral);
}

.content-card p,
.team-card p,
.content-meta {
  color: var(--muted);
}

.content-card h3,
.content-card h3 a,
.content-card p,
.content-meta span {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content-card h3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-card p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.content-meta-link {
  color: inherit;
  text-decoration: none;
}

.content-meta-author,
.content-meta-author-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.content-meta-link:hover,
.content-meta-link:focus-visible {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.content-meta-avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border: 1px solid color-mix(in srgb, var(--teal) 62%, var(--line));
  border-radius: 999px;
  object-fit: cover;
}

.content-card details {
  margin-top: 18px;
}

.content-card summary,
.team-card a,
.read-more-link,
.back-link {
  color: var(--teal);
  font-family: var(--font-display);
  font-weight: 900;
  cursor: pointer;
}

.rich-content {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  color: var(--muted);
}

.rich-content h2,
.rich-content h3,
.rich-content h4,
.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote {
  margin: 0;
}

.rich-content h2,
.rich-content h3,
.rich-content h4 {
  color: var(--ink);
  line-height: 1.08;
}

.rich-content img {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.rich-content blockquote {
  padding-left: 14px;
  border-left: 3px solid var(--coral);
  color: var(--ink);
  font-weight: 800;
}

.rich-content a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
}

.align-left {
  text-align: left;
}

.align-center {
  text-align: center;
  margin-inline: auto;
}

.align-right {
  text-align: right;
  margin-left: auto;
}

img.align-center,
.rich-content img.align-center,
.rich-editor img.align-center {
  display: block;
  margin-inline: auto;
}

img.align-right,
.rich-content img.align-right,
.rich-editor img.align-right {
  display: block;
  margin-left: auto;
  margin-right: 0;
}

.article-reader {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(70px, 10vw, 132px) 0;
}

.cms-review-reader {
  width: 100%;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.cms-article-preview {
  grid-column: 1 / -1;
  margin-top: 18px;
}

.cms-article-preview-reader .article-reader-head h1 {
  font-size: clamp(1.85rem, 3vw, 2.8rem);
}

.cms-review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin-bottom: 28px;
}

.cms-reject-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--coral) 72%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--coral) 8%, var(--surface));
}

.article-reader-head {
  display: grid;
  gap: 14px;
  margin-bottom: 30px;
}

.article-reader-head h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3.4rem);
  line-height: 1.02;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-reader-head p {
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.article-reader,
.article-body {
  overflow-wrap: anywhere;
}

.article-hero-image {
  width: 100%;
  max-height: 560px;
  margin: 10px 0 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.article-body {
  width: min(760px, 100%);
  margin-inline: auto;
  color: color-mix(in srgb, var(--ink) 72%, var(--muted));
  font-size: clamp(1.06rem, 1.5vw, 1.22rem);
  line-height: 1.78;
}

.article-body h2 {
  margin-top: 22px;
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
}

.article-body h3 {
  margin-top: 18px;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
}

.article-body img {
  margin-block: 16px;
}

.article-body hr,
.rich-editor hr,
.rich-content hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line);
}

.text-small {
  font-size: 0.88rem;
}

.text-large {
  font-size: 1.22rem;
  font-weight: 800;
}

.team-card span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state {
  color: var(--muted);
  font-weight: 800;
}

.cms-shell {
  display: grid;
  gap: 20px;
}

.cms-login {
  width: min(560px, 100%);
  margin-inline: auto;
}

.cms-arabic-block {
  display: grid;
  gap: 14px;
  margin-top: 6px;
  padding: clamp(16px, 2.4vw, 24px);
  border: 1px solid color-mix(in srgb, var(--teal) 45%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--teal) 7%, var(--surface));
}

.cms-arabic-title {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  font-size: 1.05rem;
}

.cms-arabic-title span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cms-arabic-block label {
  font-weight: 700;
}

.cms-arabic-block [data-rich-editor] {
  text-align: right;
}

.lang-toggle {
  display: inline-grid;
  place-items: center;
  min-height: 44px;
  min-width: 44px;
  padding: 8px 14px;
  border: 1px solid color-mix(in srgb, var(--teal) 72%, var(--header-ink));
  border-radius: 8px;
  background: transparent;
  color: var(--header-ink);
  font-family: var(--font-display);
  font-weight: 850;
  font-size: 1.05rem;
  line-height: 1;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.lang-toggle:hover,
.lang-toggle:focus-visible {
  background: color-mix(in srgb, var(--teal) 16%, transparent);
  border-color: var(--teal);
}

/* Toggles relocated into the mobile nav drawer */
.site-nav .lang-toggle,
.site-nav .theme-toggle {
  width: 100%;
  justify-content: center;
  margin: 0;
}

.site-nav .header-toggle-row {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 6px;
}

.site-nav .header-toggle-row .lang-toggle,
.site-nav .header-toggle-row .theme-toggle {
  flex: 1;
}

.site-nav .header-toggle-row .theme-toggle span {
  display: inline;
}

.arabic-cta {
  margin: clamp(14px, 2vw, 22px) 0;
}

.arabic-cta-end {
  display: flex;
  justify-content: center;
  margin-top: clamp(28px, 4vw, 48px);
}

.arabic-cta-end .button {
  display: inline-flex;
  width: auto;
  min-width: 240px;
  justify-content: center;
}

.arabic-cta .button {
  font-family: var(--font-display);
}

.faq-accordion[dir="rtl"] summary,
.overview-faq-item[dir="rtl"] summary,
.team-card[dir="rtl"],
.team-slide-copy[dir="rtl"],
.article-reader[dir="rtl"] {
  text-align: right;
}

.article-reader[dir="rtl"] .content-meta {
  justify-content: flex-end;
}

/* Site-wide RTL corrections for Arabic. Base direction is handled by
   [dir="rtl"] on <html>; these fix physically-positioned decorations. */
[dir="rtl"] .hero-mark {
  right: auto;
  left: max(clamp(-70px, 5vw, 76px), calc((100vw - 1440px) / 2));
}

[dir="rtl"] .orbit-dot {
  right: auto;
  left: clamp(210px, 28vw, 560px);
}

[dir="rtl"] .about-hero-panel a::after {
  right: auto;
  left: 0;
  content: "->";
  direction: ltr;
  transform: scaleX(-1);
}

/* RTL: MedFlo desktop submenu opens toward the left and its caret flips. */
[dir="rtl"] .nav-subtrigger {
  text-align: right;
}

[dir="rtl"] .nav-subtrigger::before {
  margin-left: 0;
  margin-right: auto;
  transform: rotate(-135deg);
}

[dir="rtl"] .nav-subdropdown {
  left: auto;
  right: 100%;
  transform: translateX(8px);
}

[dir="rtl"] .nav-submenu:hover .nav-subdropdown,
[dir="rtl"] .nav-submenu.open .nav-subdropdown {
  transform: translateX(0);
}

/* RTL: connected-flow step arrows point left (reading direction). Only while
   the steps are laid out horizontally; the stacked layout keeps a downward
   connector for both directions. */
@media (min-width: 761px) {
  [dir="rtl"] .flow-step::after {
    right: auto;
    left: -35px;
  }

  [dir="rtl"] .flow-step::before {
    right: auto;
    left: -39px;
    transform: translateY(-50%) rotate(225deg);
  }
}

[dir="rtl"] .read-more-link,
[dir="rtl"] .content-meta,
[dir="rtl"] .job-detail-actions,
[dir="rtl"] .cta-row {
  justify-content: flex-start;
}

[dir="rtl"] .footer-nav,
[dir="rtl"] .footer-branding,
[dir="rtl"] .nav-drawer-footer {
  text-align: right;
}

[dir="rtl"] .arabic-cta {
  text-align: right;
}

.cms-login h2 {
  margin-bottom: 8px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.08;
}

.cms-toolbar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.cms-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.cms-tabs {
  margin-top: 18px;
}

.cms-select-picker {
  display: block;
  max-width: 420px;
}

.cms-select-picker label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cms-select-picker select {
  min-height: 52px;
  width: 100%;
  padding: 12px 44px 12px 16px;
  border: 1px solid color-mix(in srgb, var(--teal) 70%, var(--line));
  border-radius: 8px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--teal) 50%) calc(100% - 23px) 50% / 7px 7px no-repeat,
    linear-gradient(135deg, var(--teal) 50%, transparent 50%) calc(100% - 17px) 50% / 7px 7px no-repeat,
    var(--surface);
  color: var(--ink);
  box-shadow: 0 16px 36px color-mix(in srgb, var(--teal) 12%, transparent);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 900;
}

.cms-select-picker select:hover,
.cms-select-picker select:focus-visible {
  border-color: var(--coral);
  outline: none;
}

.cms-account-panel {
  margin-top: 18px;
}

/* Collapsible password-change section inside Account Details. */
.cms-password-edit {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.cms-password-edit > [data-cms-password-edit] {
  justify-self: start;
}

.cms-password-fields {
  display: grid;
  gap: 14px;
}

.cms-permissions,
.cms-view-tabs,
.cms-actions,
.cms-item-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cms-item-actions {
  min-width: min(220px, 100%);
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
}

.cms-item-actions .button {
  white-space: nowrap;
}

.cms-view-tabs {
  margin: 18px 0 22px;
}

.cms-permissions span,
.cms-tab,
.cms-view-tab {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-display);
  font-weight: 850;
}

.cms-tab,
.cms-view-tab {
  cursor: pointer;
}

.cms-tab.active,
.cms-tab:hover,
.cms-tab:focus-visible,
.cms-view-tab.active,
.cms-view-tab:hover,
.cms-view-tab:focus-visible {
  border-color: var(--coral);
  color: var(--ink);
}

.cms-panel {
  padding: 18px;
  min-width: 0;
}

.cms-panel[hidden] {
  display: none;
}

.cms-workspace {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.cms-workspace[hidden] {
  display: none;
}

.cms-publish-form {
  width: 100%;
  min-width: 0;
}

.media-field {
  display: grid;
  gap: 12px;
}

.media-preview {
  width: min(360px, 100%);
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.cms-profile-preview {
  width: 96px;
  aspect-ratio: 1;
  border-radius: 50%;
}

.photo-focus-control {
  display: grid;
  gap: 8px;
  width: min(260px, 100%);
  justify-items: center;
  justify-self: center;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.team-focus-preview {
  width: min(260px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  cursor: move;
  user-select: none;
  touch-action: none;
}

.team-focus-preview:active {
  cursor: move;
}

.photo-focus-control span {
  display: block;
  width: 100%;
  text-align: center;
}

.cms-editor {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(300px, 1fr);
  gap: 18px;
  align-items: start;
}

.permission-note {
  margin: 0;
  color: var(--teal);
  font-weight: 900;
}

.permission-checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.permission-checks legend {
  padding: 0 6px;
  color: var(--muted);
  font-weight: 900;
}

.permission-checks label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.permission-checks input {
  width: auto;
}

.rich-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--surface-soft);
}

.article-wysiwyg {
  min-height: 420px;
  font-size: 1.05rem;
  line-height: 1.72;
}

.rich-toolbar button {
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  cursor: pointer;
}

.rich-toolbar button:hover,
.rich-toolbar button:focus-visible {
  border-color: var(--teal);
  color: var(--teal);
}

.rich-editor {
  min-height: 240px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  background: var(--bg);
  color: var(--ink);
  outline: none;
  overflow-wrap: anywhere;
}

.rich-editor:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--teal) 20%, transparent);
}

.rich-editor:empty::before {
  color: var(--muted);
  content: "Write, format, add subtitles, links, and images...";
}

.rich-editor img {
  max-width: 100%;
  border-radius: 8px;
}

.rich-editor a {
  color: var(--teal);
  font-weight: 900;
  text-decoration: underline;
}

.cms-list {
  display: grid;
  gap: 12px;
}

.cms-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, max-content);
  gap: 14px;
  align-items: center;
  padding: 16px;
}

.cms-item:has(> .cms-item-image) {
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, max-content);
}

.cms-item-draggable {
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, max-content);
  cursor: grab;
}

.cms-item-draggable:has(> .cms-item-image) {
  grid-template-columns: auto auto minmax(0, 1fr) minmax(190px, max-content);
}

.cms-item-draggable:active {
  cursor: grabbing;
}

.cms-item.is-dragging {
  opacity: 0.55;
}

.cms-item.is-drop-before {
  box-shadow: inset 0 4px 0 var(--teal), var(--shadow);
}

.cms-item.is-drop-after {
  box-shadow: inset 0 -4px 0 var(--teal), var(--shadow);
}

.cms-drag-handle {
  display: inline-grid;
  width: 42px;
  height: 48px;
  padding: 0;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
  cursor: move;
  touch-action: none;
  user-select: none;
}

.cms-drag-handle:active {
  cursor: move;
}

.cms-drag-grip {
  display: block;
  width: 19px;
  height: 26px;
  background-image: radial-gradient(circle, var(--muted) 2px, transparent 2.5px);
  background-position: 0 0;
  background-size: 9px 9px;
}

.cms-drag-handle:focus-visible,
.cms-drag-handle:hover {
  border-color: var(--teal);
}

.cms-drag-handle:focus-visible .cms-drag-grip,
.cms-drag-handle:hover .cms-drag-grip {
  background-image: radial-gradient(circle, var(--teal) 2px, transparent 2.5px);
}

.cms-item-image {
  width: 94px;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
  background: var(--surface-soft);
}

.cms-item-image-placeholder {
  display: block;
}

.cms-item > div > span {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.cms-item h3 {
  margin-bottom: 6px;
}

.cms-item p {
  margin: 0;
  color: var(--muted);
}

.cms-item .cms-item-note {
  margin-top: 6px;
  font-size: 0.92rem;
}

.button.danger {
  border-color: color-mix(in srgb, var(--coral) 70%, var(--line));
  background: transparent;
  color: var(--coral);
}

.section.home-seq-square {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 14%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 78% 32%, color-mix(in srgb, var(--coral) 28%, transparent), transparent 32%),
    radial-gradient(circle at 16% 82%, color-mix(in srgb, var(--teal) 26%, transparent), transparent 34%),
    color-mix(in srgb, var(--bg) 88%, #000000);
  background-size: 92px 92px, 92px 92px, auto, auto, auto;
}

.section.home-seq-light {
  background: var(--surface-soft);
}

.section.home-seq-dark {
  background: var(--bg);
}

:root[data-theme="dark"] .section.home-seq-square {
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--teal) 14%, transparent) 1px, transparent 1px),
    linear-gradient(0deg, color-mix(in srgb, var(--teal) 10%, transparent) 1px, transparent 1px),
    radial-gradient(circle at 78% 32%, color-mix(in srgb, var(--coral) 28%, transparent), transparent 32%),
    radial-gradient(circle at 16% 82%, color-mix(in srgb, var(--teal) 26%, transparent), transparent 34%),
    color-mix(in srgb, var(--bg) 88%, #000000);
  background-size: 92px 92px, 92px 92px, auto, auto, auto;
}

:root[data-theme="dark"] .section.home-seq-light {
  background: var(--surface-soft);
}

:root[data-theme="dark"] .section.home-seq-dark {
  background: var(--bg);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.in-view {
  animation: page-in 620ms ease both;
}

@keyframes text-gradient-flow {
  0%,
  100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes mark-drift {
  0%,
  100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-18px) rotate(-2deg); }
}

@keyframes dot-route {
  0%,
  100% { transform: translate(0, 0); }
  35% { transform: translate(54px, 86px); }
  68% { transform: translate(-24px, 180px); }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(calc(-100% - 28px)); }
}

@keyframes page-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1024px) {
  .section-grid,
  .split,
  .medflo-overview-band,
  .page-hero.product-hero,
  .medflo-page .page-hero.product-hero.module-detail-hero,
  .page-hero.about-hero,
  .about-operating-grid,
  .integrations-overview-head,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .home-page .section-grid,
  .home-page .featured-product-section .split {
    grid-template-columns: 1fr;
  }

  .about-hero-panel {
    width: min(640px, 100%);
  }

  .home-contact-form {
    grid-template-columns: 1fr;
  }

  .module-detail-hero .module-device-wall {
    justify-self: center;
    max-width: min(460px, 100%);
  }

  .card-grid,
  .metric-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .overview-kpi-grid,
  .about-core-panel,
  .integration-card-grid.ready-grid,
  .integration-card-grid.demand-grid,
  .integration-status-grid,
  .medflo-menu-summary,
  .security-grid,
  .integrations-overview-grid,
  .pricing-overview-grid,
  .medflo-module-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .medflo-menu-summary .overview-kpi,
  .medflo-menu-summary .overview-kpi:nth-child(4),
  .medflo-menu-summary .overview-kpi:nth-child(5) {
    grid-column: auto;
  }

  .medflo-menu-priority {
    grid-template-columns: 1fr;
    justify-self: stretch;
  }

  .menu-priority-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .menu-priority-item .overview-card-actions {
    grid-column: 2;
  }

  .about-core-panel article:nth-child(2) {
    border-inline-end: 0;
  }

  .about-core-panel article:last-child {
    border-top: 1px solid var(--line);
  }

  .about-progress-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 34px;
  }

  .overview-flow {
    grid-template-columns: repeat(5, minmax(190px, 1fr));
  }

  .module-map-layout {
    grid-template-columns: 1fr;
  }

  .module-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-role-grid article {
    min-height: 0;
  }

  .module-orbit-map {
    justify-self: center;
    width: min(560px, 100%);
    min-height: 0;
  }

  .module-orbit-map::before {
    inset: 18%;
  }

  .module-orbit-node {
    width: clamp(112px, 20vw, 150px);
  }

  .module-orbit-node-scheduling {
    right: 3%;
  }

  .module-orbit-node-services {
    left: 15%;
  }

  .module-workflow-strip {
    grid-template-columns: repeat(5, minmax(110px, 1fr));
  }

  .modules-hero {
    min-height: auto;
  }

  .page-hero.product-hero.modules-hero {
    grid-template-columns: 1fr;
  }

  .modules-hero-visual {
    justify-self: center;
    width: min(620px, 100%);
  }

  .module-showcase,
  .module-showcase:nth-of-type(even) {
    grid-template-columns: 1fr;
  }

  .module-showcase:nth-of-type(even) .module-copy,
  .module-showcase:nth-of-type(even) .module-device-wall {
    order: initial;
  }

  .module-showcase:nth-of-type(even) .module-device-wall,
  .module-showcase:nth-of-type(odd) .module-device-wall {
    justify-self: center;
    max-width: 640px;
  }

  .module-device-wall {
    min-height: 360px;
  }

  .patient-module-devices {
    max-width: 680px;
    min-height: 400px;
  }

  .scheduling-module-devices,
  .module-showcase:nth-of-type(even) .scheduling-module-devices {
    max-width: 680px;
    min-height: 400px;
  }

  .cms-module-devices,
  .admin-module-devices,
  .module-showcase:nth-of-type(even) .cms-module-devices,
  .module-showcase:nth-of-type(odd) .admin-module-devices {
    max-width: min(680px, 100%);
    min-height: 0;
  }

  .cms-preview-monitor {
    width: min(680px, 106%);
  }

  .billing-flow-visual {
    max-width: 680px;
    min-height: 330px;
  }

  .patient-module-image {
    width: min(680px, 105%);
  }

  .dashboard-device {
    width: min(540px, 88%);
  }

  .phone-device {
    width: min(160px, 29%);
  }

  .content-list,
  .cms-editor {
    grid-template-columns: 1fr;
  }

  .hero-mark {
    right: -80px;
    opacity: 0.3;
  }

  .team-showcase-head {
    align-items: start;
  }

  .team-slider {
    grid-auto-columns: clamp(260px, 44vw, 330px);
    gap: 28px;
    padding-inline: 24px;
    scroll-padding-inline: 24px;
  }

  .team-slide {
    min-height: 410px;
  }

  .about-team .team-slider {
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: minmax(0, 1fr);
    overflow: visible;
    padding: 0;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }

  .about-team .team-slide {
    min-height: 0;
  }

  .about-news-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .about-news-head .button {
    justify-self: start;
  }

  .cms-panel {
    padding: 14px;
  }

  .cms-tabs,
  .cms-view-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }

  .cms-tab,
  .cms-view-tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 1024px) {
  .site-header {
    position: fixed;
    justify-content: flex-start;
    gap: 10px;
    padding-inline: 20px;
  }

  /* Keep the header a consistent 76px regardless of language: the English
     wordmark is taller than the rounded Arabic logo, which otherwise pushed
     the header past 76px and left the mobile nav drawer (pinned at top: 76px)
     overlapping it. Sizing the logo by height keeps both in sync. */
  .site-header .brand img {
    height: 40px;
    width: auto;
  }

  .header-actions {
    position: absolute;
    top: 50%;
    right: 20px;
    margin-left: 0;
    gap: 8px;
    transform: translateY(-50%);
  }

  .site-nav {
    position: fixed;
    inset: 76px 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex: 0 0 0;
    gap: 0;
    width: min(84vw, 360px);
    height: calc(100vh - 76px);
    max-height: calc(100vh - 76px);
    z-index: 70;
    overflow-y: auto;
    padding: 12px 20px 18px;
    border-left: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    color: var(--ink);
    box-shadow: -24px 0 70px rgba(16, 32, 30, 0.16);
    transform: translateX(110%);
    transition: transform 220ms ease;
  }

  [dir="rtl"] .header-actions {
    right: auto;
    left: 20px;
    margin-right: 0;
  }

  [dir="rtl"] .site-nav {
    right: auto;
    left: 0;
    border-right: 1px solid var(--line);
    border-left: 0;
    box-shadow: 24px 0 70px rgba(16, 32, 30, 0.16);
    transform: translateX(-110%);
  }

  body.nav-open .site-nav {
    transform: translateX(0);
  }

  .site-nav a {
    min-height: 46px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-menu {
    border-bottom: 1px solid var(--line);
  }

  /* No hover bridge in the stacked mobile nav (it would overlap items). */
  .nav-menu::after {
    display: none;
  }

  .nav-trigger {
    width: 100%;
    min-height: 46px;
    justify-content: space-between;
    padding: 11px 0;
  }

  .nav-trigger::before {
    margin-left: auto;
  }

  .nav-trigger::after {
    right: 0;
  }

  .nav-dropdown {
    position: static;
    display: none;
    min-width: 0;
    overflow: visible;
    padding: 0 0 10px 12px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-menu:hover .nav-dropdown,
  .nav-menu.open .nav-dropdown,
  .nav-menu:focus-within .nav-dropdown {
    display: grid;
    transform: none;
  }

  .nav-dropdown a {
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    color: var(--muted);
  }

  .nav-submenu::after {
    display: none;
  }

  .nav-subtrigger {
    min-height: 34px;
    padding: 7px 10px;
    border: 0;
    color: var(--muted);
  }

  .nav-subtrigger::before {
    transform: rotate(135deg);
  }

  .nav-submenu.open .nav-subtrigger::before {
    transform: rotate(315deg);
  }

  .nav-subdropdown {
    position: static;
    display: none;
    width: 100%;
    padding: 0 0 6px 14px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-submenu.open .nav-subdropdown,
  .nav-submenu:focus-within .nav-subdropdown {
    display: grid;
  }

  .nav-subdropdown a {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 0.88rem;
    white-space: normal;
  }

  .nav-drawer-footer {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 22px;
  }

  .nav-drawer-footer .brand {
    padding: 0;
    border: 0;
  }

  .nav-drawer-footer .brand img {
    width: 118px;
    height: auto;
  }

  .nav-drawer-footer p {
    margin: 0;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
  }

  .nav-drawer-footer .footer-copy {
    font-size: 0.82rem;
  }

  .nav-drawer-footer .footer-address {
    color: color-mix(in srgb, var(--teal) 72%, var(--muted));
    font-weight: 700;
  }

  .nav-drawer-footer .footer-social {
    display: flex;
    gap: 10px;
    margin-top: 4px;
  }

  .nav-drawer-footer .footer-social a {
    display: inline-grid;
    width: 42px;
    min-height: 42px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--ink);
  }

  .nav-drawer-footer .footer-social svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .theme-toggle span {
    display: none;
  }

  .brand img {
    width: 116px;
  }

  .medflo-brand img {
    width: 126px;
  }

  .contact-card {
    min-height: 0;
  }

  .contact-map,
  .contact-map iframe {
    min-height: 260px;
  }

  .cms-shell {
    gap: 14px;
  }

  .cms-toolbar {
    grid-template-columns: 1fr;
  }

  .cms-toolbar-actions {
    justify-content: flex-start;
  }

  .cms-panel {
    padding: 10px;
  }

  .cms-publish-form,
  .cms-account-panel,
  .cms-login {
    padding: 16px;
  }

  .rich-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 6px;
    scrollbar-width: thin;
  }

  .rich-toolbar button {
    flex: 0 0 auto;
  }

  .team-showcase {
    padding-inline: clamp(22px, 6vw, 34px);
  }

  .page-hero.about-hero {
    min-height: 0;
  }

  .about-hero h1 {
    font-size: clamp(1.85rem, 8vw, 2.75rem);
  }

  .about-hero-panel a {
    padding: 16px 34px 16px 0;
  }

  .about-centered {
    margin-bottom: 30px;
    text-align: left;
  }

  .about-core-panel,
  .about-progress-rail,
  .about-footprint-list {
    grid-template-columns: 1fr;
  }

  .about-core-panel article,
  .about-core-panel article:nth-child(2),
  .about-core-panel article:last-child {
    min-height: auto;
    border-inline-end: 0;
    border-top: 1px solid var(--line);
  }

  .about-core-panel article:first-child {
    border-top: 0;
  }

  .about-core-panel span {
    margin-bottom: 22px;
  }

  .about-progress-rail {
    gap: 20px;
    padding-top: 0;
  }

  .about-progress-rail::before,
  .about-progress-rail li::before {
    display: none;
  }

  .about-progress-rail li {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .team-showcase::before {
    right: 22px;
    width: clamp(112px, 36vw, 170px);
  }

  .team-showcase-head,
  .about-team .team-showcase-head {
    grid-template-columns: 1fr;
  }

  .team-showcase-head h2 {
    font-size: clamp(1.65rem, 8vw, 2.6rem);
  }

  .team-slider-controls {
    justify-content: flex-start;
  }

  .team-slider-controls button {
    width: 48px;
    height: 48px;
  }

  .team-slider {
    grid-auto-columns: minmax(250px, calc(100vw - 92px));
    gap: 28px;
    padding: 14px 24px 24px;
    scroll-padding-inline: 24px;
  }

  .about-team .team-slider {
    grid-auto-columns: auto;
    gap: 34px;
    overflow: visible;
    padding: 0;
    scroll-padding-inline: 0;
    scroll-snap-type: none;
  }

  .team-slide {
    min-height: auto;
    padding-bottom: 4px;
  }

  .about-team .team-slide,
  .about-team .team-slide:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 18px;
    justify-items: start;
  }

  .about-team .team-slide:nth-child(even) .team-orbit,
  .about-team .team-slide:nth-child(even) .team-slide-copy {
    order: initial;
    justify-self: start;
    text-align: left;
  }

  .team-orbit {
    width: clamp(190px, 62vw, 250px);
  }

  .about-team .team-orbit {
    width: clamp(190px, 62vw, 250px);
  }

  .team-slide-copy {
    width: min(100%, 280px);
    margin-top: 16px;
    padding-inline: 4px;
  }

  .about-team .team-slide-copy {
    width: min(100%, 440px);
    margin-top: 0;
    padding: 0;
  }

  .team-slide-copy h3 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.05;
  }

  .team-slide-copy p {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .flow-steps,
  .home-page .flow-steps {
    grid-template-columns: 1fr;
    gap: 46px;
    overflow-x: visible;
  }

  .flow-step {
    min-height: auto;
  }

  .flow-step::after {
    top: auto;
    right: 50%;
    bottom: -35px;
    width: 3px;
    height: 30px;
    transform: translateX(50%);
  }

  .flow-step::before {
    top: auto;
    right: 50%;
    bottom: -39px;
    transform: translateX(50%) rotate(135deg);
  }

  .card-grid,
  .features-grid,
  .route-grid,
  .overview-kpi-grid,
  .module-role-grid,
  .module-workflow-strip,
  .integration-card-grid.ready-grid,
  .integration-card-grid.demand-grid,
  .integration-status-grid,
  .medflo-menu-summary,
  .metric-row,
  .module-showcase,
  .content-list:not(.content-slider),
  .cms-toolbar,
  .cms-item,
  .cms-item:has(> .cms-item-image),
  .cms-item-draggable,
  .cms-item-draggable:has(> .cms-item-image) {
    grid-template-columns: 1fr;
  }

  .cms-item-actions {
    min-width: 0;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .medflo-menu-summary .overview-kpi,
  .medflo-menu-summary .overview-kpi:nth-child(4),
  .medflo-menu-summary .overview-kpi:nth-child(5) {
    grid-column: auto;
  }

  .medflo-menu-priority {
    grid-template-columns: 1fr;
  }

  .module-summary-head {
    flex-direction: column;
  }

  .menu-priority-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .menu-priority-item .overview-card-actions {
    grid-column: auto;
  }

  .medflo-page .page-hero.product-hero {
    min-height: auto;
    overflow: hidden;
    padding-block: 60px;
    padding-inline: 20px;
  }

  .medflo-page .page-hero.product-hero > div:first-child {
    width: 100%;
    max-width: 100%;
  }

  .medflo-page .page-hero.product-hero > * {
    width: 100%;
    max-width: 100%;
  }

  /* Overview hero photo: cap and center it so it stops overflowing once the
     hero stacks to a single column on laptop/tablet. */
  .medflo-page .page-hero.product-hero > .medflo-photo-hero {
    width: min(560px, 100%);
    max-width: min(560px, 100%);
    justify-self: center;
  }

  /* Integration logo triangle: cap at its 440px design width and center under
     the CTA when the hero stacks, instead of stretching the partner logos to
     the far edges. (The > * rule above forces max-width:100% otherwise.) */
  .medflo-page .integrations-hero .integration-logo-cloud {
    width: min(440px, 100%);
    max-width: min(440px, 100%);
    justify-self: center;
    margin-inline: auto;
  }

  .page-hero.product-hero h1 {
    max-width: 100%;
    font-size: clamp(1.6rem, 7vw, 2rem);
  }

  .medflo-page .page-hero.product-hero.module-detail-hero {
    padding-block: 50px;
  }

  .medflo-page .page-hero.product-hero.module-detail-hero > .module-device-wall {
    width: min(560px, 100%);
    max-width: min(560px, 100%);
  }

  .module-detail-hero .patient-module-devices,
  .module-detail-hero .scheduling-module-devices {
    min-height: clamp(300px, 52vw, 380px);
  }

  .module-detail-hero .billing-flow-visual {
    max-width: min(520px, 100%);
    min-height: auto;
  }

  .modules-hero {
    gap: 34px;
  }

  .medflo-page .page-hero.product-hero.modules-hero > .modules-hero-visual {
    width: min(560px, 100%);
    max-width: min(560px, 100%);
    justify-self: center;
  }

  .modules-hero-visual img {
    filter: drop-shadow(0 22px 36px color-mix(in srgb, var(--ink) 18%, transparent));
  }

  .hero-checklist {
    display: grid;
  }

  .hero-checklist li {
    width: 100%;
  }

  .overview-kpi,
  .module-preview-card {
    min-height: 0;
  }

  .overview-kpi span,
  .overview-flow article span,
  .module-preview-card small {
    margin-bottom: 18px;
  }

  .overview-flow {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .overview-flow article {
    min-height: 0;
  }

  .overview-flow article:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%) rotate(135deg);
  }

  .module-workflow-strip {
    grid-template-columns: 1fr;
    gap: 18px;
    overflow: visible;
    margin-top: 26px;
  }

  .workflow-section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .workflow-section-head .button {
    justify-self: start;
  }

  .module-role-grid article {
    min-height: 0;
  }

  .module-orbit-map {
    display: block;
    width: min(335px, 100%);
    aspect-ratio: 1;
    justify-self: center;
    min-height: 0;
  }

  .module-orbit-map::before {
    display: block;
    inset: 20%;
  }

  .module-orbit-map::after {
    display: none;
  }

  .module-orbit-core {
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    width: 118px;
    aspect-ratio: 1;
    min-height: 0;
    margin: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
  }

  .module-orbit-logo {
    width: 82px;
  }

  .module-orbit-node {
    position: absolute;
    display: grid;
    width: 92px;
    min-height: 0;
    aspect-ratio: 1;
    place-items: center;
    padding: 10px;
    border: 1px solid color-mix(in srgb, var(--teal) 34%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--surface) 82%, transparent);
    text-align: center;
  }

  .module-orbit-node strong {
    font-size: clamp(0.68rem, 3.4vw, 0.82rem);
    line-height: 1;
  }

  .module-label-full {
    display: none;
  }

  .module-label-short {
    display: inline;
  }

  .module-orbit-node-patient {
    top: 0;
    left: 50%;
    transform: translateX(-50%);
  }

  .module-orbit-node-scheduling {
    top: 31%;
    right: 0;
  }

  .module-orbit-node-billing {
    right: 10%;
    bottom: 0;
  }

  .module-orbit-node-services {
    bottom: 0;
    left: 10%;
  }

  .module-orbit-node-admin {
    top: 31%;
    left: 0;
  }

  .module-orbit-node:hover,
  .module-orbit-node:focus-visible {
    transform: none;
  }

  .module-orbit-node-patient:hover,
  .module-orbit-node-patient:focus-visible {
    transform: translateX(-50%);
  }

  .module-role-grid h3 {
    margin-top: 22px;
  }

  .module-workflow-strip article {
    min-height: 70px;
    justify-content: flex-start;
    padding: 8px 0 8px 36px;
    text-align: left;
  }

  .module-workflow-strip article:not(:last-child)::after {
    top: 42px;
    right: auto;
    bottom: auto;
    left: 5px;
    width: 0;
    height: 52px;
    border-top: 0;
    border-right: 2px dashed color-mix(in srgb, var(--teal) 62%, var(--coral));
    border-bottom: 0;
    border-radius: 999px;
    transform: none;
  }

  .module-workflow-strip article:nth-child(even):not(:last-child)::after {
    top: 42px;
    border-right: 2px dashed color-mix(in srgb, var(--coral) 68%, var(--teal));
    border-bottom: 0;
    border-radius: 999px;
  }

  /* RTL: stack the markers and connector line on the right side. */
  [dir="rtl"] .module-workflow-strip article {
    padding: 8px 36px 8px 0;
    text-align: right;
  }

  [dir="rtl"] .module-workflow-strip article:not(:last-child)::after {
    left: auto;
    right: 5px;
  }

  .module-workflow-strip h3 {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: clamp(1.35rem, 8vw, 1.9rem);
  }

  .module-workflow-strip h3::before {
    position: static;
    width: 12px;
    height: 12px;
    margin: 0;
    flex: 0 0 auto;
    transform: none;
  }

  .module-coverage-table th,
  .module-coverage-table td {
    padding: 14px;
  }

  .module-preview-card strong {
    margin-top: 0;
  }

  .overview-module-cta {
    align-items: flex-start;
    flex-direction: column;
  }

  .stock-photo-slot {
    min-height: 220px;
  }

  .medflo-module-showcases {
    gap: 18px;
  }

  .module-showcase {
    min-height: auto;
    padding: 22px;
  }

  .module-copy h3 {
    font-size: clamp(1.45rem, 7vw, 2.1rem);
  }

  .module-copy li {
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 10px;
  }

  .module-copy li::before {
    width: 32px;
    height: 32px;
  }

  .module-device-wall {
    min-height: 280px;
  }

  .patient-module-devices {
    max-width: 520px;
    min-height: 260px;
  }

  .scheduling-module-devices,
  .module-showcase:nth-of-type(even) .scheduling-module-devices {
    max-width: 520px;
    min-height: 260px;
  }

  .cms-module-devices,
  .admin-module-devices,
  .module-showcase:nth-of-type(even) .cms-module-devices,
  .module-showcase:nth-of-type(odd) .admin-module-devices {
    max-width: min(520px, 100%);
    min-height: 0;
  }

  .cms-preview-monitor {
    grid-template-columns: 23% 1fr;
    width: 100%;
    border-width: 6px;
    border-radius: 12px;
  }

  .cms-preview-sidebar {
    gap: 7px;
    padding: 14px 8px;
  }

  .cms-preview-sidebar span {
    font-size: 0;
  }

  .cms-preview-logo {
    width: clamp(44px, 15vw, 68px);
    font-size: 0.58rem;
  }

  .cms-preview-main {
    padding: 14px 10px;
  }

  .cms-preview-header {
    min-height: 34px;
    margin-bottom: 8px;
    padding-inline: 9px;
  }

  .cms-preview-body {
    grid-template-columns: 0.82fr 1.18fr;
    gap: 8px;
  }

  .cms-preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }

  .cms-preview-grid article {
    min-height: 64px;
  }

  .cms-preview-grid article:nth-child(n+4) {
    display: none;
  }

  .billing-flow-visual {
    gap: 12px;
    max-width: 560px;
    min-height: auto;
    padding: 0;
  }

  .module-detail-hero .billing-flow-card small:nth-of-type(n+2),
  .module-detail-hero .billing-flow-sync small {
    display: none;
  }

  .module-detail-hero .billing-flow-card {
    gap: 6px;
    padding: 12px;
  }

  .module-detail-hero .billing-flow-card strong {
    font-size: 1.05rem;
  }

  .module-detail-hero .billing-flow-sync span {
    width: 42px;
    height: 42px;
  }

  .billing-flow-card {
    min-height: auto;
    padding: 16px;
  }

  .billing-flow-sync {
    min-width: auto;
    padding: 2px 0;
  }

  .patient-module-image {
    width: min(500px, 100%);
  }

  .dashboard-device {
    width: min(350px, 88%);
    right: 0;
    bottom: 20%;
    padding: 9px 9px 12px;
    border-radius: 12px;
  }

  .dashboard-device .device-screen {
    border-radius: 7px;
  }

  .laptop-base {
    bottom: -13px;
    height: 14px;
  }

  .phone-device {
    width: min(108px, 31%);
    left: 0;
    bottom: 9%;
    padding: 6px;
    border-radius: 23px;
  }

  .phone-device::before {
    top: 9px;
    height: 6px;
  }

  .phone-device .device-screen {
    border-radius: 18px;
  }

  .device.laptop {
    width: min(360px, 88%);
    left: 0;
    bottom: 15%;
  }

  .device.phone {
    width: min(124px, 34%);
    right: 0;
  }

  .hero-actions,
  .cta-row {
    align-items: stretch;
  }

  .button {
    width: 100%;
  }
}

/* On laptop/tablet widths the hero stacks to one column, but its CTA buttons
   should stay inline at content width rather than stretching full-bleed.
   Phones (<=640px) keep the full-width stacked buttons for easier tapping. */
@media (min-width: 641px) and (max-width: 1024px) {
  .page-hero .cta-row {
    align-items: center;
  }

  /* Keep CTA buttons at content width across MedFlo sections (not full-bleed)
     so the hero, security, integrations, pricing and final-CTA stay visually
     consistent on tablet/laptop widths. */
  .medflo-page .cta-row .button {
    width: auto;
  }

  /* MedFlo overview card grids stay two-up on tablet/laptop instead of
     stretching to one full-width column with large empty space. */
  .security-grid,
  .integrations-overview-grid,
  .pricing-overview-grid,
  .medflo-module-preview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .module-balanced-layout,
  .module-spec-grid {
    grid-template-columns: 1fr;
    max-width: 720px;
  }

  .module-balanced-section > .section-intro:has(.module-connection-line) {
    display: block;
    max-width: 720px;
  }

  .module-spec-list {
    grid-template-columns: 1fr;
  }

  .module-spec-list article {
    min-height: 0;
  }

  .module-spec-list article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .module-spec-list article:last-child {
    border-bottom: 1px solid var(--line);
  }

  .module-connection-line {
    grid-template-columns: 1fr;
    max-width: 680px;
  }

  .module-balanced-section > .section-intro:has(.module-connection-line) .module-connection-line {
    grid-template-columns: 1fr;
    margin-top: 42px;
  }

  .module-signature-panel {
    justify-self: stretch;
    max-width: none;
  }

  .module-simple-layout {
    grid-template-columns: 1fr;
  }

  .module-detail-focus-grid,
  .module-detail-role-grid,
  .patient-focus-grid,
  .patient-role-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-detail-flow,
  .patient-clinical-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-detail-flow article:nth-child(2)::before,
  .module-detail-flow article:nth-child(2)::after,
  .patient-clinical-flow article:nth-child(2)::before,
  .patient-clinical-flow article:nth-child(2)::after {
    display: none;
  }

  .module-detail-panel-layout,
  .module-detail-connected-layout,
  .patient-record-layout,
  .patient-connected-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  /* MedFlo -> Sync -> ERPNext billing flow stays horizontal on laptop and
     tablet widths; it only stacks vertically on phones. */
  .billing-flow-visual {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  /* Footer keeps its two-column (branding | nav) layout down to phones; only
     stack it once there is genuinely no room. */
  .site-footer {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .footer-nav {
    justify-self: stretch;
  }

  /* MedFlo overview card grids collapse to a single column on phones. */
  .security-grid,
  .integrations-overview-grid,
  .pricing-overview-grid,
  .medflo-module-preview {
    grid-template-columns: 1fr;
  }

  .module-balanced-section {
    padding-block: 68px;
  }

  .module-signature-panel header,
  .signature-row,
  .schedule-signature .signature-row,
  .admin-signature .signature-row {
    grid-template-columns: 1fr;
  }

  .signature-row {
    gap: 8px;
    min-height: auto;
    padding: 14px 0;
  }

  .module-signature-panel header {
    display: grid;
  }

  .billing-sync-line,
  .content-publish-grid {
    grid-template-columns: 1fr;
  }

  .billing-sync-arrow {
    width: 2px;
    height: 34px;
    justify-self: center;
  }

  .billing-sync-arrow::after {
    margin-top: 24px;
    margin-left: -4px;
    transform: rotate(135deg);
  }

  .module-simple-section {
    padding-block: 82px;
  }

  .module-simple-list article {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 28px 0;
  }

  .module-detail-focus-grid,
  .module-detail-role-grid,
  .module-detail-flow,
  .patient-focus-grid,
  .patient-role-grid,
  .patient-clinical-flow {
    grid-template-columns: 1fr;
  }

  .module-detail-flow,
  .patient-clinical-flow {
    gap: 24px;
  }

  .module-detail-focus-grid article,
  .module-detail-role-grid article,
  .module-detail-flow article,
  .patient-focus-grid article,
  .patient-role-grid article,
  .patient-clinical-flow article {
    min-height: 0;
    padding: 20px;
  }

  .module-detail-focus-grid span,
  .module-detail-flow span,
  .module-detail-role-grid span,
  .patient-focus-grid span,
  .patient-clinical-flow span,
  .patient-role-grid span {
    margin-bottom: 22px;
  }

  .module-detail-flow article:not(:last-child)::before,
  .patient-clinical-flow article:not(:last-child)::before {
    top: auto;
    right: auto;
    bottom: -24px;
    left: 30px;
    width: 2px;
    height: 24px;
    transform: none;
  }

  .module-detail-flow article:not(:last-child)::after,
  .patient-clinical-flow article:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -24px;
    left: 25px;
    width: 10px;
    height: 10px;
    border-top: 0;
    border-right: 2px solid color-mix(in srgb, var(--teal) 62%, var(--coral));
    border-bottom: 2px solid color-mix(in srgb, var(--teal) 62%, var(--coral));
    transform: rotate(45deg);
  }

  .module-detail-flow article:nth-child(2)::before,
  .module-detail-flow article:nth-child(2)::after,
  .patient-clinical-flow article:nth-child(2)::before,
  .patient-clinical-flow article:nth-child(2)::after {
    display: block;
  }

  .module-detail-panel-header,
  .module-detail-panel-list span,
  .patient-record-header,
  .patient-record-list span {
    padding-inline: 18px;
  }

  .module-detail-panel-list span::after,
  .patient-record-list span::after {
    left: 26px;
  }
}

@media (max-width: 760px) {
  /* One news/article card per view on phones; tablet keeps the normal slider. */
  .content-list.content-slider {
    grid-auto-columns: minmax(240px, 82vw);
  }

  .job-card {
    grid-template-columns: 1fr;
  }

  .job-card-actions {
    justify-content: flex-start;
  }
}
