/* ============================================================
 PHARMAKOLOGY — Dr. Ahmed Elkhateeb
 Editorial B&W with one warm sage accent.
 ============================================================ */

:root {
 --black: #0B0B0A;
 --ink: #14110F;
 --ink-soft: #2A2622;
 --paper: #F4F1EA;
 --paper-2: #ECE8DE;
 --paper-3: #E5E0D5;
 --white: #FFFFFF;
 --grey-100: #E5E0D5;
 --grey-200: #D2CCBE;
 --grey-300: #B6B0A2;
 --grey-400: #8E8979;
 --grey-500: #6E6A60;
 --grey-700: #38352F;
 --rule: rgba(20, 17, 15, 0.12);
 --rule-strong: rgba(20, 17, 15, 0.22);

 --accent: #6EA7B8;  /* brand teal-blue */
 --accent-soft: #BFE6D3;  /* brand mint */
 --accent-pale: #EBF6F8;  /* brand pale */
 --accent-deep: #4A7E8E;  /* deeper teal */
 --whats: #25D366;
 --whats-deep: #128C7E;

 --serif: 'Alyamama', Georgia, serif;
 --sans:  'Alyamama', system-ui, -apple-system, sans-serif;
 --arabic: 'Alyamama', 'Noto Kufi Arabic', 'Tajawal', system-ui, sans-serif;
 --latin-num: 'Inter Tight', 'Inter', system-ui, sans-serif;

 --max-w: 1080px;
 --max-w-narrow: 640px;
 --max-w-wide: 1280px;

 --space-1: 0.5rem;
 --space-2: 1rem;
 --space-3: 1.5rem;
 --space-4: 2rem;
 --space-5: 2.5rem;
 --space-6: 3rem;
 --space-8: 4rem;
 --space-10: 5rem;
 --space-12: 6rem;
 --space-16: 8rem;

 --t: 320ms cubic-bezier(0.22, 1, 0.36, 1);
 --t-fast: 180ms cubic-bezier(0.22, 1, 0.36, 1);

 --container-px: 1.25rem;
 --shadow-1: 0 1px 2px rgba(20,17,15,0.04), 0 8px 24px rgba(20,17,15,0.06);
 --shadow-2: 0 4px 14px rgba(20,17,15,0.08), 0 24px 60px rgba(20,17,15,0.10);
}
@media (min-width: 768px) {
 :root { --container-px: 3rem; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
*::before, *::after { box-sizing: border-box; }
html {
 font-size: 16px;
 -webkit-font-smoothing: antialiased;
 -moz-osx-font-smoothing: grayscale;
 text-rendering: optimizeLegibility;
 scroll-behavior: smooth;
}
body {
 font-family: var(--sans);
 background: var(--paper);
 color: var(--ink);
 line-height: 1.6;
 font-weight: 400;
 min-height: 100vh;
 overflow-x: hidden;
}
html[dir="rtl"] body { font-family: var(--arabic); }
a { color: inherit; text-decoration: none; transition: opacity var(--t-fast); }
button { cursor: pointer; font-family: inherit; }
::selection { background: var(--ink); color: var(--paper); }
img { max-width: 100%; display: block; }

/* ============================================ LAYOUT ============================================ */
.container {
 max-width: var(--max-w); margin: 0 auto;
 padding: 0 var(--container-px); position: relative;
}
.container-narrow {
 max-width: var(--max-w-narrow); margin: 0 auto;
 padding: 0 var(--container-px); position: relative;
}
.container-wide {
 max-width: var(--max-w-wide); margin: 0 auto;
 padding: 0 var(--container-px); position: relative;
}

/* ============================================ ANNOUNCEMENT BAR ============================================ */
.announce {
 background: var(--ink);
 color: var(--paper);
 padding: 0.55rem var(--container-px);
 font-size: 0.78rem;
 letter-spacing: 0.04em;
 text-align: center;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 0.7rem;
 position: relative;
 overflow: hidden;
}
html[dir="rtl"] .announce { font-size: 0.86rem; letter-spacing: 0; }
.announce strong { color: var(--accent-soft); font-weight: 600; }
.announce .pulse-dot {
 width: 7px; height: 7px;
 background: var(--accent);
 border-radius: 999px;
 flex-shrink: 0;
 position: relative;
}
.announce .pulse-dot::after {
 content: ""; position: absolute; inset: -4px;
 border-radius: 999px;
 background: var(--accent);
 opacity: 0.4;
 animation: pulseRing 1.8s cubic-bezier(0.22,1,0.36,1) infinite;
}
@keyframes pulseRing {
 0% { transform: scale(0.7); opacity: 0.55; }
 100% { transform: scale(1.8); opacity: 0; }
}
.announce a { text-decoration: underline; text-underline-offset: 3px; opacity: 0.9; }
.announce a:hover { opacity: 1; }

/* ============================================ HEADER ============================================ */
.site-header {
 position: sticky; top: 0; z-index: 100;
 background: rgba(244, 241, 234, 0.90);
 backdrop-filter: saturate(160%) blur(14px);
 -webkit-backdrop-filter: saturate(160%) blur(14px);
 border-bottom: 1px solid var(--rule);
}
.site-header-inner {
 display: flex; align-items: center; justify-content: space-between;
 height: 64px;
 max-width: var(--max-w-wide); margin: 0 auto;
 padding: 0 var(--container-px);
}
@media (min-width: 768px) { .site-header-inner { height: 72px; } }

.brand-lockup { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ink); }
.brand-wordmark { height: 28px; width: auto; display: block; object-fit: contain; aspect-ratio: 1056/362; }
.brand-wordmark-lg { height: 36px; }
@media (min-width: 768px) { .brand-wordmark { height: 32px; } }
.site-footer .brand-wordmark { filter: brightness(0) invert(1); }
.brand-mono {
 width: 32px; height: 32px;
 border-radius: 999px;
 background: var(--ink);
 color: var(--paper);
 display: inline-flex; align-items: center; justify-content: center;
 font-family: var(--serif); font-style: italic; font-weight: 400;
 font-size: 1.05rem;
}
.brand-mark {
 font-family: var(--serif);
 font-weight: 400;
 letter-spacing: -0.02em;
 font-size: 1.2rem;
 color: var(--ink);
}
html[dir="rtl"] .brand-mark { font-family: var(--arabic); font-weight: 700; font-size: 1.05rem; letter-spacing: 0; }

.nav-links {
 display: none;
 list-style: none;
 gap: var(--space-4);
 align-items: center;
}
.nav-links a {
 font-size: 0.85rem;
 color: var(--grey-500);
 position: relative;
 padding: 0.4rem 0.1rem;
 font-weight: 500;
 letter-spacing: 0.01em;
}
html[dir="rtl"] .nav-links a { font-size: 0.95rem; letter-spacing: 0; font-weight: 600; }
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a[aria-current="page"]::after {
 content: ""; position: absolute;
 inset-inline: 0;
 bottom: -2px; height: 1px;
 background: var(--ink);
}
@media (min-width: 768px) { .nav-links { display: flex; } }

.header-right { display: flex; gap: 0.4rem; align-items: center; }
.header-cta {
 display: none;
 background: var(--ink); color: var(--paper);
 padding: 0.55rem 1rem;
 font-size: 0.82rem; font-weight: 500;
 letter-spacing: 0.04em;
 border: 1px solid var(--ink);
 transition: all var(--t-fast);
 align-items: center; gap: 0.45rem;
}
.header-cta:hover { background: transparent; color: var(--ink); }
html[dir="rtl"] .header-cta { font-size: 0.92rem; letter-spacing: 0; font-weight: 600; }
@media (min-width: 900px) { .header-cta { display: inline-flex; } }

.lang-toggle {
 background: transparent; border: 0;
 color: var(--ink);
 padding: 0.5rem 0.7rem;
 font-size: 0.78rem;
 font-weight: 500;
 font-family: var(--sans);
 letter-spacing: 0.06em;
 border-bottom: 1px solid transparent;
 transition: border-color var(--t-fast);
 border-radius: 0;
}
.lang-toggle:hover { border-bottom-color: var(--ink); }

.menu-toggle {
 display: inline-flex;
 background: transparent; border: 0;
 width: 36px; height: 36px;
 align-items: center; justify-content: center;
 color: var(--ink);
}
@media (min-width: 768px) { .menu-toggle { display: none; } }

.mobile-menu {
 position: fixed;
 inset: 64px 0 0 0;
 background: #F4F1EA;
 display: none;
 flex-direction: column;
 padding: var(--space-4);
 z-index: 200;
 overflow-y: auto;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
 font-family: var(--serif);
 font-size: 1.05rem;
 font-weight: 500;
 padding: 0.85rem 0;
 border-bottom: 1px solid var(--rule);
 color: var(--ink);
}
html[dir="rtl"] .mobile-menu a { font-family: var(--arabic); font-weight: 700; }
.mobile-menu .btn { margin-top: var(--space-3); }
.mobile-menu .mobile-socials {
 margin-top: auto;
 padding-top: var(--space-4);
 display: flex;
 gap: var(--space-3);
 font-size: 0.86rem;
 color: var(--grey-500);
}

/* ============================================ TYPOGRAPHY ============================================ */
.display-1 {
 font-family: var(--serif);
 font-size: clamp(2.4rem, 7.2vw, 5rem);
 font-weight: 350;
 line-height: 1.04;
 letter-spacing: -0.025em;
 margin-bottom: var(--space-3);
 color: var(--ink);
 text-wrap: pretty;
}
.display-2 {
 font-family: var(--serif);
 font-size: clamp(1.85rem, 4.6vw, 3rem);
 font-weight: 400;
 line-height: 1.12;
 letter-spacing: -0.02em;
 margin-bottom: var(--space-3);
 color: var(--ink);
 text-wrap: pretty;
}
.display-3 {
 font-family: var(--serif);
 font-size: clamp(1.25rem, 2.4vw, 1.5rem);
 font-weight: 450;
 line-height: 1.3;
 letter-spacing: -0.012em;
 margin-bottom: var(--space-2);
 color: var(--ink);
}
.italic-soft { font-style: normal; font-weight: 500; color: var(--grey-700); }
em, i, .display-1 em, .display-2 em, .display-3 em { font-style: normal; }
.numeric-ui, .price, .price-was, .stat-value, .total-value, .why-num, .process-rail-dot, .slider-value { font-family: var(--latin-num) !important; font-feature-settings: "lnum","tnum" !important; font-variant-numeric: lining-nums tabular-nums; unicode-bidi: plaintext; direction: ltr; }

html[dir="rtl"] .display-1 { font-family: var(--arabic); font-weight: 700; line-height: 1.4; letter-spacing: 0; font-size: clamp(1.9rem, 6.5vw, 3.8rem); }
html[dir="rtl"] .display-2 { font-family: var(--arabic); font-weight: 700; line-height: 1.45; letter-spacing: 0; font-size: clamp(1.6rem, 4.4vw, 2.6rem); }
html[dir="rtl"] .display-3 { font-family: var(--arabic); font-weight: 700; line-height: 1.5; letter-spacing: 0; }
html[dir="rtl"] .italic-soft { font-style: normal; font-weight: 500; color: var(--grey-500); }

.eyebrow {
 font-size: 0.74rem;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 font-weight: 500;
 color: var(--grey-500);
 margin-bottom: var(--space-3);
 display: inline-flex;
 align-items: center;
 gap: 0.55rem;
}
.eyebrow::before {
 content: "";
 width: 18px; height: 1px;
 background: var(--accent-deep);
}
html[dir="rtl"] .eyebrow { letter-spacing: 0.04em; text-transform: none; font-size: 0.86rem; font-weight: 600; }

.lede {
 font-size: clamp(1.05rem, 1.5vw, 1.18rem);
 line-height: 1.65;
 color: var(--grey-700);
 max-width: 36rem;
 font-weight: 400;
}
html[dir="rtl"] .lede { line-height: 1.95; }

/* ============================================ SECTIONS ============================================ */
.section { padding: var(--space-10) 0; position: relative; }
@media (min-width: 768px) { .section { padding: var(--space-12) 0; } }
.section-bordered { border-top: 1px solid var(--rule); }
.section-tinted { background: var(--paper-2); }
.section-dark { background: var(--ink); color: var(--paper); }
.section-dark .display-2, .section-dark .display-3, .section-dark .display-1 { color: var(--paper); }
.section-dark .lede, .section-dark p { color: rgba(244,241,234,0.78); }
.section-dark .eyebrow { color: var(--accent-soft); }
.section-dark .eyebrow::before { background: var(--accent); }

/* ============================================ GRID ============================================ */
.grid { display: grid; gap: var(--space-3); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr 1fr; }
@media (min-width: 768px) {
 .grid { gap: var(--space-5); }
 .grid-2 { grid-template-columns: repeat(2, 1fr); }
 .grid-3 { grid-template-columns: repeat(3, 1fr); }
 .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================ HERO ============================================ */
.hero { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.hero-primary {
 display: grid;
 grid-template-columns: 1fr;
 gap: var(--space-5);
 align-items: end;
}
@media (min-width: 900px) {
 .hero-primary {
 grid-template-columns: 1.4fr 1fr;
 gap: var(--space-8);
 align-items: center;
 }
}
.hero-portrait-frame {
 position: relative;
 aspect-ratio: 4/5;
 max-width: 460px;
 margin: 0 auto;
 display: flex; align-items: flex-end; justify-content: center;
}
.hero-portrait-frame::before {
 content: "";
 position: absolute;
 inset: 8% 6% 0 6%;
 background: var(--accent-soft);
 border-radius: 999px 999px 8px 8px;
 opacity: 0.55;
 z-index: 0;
}
.hero-portrait-frame img {
 position: relative; z-index: 1;
 width: 100%;
 height: 100%;
 object-fit: contain;
 object-position: center bottom;
 filter: drop-shadow(0 30px 50px rgba(43, 60, 53, 0.18)) saturate(0.7);
}
.hero-portrait-tag {
 position: absolute; z-index: 2;
 inset-block-start: var(--space-2);
 inset-inline-end: var(--space-2);
 background: var(--paper);
 border: 1px solid var(--rule);
 padding: 0.5rem 0.85rem;
 font-size: 0.74rem;
 letter-spacing: 0.08em;
 text-transform: uppercase;
 display: inline-flex;
 align-items: center;
 gap: 0.5rem;
}
.hero-portrait-tag::before {
 content: ""; width: 6px; height: 6px;
 background: var(--accent); border-radius: 999px;
}
html[dir="rtl"] .hero-portrait-tag { letter-spacing: 0; text-transform: none; font-size: 0.78rem; }

.hero-mobile-portrait { display: none; }
.hero-mobile-portrait img {
 width: 100%; height: 100%; object-fit: contain;
 object-position: center bottom;
}

@media (max-width: 900px) {
 .hero { padding-top: var(--space-3); padding-bottom: var(--space-4); }
 .hero-primary { gap: var(--space-2); align-items: center; }
 .hero-primary > div:first-child { display: block; }
 .hero-desktop-portrait { display: none; }
 .hero-mobile-portrait {
 display: block;
 float: left;
 width: min(38vw, 150px);
 height: min(48vw, 190px);
 margin: 0.2rem 0 var(--space-2) var(--space-2);
 filter: drop-shadow(0 16px 28px rgba(43, 60, 53, 0.13)) saturate(0.72);
 position: relative;
 }
 html[dir="rtl"] .hero-mobile-portrait { float: right; margin: 0.2rem var(--space-2) var(--space-2) 0; }
}
@media (max-width: 420px) {
 .hero-mobile-portrait { width: min(36vw, 126px); height: min(48vw, 168px); }
 .hero .display-1 { font-size: clamp(1.85rem, 8vw, 2.45rem); }
 .hero .lede { font-size: 0.98rem; line-height: 1.85; }
 .hero .btn { min-height: 48px; }
}

.hero-trust {
 margin-top: var(--space-4);
 display: flex; flex-wrap: wrap; gap: var(--space-3);
 font-size: 0.84rem; color: var(--grey-500);
 align-items: center;
}
html[dir="rtl"] .hero-trust { font-size: 0.92rem; }
.hero-trust-item {
 display: inline-flex; align-items: center; gap: 0.45rem;
}
.hero-trust-item svg {
 color: var(--accent-deep);
 flex-shrink: 0;
}

/* ============================================ FORMS ============================================ */
.form { display: flex; flex-direction: column; gap: var(--space-3); }
.form-row { display: grid; gap: var(--space-3); }
.form-row-2 { grid-template-columns: 1fr; }
.form-row-3 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
 .form-row-2 { grid-template-columns: repeat(2, 1fr); }
 .form-row-3 { grid-template-columns: repeat(3, 1fr); }
}
.field { display: flex; flex-direction: column; }
.field-label {
 font-size: 0.82rem;
 margin-bottom: 0.55rem;
 font-weight: 500;
 color: var(--ink);
 letter-spacing: 0.01em;
}
html[dir="rtl"] .field-label { font-size: 0.94rem; font-weight: 600; }
.field-label .req { margin-inline-start: 0.25rem; color: var(--accent-deep); }
.field-hint {
 font-size: 0.86rem;
 color: var(--grey-500);
 margin-bottom: 0.6rem;
 line-height: 1.55;
}
html[dir="rtl"] .field-hint { font-size: 0.92rem; line-height: 1.85; }

.input, .textarea, .select {
 width: 100%;
 border: 1px solid var(--grey-300);
 background: var(--white);
 padding: 0.85rem 0.9rem;
 font-size: 1rem;
 font-family: inherit;
 color: var(--ink);
 border-radius: 0;
 transition: border-color var(--t), box-shadow var(--t);
}
.input::placeholder, .textarea::placeholder { color: var(--grey-400); }
.input:hover, .textarea:hover, .select:hover { border-color: var(--ink); }
.input:focus, .textarea:focus, .select:focus {
 outline: none;
 border-color: var(--ink);
 box-shadow: inset 0 0 0 1px var(--ink);
}
.textarea { resize: vertical; min-height: 6.5rem; line-height: 1.65; padding: 0.85rem 0.9rem; }
html[dir="rtl"] .textarea { line-height: 1.9; }
.select {
 appearance: none;
 background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="10" height="6" viewBox="0 0 10 6"><path fill="%2314110F" d="M5 6L0 0h10z"/></svg>');
 background-repeat: no-repeat;
 background-position: right 0.85rem center;
 background-color: var(--white);
 padding-inline-end: 2.1rem;
}
html[dir="rtl"] .select { background-position: left 0.85rem center; }

input[type="range"] {
 -webkit-appearance: none; appearance: none;
 width: 100%;
 height: 2px;
 background: var(--grey-200);
 outline: none;
 margin: 1rem 0 0.4rem;
 cursor: pointer;
 border-radius: 999px;
}
input[type="range"]::-webkit-slider-thumb {
 -webkit-appearance: none; appearance: none;
 width: 22px; height: 22px;
 background: var(--paper);
 border: 2px solid var(--ink);
 border-radius: 50%;
 cursor: pointer;
 transition: transform var(--t-fast), background var(--t-fast);
 box-shadow: 0 2px 8px rgba(20,17,15,0.10);
}
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.1); background: var(--accent-soft); }
input[type="range"]::-moz-range-thumb {
 width: 22px; height: 22px;
 background: var(--paper);
 border: 2px solid var(--ink);
 border-radius: 50%;
 cursor: pointer;
}
.slider-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 0.45rem; gap: 1rem; }
.slider-value {
 font-family: var(--serif);
 font-size: 1.6rem; font-weight: 400;
 color: var(--ink);
 font-feature-settings: "tnum";
 min-width: 2ch;
 text-align: end;
}
.slider-bounds {
 display: flex; justify-content: space-between;
 font-size: 0.74rem;
 color: var(--grey-500);
 margin-top: 0.4rem;
 letter-spacing: 0.04em;
}
html[dir="rtl"] .slider-bounds { font-size: 0.84rem; letter-spacing: 0; }

.chip-group { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.chip {
 background: var(--white); color: var(--ink);
 border: 1px solid var(--grey-300);
 padding: 0.6rem 1rem;
 font-size: 0.92rem;
 cursor: pointer;
 font-family: inherit;
 border-radius: 999px;
 transition: all var(--t-fast);
 user-select: none;
 display: inline-flex; align-items: center; gap: 0.4rem;
}
html[dir="rtl"] .chip { font-size: 0.98rem; }
.chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] {
 background: var(--ink); color: var(--paper);
 border-color: var(--ink);
}
.chip[aria-pressed="true"]::before {
 content: "✓";
 font-size: 0.78rem;
 color: var(--accent);
}

/* ============================================ BUTTONS ============================================ */
.btn {
 display: inline-flex;
 align-items: center; justify-content: center;
 gap: 0.6rem;
 padding: 1rem 1.6rem;
 font-size: 0.92rem;
 font-weight: 500;
 letter-spacing: 0.04em;
 border: 1px solid var(--ink);
 background: var(--ink);
 color: var(--paper);
 cursor: pointer;
 font-family: inherit;
 border-radius: 999px;
 transition: all var(--t);
 text-decoration: none;
 position: relative;
 overflow: hidden;
}
html[dir="rtl"] .btn { font-size: 0.98rem; letter-spacing: 0; font-weight: 600; }
.btn:hover { background: transparent; color: var(--ink); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: var(--paper); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn-whats {
 background: var(--whats);
 border-color: var(--whats);
 color: var(--white);
}
.btn-whats:hover {
 background: var(--whats-deep);
 border-color: var(--whats-deep);
 color: var(--white);
}
.btn-link {
 background: none; border: none;
 color: var(--ink);
 font-size: 0.9rem; font-weight: 500;
 text-decoration: none;
 padding: 0.4rem 0;
 border-bottom: 1px solid var(--ink);
 border-radius: 0;
 align-self: flex-start;
}
html[dir="rtl"] .btn-link { font-size: 0.96rem; font-weight: 600; }
.btn-link:hover { opacity: 0.6; }

/* ============================================ CARDS ============================================ */
.card {
 border: 1px solid var(--rule);
 background: var(--white);
 padding: var(--space-3);
 border-radius: 4px;
 transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
@media (min-width: 768px) { .card { padding: var(--space-4); } }
.card-dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.why-card {
 display: flex; flex-direction: column; gap: var(--space-2);
 padding: var(--space-4);
 border-top: 2px solid var(--ink);
 border-inline-start: 1px solid var(--rule);
 border-inline-end: 1px solid var(--rule);
 border-bottom: 1px solid var(--rule);
 background: var(--white);
}
.why-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-1); }
.why-card .why-num {
 font-family: var(--serif);
 font-size: 1rem;
 font-weight: 400;
 font-style: italic;
 color: var(--accent-deep);
 letter-spacing: 0;
 font-feature-settings:'tnum';
}

/* PRICING */
.pricing-card {
 display: flex; flex-direction: column;
 height: 100%; position: relative;
 padding: var(--space-4);
 border: 1px solid var(--rule);
 background: var(--white);
 border-radius: 4px;
}
.pricing-card .price {
 font-family: var(--serif);
 font-size: 3rem;
 font-weight: 350;
 letter-spacing: -0.025em;
 margin: var(--space-2) 0 0;
 color: var(--ink);
 font-feature-settings: "tnum";
 line-height: 1;
}
.pricing-card .price-was {
 font-size: 1.1rem;
 color: var(--grey-500);
 text-decoration: line-through;
 font-weight: 400;
 margin-inline-start: 0.55rem;
 letter-spacing: 0;
}
.pricing-card .price-suffix {
 display: block;
 margin-top: 0.4rem;
 font-family: var(--sans);
 font-size: 0.85rem;
 color: var(--grey-500);
 font-weight: 400;
 letter-spacing: 0;
}
html[dir="rtl"] .pricing-card .price-suffix { font-family: var(--arabic); font-size: 0.92rem; }
.pricing-card ul { list-style: none; padding: 0; margin: var(--space-3) 0; flex: 1; }
.pricing-card ul li {
 padding: 0.7rem 0;
 border-bottom: 1px solid var(--rule);
 font-size: 0.94rem;
 display: flex; align-items: flex-start; gap: 0.7rem;
 line-height: 1.55;
}
html[dir="rtl"] .pricing-card ul li { font-size: 1rem; line-height: 1.8; }
.pricing-card ul li:last-child { border-bottom: 0; }
.pricing-card .check {
 flex-shrink: 0;
 width: 18px; height: 18px;
 border-radius: 999px;
 background: var(--accent);
 color: var(--white);
 display: inline-flex; align-items: center; justify-content: center;
 margin-top: 0.18rem;
}
.pricing-card .check svg { display: block; }
.featured-card {
 background: var(--ink); color: var(--paper);
 border-color: var(--ink);
 box-shadow: var(--shadow-2);
}
.featured-card .price { color: var(--paper); }
.featured-card .price-suffix { color: rgba(244,241,234,0.65); }
.featured-card .check { background: var(--accent); color: var(--ink); }
.featured-card ul li { border-bottom-color: rgba(255,255,255,0.10); }
.featured-card .price-was { color: rgba(244,241,234,0.5); }
.badge {
 position: absolute;
 top: -12px;
 inset-inline-end: var(--space-3);
 background: var(--accent);
 color: var(--ink);
 padding: 0.35rem 0.85rem;
 font-size: 0.72rem;
 letter-spacing: 0.1em;
 text-transform: uppercase;
 font-weight: 700;
 border-radius: 999px;
}
html[dir="rtl"] .badge { font-size: 0.82rem; letter-spacing: 0; }

/* ============================================ STATS ============================================ */
.stats-list {
 list-style: none;
 margin: 0;
 padding: 0;
 display: grid;
 grid-template-columns: repeat(2, 1fr);
 gap: 0;
 border-top: 1px solid var(--rule);
 border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) { .stats-list { grid-template-columns: repeat(4, 1fr); } }
.stat-item {
 padding: var(--space-3);
 border-inline-end: 1px solid var(--rule);
 border-bottom: 1px solid var(--rule);
}
@media (min-width: 768px) { .stat-item { border-bottom: none; padding: var(--space-4); } }
.stat-item:nth-child(2n) { border-inline-end: none; }
@media (min-width: 768px) {
 .stat-item:nth-child(2n) { border-inline-end: 1px solid var(--rule); }
 .stat-item:last-child { border-inline-end: none; }
}
.stat-item .stat-value {
 font-family: var(--serif);
 font-size: clamp(1.85rem, 3.2vw, 2.6rem);
 font-weight: 350;
 letter-spacing: -0.025em;
 line-height: 1;
 color: var(--ink);
 font-feature-settings: "tnum";
 display: inline-flex;
 align-items: center;
 gap: 0.55rem;
}
.stat-item .stat-icon {
 width: clamp(1.6rem, 2.5vw, 2.1rem);
 height: clamp(1.6rem, 2.5vw, 2.1rem);
 flex-shrink: 0;
 color: var(--accent-deep);
 opacity: 0.95;
}
.stat-item .stat-label {
 font-size: 0.78rem;
 color: var(--grey-500);
 margin-top: 0.85rem;
 letter-spacing: 0.04em;
 text-transform: uppercase;
 display: block;
}
html[dir="rtl"] .stat-item .stat-label { font-size: 0.9rem; letter-spacing: 0; text-transform: none; }
.numeric-ui {
 direction: ltr;
 unicode-bidi: isolate;
 font-family: var(--sans);
 font-variant-numeric: tabular-nums;
}

/* ============================================ ABOUT ============================================ */
.about-credentials {
 display: flex; align-items: center; gap: var(--space-3);
 margin-bottom: var(--space-4);
}
.about-portrait {
 width: 64px; height: 64px;
 background: var(--paper-2);
 border: 1px solid var(--rule);
 overflow: hidden;
 display: inline-flex; align-items: center; justify-content: center;
 flex-shrink: 0;
 border-radius: 50%;
}
.about-portrait img { width: 100%; height: 100%; object-fit: cover; }
.about-credentials .name {
 font-family: var(--serif); font-weight: 450;
 font-size: 1.3rem; color: var(--ink);
 margin-bottom: 0.2rem;
 letter-spacing: -0.012em;
}
html[dir="rtl"] .about-credentials .name { font-family: var(--arabic); font-weight: 700; }
.about-credentials .title { font-size: 0.86rem; color: var(--grey-500); line-height: 1.5; }
html[dir="rtl"] .about-credentials .title { font-size: 0.94rem; }

/* ============================================ PROCESS RAIL ============================================ */
.process-rail {
 position: relative;
 list-style: none;
 margin: 0; padding: 0;
 padding-inline-start: clamp(2.75rem, 8vw, 3.75rem);
}
.process-rail-item {
 position: relative;
 padding-bottom: var(--space-6);
}
.process-rail-item:last-child { padding-bottom: 0; }
.process-rail-item::before {
 content: "";
 position: absolute;
 inset-inline-start: calc(clamp(2.75rem, 8vw, 3.75rem) * -1 + 1.05rem);
 top: 2.4rem; bottom: -0.4rem;
 width: 0;
 border-inline-start: 1.5px dotted var(--ink);
 opacity: 0.28;
}
.process-rail-item:last-child::before { display: none; }
.process-rail-dot {
 position: absolute;
 inset-inline-start: calc(clamp(2.75rem, 8vw, 3.75rem) * -1);
 top: 0.1rem;
 width: 2.1rem; height: 2.1rem;
 display: inline-flex; align-items: center; justify-content: center;
 border-radius: 50%;
 background: var(--paper);
 border: 1.5px solid var(--ink);
 color: var(--ink);
 font-family: var(--serif);
 font-size: 0.95rem; font-weight: 500;
 font-feature-settings: "lnum";
 line-height: 1; letter-spacing: 0;
 z-index: 1;
}
.process-rail-item h3 { margin: 0 0 0.5rem; line-height: 1.15; }
.process-rail-item p { margin: 0; max-width: 56ch; color: var(--grey-700); }
@media (min-width: 700px) {
 .process-rail { padding-inline-start: 4.25rem; }
 .process-rail-item { padding-bottom: var(--space-8); }
 .process-rail-item::before { inset-inline-start: -3rem; top: 2.8rem; }
 .process-rail-dot {
 inset-inline-start: -4.25rem;
 width: 2.5rem; height: 2.5rem;
 font-size: 1.05rem; top: 0.15rem;
 }
}

/* ============================================ FIT LIST ============================================ */
.fit-list { list-style: none; padding: 0; margin: 0; }
.fit-list li {
 padding: 0.85rem 0;
 border-bottom: 1px solid var(--rule);
 display: flex; align-items: flex-start; gap: 0.75rem;
 font-size: 0.96rem; line-height: 1.6;
}
html[dir="rtl"] .fit-list li { font-size: 1rem; line-height: 1.85; }
.fit-list li:last-child { border-bottom: 0; }
.fit-list .mark {
 flex-shrink: 0;
 margin-top: 0.35rem;
 width: 16px; height: 16px;
 border-radius: 999px;
 display: inline-flex; align-items: center; justify-content: center;
 color: var(--paper);
}
.fit-list .mark-yes { background: var(--accent-deep); }
.fit-list .mark-no { background: transparent; border: 1px solid var(--grey-400); color: var(--grey-400); }
.card-dark .fit-list li { border-bottom-color: rgba(255,255,255,0.12); }
.card-dark .fit-list .mark-no { border-color: rgba(255,255,255,0.4); color: rgba(255,255,255,0.7); }

/* ============================================ TESTIMONIALS ============================================ */
.testimonials-grid {
 display: grid;
 grid-template-columns: 1fr;
 gap: var(--space-3);
}
@media (min-width: 768px) { .testimonials-grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); } }
.testimonial {
 padding: var(--space-4);
 border: 1px solid var(--rule);
 background: var(--white);
 display: flex; flex-direction: column; gap: var(--space-3);
}
.testimonial-quote {
 font-family: var(--serif);
 font-size: 1.18rem;
 line-height: 1.5;
 color: var(--ink);
 font-weight: 400;
 letter-spacing: -0.01em;
 flex: 1;
 text-wrap: pretty;
}
html[dir="rtl"] .testimonial-quote {
 font-family: var(--arabic);
 font-weight: 500;
 font-size: 1.05rem;
 line-height: 1.85;
 letter-spacing: 0;
}
.testimonial-quote::before {
 content: "“";
 font-size: 2.4rem;
 line-height: 0;
 margin-inline-end: 0.05em;
 vertical-align: -0.35em;
 color: var(--accent-deep);
 font-weight: 400;
}
html[dir="rtl"] .testimonial-quote::before { content: "”"; }
.testimonial-meta {
 display: flex; align-items: center; gap: 0.7rem;
 border-top: 1px solid var(--rule);
 padding-top: var(--space-2);
}
.testimonial-avatar {
 width: 40px; height: 40px;
 border-radius: 999px;
 background: var(--accent-soft);
 display: inline-flex; align-items: center; justify-content: center;
 font-family: var(--serif);
 font-style: italic;
 font-size: 1.05rem;
 color: var(--accent-deep);
 font-weight: 500;
 flex-shrink: 0;
}
.testimonial-name {
 font-weight: 600; font-size: 0.9rem; color: var(--ink);
}
.testimonial-where { font-size: 0.78rem; color: var(--grey-500); margin-top: 0.1rem; }
html[dir="rtl"] .testimonial-name { font-size: 1rem; }
html[dir="rtl"] .testimonial-where { font-size: 0.86rem; }

/* ============================================ FAQ ============================================ */
.faq-item { border-bottom: 1px solid var(--rule); }
.faq-item summary {
 font-family: var(--serif);
 font-weight: 450;
 font-size: 1.1rem;
 cursor: pointer;
 padding: var(--space-3) 0;
 list-style: none;
 position: relative;
 padding-inline-end: 2rem;
 color: var(--ink);
 transition: color var(--t-fast);
}
html[dir="rtl"] .faq-item summary { font-family: var(--arabic); font-weight: 700; font-size: 1.05rem; }
.faq-item summary:hover { color: var(--accent-deep); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
 content: "+";
 position: absolute;
 inset-inline-end: 0; top: 50%;
 transform: translateY(-50%);
 font-family: var(--serif);
 font-weight: 300;
 font-size: 1.4rem;
 color: var(--grey-500);
 transition: transform var(--t);
 line-height: 1;
}
.faq-item[open] summary::after { content: "\2013"; }
.faq-item p {
 color: var(--grey-700);
 margin-top: 0; padding-bottom: var(--space-3);
 padding-inline-end: 2rem;
 line-height: 1.75;
 font-size: 0.98rem;
}
html[dir="rtl"] .faq-item p { line-height: 1.95; font-size: 1rem; }

/* ============================================ APPLY METER ============================================ */
.apply-meter {
 background: transparent;
 padding: 0.6rem 0;
 margin-bottom: var(--space-4);
 display: flex; align-items: center; gap: var(--space-2);
 border-bottom: 1px solid var(--rule);
}
.apply-meter-bar {
 flex: 1; height: 3px;
 background: var(--grey-200);
 position: relative;
 border-radius: 999px;
 overflow: hidden;
}
.apply-meter-fill {
 position: absolute; inset: 0;
 inset-inline-end: auto;
 width: 0%;
 background: var(--accent-deep);
 transition: width 500ms cubic-bezier(0.22, 1, 0.36, 1);
 border-radius: 999px;
}
.apply-meter-label {
 font-size: 0.78rem;
 color: var(--grey-500);
 font-weight: 500; white-space: nowrap;
 letter-spacing: 0.04em;
}
html[dir="rtl"] .apply-meter-label { font-size: 0.86rem; letter-spacing: 0; font-weight: 600; }
.tier-pill {
 display: inline-flex; align-items: center; gap: 0.5rem;
 padding: 0.5rem 0.9rem;
 background: var(--paper-2);
 border: 1px solid var(--rule);
 border-radius: 999px;
 font-size: 0.86rem; font-weight: 500;
 color: var(--ink);
 letter-spacing: 0.02em;
}
.tier-pill svg { color: var(--accent-deep); }
html[dir="rtl"] .tier-pill { font-size: 0.94rem; letter-spacing: 0; font-weight: 600; }

/* ============================================ CTA STRIP ============================================ */
.cta-strip {
 border-top: 1px solid var(--rule);
 border-bottom: 1px solid var(--rule);
 padding: var(--space-8) 0;
 background: var(--paper-2);
}
.cta-strip a.cta-link {
 display: inline-flex;
 align-items: center; gap: 0.65rem;
 font-family: var(--serif); font-weight: 400;
 font-size: clamp(1.5rem, 2.6vw, 2rem);
 color: var(--ink);
 letter-spacing: -0.018em;
 border-bottom: 1px solid var(--ink);
 padding-bottom: 0.2rem;
 transition: opacity var(--t-fast);
}
html[dir="rtl"] .cta-strip a.cta-link { font-family: var(--arabic); font-weight: 700; }
.cta-strip a.cta-link:hover { opacity: 0.6; }
.cta-strip a.cta-link svg { transition: transform var(--t); }
.cta-strip a.cta-link:hover svg { transform: translateX(4px); }
html[dir="rtl"] .cta-strip a.cta-link svg { transform: scaleX(-1); }
html[dir="rtl"] .cta-strip a.cta-link:hover svg { transform: scaleX(-1) translateX(4px); }

/* ============================================ FOOTER ============================================ */
.site-footer {
 border-top: 1px solid var(--rule);
 padding: var(--space-8) 0 var(--space-4);
 font-size: 0.84rem;
 color: var(--grey-500);
 background: var(--paper);
}
.footer-grid {
 display: grid;
 grid-template-columns: 1fr;
 gap: var(--space-5);
 margin-bottom: var(--space-6);
}
@media (min-width: 768px) {
 .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--space-5); }
}
.footer-col h4 {
 font-size: 0.74rem;
 letter-spacing: 0.18em;
 text-transform: uppercase;
 font-weight: 600;
 color: var(--ink);
 margin-bottom: var(--space-2);
}
html[dir="rtl"] .footer-col h4 { letter-spacing: 0.04em; text-transform: none; font-size: 0.88rem; }
.footer-col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.footer-col a { color: var(--grey-700); transition: color var(--t-fast); }
.footer-col a:hover { color: var(--ink); }
.footer-col p { color: var(--grey-700); line-height: 1.7; max-width: 26rem; }
.footer-bottom {
 padding-top: var(--space-3);
 border-top: 1px solid var(--rule);
 display: flex; flex-direction: column;
 gap: var(--space-2);
 align-items: flex-start;
 font-size: 0.82rem;
}
@media (min-width: 768px) {
 .footer-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

/* ============================================ STICKY MOBILE CTA / WHATSAPP FAB ============================================ */
.fab-whats {
 position: fixed;
 bottom: 1.1rem;
 inset-inline-end: 1.1rem;
 width: 56px; height: 56px;
 border-radius: 999px;
 background: var(--whats);
 color: var(--white);
 display: inline-flex; align-items: center; justify-content: center;
 z-index: 90;
 box-shadow: 0 14px 36px rgba(18, 140, 126, 0.35), 0 4px 10px rgba(0,0,0,0.12);
 transition: transform var(--t-fast), box-shadow var(--t-fast);
 border: 0;
 text-decoration: none;
}
.fab-whats::after {
 content: "";
 position: absolute; inset: -6px;
 border-radius: 999px;
 border: 2px solid var(--whats);
 opacity: 0.4;
 animation: pulseRing 2.4s cubic-bezier(0.22,1,0.36,1) infinite;
 pointer-events: none;
}
.fab-whats:hover {
 transform: translateY(-2px) scale(1.04);
 box-shadow: 0 18px 44px rgba(18, 140, 126, 0.45), 0 4px 10px rgba(0,0,0,0.14);
}
.fab-whats svg { width: 26px; height: 26px; }

/* tooltip on the FAB */
.fab-whats-tooltip {
 position: absolute;
 inset-inline-end: 100%;
 margin-inline-end: 0.7rem;
 top: 50%;
 transform: translateY(-50%);
 background: var(--ink);
 color: var(--paper);
 font-size: 0.78rem;
 letter-spacing: 0.02em;
 padding: 0.45rem 0.75rem;
 border-radius: 999px;
 white-space: nowrap;
 opacity: 0;
 transition: opacity var(--t-fast);
 pointer-events: none;
}
html[dir="rtl"] .fab-whats-tooltip { font-size: 0.86rem; }
.fab-whats:hover .fab-whats-tooltip { opacity: 1; }

@media (max-width: 768px) {
 .fab-whats { bottom: 5.2rem; }
}

.sticky-cta {
 position: fixed;
 inset-inline: 0;
 bottom: 0;
 z-index: 80;
 background: rgba(244, 241, 234, 0.96);
 backdrop-filter: saturate(160%) blur(14px);
 -webkit-backdrop-filter: saturate(160%) blur(14px);
 border-top: 1px solid var(--rule);
 padding: 0.6rem 0.9rem 0.7rem;
 display: none;
 align-items: center;
 gap: 0.6rem;
 transform: translateY(110%);
 transition: transform var(--t);
}
.sticky-cta.is-visible { transform: translateY(0); }
@media (max-width: 768px) { .sticky-cta { display: flex; } }
.sticky-cta-info {
 flex: 1; min-width: 0;
 display: flex; flex-direction: column;
 line-height: 1.2;
}
.sticky-cta-info .top {
 font-size: 0.68rem;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 color: var(--grey-500);
}
html[dir="rtl"] .sticky-cta-info .top { font-size: 0.78rem; letter-spacing: 0; text-transform: none; }
.sticky-cta-info .bottom {
 font-family: var(--serif);
 font-size: 1rem;
 color: var(--ink);
 font-weight: 450;
 letter-spacing: -0.01em;
 margin-top: 0.15rem;
 white-space: nowrap;
 overflow: hidden;
 text-overflow: ellipsis;
}
html[dir="rtl"] .sticky-cta-info .bottom { font-family: var(--arabic); font-weight: 700; font-size: 0.95rem; }
.sticky-cta .btn {
 padding: 0.7rem 1.2rem;
 font-size: 0.82rem;
 flex-shrink: 0;
}

/* ============================================ ALERTS / SUCCESS ============================================ */
.alert {
 border-top: 1px solid var(--ink);
 border-bottom: 1px solid var(--ink);
 padding: 0.85rem 0;
 font-size: 0.92rem;
 text-align: center;
}
.success-state {
 text-align: center;
 padding: var(--space-6) 0;
 border-top: 1px solid var(--rule);
 opacity: 0;
 transform: translateY(10px);
 outline: none;
}
.success-state.is-visible {
 animation: successIn 420ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.check-circle {
 width: 84px; height: 84px;
 margin: 0 auto var(--space-3);
 display: inline-flex;
 align-items: center; justify-content: center;
 border: 1.5px solid var(--accent);
 border-radius: 999px;
 color: var(--accent-deep);
 background: var(--accent-soft);
}
.success-state.is-visible .check-circle {
 animation: checkPop 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}
.check-circle path {
 stroke-dasharray: 24; stroke-dashoffset: 24;
}
.success-state.is-visible .check-circle path {
 animation: drawCheck 520ms 160ms ease forwards;
}
.success-share {
 margin-top: var(--space-3);
 display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center;
}
.share-btn {
 display: inline-flex; align-items: center; gap: 0.5rem;
 padding: 0.6rem 1rem;
 border: 1px solid var(--rule);
 background: var(--white);
 font-size: 0.84rem;
 border-radius: 999px;
 color: var(--ink);
 transition: border-color var(--t-fast), background var(--t-fast);
}
html[dir="rtl"] .share-btn { font-size: 0.94rem; }
.share-btn:hover { border-color: var(--ink); background: var(--paper-2); }
.share-btn svg { width: 16px; height: 16px; }

/* ============================================ TABS ============================================ */
.tabs {
 display: flex;
 border-bottom: 1px solid var(--rule);
 margin-bottom: var(--space-4);
 gap: var(--space-3);
 position: relative;
}
.tab {
 background: transparent; border: 0;
 padding: 0.85rem 0;
 font-size: 0.95rem; font-weight: 500;
 color: var(--grey-500);
 cursor: pointer;
 font-family: inherit;
 letter-spacing: 0.01em;
 border-radius: 0;
 position: relative;
}
html[dir="rtl"] .tab { font-size: 1rem; font-weight: 600; }
.tab:hover { color: var(--ink); }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after {
 content: ""; position: absolute;
 bottom: -1px; inset-inline: 0;
 height: 2px; background: var(--ink);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================ MEALS / TOTALS ============================================ */
.meal {
 border: 1px solid var(--rule);
 background: var(--white);
 padding: var(--space-3);
 display: flex; flex-direction: column; gap: var(--space-2);
}
.meal-head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-2); }
.meal-remove {
 background: transparent; border: 0;
 color: var(--grey-500);
 padding: 0.4rem;
 display: inline-flex;
 transition: color var(--t-fast);
}
.meal-remove:hover { color: var(--ink); }
.macros-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; }
.macros-row .input { padding: 0.55rem 0.6rem; font-size: 0.92rem; text-align: center; }

.totals-card {
 border: 1px solid var(--ink);
 background: var(--ink);
 color: var(--paper);
 padding: var(--space-3);
}
.totals-card .eyebrow { color: var(--accent-soft); }
.totals-card .eyebrow::before { background: var(--accent); }
.totals-grid {
 display: grid;
 grid-template-columns: repeat(4, 1fr);
 gap: var(--space-2);
 margin-top: var(--space-2);
}
.totals-grid .total-value {
 font-family: var(--serif);
 font-size: 1.6rem; font-weight: 350;
 letter-spacing: -0.02em;
 color: var(--paper);
 font-feature-settings: "tnum";
 line-height: 1;
}
.totals-grid .total-label {
 font-size: 0.74rem;
 color: rgba(244,241,234,0.65);
 margin-top: 0.4rem;
 letter-spacing: 0.04em;
 text-transform: uppercase;
}
html[dir="rtl"] .totals-grid .total-label { font-size: 0.85rem; letter-spacing: 0; text-transform: none; }
.total-pulse { animation: totalPulse 360ms ease; }
@keyframes totalPulse { 0% { color: var(--accent); } 100% { color: var(--paper); } }

/* ============================================ ANIMATIONS ============================================ */
.fade-up { opacity: 0; animation: fadeUp 700ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes fadeUp {
 from { opacity: 0; transform: translateY(12px); }
 to { opacity: 1; transform: translateY(0); }
}
@keyframes successIn {
 from { opacity: 0; transform: translateY(10px); }
 to { opacity: 1; transform: translateY(0); }
}
@keyframes checkPop {
 0% { transform: scale(0.72); opacity: 0; }
 70% { transform: scale(1.06); opacity: 1; }
 100% { transform: scale(1); opacity: 1; }
}
@keyframes drawCheck {
 to { stroke-dashoffset: 0; }
}
.fade-up-d1 { animation-delay: 80ms; }
.fade-up-d2 { animation-delay: 160ms; }
.fade-up-d3 { animation-delay: 240ms; }
.fade-up-d4 { animation-delay: 320ms; }

.reveal {
 opacity: 0; transform: translateY(14px);
 transition: opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
 transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.in { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
 *, *::before, *::after {
 animation-duration: 0.01ms !important;
 transition-duration: 0.01ms !important;
 scroll-behavior: auto !important;
 }
 .reveal { opacity: 1; transform: none; }
}

html[dir="rtl"] .ar-flip { transform: scaleX(-1); }

.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;
}

/* ============================================ PAGE SHELL ============================================ */
.page { display: none; }
.page.active { display: block; animation: pageIn 400ms cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes pageIn {
 from { opacity: 0; transform: translateY(6px); }
 to { opacity: 1; transform: translateY(0); }
}

.rule { height: 1px; background: var(--rule); margin: var(--space-3) 0; border: 0; }

/* ============================================ TICKER ============================================ */
.ticker {
 border-top: 1px solid var(--rule);
 border-bottom: 1px solid var(--rule);
 background: var(--paper-2);
 padding: var(--space-2) 0;
 overflow: hidden;
 position: relative;
 mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
 display: flex;
 gap: var(--space-5);
 white-space: nowrap;
 animation: tickerSlide 40s linear infinite;
}
@keyframes tickerSlide {
 from { transform: translateX(0); }
 to { transform: translateX(-50%); }
}
@keyframes tickerSlideRTL {
 from { transform: translateX(0); }
 to { transform: translateX(50%); }
}
html[dir="rtl"] .ticker-track { animation: tickerSlideRTL 40s linear infinite; }
.ticker-item {
 font-family: var(--serif);
 font-style: normal;
 font-size: 1.05rem;
 color: var(--grey-700);
 display: inline-flex; align-items: center; gap: var(--space-3);
}
html[dir="rtl"] .ticker-item { font-family: var(--arabic); font-weight: 500; font-style: normal; }
.ticker-item::after {
 content: "✦";
 color: var(--accent-deep);
 font-style: normal;
}

/* ============================================ COMPARISON / VS ============================================ */
.vs-card {
 display: grid;
 grid-template-columns: 1fr;
 gap: 0;
 border: 1px solid var(--rule);
 background: var(--white);
 overflow: hidden;
}
@media (min-width: 720px) { .vs-card { grid-template-columns: 1fr 1fr; } }
.vs-col { padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.vs-col-bad { background: var(--white); border-bottom: 1px solid var(--rule); }
@media (min-width: 720px) {
 .vs-col-bad { border-bottom: 0; border-inline-end: 1px solid var(--rule); }
}
.vs-col-good { background: var(--ink); color: var(--paper); }
.vs-col-good .vs-title { color: var(--paper); }
.vs-title {
 font-family: var(--serif);
 font-size: 1.2rem; font-weight: 450;
 display: inline-flex; align-items: center; gap: 0.5rem;
}
html[dir="rtl"] .vs-title { font-family: var(--arabic); font-weight: 700; }
.vs-tag {
 font-size: 0.7rem;
 letter-spacing: 0.14em;
 text-transform: uppercase;
 color: var(--grey-500);
 font-weight: 500;
}
html[dir="rtl"] .vs-tag { font-size: 0.78rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.vs-col-good .vs-tag { color: var(--accent-soft); }
.vs-list { list-style: none; padding: 0; margin: var(--space-2) 0 0; display: flex; flex-direction: column; gap: 0.7rem; }
.vs-list li { display: flex; align-items: flex-start; gap: 0.55rem; font-size: 0.94rem; line-height: 1.6; }
html[dir="rtl"] .vs-list li { font-size: 1rem; line-height: 1.85; }
.vs-list .icon {
 flex-shrink: 0; width: 18px; height: 18px;
 margin-top: 0.18rem;
 display: inline-flex; align-items: center; justify-content: center;
 border-radius: 999px;
}
.vs-col-bad .vs-list .icon { background: var(--rule); color: var(--grey-500); }
.vs-col-good .vs-list .icon { background: var(--accent); color: var(--ink); }
