:root {
  --ivory: #fbf8f1;
  --ivory-deep: #f4eee3;
  --paper: #ffffff;
  --emerald-950: #03382e;
  --emerald-900: #06493b;
  --emerald-800: #075745;
  --emerald-700: #08705a;
  --emerald-600: #13856b;
  --emerald-100: #dcede5;
  --emerald-50: #eff7f2;
  --coral: #ef735e;
  --coral-dark: #d95c48;
  --ink: #13312a;
  --muted: #5e6d68;
  --line: rgba(7, 87, 69, 0.16);
  --shadow-sm: 0 8px 24px rgba(3, 56, 46, 0.08);
  --shadow-md: 0 24px 60px rgba(3, 56, 46, 0.13);
  --sans: "Segoe UI", Tahoma, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif;
  --shell: min(1440px, calc(100% - 8vw));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--ivory);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  inset-inline-start: 12px;
  padding: 10px 14px;
  color: white;
  background: var(--emerald-950);
  border-radius: 8px;
  transform: translateY(-160%);
}

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

:focus-visible {
  outline: 3px solid rgba(239, 115, 94, 0.55);
  outline-offset: 3px;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  background: rgba(251, 248, 241, 0.9);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(18px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 34px rgba(3, 56, 46, 0.07);
}

.nav-shell {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 72px;
  gap: 42px;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.brand-logo {
  display: block;
  width: clamp(10.5rem, 14vw, 13.5rem);
  height: auto;
}

[dir="rtl"] .brand {
  direction: ltr;
}

.brand-main {
  letter-spacing: -0.04em;
}

.brand-accent {
  margin-inline-start: 0.22em;
  color: var(--emerald-600);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(22px, 2.7vw, 42px);
}

.primary-nav a,
.language-link {
  position: relative;
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 600;
  text-decoration: none;
}

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

.primary-nav a:hover::after,
.primary-nav a:focus-visible::after,
.language-link:hover::after,
.language-link:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.menu-toggle > span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--emerald-950);
  transition: transform 180ms ease, opacity 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-small {
  min-height: 40px;
  padding: 10px 18px;
  font-size: 0.88rem;
}

.button-primary {
  color: white;
  background: var(--emerald-800);
  box-shadow: 0 12px 24px rgba(7, 87, 69, 0.18);
}

.button-primary:hover {
  background: var(--emerald-950);
  box-shadow: 0 16px 30px rgba(7, 87, 69, 0.24);
}

.button-outline {
  color: var(--emerald-950);
  background: rgba(255, 255, 255, 0.3);
  border-color: var(--emerald-800);
}

.button-outline:hover {
  background: white;
  box-shadow: var(--shadow-sm);
}

.button-coral {
  color: white;
  background: var(--coral);
  box-shadow: 0 14px 30px rgba(239, 115, 94, 0.24);
}

.button-coral:hover {
  background: var(--coral-dark);
}

.button-block {
  width: 100%;
}

.hero {
  position: relative;
  min-height: 690px;
  overflow: hidden;
  background:
    radial-gradient(circle at 71% 44%, rgba(220, 238, 229, 0.9), transparent 28%),
    linear-gradient(180deg, #fcfaf5 0%, var(--ivory) 100%);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(400px, 0.78fr) minmax(620px, 1.22fr);
  align-items: center;
  min-height: 690px;
  gap: 56px;
  padding-block: 64px 90px;
}

.hero-wash {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(0.1px);
}

.hero-wash-one {
  right: 44%;
  bottom: -250px;
  width: 860px;
  height: 480px;
  background: rgba(217, 237, 227, 0.72);
  transform: rotate(-15deg);
}

.hero-wash-two {
  right: 52%;
  bottom: -300px;
  width: 720px;
  height: 440px;
  border: 54px solid rgba(183, 219, 202, 0.28);
  transform: rotate(-16deg);
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--emerald-700);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

[dir="rtl"] .eyebrow {
  letter-spacing: 0;
}

.hero-copy h1,
.inner-hero h1 {
  max-width: 790px;
  margin-bottom: 26px;
  color: var(--emerald-950);
  font-family: var(--serif);
  font-size: clamp(3.7rem, 5.3vw, 6rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 0.99;
}

[dir="rtl"] .hero-copy h1,
[dir="rtl"] .inner-hero h1 {
  letter-spacing: -0.025em;
  line-height: 1.12;
}

.hero-copy h1 em {
  display: block;
  color: var(--coral);
  font-style: normal;
}

.hero-copy > p,
.inner-hero p {
  max-width: 620px;
  margin-bottom: 30px;
  color: #2f453f;
  font-size: clamp(1.08rem, 1.35vw, 1.3rem);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  color: var(--muted);
  font-size: 0.88rem;
}

.status-dot {
  width: 9px;
  height: 9px;
  background: var(--emerald-600);
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(19, 133, 107, 0.12);
}

.product-scene {
  position: relative;
  min-height: 545px;
}

.desktop-device {
  position: absolute;
  z-index: 4;
  top: 50px;
  left: 1%;
  width: 73%;
  filter: drop-shadow(0 28px 30px rgba(3, 56, 46, 0.2));
}

[dir="rtl"] .desktop-device {
  right: 1%;
  left: auto;
}

.desktop-frame {
  display: grid;
  grid-template-columns: 26% 74%;
  aspect-ratio: 1.59;
  overflow: hidden;
  background: #f8faf8;
  border: 9px solid #183c34;
  border-radius: 13px;
}

.demo-sidebar {
  display: flex;
  flex-direction: column;
  padding: 18px 10px;
  color: rgba(255, 255, 255, 0.84);
  background: linear-gradient(180deg, #0a4f40, #073b31);
  gap: 9px;
}

.demo-brand {
  padding: 2px 5px 16px;
  color: white;
  font-family: var(--serif);
  font-size: clamp(0.65rem, 1vw, 0.95rem);
}

.demo-brand span {
  color: #7ad0b3;
}

.demo-nav-item {
  display: block;
  overflow: hidden;
  padding: 5px 7px;
  border-radius: 5px;
  font-size: clamp(0.35rem, 0.53vw, 0.54rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-nav-item.active {
  color: white;
  background: rgba(255, 255, 255, 0.12);
}

.demo-main {
  min-width: 0;
  padding: 14px;
  background: #f7f9f7;
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: clamp(0.52rem, 0.7vw, 0.72rem);
}

.demo-avatar {
  display: grid;
  width: 21px;
  height: 21px;
  color: white;
  background: var(--emerald-700);
  border-radius: 50%;
  font-size: 7px;
  place-items: center;
}

.demo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.demo-stats > div {
  min-width: 0;
  padding: 8px;
  background: white;
  border: 1px solid rgba(7, 87, 69, 0.08);
  border-radius: 6px;
}

.demo-stats span {
  display: block;
  overflow: hidden;
  color: var(--muted);
  font-size: clamp(0.29rem, 0.4vw, 0.43rem);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.demo-stats strong {
  color: var(--emerald-700);
  font-size: clamp(0.65rem, 0.9vw, 0.9rem);
}

.demo-charts {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 7px;
  margin-top: 7px;
}

.chart-card {
  min-height: 88px;
  padding: 8px;
  overflow: hidden;
  background: white;
  border: 1px solid rgba(7, 87, 69, 0.08);
  border-radius: 6px;
}

.chart-card > span {
  display: block;
  color: var(--ink);
  font-size: clamp(0.3rem, 0.43vw, 0.46rem);
  font-weight: 700;
}

.chart-wide {
  grid-column: 1 / -1;
  min-height: 75px;
}

.line-chart {
  position: relative;
  display: flex;
  align-items: end;
  height: 52px;
  margin-top: 9px;
  gap: 8%;
  border-bottom: 1px solid var(--line);
}

.line-chart::after {
  position: absolute;
  right: 2%;
  bottom: 10px;
  left: 1%;
  height: 1px;
  content: "";
  background: var(--emerald-600);
  box-shadow:
    34px -8px 0 var(--emerald-600),
    68px 2px 0 var(--emerald-600),
    100px -22px 0 var(--emerald-600);
  transform: rotate(-8deg);
}

.line-chart i {
  width: 4px;
  height: 4px;
  background: var(--emerald-600);
  border-radius: 50%;
}

.line-chart i:nth-child(2) { margin-bottom: 9px; }
.line-chart i:nth-child(3) { margin-bottom: 4px; }
.line-chart i:nth-child(4) { margin-bottom: 22px; }
.line-chart i:nth-child(5) { margin-bottom: 15px; }
.line-chart i:nth-child(6) { margin-bottom: 31px; }
.line-chart i:nth-child(7) { margin-bottom: 38px; }

.donut-chart {
  width: 54px;
  aspect-ratio: 1;
  margin: 10px auto 0;
  background: conic-gradient(var(--emerald-600) 0 45%, #9fceb9 45% 73%, #f1d8aa 73% 87%, #e7ede9 87%);
  border-radius: 50%;
}

.donut-chart::after {
  display: block;
  width: 29px;
  aspect-ratio: 1;
  margin: 12px;
  content: "";
  background: white;
  border-radius: 50%;
}

.bar-chart {
  display: flex;
  align-items: end;
  height: 44px;
  margin-top: 7px;
  gap: 10%;
  border-bottom: 1px solid var(--line);
}

.bar-chart i {
  width: 8%;
  min-width: 4px;
  height: 35%;
  background: var(--emerald-600);
  border-radius: 2px 2px 0 0;
}

.bar-chart i:nth-child(2) { height: 52%; }
.bar-chart i:nth-child(3) { height: 43%; }
.bar-chart i:nth-child(4) { height: 72%; }
.bar-chart i:nth-child(5) { height: 61%; }
.bar-chart i:nth-child(6) { height: 84%; }

.desktop-stand {
  position: relative;
  width: 24%;
  height: 41px;
  margin: -2px auto 0;
  background: linear-gradient(90deg, #ced5d2, #f2f3f2 52%, #c4ccca);
  clip-path: polygon(33% 0, 67% 0, 76% 83%, 100% 89%, 100% 100%, 0 100%, 0 89%, 24% 83%);
}

.phone-device {
  position: absolute;
  z-index: 6;
  right: 4%;
  bottom: 28px;
  width: 24%;
  aspect-ratio: 0.53;
  padding: 8px;
  color: var(--ink);
  background: #142c26;
  border: 2px solid #071b17;
  border-radius: 26px;
  box-shadow: 0 22px 35px rgba(3, 56, 46, 0.28);
}

[dir="rtl"] .phone-device {
  right: auto;
  left: 4%;
}

.phone-speaker {
  position: absolute;
  z-index: 2;
  top: 11px;
  left: 50%;
  width: 39%;
  height: 12px;
  background: #071b17;
  border-radius: 0 0 9px 9px;
  transform: translateX(-50%);
}

.phone-content {
  height: 100%;
  padding: 24px 10px 10px;
  overflow: hidden;
  background: #fbfcfa;
  border-radius: 19px;
}

.phone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: clamp(0.38rem, 0.55vw, 0.56rem);
}

.phone-content > p {
  margin: 10px 0 8px;
  font-size: clamp(0.36rem, 0.52vw, 0.54rem);
  line-height: 1.35;
}

.phone-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.phone-grid div {
  display: grid;
  min-height: 44px;
  padding: 5px;
  text-align: center;
  background: white;
  border: 1px solid rgba(7, 87, 69, 0.09);
  border-radius: 6px;
  font-size: clamp(0.28rem, 0.39vw, 0.42rem);
  place-items: center;
}

.phone-grid span {
  color: var(--emerald-700);
  font-size: clamp(0.62rem, 0.85vw, 0.9rem);
}

.phone-card {
  display: grid;
  margin-top: 8px;
  padding: 7px;
  background: var(--emerald-50);
  border-radius: 6px;
  font-size: clamp(0.27rem, 0.38vw, 0.4rem);
  gap: 2px;
}

.phone-card span {
  color: var(--emerald-700);
}

.phone-list {
  display: flex;
  justify-content: space-between;
  padding: 6px 1px;
  border-bottom: 1px solid rgba(7, 87, 69, 0.1);
  font-size: clamp(0.28rem, 0.4vw, 0.42rem);
}

.workflow-node {
  position: absolute;
  z-index: 7;
  display: grid;
  min-width: 76px;
  padding: 8px 9px;
  color: var(--emerald-700);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(19, 133, 107, 0.28);
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(3, 56, 46, 0.07);
  font-size: 0.66rem;
  text-align: center;
  place-items: center;
  aspect-ratio: 1;
}

.node-icon {
  display: grid;
  width: 30px;
  height: 30px;
  margin-bottom: 3px;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 1rem;
  place-items: center;
}

.workflow-clinical {
  top: 1px;
  right: 15%;
}

.workflow-operations {
  top: 115px;
  right: -1%;
}

.workflow-finance {
  right: -2%;
  bottom: 76px;
}

.workflow-patient {
  right: 29%;
  bottom: 12px;
  color: var(--coral);
  border-color: rgba(239, 115, 94, 0.35);
}

[dir="rtl"] .workflow-clinical {
  right: auto;
  left: 15%;
}

[dir="rtl"] .workflow-operations,
[dir="rtl"] .workflow-finance {
  right: auto;
  left: -1%;
}

[dir="rtl"] .workflow-patient {
  right: auto;
  left: 29%;
}

.orbit-line {
  position: absolute;
  z-index: 2;
  right: 1%;
  width: 29%;
  border: 2px dashed rgba(19, 133, 107, 0.55);
  border-left: 0;
  border-radius: 0 80px 80px 0;
}

.orbit-line-a {
  top: 43px;
  height: 220px;
}

.orbit-line-b {
  right: -1%;
  bottom: 68px;
  height: 180px;
  transform: rotate(180deg);
}

[dir="rtl"] .orbit-line {
  right: auto;
  left: 1%;
  border-right: 0;
  border-left: 2px dashed rgba(19, 133, 107, 0.55);
  border-radius: 80px 0 0 80px;
}

.benefit-band {
  position: relative;
  z-index: 8;
  margin-top: -66px;
}

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 27px 25px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(7, 87, 69, 0.08);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px);
}

.benefit-item {
  display: grid;
  grid-template-columns: 66px 1fr;
  align-items: center;
  padding: 0 25px;
  gap: 15px;
}

.benefit-item + .benefit-item {
  border-inline-start: 1px solid var(--line);
}

.benefit-icon {
  display: grid;
  width: 58px;
  height: 58px;
  color: var(--emerald-950);
  background: var(--emerald-50);
  border: 1px solid rgba(19, 133, 107, 0.12);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.7rem;
  place-items: center;
}

.benefit-item h2 {
  margin-bottom: 4px;
  font-size: 0.98rem;
  line-height: 1.25;
}

.benefit-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.section {
  padding-block: 108px;
}

.roles-section {
  background:
    radial-gradient(circle at 75% 50%, rgba(220, 238, 229, 0.65), transparent 31%),
    var(--ivory);
}

.roles-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.28fr) minmax(760px, 0.72fr);
  align-items: center;
  gap: 52px;
}

.section-intro h2,
.section-heading h2 {
  margin-bottom: 20px;
  color: var(--emerald-950);
  font-family: var(--serif);
  font-size: clamp(2.35rem, 3.6vw, 4.3rem);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

[dir="rtl"] .section-intro h2,
[dir="rtl"] .section-heading h2 {
  letter-spacing: -0.015em;
}

.section-intro p,
.section-heading p {
  color: var(--muted);
}

.text-link {
  color: var(--emerald-700);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.role-cards {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.role-card {
  display: flex;
  min-height: 230px;
  flex-direction: column;
  padding: 20px 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(7, 87, 69, 0.09);
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(3, 56, 46, 0.04);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.role-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-sm);
}

.role-icon {
  display: grid;
  width: 43px;
  height: 43px;
  margin-bottom: 15px;
  color: white;
  background: var(--emerald-800);
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 800;
  place-items: center;
}

.role-icon-light {
  background: var(--emerald-600);
}

.role-icon-coral {
  background: var(--coral);
}

.role-card h3 {
  margin-bottom: 8px;
  font-size: 0.88rem;
}

.role-card p {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.role-card a {
  margin-top: auto;
  color: var(--emerald-700);
  font-size: 0.7rem;
  font-weight: 800;
  text-decoration: none;
}

.role-card-patient a {
  color: var(--coral-dark);
}

.platform-section {
  color: white;
  background: var(--emerald-950);
}

.platform-section .eyebrow {
  color: #a4d9c7;
}

.platform-section .section-heading {
  max-width: 760px;
}

.platform-section .section-heading h2 {
  color: white;
}

.platform-section .section-heading p {
  color: rgba(255, 255, 255, 0.7);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 55px;
  gap: 18px;
}

.flow-step {
  position: relative;
  min-height: 220px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
}

.flow-step::after {
  position: absolute;
  top: 45px;
  inset-inline-end: -18px;
  width: 18px;
  height: 1px;
  content: "";
  background: rgba(255, 255, 255, 0.28);
}

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

.flow-step > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 30px;
  color: var(--emerald-950);
  background: #b5e0cf;
  border-radius: 50%;
  font-size: 0.73rem;
  font-weight: 800;
  place-items: center;
}

.flow-step h3 {
  margin-bottom: 10px;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 400;
}

.flow-step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
}

.faq-section {
  background: #f7f2e9;
}

.faq-layout {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 90px;
}

.faq-list {
  display: grid;
  align-content: start;
  gap: 12px;
}

.faq-list details {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(7, 87, 69, 0.1);
  border-radius: 10px;
}

.faq-list summary {
  position: relative;
  padding: 21px 55px 21px 24px;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

[dir="rtl"] .faq-list summary {
  padding: 21px 24px 21px 55px;
}

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

.faq-list summary::after {
  position: absolute;
  top: 17px;
  right: 20px;
  display: grid;
  width: 28px;
  height: 28px;
  content: "+";
  color: var(--emerald-700);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 1.15rem;
  font-weight: 400;
  place-items: center;
}

[dir="rtl"] .faq-list summary::after {
  right: auto;
  left: 20px;
}

.faq-list details[open] summary::after {
  content: "–";
}

.faq-list details p {
  padding: 0 24px 21px;
  margin: 0;
  color: var(--muted);
}

.closing-section {
  padding-block: 0 80px;
  background: var(--ivory);
}

.closing-cta {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  padding: 30px 42px;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 82% 140%, rgba(96, 175, 145, 0.24), transparent 35%),
    linear-gradient(110deg, var(--emerald-900), var(--emerald-800));
  border-radius: 11px;
  box-shadow: var(--shadow-md);
  gap: 25px;
}

.closing-cta::after {
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 370px;
  height: 210px;
  content: "";
  border: 35px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  transform: rotate(-12deg);
}

.closing-mark {
  display: grid;
  width: 60px;
  height: 60px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  font-size: 1.4rem;
  place-items: center;
}

.closing-cta h2 {
  margin-bottom: 3px;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2.4vw, 2.6rem);
  font-weight: 400;
  letter-spacing: -0.03em;
}

.closing-cta p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.74);
}

.closing-cta .button {
  position: relative;
  z-index: 2;
  min-width: 210px;
}

.site-footer {
  padding-top: 75px;
  color: rgba(255, 255, 255, 0.72);
  background: #062f27;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 0.8fr);
  padding-bottom: 55px;
  gap: 70px;
}

.brand-footer {
  margin-bottom: 21px;
}

.footer-grid > div:first-child p {
  max-width: 390px;
}

.footer-grid h2 {
  margin-bottom: 18px;
  color: white;
  font-size: 0.92rem;
}

.footer-grid a:not(.brand) {
  display: block;
  width: fit-content;
  margin-bottom: 9px;
  font-size: 0.88rem;
  text-decoration: none;
}

.footer-grid a:hover {
  color: white;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  font-size: 0.78rem;
  gap: 25px;
}

.inner-hero {
  position: relative;
  min-height: 560px;
  overflow: hidden;
  background: linear-gradient(180deg, #fcfaf5, #f4eee3);
}

.inner-hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  align-items: center;
  min-height: 560px;
  padding-block: 95px;
  gap: 100px;
}

.inner-hero h1 {
  font-size: clamp(3.4rem, 5vw, 5.8rem);
}

.inner-hero-wash {
  position: absolute;
  right: -8%;
  bottom: -45%;
  width: 62%;
  aspect-ratio: 1.7;
  background: rgba(201, 226, 211, 0.62);
  border-radius: 50%;
  transform: rotate(-12deg);
}

[dir="rtl"] .inner-hero-wash {
  right: auto;
  left: -8%;
}

.inner-hero-card {
  position: relative;
  z-index: 2;
  padding: 48px;
  color: white;
  background: linear-gradient(145deg, var(--emerald-900), var(--emerald-700));
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  box-shadow: var(--shadow-md);
}

.mini-kicker {
  display: block;
  margin-bottom: 24px;
  color: #bde0d2;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.inner-hero-card > strong {
  display: block;
  max-width: 430px;
  font-family: var(--serif);
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 400;
  line-height: 1.08;
}

.mini-flow {
  display: flex;
  align-items: center;
  margin-top: 50px;
}

.mini-flow i {
  display: grid;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  font-style: normal;
  place-items: center;
}

.mini-flow b {
  width: 40px;
  height: 1px;
  background: rgba(255, 255, 255, 0.35);
}

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

.content-card {
  min-height: 260px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(7, 87, 69, 0.1);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(3, 56, 46, 0.05);
}

.content-card > span {
  color: var(--coral-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-card h2 {
  margin: 35px 0 14px;
  color: var(--emerald-950);
  font-family: var(--serif);
  font-size: clamp(1.6rem, 2vw, 2.25rem);
  font-weight: 400;
  line-height: 1.08;
}

.content-card p {
  margin-bottom: 0;
  color: var(--muted);
}

.demo-hero {
  min-height: 740px;
}

.demo-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: start;
  padding-block: 95px 110px;
  gap: 85px;
}

.demo-copy {
  position: sticky;
  top: 120px;
}

.demo-copy h1 {
  font-size: clamp(3.2rem, 4.5vw, 5.2rem);
}

.demo-points {
  display: grid;
  margin-top: 38px;
  gap: 20px;
}

.demo-points > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
}

.demo-points > div > span {
  display: grid;
  width: 30px;
  height: 30px;
  color: white;
  background: var(--emerald-700);
  border-radius: 50%;
  font-weight: 800;
  place-items: center;
}

.demo-points strong {
  display: block;
  margin-bottom: 3px;
}

.demo-points p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.lead-card {
  padding: clamp(30px, 4vw, 55px);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(7, 87, 69, 0.1);
  border-radius: 22px;
  box-shadow: var(--shadow-md);
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 19px;
}

.field {
  display: grid;
  margin-bottom: 19px;
  gap: 7px;
}

.field label {
  color: var(--emerald-950);
  font-size: 0.82rem;
  font-weight: 750;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: #fffefb;
  border: 1px solid rgba(7, 87, 69, 0.22);
  border-radius: 8px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.field input,
.field select {
  min-height: 48px;
}

.field textarea {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--emerald-600);
  outline: none;
  box-shadow: 0 0 0 4px rgba(19, 133, 107, 0.12);
}

.field > span,
.validation-summary {
  color: #a33626;
  font-size: 0.78rem;
}

.validation-summary:empty {
  display: none;
}

.validation-summary ul {
  padding: 12px 16px 12px 32px;
  margin: 0 0 18px;
  background: #fff1ee;
  border: 1px solid rgba(163, 54, 38, 0.18);
  border-radius: 8px;
}

[dir="rtl"] .validation-summary ul {
  padding: 12px 32px 12px 16px;
}

.form-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.honeypot {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.success-state {
  display: grid;
  min-height: 420px;
  text-align: center;
  place-items: center;
  align-content: center;
}

.success-state > span {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 25px;
  color: white;
  background: var(--emerald-700);
  border-radius: 50%;
  font-size: 2rem;
  place-items: center;
}

.success-state h2 {
  color: var(--emerald-950);
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: 400;
}

.success-state p {
  max-width: 480px;
  color: var(--muted);
}

.error-page {
  display: grid;
  min-height: 60vh;
  align-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.reveal-delay {
  transition-delay: 120ms;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1240px) {
  :root {
    --shell: min(1180px, calc(100% - 56px));
  }

  .nav-shell {
    gap: 25px;
  }

  .primary-nav {
    gap: 20px;
  }

  .hero-grid {
    grid-template-columns: 0.8fr 1.2fr;
    gap: 25px;
  }

  .benefit-item {
    grid-template-columns: 50px 1fr;
    padding: 0 15px;
  }

  .benefit-icon {
    width: 48px;
    height: 48px;
    font-size: 1.35rem;
  }

  .roles-layout {
    grid-template-columns: 0.3fr 0.7fr;
    gap: 35px;
  }

  .role-cards {
    grid-template-columns: repeat(3, 1fr);
  }

  .role-card {
    min-height: 220px;
  }
}

@media (max-width: 980px) {
  :root {
    --shell: calc(100% - 40px);
  }

  .nav-shell {
    grid-template-columns: auto auto 1fr;
  }

  .menu-toggle {
    display: block;
  }

  .primary-nav {
    position: fixed;
    z-index: 101;
    top: 72px;
    right: 0;
    left: 0;
    display: grid;
    max-height: 0;
    justify-content: stretch;
    padding: 0 20px;
    overflow: hidden;
    background: rgba(251, 248, 241, 0.98);
    border-bottom: 1px solid transparent;
    opacity: 0;
    transition: max-height 250ms ease, opacity 200ms ease, padding 250ms ease;
  }

  .primary-nav.is-open {
    max-height: 420px;
    padding: 18px 20px 25px;
    border-bottom-color: var(--line);
    opacity: 1;
  }

  .primary-nav a {
    padding: 12px;
  }

  .nav-actions {
    justify-self: end;
  }

  .language-link {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-top: 80px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .product-scene {
    min-height: 570px;
  }

  .desktop-device {
    left: 4%;
    width: 72%;
  }

  [dir="rtl"] .desktop-device {
    right: 4%;
  }

  .phone-device {
    right: 8%;
    width: 20%;
  }

  [dir="rtl"] .phone-device {
    left: 8%;
  }

  .workflow-operations,
  .workflow-finance {
    right: 2%;
  }

  [dir="rtl"] .workflow-operations,
  [dir="rtl"] .workflow-finance {
    left: 2%;
  }

  .benefit-band {
    margin-top: -40px;
  }

  .benefit-grid {
    grid-template-columns: 1fr 1fr;
    gap: 25px 0;
  }

  .benefit-item:nth-child(3) {
    border-inline-start: 0;
  }

  .roles-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 45px;
  }

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

  .flow-steps {
    grid-template-columns: 1fr 1fr;
  }

  .flow-step:nth-child(2)::after {
    display: none;
  }

  .inner-hero-grid,
  .demo-layout {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .inner-hero-grid {
    padding-block: 80px;
  }

  .inner-hero-card {
    max-width: 690px;
  }

  .content-card-grid {
    grid-template-columns: 1fr 1fr;
  }

  .demo-copy {
    position: static;
    max-width: 760px;
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 45px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .nav-shell {
    min-height: 66px;
  }

  .primary-nav {
    top: 66px;
  }

  .nav-actions .button {
    display: none;
  }

  .nav-actions {
    min-width: 0;
  }

  .brand {
    max-width: 9.5rem;
  }

  .brand-logo {
    width: 100%;
  }

  .hero-grid {
    padding-block: 66px 110px;
  }

  .hero-copy h1 {
    font-size: clamp(3.05rem, 14vw, 4.5rem);
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .product-scene {
    min-height: 360px;
    margin-top: 20px;
  }

  .desktop-device {
    top: 45px;
    left: 0;
    width: 88%;
  }

  [dir="rtl"] .desktop-device {
    right: 0;
  }

  .demo-main {
    padding: 8px;
  }

  .demo-sidebar {
    padding: 9px 5px;
    gap: 3px;
  }

  .demo-brand {
    padding-bottom: 6px;
  }

  .demo-nav-item {
    padding: 2px 3px;
  }

  .demo-stats,
  .demo-charts {
    gap: 3px;
  }

  .demo-charts {
    margin-top: 3px;
  }

  .chart-card {
    min-height: 52px;
    padding: 4px;
  }

  .line-chart {
    height: 26px;
    margin-top: 3px;
  }

  .donut-chart {
    width: 28px;
    margin-top: 3px;
  }

  .donut-chart::after {
    width: 15px;
    margin: 6px;
  }

  .chart-wide {
    min-height: 38px;
  }

  .bar-chart {
    height: 22px;
    margin-top: 3px;
  }

  .desktop-stand {
    height: 23px;
  }

  .phone-device {
    right: 0;
    bottom: 0;
    width: 30%;
    padding: 4px;
    border-radius: 17px;
  }

  [dir="rtl"] .phone-device {
    left: 0;
  }

  .phone-content {
    padding: 18px 5px 5px;
    border-radius: 13px;
  }

  .phone-speaker {
    top: 7px;
    height: 8px;
  }

  .phone-grid {
    gap: 2px;
  }

  .phone-grid div {
    min-height: 25px;
    padding: 2px;
  }

  .phone-card {
    margin-top: 3px;
    padding: 3px;
  }

  .phone-list {
    padding: 3px 0;
  }

  .workflow-node {
    display: none;
  }

  .orbit-line {
    display: none;
  }

  .benefit-band {
    margin-top: -55px;
  }

  .benefit-grid {
    grid-template-columns: 1fr;
    padding: 18px;
    gap: 0;
  }

  .benefit-item {
    padding: 18px 5px;
  }

  .benefit-item + .benefit-item,
  .benefit-item:nth-child(3) {
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }

  .section {
    padding-block: 78px;
  }

  .section-intro h2,
  .section-heading h2 {
    font-size: clamp(2.45rem, 12vw, 3.5rem);
  }

  .role-cards,
  .flow-steps,
  .content-card-grid,
  .field-grid {
    grid-template-columns: 1fr;
  }

  .role-card {
    min-height: 190px;
  }

  .flow-step::after {
    display: none;
  }

  .faq-list summary {
    padding-inline-start: 17px;
  }

  .closing-section {
    padding-bottom: 40px;
  }

  .closing-cta {
    grid-template-columns: 1fr;
    padding: 30px 24px;
  }

  .closing-cta .button {
    min-width: 0;
  }

  .closing-mark {
    width: 48px;
    height: 48px;
  }

  .inner-hero {
    min-height: auto;
  }

  .inner-hero-grid {
    min-height: auto;
    padding-block: 70px;
  }

  .inner-hero h1 {
    font-size: clamp(3rem, 13vw, 4.3rem);
  }

  .inner-hero-card,
  .lead-card {
    padding: 28px 22px;
    border-radius: 16px;
  }

  .mini-flow i {
    width: 38px;
    height: 38px;
  }

  .mini-flow b {
    width: 21px;
  }

  .demo-layout {
    padding-block: 70px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 24px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
