/* ==========================================================================
   X Way — Your Clinic's Growth Partner
   Light-first premium futuristic system with full dark mode + RTL (Arabic)
   ========================================================================== */

:root {
  --violet: #8C22BD;
  --violet-600: #7A1DA6;
  --violet-700: #6E1896;
  --plum: #392062;
  --ink: #1B0F33;

  --bg: #FFFFFF;
  --bg-alt: #F5F5F7;
  --bg-soft: #ECECF0;
  --surface: #FFFFFF;
  --surface-2: #FBF7FD;
  --border: #ECECF0;
  --border-strong: #E3CDF2;
  --heading: #1B0F33;
  --text: #383838;
  --muted: #5F5F66;
  --accent: #8C22BD;
  --accent-soft: #F6ECFC;
  --ring: #E3CDF2;
  --glass: rgba(255, 255, 255, 0.78);
  --nav: rgba(255, 255, 255, 0.82);
  --input: #FFFFFF;
  --input-border: #DCDCE3;
  --green: #15803D;
  --warn: #C2410C;
  --shadow: 0 30px 70px -40px rgba(57, 32, 98, 0.45);
  --hero-glow: radial-gradient(900px 520px at 78% 30%, #F4E6FB 0%, rgba(255,255,255,0) 70%);

  --font-head: "Lexend", system-ui, sans-serif;
  --font-brand: "Lexend Exa", "Lexend", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1280px;
  --pad: clamp(18px, 4vw, 32px);
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0B0814;
  --bg-alt: #110C1F;
  --bg-soft: #17112A;
  --surface: #17112A;
  --surface-2: #140F25;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(199, 139, 235, 0.4);
  --heading: #FFFFFF;
  --text: #D9D3E6;
  --muted: #A9A1BD;
  --accent: #C78BEB;
  --accent-soft: rgba(140, 34, 189, 0.2);
  --ring: rgba(199, 139, 235, 0.32);
  --glass: rgba(23, 17, 42, 0.82);
  --nav: rgba(11, 8, 20, 0.82);
  --input: #0B0814;
  --input-border: rgba(255, 255, 255, 0.16);
  --green: #4ADE80;
  --warn: #FB923C;
  --shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.8);
  --hero-glow: radial-gradient(900px 520px at 78% 30%, rgba(140,34,189,0.35) 0%, rgba(11,8,20,0) 70%);
  color-scheme: dark;
}

html[lang="ar"] {
  --font-head: "Readex Pro", "Lexend", system-ui, sans-serif;
  --font-brand: "Readex Pro", sans-serif;
  --font-body: "Readex Pro", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.4s, color 0.4s;
}
html[lang="ar"] body { font-size: 17px; line-height: 1.8; }
img, svg, video { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--pad); }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--violet); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* Theme-aware images */
.only-dark { display: none !important; }
[data-theme="dark"] .only-dark { display: block !important; }
[data-theme="dark"] .only-light { display: none !important; }

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--heading); margin: 0; letter-spacing: -0.02em; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3 { letter-spacing: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-brand); font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
html[lang="ar"] .eyebrow { letter-spacing: 0; font-size: 14px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-radius: 100px;
  background: var(--surface); border: 1px solid var(--ring);
  font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.12em; color: var(--accent);
}
html[lang="ar"] .pill { font-size: 13px; letter-spacing: 0; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(140,34,189,0.18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 9px rgba(140,34,189,0); } }

.h-display { font-size: clamp(44px, 6.4vw, 80px); font-weight: 600; line-height: 1.03; letter-spacing: -0.035em; }
.h-section { font-size: clamp(32px, 4vw, 50px); font-weight: 600; line-height: 1.1; }
.h-card { font-size: clamp(20px, 1.8vw, 24px); font-weight: 600; line-height: 1.25; }
html[lang="ar"] .h-display { line-height: 1.25; }
html[lang="ar"] .h-section { line-height: 1.35; }
.accent { color: var(--accent); }
.lead { font-size: clamp(17px, 1.4vw, 20px); color: var(--text); max-width: 600px; }
.muted { color: var(--muted); }

.section { padding-block: clamp(80px, 10vw, 130px); position: relative; }
.section--alt { background: var(--bg-alt); }
.section__head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--center { margin-inline: auto; text-align: center; }
.section__head .eyebrow { margin-bottom: 14px; }
.section__head p { margin: 16px 0 0; }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 24px; border-radius: 14px;
  font-family: var(--font-head); font-weight: 500; font-size: 15.5px; line-height: 1.2;
  border: 1px solid transparent; cursor: pointer; text-align: center;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.35s var(--ease); }
html[dir="rtl"] .btn .arrow { transform: scaleX(-1); }
.btn:hover .arrow { transform: translateX(4px); }
html[dir="rtl"] .btn:hover .arrow { transform: scaleX(-1) translateX(4px); }
.btn--primary { background: linear-gradient(135deg, var(--violet), var(--violet-700)); color: #fff; box-shadow: 0 14px 34px -14px rgba(140,34,189,0.8); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform 0.8s var(--ease);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -14px rgba(140,34,189,0.9); color: #fff; }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost { background: var(--surface); color: var(--heading); border-color: var(--border-strong); }
.btn--ghost:hover { border-color: var(--violet); color: var(--heading); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--ink); }
.btn--white:hover { color: var(--ink); transform: translateY(-2px); }
.btn--outline-light { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--outline-light:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,0.08); }
.btn--wa { background: #16A34A; color: #fff; }
.btn--wa:hover { background: #15803D; color: #fff; transform: translateY(-2px); }
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   Navigation
   -------------------------------------------------------------------------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid transparent; transition: border-color 0.3s, box-shadow 0.3s; }
.nav.is-scrolled { border-color: var(--border); box-shadow: 0 10px 30px -24px rgba(27,15,51,0.35); }
.nav__inner { display: flex; align-items: center; gap: 24px; min-height: 76px; }
.nav__logo img { height: 40px; width: auto; }
.nav__links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; margin-inline-start: 10px; }
.nav__links a { color: var(--text); font-weight: 500; font-size: 15px; position: relative; padding: 6px 0; }
.nav__links a::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 2px; border-radius: 2px; background: var(--violet); transform: scaleX(0); transition: transform 0.35s var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--heading); }
.nav__links a:hover::after, .nav__links a[aria-current="page"]::after { transform: scaleX(1); }
.nav__actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--heading); cursor: pointer; transition: border-color 0.3s, transform 0.3s; }
.icon-btn:hover { border-color: var(--violet); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
.lang-link { display: inline-flex; align-items: center; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--border); color: var(--heading); font-family: var(--font-head); font-size: 14px; }
.lang-link:hover { border-color: var(--violet); color: var(--heading); }
.nav__burger { display: none; }

.drawer { position: fixed; inset: 0; z-index: 60; background: var(--bg); padding: 90px var(--pad) 40px; display: flex; flex-direction: column; gap: 6px; transform: translateY(-100%); transition: transform 0.6s var(--ease); visibility: hidden; }
.drawer.is-open { transform: none; visibility: visible; }
.drawer a.drawer__link { font-family: var(--font-head); font-size: 28px; font-weight: 500; color: var(--heading); padding: 10px 0; border-bottom: 1px solid var(--border); }
.drawer__close { position: absolute; top: 16px; inset-inline-end: var(--pad); }
.drawer__ctas { display: grid; gap: 10px; margin-top: auto; }

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */
.hero { position: relative; overflow: hidden; background: var(--hero-glow), linear-gradient(180deg, var(--bg), var(--bg-alt)); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(30px, 5vw, 64px); align-items: center; padding-block: clamp(50px, 7vw, 90px) clamp(70px, 8vw, 110px); }
.hero__title { margin-top: 24px; }
.hero__lead { margin-top: 22px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 14px; color: var(--muted); list-style: none; padding: 0; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { width: 16px; height: 16px; color: var(--violet); }

.bg-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%); -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 10%, transparent 65%); opacity: 0.7; }

/* Scan stage */
.stage { position: relative; display: grid; place-items: center; aspect-ratio: 1; max-width: 560px; width: 100%; margin-inline: auto; }
.stage__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--ring); animation: spin 60s linear infinite; }
.stage__ring--2 { inset: 9%; border-style: solid; animation-duration: 90s; animation-direction: reverse; }
.stage__ring--2::before { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 16px var(--violet); }
@keyframes spin { to { transform: rotate(360deg); } }
.stage__photo { position: relative; width: 78%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; box-shadow: 0 40px 90px -40px rgba(91,29,176,0.65); background: #0B0814; }
.stage__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.stage__scan { position: absolute; inset-inline: 0; height: 32%; top: -32%; background: linear-gradient(180deg, transparent, rgba(199,139,235,0.18) 80%, rgba(215,194,250,0.85)); border-bottom: 1px solid #D7C2FA; animation: scan 4.8s var(--ease) infinite; mix-blend-mode: screen; pointer-events: none; }
@keyframes scan { 0% { top: -32%; } 100% { top: 100%; } }
.chip { position: absolute; padding: 12px 16px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--border); box-shadow: var(--shadow); animation: float 6s ease-in-out infinite; }
.chip small { display: block; font-family: var(--font-brand); font-size: 10px; letter-spacing: 0.1em; color: var(--accent); }
html[lang="ar"] .chip small { letter-spacing: 0; font-size: 12px; }
.chip strong { font-family: var(--font-head); font-weight: 500; font-size: 15px; color: var(--heading); }
.chip--a { top: 8%; inset-inline-start: -2%; }
.chip--b { bottom: 18%; inset-inline-end: -4%; animation-delay: -2s; }
.chip--c { bottom: 2%; inset-inline-start: 10%; background: var(--violet); color: #fff; border: 0; border-radius: 100px; padding: 10px 16px; font-family: var(--font-head); font-size: 13px; animation-delay: -4s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* Marquee */
.marquee { border-block: 1px solid var(--border); background: var(--bg); overflow: hidden; padding: 20px 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
html[dir="rtl"] .marquee__track { animation-name: marquee-rtl; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 34px; padding-inline-end: 34px; white-space: nowrap; font-family: var(--font-head); font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; color: var(--heading); }
.marquee__item svg { width: 22px; height: 22px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes marquee-rtl { to { transform: translateX(50%); } }

/* --------------------------------------------------------------------------
   Funnel chooser
   -------------------------------------------------------------------------- */
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.path { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 30px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform 0.5s var(--ease), border-color 0.4s; }
.path:hover { transform: translateY(-6px); border-color: var(--border-strong); }
.path__icon { width: 84px; height: 84px; border-radius: 22px; object-fit: cover; }
.path__tag { font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); }
html[lang="ar"] .path__tag { letter-spacing: 0; font-size: 13px; }
.path p { margin: 0; color: var(--muted); }
.path .btn { margin-top: auto; }
.path--featured { background: linear-gradient(160deg, #3B1A73, #1B0F33); border-color: rgba(199,139,235,0.35); color: #fff; }
.path--featured h3 { color: #fff; }
.path--featured p { color: #E2D7F5; }
.path--featured .path__tag { color: #D7C2FA; }
.path__badge { position: absolute; top: 20px; inset-inline-end: 20px; padding: 6px 12px; border-radius: 100px; background: rgba(255,255,255,0.14); color: #fff; font-size: 12px; }

/* Forms */
.form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: 13.5px; color: var(--text); font-weight: 500; }
.field .req { color: var(--accent); }
.input, .select, .textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  background: var(--input); color: var(--heading); border: 1px solid var(--input-border);
  font: inherit; font-size: 16px; transition: border-color 0.25s, box-shadow 0.25s;
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 40px; }
html[dir="rtl"] .select { background-position: 20px 22px, 15px 22px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(140,34,189,0.16); }
.input::placeholder, .textarea::placeholder { color: var(--muted); opacity: 0.8; }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: #DC2626; }
.field__err { display: none; font-size: 12.5px; color: #DC2626; }
[data-theme="dark"] .field__err { color: #FCA5A5; }
.field.has-error .field__err { display: block; }
.hp { position: absolute; inset-inline-start: -9999px; }
.form__note { font-size: 12.5px; color: var(--muted); }
.form__status { font-size: 14px; }
.form__status.is-error { color: #DC2626; }
[data-theme="dark"] .form__status.is-error { color: #FCA5A5; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }

.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-flex; min-height: 44px; align-items: center; padding: 10px 16px; border-radius: 100px; border: 1px solid var(--input-border); background: var(--input); color: var(--text); cursor: pointer; font-size: 14.5px; transition: all 0.25s; }
.choice span:hover { border-color: var(--violet); }
.choice input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; }
.choice input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }

.wa-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--green); font-weight: 500; font-size: 14.5px; }
.wa-link svg { width: 18px; height: 18px; }

/* --------------------------------------------------------------------------
   Problem / symptoms
   -------------------------------------------------------------------------- */
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(36px, 6vw, 72px); align-items: center; }
.symptoms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.symptom { padding: 20px; border-radius: var(--r-md); background: var(--bg-alt); border: 1px solid var(--border); transition: transform 0.4s var(--ease), border-color 0.4s; }
.symptom:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.symptom small { font-family: var(--font-brand); font-size: 10px; letter-spacing: 0.12em; color: var(--accent); }
html[lang="ar"] .symptom small { letter-spacing: 0; font-size: 12px; }
.symptom strong { display: block; margin-top: 6px; font-family: var(--font-head); font-weight: 500; font-size: 18px; color: var(--heading); }
.symptom--dx { background: var(--violet); border-color: var(--violet); }
.symptom--dx small { color: #EADFFB; }
.symptom--dx strong { color: #fff; }

/* Dr X */
.drx-frame { position: relative; width: 100%; max-width: 440px; aspect-ratio: 11 / 14; justify-self: center; border-radius: 28px; overflow: hidden; background: #0B0814; box-shadow: 0 40px 90px -40px rgba(57,32,98,0.7); }
.drx-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center 15%; transition: transform 1.2s var(--ease); }
.drx-frame:hover img { transform: scale(1.04); }
.drx-frame .scanline { position: absolute; inset-inline: 0; height: 2px; top: 10%; background: #C78BEB; box-shadow: 0 0 24px 6px rgba(199,139,235,0.6); animation: scanline 5s var(--ease) infinite alternate; }
@keyframes scanline { to { top: 88%; } }
.corner { position: absolute; width: 26px; height: 26px; border-color: #D7C2FA; border-style: solid; border-width: 0; }
.corner--tl { top: 16px; left: 16px; border-top-width: 2px; border-left-width: 2px; }
.corner--tr { top: 16px; right: 16px; border-top-width: 2px; border-right-width: 2px; }
.corner--bl { bottom: 16px; left: 16px; border-bottom-width: 2px; border-left-width: 2px; }
.corner--br { bottom: 16px; right: 16px; border-bottom-width: 2px; border-right-width: 2px; }
.drx-frame__label { position: absolute; inset-inline-start: 54px; top: 18px; padding: 8px 12px; border-radius: 10px; background: rgba(11,8,20,0.72); color: #fff; font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.1em; }
.traits { display: grid; gap: 12px; margin-top: 30px; }
.trait { display: flex; gap: 16px; align-items: center; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: transform 0.4s var(--ease), border-color 0.4s; }
.trait:hover { transform: translateX(6px); border-color: var(--border-strong); }
html[dir="rtl"] .trait:hover { transform: translateX(-6px); }
.trait svg { width: 28px; height: 28px; flex: none; }
.trait strong { font-family: var(--font-head); color: var(--heading); }
.trait span { color: var(--muted); }

/* Method cards */
.method-title { text-align: center; font-size: clamp(40px, 6vw, 72px); font-weight: 700; letter-spacing: -0.035em; }
.cards-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mcard { padding: 26px; border-radius: 22px; border: 1px solid var(--border); background: linear-gradient(180deg, var(--surface), var(--surface-2)); transition: transform 0.5s var(--ease), box-shadow 0.5s; }
.mcard:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.mcard img { width: 76px; height: 76px; border-radius: 18px; object-fit: cover; }
.mcard .num { font-family: var(--font-brand); font-size: 12px; color: var(--accent); margin-top: 18px; }
.mcard h3 { margin: 4px 0 8px; }
.mcard p { margin: 0; color: var(--muted); font-size: 15px; }

/* Solutions */
.solutions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.sol { --mx: 50%; --my: 50%; position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: transform 0.5s var(--ease), border-color 0.4s; }
.sol::before { content: ""; position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(320px circle at var(--mx) var(--my), rgba(140,34,189,0.12), transparent 45%); transition: opacity 0.4s; }
.sol:hover { transform: translateY(-5px); border-color: var(--border-strong); color: var(--text); }
.sol:hover::before { opacity: 1; }
.sol .num { font-family: var(--font-brand); font-size: 11px; color: var(--accent); }
.sol h3 { font-size: 21px; font-weight: 600; }
.sol p { margin: 0; font-size: 14.5px; color: var(--muted); }
.sol ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: 14px; color: var(--muted); }
.sol--cta { background: var(--violet); border-color: var(--violet); color: #fff; justify-content: space-between; }
.sol--cta h3, .sol--cta p { color: #fff; }
.sol--cta:hover { color: #fff; }

/* MRI band (dark in both themes) */
.mri { background: #120B24; color: #fff; overflow: hidden; }
.mri::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 80% 40%, rgba(140,34,189,0.45), transparent 70%); pointer-events: none; }
.mri .container { position: relative; }
.mri h2 { color: #fff; }
.mri .eyebrow { color: #D7C2FA; }
.mri p { color: #E2D7F5; }
.report { padding: 28px; border-radius: var(--r-lg); background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.16); backdrop-filter: blur(12px); }
.report__head { display: flex; justify-content: space-between; font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.1em; color: #D7C2FA; }
html[lang="ar"] .report__head { letter-spacing: 0; font-size: 12px; }
.bars { display: grid; gap: 13px; margin-top: 20px; font-size: 14px; }
.bar { display: grid; grid-template-columns: minmax(150px, 200px) 1fr; gap: 12px; align-items: center; }
.bar__track { height: 8px; border-radius: 8px; background: rgba(255,255,255,0.12); overflow: hidden; }
.bar__fill { height: 100%; width: 0; border-radius: 8px; background: #C78BEB; transition: width 1.6s var(--ease); }
.bar__fill--low { background: #F0B35A; }
.is-in .bar__fill { width: var(--w); }

/* Videos */
.videos { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; }
.videos__side { display: grid; gap: 18px; }
.vcard { position: relative; overflow: hidden; border-radius: 24px; background: #120B24; min-height: 230px; cursor: pointer; border: 0; padding: 0; text-align: start; color: #fff; width: 100%; }
.vcard--main { min-height: 480px; }
.vcard img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; transition: transform 1s var(--ease); opacity: 0.92; }
.vcard:hover img { transform: scale(1.05); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(11,8,20,0.85)); }
.vcard__play { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 78px; height: 78px; border-radius: 50%; background: rgba(255,255,255,0.94); color: var(--violet); display: grid; place-items: center; box-shadow: 0 0 0 12px rgba(255,255,255,0.22); transition: transform 0.4s var(--ease); }
.vcard:hover .vcard__play { transform: translate(-50%, -50%) scale(1.08); }
.vcard__play svg { width: 26px; height: 26px; margin-inline-start: 4px; }
.vcard--side .vcard__play { width: 56px; height: 56px; }
.vcard__meta { position: absolute; z-index: 2; inset-inline-start: 22px; bottom: 18px; inset-inline-end: 22px; }
.vcard__meta small { font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.1em; color: #D7C2FA; }
.vcard__meta strong { display: block; font-family: var(--font-head); font-size: 22px; font-weight: 600; line-height: 1.25; }
.vcard--side .vcard__meta strong { font-size: 17px; }
.soon { position: absolute; z-index: 2; top: 16px; inset-inline-end: 16px; padding: 6px 12px; border-radius: 100px; background: rgba(11,8,20,0.7); font-size: 12px; color: #fff; }

.modal { position: fixed; inset: 0; z-index: 90; display: none; place-items: center; background: rgba(11,8,20,0.85); padding: 20px; }
.modal.is-open { display: grid; animation: fadeIn 0.3s ease; }
.modal__box { position: relative; width: min(1000px, 100%); aspect-ratio: 16 / 9; background: #000; border-radius: 18px; overflow: hidden; }
.modal__box iframe, .modal__box video { width: 100%; height: 100%; border: 0; }
.modal__close { position: absolute; top: -56px; inset-inline-end: 0; }
@keyframes fadeIn { from { opacity: 0; } }

/* Why + who */
.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.why__item { padding: 24px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.why__item svg { width: 28px; height: 28px; color: var(--violet); }
.why__item h3 { font-size: 19px; margin: 14px 0 6px; }
.why__item p { margin: 0; font-size: 15px; color: var(--muted); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; position: relative; }
.steps li { position: relative; padding: 22px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.steps li::before { content: ""; position: absolute; top: -1px; inset-inline: 18px; height: 3px; border-radius: 3px; background: var(--violet); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease); transition-delay: var(--d, 0s); }
html[dir="rtl"] .steps li::before { transform-origin: right; }
.steps.is-in li::before { transform: scaleX(1); }
.steps .num { font-family: var(--font-brand); font-size: 12px; color: var(--accent); }
.steps strong { display: block; margin-top: 6px; font-family: var(--font-head); font-weight: 600; color: var(--heading); line-height: 1.3; }
.steps p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }

.who { display: flex; flex-wrap: wrap; gap: 10px; }
.who span { padding: 12px 18px; border-radius: 100px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--heading); font-family: var(--font-head); font-size: 15px; }

/* FAQ */
.faq { max-width: 900px; margin-inline: auto; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 22px 0; font-family: var(--font-head); font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; color: var(--heading); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-strong); color: var(--accent); font-size: 20px; transition: transform 0.4s var(--ease), background 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 760px; }
.faq details[open] p { animation: fadeUp 0.5s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }

/* Final CTA */
.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding: clamp(36px, 6vw, 64px); border-radius: 32px; background: linear-gradient(135deg, var(--violet), var(--plum)); color: #fff; }
.cta-band::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); inset-inline-end: -160px; top: -200px; }
.cta-band::after { content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%; border: 1px dashed rgba(255,255,255,0.22); inset-inline-end: -80px; top: -120px; animation: spin 50s linear infinite; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #EADFFB; margin: 14px 0 0; font-size: 18px; }
.cta-band__btns { position: relative; z-index: 1; display: grid; gap: 12px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding-block: 60px 40px; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; }
.footer img { height: 40px; width: auto; }
.footer p { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; max-width: 320px; }
.footer h4 { font-size: 15px; margin-bottom: 12px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14.5px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--accent); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }

/* Floating WhatsApp + mobile bar */
.wa-float { position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40; width: 60px; height: 60px; border-radius: 50%; background: #16A34A; color: #fff; display: grid; place-items: center; box-shadow: 0 14px 30px -10px rgba(22,163,74,0.7); transition: transform 0.35s var(--ease); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #16A34A; animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { to { transform: scale(1.6); opacity: 0; } }
.wa-float:hover { transform: scale(1.06); color: #fff; }
.wa-float svg { width: 30px; height: 30px; }
.mbar { display: none; }

/* Page hero (inner) */
.page-hero { position: relative; overflow: hidden; background: var(--hero-glow), linear-gradient(180deg, var(--bg), var(--bg-alt)); padding-block: clamp(60px, 8vw, 100px) clamp(40px, 5vw, 60px); }
.page-hero h1 { font-size: clamp(38px, 5.2vw, 64px); font-weight: 600; line-height: 1.08; margin-top: 18px; max-width: 900px; }
html[lang="ar"] .page-hero h1 { line-height: 1.35; }
.page-hero p { margin-top: 18px; }

/* Panels / cards */
.panel { padding: clamp(24px, 4vw, 40px); border-radius: 28px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.layout-aside { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(28px, 5vw, 60px); align-items: start; }
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 12px; }
.checklist svg { width: 22px; height: 22px; flex: none; color: var(--violet); margin-top: 2px; }

/* --------------------------------------------------------------------------
   Self-Scan
   -------------------------------------------------------------------------- */
.scan-wrap { display: grid; grid-template-columns: 280px 1fr; gap: 28px; align-items: start; }
.scan-steps { position: sticky; top: 100px; display: grid; gap: 4px; list-style: none; padding: 0; margin: 0; }
.scan-steps li { display: flex; gap: 12px; align-items: center; padding: 11px 12px; border-radius: 12px; color: var(--muted); font-size: 15px; transition: background 0.3s, color 0.3s; }
.scan-steps .b { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1px solid var(--input-border); display: grid; place-items: center; font-size: 12px; transition: all 0.3s; }
.scan-steps li.is-current { background: var(--surface); color: var(--heading); font-weight: 500; box-shadow: inset 0 0 0 1px var(--border-strong); }
.scan-steps li.is-current .b { border: 2px solid var(--violet); color: var(--accent); }
.scan-steps li.is-done .b { background: var(--violet); border-color: var(--violet); color: #fff; }
.progress { height: 6px; border-radius: 6px; background: var(--bg-soft); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--violet), #C78BEB); transition: width 0.6s var(--ease); }
html[dir="rtl"] .progress span { margin-inline-start: auto; background: linear-gradient(270deg, var(--violet), #C78BEB); }
.q-count { font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.12em; color: var(--accent); margin-top: 26px; }
html[lang="ar"] .q-count { letter-spacing: 0; font-size: 13px; }
.q-title { color: var(--heading); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; line-height: 1.2; margin: 8px 0 22px; }
html[lang="ar"] .q-title { line-height: 1.45; }
.q-help { margin: -12px 0 20px; color: var(--muted); font-size: 15px; }
.options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; }
.opt span { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--input-border); background: var(--input); color: var(--heading); cursor: pointer; transition: all 0.25s; }
.opt span::before { content: ""; width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid var(--input-border); transition: all 0.25s; }
.opt input:checked + span { border-color: var(--violet); background: var(--accent-soft); box-shadow: 0 0 0 1px var(--violet); }
.opt input:checked + span::before { border-color: var(--violet); background: radial-gradient(circle, var(--violet) 45%, transparent 50%); }
.opt input:focus-visible + span { outline: 2px solid var(--violet); outline-offset: 2px; }
.q-nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; }
.q-anim { animation: qIn 0.5s var(--ease); }
@keyframes qIn { from { opacity: 0; transform: translateY(14px); } }

.result { display: grid; grid-template-columns: 300px 1fr; gap: 40px; }
.score-ring { --p: 0; position: relative; width: 230px; height: 230px; margin-inline: auto; border-radius: 50%; background: conic-gradient(var(--violet) calc(var(--p) * 1%), var(--bg-soft) 0); display: grid; place-items: center; transition: --p 1.6s; }
.score-ring::before { content: ""; position: absolute; inset: 20px; border-radius: 50%; background: var(--surface); }
.score-ring__val { position: relative; text-align: center; }
.score-ring__val strong { display: block; font-family: var(--font-head); font-size: 62px; font-weight: 700; line-height: 1; color: var(--heading); }
.score-ring__val small { font-size: 13px; color: var(--muted); }
.result__level { text-align: center; margin-top: 14px; font-family: var(--font-head); font-weight: 600; font-size: 20px; color: var(--heading); }
.result__level + p { text-align: center; font-size: 14px; color: var(--muted); }
.rbars { display: grid; gap: 12px; }
.rbar { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 44px; gap: 14px; align-items: center; font-size: 15px; }
.rbar__track { height: 10px; border-radius: 10px; background: var(--bg-soft); overflow: hidden; }
.rbar__fill { height: 100%; width: 0; border-radius: 10px; background: var(--violet); transition: width 1.4s var(--ease); }
.rbar__fill.low { background: var(--warn); }
.rbar b { text-align: end; color: var(--heading); }
.priorities { margin: 0; padding-inline-start: 22px; display: grid; gap: 12px; }
.priorities li strong { color: var(--heading); }
.ai-box { margin-top: 24px; padding: 20px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--border-strong); display: none; }
.ai-box.is-shown { display: block; animation: fadeUp 0.6s var(--ease); }
.ai-box h4 { font-size: 16px; margin-bottom: 8px; }
.ai-box p { margin: 0 0 8px; white-space: pre-line; }
.result-cta { margin-top: 18px; padding: clamp(24px, 4vw, 36px); border-radius: 28px; background: linear-gradient(135deg, var(--violet), var(--plum)); color: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.result-cta h3 { color: #fff; font-size: 26px; }
.result-cta p { color: #EADFFB; }
.result-cta .input { background: rgba(255,255,255,0.96); color: #1B0F33; border-color: transparent; }
.result-cta label { color: #fff; }
.result-cta .form__note { color: #EADFFB; }

/* Booking */
.slots { display: flex; flex-wrap: wrap; gap: 8px; }

/* Thank you */
.done-mark { width: 92px; height: 92px; margin: 0 auto 26px; color: var(--violet); }
.done-mark path { stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw 1.2s var(--ease) 0.3s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* --------------------------------------------------------------------------
   Reveal on scroll
   -------------------------------------------------------------------------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal="scale"] { transform: scale(0.95); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.word { display: inline-block; opacity: 0; transform: translateY(0.4em); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); transition-delay: var(--d, 0s); }
.is-ready .word { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1100px) {
  .solutions, .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .nav__links, .nav__actions .btn, .nav__actions .lang-link { display: none; }
  .nav__burger { display: inline-grid; }
  .hero__grid, .split, .layout-aside, .videos, .cta-band, .result, .result-cta, .scan-wrap { grid-template-columns: 1fr; }
  .paths, .why { grid-template-columns: 1fr; }
  .stage { max-width: 420px; }
  .scan-steps { position: static; display: flex; overflow-x: auto; }
  .scan-steps li { white-space: nowrap; }
  .vcard--main { min-height: 300px; }
}
@media (max-width: 640px) {
  body { padding-bottom: 76px; }
  .solutions, .cards-4, .options, .grid-2 { grid-template-columns: 1fr; }
  .symptom { padding: 16px; }
  .symptom strong { font-size: 16px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .bar, .rbar { grid-template-columns: 1fr; gap: 6px; }
  .rbar b { text-align: start; }
  .chip--a { inset-inline-start: 0; }
  .chip--b { inset-inline-end: 0; }
  .wa-float { display: none; }
  .mbar { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; inset-inline: 0; bottom: 0; z-index: 45; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); background: var(--nav); backdrop-filter: blur(14px); border-top: 1px solid var(--border); }
  .mbar .btn { min-height: 48px; padding: 10px; font-size: 14.5px; }
  .hero__ctas .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .word { opacity: 1 !important; transform: none !important; }
  .stage__scan, .drx-frame .scanline { display: none; }
}

/* ==========================================================================
   v3 — signature interactions
   ========================================================================== */

/* Cross-page transitions (Chrome/Edge/Safari 18+; others just navigate) */
@view-transition { navigation: auto; }
.nav { view-transition-name: nav; }
::view-transition-old(root) { animation: vt-out 0.28s var(--ease) both; }
::view-transition-new(root) { animation: vt-in 0.5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* Scroll progress (Linear-like hairline) */
.scroll-progress { position: absolute; inset-inline: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--violet), #C78BEB); transform-origin: left; transform: scaleX(var(--sp, 0)); }
html[dir="rtl"] .scroll-progress { transform-origin: right; }

/* Spotlight border on cards */
.spot { --mx: 50%; --my: 50%; position: relative; isolation: isolate; }
.spot::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; z-index: -1; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(140,34,189,0.75), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
}
.spot:hover::after { opacity: 1; }

/* Magnetic */
[data-magnetic] { will-change: transform; }

/* --------------------------------------------------------------------------
   Hero X-ray lens
   -------------------------------------------------------------------------- */
.stage__photo { --lx: 50%; --ly: 42%; --lr: 0px; cursor: crosshair; }
.stage__photo picture, .stage__photo picture img { width: 100%; height: 100%; display: block; }
.stage__photo picture img { object-fit: cover; object-position: center 18%; }
.xray { position: absolute; inset: 0; pointer-events: none;
  -webkit-mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 96%, transparent 100%);
          mask-image: radial-gradient(circle var(--lr) at var(--lx) var(--ly), #000 96%, transparent 100%); }
.xray img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; filter: grayscale(1) invert(1) contrast(1.35) brightness(0.95); }
.xray::before { content: ""; position: absolute; inset: 0; background: #8C22BD; mix-blend-mode: color; }
.xray::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
  background-size: 22px 22px; }
.lens { position: absolute; left: var(--lx); top: var(--ly); width: calc(var(--lr) * 2); height: calc(var(--lr) * 2); translate: -50% -50%; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.9); box-shadow: 0 0 0 6px rgba(140,34,189,0.25), 0 0 40px rgba(140,34,189,0.55); pointer-events: none; transition: opacity 0.3s; }
.lens::before, .lens::after { content: ""; position: absolute; background: rgba(255,255,255,0.8); }
.lens::before { left: 50%; top: -10px; bottom: -10px; width: 1px; }
.lens::after { top: 50%; left: -10px; right: -10px; height: 1px; }
.lens span { position: absolute; top: calc(100% + 8px); left: 50%; translate: -50% 0; padding: 4px 9px; border-radius: 100px; background: #1B0F33; color: #fff; font-family: var(--font-brand); font-size: 10px; letter-spacing: 0.12em; white-space: nowrap; }
html[lang="ar"] .lens span { letter-spacing: 0; font-size: 11px; }
.stage__hint { position: absolute; inset-inline-start: 50%; bottom: -34px; translate: -50% 0; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
html[dir="rtl"] .stage__hint { translate: 50% 0; }

/* --------------------------------------------------------------------------
   Symptom → Diagnosis
   -------------------------------------------------------------------------- */
.dx { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 48px); align-items: stretch; margin-top: 10px; }
.dx__list { display: grid; gap: 8px; align-content: start; }
.dx__tab { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--heading); font: inherit; font-family: var(--font-head); font-size: 16px; text-align: start; cursor: pointer; transition: border-color 0.3s, background 0.3s, transform 0.4s var(--ease); }
.dx__tab .n { font-family: var(--font-brand); font-size: 11px; color: var(--muted); }
.dx__tab:hover { border-color: var(--border-strong); transform: translateX(4px); }
html[dir="rtl"] .dx__tab:hover { transform: translateX(-4px); }
.dx__tab[aria-selected="true"] { border-color: var(--violet); background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--violet); }
html[dir="rtl"] .dx__tab[aria-selected="true"] { box-shadow: inset -3px 0 0 var(--violet); }
.dx__tab[aria-selected="true"] .n { color: var(--accent); }
.film { position: relative; overflow: hidden; border-radius: 26px; padding: clamp(24px, 3vw, 36px); background: #0E0A1A; color: #fff; min-height: 420px; box-shadow: 0 40px 80px -40px rgba(27,15,51,0.7); }
.film::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(199,139,235,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(199,139,235,0.08) 1px, transparent 1px); background-size: 28px 28px; }
.film::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(199,139,235,0.16) 85%, rgba(230,200,250,0.7)); border-bottom: 1px solid #E8CFF7; transform: translateY(-110%); pointer-events: none; }
.film.is-scanning::after { animation: film-scan 1.1s var(--ease) both; }
@keyframes film-scan { from { transform: translateY(-110%); } to { transform: translateY(260%); } }
.film__head { position: relative; display: flex; justify-content: space-between; gap: 16px; font-family: var(--font-brand); font-size: 11px; letter-spacing: 0.12em; color: #D9B8F2; }
html[lang="ar"] .film__head { letter-spacing: 0; font-size: 12px; }
.film__symptom { position: relative; margin: 18px 0 6px; font-family: var(--font-head); font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; line-height: 1.25; }
.film__label { position: relative; font-size: 13px; color: #BFB3D6; margin-bottom: 16px; }
.causes { position: relative; display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.causes li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); opacity: 0; transform: translateY(10px); }
.film.is-revealed .causes li { animation: cause-in 0.6s var(--ease) both; animation-delay: calc(0.45s + var(--i) * 0.14s); }
@keyframes cause-in { to { opacity: 1; transform: none; } }
.causes .dot { flex: none; width: 12px; height: 12px; margin-top: 6px; border-radius: 50%; background: #C78BEB; box-shadow: 0 0 0 5px rgba(199,139,235,0.18), 0 0 16px #C78BEB; }
.causes strong { display: block; font-family: var(--font-head); font-weight: 500; }
.causes span { font-size: 14px; color: #CFC6E2; }
.film__cta { position: relative; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* --------------------------------------------------------------------------
   Pinned method
   -------------------------------------------------------------------------- */
.method { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 80px); }
.method__pin { position: sticky; top: 120px; align-self: start; display: grid; place-items: center; height: min(560px, 70vh); }
.gauge { position: relative; width: min(440px, 100%); aspect-ratio: 1; }
.gauge svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
html[dir="rtl"] .gauge svg { transform: rotate(-90deg) scaleY(-1); }
.gauge .track { stroke: var(--bg-soft); }
.gauge .fill { stroke: url(#gaugeGrad); stroke-dasharray: 1000; stroke-dashoffset: calc(1000 - 1000 * var(--g, 0.25)); transition: stroke-dashoffset 1s var(--ease); }
.gauge .ticks { stroke: var(--ring); }
.gauge__core { position: absolute; inset: 16%; border-radius: 50%; background: radial-gradient(circle at 50% 35%, var(--surface), var(--bg-alt)); border: 1px solid var(--border); box-shadow: var(--shadow); display: grid; place-items: center; text-align: center; overflow: hidden; }
.gauge__core img { width: 38%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 22px; margin: 0 auto 10px; }
.gauge__num { font-family: var(--font-brand); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.gauge__title { font-family: var(--font-head); font-size: clamp(26px, 3vw, 38px); font-weight: 700; color: var(--heading); letter-spacing: -0.02em; }
.gauge__swap { transition: opacity 0.35s, transform 0.5s var(--ease); }
.gauge__swap.is-out { opacity: 0; transform: translateY(8px) scale(0.98); }
.method__steps { display: grid; gap: 34vh; padding-block: 8vh 28vh; }
.mstep { opacity: 0.35; transition: opacity 0.5s; }
.mstep.is-active { opacity: 1; }
.mstep .num { font-family: var(--font-brand); font-size: 12px; letter-spacing: 0.14em; color: var(--accent); }
.mstep h3 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 700; letter-spacing: -0.03em; margin: 8px 0 14px; }
.mstep p { font-size: 18px; color: var(--text); max-width: 480px; margin: 0; }
.mstep ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; color: var(--muted); }
.mstep li { display: flex; gap: 10px; align-items: center; }
.mstep li svg { width: 18px; height: 18px; color: var(--violet); flex: none; }

/* --------------------------------------------------------------------------
   MRI radar (self-scan)
   -------------------------------------------------------------------------- */
.radar { width: 100%; max-width: 280px; margin: 20px auto 0; }
.radar svg { width: 100%; height: auto; overflow: visible; }
.radar .grid { fill: none; stroke: var(--border); }
.radar .axis { stroke: var(--border); }
.radar .shape { fill: rgba(140,34,189,0.18); stroke: var(--violet); stroke-width: 2; transition: all 0.8s var(--ease); }
.radar .pt { fill: var(--violet); transition: all 0.8s var(--ease); }
.radar text { font-size: 9px; fill: var(--muted); font-family: var(--font-body); }
.radar__cap { text-align: center; font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.radar__beam { transform-origin: 150px 150px; animation: spin 4s linear infinite; }
.result .radar { max-width: 300px; }

/* Responsive / motion */
@media (max-width: 960px) {
  .dx, .method { grid-template-columns: 1fr; }
  .method__pin { position: relative; top: 0; height: auto; margin-bottom: 10px; }
  .gauge { width: 300px; }
  .method__steps { gap: 40px; padding: 0; }
  .mstep { opacity: 1; }
  .film { min-height: 0; }
  .stage__hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .lens, .xray { display: none; }
  .film.is-revealed .causes li { opacity: 1; transform: none; }
  .mstep { opacity: 1; }
  .radar__beam { display: none; }
}
.scan-aside { position: sticky; top: 100px; align-self: start; }
.scan-aside .scan-steps { position: static; }
@media (max-width: 960px) { .scan-aside { position: static; } .scan-aside .radar { max-width: 220px; } }
@media (max-width: 640px) {
  .dx__list { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
  .dx__tab { flex: none; width: auto; min-height: 48px; white-space: nowrap; scroll-snap-align: start; font-size: 15px; }
  .dx__tab:hover { transform: none; }
}

/* ==========================================================================
   v4 — Hero X-ray machine (Diagnose → Plan → Grow)
   ========================================================================== */
:root { --shell-a: #FFFFFF; --shell-b: #E7E4EE; --shell-stroke: #D9D3E6; --bore-bg: #F7F3FB; --clinic: #2B1B4A; --clinic-soft: rgba(43,27,74,0.35); --xr-bg: #12081F; --xr-line: #EBD7FF; --xr-soft: #C78BEB; }
[data-theme="dark"] { --shell-a: #241A3B; --shell-b: #120C22; --shell-stroke: rgba(255,255,255,0.12); --bore-bg: #0F0A1C; --clinic: #DCD0F2; --clinic-soft: rgba(220,208,242,0.35); --xr-bg: #1A0B2E; }

.hero__method { margin: 18px 0 0; font-family: var(--font-head); font-weight: 700; font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.02em; color: var(--muted); }
.hero__method span { transition: color 0.5s var(--ease), text-shadow 0.5s; }
.hero__method span.is-on { color: var(--accent); text-shadow: 0 0 28px rgba(140,34,189,0.25); }

.xm { position: relative; width: 100%; max-width: 580px; margin-inline: auto; --sweep: 0%; }
.xm__machine { position: relative; aspect-ratio: 1 / 1.08; }
.xm__gantry { position: absolute; inset: 0 0 8% 0; width: 100%; height: 92%; overflow: visible; filter: drop-shadow(0 40px 60px rgba(57,32,98,0.22)); }
.g-a { stop-color: var(--shell-a); } .g-b { stop-color: var(--shell-b); }
.xm__shell { fill: url(#gShell); stroke: var(--shell-stroke); stroke-width: 1.5; }
.xm__inner-rim { fill: none; stroke: var(--violet); stroke-width: 3; opacity: 0.55; }
.xm__spin { fill: none; stroke: var(--violet); stroke-width: 1.5; stroke-dasharray: 2 10; opacity: 0.6; transform-origin: 280px 280px; animation: spin 30s linear infinite; }
.xm__ringtext { font-family: var(--font-brand); font-size: 13px; letter-spacing: 0.22em; fill: var(--muted); }

.xm__leds circle { fill: var(--violet); animation: led 1.6s ease-in-out infinite; }
.xm__leds circle:nth-child(2) { animation-delay: 0.2s; } .xm__leds circle:nth-child(3) { animation-delay: 0.4s; } .xm__leds circle:nth-child(4) { animation-delay: 0.6s; }
@keyframes led { 50% { opacity: 0.25; } }
.xm__base { position: absolute; left: 50%; bottom: 0; translate: -50% 0; width: 46%; height: 12%; border-radius: 18px 18px 8px 8px; background: linear-gradient(180deg, var(--shell-a), var(--shell-b)); border: 1px solid var(--shell-stroke); box-shadow: 0 30px 40px -30px rgba(57,32,98,0.4); z-index: -1; }
.xm__base::before { content: ""; position: absolute; left: 12%; right: 12%; top: 34%; height: 4px; border-radius: 4px; background: var(--violet); opacity: 0.5; box-shadow: 0 0 14px var(--violet); }

.xm__bore { position: absolute; left: 50%; top: 46%; width: 66%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; overflow: hidden; background: var(--bore-bg); box-shadow: inset 0 10px 40px rgba(57,32,98,0.18); }
.xm__grid { position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 24px 24px; opacity: 0.8; }
.xm__layer { position: absolute; inset: 0; display: grid; place-items: center; }
.xm__layer--xray { background: var(--xr-bg); clip-path: inset(0 calc(100% - var(--sweep)) 0 0); }
html[dir="rtl"] .xm__layer--xray { clip-path: inset(0 0 0 calc(100% - var(--sweep))); }
.xm__layer--xray::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(199,139,235,0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(199,139,235,0.14) 1px, transparent 1px); background-size: 24px 24px; }

.clinic { position: relative; width: 76%; height: auto; margin-top: 8%; overflow: visible; }
.clinic * { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.clinic--normal * { stroke: var(--clinic); stroke-width: 2.2; }
.clinic--normal .c-sign { fill: var(--accent-soft); stroke: var(--violet); }
.clinic--normal .c-sign-t { fill: var(--violet); stroke: none; font: 600 10px var(--font-head); letter-spacing: 0.12em; }
.clinic--normal .c-win, .clinic--normal .c-door { fill: var(--surface); }
.clinic--normal .c-chair { fill: var(--accent-soft); stroke: var(--violet); }
.clinic--normal .c-knob { fill: var(--clinic); }
.clinic--xray * { stroke: var(--xr-line); stroke-width: 1.8; filter: drop-shadow(0 0 3px rgba(199,139,235,0.8)); }
.clinic--xray .c-sign-t { fill: var(--xr-line); stroke: none; font: 600 10px var(--font-head); letter-spacing: 0.12em; }
.clinic--xray .c-chair { stroke: #FFFFFF; stroke-width: 2.4; }
.clinic--xray .xr-inner * { stroke: var(--xr-soft); stroke-width: 1.4; opacity: 0.9; }
html[lang="ar"] .c-sign-t { letter-spacing: 0 !important; font-size: 11px !important; }

.xm__beam { position: absolute; top: -5%; bottom: -5%; left: var(--sweep); width: 3px; translate: -50% 0; background: #F3E3FF; box-shadow: 0 0 18px 6px rgba(199,139,235,0.75), 0 0 60px 18px rgba(140,34,189,0.45); opacity: 0; transition: opacity 0.3s; }
html[dir="rtl"] .xm__beam { left: auto; right: var(--sweep); translate: 50% 0; }
.xm[data-phase="diagnose"] .xm__beam { opacity: 1; }
.xm.is-swept .xm__beam { opacity: 0; }

.hot { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); translate: -50% -50%; opacity: 0; transform: scale(0.6); transition: opacity 0.4s, transform 0.5s var(--ease); }
html[dir="rtl"] .hot { left: auto; right: calc(var(--x) * 1%); translate: 50% -50%; }
.hot.is-on { opacity: 1; transform: none; }
.hot__ring { display: block; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #FFB347; background: rgba(255,179,71,0.25); box-shadow: 0 0 0 0 rgba(255,179,71,0.6); animation: hotping 1.6s ease-out infinite; }
@keyframes hotping { to { box-shadow: 0 0 0 14px rgba(255,179,71,0); } }
.hot__label { position: absolute; top: 26px; left: 50%; translate: -50% 0; white-space: nowrap; padding: 4px 9px; border-radius: 8px; background: rgba(18,8,31,0.88); color: #FFE2B8; font-size: 11.5px; font-family: var(--font-head); border: 1px solid rgba(255,179,71,0.4); }
.xm[data-phase="plan"] .hot__ring, .xm[data-phase="grow"] .hot__ring { border-color: #C78BEB; background: rgba(199,139,235,0.3); animation: none; }
.xm[data-phase="plan"] .hot__label, .xm[data-phase="grow"] .hot__label { color: #EBD7FF; border-color: rgba(199,139,235,0.45); }
.xm[data-phase="grow"] .hot__label { opacity: 0; transition: opacity 0.4s; }

.xm__plan, .xm__grow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
html[dir="rtl"] .xm__plan, html[dir="rtl"] .xm__grow { transform: scaleX(-1); }
.xm__plan path { fill: none; stroke: #EBD7FF; stroke-width: 0.7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0; }
.xm__plan circle { fill: #C78BEB; opacity: 0; transition: opacity 0.4s 1s; }
.xm[data-phase="plan"] .xm__plan path { opacity: 0.95; animation: plan-draw 1.4s var(--ease) both; }
.xm[data-phase="grow"] .xm__plan path { opacity: 0.35; stroke-dashoffset: 0; }
.xm[data-phase="plan"] .xm__plan circle, .xm[data-phase="grow"] .xm__plan circle { opacity: 1; }
@keyframes plan-draw { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
.xm__planlabel, .xm__growlabel { position: absolute; padding: 6px 11px; border-radius: 10px; background: var(--violet); color: #fff; font-family: var(--font-head); font-size: 12.5px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity 0.4s, transform 0.5s var(--ease); }
.xm__planlabel { top: 13%; inset-inline-end: 18%; }
.xm[data-phase="plan"] .xm__planlabel { opacity: 1; transform: none; transition-delay: 1.1s; }
.xm__grow-line { fill: none; stroke: #F3E3FF; stroke-width: 0.9; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; filter: drop-shadow(0 0 6px rgba(199,139,235,0.9)); }
.xm__grow-area { fill: url(#growFill); opacity: 0; transition: opacity 0.8s 0.8s; }
.xm[data-phase="grow"] .xm__grow-line { animation: plan-draw 1.6s var(--ease) both; }
.xm[data-phase="grow"] .xm__grow-area { opacity: 1; }
.xm__growlabel { top: 8%; inset-inline-start: 50%; translate: -50% 0; background: #FFFFFF; color: var(--violet); }
html[dir="rtl"] .xm__growlabel { translate: 50% 0; }
.xm[data-phase="grow"] .xm__growlabel { opacity: 1; transform: none; transition-delay: 1.2s; }

.xm__status { position: absolute; left: 50%; bottom: 13.5%; translate: -50% 0; display: flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 100px; background: var(--glass); border: 1px solid var(--border); backdrop-filter: blur(10px); font-family: var(--font-head); font-size: 13px; color: var(--heading); white-space: nowrap; box-shadow: var(--shadow); }
.xm__dot { width: 8px; height: 8px; border-radius: 50%; background: #F59E0B; box-shadow: 0 0 10px #F59E0B; animation: led 1s infinite; }
.xm[data-phase="plan"] .xm__dot { background: #C78BEB; box-shadow: 0 0 10px #C78BEB; }
.xm[data-phase="grow"] .xm__dot { background: #22C55E; box-shadow: 0 0 10px #22C55E; animation: none; }

.xm__controls { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.xm__phases { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.phase-btn { position: relative; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-family: var(--font-head); font-size: 15px; font-weight: 600; cursor: pointer; overflow: hidden; transition: color 0.3s, border-color 0.3s; }
.phase-btn__n { font-family: var(--font-brand); font-size: 10.5px; font-weight: 500; color: var(--muted); }
.phase-btn[aria-pressed="true"] { color: var(--heading); border-color: var(--border-strong); }
.phase-btn[aria-pressed="true"] .phase-btn__n { color: var(--accent); }
.phase-btn__bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: transparent; }
.phase-btn__bar i { display: block; height: 100%; width: 0; background: var(--violet); }
.phase-btn[aria-pressed="true"] .phase-btn__bar i { width: var(--pp, 0%); }
.phase-btn.is-done .phase-btn__bar i { width: 100%; opacity: 0.35; }
.xm__pause .i-play { display: none; }
.xm.is-paused .xm__pause .i-play { display: block; }
.xm.is-paused .xm__pause .i-pause { display: none; }

@media (max-width: 640px) {
  .hot__label { font-size: 10.5px; padding: 3px 7px; }
  .phase-btn { font-size: 14px; padding: 8px; justify-content: center; }
  .phase-btn__n { display: none; }
  .xm__ringtext { font-size: 15px; }
  .xm__status { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .xm__spin, .xm__leds circle, .hot__ring, .xm__dot { animation: none !important; }
}

.xm__pause[hidden] { display: none; }
.xm__ringtext { direction: ltr; unicode-bidi: plaintext; }
.steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps--3 strong { font-size: 22px; }
.steps--3 p { font-size: 15px; }
@media (max-width: 640px) { .steps--3 { grid-template-columns: 1fr; } }

/* ==========================================================================
   Brand X mark (matches the logo icon) + hero quick contact
   ========================================================================== */
:root { --logo-plum: #392062; --logo-violet: #7B27DD; }
[data-theme="dark"] { --logo-plum: #FFFFFF; }
.xmark { display: inline-block; flex: none; width: 1em; height: 1em; overflow: visible; }
.xmark .xm-p { stroke: var(--logo-plum); }
.xmark .xm-v { stroke: var(--logo-violet); }
.marquee__item .xmark { width: 24px; height: 24px; }
.trait .xmark { width: 30px; height: 30px; }
.why__item .xmark { width: 30px; height: 30px; }
.film .xmark, .mri .xmark, .path--featured .xmark { --logo-plum: #FFFFFF; }
.xm__base { display: grid; place-items: center; }
.xm__base .xmark { position: relative; z-index: 1; width: 30px; height: 30px; margin-top: 18px; }
.xm__base::before { top: 16%; }

.quick { margin-top: 26px; padding: 16px; border-radius: 18px; background: var(--glass); border: 1px solid var(--border-strong); box-shadow: var(--shadow); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); max-width: 620px; }
.quick__head { margin: 0 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.quick__head strong { color: var(--heading); font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.quick__dot { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 0 4px rgba(34,197,94,0.18); }
.quick__row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: start; }
.quick__row .input { min-height: 50px; }
.quick__row .btn { min-height: 50px; white-space: nowrap; }
.quick__alt { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.quick__alt a { display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 500; }
.quick__alt svg { width: 16px; height: 16px; }
.quick .form__status:empty { display: none; }
.hero__trust { margin-top: 22px; }
@media (max-width: 640px) { .quick__row { grid-template-columns: 1fr; } .quick__row .btn { width: 100%; } }

/* ==========================================================================
   Mobile optimisation pass
   ========================================================================== */
.hp { position: absolute !important; inset: auto !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; border: 0 !important; overflow: hidden !important; clip-path: inset(50%) !important; opacity: 0; pointer-events: none; }
html, body { overflow-x: clip; }
.scan-wrap > *, .layout-aside > *, .split > *, .dx > *, .method > *, .hero__grid > *, .result > *, .result-cta > * { min-width: 0; }

/* hotspot labels anchored toward the centre so they never clip */
.hot--s .hot__label { left: auto; translate: none; inset-inline-start: -4px; }
.hot--e .hot__label { left: auto; translate: none; inset-inline-end: -4px; }
html[dir="rtl"] .hot--c .hot__label { left: auto; right: 50%; translate: 50% 0; }

@media (max-width: 960px) {
  #radar-live { display: none; }
  .scan-steps { padding-bottom: 6px; scrollbar-width: none; }
  .scan-steps::-webkit-scrollbar { display: none; }
  .scan-steps li { padding: 8px 10px; font-size: 14px; }
  .method__pin { margin-bottom: 0; }
  .gauge { width: 230px; }
  .gauge__core img { width: 30%; margin-bottom: 4px; }
  .gauge__title { font-size: 24px; }
}

@media (max-width: 640px) {
  .section { padding-block: 64px; }
  .section__head { margin-bottom: 28px; }
  .h-display { font-size: clamp(38px, 11vw, 48px); }
  .h-section { font-size: clamp(27px, 7.6vw, 34px); }
  .method-title { font-size: clamp(34px, 10vw, 44px); line-height: 1.15; }
  .hero__grid { padding-block: 34px 56px; gap: 40px; }
  .hero__method { font-size: 26px; margin-top: 12px; }
  .hero__ctas { margin-top: 24px; }
  .quick { padding: 14px; }

  /* X-ray machine */
  .xm__machine { aspect-ratio: 1 / 1.04; }
  .xm__bore { width: 70%; }
  .xm__ringtext { font-size: 14px; letter-spacing: 0.16em; }
  .hot__ring { width: 16px; height: 16px; }
  .hot__label { top: 21px; font-size: 10px; padding: 3px 6px; border-radius: 6px; }
  .xm__planlabel, .xm__growlabel { font-size: 11px; padding: 4px 8px; }
  .xm__status { bottom: 12%; padding: 5px 11px; font-size: 11.5px; }
  .xm__base { height: 11%; }
  .xm__base .xmark { width: 22px; height: 22px; margin-top: 12px; }
  .xm__controls { gap: 6px; }
  .phase-btn { min-height: 44px; font-size: 14px; }

  /* Symptom chips: show they scroll */
  .dx__list { -webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); padding-inline-end: 40px; }
  html[dir="rtl"] .dx__list { -webkit-mask-image: linear-gradient(270deg, #000 82%, transparent); mask-image: linear-gradient(270deg, #000 82%, transparent); }
  .film { padding: 22px 18px; border-radius: 22px; }
  .film__head { font-size: 10px; }
  .causes li { padding: 12px 14px; }

  /* Cards & icons */
  .path { padding: 22px; gap: 12px; }
  .path__icon { width: 60px; height: 60px; border-radius: 16px; }
  .path__badge { top: 16px; inset-inline-end: 16px; }
  .why__item { padding: 20px; }
  .why__item .xmark { width: 26px; height: 26px; }
  .why__item h3 { margin-top: 10px; }
  .sol { padding: 20px; }
  .trait { padding: 14px; gap: 12px; }
  .trait .xmark { width: 24px; height: 24px; }
  .drx-frame { max-width: 100%; aspect-ratio: 4 / 5; border-radius: 22px; }
  .marquee { padding: 14px 0; }
  .marquee__item { font-size: 18px; gap: 22px; padding-inline-end: 22px; }
  .marquee__item .xmark { width: 18px; height: 18px; }
  .report { padding: 20px; }
  .vcard--main { min-height: 240px; }
  .vcard--side { min-height: 190px; }
  .vcard__play { width: 62px; height: 62px; }
  .vcard--side .vcard__play { width: 48px; height: 48px; }
  .vcard__meta strong { font-size: 18px; }
  .faq summary { padding: 18px 0; font-size: 16.5px; }
  .faq summary::after { width: 30px; height: 30px; font-size: 18px; }
  .cta-band { padding: 28px 22px; border-radius: 24px; gap: 22px; }
  .cta-band::before, .cta-band::after { display: none; }
  .cta-band p { font-size: 16px; }
  .cta-band .btn { font-size: 15px; padding: 14px 16px; }
  .steps--3 li { padding: 18px; }
  .who span { padding: 10px 14px; font-size: 14px; }
  .footer { padding-block: 44px 30px; }

  /* Self-scan */
  .panel { padding: 20px; border-radius: 22px; }
  .q-title { font-size: 22px; margin-bottom: 16px; }
  .opt span { min-height: 54px; padding: 12px 14px; }
  .q-nav .btn { flex: 1; }
  .score-ring { width: 190px; height: 190px; }
  .score-ring__val strong { font-size: 50px; }
  .result { gap: 24px; }
  .result-cta { padding: 22px; border-radius: 22px; gap: 18px; }
  .result-cta h3 { font-size: 22px; }
}

@media (max-width: 380px) {
  .h-display { font-size: 36px; }
  .hero__method { font-size: 23px; }
  .phase-btn { font-size: 13px; padding: 6px; }
  .hot__label { font-size: 9.5px; }
}
