/* ==========================================================================
   MEDRA — Smart Healthcare Ecosystem
   Design system & site styles. RTL-first with logical properties.
   ========================================================================== */

:root {
  --navy: #10224F;
  --navy-2: #0B1838;
  --blue: #245498;
  --blue-2: #2E63AE;
  --teal: #20A0A7;
  --teal-d: #137A80;
  --teal-50: #E6F6F7;
  --sky: #F3F8FC;
  --sky-2: #E8F0F9;
  --white: #FFFFFF;
  --ink: #16253D;
  --muted: #55667F;
  --line: #E2E9F2;
  --line-2: #CFDBEA;
  --red: #D64545;
  --red-50: #FDECEC;
  --amber: #C27A12;
  --amber-50: #FDF3E2;
  --green: #138A54;
  --green-50: #E5F5EC;
  --wa: #15803D;
  --wa-float: #19A050;

  --font-ar: "Cairo", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-en: "Cairo", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font: var(--font-ar);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --sh-1: 0 1px 2px rgba(16, 34, 79, .06), 0 1px 1px rgba(16, 34, 79, .04);
  --sh-2: 0 10px 30px -12px rgba(16, 34, 79, .18), 0 2px 6px rgba(16, 34, 79, .05);
  --sh-3: 0 40px 80px -30px rgba(16, 34, 79, .35), 0 12px 24px -12px rgba(16, 34, 79, .15);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 72px;
  --gutter: 20px;
  color-scheme: light;
}
html[lang="en"] { --font: var(--font-en); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0; background: var(--white); color: var(--ink);
  font-family: var(--font); font-size: 17px; line-height: 1.7;
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html[lang="en"] body { font-size: 16.5px; line-height: 1.65; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.3; margin: 0 0 .5em; font-weight: 700; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.022em; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .92em; }
.muted { color: var(--muted); }
.center { text-align: center; }
main:focus { outline: none; }

.ic { width: 1.2em; height: 1.2em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
[dir="rtl"] .ic-dir { transform: none; }

.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container.narrow { max-width: 820px; }
@media (max-width: 420px) { :root { --gutter: 16px; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .7em 1.35em; border-radius: 999px; border: 1.5px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 600; font-size: .97rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s, color .2s;
}
.btn:hover { color: var(--fg); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { --bg: var(--navy); box-shadow: 0 8px 20px -10px rgba(16, 34, 79, .65); }
.btn-primary:hover { --bg: var(--blue); }
.btn-outline { --bg: transparent; --fg: var(--navy); --bd: var(--line-2); }
.btn-outline:hover { --bd: var(--navy); --fg: var(--navy); background: var(--sky); }
.btn-text { --bg: transparent; --fg: var(--blue); padding-inline: .4em; min-height: 40px; }
.btn-text:hover { --fg: var(--navy); }
.btn-wa { --bg: var(--wa); --fg: #fff; }
.btn-wa:hover { --bg: #126C33; }
.btn-light { --bg: #fff; --fg: var(--navy); }
.btn-light:hover { --bg: var(--teal-50); --fg: var(--navy); }
.btn-ghost-light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .35); }
.btn-ghost-light:hover { --bd: #fff; background: rgba(255, 255, 255, .06); }
.btn-sm { min-height: 40px; padding: .5em 1em; font-size: .9rem; }
.btn-lg { min-height: 56px; padding: .8em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .65; cursor: progress; transform: none; }
.icon-btn { width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--navy); }
.icon-btn:hover { border-color: var(--line-2); background: var(--sky); }
.linklike { background: none; border: 0; padding: 0; color: rgba(255, 255, 255, .78); text-decoration: none; }
.linklike:hover { color: #fff; text-decoration: underline; }

/* ---------- Tags, pills, badges ---------- */
.tag { display: inline-flex; align-items: center; gap: .35em; font-size: .72rem; font-weight: 600; padding: .25em .7em; border-radius: 999px; white-space: nowrap; line-height: 1.5; }
.tag .ic { width: 1em; height: 1em; }
.tag-muted { background: var(--sky-2); color: var(--muted); }
.tag-sim { background: var(--amber-50); color: #8A5300; }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; padding: .2em .65em; border-radius: 999px; white-space: nowrap; }
.pill-alert { background: var(--red-50); color: #B42318; }
.pill-watch { background: var(--amber-50); color: #8A5300; }
.pill-stable { background: var(--green-50); color: #0F6B41; }
.pill-info { background: var(--sky-2); color: var(--blue); }
.badge { display: inline-block; font-size: .7rem; font-weight: 700; padding: .15em .6em; border-radius: 6px; vertical-align: middle; }
.badge-soon { background: var(--navy); color: #fff; }
.c-alert { color: var(--red) !important; }
.av { width: 30px; height: 30px; border-radius: 50%; background: var(--sky-2); color: var(--blue); display: inline-grid; place-items: center; font-size: .8rem; font-weight: 700; flex: none; }
.av .ic { width: 16px; height: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; height: var(--header-h);
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(16, 34, 79, .35); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 20px; }
.brand { flex: none; display: flex; align-items: center; }
.brand-logo { height: 36px; width: auto; }
.main-nav { flex: 1; min-width: 0; }
.main-nav ul { display: flex; justify-content: center; gap: 2px; }
.main-nav a { display: block; padding: 8px 10px; border-radius: 10px; color: var(--ink); font-weight: 500; font-size: .93rem; text-decoration: none; white-space: nowrap; }
html[lang="en"] .main-nav a { font-size: .9rem; padding-inline: 9px; }
.main-nav a:hover, .main-nav a.is-active { color: var(--blue); background: var(--sky); }
.nav-mobile-actions { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 44px; padding-inline: 12px; border-radius: 12px; border: 1px solid var(--line); color: var(--navy); font-weight: 700; text-decoration: none; font-size: .9rem; }
.lang-switch:hover { background: var(--sky); color: var(--navy); }
.wa-icon { color: var(--wa); }
.nav-toggle { display: none; }
.nav-toggle .ic-close { display: none; }
.nav-open .nav-toggle .ic-menu { display: none; }
.nav-open .nav-toggle .ic-close { display: block; }

@media (min-width: 1200px) {
  .main-nav li:first-child { display: none; } /* the logo links home on desktop */
}
@media (min-width: 1200px) and (max-width: 1365px) {
  .main-nav a { padding-inline: 7px; font-size: .88rem; }
  html[lang="en"] .main-nav a { padding-inline: 6px; font-size: .86rem; }
  .wa-icon { display: none; }
  .header-inner { gap: 14px; }
}
@media (max-width: 1199px) {
  .nav-toggle { display: inline-grid; }
  .main-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 59; background: #fff;
    padding: 12px var(--gutter) calc(24px + env(safe-area-inset-bottom)); overflow-y: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s, transform .25s var(--ease), visibility .25s;
  }
  .nav-open .main-nav { opacity: 1; transform: none; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a { padding: 14px 6px; font-size: 1.08rem; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav-mobile-actions { display: grid; gap: 10px; margin-top: 20px; }
  .lang-link { display: inline-flex; align-items: center; gap: 8px; justify-content: center; padding: 12px; color: var(--navy); font-weight: 600; text-decoration: none; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  .header-cta, .wa-icon { display: none; }
  .brand-logo { height: 30px; }
}

/* ---------- Section scaffolding ---------- */
.section { padding-block: clamp(64px, 8.5vw, 112px); position: relative; }
.section.is-alt, .is-alt { background: var(--sky); }
.section.dark { background: var(--navy); color: #C9D6EA; }
.section.dark h2, .section.dark h3 { color: #fff; }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
.section-lead { font-size: 1.1rem; color: var(--muted); margin: 0; }
.dark .section-lead { color: #B9C8DF; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--teal-d); margin-bottom: 12px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; text-transform: none; font-size: .9rem; }
.eyebrow-light { color: #7FD6DB; }
.eyebrow-pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--navy); font-size: .82rem; font-weight: 600; box-shadow: var(--sh-1); margin-bottom: 22px; direction: ltr; }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 0 rgba(32, 160, 167, .55); animation: pulse 2.2s infinite; display: inline-block; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(32, 160, 167, .55); } 70% { box-shadow: 0 0 0 9px rgba(32, 160, 167, 0); } 100% { box-shadow: 0 0 0 0 rgba(32, 160, 167, 0); } }

.checks { display: grid; gap: 10px; margin: 0 0 22px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks li > .ic { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: var(--teal-50); color: var(--teal-d); stroke-width: 3; margin-top: .25em; }
.checks-light li { color: #DCE6F4; }
.checks-light li > .ic { background: rgba(32, 160, 167, .2); color: #7FD6DB; }
.note { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); background: var(--sky); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.is-alt .note { background: #fff; }
.note .ic { color: var(--blue); margin-top: .2em; }
.note-sim { background: var(--amber-50); border-color: #F3DDB4; color: #6E4A0E; }
.note-sim .ic { color: #8A5300; }
.note-light { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #B9C8DF; }
.note-light .ic { color: #7FD6DB; }
.inline-wa { display: inline-flex; align-items: center; gap: 8px; color: var(--wa); font-weight: 600; text-decoration: none; margin-top: 14px; }
.inline-wa:hover { color: #126C33; text-decoration: underline; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(40px, 6vw, 84px) clamp(48px, 6vw, 80px); overflow: hidden; }
.hero-bg { position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(60% 60% at 85% 20%, rgba(32, 160, 167, .12), transparent 70%),
  radial-gradient(50% 60% at 10% 90%, rgba(36, 84, 152, .10), transparent 70%),
  linear-gradient(180deg, #F7FAFD 0%, #fff 100%); }
[dir="rtl"] .hero-bg { transform: scaleX(-1); }
.hero-bg::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(16, 34, 79, .07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 80%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 80%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero-title { font-size: clamp(2.1rem, 4.3vw, 3.65rem); font-weight: 700; margin-bottom: 20px; line-height: 1.22; }
html[lang="en"] .hero-title { line-height: 1.08; font-weight: 800; font-size: clamp(2rem, 3.7vw, 3.15rem); }
.hero-lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 40em; margin-bottom: 28px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas.center { justify-content: center; }
.hero-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--wa); font-weight: 600; text-decoration: none; }
.hero-wa:hover { color: #126C33; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.hero-points li { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--ink); font-weight: 500; }
.hero-points .ic { color: var(--teal); }

.hero-visual { position: relative; height: 590px; isolation: isolate; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: #FBFCFE; }
.win-bar > i { width: 10px; height: 10px; border-radius: 50%; background: #E3E8F0; }
.win-bar > i:nth-child(1) { background: #FF6159; } .win-bar > i:nth-child(2) { background: #FFBF2F; } .win-bar > i:nth-child(3) { background: #2ACB42; }
.win-url { flex: 1; text-align: center; font-size: .72rem; color: var(--muted); direction: ltr; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.frame { background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--sh-3); overflow: hidden; }

.hv-dash { position: absolute; inset-inline-start: 0; top: 64px; width: 84%; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--sh-3); overflow: hidden; animation: dashIn 1s var(--ease) both; }
@keyframes dashIn { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
.hv-dash-body { display: flex; min-height: 360px; }
.hv-side { width: 52px; background: var(--navy); display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 16px 0; color: #7E92B5; }
.hv-side img { width: 22px; margin-bottom: 6px; }
.hv-side .ic:nth-of-type(2) { color: #fff; }
.hv-main { flex: 1; padding: 16px 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.hv-top { display: flex; justify-content: space-between; align-items: center; }
.hv-top strong { font-size: .95rem; color: var(--navy); }
.hv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hv-kpis > div { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; }
.hv-kpis small { display: block; font-size: .68rem; color: var(--muted); line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hv-kpis b { font-size: 1.3rem; color: var(--navy); font-family: var(--font-en); }
.hv-chart { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 6px; }
.hv-chart-hd { display: flex; justify-content: space-between; font-size: .75rem; font-weight: 600; color: var(--navy); }
.hv-chart-hd span { display: flex; align-items: center; gap: 6px; }
.hv-chart-hd .ic { color: var(--teal); }
.hv-chart-hd em { font-style: normal; color: var(--muted); font-weight: 500; font-family: var(--font-en); }
.spark { width: 100%; height: 92px; display: block; direction: ltr; }
.spark .thr { stroke: var(--red); stroke-dasharray: 4 4; stroke-width: 1.2; opacity: .6; }
.spark .area { fill: url(#hvg); }
.spark .line { fill: none; stroke: var(--teal); stroke-width: 2.4; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 1.8s .5s var(--ease) forwards; }
.spark .line-2 { stroke: var(--blue); opacity: .55; stroke-width: 2; }
.spark .pt-alert { fill: #fff; stroke: var(--red); stroke-width: 2.5; animation: blink 1.6s 2.2s infinite; opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.hv-rows { display: grid; gap: 6px; }
.hv-row { display: flex; align-items: center; gap: 10px; font-size: .8rem; padding: 6px 8px; border-radius: 10px; background: var(--sky); }
.hv-row .av { width: 24px; height: 24px; font-size: .7rem; }
.hv-row .nm { flex: 1; color: var(--ink); font-weight: 500; }

.hv-phone, .sim-phone, .mini-phone, .wl-phone {
  background: #0C1631; border-radius: 34px; padding: 9px; box-shadow: var(--sh-3), inset 0 0 0 1.5px #2A3A60; position: relative;
}
.phone-notch { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 64px; height: 18px; background: #0C1631; border-radius: 12px; z-index: 2; }
.phone-screen, .sim-screen { background: #F6F9FD; border-radius: 26px; height: 100%; overflow: hidden; padding: 38px 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.hv-phone { position: absolute; inset-inline-end: 0; bottom: 0; width: 196px; height: 392px; z-index: 3; animation: phoneIn 1s .25s var(--ease) both, bob 7s 1.4s ease-in-out infinite; }
@keyframes phoneIn { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.pa-head { display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; color: var(--navy); }
.pa-card { background: #fff; border-radius: 16px; padding: 12px; border: 1px solid var(--line); box-shadow: var(--sh-1); }
.pa-card small { display: flex; align-items: center; gap: 6px; font-size: .7rem; color: var(--muted); }
.pa-card small .ic { color: var(--teal); }
.pa-card b { display: block; font-family: var(--font-en); font-size: 1.65rem; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.pa-card b span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.pa-card-2 b { font-size: 1.35rem; }
.sync { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .66rem; color: var(--green); font-weight: 600; background: var(--green-50); padding: 3px 8px; border-radius: 999px; }
.sync i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.4s infinite; }
.pa-note { display: flex; gap: 8px; align-items: center; font-size: .7rem; background: var(--navy); color: #fff; border-radius: 12px; padding: 9px 10px; line-height: 1.4; }
.pa-note .ic { color: #7FD6DB; }

.hv-card { position: absolute; inset-inline-start: 7%; bottom: -2px; width: 228px; border-radius: 14px; box-shadow: 0 30px 50px -20px rgba(16, 34, 79, .55); z-index: 4; transform: rotate(-7deg); animation: cardIn 1s .45s var(--ease) both, float 6s 1.6s ease-in-out infinite; }
[dir="rtl"] .hv-card { transform: rotate(7deg); animation-name: cardIn, floatR; }
@keyframes cardIn { from { opacity: 0; translate: 0 30px; } to { opacity: 1; translate: 0 0; } }
@keyframes float { 0%, 100% { transform: rotate(-7deg) translateY(0); } 50% { transform: rotate(-5deg) translateY(-10px); } }
@keyframes floatR { 0%, 100% { transform: rotate(7deg) translateY(0); } 50% { transform: rotate(5deg) translateY(-10px); } }

.hv-chip { position: absolute; z-index: 5; display: flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 6px 12px 6px 6px; box-shadow: var(--sh-2); animation: chipIn .8s var(--ease) both; }
[dir="rtl"] .hv-chip { padding: 6px 6px 6px 12px; }
.hv-chip span { display: grid; font-size: .74rem; font-weight: 600; color: var(--navy); line-height: 1.3; }
.hv-chip em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; font-size: .64rem; color: var(--green); font-weight: 600; }
.hv-chip em.soon { color: var(--navy); background: var(--sky-2); padding: 0 6px; border-radius: 6px; }
.hv-chip em i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(19, 138, 84, .5); animation: pulseG 2s infinite; }
@keyframes pulseG { 0% { box-shadow: 0 0 0 0 rgba(19, 138, 84, .5); } 70% { box-shadow: 0 0 0 7px rgba(19, 138, 84, 0); } 100% { box-shadow: none; } }
.chip-dev { width: 46px; height: 36px; background: var(--sky); border-radius: 10px; padding: 2px; }
.hv-chip-1 { top: 18px; inset-inline-start: 30%; animation-delay: .7s; }
.hv-chip-2 { top: 250px; inset-inline-start: -44px; animation-delay: .9s; }
.hv-chip-3 { top: 324px; inset-inline-start: -44px; animation-delay: 1.1s; }
@keyframes chipIn { from { opacity: 0; transform: translateY(10px) scale(.95); } to { opacity: 1; transform: none; } }
.hv-ai { position: absolute; z-index: 5; inset-inline-end: 0; top: 0; width: 226px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; box-shadow: var(--sh-2); animation: chipIn .8s 1.3s var(--ease) both; }
.hv-ai-hd { display: flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.hv-ai-hd .ic { color: var(--teal); }
.hv-ai .b { font-size: .7rem; line-height: 1.5; padding: 6px 9px; border-radius: 12px; margin: 0 0 5px; max-width: 92%; }
.hv-ai .b-in { background: var(--sky-2); color: var(--ink); }
.hv-ai .b-out { background: var(--navy); color: #fff; margin-inline-start: auto; }

/* Pillars strip */
.pillars { border-block: 1px solid var(--line); background: #fff; }
.pillar-list { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; padding-block: 22px; }
.pillar-list li { display: flex; align-items: center; gap: 8px; font-size: .92rem; font-weight: 600; color: var(--navy); }
.pillar-list .ic { color: var(--teal); }

@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-visual { max-width: 680px; width: 100%; margin-inline: auto; }
}
@media (max-width: 720px) {
  .hero { padding-top: 28px; }
  .hero-title { font-size: clamp(1.85rem, 7.6vw, 2.3rem); }
  .hero-lead { font-size: 1.02rem; margin-bottom: 22px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-points { gap: 6px 14px; margin-top: 18px; padding-top: 16px; }
  .hero-points li { font-size: .85rem; }
  .hero-visual { height: 360px; }
  .hv-dash, .hv-chip-2, .hv-chip-3, .hv-ai { display: none; }
  .hv-phone { inset-inline-end: 50%; transform: none; margin-inline-end: -150px; width: 176px; height: 350px; bottom: 0; }
  .hv-card { width: 210px; inset-inline-start: 50%; margin-inline-start: -165px; bottom: 30px; }
  .hv-chip-1 { top: 6px; inset-inline-end: auto; inset-inline-start: 50%; margin-inline-start: -170px; }
  .pillar-list { justify-content: flex-start; gap: 10px 18px; }
  .pillar-list li { font-size: .84rem; }
}

/* ---------- Solutions overview ---------- */
.solutions { padding-bottom: clamp(24px, 4vw, 48px); }
.sol-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sol-card { height: 100%; display: grid; align-content: start; gap: 8px; padding: 24px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.sol-card:hover { transform: translateY(-4px); box-shadow: var(--sh-2); border-color: var(--line-2); color: var(--ink); }
.sol-card strong { font-size: 1.15rem; color: var(--navy); line-height: 1.4; }
.sol-ic { width: 46px; height: 46px; border-radius: 14px; display: inline-grid; place-items: center; background: linear-gradient(140deg, var(--navy), var(--blue)); color: #fff; margin-bottom: 8px; }
.sol-ic .ic { width: 22px; height: 22px; }
.sol-ic.sm { width: 30px; height: 30px; border-radius: 9px; margin: 0; }
.sol-ic.sm .ic { width: 16px; height: 16px; }
.sol-kicker { font-size: .75rem; font-weight: 600; color: var(--teal-d); direction: ltr; text-align: start; font-family: var(--font-en); }
[dir="rtl"] .sol-kicker { text-align: right; }
.sol-more { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--blue); margin-top: 6px; }
@media (max-width: 900px) { .sol-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .sol-grid { grid-template-columns: 1fr; gap: 10px; } .sol-card { grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px; } .sol-card .sol-ic { grid-row: span 3; margin: 0; } .sol-more { display: none; } .sol-card strong { font-size: 1.02rem; } }

/* ---------- Solution rows ---------- */
.section.sol-row { padding-block: clamp(48px, 6vw, 84px); }
.sol-row-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.sol-row.is-alt .sol-row-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr); }
.sol-row.is-alt .sol-copy { order: 2; }
.sol-copy h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.sol-lead { font-size: 1.08rem; color: var(--muted); }
.eyebrow-ic { gap: 10px; text-transform: none; letter-spacing: 0; direction: ltr; font-family: var(--font-en); }
[dir="rtl"] .eyebrow-ic { flex-direction: row-reverse; }
.sol-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 6px; }
.demo-toggle { display: none; }
@media (max-width: 1000px) {
  .sol-row-grid, .sol-row.is-alt .sol-row-grid { grid-template-columns: 1fr; }
  .sol-row.is-alt .sol-copy { order: 0; }
}
@media (max-width: 720px) {
  .js .demo-toggle { display: flex; width: 100%; align-items: center; justify-content: center; gap: 10px; min-height: 52px; border-radius: 14px; border: 1.5px dashed var(--line-2); background: #fff; color: var(--navy); font-weight: 600; }
  .js .demo-toggle[aria-expanded="true"] { border-style: solid; margin-bottom: 14px; }
  .js .demo-wrap:not(.is-open) { display: none; }
  .js .svc-demo-stage .demo-wrap, .js .svc-demo-stage { display: block; }
}

/* ---------- Generic demo shell ---------- */
.demo { position: relative; }
.demo-foot { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); margin: 12px 0 0; }
.seg { display: inline-flex; background: var(--sky); border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: none; padding: 5px 10px; border-radius: 8px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.seg button.is-on { background: #fff; color: var(--navy); box-shadow: var(--sh-1); }

/* RPM */
.rpm-body { display: grid; grid-template-columns: 210px minmax(0, 1fr); min-height: 470px; }
.rpm-list { border-inline-end: 1px solid var(--line); padding: 14px 10px; background: #FBFCFE; display: grid; align-content: start; gap: 6px; }
.rpm-list-h { font-size: .74rem; font-weight: 700; color: var(--muted); margin: 0 6px 4px; }
.rpm-pt { display: flex; align-items: center; gap: 10px; text-align: start; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; background: none; width: 100%; }
.rpm-pt:hover { background: #fff; border-color: var(--line); }
.rpm-pt.is-active { background: #fff; border-color: var(--line-2); box-shadow: var(--sh-1); }
.rpm-pt-t { flex: 1; display: grid; line-height: 1.35; min-width: 0; }
.rpm-pt-t b { font-size: .84rem; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rpm-pt-t small { font-size: .72rem; color: var(--muted); }
.st { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.st-alert { background: var(--red); box-shadow: 0 0 0 3px var(--red-50); }
.st-watch { background: #E5A21A; box-shadow: 0 0 0 3px var(--amber-50); }
.st-stable { background: var(--green); box-shadow: 0 0 0 3px var(--green-50); }
.rpm-main { padding: 16px 18px 18px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.rpm-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.rpm-name { font-size: 1.05rem; margin: 0; }
.rpm-meta { font-size: .8rem; color: var(--muted); margin: 0; }
.rpm-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.rpm-tabs::-webkit-scrollbar { display: none; }
.rpm-tab { border: 1px solid var(--line); background: #fff; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
.rpm-tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; }
.rpm-chart { position: relative; height: 200px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 6px 4px; direction: ltr; }
.rpm-chart svg { width: 100%; height: 100%; display: block; overflow: visible; }
.rpm-chart .grid line { stroke: #EDF2F8; }
.rpm-chart .axis text { fill: #8796AD; font-size: 10px; font-family: var(--font-en); }
.rpm-chart .thr { stroke: var(--red); stroke-dasharray: 5 4; stroke-width: 1.3; }
.rpm-chart .thr-l { fill: var(--red); font-size: 10px; font-family: var(--font-en); font-weight: 600; }
.rpm-chart .ln { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.rpm-chart .ln-a { stroke: var(--teal); } .rpm-chart .ln-b { stroke: var(--blue); opacity: .65; }
.rpm-chart .ar { fill: rgba(32, 160, 167, .10); }
.rpm-chart .dot { fill: #fff; stroke: var(--teal); stroke-width: 2; }
.rpm-chart .dot-hi { stroke: var(--red); fill: var(--red-50); }
.rpm-chart .hover-line { stroke: var(--navy); stroke-width: 1; opacity: .25; }
.chart-tip { position: absolute; pointer-events: none; background: var(--navy); color: #fff; font-size: .74rem; padding: 6px 9px; border-radius: 8px; white-space: nowrap; transform: translate(-50%, -110%); font-family: var(--font-en); box-shadow: var(--sh-2); z-index: 2; }
.rpm-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rpm-stats > div { background: var(--sky); border-radius: 12px; padding: 8px 12px; }
.rpm-stats small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.3; }
.rpm-stats b { font-size: 1rem; color: var(--navy); font-family: var(--font-en); }
.rpm-alert { border: 1px solid #F5C6C6; background: #FFF8F8; border-radius: 14px; padding: 12px 14px; transition: background-color .3s, border-color .3s; }
.rpm-alert.is-done { border-color: #BFE3CF; background: #F5FBF8; }
.rpm-alert-hd { display: flex; align-items: center; gap: 12px; }
.rpm-alert-hd > .ic { color: var(--red); width: 22px; height: 22px; }
.rpm-alert.is-done .rpm-alert-hd > .ic { color: var(--green); }
.rpm-alert-hd > div { flex: 1; display: grid; line-height: 1.35; }
.rpm-alert-hd b { font-size: .88rem; color: var(--ink); }
.rpm-alert-hd small { font-size: .74rem; color: var(--muted); }
.rpm-esc { display: flex; gap: 8px; align-items: center; font-size: .76rem; color: var(--muted); margin: 8px 0 0; }
.rpm-note { margin-top: 10px; padding-top: 10px; border-top: 1px dashed #BFE3CF; font-size: .82rem; }
.rpm-note p { margin: 0 0 4px; display: flex; gap: 8px; align-items: center; }
.rpm-note .ic { color: var(--green); }
@media (max-width: 720px) {
  .rpm-body { grid-template-columns: 1fr; }
  .rpm-list { display: flex; overflow-x: auto; border-inline-end: 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
  .rpm-list-h { display: none; }
  .rpm-pt { flex: 0 0 auto; width: auto; }
  .rpm-pt-t small { display: none; }
  .rpm-main { padding: 12px; }
  .rpm-chart { height: 170px; }
  .rpm-alert-hd { flex-wrap: wrap; }
  .rpm-alert-hd .btn { width: 100%; }
}

/* Devices */
.demo-devices { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 28px); box-shadow: var(--sh-2); }
.dev-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 26px; }
.dev-tile { position: relative; display: grid; justify-items: center; gap: 6px; padding: 12px 8px 10px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--sky); font-size: .8rem; font-weight: 600; color: var(--navy); transition: border-color .2s, background-color .2s, transform .2s; }
.dev-tile:hover { transform: translateY(-2px); }
.dev-tile.is-on { border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px var(--teal-50); }
.dev-tile .badge { position: absolute; top: -9px; inset-inline-end: 8px; }
.dev-svg { width: 100%; max-width: 110px; height: 70px; }
.flow { position: relative; padding-top: 4px; }
.flow-track { position: absolute; top: 31px; inset-inline: 12.5%; height: 4px; border-radius: 4px; background: var(--sky-2); overflow: visible; }
.flow-fill { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; border-radius: 4px; background: linear-gradient(90deg, var(--teal), var(--blue)); transition: width .9s var(--ease); }
[dir="rtl"] .flow-fill { background: linear-gradient(270deg, var(--teal), var(--blue)); }
.flow-packet { position: absolute; top: 50%; inset-inline-start: 0; width: 14px; height: 14px; margin-top: -7px; margin-inline-start: -7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px rgba(32, 160, 167, .2); opacity: 0; transition: inset-inline-start .9s var(--ease), opacity .3s; }
.flow-nodes { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; text-align: center; }
.flow-node { display: grid; justify-items: center; gap: 4px; }
.fn-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line); color: var(--muted); transition: all .35s var(--ease); position: relative; z-index: 1; }
.fn-ic .ic { width: 26px; height: 26px; }
.flow-node b { font-size: .82rem; color: var(--navy); line-height: 1.35; }
.flow-node small { font-size: .72rem; color: var(--muted); min-height: 1.4em; }
.flow-node.is-active .fn-ic { border-color: var(--teal); color: #fff; background: var(--teal); box-shadow: 0 10px 24px -10px rgba(32, 160, 167, .8); transform: translateY(-3px); }
.flow-node.is-done .fn-ic { border-color: var(--teal); color: var(--teal-d); background: var(--teal-50); }
.flow-node.is-active small, .flow-node.is-done small { color: var(--teal-d); font-weight: 600; }
.flow-foot { display: flex; gap: 16px; align-items: flex-start; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.flow-log { flex: 1; display: grid; gap: 4px; font-size: .8rem; color: var(--muted); min-height: 5.6em; }
.flow-log li { display: flex; gap: 8px; align-items: center; animation: chipIn .4s var(--ease) both; }
.flow-log li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); flex: none; }
.flow-log time { font-family: var(--font-en); font-size: .72rem; color: #8796AD; }
@media (max-width: 560px) {
  .dev-tiles { grid-template-columns: repeat(2, 1fr); }
  .fn-ic { width: 46px; height: 46px; border-radius: 14px; }
  .fn-ic .ic { width: 20px; height: 20px; }
  .flow-track { top: 24px; }
  .flow-node b { font-size: .72rem; }
  .flow-node small { font-size: .64rem; }
  .flow-foot { flex-direction: column; }
}

/* Smart card */
.demo-card { background: radial-gradient(80% 80% at 50% 0%, #1A3168, var(--navy) 70%); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); color: #fff; box-shadow: var(--sh-3); overflow: hidden; }
.demo-tag { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 3; }
.card-stage { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px; min-height: 430px; perspective: 1400px; }
.nfc-card { width: min(100%, 330px); aspect-ratio: 900 / 542; justify-self: center; transition: transform 1.1s var(--ease), opacity .6s; z-index: 2; }
.nfc-card-inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .9s var(--ease); }
.nfc-card .face { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 16px; backface-visibility: hidden; -webkit-backface-visibility: hidden; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .7), inset 0 0 0 1px rgba(255, 255, 255, .08); object-fit: cover; }
.nfc-card .face-back { transform: rotateY(180deg); }
.nfc-card.is-flipped .nfc-card-inner { transform: rotateY(180deg); }
.nfc-card:not(.is-tapping) { animation: cardHover 6s ease-in-out infinite; }
@keyframes cardHover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
.demo-card[data-state="reading"] .nfc-card { transform: translateX(calc(var(--toward, 1) * 46%)) rotate(-6deg) scale(.8); z-index: 3; }
.demo-card[data-state="profile"] .nfc-card, .demo-card[data-state="verify"] .nfc-card, .demo-card[data-state="record"] .nfc-card { transform: scale(.86); opacity: .55; }
[dir="rtl"] .demo-card { --toward: -1; }
.sim-phone { width: 230px; height: 450px; z-index: 1; }
.sim-screen { background: #fff; color: var(--ink); position: relative; padding: 40px 14px 14px; }
.scr { display: none; flex-direction: column; gap: 8px; height: 100%; animation: chipIn .45s var(--ease); }
.demo-card[data-state="idle"] .scr-idle, .demo-card[data-state="reading"] .scr-reading, .demo-card[data-state="profile"] .scr-profile,
.demo-card[data-state="verify"] .scr-verify, .demo-card[data-state="record"] .scr-record { display: flex; }
.scr-idle, .scr-reading { align-items: center; justify-content: center; text-align: center; font-size: .86rem; color: var(--muted); }
.nfc-rings { position: relative; width: 96px; height: 96px; display: grid; place-items: center; color: var(--blue); margin-bottom: 8px; }
.nfc-rings .ic { width: 34px; height: 34px; }
.nfc-rings i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(36, 84, 152, .25); }
.nfc-rings.is-active i { animation: ring 1.6s infinite; border-color: var(--teal); }
.nfc-rings.is-active i:nth-child(2) { animation-delay: .4s; } .nfc-rings.is-active i:nth-child(3) { animation-delay: .8s; }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.scr-hd { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 12px; background: var(--navy); color: #fff; font-size: .88rem; }
.scr-hd-red { background: #B42318; }
.scr-sub { display: flex; gap: 6px; align-items: flex-start; font-size: .7rem; color: var(--muted); margin: 0; line-height: 1.45; }
.scr-sub.ok { color: var(--green); font-weight: 600; }
.scr-sub .ic { width: 14px; height: 14px; flex: none; margin-top: 2px; }
.em-list { margin: 0; display: grid; gap: 0; font-size: .78rem; }
.em-list > div { display: flex; justify-content: space-between; gap: 8px; padding: 7px 2px; border-bottom: 1px solid var(--line); }
.em-list dt { color: var(--muted); }
.em-list dd { margin: 0; font-weight: 600; color: var(--ink); text-align: end; }
.em-blood { color: #B42318 !important; font-family: var(--font-en); font-size: 1rem; }
.em-warn { color: #8A5300 !important; }
.scr-profile .btn { margin-top: auto; }
.pin-form { display: flex; gap: 6px; }
.pin-form input { flex: 1; min-width: 0; height: 40px; border: 1.5px solid var(--line-2); border-radius: 10px; text-align: center; font-size: 1.2rem; letter-spacing: .4em; font-family: var(--font-en); }
.pin-form input:focus { border-color: var(--teal); outline: none; box-shadow: 0 0 0 3px var(--teal-50); }
.pin-hint { font-size: .72rem; color: var(--blue); margin: 0; }
.pin-err { font-size: .72rem; color: var(--red); margin: 0; }
.scr-record h4 { font-size: .74rem; color: var(--muted); margin: 4px 0 0; font-weight: 600; }
.rec-vitals { display: flex; flex-wrap: wrap; gap: 4px; }
.rec-vitals span { font-size: .7rem; background: var(--sky); padding: 3px 7px; border-radius: 6px; font-family: var(--font-en); font-weight: 600; color: var(--navy); }
.rec-list { font-size: .74rem; display: grid; gap: 3px; }
.rec-list li { padding-inline-start: 12px; position: relative; }
.rec-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--teal); }
.card-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
.demo-card .btn-primary { --bg: #fff; --fg: var(--navy); }
.demo-card .btn-primary:hover { --bg: var(--teal-50); }
.demo-card .btn-outline { --fg: #fff; --bd: rgba(255, 255, 255, .3); }
.demo-card .btn-outline:hover { background: rgba(255, 255, 255, .08); --fg: #fff; --bd: #fff; }
.demo-card .btn-text { --fg: #9CC3F0; }
.sim-screen .btn-primary { --bg: var(--navy); --fg: #fff; }
.sim-screen .btn-primary:hover { --bg: var(--blue); }
@media (max-width: 640px) {
  .card-stage { grid-template-columns: 1fr; min-height: 0; gap: 14px; padding-top: 30px; }
  .nfc-card { width: 240px; }
  .demo-card[data-state="reading"] .nfc-card { transform: translateY(70%) scale(.72); }
  .demo-card[data-state="profile"] .nfc-card, .demo-card[data-state="verify"] .nfc-card, .demo-card[data-state="record"] .nfc-card { display: none; }
  .sim-phone { width: 240px; height: 440px; justify-self: center; }
}

/* CRM */
.crm-body { padding: 16px; display: grid; gap: 14px; }
.funnel { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.funnel li { display: grid; justify-items: center; gap: 4px; text-align: center; }
.f-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--sky); color: var(--blue); }
.funnel li:first-child .f-ic { background: var(--navy); color: #fff; }
.funnel b { font-size: .7rem; color: var(--navy); line-height: 1.3; }
.f-bar { width: 100%; height: 6px; background: var(--sky-2); border-radius: 6px; overflow: hidden; }
.f-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal)); border-radius: 6px; transition: width 1.1s var(--ease); }
.is-live .f-bar i { width: var(--w); }
.crm-kpis, .tp-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff; }
.kpi small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.3; min-height: 2.6em; }
.kpi b { font-size: 1.35rem; color: var(--navy); font-family: var(--font-en); }
.crm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.crm-sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); column-gap: 18px; }
.crm-sources h4 { grid-column: 1 / -1; }
.crm-grid h4, .tp-h { font-size: .84rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crm-grid h4 small { font-weight: 500; color: var(--muted); font-size: .72rem; }
.crm-sources, .crm-kanban, .tp-card { border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.src-row { display: grid; grid-template-columns: 82px 1fr 36px; align-items: center; gap: 8px; font-size: .76rem; margin-bottom: 8px; }
.src-row b { font-family: var(--font-en); color: var(--navy); text-align: end; }
.src-bar { height: 8px; background: var(--sky-2); border-radius: 8px; overflow: hidden; }
.src-bar i { display: block; height: 100%; width: 0; border-radius: 8px; transition: width 1.1s var(--ease); background: var(--blue); }
.is-live .src-bar i, .tab-panel .src-bar i { width: var(--w); }
.src-snap { background: #E5B800 !important; } .src-insta { background: #C1358A !important; } .src-wa { background: var(--wa) !important; } .src-ref { background: #8796AD !important; } .src-google { background: var(--blue) !important; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.kb-col { background: var(--sky); border-radius: 10px; padding: 6px; min-height: 150px; }
.kb-col > p { font-size: .7rem; font-weight: 700; color: var(--muted); margin: 0 2px 6px; display: flex; justify-content: space-between; }
.kb-col > p span { background: #fff; border-radius: 6px; padding: 0 6px; color: var(--navy); }
.kb-items { display: grid; gap: 5px; }
.kb-item { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 7px; text-align: start; font-size: .7rem; line-height: 1.35; width: 100%; display: grid; gap: 3px; transition: transform .2s, box-shadow .2s; animation: chipIn .35s var(--ease); }
.kb-item:hover { box-shadow: var(--sh-1); transform: translateY(-1px); }
.kb-item b { color: var(--ink); font-weight: 600; }
.kb-item em { font-style: normal; font-size: .62rem; font-weight: 700; color: #fff; padding: 1px 6px; border-radius: 5px; justify-self: start; }
@media (max-width: 760px) {
  .funnel { grid-template-columns: repeat(3, 1fr); row-gap: 12px; }
  .crm-kpis, .tp-kpis { grid-template-columns: repeat(2, 1fr); }
  .crm-grid { grid-template-columns: 1fr; }
  .kanban { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* AI chat */
.demo-ai { display: grid; justify-items: center; }
.chat { width: min(100%, 420px); height: 560px; background: #EEF3F9; border-radius: 28px; border: 1px solid var(--line); box-shadow: var(--sh-3); display: flex; flex-direction: column; overflow: hidden; }
.chat-hd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--navy); color: #fff; }
.chat-av { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(140deg, var(--blue), var(--teal)); display: grid; place-items: center; }
.chat-av img { width: 18px; }
.chat-hd > div { flex: 1; display: grid; line-height: 1.3; }
.chat-hd b { font-size: .92rem; }
.chat-hd small { font-size: .72rem; color: #9FD8DC; display: flex; align-items: center; gap: 6px; }
.chat-hd .dot-live { width: 7px; height: 7px; }
.chat-handoff { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .06); color: #fff; border-radius: 999px; padding: 6px 10px; font-size: .74rem; font-weight: 600; }
.chat-handoff:hover { background: rgba(255, 255, 255, .14); }
.chat-handoff[disabled] { opacity: .5; cursor: default; }
.chat-disclaimer { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: .7rem; color: #8A5300; background: var(--amber-50); margin: 0; padding: 6px 10px; text-align: center; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 82%; padding: 9px 12px; border-radius: 16px; font-size: .88rem; line-height: 1.55; box-shadow: var(--sh-1); animation: chipIn .35s var(--ease); position: relative; }
.msg time { display: block; font-size: .62rem; opacity: .6; margin-top: 2px; font-family: var(--font-en); text-align: end; }
.msg-p { align-self: flex-start; background: #fff; color: var(--ink); border-start-start-radius: 6px; }
.msg-a { align-self: flex-end; background: var(--navy); color: #fff; border-start-end-radius: 6px; }
.msg-sys { align-self: center; background: var(--amber-50); color: #6E4A0E; font-size: .76rem; box-shadow: none; text-align: center; }
.msg-card { align-self: flex-end; background: #fff; border: 1px solid var(--line); color: var(--ink); width: 82%; }
.msg-card h5 { margin: 0 0 6px; font-size: .8rem; color: var(--navy); display: flex; gap: 6px; align-items: center; }
.msg-card dl { margin: 0; display: grid; gap: 3px; font-size: .78rem; }
.msg-card dl > div { display: flex; justify-content: space-between; gap: 8px; }
.msg-card dt { color: var(--muted); } .msg-card dd { margin: 0; font-weight: 600; }
.typing { align-self: flex-end; background: var(--navy); border-radius: 16px; padding: 12px 14px; display: flex; gap: 4px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9FB3CE; animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.chat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 10px; justify-content: flex-start; min-height: 10px; }
.chip { border: 1.5px solid var(--blue); color: var(--blue); background: #fff; border-radius: 999px; padding: 7px 13px; font-size: .82rem; font-weight: 600; animation: chipIn .35s var(--ease) both; }
.chip:hover { background: var(--blue); color: #fff; }
.chip-solid { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip-solid:hover { background: var(--blue); border-color: var(--blue); }
.chat-input { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 10px 10px; padding: 10px 14px; border-radius: 999px; background: #fff; color: #9AA8BC; font-size: .8rem; }
.chat-input .ic { color: var(--teal); }
.ai-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; justify-content: center; }
@media (max-width: 480px) { .chat { height: 520px; border-radius: 22px; } }

/* Engagement timeline */
.demo-eng { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(16px, 3vw, 26px); box-shadow: var(--sh-2); }
.eng-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; color: var(--navy); flex-wrap: wrap; }
.timeline { position: relative; display: grid; gap: 4px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 27px; top: 24px; bottom: 24px; width: 2px; background: var(--line); }
.tl-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 10px 8px; border: 0; border-radius: 14px; background: none; text-align: start; transition: background-color .2s; }
.tl-btn:hover { background: var(--sky); }
.tl-dot { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 1.5px solid var(--line-2); color: var(--muted); flex: none; transition: all .3s; }
.tl-body { flex: 1; display: grid; line-height: 1.4; min-width: 0; }
.tl-body small { font-size: .72rem; color: var(--teal-d); font-weight: 700; font-family: var(--font-en); }
html[lang="ar"] .tl-body small { font-family: var(--font-ar); }
.tl-body b { font-size: .92rem; color: var(--navy); }
.tl-body span { font-size: .8rem; color: var(--muted); }
.tl-state { font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--sky-2); color: var(--muted); flex: none; }
.tl-item.is-done .tl-dot { background: var(--teal); border-color: var(--teal); color: #fff; }
.tl-item.is-done .tl-state { background: var(--green-50); color: #0F6B41; }
.tl-item.is-next .tl-dot { border-color: var(--teal); color: var(--teal-d); box-shadow: 0 0 0 4px var(--teal-50); }
.tl-item.is-next .tl-state { background: var(--navy); color: #fff; }

/* ---------- Tour ---------- */
.tour { background: linear-gradient(180deg, #fff 0%, var(--sky) 100%); }
.tab-list { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.tab { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 10px 18px; font-weight: 600; font-size: .92rem; color: var(--muted); transition: all .2s; }
.tab:hover { color: var(--navy); border-color: var(--line-2); }
.tab.is-on { background: var(--navy); border-color: var(--navy); color: #fff; box-shadow: 0 10px 22px -12px rgba(16, 34, 79, .7); }
.tab-panels { max-width: 1040px; margin-inline: auto; }
.tab-panel { padding: clamp(16px, 3vw, 28px); animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tp-cap { color: var(--muted); font-size: .92rem; margin: 18px 0 0; }
.tp-h .ic { color: var(--teal); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.tp-table { width: 100%; border-collapse: collapse; font-size: .86rem; min-width: 520px; }
.tp-table th { text-align: start; font-size: .74rem; color: var(--muted); font-weight: 600; background: #FBFCFE; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tp-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.tp-table tr:last-child td { border-bottom: 0; }
.tp-table td:first-child { font-weight: 600; color: var(--navy); white-space: nowrap; }
.tp-table td:first-child .av { margin-inline-end: 10px; vertical-align: middle; }
.tp-kpis { margin-bottom: 18px; }
.tp-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.bars { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.bars span { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; }
.bars i { width: 100%; max-width: 36px; height: var(--h); border-radius: 8px 8px 4px 4px; background: linear-gradient(180deg, var(--blue), var(--navy)); }
.bars span:nth-child(4) i { background: linear-gradient(180deg, var(--teal), var(--teal-d)); }
.bars small { font-size: .7rem; color: var(--muted); }
.tp-split { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.mini-phone { width: 250px; height: 500px; }
.mp-hello { font-weight: 700; color: var(--navy); margin: 0; font-size: .95rem; }
.mp-next { background: var(--navy); color: #fff; border-radius: 14px; padding: 10px 12px; display: grid; }
.mp-next small { color: #9FD8DC; font-size: .7rem; } .mp-next b { font-size: .84rem; }
.mp-h { font-size: .76rem; color: var(--muted); font-weight: 600; margin: 4px 0 0; }
.mp-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.mp-tiles span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px 4px; display: grid; justify-items: center; gap: 2px; }
.mp-tiles .ic { color: var(--teal); }
.mp-tiles b { font-family: var(--font-en); font-size: .82rem; color: var(--navy); }
.mp-btn { border: 0; border-radius: 12px; background: linear-gradient(140deg, var(--blue), var(--teal)); color: #fff; font-weight: 600; font-size: .84rem; padding: 10px; display: flex; gap: 8px; justify-content: center; align-items: center; }
.mp-msg { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font-size: .78rem; }
.mp-msg small { color: var(--teal-d); font-weight: 700; font-size: .7rem; } .mp-msg p { margin: 2px 0 0; }
.tp-cap-side { font-size: 1.05rem; max-width: 30em; }
.tp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.tp-cards figure { margin: 0; }
.tp-cards img { border-radius: 16px; box-shadow: var(--sh-2); width: 100%; }
.tp-cards figcaption { text-align: center; font-size: .82rem; color: var(--muted); margin-top: 10px; }
.inbox { display: grid; gap: 8px; }
.inbox li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
.inbox li > div { flex: 1; min-width: 0; }
.inbox b { font-size: .86rem; color: var(--navy); }
.inbox p { margin: 0; font-size: .82rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) {
  .tab-list { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tab-list::-webkit-scrollbar { display: none; }
  .tab { flex: none; padding: 9px 14px; font-size: .86rem; }
  .tp-grid, .tp-split, .tp-cards { grid-template-columns: 1fr; }
  .mini-phone { margin-inline: auto; width: 230px; height: 470px; }
}

/* ---------- How it works ---------- */
.how { overflow: hidden; }
.how::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 50% at 50% 0%, rgba(32, 160, 167, .18), transparent 70%); pointer-events: none; }
.how-steps { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.how-line { position: absolute; top: 34px; inset-inline: 8%; height: 2px; background: rgba(255, 255, 255, .12); }
.how-line i { position: absolute; inset-block: 0; inset-inline-start: 0; width: 0; background: linear-gradient(90deg, var(--teal), #7FD6DB); transition: width 2.4s var(--ease); }
[dir="rtl"] .how-line i { background: linear-gradient(270deg, var(--teal), #7FD6DB); }
.how-steps.is-in .how-line i { width: 100%; }
.how-step { position: relative; text-align: center; opacity: .35; transform: translateY(10px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.how-step.is-in { opacity: 1; transform: none; }
.how-ic { position: relative; width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; background: #172E66; border: 1px solid rgba(255, 255, 255, .14); color: #7FD6DB; }
.how-step.is-in .how-ic { background: linear-gradient(140deg, var(--blue), var(--teal)); color: #fff; border-color: transparent; box-shadow: 0 18px 30px -14px rgba(32, 160, 167, .7); }
.how-ic .ic { width: 28px; height: 28px; }
.how-ic em { position: absolute; top: -8px; inset-inline-end: -8px; width: 24px; height: 24px; border-radius: 50%; background: #fff; color: var(--navy); font-style: normal; font-weight: 700; font-size: .78rem; display: grid; place-items: center; font-family: var(--font-en); }
.how-step h3 { font-size: 1rem; margin-bottom: 6px; }
.how-step p { font-size: .88rem; color: #B9C8DF; margin: 0; line-height: 1.6; }
.how-note { display: flex; gap: 10px; align-items: center; justify-content: center; margin: 44px auto 0; max-width: 760px; text-align: center; color: #B9C8DF; font-size: .92rem; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .12); border-radius: 14px; padding: 12px 16px; }
.how-note .ic { color: #7FD6DB; }
@media (max-width: 980px) {
  .how-steps { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin-inline: auto; }
  .how-line { top: 20px; bottom: 20px; inset-inline-start: 34px; inset-inline-end: auto; width: 2px; height: auto; }
  .how-line i { width: 100% !important; height: 0; transition: height 2.4s var(--ease); background: linear-gradient(180deg, var(--teal), #7FD6DB) !important; }
  .how-steps.is-in .how-line i { height: 100%; }
  .how-step { display: grid; grid-template-columns: 70px 1fr; column-gap: 18px; text-align: start; padding-bottom: 22px; }
  .how-ic { grid-row: span 2; margin: 0; }
  .how-step h3 { align-self: end; }
}

/* ---------- For centers ---------- */
.benefits { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 40px; }
.benefit { padding: 22px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: #fff; }
.benefit h3 { font-size: 1.02rem; margin-bottom: 8px; }
.benefit p { font-size: .9rem; color: var(--muted); margin: 0; }
.b-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--teal-50); color: var(--teal-d); margin-bottom: 14px; flex: none; }
.b-ic .ic { width: 22px; height: 22px; }
.wl { display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; background: linear-gradient(140deg, var(--navy) 0%, #15306A 100%); color: #C9D6EA; border-radius: var(--r-xl); padding: clamp(24px, 4vw, 52px); position: relative; overflow: hidden; }
.wl::after { content: ""; position: absolute; width: 420px; height: 420px; inset-inline-end: -120px; top: -160px; background: url("../images/medra-mark-white.webp") center/contain no-repeat; opacity: .05; pointer-events: none; }
.wl-title { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.wl-demo { display: grid; justify-items: center; gap: 14px; position: relative; z-index: 1; }
.wl-try { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; margin: 0; }
.wl-swatches { display: flex; gap: 10px; }
.sw { width: 38px; height: 38px; border-radius: 50%; border: 3px solid transparent; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); transition: transform .2s; }
.sw:hover { transform: scale(1.08); }
.sw.is-on { border-color: #fff; }
.wl-phone { width: 236px; height: 430px; }
.wl-phone .phone-screen { gap: 12px; }
.wl-app-hd { display: flex; align-items: center; gap: 8px; color: var(--wla); }
.wl-app-hd b { font-size: .86rem; color: var(--ink); }
.wl-logo { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--wla); color: #fff; transition: background-color .4s; }
.wl-welcome { margin: 0; font-weight: 700; color: var(--ink); }
.wl-btn { border: 0; border-radius: 12px; background: var(--wla); color: #fff; font-weight: 600; padding: 11px; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background-color .4s; }
.wl-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wl-tiles span { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: .74rem; font-weight: 600; color: var(--ink); display: grid; gap: 4px; }
.wl-tiles .ic { color: var(--wlb); transition: color .4s; }
.wl-card { margin-top: auto; position: relative; aspect-ratio: 1.66; border-radius: 12px; background: var(--wla); color: #fff; padding: 10px 12px; display: flex; flex-direction: column; justify-content: space-between; transition: background-color .4s; box-shadow: 0 14px 24px -14px rgba(0, 0, 0, .6); overflow: hidden; }
.wl-card::after { content: ""; position: absolute; inset-inline-end: -30px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--wlb); opacity: .5; transition: background-color .4s; }
.wl-card-logo { display: flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; }
.wl-card-nfc { position: absolute; top: 10px; inset-inline-end: 12px; }
.wl-card small { font-size: .6rem; letter-spacing: .12em; opacity: .8; font-family: var(--font-en); position: relative; z-index: 1; }
@media (max-width: 1100px) { .benefits { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) { .wl { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .benefits { grid-template-columns: 1fr; gap: 10px; } .benefit { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; padding: 16px; } .benefit .b-ic { grid-row: span 2; margin: 0; } .benefit h3 { margin-bottom: 2px; } }

/* ---------- Use cases ---------- */
.uc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.uc { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px); display: grid; gap: 16px; align-content: start; }
.uc-hd { display: flex; gap: 14px; align-items: center; }
.uc-hd .b-ic { margin: 0; }
.uc-hd h3 { font-size: 1.15rem; margin: 0; }
.uc-hd p { margin: 0; font-size: .88rem; color: var(--muted); }
.uc-dl { margin: 0; display: grid; gap: 12px; }
.uc-dl dt { display: flex; gap: 8px; align-items: center; font-size: .8rem; font-weight: 700; color: var(--navy); margin-bottom: 2px; }
.uc-dl > div:nth-child(1) dt .ic { color: var(--red); }
.uc-dl > div:nth-child(2) dt .ic { color: var(--green); }
.uc-dl > div:nth-child(3) dt .ic { color: var(--blue); }
.uc-dl dd { margin: 0; font-size: .93rem; color: var(--ink); }
.uc-cap { font-weight: 600; color: var(--teal-d) !important; }
.uc .btn { justify-self: start; }
@media (max-width: 860px) { .uc-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: clamp(24px, 5vw, 72px); align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-2); box-shadow: var(--sh-2); }
.faq-item summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary h3 { margin: 0; font-size: 1.02rem; font-weight: 600; }
.faq-ic { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--sky); color: var(--navy); transition: transform .3s var(--ease), background-color .2s; }
.faq-item[open] .faq-ic { transform: rotate(45deg); background: var(--navy); color: #fff; }
.faq-a { padding: 0 20px 18px; color: var(--muted); }
.faq-a p { margin: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } .faq-grid .section-head { position: static; } }

/* ---------- Contact / form ---------- */
.contact { background: var(--navy); color: #C9D6EA; overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 60% at 0% 100%, rgba(32, 160, 167, .25), transparent 70%), radial-gradient(40% 50% at 100% 0%, rgba(36, 84, 152, .5), transparent 70%); pointer-events: none; }
.contact h1, .contact h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
.contact .section-lead { color: #B9C8DF; margin-bottom: 22px; }
.contact-grid { position: relative; display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.contact-alt { margin-top: 26px; display: grid; gap: 10px; justify-items: start; }
.contact-alt p { margin: 0; color: #fff; font-weight: 600; }
.contact-card { width: 280px; border-radius: 14px; margin-top: 40px; transform: rotate(-6deg); box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .6); opacity: .95; }
[dir="rtl"] .contact-card { transform: rotate(6deg); }
.form-card { background: #fff; color: var(--ink); border-radius: var(--r-xl); padding: clamp(20px, 3.5vw, 36px); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .55); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { display: grid; gap: 6px; align-content: start; }
.field-full { grid-column: 1 / -1; }
.field label { font-size: .88rem; font-weight: 600; color: var(--navy); }
.req { color: var(--red); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; border: 1.5px solid var(--line-2); border-radius: 12px; background: #FBFCFE; padding: 11px 14px; font-size: 1rem; transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #9AA8BC; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 4px var(--teal-50); }
.field [aria-invalid="true"] { border-color: var(--red); background: #FFFBFB; }
.select-wrap { position: relative; }
.select-wrap::after { content: ""; position: absolute; inset-inline-end: 16px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.field select { appearance: none; -webkit-appearance: none; padding-inline-end: 40px; }
input[type="tel"], input[type="email"] { text-align: start; }
[dir="rtl"] input[type="tel"], [dir="rtl"] input[type="email"] { text-align: right; }
.field-error { margin: 0; font-size: .82rem; color: var(--red); font-weight: 500; }
.field-hint { display: flex; gap: 6px; align-items: center; margin: 2px 0 0; font-size: .8rem; color: var(--muted); }
.field-hint .ic { color: var(--teal); width: 16px; height: 16px; }
.field-check { margin: 16px 0 18px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: .88rem; color: var(--ink); cursor: pointer; line-height: 1.6; }
.check input { width: 20px; height: 20px; margin-top: .2em; accent-color: var(--navy); flex: none; }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); opacity: 0; pointer-events: none; }
.form-alert { display: flex; gap: 10px; align-items: flex-start; background: var(--red-50); color: #8E1F1F; border: 1px solid #F5C6C6; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .9rem; }
.form-alert .ic { margin-top: .2em; }
.lead-form .btn-lg { margin-top: 2px; }
.btn .spinner { width: 18px; height: 18px; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-success { text-align: center; padding: 20px 6px; display: grid; justify-items: center; gap: 6px; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: 1.4rem; margin: 6px 0 0; }
.form-success p { color: var(--muted); max-width: 30em; }
.success-ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: var(--green-50); color: var(--green); animation: pop .5s var(--ease); }
.success-ic .ic { width: 38px; height: 38px; }
.success-ic.big { width: 96px; height: 96px; margin: 0 auto 18px; }
.success-ic.big .ic { width: 50px; height: 50px; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .contact-card { display: none; } }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } .form-card { border-radius: 22px; } }

/* ---------- Service pages ---------- */
.svc-hero { position: relative; padding-block: 28px clamp(48px, 6vw, 80px); overflow: hidden; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .84rem; color: var(--muted); margin-bottom: 26px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }
.svc-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.svc-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.svc-problem { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--sh-2); }
.svc-problem h2 { font-size: 1.15rem; }
.x-list { display: grid; gap: 12px; }
.x-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.x-list .ic { color: var(--red); margin-top: .25em; }
.steps-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.steps-row li { position: relative; padding: 22px; border-radius: var(--r-lg); background: var(--sky); border: 1px solid var(--line); }
.step-n { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: #fff; font-weight: 700; font-family: var(--font-en); margin-bottom: 12px; }
.steps-row p { margin: 0; font-size: .95rem; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.feat-grid li { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; }
.feat-grid h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feat-grid p { margin: 0; color: var(--muted); font-size: .92rem; }
.svc-demo-stage { max-width: 980px; margin-inline: auto; }
.svc-demo-stage .demo-toggle { display: none !important; }
.who { display: grid; grid-template-columns: .6fr 1.4fr; gap: 24px; align-items: center; }
.who h2 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.who-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.who-list li { display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-weight: 600; color: var(--navy); }
.who-list .ic { color: var(--teal); }
.related-h { font-size: 1.3rem; }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.related-list a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-weight: 600; transition: border-color .2s, transform .2s; }
.related-list a:hover { border-color: var(--line-2); transform: translateY(-2px); }
.related-list a .ic-dir { margin-inline-start: auto; color: var(--blue); }
@media (max-width: 960px) { .svc-hero-grid, .who { grid-template-columns: 1fr; } .steps-row { grid-template-columns: repeat(2, 1fr); } .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps-row, .feat-grid, .who-list { grid-template-columns: 1fr; } }

/* Doc & centered pages */
.page-doc h1 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.page-doc h2 { font-size: 1.25rem; margin-top: 1.6em; }
.page-center { min-height: 60vh; display: grid; align-items: center; }
.big-404 { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; line-height: 1; margin: 0 0 8px; background: linear-gradient(140deg, var(--navy), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; font-family: var(--font-en); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-2); color: #A9B9D3; padding-block: 64px calc(28px + env(safe-area-inset-bottom)); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-brand img { height: 38px; width: auto; margin-bottom: 14px; }
.footer-tagline { color: #fff; font-weight: 600; margin-bottom: 8px; }
.footer-about { max-width: 30em; }
.footer-markets { display: flex; gap: 8px; align-items: center; font-size: .84rem; color: #7FD6DB; }
.footer-h { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer-links { display: grid; gap: 8px; }
.footer-links a { color: #A9B9D3; text-decoration: none; }
.footer-links a:hover { color: #fff; text-decoration: underline; }
.site-footer .btn { margin-bottom: 10px; }
.footer-mail { display: flex; gap: 8px; align-items: center; }
.footer-mail a { color: #A9B9D3; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
.footer-bottom p { margin: 0; }
.footer-disclaimer { display: flex; gap: 8px; align-items: flex-start; max-width: 640px; color: #8295B5; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp & mobile bar ---------- */
.wa-float { position: fixed; z-index: 55; bottom: calc(22px + env(safe-area-inset-bottom)); inset-inline-end: 22px; display: inline-flex; align-items: center; gap: 8px; height: 56px; padding-inline: 16px 18px; border-radius: 999px; background: var(--wa-float); color: #fff; text-decoration: none; font-weight: 700; box-shadow: 0 16px 32px -12px rgba(21, 128, 61, .7); transition: transform .2s var(--ease), box-shadow .2s; }
.wa-float:hover { color: #fff; transform: translateY(-2px) scale(1.02); }
.wa-float .ic { width: 26px; height: 26px; }
.mobile-bar { display: none; }
@media (max-width: 720px) {
  .wa-float { display: none; }
  .mobile-bar { position: fixed; z-index: 55; inset-inline: 0; bottom: 0; display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); transform: translateY(110%); transition: transform .3s var(--ease); }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar .btn { min-height: 48px; padding-inline: 10px; }
  body { padding-bottom: 76px; }
  .nav-open .mobile-bar { transform: translateY(110%); }
}

/* ---------- Consent ---------- */
.consent { position: fixed; z-index: 90; inset-inline: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); max-width: 560px; margin-inline-start: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-3); padding: 18px 20px; animation: chipIn .4s var(--ease); }
[dir="rtl"] .consent { margin-inline-start: auto; }
.consent h2 { display: flex; gap: 8px; align-items: center; font-size: 1rem; margin-bottom: 6px; }
.consent h2 .ic { color: var(--teal); }
.consent p { font-size: .86rem; color: var(--muted); margin-bottom: 12px; }
.consent-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.consent-prefs { display: grid; gap: 10px; margin-bottom: 14px; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: .86rem; }
.switch-row input { width: 18px; height: 18px; margin-top: .25em; accent-color: var(--navy); }
.switch-row span { display: grid; }
.switch-row small { color: var(--muted); font-size: .78rem; }
@media (max-width: 720px) { .consent { bottom: calc(84px + env(safe-area-inset-bottom)); inset-inline: 10px; padding: 16px; } .consent-actions .btn { flex: 1 1 auto; } }


/* Device photos (drop-in) */
img.device-photo { object-fit: contain; background: #fff; }
.chip-dev.device-photo { padding: 3px; }

/* ---------- Booking assistant (chat) ---------- */
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 18px; }
.hero-links .hero-wa { margin-top: 0; }
.hero-chat { display: inline-flex; align-items: center; gap: 8px; background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; }
.hero-chat:hover { color: var(--navy); text-decoration: underline; }
.contact-alt-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.mchat { position: fixed; z-index: 56; inset-inline-start: 22px; bottom: calc(22px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.mchat-launcher { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding-inline: 8px 18px; border: 0; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 700; box-shadow: 0 16px 32px -12px rgba(16, 34, 79, .7); transition: transform .2s var(--ease); }
.mchat-launcher:hover { transform: translateY(-2px); }
.mchat-launcher-ic { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(140deg, var(--blue), var(--teal)); }
.mchat-launcher-ic img { width: 19px; }
.mchat.is-open .mchat-launcher { display: none; }
.mchat-teaser { max-width: 260px; text-align: start; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 16px; border-end-start-radius: 4px; padding: 10px 14px; font-size: .88rem; line-height: 1.5; box-shadow: var(--sh-2); animation: chipIn .4s var(--ease); cursor: pointer; }
.mchat-panel { width: min(390px, calc(100vw - 32px)); height: min(620px, calc(100vh - 120px)); display: flex; flex-direction: column; background: #EEF3F9; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-3); overflow: hidden; animation: chipIn .3s var(--ease); }
.mchat-hd { display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 14px; background: var(--navy); color: #fff; }
.mchat-hd > div { flex: 1; display: grid; line-height: 1.3; min-width: 0; }
.mchat-hd b { font-size: .95rem; }
.mchat-hd small { font-size: .72rem; color: #9FD8DC; display: flex; align-items: center; gap: 6px; }
.mchat-icon { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .08); color: #fff; }
.mchat-icon:hover { background: rgba(255, 255, 255, .18); }
.mchat-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; }
.mchat-log .msg-a { align-self: flex-start; background: #fff; color: var(--ink); border-start-start-radius: 6px; border-start-end-radius: 16px; }
.mchat-log .msg-p { align-self: flex-end; background: var(--navy); color: #fff; border-start-end-radius: 6px; border-start-start-radius: 16px; }
.mchat-log .msg-card { align-self: stretch; width: auto; }
.mchat-log .typing { align-self: flex-start; background: #fff; }
.mchat-consent { font-size: .72rem; color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.mchat-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 12px 8px; max-height: 40%; overflow-y: auto; }
.mchat-chips a.chip { text-decoration: none; border-color: var(--wa); color: var(--wa); }
.mchat-chips a.chip:hover { background: var(--wa); color: #fff; }
.mchat-input { display: flex; gap: 8px; margin: 0 10px 6px; padding: 6px 6px 6px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); }
[dir="rtl"] .mchat-input { padding: 6px 14px 6px 6px; }
.mchat-input:focus-within { border-color: var(--teal); }
.mchat-input input { flex: 1; min-width: 0; border: 0; outline: none; background: none; font-size: 1rem; }
.mchat-input input:disabled { opacity: .5; }
.mchat-send { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; flex: none; }
.mchat-send:disabled { background: var(--line-2); }
[dir="rtl"] .ic-send { transform: scaleX(-1); }
.mchat-note { display: flex; gap: 6px; align-items: center; justify-content: center; font-size: .68rem; color: var(--muted); margin: 0 10px 10px; text-align: center; }
.mchat-note .ic { width: 13px; height: 13px; color: var(--teal); }
@media (max-width: 720px) {
  .mchat { inset-inline-start: 12px; bottom: calc(86px + env(safe-area-inset-bottom)); }
  .mchat-launcher { height: 52px; padding: 6px; }
  .mchat-launcher-t { display: none; }
  .mchat.is-open { inset: 0; bottom: 0; z-index: 95; }
  .mchat-panel { width: 100%; height: 100%; height: 100dvh; border-radius: 0; border: 0; }
  .mchat-teaser { max-width: 220px; font-size: .82rem; }
  .nav-open .mchat { display: none; }
}
@media print { .mchat { display: none !important; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .spark .line { stroke-dashoffset: 0; }
  .spark .pt-alert { opacity: 1; }
}

/* ---------- Print ---------- */
@media print {
  .site-header, .wa-float, .mobile-bar, .consent, .demo, .site-footer .btn { display: none !important; }
  .section { padding-block: 24px; }
}
