/* Aafia EMR: shared styles (tokens, type, buttons, header, footer, forms, FAQ, motion).
   Page-specific rules live in /css/pages/<page>.css.
   Uses logical properties (inline-start/end) so dir="rtl" mirrors without overrides. */

:root {
  --red: #E0142C;
  --red-hover: #C8102A;
  --red-dark: #9D0E21;
  --red-deep: #8F0B1E;
  --red-tint: #FDEBED;
  --red-light: #FF8A97;
  --navy: #2C384C;
  --navy-deep: #18212F;
  --ink: #1A2433;
  --slate: #4F5B6C;
  --slate-2: #5D6879;
  --slate-3: #6A7587;
  --line: #E2E6EC;
  --line-2: #D5DBE3;
  --ground: #F6F7F9;
  --mist: #EDF0F4;
  --on-dark: #B6C1D1;
  --on-dark-2: #C9D2DE;
  --ok: #0B6B43;
  --ok-bg: #DDF3E8;
  --focus: #F2A33A;
  --shadow-float: 0 40px 70px -40px rgba(26, 36, 51, .7);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', 'Plus Jakarta Sans', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* 1 in LTR, -1 in RTL: flips directional arrows and nudges */
  --dir: 1;
}
[dir="rtl"] { --dir: -1; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
html[lang="ar"] body { font-family: var(--font-ar); }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
img { height: auto; }
a { color: var(--red-hover); }
a:hover { color: var(--red-deep); }
h1, h2, h3, h4 { margin: 0; }
p { margin: 0; }
button, input, select, textarea { font: inherit; }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.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 {
  position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: 12px 16px; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- Layout ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sec { padding: 96px 0; }
.sec-white { background: #fff; }
.sec-mist { background: var(--mist); }
.sec-dark { background: var(--navy-deep); color: var(--on-dark); }
/* Centred section heading (eyebrow + h2 + lead) */
.sec-head { display: flex; flex-direction: column; align-items: center; text-align: center; }
.sec-head-split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
@media (max-width: 900px) { .sec { padding: 72px 0; } }
@media (max-width: 480px) { .wrap { padding: 0 16px; } }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--red-hover);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }
.h1 {
  font-weight: 800; font-size: 64px; line-height: 1.02; letter-spacing: -0.04em;
  margin: 0 0 22px; color: var(--ink);
}
.h2 {
  font-weight: 800; font-size: 42px; line-height: 1.07; letter-spacing: -0.03em;
  margin: 0 0 16px; color: var(--ink);
}
html[lang="ar"] .h1, html[lang="ar"] .h2 { letter-spacing: 0; line-height: 1.25; }
.lead { font-size: 18px; line-height: 1.65; color: var(--slate); margin: 0; max-width: 600px; }
.red { color: var(--red); }
/* Even line lengths, so headings and intros never leave one word on its own line */
.h1, .h2, h3 { text-wrap: balance; }
.lead { text-wrap: pretty; }
.tag { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--slate-3); }
.on-dark .eyebrow { color: var(--red-light); }
.on-dark .h1, .on-dark .h2 { color: #fff; }
.on-dark .lead { color: var(--on-dark); }
@media (max-width: 900px) {
  .h1 { font-size: 42px; }
  .h2 { font-size: 32px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 12px; border: 0; cursor: pointer;
  font-family: inherit; font-weight: 700; font-size: 16px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s, border-color .2s;
}
.btn svg { transition: transform .2s ease; }
.btn .arr { transform: scaleX(var(--dir)); }
.btn:hover .arr { transform: scaleX(var(--dir)) translateX(3px); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 15px; }
.btn-xs { min-height: 44px; font-size: 14px; padding: 0 14px; box-shadow: none; }
.btn-p { background: var(--red); color: #fff; box-shadow: 0 10px 24px -10px rgba(224, 20, 44, .7); }
.btn-p:hover { background: var(--red-hover); color: #fff; transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(224, 20, 44, .75); }
.btn-g { background: #fff; color: var(--ink); border: 1px solid var(--line-2); }
.btn-g:hover { color: var(--ink); border-color: var(--navy); transform: translateY(-2px); }
.btn-n { background: var(--navy); color: #fff; }
.btn-n:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn-w { background: #fff; color: var(--ink); }
.btn-w:hover { background: #F1F3F6; color: var(--ink); transform: translateY(-2px); }
.btn-o { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.btn-o:hover { background: rgba(255, 255, 255, .08); color: #fff; transform: translateY(-2px); }
.btn[disabled], .btn[aria-busy="true"] { opacity: .65; cursor: progress; transform: none; }

/* Inline "Learn more →" style link */
.more { font-size: 14px; font-weight: 700; color: var(--red-hover); display: inline-flex; gap: 6px; align-items: center; text-decoration: none; }
.more svg { transition: transform .2s; transform: scaleX(var(--dir)); }
.more:hover svg, a:hover > .more svg { transform: scaleX(var(--dir)) translateX(4px); }

/* ---------- Small components ---------- */
.card { background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.badge.ok { background: var(--ok-bg); color: var(--ok); }
.badge.warn { background: #FDEBCF; color: #7A4700; }
.badge.info { background: #E2EAF7; color: #1F4687; }
.badge.muted { background: var(--mist); color: #45515F; }
.badge.alert { background: var(--red-tint); color: var(--red-dark); }
.ic {
  width: 44px; height: 44px; border-radius: 12px; background: var(--red-tint); color: var(--red);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: all .3s ease;
}
.seg { display: inline-flex; background: var(--mist); border-radius: 999px; padding: 3px; }
.segb {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent;
  color: var(--navy); font-weight: 700; font-size: 14px; cursor: pointer; transition: all .2s;
}
.segb[aria-pressed="true"], .segb.on { background: var(--navy); color: #fff; }

/* ---------- Forms ---------- */
.lbl { display: flex; flex-direction: column; gap: 7px; font-size: 14px; font-weight: 700; color: var(--navy); }
.lbl .opt-note { font-weight: 500; color: var(--slate-3); }
.inp {
  width: 100%; min-height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2);
  background: #fff; font-size: 16px; font-weight: 500; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.inp:hover { border-color: #AEB8C6; }
.inp:focus { outline: 0; border-color: var(--navy); box-shadow: 0 0 0 4px rgba(44, 56, 76, .12); }
.inp.err, .inp[aria-invalid="true"] { border-color: var(--red); box-shadow: 0 0 0 4px rgba(224, 20, 44, .1); }
textarea.inp { padding: 12px 14px; min-height: 96px; resize: vertical; }
select.inp {
  appearance: none; -webkit-appearance: none; padding-inline-end: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232C384C' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}
[dir="rtl"] select.inp { background-position: left 14px center; }
.emsg { font-size: 13px; font-weight: 600; color: #B30F23; display: flex; gap: 6px; align-items: center; }
.emsg:empty { display: none; }
/* Two fields side by side, stacking on narrow screens */
.c-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
/* Spam trap field, kept off-screen */
.hp { position: absolute; inset-inline-start: -9999px; }
input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--red); flex-shrink: 0; margin: 0; }
input[type=range] { accent-color: var(--red); }

/* ---------- FAQ accordion ---------- */
.faq { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; min-height: 44px; background: none; border: 0; cursor: pointer;
  font-weight: 700; font-size: 18px; color: var(--ink); text-align: start;
}
.faq-q:hover { color: var(--red-hover); }
.faq-chip {
  width: 34px; height: 34px; border-radius: 50%; background: var(--mist); color: var(--navy);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: background .3s, color .3s;
}
.faq-q[aria-expanded="true"] .faq-chip { background: var(--red); color: #fff; }
.chev { transition: transform .3s ease; flex-shrink: 0; }
.chev.open, [aria-expanded="true"] > .chev, [aria-expanded="true"] .faq-chip .chev { transform: rotate(180deg); }
.acc { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s ease; }
.acc.open { grid-template-rows: 1fr; }
.acc > div { overflow: hidden; }
.faq-a { margin: 0 0 22px; font-size: 16px; line-height: 1.7; color: var(--slate); max-width: 640px; }
.on-dark .faq { border-color: rgba(255, 255, 255, .12); }
.on-dark .faq-q { color: #fff; }
.on-dark .faq-a { color: var(--on-dark); }

/* ---------- Header ---------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: border-color .3s, box-shadow .3s, background .3s;
}
.hdr .bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 62px; transition: min-height .3s; }
.hdr .logo { height: 28px; width: auto; display: block; transition: height .3s; }
/* Home: taller, translucent header that shrinks once the page scrolls */
.hdr.tall { background: rgba(246, 247, 249, .82); border-color: transparent; }
.hdr.tall .bar { min-height: 76px; }
.hdr.tall .logo { height: 34px; }
.hdr.tall.small { background: rgba(255, 255, 255, .92); border-color: var(--line); box-shadow: 0 10px 30px -24px rgba(26, 36, 51, .5); }
.hdr.tall.small .bar { min-height: 62px; }
.hdr.tall.small .logo { height: 28px; }
.hdr-l, .hdr-r { display: flex; align-items: center; }
.hdr-l { gap: 28px; }
.hdr-r { gap: 6px; }
.nav { display: flex; align-items: center; gap: 2px; }
.navlink {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 12px;
  border-radius: 10px; border: 0; background: none; cursor: pointer;
  color: var(--navy); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.navlink:hover { background: var(--mist); color: var(--red-hover); }
.navlink[aria-current="page"] { color: var(--red-hover); }
.navlink[lang="ar"] { font-family: var(--font-ar); }
.navlink[lang="en"] { font-family: var(--font); }
.burger { display: none; }

.mega-wrap { position: absolute; inset-inline: 0; top: 100%; padding: 0 24px; }
.mega-wrap[hidden] { display: none; }
.mega {
  max-width: 1152px; margin: 8px auto 0; padding: 24px; display: flex; flex-wrap: wrap; gap: 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 40px 70px -36px rgba(26, 36, 51, .55);
  animation: hin .35s var(--ease) both;
}
.mega-cols { flex: 3 1 640px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.mega-col { display: flex; flex-direction: column; gap: 2px; }
.mega-col .tag { padding: 0 10px; margin: 0 0 6px; }
.mega-col-wide { grid-column: 1 / -1; }
.mega-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px 16px; }
.navlink.cur, .mega-item[aria-current="page"] b { color: var(--red-hover); }
.mega-item { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border-radius: 12px; text-decoration: none; color: var(--ink); transition: background .2s; }
.mega-item:hover { background: var(--ground); color: var(--ink); }
.mega-item .ic { width: 36px; height: 36px; }
.mega-item:hover .ic { background: var(--red); color: #fff; }
.mega-item b { display: block; font-size: 15px; }
.mega-item span.s { display: block; font-size: 13px; color: var(--slate-2); line-height: 1.4; }
.mega-promo {
  flex: 1 1 240px; background: var(--navy); border-radius: 16px; padding: 22px; color: #fff;
  display: flex; flex-direction: column; gap: 10px; text-decoration: none;
}
.mega-promo:hover { color: #fff; background: #253043; }
.mega-promo img { width: 44px; height: 44px; }
.mega-promo b { font-size: 18px; color: #fff; }
.mega-promo span { font-size: 14px; line-height: 1.5; color: var(--on-dark-2); }
.mega-promo .go { margin-top: auto; font-weight: 700; color: var(--red-light); }

.mob { border-top: 1px solid var(--line); background: #fff; padding: 12px 24px 20px; display: flex; flex-direction: column; animation: hin .3s var(--ease) both; }
.mob[hidden] { display: none; }
.mob .navlink { justify-content: flex-start; }
.mob hr { border: 0; border-top: 1px solid var(--line); margin: 8px 0; width: 100%; }
/* Long once a group is open: scroll inside the panel rather than past the header */
.mob { max-height: calc(100vh - 72px); max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }
.mob-grp > summary { list-style: none; justify-content: space-between; width: 100%; }
.mob-grp > summary::-webkit-details-marker { display: none; }
.mob-grp > summary .chev { transition: transform .2s var(--ease); }
.mob-grp[open] > summary .chev { transform: rotate(180deg); }
.mob-sub { display: flex; flex-direction: column; padding: 2px 0 10px; padding-inline-start: 12px; }
.mob-sub .tag { padding: 0 10px; margin: 10px 0 4px; }
.mob-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 15px; }
.mob-item:hover { background: var(--ground); color: var(--ink); }
.mob-item .ic { width: 30px; height: 30px; flex: none; }
.mob-item[aria-current="page"], .mob-all[aria-current="page"] { color: var(--red-hover); }
.mob-all { display: flex; align-items: center; min-height: 44px; padding: 6px 10px; margin-top: 4px; font-weight: 700; font-size: 15px; text-decoration: none; }

@media (max-width: 1080px) {
  .hdr-l { gap: 12px; }
  .navlink { padding: 10px 8px; font-size: 14px; }
}
@media (max-width: 900px) {
  .desk { display: none !important; }
  .burger { display: inline-flex; }
}

/* ---------- Footer ---------- */
.foot { background: var(--navy-deep); color: var(--on-dark); padding: 72px 0 32px; }
.foot .wrap { display: flex; flex-direction: column; gap: 44px; }
.foot-top { display: flex; flex-wrap: wrap; gap: 44px; justify-content: space-between; }
.foot-brand { flex: 1 1 280px; max-width: 360px; display: flex; flex-direction: column; gap: 16px; font-size: 15px; line-height: 1.65; }
.foot-brand img { height: 40px; width: auto; align-self: flex-start; }
.foot-col { display: flex; flex-direction: column; gap: 12px; min-width: 150px; }
.foot-col b { color: #fff; font-size: 15px; }
.foot a { color: var(--on-dark); text-decoration: none; font-size: 15px; }
.foot a:hover { color: #fff; }
.foot-bot {
  border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 14px;
}
.foot-bot span { display: flex; gap: 18px; }

/* Focused pages (ViewData["Focused"], sign-up): short header and a one-line footer */
.hdr-focus .bar { min-height: 64px; }
.hdr-note { font-size: 14px; color: var(--slate-2); margin-inline-end: 4px; }
.navlink.red { color: var(--red-hover); }
.foot-focus { border-top: 1px solid var(--line); background: #fff; padding: 20px 0; }
.foot-focus .wrap { display: flex; flex-wrap: wrap; gap: 10px 20px; justify-content: space-between; font-size: 13px; color: var(--slate-3); }
.foot-focus span { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-focus a { color: var(--slate-2); text-decoration: none; }
.foot-focus a:hover { color: var(--red-hover); }


/* ---------- Crossfade stack: children overlap, .on is visible ---------- */
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.stack > .on { opacity: 1; visibility: visible; transform: none; transition: opacity .5s ease .05s, transform .5s ease .05s, visibility 0s; }

/* ---------- Pill toggles ---------- */
.pills { display: inline-flex; background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: 4px; gap: 4px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; background: #fff; color: var(--navy); font-weight: 700; font-size: 15px; cursor: pointer; transition: all .25s; }
.pill:hover { background: var(--mist); }
.pill[aria-selected="true"], .pill[aria-pressed="true"] { background: var(--navy); color: #fff; }
.pill[lang="ar"] { font-family: var(--font-ar); }
.pill[lang="en"] { font-family: var(--font); }
.pills .badge { margin-inline-start: 2px; }

/* ---------- Plan cards (Pages/Shared/_PlanCards.cshtml) ---------- */
.billing { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.plans { width: 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; position: relative; }
.plan-pop { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 40px 70px -40px rgba(26, 36, 51, .8); }
.plan-flag { position: absolute; top: -14px; inset-inline-start: 32px; background: var(--red); color: #fff; padding: 6px 14px; }
.plan-name { font-size: 22px; letter-spacing: -0.02em; }
.plan-desc { font-size: 15px; line-height: 1.55; opacity: .85; min-height: calc(3 * 1.55em); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-size: 54px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.plan-price .per { font-size: 15px; opacity: .8; }
/* Swap (not crossfade) so the box fits the visible price: "$99" vs "$74.25" */
.plan-price .stack > :not(.on) { display: none; }
.plan-note { font-size: 13px; opacity: .75; }
.plan ul { list-style: none; padding: 16px 0 0; margin: 0; display: flex; flex-direction: column; gap: 11px; font-size: 15px; border-top: 1px solid var(--line); }
.plan-pop ul { border-color: rgba(255, 255, 255, .15); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { flex-shrink: 0; margin-top: 2px; color: var(--red); }
.plan li.key { font-weight: 700; }
.plan-pop li svg { color: var(--red-light); }
.plan { transition: transform .3s ease, box-shadow .3s ease; }
.plans > .plan:hover { transform: translateY(-6px); }
.plans-note { font-size: 14px; color: var(--slate-2); text-align: center; margin-top: -12px; }
.plan-match { position: absolute; top: -14px; inset-inline-end: 32px; padding: 6px 14px; }
.plan.pick { box-shadow: 0 0 0 3px var(--red), 0 40px 70px -40px rgba(26, 36, 51, .8); }

/* ---------- Client logos + testimonials (Pages/Shared/_ClientLogos, _Testimonials: /about, /customers) ---------- */
/* Placeholder content (Development only): dashed outline so it can't be mistaken for real data */
.cu-ph { border: 1px dashed #C9D1DC !important; box-shadow: none !important; }

.cu-logos {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px;
}
.cu-logo {
  display: flex; align-items: center; justify-content: center; min-height: 110px; padding: 16px 20px;
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  color: #8A95A6; font-weight: 700; font-size: 15px; text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.cu-logo:hover { transform: translateY(-4px); box-shadow: 0 20px 34px -26px rgba(26, 36, 51, .55); }
.cu-logo img { width: auto; height: 78px; max-width: 100%; object-fit: contain; }
.cu-logo.cu-ph { background: transparent; }
@media (max-width: 480px) {
  .cu-logos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .cu-logo { min-height: 92px; padding: 12px; }
  .cu-logo img { height: 62px; }
}

.cu-quotes { position: relative; background: var(--red); color: #fff; padding: 96px 0; overflow: hidden; }
.cu-quotes-mark { position: absolute; inset-inline-end: -80px; bottom: -40px; width: 620px; opacity: .08; }
.cu-quotes .wrap { position: relative; display: flex; flex-direction: column; gap: 28px; max-width: 980px; }
.cu-quotes .eyebrow { color: #fff; margin: 0; }
.cu-quotes figure { margin: 0; display: flex; flex-direction: column; gap: 28px; }
.cu-quotes blockquote { margin: 0; font-size: 26px; line-height: 1.45; font-weight: 700; letter-spacing: -0.015em; color: #fff; }
html[lang="ar"] .cu-quotes blockquote { letter-spacing: 0; line-height: 1.65; }
.cu-quotes figcaption { display: flex; align-items: center; gap: 14px; }
.cu-quotes .ini {
  width: 52px; height: 52px; border-radius: 50%; background: #fff; color: var(--red);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex-shrink: 0;
}
.cu-quotes figcaption b { display: block; font-size: 18px; }
.cu-quotes figcaption span span { font-size: 15px; color: #FFD6DB; }
.qdots { display: flex; margin-inline-start: -12px; }
.qdot { width: 44px; height: 44px; border: 0; background: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.qdot span { width: 10px; height: 10px; border-radius: 999px; background: rgba(255, 255, 255, .35); transition: all .3s; }
.qdot[aria-selected="true"] span { width: 28px; background: #fff; }
@media (max-width: 760px) { .cu-quotes { padding: 72px 0; } .cu-quotes blockquote { font-size: 20px; } }

/* ---------- Motion ---------- */
.hin { animation: hin .8s var(--ease) both; }
@keyframes hin { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.rv { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in { opacity: 1; transform: none; }
.stg > * { opacity: 0; transform: translateY(30px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.stg.in > * { opacity: 1; transform: none; }
.stg.in > *:nth-child(2) { transition-delay: .07s; }
.stg.in > *:nth-child(3) { transition-delay: .14s; }
.stg.in > *:nth-child(4) { transition-delay: .21s; }
.stg.in > *:nth-child(5) { transition-delay: .28s; }
.stg.in > *:nth-child(6) { transition-delay: .35s; }
.stg.in > *:nth-child(7) { transition-delay: .42s; }
.stg.in > *:nth-child(8) { transition-delay: .49s; }
.stg.in > *:nth-child(9) { transition-delay: .56s; }
.stg.in > *:nth-child(10) { transition-delay: .63s; }
.stg.in > *:nth-child(11) { transition-delay: .7s; }
.stg.in > *:nth-child(12) { transition-delay: .77s; }

/* ECG heartbeat line: SVG path with pathLength="1" */
.ecg-run { stroke-dasharray: .09 1; animation: ecg 3.6s linear infinite; }
@keyframes ecg { from { stroke-dashoffset: .09; } to { stroke-dashoffset: -1; } }
.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.2s .9s ease forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.float { animation: float 6s ease-in-out infinite; }
.float2 { animation: float 7s 1.2s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.pulse { animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(224, 20, 44, .45); } 50% { box-shadow: 0 0 0 9px rgba(224, 20, 44, 0); } }
@keyframes ping { from { transform: scale(.5); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }

/* Shown when JS is off, printing, or motion is reduced */
.no-js .rv, .no-js .stg > * { opacity: 1; transform: none; }
@media print {
  .rv, .stg > * { opacity: 1 !important; transform: none !important; }
  .hdr, .foot { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .rv, .stg > * { opacity: 1 !important; transform: none !important; }
  .draw { stroke-dashoffset: 0; }
  .ecg-run { stroke-dasharray: none; }
}
