/*
 * Davaya public site. Loaded after landing.css (and directory.css / blog.css when a page uses them) on every page of
 * the marketing shell only: the dashboards and stores keep tokens.css as it is.
 *
 * The structure is the EgWeb family's (as on egweb.com.eg and eghub.app): dark panels with rounded corners set inside
 * a white page, a floating white pill header, ruled numbered columns, and Cairo at its heaviest for headlines. The
 * colours are the two of Davaya's logo, so the logo, the public site, the dashboards and the stores read as one
 * product: the blue of the wordmark (deepened) for the panels and headings, and the green of the mark for every
 * action. Blue leads and green acts: a green button stands out on blue, and the product screenshots (blue sidebar)
 * sit naturally in the hero. EgWeb's orange stays as a spark only: the short rule beside a kicker and the one dot on
 * the orbit rings.
 *   --dv-deep #14304A    dark panels, headings          --dv-deep-2 #2C5B80   its gradient partner (the logo blue)
 *   --dv-action #45A76C  buttons (the logo green)       --dv-action-text #2E8553  green text on white (4.5:1)
 *   --eg-spark #F37623   EgWeb's orange, decoration only
 * Contrast (WCAG 2.x): #FFF on --dv-deep 13.5:1 · --on-deep #C8D6E2 on --dv-deep 9:1 · --dv-deep on --dv-action
 * 4.6:1 (button text is the deep blue, never white: white on the logo green is 3:1) · muted #53677A on #FFF 5.9:1.
 */
:root {
    --font-body: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --font-head: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
    --dv-deep: #14304A;
    --dv-deep-2: #2C5B80;
    --dv-deep-ink: #0C1E2E;
    --dv-action: #45A76C;
    --dv-action-hover: #58BD80;
    --dv-action-soft: #7FD6A2;
    --dv-action-text: #2E8553;
    --eg-spark: #F37623;
    --dv-dark: linear-gradient(135deg, var(--dv-deep) 0%, var(--dv-deep) 35%, var(--dv-deep-2) 100%);
    --dv-paper: #F4F7F9;
    --dv-line: #E1E8EE;
    --dv-line-strong: #C5D1DB;
    --on-deep: #C8D6E2;
    --hdr: 72px;
    --inset: 8px;
    --panel-r: 28px;

    --color-heading: #14304A;
    --color-text-main: #2B3F52;
    --color-text-muted: #53677A;
    --color-secondary: #2C5B80;
    --color-secondary-hover: #14304A;
    --color-secondary-tint: #E6EEF5;
    --color-icon: #2C5B80;
    --color-bg: #FFFFFF;
    --color-surface-alt: var(--dv-paper);
    --color-border: var(--dv-line);
    --color-border-strong: var(--dv-line-strong);
    --color-footer: #14304A;
    --color-footer-text: #C8D6E2;
    --radius-md: 14px;
    --radius-lg: 24px;
    --radius-xl: 28px;
    --shadow-sm: 0 1px 2px rgba(20, 48, 74, .06);
    --shadow-md: 0 24px 44px -28px rgba(20, 48, 74, .45);
    --shadow-lg: 0 30px 60px -30px rgba(20, 48, 74, .55);
    --container: 1200px;
}
@media (min-width: 640px) { :root { --inset: 12px; --panel-r: 36px; } }
.lang-en { --font-head: 'Comfortaa', 'Open Sans', sans-serif; --font-body: 'Open Sans', system-ui, sans-serif; --font-latin: 'Open Sans', system-ui, sans-serif; }

body { font-size: 16.5px; line-height: 1.85; text-rendering: optimizeLegibility; }
h1, h2 { font-weight: 900; letter-spacing: -.01em; text-wrap: balance; }
h3 { font-weight: 800; }
.lang-ar h1, .lang-ar h2 { line-height: 1.3; }
.lang-en h1, .lang-en h2 { font-weight: 700; letter-spacing: -.02em; }
section[id] { scroll-margin-top: 92px; }

/* ---------- Buttons: the EgWeb action, orange with navy text ---------- */
.btn { border-radius: 999px; font-weight: 800; padding-inline: 24px; }
.btn-lg { border-radius: 999px; padding-inline: 30px; min-height: 54px; }
.btn-sm { padding-inline: 18px; }
.btn:active { scale: .97; }
.btn-primary, .btn-primary:visited { background: var(--dv-action); border-color: transparent; color: var(--dv-deep); box-shadow: 0 10px 24px -14px rgba(69, 167, 108, .9); }
.btn-primary:hover, .btn-primary:focus-visible { background: var(--dv-action-hover); color: var(--dv-deep); }
.btn-outline { background: #fff; border: 1px solid var(--dv-line-strong); color: var(--dv-deep); }
.btn-outline:hover { background: var(--dv-paper); border-color: var(--dv-deep); color: var(--dv-deep); }
.btn-light { background: #fff; color: var(--dv-deep); }
.btn-light:hover { background: var(--dv-paper); color: var(--dv-deep); }
.btn-secondary { background: var(--dv-deep); border-color: var(--dv-deep); color: #fff; }
.btn-secondary:hover { background: var(--dv-deep-2); border-color: var(--dv-deep-2); color: #fff; }

/* ---------- Header: a floating white pill; the page scrolls under it ---------- */
.site-header, .site-header.is-scrolled {
    height: var(--hdr); padding: 12px var(--inset) 0;
    background: none; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
}
.header-inner {
    min-height: 0; height: 60px; max-width: 1240px; padding-inline: 20px 8px;
    border-radius: 999px; background: rgba(255, 255, 255, .95);
    box-shadow: 0 0 0 1px rgba(20, 48, 74, .07), 0 10px 28px -20px rgba(20, 48, 74, .35);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    transition: box-shadow .35s ease-out;
}
.site-header.is-scrolled .header-inner { box-shadow: 0 0 0 1px rgba(20, 48, 74, .08), 0 14px 32px -18px rgba(20, 48, 74, .45); }
.brand-logo { height: 34px; }
.main-nav ul { gap: 0; }
.main-nav a { font-weight: 700; font-size: 15px; padding: 8px 13px; border-radius: 999px; color: #1D3A55; }
.main-nav a::after { display: none; }
.main-nav a:hover { background: var(--dv-paper); color: var(--dv-deep); }
.main-nav a[aria-current="true"] { background: var(--dv-paper); color: var(--dv-deep); }
.lang-switch { color: #1D3A55; border-radius: 999px; }
.header-actions .btn-sm { min-height: 44px; }
.nav-toggle { border-radius: 50%; border-color: var(--dv-line); }
.new-tag { background: #E7F6EC; color: #1E7A4C; }
@media (max-width: 899px) {
    .header-inner { padding-inline: 16px 8px; }
    .main-nav { inset-inline: var(--inset); top: calc(100% + 6px); border: 0; border-radius: 24px; box-shadow: 0 0 0 1px rgba(20, 48, 74, .08), 0 24px 44px -20px rgba(20, 48, 74, .45); }
    .main-nav a { border-radius: 0; border-bottom-color: var(--dv-line); }
}

/* ---------- Kicker: a short orange rule, then the label ---------- */
.eyebrow {
    display: inline-flex; align-items: center; gap: 10px; margin-bottom: var(--space-3);
    padding: 0; background: none; border-radius: 0;
    color: var(--dv-action-text); font-size: 14px; font-weight: 800; letter-spacing: 0;
}
.eyebrow::before { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: var(--eg-spark); }

/* ---------- Sections ---------- */
.section { padding-block: var(--space-8); }
@media (min-width: 900px) { .section { padding-block: 104px; } }
/* calm sections are a tinted rounded band set inside the page */
.section-alt { margin-inline: var(--inset); border-radius: var(--panel-r); background: var(--dv-paper); border: 1px solid var(--dv-line); }
.section-head { text-align: start; max-width: 760px; margin: 0 0 var(--space-7); }
.section-head h2 { font-size: clamp(28px, 4.4vw, 46px); margin-bottom: var(--space-3); }
.section-head p:last-child { font-size: 17.5px; max-width: 40em; }

/* ---------- Dark panel: navy, thin orbit rings, one orange point of light ---------- */
.hero, .final-cta-inner { position: relative; overflow: hidden; isolation: isolate; background: var(--dv-dark); color: var(--on-deep); }
.hero::before, .final-cta-inner::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 1100px; aspect-ratio: 1; border-radius: 50%; top: -420px; inset-inline-end: -300px;
    background: repeating-radial-gradient(circle, transparent 0 129px, rgba(255, 255, 255, .055) 129px 130px);
    -webkit-mask-image: radial-gradient(circle, #000 30%, transparent 70%); mask-image: radial-gradient(circle, #000 30%, transparent 70%);
}
.hero::after, .final-cta-inner::after {
    content: ""; position: absolute; z-index: -1; pointer-events: none;
    width: 8px; height: 8px; border-radius: 50%; top: 22%; inset-inline-end: 7%;
    background: var(--eg-spark); box-shadow: 0 0 0 6px rgba(243, 118, 35, .16), 0 0 26px 4px rgba(243, 118, 35, .55);
    animation: none;
}
.hero-glow { display: none; }

/* ---------- Hero (every product page): the panel starts under the header pill ---------- */
.hero { margin-inline: var(--inset); border-radius: var(--panel-r); padding-block: 48px 64px; }
main > .hero:first-child, main > .dir-hero:first-child { margin-top: calc(8px - var(--hdr)); padding-top: calc(var(--hdr) + 40px); }
@media (min-width: 980px) {
    .hero { padding-block: 72px 96px; }
    main > .hero:first-child { padding-top: calc(var(--hdr) + 72px); }
}
.hero h1 { color: #fff; font-weight: 900; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.25; }
.lang-en .hero h1 { font-weight: 700; line-height: 1.15; }
.hero h1 .hl { color: var(--dv-action-soft); background: none; -webkit-background-clip: border-box; background-clip: border-box; -webkit-text-fill-color: currentColor; }
.hero .lead { color: var(--on-deep); font-size: clamp(16.5px, 1.5vw, 18.5px); line-height: 1.9; }
.hero .eyebrow { color: var(--dv-action-soft); }
.hero .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.hero .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; color: #fff; }
.hero .trust-list { color: var(--on-deep); }
.hero .trust-list .icon { color: var(--dv-action); }
.hero .demo-dash a, .hero .p-crumbs a { color: #fff; text-decoration-color: var(--dv-action); text-underline-offset: 5px; }
.hero .p-crumbs { color: var(--on-deep); }
.hero-url { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .16); color: var(--on-deep); border-radius: 999px; }
.hero-url-slug { color: var(--dv-action-soft); }
.hero-url-caret { background: var(--eg-spark); }
.hero .other-product a { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: var(--on-deep); border-radius: 999px; }
.hero .other-product a:hover { border-color: var(--dv-action); color: #fff; }
.hero .other-product b { color: #fff; }
.p-hero-art { filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45)); }
.hero .mock-dash, .hero .mock-phone { box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); }
.hero .mock-phone { border-color: var(--dv-deep-ink); }
.hero .mock-phone-notch { background: var(--dv-deep-ink); }

/* ---------- Cards: flat paper, a hairline, a lift on hover ---------- */
.feature-card, .p-flow li, .p-price, .plan, .blog-card, .dir-card { border-radius: var(--radius-lg); border-color: var(--dv-line); box-shadow: none; }
.feature-card { background: var(--dv-paper); transition: translate .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease-out, border-color .35s ease-out; }
.section-alt .feature-card { background: #fff; }
@media (hover: hover) { .feature-card:hover, .blog-card:hover, .dir-card:hover { translate: 0 -4px; box-shadow: var(--shadow-md); border-color: var(--dv-line-strong); } }
.feature-icon, .feature-card:nth-child(3n+2) .feature-icon, .feature-card:nth-child(3n) .feature-icon {
    border-radius: 50%; background: #fff; color: var(--dv-action);
    box-shadow: 0 0 0 1px var(--dv-line), 0 10px 22px -14px rgba(20, 48, 74, .4);
}
.feature-card h3 { font-weight: 800; }

/* ---------- Plans: the recommended one is the navy card ---------- */
.plan-featured { border: 0; background: var(--dv-dark); color: var(--on-deep); box-shadow: 0 30px 60px -30px rgba(20, 48, 74, .7); }
.plan-featured h3, .plan-featured .price-amount, .plan-featured .plan-limits strong, .plan-featured .plan-price { color: #fff; }
.plan-featured .plan-tagline, .plan-featured .plan-limits li, .plan-featured .plan-features li, .plan-featured .price-period, .plan-featured .price-note { color: var(--on-deep); }
.plan-featured .plan-limits { border-bottom-color: rgba(255, 255, 255, .16); }
.plan-featured .plan-features .is-on .icon { color: var(--dv-action); }
.plan-featured .plan-features .is-off, .plan-featured .plan-limits .is-off { color: #8FA3B5; }
.plan-featured .plan-trial { background: rgba(255, 255, 255, .09); color: #fff; }
.plan-badge { background: var(--dv-action); color: var(--dv-deep); font-weight: 800; }

/* ---------- FAQ: the title on one side, a ruled list on the other ---------- */
@media (min-width: 900px) {
    .container:has(> .faq) { max-width: var(--container); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); column-gap: 72px; align-items: start; }
    .container:has(> .faq) > .section-head { position: sticky; top: 112px; margin-bottom: 0; }
    .container:has(> .faq) > :not(.section-head) { grid-column: 2; }
}
.faq { display: block; border-top: 1px solid var(--dv-line-strong); }
.faq details, .faq details[open] { background: none; border: 0; border-bottom: 1px solid var(--dv-line-strong); border-radius: 0; box-shadow: none; }
.faq summary { padding: 20px 0; font-weight: 800; font-size: 17.5px; }
.faq summary:hover { color: var(--dv-deep); }
.faq summary::after, .faq details[open] summary::after {
    content: "+"; width: 30px; height: 30px; margin: 0; border: 1px solid var(--dv-line-strong); border-radius: 50%;
    display: grid; place-items: center; transform: none; font: 700 17px/1 var(--font-latin); color: var(--dv-deep); background: #fff;
    transition: rotate .3s ease, background-color .2s ease;
}
.faq details[open] summary::after { rotate: 45deg; background: var(--dv-deep); border-color: var(--dv-deep); color: #fff; }
.faq details p { padding: 0 0 22px; max-width: 46em; }

/* ---------- Final call: one navy panel, centred ---------- */
.final-cta, .section-alt + .final-cta { background: none; padding-block: var(--inset); color: var(--on-deep); animation: none; overflow: visible; }
.final-cta::before, .final-cta::after { display: none; }
.final-cta-inner { max-width: none; width: auto; margin-inline: var(--inset); padding: 72px var(--space-5); border-radius: var(--panel-r); text-align: center; }
@media (min-width: 900px) { .final-cta-inner { padding-block: 112px; } }
.final-cta-inner::before { top: 50%; inset-inline-end: 50%; translate: 50% -50%; }
[dir="ltr"] .final-cta-inner::before { translate: -50% -50%; }
.final-cta-inner::after { top: 16%; inset-inline-end: 20%; }
.final-cta-inner > * { max-width: 760px; margin-inline: auto; }
.final-cta h2 { color: #fff; font-size: clamp(30px, 5vw, 54px); }
.final-cta p { color: var(--on-deep); font-size: 18px; }
.final-cta .btn-light { background: var(--dv-action); color: var(--dv-deep); box-shadow: 0 10px 24px -14px rgba(69, 167, 108, .9); }
.final-cta .btn-light:hover { background: var(--dv-action-hover); }
.final-cta .btn-light + .btn-light { background: transparent; color: #fff; border: 1px solid rgba(255, 255, 255, .32); box-shadow: none; }
.final-cta .btn-light + .btn-light:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dv-deep); margin-top: 0; }
.footer-title { color: #fff; font-weight: 800; }
.footer-name { font-weight: 900; }
.footer-credit, .dev-credit.footer-credit { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); }

/* ---------- Video: a navy frame ---------- */
.p-video { border: 10px solid var(--dv-deep); border-radius: var(--radius-xl); background: var(--dv-deep); box-shadow: 0 40px 70px -40px rgba(20, 48, 74, .7); outline: 0; }
.p-video video { border-radius: 18px; }

/* ---------- Product splits (home) ---------- */
.p-split { gap: var(--space-7); }
@media (min-width: 900px) { .p-split { column-gap: 72px; } }
.p-split h2 { font-size: clamp(28px, 4vw, 42px); margin-bottom: var(--space-5); }
.p-points { gap: 0; border-top: 1px solid var(--dv-line-strong); margin-bottom: var(--space-6); }
.p-points li { border-inline-start: 0; padding: 16px 0; border-bottom: 1px solid var(--dv-line-strong); color: var(--color-text-muted); }
.p-points b { font-size: 17.5px; font-weight: 800; }
.p-shot-panel { padding: var(--space-5); border-radius: var(--radius-xl); background: var(--dv-paper); border: 1px solid var(--dv-line); }
.section-alt .p-shot-panel { background: #fff; }
.p-shot-panel img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(20, 48, 74, .2)); }

.p-price { padding: var(--space-6) var(--space-5); }
.spec-chip { font-weight: 700; border-radius: 999px; }
.spec-chip:hover { background: var(--dv-paper); border-color: var(--dv-deep); }

/* =====================================================================================================
   Home page (davaya.app/)
   ===================================================================================================== */
.h-hero-grid { display: grid; gap: var(--space-7); align-items: center; }
@media (min-width: 1000px) { .h-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: var(--space-5); } }
.h-hero h1 { font-size: clamp(38px, 6vw, 74px); line-height: 1.2; margin-bottom: var(--space-4); }
.h-hero h1 .hl { display: block; }
.h-sub { display: flex; align-items: flex-start; gap: 12px; margin: 0 0 var(--space-3); color: #fff; font-weight: 800; font-size: clamp(17px, 1.9vw, 21px); line-height: 1.6; }
.h-sub::before { content: ""; flex: none; width: 32px; height: 2px; margin-top: .8em; background: var(--eg-spark); }
.h-hero .lead { max-width: 34em; margin: 0; }
.h-search {
    display: flex; align-items: center; gap: 6px; max-width: 560px; margin-top: var(--space-6); padding: 6px;
    background: #fff; border-radius: 999px; box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .7);
}
.h-search .icon { flex: none; color: var(--color-text-muted); margin-inline-start: 14px; }
.h-search input { flex: 1; min-width: 0; min-height: 50px; border: 0; background: none; font: 600 16.5px var(--font-body); color: var(--dv-deep); outline: none; }
.h-search input::placeholder { color: #7C8C9B; font-weight: 400; }
.h-search:focus-within { box-shadow: 0 0 0 4px rgba(69, 167, 108, .45), 0 24px 50px -24px rgba(0, 0, 0, .7); }
.h-search .btn { min-height: 50px; }
.h-quick { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: var(--space-4) 0 0; font-size: 15px; font-weight: 700; }
.h-quick a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 6px; }
.h-quick a:hover { color: #fff; text-decoration-color: var(--dv-action); }
.h-quick .icon { width: 17px; height: 17px; color: var(--dv-action); }
.h-made { display: flex; align-items: center; gap: 10px; margin: var(--space-6) 0 0; color: #A9BCCC; font-size: 14px; }
.h-made img { height: 22px; width: auto; }
.h-made-sep { width: 1px; height: 16px; background: rgba(255, 255, 255, .22); }
.h-made a b { color: #fff; font-weight: 700; }

/* ---------- about: the two companies behind the platform ---------- */
.about-lead { font-size: 18px; line-height: 1.9; color: var(--color-text-main); margin-top: var(--space-3); }
.about-cos { display: grid; gap: var(--space-4); margin-top: var(--space-4); }
@media (min-width: 700px) { .about-cos { grid-template-columns: 1fr 1fr; } }
.about-co { padding: var(--space-5); border: 1px solid var(--dv-line); border-radius: var(--radius-lg); background: #fff; }
.about-co .about-role { margin: 0 0 var(--space-3); font-size: 13px; font-weight: 800; color: var(--dv-action-text); }
.about-logo { display: inline-block; margin-bottom: var(--space-3); }
.about-logo img { height: 40px; width: auto; }
.about-co p { font-size: 15px; }
.about-co ul { font-size: 15px; margin-top: var(--space-3); }
.h-art { position: relative; }
.h-art > img { display: block; width: 100%; height: auto; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .5)); }
@media (min-width: 1000px) { .h-art { margin-inline-end: -70px; } }
.h-float { position: absolute; inset-inline-start: 4%; bottom: -4%; display: grid; gap: 2px; padding: 12px 18px; border-radius: 18px; background: #fff; color: var(--dv-deep); box-shadow: 0 24px 44px -20px rgba(0, 0, 0, .6); font-size: 13.5px; line-height: 1.6; }
.h-float b { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; }
.h-float b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2E9E5E; box-shadow: 0 0 0 4px rgba(46, 158, 94, .18); }
.h-float span { color: var(--color-text-muted); }
@media (max-width: 999px) { .h-float { display: none; } }

/* the three audiences */
.h-doors { padding-block: var(--space-8) 0; }
@media (min-width: 900px) { .h-doors { padding-top: 96px; } }
.h-doors-grid { display: grid; gap: var(--space-4); }
@media (min-width: 900px) { .h-doors-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.h-door {
    display: flex; flex-direction: column; gap: 12px; padding: 32px 28px 28px;
    background: var(--dv-paper); border: 1px solid var(--dv-line); border-radius: var(--radius-xl);
}
.h-door-num { font: 800 13px/1 var(--font-latin); letter-spacing: .08em; color: var(--dv-action-text); }
.h-door h2 { font-size: 27px; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.h-door > p { margin: 0; color: var(--color-text-muted); font-size: 15.5px; }
.h-door ul { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 8px; font-size: 15px; font-weight: 700; color: var(--color-text-main); }
.h-door li { display: flex; gap: 8px; align-items: center; }
.h-door li .icon { flex: none; color: var(--dv-action); }
.h-door .p-actions { padding-top: var(--space-4); margin-top: 0; }
.h-door-price { margin-top: auto; padding-top: var(--space-4); border-top: 1px solid var(--dv-line-strong); color: var(--color-text-muted); font-size: 14.5px; }
.h-door-price b { color: var(--dv-deep); font-size: 22px; font-weight: 900; }
.h-door.is-pharmacy { background: var(--dv-dark); border-color: transparent; color: var(--on-deep); box-shadow: 0 30px 60px -34px rgba(20, 48, 74, .8); }
.h-door.is-pharmacy h2, .h-door.is-pharmacy .h-door-price b { color: #fff; }
.h-door.is-pharmacy > p, .h-door.is-pharmacy ul, .h-door.is-pharmacy .h-door-price { color: var(--on-deep); }
.h-door.is-pharmacy .h-door-num { color: var(--dv-action-soft); }
.h-door.is-pharmacy .h-door-price { border-top-color: rgba(255, 255, 255, .16); }
.h-door.is-pharmacy .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.h-door.is-pharmacy .btn-outline:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }

.h-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5) var(--space-4); margin-top: var(--space-8); }
@media (min-width: 800px) { .h-stats { grid-template-columns: repeat(4, 1fr); } }
.h-stats div { padding-top: 16px; border-top: 1px solid var(--dv-line-strong); }
.h-stats b { display: block; font: 900 clamp(32px, 4.4vw, 52px)/1.15 var(--font-head); color: var(--dv-deep); direction: ltr; text-align: end; }
[dir="ltr"] .h-stats b { text-align: start; }
.h-stats span { color: var(--color-text-muted); font-size: 15px; font-weight: 600; }

/* how the parts meet: four ruled, numbered columns */
.h-flow { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); counter-reset: hf; }
@media (min-width: 600px) { .h-flow { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .h-flow { grid-template-columns: repeat(4, 1fr); gap: var(--space-6); } }
.h-flow li { counter-increment: hf; padding-top: 16px; border-top: 1px solid var(--dv-line-strong); }
.h-flow li::before { content: "0" counter(hf); display: block; margin-bottom: 18px; font: 800 13px/1 var(--font-latin); letter-spacing: .08em; color: var(--dv-action-text); }
.h-flow b { display: block; font-size: 21px; font-weight: 900; color: var(--dv-deep); }
.h-flow p { margin: 6px 0 0; color: var(--color-text-muted); font-size: 15.5px; }
.h-note { margin: var(--space-7) 0 0; padding: 18px 22px; border-radius: 18px; background: var(--dv-paper); border: 1px solid var(--dv-line); color: var(--color-text-muted); font-size: 14.5px; }
.h-note b { color: var(--dv-deep); }

.blog-group-head .blog-group { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; color: var(--dv-deep); }
.blog-group-head a { color: var(--dv-deep); text-decoration: underline; text-decoration-color: var(--dv-action); text-underline-offset: 6px; }

/* =====================================================================================================
   Directory, blog and sign-up pages: the same family
   ===================================================================================================== */
.dir-hero { margin-inline: var(--inset); border-radius: var(--panel-r); border: 1px solid var(--dv-line); background: linear-gradient(180deg, #E8EFF5 0%, #F4F7F9 55%, #FBFCFD 100%); }
.dir-hero h1 { font-weight: 900; font-size: clamp(28px, 5vw, 48px); }
.dir-chip { border-radius: 999px; font-weight: 700; }
.dir-chip.is-on { background: var(--dv-deep); border-color: var(--dv-deep); }
.dir-search { border-radius: var(--radius-xl); box-shadow: var(--shadow-md); border-color: var(--dv-line); }
.blog-card, .dir-card { transition: translate .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s ease-out, border-color .35s ease-out; }
.register-section { background: none; }

/* ---------- small screens: the pill keeps the logo, the language, the action and the menu on one line ---------- */
@media (max-width: 480px) {
    .brand-logo { height: 28px; }
    .header-inner { gap: 6px; padding-inline: 14px 6px; }
    .header-actions { gap: 2px; }
    .lang-switch { padding: 6px 6px; font-size: 13px; min-height: 36px; }
    .header-actions .btn-sm { padding-inline: 13px; min-height: 40px; font-size: 14px; }
    .nav-toggle { width: 40px; height: 40px; flex: none; }
}
/* ---------- phones: a tighter rhythm, and long lists that scroll sideways instead of stacking for screens ---------- */
@media (max-width: 699px) {
    body { font-size: 15.5px; line-height: 1.8; }
    .section { padding-block: 44px; }
    .section-head { margin-bottom: var(--space-5); }
    .section-head h2 { font-size: 27px; }
    .section-head p:last-child { font-size: 16px; }
    .eyebrow { font-size: 13px; margin-bottom: 10px; }

    /* the dark panels: the point of light sits in the empty corner, never on the words */
    .hero::before, .final-cta-inner::before { width: 760px; top: -300px; inset-inline-end: -260px; }
    .hero::after { top: 96px; inset-inline-end: 26px; }
    .final-cta-inner { padding: 52px var(--space-4) 44px; }
    .final-cta-inner::after { top: 24px; inset-inline-end: 28px; }
    .final-cta h2 { font-size: 30px; }
    .hero h1 { font-size: clamp(31px, 9.2vw, 40px); line-height: 1.3; }
    .hero .lead { font-size: 16px; line-height: 1.85; }
    .hero .other-product a { display: block; padding: 10px 14px; border-radius: 16px; line-height: 1.7; }
    .hero .trust-list { gap: 6px 16px; }

    /* home */
    .h-sub { font-size: 16.5px; }
    .h-search { margin-top: var(--space-5); }
    .h-search input { text-overflow: ellipsis; }
    .h-quick { gap: 6px 18px; }
    .h-made { margin-top: var(--space-5); flex-wrap: wrap; row-gap: 4px; }
    .h-stats { margin-top: var(--space-6); gap: var(--space-4); }
    .h-stats b { font-size: 30px; }
    .h-stats span { font-size: 14px; }
    .h-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); }
    .h-flow li::before { margin-bottom: 10px; }
    .h-flow h3 { font-size: 18px; }
    .h-flow p { font-size: 14.5px; line-height: 1.7; }

    /* a row of article cards that scrolls sideways (home): three full cards would be three screens of scrolling */
    .h-blog .blog-list {
        display: flex; gap: 12px; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 14px;
        overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .h-blog .blog-list::-webkit-scrollbar { display: none; }
    .h-blog .blog-list > li { flex: 0 0 82%; scroll-snap-align: start; }
    .h-blog .blog-card p:not(.blog-meta) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

    /* the blog's own lists: a compact row per article, the cover beside the title */
    .blog-list:not(.h-blog .blog-list) { gap: 10px; }
    .blog-list:not(.h-blog .blog-list) .blog-card-link { flex-direction: row; align-items: stretch; gap: 0; }
    .blog-list:not(.h-blog .blog-list) .blog-cover { flex: none; width: 104px; height: auto; min-height: 104px; aspect-ratio: auto; border-radius: 0; object-position: left center; }
    .blog-list:not(.h-blog .blog-list) .blog-card-text { padding: 12px 14px; gap: 4px; justify-content: center; min-width: 0; }
    .blog-list:not(.h-blog .blog-list) .blog-card h3 { font-size: 15.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
    .blog-list:not(.h-blog .blog-list) .blog-card-text > p:not(.blog-meta), .blog-list:not(.h-blog .blog-list) .blog-more { display: none; }
    .blog-list:not(.h-blog .blog-list) .blog-meta { font-size: 12px; }
    .blog-group-head { margin-top: var(--space-5); }

    /* directory filters: one row that scrolls, not six rows of chips above the results */
    .dir-chips {
        flex-wrap: nowrap; margin-inline: calc(var(--gutter) * -1); padding: 2px var(--gutter) 6px;
        overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    }
    .dir-chips::-webkit-scrollbar { display: none; }
    .dir-chip { flex: none; white-space: nowrap; }

    /* footer */
    .site-footer { font-size: 14.5px; }
}
/* the EgWeb credit sits on navy here: the light logo */
.site-footer .dev-credit img { content: url("/img/egweb-logo-light.png"); }
