/*
 * Davaya marketing site — no framework, mobile-first, RTL/LTR via logical properties.
 *
 * Colour system derived from the logo: Dark Blue #2C5B80, Green #45A76C, Teal #7CC5B5, Light Green #96CF86.
 * WCAG 2.x contrast ratios (computed with the relative-luminance formula):
 *   #FFFFFF on #45A76C (brand green) ....... 3.00:1  -> fails 4.5 for normal text; used for accents, icons, large text and borders only.
 *   #FFFFFF on #2E8553 (--color-primary-strong, button bg) ... 4.57:1  AA normal text
 *   #FFFFFF on #2A7A4C (--color-primary-hover) ............... 5.27:1
 *   #FFFFFF on #236A41 (--color-primary-active) .............. 6.54:1
 *   #FFFFFF on #2C5B80 (--color-secondary) ................... 7.20:1
 *   #FFFFFF on #234A69 (--color-secondary-hover) ............. 9.31:1
 *   #16324A (--color-heading)   on #F7FAF8 bg 12.57:1 · on #FFFFFF 13.21:1 · on #EEF4F2 11.87:1
 *   #2B3F52 (--color-text-main) on #F7FAF8 bg 10.32:1 · on #FFFFFF 10.85:1 · on #EEF4F2  9.74:1
 *   #53677A (--color-text-muted) on #F7FAF8 bg 5.57:1 · on #FFFFFF  5.85:1 · on #EEF4F2  5.25:1
 *   #2C5B80 (links) on #F7FAF8 6.86:1 · #2E8553 (green text) on #FFFFFF 4.57:1
 *   Footer: #C9D6E0 on #16324A 8.92:1 · #7CC5B5 on #16324A 6.61:1
 */
:root {
    /* colours, type, radii, shadows and spacing come from /css/tokens.css (shared by every area) */
    --container: 1180px;
    --gutter: 16px;
    --header-h: 64px;
}

.lang-en { --font-body: var(--font-latin); --font-head: var(--font-latin); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
    margin: 0;
    background: var(--color-bg);
    color: var(--color-text-main);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
.lang-en body, body.lang-en { line-height: 1.6; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); color: var(--color-heading); line-height: 1.3; margin: 0 0 var(--space-3); }
.lang-en h1, .lang-en h2, .lang-en h3 { letter-spacing: -.02em; line-height: 1.2; }
p { margin: 0 0 var(--space-4); }
a { color: var(--color-secondary); text-underline-offset: 3px; }
a:hover { color: var(--color-secondary-hover); }
:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 2px; border-radius: 4px; }
ul, ol { margin: 0; padding: 0; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 820px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: var(--space-4); top: -60px; z-index: 100; background: var(--color-secondary); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); }
.skip-link:focus { top: var(--space-3); color: #fff; }

.icon { width: 22px; height: 22px; flex: none; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; }
[dir="rtl"] .icon-dir { transform: scaleX(-1); }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
    min-height: 44px; padding: 10px 20px;
    border: 2px solid transparent; border-radius: var(--radius-md);
    font: 700 15px/1.2 var(--font-body); text-decoration: none; cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 16px; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn-primary { background: var(--color-primary-strong); color: #fff; box-shadow: 0 6px 16px rgba(46, 133, 83, .25); }
.btn-primary:hover { background: var(--color-primary-hover); color: #fff; }
.btn-primary:active { background: var(--color-primary-active); transform: translateY(1px); }
.btn-secondary { background: var(--color-secondary); color: #fff; }
.btn-secondary:hover { background: var(--color-secondary-hover); color: #fff; }
.btn-outline { background: var(--color-surface); color: var(--color-secondary); border-color: var(--color-border-strong); }
.btn-outline:hover { border-color: var(--color-secondary); color: var(--color-secondary-hover); background: var(--color-secondary-tint); }
.btn-light { background: #fff; color: var(--color-heading); }
.btn-light:hover { background: var(--color-primary-tint); color: var(--color-heading); }
.btn-wa { background: var(--color-wa); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-wa:hover { background: #18633C; color: #fff; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .92);
    border-bottom: 1px solid var(--color-border);
    backdrop-filter: saturate(1.4) blur(10px);
    -webkit-backdrop-filter: saturate(1.4) blur(10px);
}
.header-inner { display: flex; align-items: center; gap: var(--space-4); min-height: var(--header-h); }
.brand { display: inline-flex; flex: none; }
.brand-logo { height: 36px; width: auto; aspect-ratio: 320 / 85; display: block; }
.main-nav { display: none; margin-inline-start: auto; }
.main-nav ul { display: flex; gap: var(--space-1); list-style: none; }
.main-nav a { display: block; padding: 8px 12px; border-radius: var(--radius-sm); color: var(--color-text-main); text-decoration: none; font-weight: 700; font-size: 15px; }
.main-nav a:hover { background: var(--color-surface-alt); color: var(--color-heading); }
.header-actions { display: flex; align-items: center; gap: var(--space-2); margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: var(--space-3); }
.lang-switch { display: inline-flex; align-items: center; min-height: 40px; padding: 6px 10px; border-radius: var(--radius-sm); font-weight: 700; font-size: 14px; text-decoration: none; color: var(--color-secondary); font-family: 'Almarai', var(--font-latin); }
.lang-ar .lang-switch { font-family: var(--font-latin); }
.lang-switch:hover { background: var(--color-surface-alt); }
@media (max-width: 380px) {
    .brand-logo { height: 30px; }
    .header-actions .btn-sm { padding: 8px 10px; }
}
@media (min-width: 900px) {
    .main-nav { display: block; }
    .brand-logo { height: 40px; }
    :root { --header-h: 72px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-8); }
.section-alt { background: var(--color-surface-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto var(--space-7); }
.section-head h2 { font-size: clamp(26px, 5vw, 38px); }
.section-head p:last-child { color: var(--color-text-muted); font-size: 17px; margin: 0; }
.eyebrow {
    display: inline-block; margin-bottom: var(--space-3);
    padding: 4px 12px; border-radius: var(--radius-pill);
    background: var(--color-primary-tint); color: var(--color-primary-active);
    font-weight: 700; font-size: 13px; letter-spacing: .02em;
}
@media (min-width: 900px) { .section { padding-block: var(--space-9); } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden;
    padding-block: var(--space-7) var(--space-8);
    background:
        radial-gradient(600px 360px at 85% 10%, rgba(124, 197, 181, .22), transparent 70%),
        radial-gradient(520px 320px at 10% 90%, rgba(150, 207, 134, .18), transparent 70%),
        var(--color-bg);
}
.hero-grid { display: grid; gap: var(--space-7); align-items: center; }
.hero h1 { font-size: clamp(30px, 7.4vw, 54px); font-weight: 800; margin-bottom: var(--space-4); }
.hero h1 .hl { color: var(--color-primary-strong); }
.lead { font-size: clamp(17px, 2.4vw, 19px); color: var(--color-text-muted); max-width: 40em; }
.hero-url {
    display: inline-block; max-width: 100%; overflow-wrap: anywhere;
    margin-bottom: var(--space-5); padding: 6px 14px;
    background: var(--color-surface); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-pill);
    font: 600 15px/1.5 var(--font-latin); color: var(--color-text-muted);
}
.hero-url-slug { color: var(--color-primary-strong); font-weight: 700; }
.cta-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.cta-row .btn { flex: 1 1 200px; }
.demo-dash { margin: var(--space-3) 0 0; font-size: 15px; }
.demo-dash a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.trust-list { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); list-style: none; margin-top: var(--space-5); color: var(--color-text-muted); font-size: 15px; }
.trust-list li { display: inline-flex; align-items: center; gap: 6px; }
.trust-list .icon { color: var(--color-primary-strong); }
@media (min-width: 600px) { .cta-row .btn { flex: 0 0 auto; } }
@media (min-width: 980px) {
    .hero { padding-block: var(--space-8) var(--space-9); }
    .hero-grid { grid-template-columns: 1.05fr 1fr; gap: var(--space-8); }
}

/* Hero product mock (decorative) */
.hero-visual { position: relative; min-height: 420px; max-width: 560px; width: 100%; margin-inline: auto; }
.mock-dash {
    position: absolute; inset-inline-start: 0; top: 30px; width: 88%;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); overflow: hidden;
}
.mock-dash-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--color-surface-alt); border-bottom: 1px solid var(--color-border); }
.mock-dash-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--color-border-strong); }
.mock-dash-body { display: flex; min-height: 280px; }
.mock-side { display: flex; flex-direction: column; gap: 10px; padding: 14px 10px; background: var(--color-secondary); }
.mock-side i { display: block; width: 22px; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.mock-side i.on { background: var(--color-accent-soft); }
.mock-main { flex: 1; padding: 14px; padding-inline-end: 38%; min-width: 0; }
.mock-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-kpis div { padding: 8px; border-radius: var(--radius-sm); background: var(--color-bg); border: 1px solid var(--color-border); min-width: 0; }
.mock-kpis b { display: block; font-size: 10px; font-weight: 700; color: var(--color-text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-kpis strong { font: 800 18px/1.2 var(--font-latin); color: var(--color-heading); }
.mock-chart { display: flex; align-items: flex-end; gap: 6px; height: 80px; margin: 14px 0; padding: 8px; border-radius: var(--radius-sm); background: linear-gradient(var(--color-surface-alt), var(--color-surface)); }
.mock-chart i { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(var(--color-primary), var(--color-accent)); }
.mock-orders { display: grid; gap: 8px; }
.mock-orders div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.mock-line { display: block; height: 8px; border-radius: 4px; background: var(--color-border); }
.w45 { width: 45%; } .w55 { width: 55%; } .w60 { width: 60%; } .w80 { width: 80%; }
.chip { flex: none; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 10px; font-weight: 700; }
.chip-new { background: var(--color-primary-tint); color: var(--color-primary-active); }
.chip-rx { background: var(--color-secondary-tint); color: var(--color-secondary); }
.chip-go { background: #FFF3DC; color: #7A4B00; }

.mock-phone {
    position: absolute; inset-inline-end: 0; top: 0; width: 200px;
    padding: 26px 12px 14px; border-radius: 32px;
    background: var(--color-surface); border: 8px solid var(--color-heading);
    box-shadow: var(--shadow-lg);
}
.mock-phone-notch { position: absolute; top: 6px; left: 50%; width: 60px; height: 8px; margin-left: -30px; border-radius: 6px; background: var(--color-heading); }
.mock-store-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.mock-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--color-primary), var(--color-accent)); flex: none; }
.mock-store-name { font: 800 12px/1.3 var(--font-head); color: var(--color-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-search { padding: 6px 10px; margin-bottom: 8px; border-radius: var(--radius-pill); background: var(--color-surface-alt); color: var(--color-text-muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-rx-btn { display: flex; align-items: center; justify-content: center; gap: 4px; padding: 6px; margin-bottom: 8px; border-radius: var(--radius-sm); background: var(--color-primary-strong); color: #fff; font-size: 11px; font-weight: 700; }
.mock-rx-btn .icon { width: 14px; height: 14px; }
.mock-cats { display: flex; gap: 4px; margin-bottom: 8px; }
.mock-cats span { padding: 2px 8px; border-radius: var(--radius-pill); border: 1px solid var(--color-border); font-size: 10px; color: var(--color-text-muted); }
.mock-cats span.on { background: var(--color-secondary); border-color: var(--color-secondary); color: #fff; }
.mock-products { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock-product { display: grid; gap: 4px; padding: 6px; border: 1px solid var(--color-border); border-radius: var(--radius-sm); }
.mock-img { display: block; height: 42px; border-radius: 6px; background: var(--color-surface-alt); }
.mock-img.v0 { background: linear-gradient(135deg, #E3F3E8, #CFE9DA); }
.mock-img.v1 { background: linear-gradient(135deg, #E6EEF5, #D2E0EC); }
.mock-img.v2 { background: linear-gradient(135deg, #E4F4F0, #CBE9E1); }
.mock-img.v3 { background: linear-gradient(135deg, #EEF7E9, #DCEFD2); }
.mock-price { font: 800 11px/1 var(--font-latin); color: var(--color-primary-active); }
.mock-cart { margin-top: 8px; padding: 7px; border-radius: var(--radius-sm); background: var(--color-heading); color: #fff; font-size: 11px; font-weight: 700; text-align: center; }
.mock-toast {
    position: absolute; inset-inline-start: 6%; bottom: 0;
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 14px; border-radius: var(--radius-md);
    background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-md);
    font-size: 13px; font-weight: 700; color: var(--color-heading);
}
.mock-toast .icon { color: var(--color-primary-strong); }
@media (max-width: 480px) {
    .hero-visual { min-height: 380px; }
    .mock-dash { width: 100%; top: 60px; }
    .mock-main { padding-inline-end: 44%; }
    .mock-kpis { grid-template-columns: 1fr; }
    .mock-kpis div:nth-child(n+2) { display: none; }
    .mock-phone { width: 168px; }
    .mock-toast { inset-inline-start: 0; }
}

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: var(--space-4); list-style: none; }
.feature-card {
    padding: var(--space-5); background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    transition: border-color .2s ease, box-shadow .2s ease, translate .25s var(--ease-out);
}
.feature-card:hover { border-color: var(--color-accent); box-shadow: var(--shadow-md); translate: 0 -3px; }
.feature-icon {
    display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: var(--space-4);
    border-radius: var(--radius-md); background: var(--color-primary-tint); color: var(--color-primary-active);
}
.feature-card:nth-child(3n+2) .feature-icon { background: var(--color-secondary-tint); color: var(--color-icon); }
.feature-card:nth-child(3n) .feature-icon { background: #E4F4F0; color: #1E6B5C; }
.feature-card h3 { font-size: 18px; margin-bottom: var(--space-2); }
.nowrap { white-space: nowrap; }
@media (max-width: 599px) {
    .feature-card { display: grid; grid-template-columns: 44px 1fr; column-gap: var(--space-4); padding: var(--space-4); }
    .feature-icon { grid-row: span 2; width: 44px; height: 44px; margin: 0; }
    .feature-card h3 { font-size: 17px; margin-bottom: 2px; }
}
.feature-card p { margin: 0; color: var(--color-text-muted); font-size: 15px; }

/* ---------- Steps: a timeline whose line fills in as the section comes into view ---------- */
.steps { position: relative; display: grid; gap: 0; list-style: none; }
.steps::before, .steps::after {
    content: ""; position: absolute; top: 21px; bottom: 60px; inset-inline-start: 20px; width: 2px;
    border-radius: 2px; background: var(--color-border-strong);
}
.steps::after { background: linear-gradient(var(--color-primary), var(--color-accent)); transform: scaleY(0); transform-origin: top; transition: transform 1.4s var(--ease-out) .15s; }
.steps.is-in::after { transform: none; }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: 42px 1fr; column-gap: var(--space-4); padding-bottom: var(--space-5); }
.step:last-child { padding-bottom: 0; }
.step-num {
    grid-row: span 2; display: inline-grid; place-items: center; width: 42px; height: 42px;
    border-radius: 50%; background: var(--color-secondary); color: #fff; box-shadow: 0 0 0 6px var(--color-surface-alt);
    font: 800 18px/1 var(--font-latin);
}
.step h3 { font-size: 18px; margin: 8px 0 var(--space-1); }
.step p { margin: 0; color: var(--color-text-muted); font-size: 15px; }
@media (min-width: 860px) {
    .steps { grid-template-columns: repeat(4, 1fr); gap: var(--space-5); }
    .steps::before, .steps::after { top: 20px; bottom: auto; inset-inline: 12.5%; width: auto; height: 2px; }
    .steps::after { background: linear-gradient(to left, var(--color-primary), var(--color-accent)); transform: scaleX(0); transform-origin: right; }
    .lang-en .steps::after { background: linear-gradient(to right, var(--color-primary), var(--color-accent)); transform-origin: left; }
    .step { display: block; padding: 0; text-align: center; }
    .step-num { margin-bottom: var(--space-4); }
    .step h3 { margin-top: 0; }
}

/* ---------- Pricing ---------- */
.cycle-switch {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 4px;
    width: fit-content; max-width: 100%; margin: 0 auto var(--space-6); padding: 4px;
    border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface);
}
.cycle-switch[hidden] { display: none; }
@media (max-width: 479px) {
    .cycle-switch { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--radius-lg); }
    .cycle-switch span { width: 100%; justify-content: center; }
}
.cycle-switch label { position: relative; }
.cycle-switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cycle-switch span {
    display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px;
    border-radius: var(--radius-pill); font-weight: 700; font-size: 14px; color: var(--color-text-main); cursor: pointer;
}
.cycle-switch em { font-style: normal; font-size: 12px; padding: 1px 6px; border-radius: var(--radius-pill); background: var(--color-primary-tint); color: var(--color-primary-active); font-family: var(--font-latin); }
.cycle-switch input:checked + span { background: var(--color-secondary); color: #fff; }
.cycle-switch input:checked + span em { background: rgba(255, 255, 255, .2); color: #fff; }
.cycle-switch input:focus-visible + span { outline: 3px solid var(--color-secondary); outline-offset: 2px; }

.plans { display: grid; gap: var(--space-4); align-items: start; }
@media (min-width: 680px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1120px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan {
    position: relative; display: flex; flex-direction: column;
    padding: var(--space-5); background: var(--color-surface);
    border: 1px solid var(--color-border); border-radius: var(--radius-lg);
}
.plan-featured { border: 2px solid var(--color-primary); box-shadow: var(--shadow-lg); }
.plan-badge {
    position: absolute; top: -13px; inset-inline-start: var(--space-5); margin: 0;
    padding: 2px 12px; border-radius: var(--radius-pill);
    background: var(--color-primary-strong); color: #fff; font-size: 13px; font-weight: 700;
}
.plan h3 { font-size: 22px; margin-bottom: var(--space-1); }
.plan-tagline { color: var(--color-text-muted); font-size: 14px; min-height: 3.5em; margin-bottom: var(--space-4); }
.plan-price { margin-bottom: var(--space-4); min-height: 100px; }
.price-main { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; margin: 0; }
.price-amount { font: 800 40px/1.1 var(--font-latin); color: var(--color-heading); letter-spacing: -.02em; }
.lang-ar .price-amount.price-text, .lang-ar .plan-price .price-amount:not([data-price-amount]) { font-family: var(--font-head); }
.price-text { font-size: 30px; }
.price-unit { color: var(--color-text-muted); font-weight: 700; font-size: 15px; }
/* Mobile app section */
.app-in { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 860px) { .app-in { grid-template-columns: 1.2fr .8fr; } }
.app-copy h2 { margin-bottom: var(--space-3); }
.app-points { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: 10px; }
.app-points li { display: flex; align-items: flex-start; gap: 10px; font-weight: 600; color: var(--color-text-main); }
.app-points .icon { flex: none; margin-top: 3px; color: var(--color-primary-strong); }
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 12px; background: var(--color-heading); color: #fff; min-width: 160px; }
.store-badge .icon { flex: none; }
.store-badge small { display: block; font-size: 11px; opacity: .8; line-height: 1.3; }
.store-badge b { display: block; font: 700 17px/1.2 var(--font-latin); }
.app-shot { display: flex; justify-content: center; }
.app-shot img { width: 270px; max-width: 78vw; height: auto; border-radius: 30px; border: 8px solid var(--color-heading); box-shadow: 0 24px 60px rgba(22, 50, 74, .22); background: #fff; }
.price-was { flex-basis: 100%; color: var(--color-text-muted); font-size: 14px; font-weight: 700; }
.price-was s { font-family: var(--font-latin); font-size: 18px; }
.price-was em { font-style: normal; font-size: 12px; margin-inline-start: 4px; padding: 1px 8px; border-radius: var(--radius-pill); background: var(--color-danger-tint); color: var(--color-danger); }
.price-note { margin: var(--space-1) 0 0; color: var(--color-text-muted); font-size: 13px; min-height: 1.6em; }
.plan-trial { margin: 0 0 var(--space-3); padding: 6px 10px; border-radius: var(--radius-sm); background: var(--color-primary-tint); color: var(--color-primary-active); font-size: 14px; font-weight: 700; text-align: center; }
.plan-trial.is-empty { display: none; }
@media (min-width: 680px) { .plan-trial.is-empty { display: block; visibility: hidden; min-height: 37px; } }
.plan .btn { margin-bottom: var(--space-5); }
.plan-limits { list-style: none; display: grid; gap: 2px; padding-bottom: var(--space-4); margin-bottom: var(--space-4); border-bottom: 1px solid var(--color-border); }
.plan-limits li { display: flex; justify-content: space-between; gap: var(--space-3); font-size: 14px; padding: 3px 0; }
.plan-limits strong { color: var(--color-heading); font-family: var(--font-latin); }
.lang-ar .plan-limits strong { font-family: var(--font-body); }
.plan-limits .is-off { color: var(--color-text-muted); }
.plan-features { list-style: none; display: grid; gap: 6px; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.5; }
.plan-features .icon { margin-top: 1px; }
.plan-features .is-on .icon { color: var(--color-primary-strong); }
.plan-features .is-off { color: var(--color-text-muted); }
.plan-features .is-off span:not(.sr-only) { text-decoration: line-through; text-decoration-color: rgba(83, 103, 122, .4); }
.plan-features .is-off .icon { color: #9AAAB8; }
.pricing-foot { margin: var(--space-6) auto 0; max-width: 720px; text-align: center; color: var(--color-text-muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: var(--space-3); }
.faq details { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); }
.faq details[open] { border-color: var(--color-accent); box-shadow: var(--shadow-sm); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
    padding: var(--space-4) var(--space-5); cursor: pointer; list-style: none;
    font-family: var(--font-head); font-weight: 700; font-size: 17px; color: var(--color-heading);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
    content: ""; flex: none; width: 10px; height: 10px; margin-top: -4px;
    border-right: 2px solid var(--color-secondary); border-bottom: 2px solid var(--color-secondary);
    transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { margin: 0; padding: 0 var(--space-5) var(--space-5); color: var(--color-text-muted); }

/* ---------- Final CTA ---------- */
.final-cta { padding-block: var(--space-8); background: linear-gradient(135deg, var(--color-secondary) 0%, #1F4A6B 55%, #24705A 100%); color: #fff; }
.final-cta-inner { text-align: center; max-width: 760px; }
.final-cta h2 { color: #fff; font-size: clamp(26px, 5vw, 38px); }
.final-cta p { color: #E4EEF5; font-size: 18px; margin-bottom: var(--space-6); }
.cta-center { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--color-footer); color: var(--color-footer-text); padding-top: var(--space-7); font-size: 15px; }
.site-footer a { color: var(--color-footer-text); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; gap: var(--space-6); grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-name { font: 800 22px/1.2 var(--font-head); color: #fff; margin-bottom: var(--space-2); }
.footer-title { font-weight: 700; color: var(--color-accent); margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; display: grid; gap: var(--space-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-2) var(--space-5); margin-top: var(--space-7); padding-block: var(--space-5); border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer-bottom p { margin: 0; }
@media (min-width: 900px) {
    .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
    .footer-grid:has(> :nth-child(5)) { grid-template-columns: 1.3fr 1fr 1fr 1fr 1fr; }
    .footer-brand { grid-column: auto; max-width: 320px; }
}

/* ---------- Register ---------- */
.register-section { padding-block: var(--space-6) var(--space-8); }
.register-grid { display: grid; gap: var(--space-6); align-items: start; }
.register-aside h1 { font-size: clamp(28px, 6vw, 42px); }
.check-list { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.check-list li { position: relative; padding-inline-start: 32px; }
.check-list li::before {
    content: ""; position: absolute; inset-inline-start: 0; top: .35em; width: 20px; height: 20px; border-radius: 50%;
    background: var(--color-primary-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23236A41' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.register-card { padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-md); }
@media (min-width: 960px) {
    .register-grid { grid-template-columns: 1fr 1.25fr; gap: var(--space-8); }
    .register-aside { position: sticky; top: calc(var(--header-h) + var(--space-6)); }
    .register-card { padding: var(--space-6); }
}
.form-alert { margin-bottom: var(--space-5); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); background: var(--color-danger-tint); color: var(--color-danger); font-weight: 700; }
.form-group { margin: 0 0 var(--space-5); padding: 0; border: 0; min-width: 0; }
.form-group legend { padding: 0; margin-bottom: var(--space-3); font: 700 15px/1.4 var(--font-head); color: var(--color-secondary); }
.field { margin-bottom: var(--space-4); min-width: 0; }
.field-row { display: grid; gap: 0 var(--space-4); }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--color-heading); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="password"], .field input[type="time"], .field > select {
    width: 100%; min-height: 48px; padding: 10px 14px;
    border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md);
    background: var(--color-surface); color: var(--color-heading);
    font: 16px/1.4 var(--font-body);
    transition: border-color .15s ease, box-shadow .15s ease;
}
.field input[dir="ltr"] { font-family: var(--font-latin); text-align: left; }
.field input::placeholder { color: #7D8D9B; }
.field > select { appearance: none; padding-inline-end: 40px; background: var(--color-surface) url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 24 24%27 fill=%27none%27 stroke=%27%2364748b%27 stroke-width=%272%27%3E%3Cpath d=%27M6 9l6 6 6-6%27/%3E%3C/svg%3E") no-repeat left 12px center / 18px; cursor: pointer; }
.field > select:focus, .field input:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(44, 91, 128, .18); }
.has-error input, .field input[aria-invalid="true"] { border-color: var(--color-danger); }
.field-hint { margin: 6px 0 0; font-size: 13px; color: var(--color-text-muted); }
.field-error { margin: 6px 0 0; font-size: 14px; font-weight: 700; color: var(--color-danger); }
.slug-input { display: flex; align-items: stretch; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; }
.slug-input:focus-within { border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(44, 91, 128, .18); }
.slug-input input[type="text"] { flex: 1 1 auto; min-width: 0; border: 0 !important; box-shadow: none !important; border-radius: 0; font-family: var(--font-latin); text-align: left; }
.slug-suffix { flex: none; display: flex; align-items: center; padding: 0 12px; background: var(--color-surface-alt); color: var(--color-text-muted); font: 600 14px/1 var(--font-latin); white-space: nowrap; border-left: 1px solid var(--color-border); max-width: 62%; overflow: hidden; text-overflow: ellipsis; }
.has-error .slug-input, .slug-input.is-bad { border-color: var(--color-danger); }
.slug-input.is-ok { border-color: var(--color-primary-strong); }
.slug-status { margin: 6px 0 0; font-size: 14px; font-weight: 700; min-height: 1.5em; }
.slug-status:empty { min-height: 0; margin: 0; }
.slug-status.is-ok { color: var(--color-primary-active); }
.slug-status.is-bad { color: var(--color-danger); }
.slug-status.is-wait { color: var(--color-text-muted); font-weight: 400; }
.slug-status bdi { font-family: var(--font-latin); display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.field-check { margin-top: var(--space-2); }
.check { display: flex !important; align-items: flex-start; gap: 10px; font-weight: 400 !important; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--color-primary-strong); }
.field-label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--color-heading); }
.hours-choice { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); margin-bottom: var(--space-2); }
/* the times only matter (and only show) when the pharmacy has hours */
.field-hours .hours-range { display: none; }
.field-hours:has(input[value="range"]:checked) .hours-range { display: grid; }
.form-foot { margin: var(--space-3) 0 0; text-align: center; font-size: 14px; color: var(--color-text-muted); }
.hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; inset-inline-start: -10000px; }

/* ---------- Legal ---------- */
.legal { padding-block: var(--space-6) var(--space-8); }
.legal-head { margin-bottom: var(--space-5); }
.legal-head h1 { font-size: clamp(28px, 6vw, 40px); }
.legal-meta, .legal-alt { color: var(--color-text-muted); font-size: 15px; margin-bottom: var(--space-2); }
.legal-notice { margin-bottom: var(--space-6); padding: var(--space-4) var(--space-5); border-radius: var(--radius-md); background: #FFF6E5; border: 1px solid #F1D9A6; border-inline-start: 4px solid #C98A12; color: #5C3F00; }
.legal-toc { margin-bottom: var(--space-6); padding: var(--space-5); background: var(--color-surface-alt); border-radius: var(--radius-md); }
.legal-toc .footer-title { color: var(--color-secondary); }
.legal-toc ol { padding-inline-start: 1.4em; display: grid; gap: 4px; }
@media (min-width: 640px) { .legal-toc ol { grid-template-columns: 1fr 1fr; column-gap: var(--space-6); } }
.legal-section { margin-bottom: var(--space-6); }
.legal-section h2 { font-size: 22px; padding-bottom: var(--space-2); border-bottom: 1px solid var(--color-border); }
.legal-num { color: var(--color-primary-strong); font-family: var(--font-latin); }
.legal-section ul { padding-inline-start: 1.3em; display: grid; gap: var(--space-2); }
.legal-section li::marker { color: var(--color-primary); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---- Pricing on phones: compact cards in a swipeable row, Pro first, only what each plan includes ---- */
.plans-hint { display: none; }
@media (max-width: 679px) {
  .plans-hint { display: block; text-align: center; color: var(--color-text-muted); font-size: 13px; margin: 0 0 var(--space-2); }
  .plans-hint span { font-family: var(--font-latin); letter-spacing: 2px; }
  .plans {
    display: grid; grid-auto-flow: column; grid-auto-columns: 84%; grid-template-columns: none; gap: 12px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: 16px;
    margin-inline: -16px; padding: 14px 16px 18px; align-items: stretch; scrollbar-width: none;
  }
  .plans::-webkit-scrollbar { display: none; }
  .plans:focus-visible { outline: 2px solid var(--color-secondary); outline-offset: -2px; border-radius: var(--radius-lg); }
  .plan { scroll-snap-align: center; padding: 18px 16px; display: flex; flex-direction: column; }
  .plan-featured { order: -1; }
  .plan h3 { font-size: 20px; }
  .plan-tagline { min-height: 0; margin-bottom: 10px; font-size: 13px; }
  .plan-price { min-height: 0; margin-bottom: 10px; }
  .price-amount { font-size: 32px; }
  .price-text { font-size: 24px; }
  .plan .btn { margin-bottom: 14px; min-height: 46px; }
  .plan-limits { padding-bottom: 10px; margin-bottom: 10px; }
  .plan-limits li { font-size: 13px; padding: 2px 0; }
  .plan-features { gap: 4px; }
  .plan-features li { font-size: 13px; }
  .plan-features .is-off, .plan-limits .is-off { display: none; }
  .cycle-switch span { padding-block: 10px; }
}

.plan-chip { display: inline-block; vertical-align: middle; margin-inline-start: 6px; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--color-primary-tint); color: var(--color-primary-active); font-size: 12px; font-weight: 700; font-family: var(--font-body); white-space: nowrap; }

/* =====================================================================================================
   Home page: motion and the interactive sections.
   Everything animates transform / opacity only. Hover lifts use `translate` so they never fight the
   entrance animations (which own `transform`). The "reduced motion" rule above switches all of it off.
   ===================================================================================================== */
:root {
    --ease-out: cubic-bezier(.22, 1, .36, 1);
    --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
    --dir: 1; /* 1 when text runs left to right, -1 when right to left: lets one rule slide "from the start side" */
}
[dir="rtl"] { --dir: -1; }
/* Decorative rings and glows may reach past the edge of their section; each such section clips them itself, so
   the page can never pan sideways. Do NOT put an overflow rule on <html> for this: together with the body's
   `overflow-x: hidden` it turns the body into the scroller on iPhone Safari, where the sticky header then scrolls
   away and `position: fixed` bars float in the middle of the screen. */
#features, #app { overflow-x: clip; }

@keyframes rise { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes rise-start { from { opacity: 0; transform: translateX(calc(var(--dir) * -40px)); } to { opacity: 1; transform: none; } }
@keyframes rise-end { from { opacity: 0; transform: translateX(calc(var(--dir) * 40px)); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes float-y { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0) scale(1); } 50% { transform: translate(calc(var(--dir) * 40px), 28px) scale(1.12); } }
@keyframes breathe { 0%, 100% { transform: scale(.94); opacity: .75; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes sheen { 0%, 70% { transform: translateX(-140%) skewX(-20deg); } 100% { transform: translateX(260%) skewX(-20deg); } }
@keyframes tour-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ping-in { 0%, 8% { opacity: 0; transform: translateY(10px) scale(.9); } 16%, 78% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-8px) scale(.96); } }
@keyframes ripple { from { transform: scale(.7); opacity: .55; } to { transform: scale(1.5); opacity: 0; } }
@keyframes gradient-pan { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Reveal on scroll (classes set by landing.js; without it nothing is ever hidden) ---------- */
.will-reveal:not([data-reveal="group"]) { opacity: 0; }
.will-reveal.is-in:not([data-reveal="group"]) { animation: rise .8s var(--ease-out) both; }
.will-reveal.is-in[data-reveal="start"] { animation-name: rise-start; }
.will-reveal.is-in[data-reveal="end"] { animation-name: rise-end; }
.will-reveal[data-reveal="group"] > * { opacity: 0; }
.will-reveal[data-reveal="group"].is-in > * { animation: rise .7s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Header ---------- */
.site-header { transition: box-shadow .3s ease, background-color .3s ease; }
.site-header.is-scrolled { background: rgba(255, 255, 255, .97); box-shadow: 0 6px 24px rgba(22, 50, 74, .08); }
.main-nav a { position: relative; transition: color .2s ease, background-color .2s ease; }
.main-nav a::after {
    content: ""; position: absolute; inset-inline: 12px; bottom: 3px; height: 2px; border-radius: 2px;
    background: var(--color-primary); transform: scaleX(0); transition: transform .3s var(--ease-out);
}
.main-nav a:hover::after, .main-nav a[aria-current="true"]::after { transform: none; }
.main-nav a[aria-current="true"] { color: var(--color-primary-active); }

/* ---------- Buttons ---------- */
.btn .icon-dir { transition: translate .25s var(--ease-out); }
.btn:hover .icon-dir { translate: calc(var(--dir) * 4px) 0; }
.btn-primary:hover { box-shadow: 0 10px 24px rgba(46, 133, 83, .32); translate: 0 -1px; }
.btn-shine { position: relative; overflow: hidden; }
.btn-shine::after {
    content: ""; position: absolute; inset-block: 0; left: 0; width: 34%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent);
    animation: sheen 4.5s ease-in-out infinite; pointer-events: none;
}

/* ---------- Hero ---------- */
.hero-glow { position: absolute; z-index: 0; border-radius: 50%; filter: blur(60px); pointer-events: none; animation: drift 16s ease-in-out infinite; }
.hero-glow-a { width: 380px; height: 380px; inset-inline-end: -80px; top: -90px; background: rgba(124, 197, 181, .35); }
.hero-glow-b { width: 320px; height: 320px; inset-inline-start: -90px; bottom: -110px; background: rgba(150, 207, 134, .28); animation-delay: -8s; }
.hero-grid { position: relative; z-index: 1; }
.hero-copy > * { animation: rise .8s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 80ms; }
.hero-copy > :nth-child(3) { animation-delay: 160ms; }
.hero-copy > :nth-child(4) { animation-delay: 240ms; }
.hero-copy > :nth-child(5) { animation-delay: 320ms; }
.hero-copy > :nth-child(n+6) { animation-delay: 400ms; }
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
    .hero h1 .hl {
        background: linear-gradient(100deg, var(--color-primary-strong), #1E8A77 60%, var(--color-secondary));
        -webkit-background-clip: text; background-clip: text; color: transparent;
    }
}
.hero-url-caret { display: none; width: 2px; height: 1.1em; margin-inline: 1px; vertical-align: -3px; background: var(--color-primary-strong); animation: blink 1s steps(1) infinite; }
.hero-url.is-typing .hero-url-caret { display: inline-block; }

.mock-dash { animation: rise-start 1s var(--ease-out) .25s both; }
.mock-phone { animation: rise-end 1s var(--ease-out) .4s both; }
.mock-phone::after { /* soft glow that breathes behind the phone */
    content: ""; position: absolute; z-index: -1; inset: 10% -14%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(69, 167, 108, .28), transparent); animation: breathe 6s ease-in-out infinite;
}
.mock-chart i { transform-origin: bottom; animation: grow-y .9s var(--ease-out) both; animation-delay: calc(.7s + var(--i, 0) * 70ms); }
.mock-orders div { animation: rise-start .6s var(--ease-out) both; animation-delay: calc(1.1s + var(--i, 0) * 140ms); }
.mock-product { animation: pop .5s var(--ease-spring) both; }
.mock-product:nth-child(1) { animation-delay: .9s; } .mock-product:nth-child(2) { animation-delay: 1s; }
.mock-product:nth-child(3) { animation-delay: 1.1s; } .mock-product:nth-child(4) { animation-delay: 1.2s; }
.mock-toast { animation: pop .6s var(--ease-spring) 1.6s both, float-y 4s ease-in-out 2.2s infinite; }
.mock-toast span { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.mock-toast.is-swapping span { opacity: 0; transform: translateY(6px); }
[data-depth] { transition: translate .5s var(--ease-out); will-change: translate; }

/* ---------- Section call-to-action row ---------- */
.section-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-3) var(--space-4); margin: var(--space-7) 0 0; color: var(--color-text-muted); font-size: 15px; }

/* ---------- Steps ---------- */
.steps.is-in .step-num { animation: pop .55s var(--ease-spring) both; animation-delay: calc(.25s + var(--i, 0) * 260ms); }

/* ---------- Feature tour ---------- */
.tour { display: grid; gap: var(--space-5); }
.tour-list { position: relative; display: grid; gap: var(--space-2); }
.tour-item {
    position: relative; display: grid; grid-template-columns: 44px 1fr; column-gap: var(--space-4); align-items: start;
    width: 100%; padding: 14px var(--space-4); overflow: hidden;
    background: transparent; border: 1px solid transparent; border-radius: var(--radius-lg);
    font: inherit; color: inherit; text-align: start; cursor: pointer;
    transition: background-color .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.tour-item:hover { background: var(--color-surface); }
.tour-item.is-active { background: var(--color-surface); border-color: var(--color-border); box-shadow: var(--shadow-md); }
.tour-icon {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius-md);
    background: var(--color-primary-tint); color: var(--color-primary-active);
    transition: background-color .3s ease, color .3s ease, transform .4s var(--ease-spring);
}
.tour-item.is-active .tour-icon { background: var(--color-primary-strong); color: #fff; transform: scale(1.06); }
.tour-text { min-width: 0; }
.tour-text strong { display: block; padding-top: 9px; font: 700 17px/1.4 var(--font-head); color: var(--color-heading); }
.tour-desc { display: grid; grid-template-rows: 1fr; color: var(--color-text-muted); font-size: 15px; transition: grid-template-rows .45s var(--ease-out), opacity .35s ease; }
.tour-desc > span { overflow: hidden; padding-top: 4px; }
.tour.is-js .tour-item:not(.is-active) .tour-desc { grid-template-rows: 0fr; opacity: 0; }
.tour-bar { position: absolute; inset-inline: 0; bottom: 0; height: 3px; }
.tour-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); transform: scaleX(0); transform-origin: left; }
[dir="rtl"] .tour-bar i { transform-origin: right; }
.tour-item.is-playing .tour-bar i { animation: tour-progress 6.5s linear forwards; }
.tour.is-paused .tour-bar i { animation-play-state: paused; }
.tour-caption { display: none; }

.tour-stage { position: relative; display: grid; place-items: center; padding-block: var(--space-5); }
.tour-ring { position: absolute; width: min(440px, 96%); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgba(124, 197, 181, .4), rgba(150, 207, 134, .16) 60%, transparent); animation: breathe 7s ease-in-out infinite; }
.phone-frame {
    position: relative; width: 270px; max-width: 66vw; aspect-ratio: 9 / 16; overflow: hidden;
    border: 8px solid var(--color-heading); border-radius: 36px; background: #fff;
    box-shadow: 0 30px 70px rgba(22, 50, 74, .26);
}
.tour-shot {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top;
    opacity: 0; transform: translateY(16px) scale(.97);
    transition: opacity .5s ease, transform .7s var(--ease-out);
}
.tour-shot.is-active { opacity: 1; transform: none; }
@media (min-width: 900px) {
    .tour { grid-template-columns: 1fr minmax(320px, 440px); gap: var(--space-8); align-items: center; }
}
@media (max-width: 899px) {
    /* Phones: the six features become a swipeable row of chips, the text of the chosen one sits under it. */
    .tour.is-js .tour-list { display: flex; gap: var(--space-2); overflow-x: auto; scroll-snap-type: x proximity; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px; scrollbar-width: none; }
    .tour.is-js .tour-list::-webkit-scrollbar { display: none; }
    .tour.is-js .tour-item { flex: none; width: auto; grid-template-columns: 32px auto; column-gap: 10px; align-items: center; padding: 7px 16px 9px 8px; scroll-snap-align: center; background: var(--color-surface); border-color: var(--color-border); border-radius: var(--radius-pill); box-shadow: none; }
    [dir="rtl"] .tour.is-js .tour-item { padding: 7px 8px 9px 16px; }
    .tour.is-js .tour-icon { width: 32px; height: 32px; border-radius: 50%; }
    .tour.is-js .tour-icon .icon { width: 18px; height: 18px; }
    .tour.is-js .tour-text strong { padding: 0; font-size: 14px; white-space: nowrap; }
    .tour.is-js .tour-desc { display: none; }
    .tour.is-js .tour-item.is-active { border-color: var(--color-primary); box-shadow: var(--shadow-sm); }
    .tour.is-js .tour-caption { display: block; min-height: 4.6em; margin: 0; text-align: center; color: var(--color-text-muted); font-size: 15px; }
    .tour-stage { padding-block: var(--space-2) var(--space-4); }
    .phone-frame { width: 240px; }
}

/* ---------- All features: tabs ---------- */
.ftabs-nav {
    position: relative; display: flex; gap: 4px; width: fit-content; max-width: 100%;
    margin: 0 auto var(--space-6); padding: 5px; overflow-x: auto; scrollbar-width: none;
    border: 1px solid var(--color-border); border-radius: var(--radius-pill); background: var(--color-surface);
}
.ftabs-nav::-webkit-scrollbar { display: none; }
.ftabs:not(.is-js) .ftabs-nav { display: none; }
.ftabs-pill { position: absolute; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: var(--radius-pill); background: var(--color-secondary); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.ftab {
    position: relative; z-index: 1; flex: none; display: inline-flex; align-items: center; gap: var(--space-2);
    min-height: 42px; padding: 8px 16px; border: 0; border-radius: var(--radius-pill); background: none;
    font: 700 15px/1.2 var(--font-body); color: var(--color-text-main); white-space: nowrap; cursor: pointer;
    transition: color .3s ease;
}
.ftab b { padding: 1px 7px; border-radius: var(--radius-pill); background: var(--color-surface-alt); color: var(--color-text-muted); font: 700 12px/1.5 var(--font-latin); transition: background-color .3s ease, color .3s ease; }
.ftab.is-active { color: #fff; }
.ftab.is-active b { background: rgba(255, 255, 255, .2); color: #fff; }
.ftabs-title { font-size: 18px; margin: var(--space-6) 0 var(--space-3); }
.ftabs.is-js .ftabs-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ftabs.is-js .ftabs-panel:not(.is-active) { display: none; }
.ftabs.is-js .ftabs-panel.is-active .feature-card { animation: rise .55s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
.ftabs-panel:focus-visible { outline-offset: 6px; }
.feature-icon { transition: transform .4s var(--ease-spring); }
.feature-card:hover .feature-icon { transform: scale(1.1) rotate(-4deg); }

/* ---------- Apps ---------- */
.app-shot { position: relative; }
.app-shot img { position: relative; z-index: 1; }
.app-pulse, .app-pulse::after { position: absolute; top: 50%; left: 50%; width: 300px; height: 300px; margin: -150px 0 0 -150px; border-radius: 50%; border: 2px solid var(--color-accent); animation: ripple 3.2s ease-out infinite; }
.app-pulse::after { content: ""; top: 0; left: 0; margin: -2px; animation-delay: 1.6s; }
.app-ping {
    position: absolute; z-index: 2; top: 14%; inset-inline-start: calc(50% - 190px);
    display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
    border-radius: var(--radius-md); background: var(--color-surface); border: 1px solid var(--color-border); box-shadow: var(--shadow-md);
    font-size: 13px; font-weight: 700; color: var(--color-heading); white-space: nowrap;
    animation: ping-in 5s ease-in-out infinite;
}
.app-ping .icon { color: var(--color-primary-strong); }
@media (max-width: 480px) {
    .app-ping { inset-inline-start: 4%; }
    .app-pulse, .app-pulse::after { width: 220px; height: 220px; margin: -110px 0 0 -110px; }
    .app-pulse::after { margin: -2px; }
}
.patient-app {
    display: grid; grid-template-columns: 72px 1fr; gap: var(--space-4); align-items: center;
    max-width: 820px; margin: var(--space-7) auto 0; padding: var(--space-5);
    border: 1px dashed var(--color-border-strong); border-radius: var(--radius-lg); background: var(--color-surface);
}
.patient-app img { width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-md); }
.patient-app h3 { font-size: 18px; margin-bottom: var(--space-1); }
.patient-app p { margin: 0; color: var(--color-text-muted); font-size: 15px; }
.patient-app .patient-app-soon { display: inline-block; margin-bottom: 6px; padding: 1px 10px; border-radius: var(--radius-pill); background: var(--color-warning-tint); color: var(--color-warning); font-size: 12px; font-weight: 700; }
.patient-app .patient-app-soon.is-live { background: var(--color-primary-tint); color: #1E6B40; }
.patient-app:has(> .store-badge) { grid-template-columns: 72px 1fr auto; }
.patient-app .store-badge { align-self: center; }
a.store-badge, a.store-badge:hover { color: #fff; text-decoration: none; }
a.store-badge:hover { background: var(--color-secondary); }
@media (max-width: 640px) {
    .patient-app, .patient-app:has(> .store-badge) { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}

/* ---------- Pricing: short cards + the full comparison ---------- */
.plan { transition: translate .3s var(--ease-out), box-shadow .3s ease, border-color .3s ease; }
.plan:hover { translate: 0 -5px; box-shadow: var(--shadow-lg); border-color: var(--color-accent); }
.plan-featured:hover { border-color: var(--color-primary); }
.plan-limits { margin-bottom: var(--space-3); }
.plan-plus { margin: 0 0 var(--space-2); font-size: 13px; font-weight: 700; color: var(--color-secondary); }
.plan-more { margin: var(--space-2) 0 0; font-size: 13px; }
.plan-more a { font-weight: 700; }
.price-amount { display: inline-block; font-variant-numeric: tabular-nums; }
.compare { margin-top: var(--space-6); }
.compare summary { display: flex; justify-content: center; list-style: none; cursor: pointer; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary:focus-visible { outline: none; }
.compare summary:focus-visible .btn { outline: 3px solid var(--color-secondary); outline-offset: 2px; }
.compare[open] summary .btn { border-color: var(--color-secondary); background: var(--color-secondary-tint); }
.compare-body { margin-top: var(--space-5); }
.compare-wrap { overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-surface); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 14px; }
.compare-table th, .compare-table td { padding: 10px 14px; text-align: center; border-bottom: 1px solid var(--color-border); }
.compare-table tbody tr:last-child > * { border-bottom: 0; }
.compare-table thead th { position: sticky; top: 0; font: 800 16px/1.3 var(--font-head); color: var(--color-heading); background: var(--color-surface); }
.compare-table th[scope="row"] { position: sticky; inset-inline-start: 0; z-index: 1; min-width: 150px; max-width: 46vw; text-align: start; font-weight: 600; color: var(--color-text-main); background: var(--color-surface); }
.compare-table .compare-group th { text-align: start; font: 700 13px/1.4 var(--font-body); color: var(--color-secondary); background: var(--color-surface-alt); }
.compare-table .is-featured { background: #F2FAF5; }
.compare-table td { font-family: var(--font-latin); color: var(--color-heading); font-weight: 600; }
.lang-ar .compare-table td { font-family: var(--font-body); }
.compare-table .is-on .icon { color: var(--color-primary-strong); }
.compare-table .is-off { color: #9AAAB8; }
.compare-table tbody tr:not(.compare-group):hover > * { background: var(--color-secondary-tint); }

/* ---------- Why Davaya ---------- */
.why { display: grid; gap: var(--space-4); list-style: none; }
@media (min-width: 640px) { .why { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .why { grid-template-columns: repeat(4, 1fr); } }
.why-card {
    position: relative; padding: var(--space-5); overflow: hidden;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    transition: translate .3s var(--ease-out), box-shadow .3s ease;
}
.why-card::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--color-primary), var(--color-accent)); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
[dir="rtl"] .why-card::before { transform-origin: right; }
.why-card:hover { translate: 0 -4px; box-shadow: var(--shadow-md); }
.why-card:hover::before { transform: none; }
.why-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--space-4); border-radius: 50%; background: linear-gradient(135deg, var(--color-primary-strong), #1E8A77); color: #fff; box-shadow: 0 8px 18px rgba(46, 133, 83, .28); }
.why-card h3 { font-size: 18px; margin-bottom: var(--space-2); }
.why-card p { margin: 0; color: var(--color-text-muted); font-size: 15px; }
@media (max-width: 639px) {
    .why-card { display: grid; grid-template-columns: 48px 1fr; column-gap: var(--space-4); padding: var(--space-4); }
    .why-icon { grid-row: span 2; width: 48px; height: 48px; margin: 0; }
    .why-card h3 { font-size: 17px; margin-bottom: 2px; }
}

/* ---------- FAQ ---------- */
.faq details { transition: border-color .3s ease, box-shadow .3s ease; }
.faq summary { transition: color .2s ease; }
.faq summary:hover { color: var(--color-secondary); }

/* ---------- Final call ---------- */
.final-cta { position: relative; overflow: hidden; background-size: 220% 220%; animation: gradient-pan 14s ease-in-out infinite; }
.final-cta::before, .final-cta::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .06); animation: float-y 9s ease-in-out infinite; }
.final-cta::before { width: 320px; height: 320px; top: -140px; inset-inline-start: -80px; }
.final-cta::after { width: 220px; height: 220px; bottom: -110px; inset-inline-end: 6%; animation-delay: -4s; }
.final-cta-inner { position: relative; z-index: 1; }

/* ---------- For patients: one line above the footer ---------- */
.dir-strip { background: var(--color-footer); color: var(--color-footer-text); border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: 15px; }
.dir-strip-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-2) var(--space-5); padding-block: var(--space-4); }
.dir-strip p { margin: 0; }
.dir-strip strong { color: #fff; }
.dir-strip .icon { color: var(--color-accent); margin-inline-end: 4px; }
.dir-strip a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--color-accent); text-decoration: none; white-space: nowrap; }
.dir-strip a:hover { color: #fff; }
.dir-strip a .icon { transition: translate .25s var(--ease-out); margin: 0; }
.dir-strip a:hover .icon { translate: calc(var(--dir) * 4px) 0; }

/* ---------- Phone: "start free" stays one thumb away ---------- */
.sticky-cta {
    position: fixed; z-index: 40; inset-inline: 0; bottom: 0; display: flex; gap: var(--space-2);
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .94); border-top: 1px solid var(--color-border);
    backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 -8px 24px rgba(22, 50, 74, .1);
    transform: translateY(110%); transition: transform .45s var(--ease-out);
}
.sticky-cta[hidden] { display: none; }
.sticky-cta.is-on { transform: none; }
.sticky-cta .btn { min-height: 48px; }
.sticky-cta-wa { flex: none; width: 52px; padding: 0; }
@media (min-width: 700px) { .sticky-cta { display: none; } }
.wa-float {
    position: fixed; z-index: 40; inset-inline-end: 22px; bottom: 22px;
    display: none; align-items: center; gap: var(--space-2); min-height: 52px; padding: 0 18px;
    border-radius: var(--radius-pill); background: var(--color-wa); color: #fff; font-weight: 700; text-decoration: none;
    box-shadow: 0 12px 28px rgba(31, 122, 74, .35);
    opacity: 0; transform: translateY(20px) scale(.9); pointer-events: none;
    transition: opacity .35s ease, transform .45s var(--ease-spring), background-color .2s ease;
}
.wa-float:hover { background: #18633C; color: #fff; }
.wa-float.is-on { opacity: 1; transform: none; pointer-events: auto; }
@media (min-width: 700px) { .wa-float { display: inline-flex; } }
.dir-strip-links { display: inline-flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5); }

/* ---- integrations (partners the platform connects to) ---- */
.integrations { display: grid; gap: var(--space-4); list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .integrations { grid-template-columns: repeat(3, 1fr); } }
.integration-card {
    position: relative; display: flex; flex-direction: column; gap: 10px; padding: var(--space-5);
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg);
    transition: translate .3s var(--ease-out), box-shadow .3s ease;
}
@media (hover: hover) { .integration-card:hover { translate: 0 -4px; box-shadow: 0 18px 40px rgba(22, 50, 74, .10); } }
.integration-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.integration-head img { display: block; height: auto; max-height: 50px; width: auto; max-width: 140px; object-fit: contain; }
.integration-badge { flex: none; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--color-surface-alt); color: var(--color-text-muted); border: 1px solid var(--color-border); }
.integration-badge.is-ready { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.integration-card h3 { font-size: 18px; margin: 0; }
.integration-card p { margin: 0; color: var(--color-text-muted); font-size: 15px; line-height: 1.7; }
.integrations-more { display: flex; align-items: flex-start; gap: 8px; margin: var(--space-5) auto 0; max-width: 760px; color: var(--color-text-muted); font-size: 15px; text-align: start; }
.integrations-more .icon { flex: none; margin-top: 3px; color: var(--color-primary-strong); }
.footer-cta { margin-top: var(--space-4); padding: 10px 20px; font-size: 15px; }
.site-footer a.footer-cta { color: #fff; text-decoration: none; }
.footer-made { margin: var(--space-4) 0 0; font-size: 13.5px; opacity: .8; }
.footer-address { font-style: normal; font-size: 13px; opacity: .75; margin-top: 6px; line-height: 1.6; }
.site-footer .footer-made a { color: #fff; }
/* "Made with ❤ by" credit (shared look with the store and dashboard footers) */
.site-footer .dev-credit { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #475569; font: 600 12px/1 system-ui, sans-serif; text-decoration: none; direction: ltr; }
.site-footer .dev-credit:hover { background: #fff; text-decoration: none; }
.dev-credit img { height: 22px; width: auto; display: block; }
.dev-heart { font-style: normal; color: #e11d48; display: inline-block; animation: dev-beat 1.6s ease-in-out infinite; }
@keyframes dev-beat { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .dev-heart { animation: none; } }

.footer-bottom { align-items: center; }
.footer-bottom .footer-note { margin-inline-start: auto; }

/* ---- mobile menu: a button that opens the same links as a panel under the header ---- */
.nav-toggle { display: inline-flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px; width: 44px; height: 44px; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-sm); background: #fff; cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--color-heading); transition: transform .25s ease, opacity .2s ease; }
.nav-toggle span { display: block; }
.nav-open .nav-toggle span { opacity: 0; }
.nav-open .nav-toggle::before { transform: translateY(7px) rotate(45deg); }
.nav-open .nav-toggle::after { transform: translateY(-7px) rotate(-45deg); }
@media (max-width: 899px) {
    .site-header { position: sticky; }
    .header-actions { gap: var(--space-1); }
    .header-actions .btn-sm { white-space: nowrap; }
    .main-nav { position: absolute; inset-inline: 0; top: 100%; display: block; margin: 0; background: #fff; border-bottom: 1px solid var(--color-border); box-shadow: 0 18px 30px rgba(22, 50, 74, .12); max-height: 0; overflow: hidden; visibility: hidden; transition: max-height .3s ease, visibility 0s linear .3s; }
    .nav-open .main-nav { max-height: 80vh; visibility: visible; transition: max-height .3s ease; overflow-y: auto; }
    .main-nav ul { flex-direction: column; gap: 0; padding: 8px var(--space-4) 14px; }
    .main-nav a { padding: 14px 8px; font-size: 16px; border-bottom: 1px solid var(--color-border); border-radius: 0; }
    .main-nav li:last-child a { border-bottom: 0; }
    .main-nav a::after { display: none; }
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
@media (prefers-reduced-motion: reduce) { .main-nav, .nav-toggle span, .nav-toggle::before, .nav-toggle::after { transition: none; } }
/* payment-method marks */
.pay-icons { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 14px 0 6px; padding: 0; }
.pay-icons-center { justify-content: center; }
.pay-mark svg { display: block; width: 56px; height: 35px; }
.pay-mark.is-soon { opacity: .45; filter: grayscale(.6); }

/* ---- website assistant ("اسألنا") ---- */
.asst {
    position: fixed; z-index: 60; inset-inline-end: 22px; bottom: 22px; width: min(400px, calc(100vw - 32px));
    height: min(600px, calc(100dvh - 44px)); display: flex; flex-direction: column;
    background: var(--color-surface); border: 1px solid var(--color-border); border-radius: 20px;
    box-shadow: 0 24px 60px rgba(22, 50, 74, .28); overflow: hidden;
}
.asst[hidden] { display: none; }
.asst-open .wa-float, .asst-open .sticky-cta { visibility: hidden; }
.asst-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--color-heading); color: #fff; }
.asst-head img { width: 40px; height: 40px; border-radius: 12px; background: #fff; padding: 3px; }
.asst-head > div { flex: 1; min-width: 0; }
.asst-title { margin: 0; font-weight: 800; font-size: 16px; color: #fff; }
.asst-sub { margin: 0; font-size: 12px; opacity: .8; }
.asst-head button { width: 36px; height: 36px; border: 0; border-radius: 10px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.asst-head button:hover { background: rgba(255, 255, 255, .22); }
.asst-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--color-surface-alt); overscroll-behavior: contain; }
.asst-msg { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 15px; line-height: 1.7; overflow-wrap: anywhere; }
.asst-bot { align-self: flex-start; background: var(--color-surface); color: var(--color-text-main); border: 1px solid var(--color-border); border-start-start-radius: 4px; }
.asst-me { align-self: flex-end; background: var(--color-primary-strong); color: #fff; border-start-end-radius: 4px; }
.asst-msg a { color: inherit; text-decoration: underline; }
.asst-bot a { color: var(--color-secondary); }
.asst-msg.is-typing { color: var(--color-text-muted); font-style: italic; }
.asst-msg.is-error { border-color: var(--color-danger); }
.asst-handoff { align-self: stretch; padding: 12px; border-radius: 14px; background: var(--color-surface); border: 1px dashed var(--color-border-strong); text-align: center; }
.asst-handoff p { margin: 0 0 8px; font-size: 14px; color: var(--color-text-main); }
.asst-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 14px 0; background: var(--color-surface-alt); }
.asst-chips[hidden] { display: none; }
.asst-chips button { padding: 6px 12px; border: 1px solid var(--color-border-strong); border-radius: 999px; background: var(--color-surface); color: var(--color-heading); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.asst-chips button:hover { border-color: var(--color-primary-strong); color: var(--color-primary-strong); }
.asst-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--color-border); background: var(--color-surface); }
.asst-form textarea { flex: 1; min-height: 44px; max-height: 110px; padding: 10px 12px; resize: none; border: 1.5px solid var(--color-border-strong); border-radius: 12px; font: 15px/1.5 var(--font-body); color: var(--color-heading); }
.asst-form textarea:focus { outline: none; border-color: var(--color-secondary); }
.asst-form .btn { min-height: 44px; padding: 0 16px; }
.asst-human { display: block; padding: 0 12px 4px; text-align: center; font-size: 13.5px; font-weight: 700; color: var(--color-wa, #1F7A4A); background: var(--color-surface); }
.asst-note { margin: 0; padding: 2px 12px 10px; text-align: center; font-size: 11.5px; color: var(--color-text-muted); background: var(--color-surface); }
@media (max-width: 560px) {
    .asst { inset: 0; width: auto; height: 100dvh; border-radius: 0; border: 0; }
}

/* the other product (clinics), named under the pharmacy hero, and its new link in the menu */
.other-product { margin: var(--space-3) 0 0; }
.other-product a { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: var(--radius-pill); background: var(--color-surface); border: 1px solid var(--color-border); color: var(--color-text-main); font-size: 14.5px; text-decoration: none; }
.other-product a:hover { border-color: var(--color-secondary); color: var(--color-secondary); }
.other-product b { color: var(--color-secondary); }
.new-tag { margin-inline-start: 4px; padding: 0 7px; border-radius: 999px; background: var(--color-primary-tint); color: var(--color-primary-strong); font-size: 11px; font-weight: 800; vertical-align: 2px; }

/* sign-up: free link or own domain (booked through EgWeb, paid yearly) */
.site-choice { display: grid; gap: 10px; }
.site-choice .field-label { margin: 0; font-weight: 800; color: var(--color-heading); }
.choice-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md); background: var(--color-surface); cursor: pointer; }
.choice-card:has(input:checked) { border-color: var(--color-secondary); background: var(--color-secondary-tint); }
.choice-card input { margin-top: 5px; width: 18px; height: 18px; accent-color: var(--color-secondary); flex: none; }
.choice-card span { display: grid; gap: 2px; }
.choice-card small { color: var(--color-text-muted); font-size: 14px; }
.domain-pick { display: grid; gap: 6px; }
.domain-pick select { border: 0; border-inline-start: 1.5px solid var(--color-border); background: var(--color-surface-alt); padding: 0 12px; font: 600 15px var(--font-latin); color: var(--color-heading); min-height: 48px; }

/* ===== the platform front page (pharmacies + clinics + patients) ===== */
.p-hero { padding-bottom: var(--space-7); }
.p-hero-copy { max-width: 820px; margin-inline: auto; text-align: center; }
.p-hero-copy .lead { margin-inline: auto; }
.p-cards { display: grid; gap: var(--space-4); margin-top: var(--space-6); position: relative; }
@media (min-width: 900px) { .p-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.p-card { display: flex; flex-direction: column; gap: 10px; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); border-top: 5px solid var(--color-primary); }
.p-card-cl { border-top-color: var(--color-secondary); }
.p-card-pt { border-top-color: #7CC5B5; }
.p-card h2 { font-size: 21px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.p-card p { margin: 0; color: var(--color-text-muted); font-size: 15.5px; }
.p-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 14.5px; font-weight: 700; }
.p-card ul li { display: flex; gap: 6px; align-items: center; }
.p-card ul .icon { color: var(--color-primary-strong); flex: none; }
.p-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--color-primary-tint); color: var(--color-primary-strong); }
.p-card-cl .p-ic { background: var(--color-secondary-tint); color: var(--color-secondary); }
.p-ic .icon { width: 26px; height: 26px; }
.p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 6px; }
.p-actions .btn { flex: 1 1 auto; justify-content: center; }
.p-search { display: flex; gap: 6px; }
.p-search input { flex: 1; min-width: 0; min-height: 46px; padding: 8px 14px; border: 1.5px solid var(--color-border-strong); border-radius: var(--radius-md); font: 16px var(--font-body); }
.p-search .btn { padding-inline: 14px; }
.p-trust { justify-content: center; margin-top: var(--space-5); }
.p-split { display: grid; gap: var(--space-6); align-items: center; }
@media (min-width: 900px) { .p-split { grid-template-columns: 1fr 1fr; } .p-split-rev > :first-child { order: 2; } }
.p-points { list-style: none; padding: 0; margin: 0 0 var(--space-5); display: grid; gap: var(--space-3); }
.p-points li { padding-inline-start: 16px; border-inline-start: 3px solid var(--color-primary); color: var(--color-text-muted); }
.p-points b { display: block; color: var(--color-heading); font-size: 17px; }
.p-shot { width: 100%; height: auto; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg, 0 20px 50px rgb(16 39 58 / .12)); border: 1px solid var(--color-border); }
.p-screen { background: linear-gradient(160deg, #10273a, #1d4766); color: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 24px 60px rgb(16 39 58 / .25); font-family: var(--font-head); }
.p-screen-top { margin: 0 0 14px; opacity: .75; font-size: 14px; }
.p-screen-now { display: flex; align-items: center; gap: 18px; background: #ffffff14; border-radius: 16px; padding: 16px 20px; }
.p-screen-now > span { font-size: 64px; font-weight: 800; line-height: 1; color: #7CE3A6; }
.p-screen-now small { display: block; opacity: .8; } .p-screen-now b { font-size: 24px; }
.p-screen ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.p-screen li { display: flex; gap: 12px; align-items: center; padding: 8px 12px; border-radius: 12px; background: #ffffff0d; opacity: .9; }
.p-screen li span { font-weight: 800; color: #9cc9ff; min-width: 2ch; }
.p-flow { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-4); counter-reset: f; }
@media (min-width: 900px) { .p-flow { grid-template-columns: repeat(4, 1fr); } }
.p-flow li { position: relative; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); text-align: center; }
.p-flow li > span { width: 52px; height: 52px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--color-primary-tint); color: var(--color-primary-strong); }
.p-flow li b { font-size: 18px; color: var(--color-heading); }
.p-flow li p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 15px; }
.p-prices { display: grid; gap: var(--space-4); }
@media (min-width: 800px) { .p-prices { grid-template-columns: repeat(3, 1fr); } }
.p-price { display: grid; gap: 6px; padding: var(--space-5); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-lg); text-decoration: none; color: var(--color-text-main); text-align: center; }
.p-price:hover { border-color: var(--color-secondary); box-shadow: var(--shadow-md); }
.p-price b { font-size: 20px; color: var(--color-heading); }
.p-price strong { font-size: 28px; color: var(--color-primary-strong); }
.p-price small { color: var(--color-secondary); font-weight: 700; }
.p-shot { display: block; max-width: 340px; margin-inline: auto; }
@media (max-width: 560px) {
    .domain-pick .slug-input { flex-direction: column; }
    .domain-pick .slug-input input[type="text"] { min-height: 48px; }
    .domain-pick select { border-inline-start: 0; border-top: 1.5px solid var(--color-border); width: 100%; }
}

/* platform page: hero with the products on their devices, real numbers, product shots */
.p-hero-grid { display: grid; gap: var(--space-5); align-items: center; }
@media (min-width: 1000px) { .p-hero-grid { grid-template-columns: 1fr 1.15fr; } .p-hero-grid .p-hero-copy { text-align: start; margin: 0; } .p-hero-grid .p-hero-copy .lead { margin-inline: 0; } }
.p-hero-art { width: 100%; height: auto; display: block; filter: drop-shadow(0 28px 36px rgb(16 39 58 / .22)); }
.p-shot-wide { filter: drop-shadow(0 24px 32px rgb(16 39 58 / .18)); }
.p-hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }
@media (min-width: 1000px) { .p-hero-ctas { justify-content: flex-start; } }
@media (max-width: 999px) { .p-hero-ctas { justify-content: center; } }
.p-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: var(--space-6); background: var(--color-border); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 800px) { .p-stats { grid-template-columns: repeat(4, 1fr); } }
.p-stats div { background: var(--color-surface); padding: var(--space-4); text-align: center; }
.p-stats b { display: block; font: 800 30px/1.2 var(--font-head); color: var(--color-secondary); }
.p-stats span { color: var(--color-text-muted); font-size: 14.5px; font-weight: 700; }
.p-shot.p-shot-wide { max-width: 100%; border: 0; box-shadow: none; border-radius: 0; }
@media (min-width: 1000px) { .p-hero-grid h1 { font-size: clamp(34px, 3.4vw, 48px); } }

/* tutorial video */
.p-video { max-width: 960px; margin-inline: auto; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--color-border); box-shadow: 0 24px 60px rgb(16 39 58 / .16); background: #10273a; aspect-ratio: 16 / 9; }
.p-video video { display: block; width: 100%; height: 100%; object-fit: contain; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.spec-chip { padding: 10px 18px; border-radius: 999px; background: var(--color-surface); border: 1px solid var(--color-border); font-weight: 700; color: var(--color-heading); text-decoration: none; transition: border-color .15s, color .15s; }
.spec-chip:hover { border-color: var(--color-primary); color: var(--color-primary-strong); }
.p-crumbs { font-size: 14px; color: var(--color-text-muted); margin-bottom: var(--space-3); } .p-crumbs a { color: var(--color-primary-strong); }
