/* =========================================================================
   Keto Therapy — design system
   Brand: lime #9DCA00 (logo), deep forest ink, mint paper, organic blobs.
   Light + dark themes via tokens; LTR + RTL via logical properties.
   ========================================================================= */

/* ---------- Tokens: brand constants ---------- */
:root {
  --lime: #9dca00;
  --lime-bright: #b8e62a;
  --on-lime: #0f2a1d;            /* text/icons placed on lime, both themes */
  --teal: #32a48d;
  --rose: #c8456a;
  --amber: #e8a317;
  --red: #d64545;

  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
  --font-accent: "Fraunces", Georgia, serif;

  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 78px;
}

/* ---------- Tokens: light theme (default) ---------- */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f9ee;
  --surface-3: #eaf4df;
  --ink: #0f2a1d;
  --text: #33423a;
  --muted: #5d6d64;
  --line: rgba(15, 42, 29, 0.12);
  --line-strong: rgba(15, 42, 29, 0.22);
  --accent-text: #557600;
  --teal-text: #1d7564;
  --rose-text: #b23458;
  --lime-tint: #e4f3b8;
  --lime-tint-text: #557600;
  --teal-tint: rgba(50, 164, 141, 0.1);
  --field-bg: #fbfdf8;
  --header-bg: rgba(255, 255, 255, 0.86);
  --glass: rgba(255, 255, 255, 0.82);
  --overlay: rgba(255, 255, 255, 0.82);
  --fade-1: rgba(244, 249, 238, 0.97);
  --fade-2: rgba(244, 249, 238, 0.86);
  --fade-3: rgba(244, 249, 238, 0.35);
  --hero-bg: radial-gradient(1200px 600px at 90% -10%, rgba(157, 202, 0, 0.22), transparent 60%), #f4f9ee;
  --blush-bg: linear-gradient(180deg, #fbeeea, #ffffff 85%);
  --protocol-line: rgba(200, 69, 106, 0.16);
  --band-bg: #d9d9dc;
  --panel-dark: #0f2a1d;         /* always-dark panels (tool output, badges) */
  --solid-bg: #0f2a1d;           /* inverted "selected" states */
  --solid-fg: #ffffff;
  --forest: #123d28;
  --footer-bg: #0c2b1c;
  --warn-bg: #fff8ea;
  --warn-line: rgba(232, 163, 23, 0.35);
  --warn-icon: #b07a06;
  --danger-tint: #fdecec;
  --plate-fill: #ffffff;
  --plate-inner: #f4f9ee;
  --map-filter: none;
  --show-logo-light: block;
  --show-logo-dark: none;
  --show-moon: block;
  --show-sun: none;
  --shadow-sm: 0 2px 8px rgba(15, 42, 29, 0.06);
  --shadow: 0 18px 50px -18px rgba(15, 42, 29, 0.25);
  --shadow-lg: 0 40px 80px -30px rgba(15, 42, 29, 0.35);
}

/* ---------- Tokens: dark theme ----------
   Applied when the visitor picks dark, or when the device prefers dark and
   they haven't picked light. (Same block twice — plain CSS can't share it.) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a1610;
  --surface: #13241b;
  --surface-2: #0f1e16;
  --surface-3: #1c3427;
  --ink: #eef6f0;
  --text: #c3d2c8;
  --muted: #8fa497;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.24);
  --accent-text: #b8e62a;
  --teal-text: #5fd0b8;
  --rose-text: #f08aa6;
  --lime-tint: rgba(157, 202, 0, 0.16);
  --lime-tint-text: #c7ec4f;
  --teal-tint: rgba(95, 208, 184, 0.12);
  --field-bg: #0f1e16;
  --header-bg: rgba(10, 22, 16, 0.84);
  --glass: rgba(16, 30, 22, 0.86);
  --overlay: rgba(8, 18, 12, 0.8);
  --fade-1: rgba(10, 22, 16, 0.96);
  --fade-2: rgba(10, 22, 16, 0.86);
  --fade-3: rgba(10, 22, 16, 0.4);
  --hero-bg: radial-gradient(1200px 600px at 90% -10%, rgba(157, 202, 0, 0.16), transparent 60%), #0d1b14;
  --blush-bg: linear-gradient(180deg, #24141a, #0a1610 85%);
  --protocol-line: rgba(240, 138, 166, 0.2);
  --band-bg: #0f1e16;
  --panel-dark: #07120c;
  --solid-bg: #e9f3ec;
  --solid-fg: #0f2a1d;
  --forest: #0f3220;
  --footer-bg: #06110b;
  --warn-bg: rgba(232, 163, 23, 0.1);
  --warn-line: rgba(232, 163, 23, 0.3);
  --warn-icon: #f0b93a;
  --danger-tint: rgba(214, 69, 69, 0.16);
  --plate-fill: #13241b;
  --plate-inner: #0f1e16;
  --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.8);
  --show-logo-light: none;
  --show-logo-dark: block;
  --show-moon: none;
  --show-sun: block;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a1610;
    --surface: #13241b;
    --surface-2: #0f1e16;
    --surface-3: #1c3427;
    --ink: #eef6f0;
    --text: #c3d2c8;
    --muted: #8fa497;
    --line: rgba(255, 255, 255, 0.1);
    --line-strong: rgba(255, 255, 255, 0.24);
    --accent-text: #b8e62a;
    --teal-text: #5fd0b8;
    --rose-text: #f08aa6;
    --lime-tint: rgba(157, 202, 0, 0.16);
    --lime-tint-text: #c7ec4f;
    --teal-tint: rgba(95, 208, 184, 0.12);
    --field-bg: #0f1e16;
    --header-bg: rgba(10, 22, 16, 0.84);
    --glass: rgba(16, 30, 22, 0.86);
    --overlay: rgba(8, 18, 12, 0.8);
    --fade-1: rgba(10, 22, 16, 0.96);
    --fade-2: rgba(10, 22, 16, 0.86);
    --fade-3: rgba(10, 22, 16, 0.4);
    --hero-bg: radial-gradient(1200px 600px at 90% -10%, rgba(157, 202, 0, 0.16), transparent 60%), #0d1b14;
    --blush-bg: linear-gradient(180deg, #24141a, #0a1610 85%);
    --protocol-line: rgba(240, 138, 166, 0.2);
    --band-bg: #0f1e16;
    --panel-dark: #07120c;
    --solid-bg: #e9f3ec;
    --solid-fg: #0f2a1d;
    --forest: #0f3220;
    --footer-bg: #06110b;
    --warn-bg: rgba(232, 163, 23, 0.1);
    --warn-line: rgba(232, 163, 23, 0.3);
    --warn-icon: #f0b93a;
    --danger-tint: rgba(214, 69, 69, 0.16);
    --plate-fill: #13241b;
    --plate-inner: #0f1e16;
    --map-filter: invert(0.92) hue-rotate(180deg) saturate(0.8);
    --show-logo-light: none;
    --show-logo-dark: block;
    --show-moon: none;
    --show-sun: block;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
    --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, 0.7);
  }
}

/* ---------- Arabic typography ---------- */
:root[lang="ar"] {
  --font-display: "Tajawal", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Tajawal", system-ui, sans-serif;
  --font-accent: "Aref Ruqaa", "IBM Plex Sans Arabic", serif;
}
/* Letter-spacing breaks Arabic letter joining, and Arabic needs taller lines. */
[lang="ar"] body, [lang="ar"] body * { letter-spacing: 0 !important; }
[lang="ar"] body { line-height: 1.85; }
[lang="ar"] h1, [lang="ar"] h2, [lang="ar"] h3, [lang="ar"] h4 { line-height: 1.35; }
[lang="ar"] .accent { font-style: normal; font-weight: 700; }
[lang="ar"] .eyebrow { font-size: 0.95rem; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-x: clip; /* clip, not hidden: hidden would make body a scroll container and break the sticky header */
  transition: background-color 0.3s, color 0.3s;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-text); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0; }
address { font-style: normal; }
button { font: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 700;
}
h1 { font-size: clamp(2.5rem, 5.6vw, 4.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lime-tint); color: var(--ink); }

[hidden] { display: none !important; }
.icon { width: 1.15em; height: 1.15em; flex-shrink: 0; }
.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: 12px; top: -60px; z-index: 100; background: var(--solid-bg); color: var(--solid-fg); padding: 10px 16px; border-radius: 10px; }
.skip-link:focus { top: 12px; }
/* Charts, clocks, numbers and phone numbers always read left-to-right. */
.gauge, .clock, .donut, .spark, .plate-svg { direction: ltr; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
/* Arrows point the way you read. */
[dir="rtl"] svg:has(use[href="#i-arrow"]) { transform: scaleX(-1); }

.container { width: 100%; max-width: 1220px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 36px); }
.container--narrow { max-width: 860px; }
/* overflow-x: clip (unlike hidden) keeps position: sticky working inside sections. */
.section { padding-block: clamp(64px, 9vw, 120px); position: relative; overflow-x: clip; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--mint { background: var(--surface-2); }
.section--forest { background: var(--forest); color: rgba(255, 255, 255, 0.82); }
.section--forest h2, .section--forest h3 { color: #fff; }
.section--blush { background: var(--blush-bg); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.7em;
  font-family: var(--font-display); font-weight: 600; font-size: 0.82rem;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-text);
  margin: 0 0 1rem;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lime); border-radius: 2px; flex-shrink: 0; }
.eyebrow--light { color: var(--lime-bright); }
.eyebrow--rose { color: var(--rose-text); }
.eyebrow--rose::before { background: var(--rose); }
.accent { font-family: var(--font-accent); font-style: italic; font-weight: 400; color: var(--accent-text); letter-spacing: -0.01em; }
.section--forest .accent, .accent--light { color: var(--lime-bright); }
.accent--rose { color: var(--rose-text); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--text); }
[lang="ar"] .lead { line-height: 1.85; }
.muted { color: var(--muted); }
.center { text-align: center; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head .eyebrow { justify-content: center; }
.section-head--left { margin-inline: 0; text-align: start; }
.section-head--left .eyebrow { justify-content: flex-start; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--lime); --btn-fg: var(--on-lime);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  padding: 0.9em 1.55em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg);
  font-family: var(--font-display); font-weight: 600; font-size: 1rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.2s, opacity 0.2s;
  box-shadow: 0 10px 24px -12px rgba(110, 150, 0, 0.75);
}
.btn:hover { transform: translateY(-2px); background: var(--lime-bright); color: var(--on-lime); box-shadow: 0 16px 30px -14px rgba(110, 150, 0, 0.9); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.btn .icon { transition: transform 0.35s var(--ease); }
.btn:hover .icon { transform: translateX(3px); }
[dir="rtl"] .btn:hover .icon { transform: translateX(-3px); }
[dir="rtl"] .btn:hover svg:has(use[href="#i-arrow"]) { transform: scaleX(-1) translateX(3px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); box-shadow: none; }
.btn--ghost:hover { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); box-shadow: none; }
.btn--ghost-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); box-shadow: none; }
.btn--ghost-light:hover { background: #fff; color: #0f2a1d; box-shadow: none; }
.btn--dark { --btn-bg: var(--solid-bg); --btn-fg: var(--solid-fg); box-shadow: 0 12px 26px -14px rgba(15, 42, 29, 0.8); }
.btn--dark:hover { background: var(--solid-bg); color: var(--solid-fg); opacity: 0.9; }
.btn--rose { --btn-bg: var(--rose); --btn-fg: #fff; box-shadow: 0 12px 26px -14px rgba(200, 69, 106, 0.9); }
.btn--rose:hover { background: #b23458; color: #fff; }
.btn--sm { padding: 0.65em 1.15em; font-size: 0.92rem; }
.btn--lg { padding: 1.05em 1.9em; font-size: 1.06rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { display: inline-flex; align-items: center; gap: 0.4em; font-family: var(--font-display); font-weight: 600; text-decoration: none; color: var(--accent-text); }
.link-arrow .icon { transition: transform 0.3s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }
[dir="rtl"] .link-arrow:hover svg:has(use[href="#i-arrow"]) { transform: scaleX(-1) translateX(3px); }

/* ---------- Top bar & header ---------- */
.topbar { background: var(--footer-bg); color: rgba(255, 255, 255, 0.78); font-size: 0.85rem; }
.topbar__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 42px; }
.topbar__contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 7px; }
.topbar a:hover { color: var(--lime-bright); }
.topbar .icon { color: var(--lime); width: 15px; height: 15px; }
.topbar .social a { width: 30px; height: 30px; }

.social { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: inherit; transition: background-color 0.2s, color 0.2s, transform 0.3s var(--ease); }
.social a:hover { background: var(--lime); color: var(--on-lime); transform: translateY(-2px); }
.social .icon { width: 17px; height: 17px; }

.site-header { position: sticky; top: 0; z-index: 60; border-bottom: 1px solid transparent; transition: box-shadow 0.3s, border-color 0.3s; }
/* The blur lives on a pseudo-element: backdrop-filter on the header itself would
   become the containing block for the fixed mobile menu and trap it inside. */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); }
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 10px 30px -20px rgba(15, 42, 29, 0.35); }
.site-header__inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { flex-shrink: 0; }
.brand img { height: 46px; width: auto; }
.brand .logo-on-light { display: var(--show-logo-light); }
.brand .logo-on-dark { display: var(--show-logo-dark); }
.nav { margin-inline-start: auto; }

.nav__menu { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(10px, 1.2vw, 20px); }
.nav__menu a:not(.btn) {
  position: relative; display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  color: var(--muted); text-decoration: none; padding: 6px 0; white-space: nowrap;
}
[lang="ar"] .nav__menu { gap: clamp(10px, 1.1vw, 16px); }
[lang="ar"] .nav__menu a:not(.btn) { font-size: 1.02rem; }
.nav__menu a:not(.btn)::after { content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2.5px; border-radius: 3px; background: var(--lime); transform: scaleX(0); transform-origin: left; transition: transform 0.35s var(--ease); }
[dir="rtl"] .nav__menu a:not(.btn)::after { transform-origin: right; }
.nav__menu a:not(.btn):hover { color: var(--ink); }
.nav__menu a:not(.btn):hover::after, .nav__menu a[aria-current="page"]::after { transform: scaleX(1); }
.nav__menu a[aria-current="page"] { color: var(--ink); font-weight: 600; }
.nav__menu .btn[aria-current="page"] { background: var(--solid-bg); color: var(--solid-fg); }
.badge { display: inline-block; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--lime); color: var(--on-lime); padding: 2px 7px; border-radius: 999px; line-height: 1.4; }
[lang="ar"] .badge { font-size: 0.72rem; }

.header-tools { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tool-btn { height: 42px; min-width: 42px; padding: 0 10px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 6px; cursor: pointer; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.tool-btn:hover { border-color: var(--lime); color: var(--ink); }
.tool-btn .icon { width: 19px; height: 19px; }
.lang-switch .icon { color: var(--accent-text); }
.lang-switch span, .footer-lang span { font-family: "Tajawal", "IBM Plex Sans Arabic", sans-serif; }
.lang-switch[lang="en"] span, .footer-lang[lang="en"] span { font-family: "Outfit", system-ui, sans-serif; }
.theme-toggle .icon-moon { display: var(--show-moon); }
.theme-toggle .icon-sun { display: var(--show-sun); color: var(--lime-bright); }
.nav__toggle { display: none; width: 46px; height: 46px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); place-items: center; cursor: pointer; }
.nav__toggle .icon { width: 24px; height: 24px; }
.nav__toggle .icon--close { display: none; }
.nav__toggle[aria-expanded="true"] .icon--open { display: none; }
.nav__toggle[aria-expanded="true"] .icon--close { display: block; }

@media (max-width: 1300px) {
  .nav__toggle { display: grid; }
  .nav__menu {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 59;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 18px clamp(16px, 4vw, 36px) 40px; background: var(--bg); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; }
  .nav__menu li { border-bottom: 1px solid var(--line); }
  .nav__menu a:not(.btn), [lang="ar"] .nav__menu a:not(.btn) { font-size: 1.35rem; padding: 16px 0; width: 100%; color: var(--ink); }
  .nav__menu a:not(.btn)::after { display: none; }
  .nav__menu a[aria-current="page"] { color: var(--accent-text); }
  .nav__cta { border: 0 !important; padding-top: 22px; }
  .nav__cta .btn { width: 100%; font-size: 1.05rem; padding: 1em; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 900px) { .topbar { display: none; } }
@media (max-width: 520px) {
  :root { --header-h: 68px; }
  .brand img { height: 38px; }
  .lang-switch span { display: none; }
  .header-tools { gap: 6px; }
  .site-header__inner { gap: 10px; }
}

/* ---------- Organic blobs ---------- */
.blob { position: absolute; border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; animation: morph 18s ease-in-out infinite alternate; pointer-events: none; }
@keyframes morph {
  0%   { border-radius: 58% 42% 46% 54% / 52% 44% 56% 48%; }
  33%  { border-radius: 44% 56% 60% 40% / 42% 58% 42% 58%; }
  66%  { border-radius: 62% 38% 38% 62% / 58% 40% 60% 42%; }
  100% { border-radius: 48% 52% 55% 45% / 38% 60% 40% 62%; }
}
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-bg); padding: clamp(40px, 7vw, 96px) 0 clamp(90px, 10vw, 140px); }
.hero__grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; position: relative; z-index: 1; }
.hero__title { font-size: clamp(2.6rem, 6.2vw, 5.3rem); line-height: 1.0; letter-spacing: -0.035em; margin-bottom: 0.35em; }
[lang="ar"] .hero__title { line-height: 1.3; font-size: clamp(2.4rem, 5.6vw, 4.6rem); }
.hero__lead { font-size: clamp(1.15rem, 1.8vw, 1.4rem); max-width: 34ch; color: var(--text); margin-bottom: 1.8em; }
.hero__programs { list-style: none; padding: 0; margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero__programs a { display: inline-flex; align-items: center; gap: 8px; padding-block: 8px; padding-inline: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; transition: border-color 0.2s, transform 0.3s var(--ease); }
.hero__programs a:hover { border-color: var(--lime); transform: translateY(-2px); }
.hero__programs .dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-tint); color: var(--lime-tint-text); }
.hero__programs .dot .icon { width: 15px; height: 15px; }
.hero__visual { position: relative; aspect-ratio: 1 / 1.02; max-width: 560px; justify-self: end; width: 100%; }
.hero__visual .blob--a { inset: 6% -4% 0 8%; background: linear-gradient(140deg, var(--lime-bright), var(--lime)); }
.hero__visual .blob--b { width: 26%; aspect-ratio: 1; left: -4%; top: 4%; background: var(--teal); opacity: 0.18; animation-duration: 11s; }
.hero__photo { position: absolute; inset: 0 6% 6% 0; overflow: hidden; border-radius: 46% 54% 52% 48% / 55% 48% 52% 45%; animation: morph 20s ease-in-out infinite alternate-reverse; box-shadow: var(--shadow-lg); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.chip { position: absolute; display: inline-flex; align-items: center; gap: 10px; padding-block: 9px; padding-inline: 9px 16px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--ink); white-space: nowrap; animation: floaty 6s ease-in-out infinite; z-index: 2; }
.chip .chip__ico { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); }
.chip .chip__ico .icon { width: 17px; height: 17px; }
.chip--a { left: -8%; top: 18%; }
.chip--b { right: -2%; top: 48%; animation-delay: -2s; }
.chip--c { left: 2%; bottom: 6%; animation-delay: -4s; }
.pulse-divider { position: absolute; left: 0; right: 0; bottom: 0; height: 90px; color: var(--bg); z-index: 1; }
.pulse-divider svg { width: 100%; height: 100%; }
.pulse-line { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-dasharray: 1800; stroke-dashoffset: 1800; animation: draw 3.2s 0.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { justify-self: center; max-width: 440px; margin-top: 12px; }
  .chip { font-size: 0.8rem; }
  .chip--a { left: -2%; }
  .chip--b { right: -2%; }
}
@media (max-width: 480px) { .chip--b { display: none; } .chip--a { top: 6%; } }

/* ---------- Marquee ---------- */
.marquee { background: var(--panel-dark); color: #fff; overflow: hidden; padding: 18px 0; position: relative; direction: ltr; }
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: inline-flex; align-items: center; gap: 22px; padding-right: 22px; font-family: var(--font-display); font-weight: 500; font-size: clamp(1.05rem, 2vw, 1.4rem); letter-spacing: -0.01em; white-space: nowrap; }
.marquee__item .icon { color: var(--lime); width: 20px; height: 20px; }
.marquee__item em { font-family: var(--font-accent); color: var(--lime-bright); font-weight: 400; }
[lang="ar"] .marquee__item em { font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Generic split layout ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.split > * { min-width: 0; }
.split--60 { grid-template-columns: 1.15fr 0.85fr; }
.split--40 { grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 900px) { .split, .split--60, .split--40 { grid-template-columns: 1fr; } }

/* ---------- Welcome ---------- */
.zigzag { position: relative; display: inline-block; white-space: nowrap; color: var(--ink); }
.zigzag svg { position: absolute; inset-inline-start: -2%; width: 104%; bottom: -0.32em; height: 0.42em; overflow: visible; }
[lang="ar"] .zigzag svg { bottom: -0.15em; }
.zigzag path { fill: none; stroke: var(--lime); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 700; stroke-dashoffset: 700; transition: stroke-dashoffset 1.6s 0.3s var(--ease); }
.is-visible .zigzag path, .zigzag.is-visible path { stroke-dashoffset: 0; }
.welcome__title { font-size: clamp(2.3rem, 5vw, 4rem); }
.credential-line { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 600; color: var(--teal-text); background: var(--teal-tint); padding: 8px 16px; border-radius: 999px; margin: 0.4rem 0 1.4rem; font-size: 0.98rem; }
.insights { margin-top: 2rem; border-radius: var(--radius); background: var(--surface-2); padding: 24px 26px; border: 1px solid var(--line); }
.insights__title { font-family: var(--font-display); font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; font-size: 1.05rem; }
.insights__title .icon { color: var(--accent-text); }
.insights ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.insights li { position: relative; padding-inline-start: 30px; font-family: var(--font-accent); font-style: italic; font-size: 1.1rem; color: var(--ink); line-height: 1.45; }
[lang="ar"] .insights li { font-family: var(--font-body); font-style: normal; font-weight: 500; line-height: 1.75; }
.insights li::before { content: "“"; position: absolute; inset-inline-start: 0; top: -0.15em; font-size: 2em; line-height: 1; color: var(--lime); font-family: Georgia, serif; }
[dir="rtl"] .insights li::before { content: "”"; }

.portrait { position: relative; max-width: 440px; margin-inline: auto; width: 100%; }
.portrait__blob { position: absolute; inset-block: 14% -5%; inset-inline: 12% -9%; background: linear-gradient(160deg, var(--lime-bright), var(--lime) 80%); }
/* Arch frame tinted to match the studio backdrop so the photo blends in. */
.portrait__img { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 999px 999px 36px 36px; background: #f7f5f8; box-shadow: var(--shadow-lg); }
.portrait__img img { width: 100%; height: auto; margin-top: 12%; }
.portrait__badge { position: absolute; inset-inline-end: -4%; bottom: 12%; background: var(--surface); border-radius: 20px; padding: 14px 18px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; animation: floaty 7s ease-in-out infinite; max-width: 260px; }
.portrait__badge strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; line-height: 1.25; }
.portrait__badge span { font-size: 0.8rem; color: var(--muted); line-height: 1.4; display: block; }
.portrait__badge .seal { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-dark); color: var(--lime); flex-shrink: 0; }
.portrait__badge .seal .icon { width: 22px; height: 22px; }

/* ---------- Audience (who it's for) ---------- */
.photo-section { position: relative; background-size: cover; background-position: center; }
.photo-section::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--fade-1) 0%, var(--fade-2) 55%, var(--fade-3) 100%); }
[dir="rtl"] .photo-section::before { background: linear-gradient(270deg, var(--fade-1) 0%, var(--fade-2) 55%, var(--fade-3) 100%); }
.photo-section > .container { position: relative; }
.glass { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 52px); box-shadow: var(--shadow); }
.audience { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 28px 0 32px; }
.audience li { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.2s; }
.audience li:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lime); }
.audience .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lime-tint); color: var(--lime-tint-text); margin-bottom: 14px; }
.audience .ico .icon { width: 22px; height: 22px; }
.audience p { margin: 0; font-size: 0.98rem; line-height: 1.55; color: var(--ink); }
[lang="ar"] .audience p { line-height: 1.75; }
@media (max-width: 900px) { .audience { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .audience { grid-template-columns: 1fr; } }
.author-box { display: flex; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.author-box img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; object-position: center 15%; background: #f7f5f8; }
.author-box strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.08rem; }
.author-box span { font-size: 0.9rem; color: var(--muted); }
.author-box .link-arrow { margin-inline-start: auto; }

/* ---------- Mission ---------- */
.mission { overflow: hidden; }
.mission__img { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 600px; }
.mission__img img { width: 100%; height: 100%; object-fit: cover; }
.mission__title { font-size: clamp(2.3rem, 5.2vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; color: #fff; }
[lang="ar"] .mission__title { line-height: 1.3; }
.mission__title .big { color: var(--lime-bright); display: block; font-size: 1.45em; letter-spacing: -0.04em; line-height: 0.95; }
[lang="ar"] .mission__title .big { line-height: 1.3; }
.mission__join { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.4rem); letter-spacing: 0.08em; color: var(--lime-bright); margin: 1.5rem 0 2rem; display: flex; align-items: center; gap: 12px; }
.mission__join::before { content: ""; width: 40px; height: 3px; background: var(--lime); border-radius: 3px; flex-shrink: 0; }
.mission .ring { position: absolute; width: 520px; aspect-ratio: 1; inset-inline-end: -180px; top: -160px; border: 1.5px dashed rgba(184, 230, 42, 0.25); border-radius: 50%; animation: spin 80s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Program flip cards ---------- */
.flip-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .flip-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; } }
.flip { perspective: 1600px; height: 460px; cursor: pointer; }
.flip__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 0.9s var(--ease); }
.flip:hover .flip__inner, .flip:focus-within .flip__inner, .flip.is-flipped .flip__inner { transform: rotateX(-180deg); }
.flip__face { position: absolute; inset: 0; border-radius: var(--radius-lg); overflow: hidden; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; padding: 30px; box-shadow: var(--shadow); }
.flip__front { justify-content: flex-end; color: #fff; background-size: cover; background-position: center; }
.flip__front::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(12, 43, 28, 0.05) 20%, rgba(12, 43, 28, 0.88) 78%); }
.flip__front > * { position: relative; }
.flip__ico { width: 58px; height: 58px; border-radius: 18px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; margin-bottom: 18px; box-shadow: 0 10px 24px -10px rgba(0,0,0,.4); }
.flip__ico .icon { width: 28px; height: 28px; }
.flip__front h3 { color: #fff; font-size: 1.7rem; margin-bottom: 0.35em; }
.flip__front p { margin: 0; color: rgba(255, 255, 255, 0.88); }
.flip__hint { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--lime-bright); letter-spacing: 0.06em; text-transform: uppercase; }
.flip__back { transform: rotateX(180deg); background: radial-gradient(circle at 85% 10%, rgba(255,255,255,.35), transparent 45%), linear-gradient(150deg, var(--lime-bright), var(--lime)); color: var(--on-lime); justify-content: center; }
.flip__back h3 { font-size: 1.6rem; color: var(--on-lime); }
.flip__back ul { list-style: none; padding: 0; margin: 4px 0 26px; display: grid; gap: 10px; }
.flip__back li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--on-lime); line-height: 1.4; }
.flip__back li .icon { margin-top: 2px; width: 18px; height: 18px; }
/* On lime, the dark button stays dark in both themes. */
.flip__back .btn--dark { --btn-bg: #0f2a1d; --btn-fg: #fff; }
.flip__back .btn--dark:hover { background: #0f2a1d; color: #fff; }

/* ---------- Ticks list ---------- */
.ticks { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 14px; }
.ticks li { display: flex; align-items: center; gap: 14px; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.05rem, 1.8vw, 1.3rem); color: var(--ink); letter-spacing: -0.01em; }
.ticks .tick { width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; flex-shrink: 0; }
.ticks .tick .icon { width: 18px; height: 18px; }

/* ---------- Feature band (weight loss) ---------- */
/* Photo anchored left (so the "WEIGHT LOSS" tiles stay visible), card on the right. */
.feature-band { position: relative; min-height: 660px; display: flex; align-items: center; padding-block: 60px; background-color: var(--band-bg); background-repeat: no-repeat; background-size: auto 100%; background-position: left center; }
/* Fade the photo's right edge into the backdrop colour so there's no visible seam. */
.feature-band::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 52%, var(--band-bg) 74%); pointer-events: none; }
.feature-band > .container { position: relative; display: flex; justify-content: flex-end; }
[dir="rtl"] .feature-band > .container { justify-content: flex-start; }
.feature-band__card { background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: var(--radius-lg); padding: clamp(28px, 4.5vw, 56px); max-width: 580px; box-shadow: var(--shadow-lg); }
.feature-band__card h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
@media (max-width: 1100px) {
  .feature-band { background-size: cover; background-position: 25% center; }
  .feature-band::before { display: none; }
  .feature-band > .container, [dir="rtl"] .feature-band > .container { justify-content: center; }
}
@media (max-width: 700px) { .feature-band { min-height: 0; padding-block: 62vw 32px; background-size: 100% auto; background-position: center top; } }

/* ---------- Collage ---------- */
.collage { display: grid; grid-template-columns: 1.15fr 0.85fr; grid-template-rows: auto auto; gap: 16px; }
.collage figure { margin: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.collage img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.collage figure:hover img { transform: scale(1.05); }
.collage .tall { grid-row: span 2; min-height: 420px; }
.collage .sq { aspect-ratio: 1.2 / 1; }
.conditions { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 1.8rem; }
.conditions li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; color: var(--ink); }

/* ---------- Cancer protocol ---------- */
.protocol { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 12px; counter-reset: step; }
.protocol li { counter-increment: step; display: flex; align-items: center; gap: 16px; background: var(--surface); border-radius: 18px; padding: 14px 18px; border: 1px solid var(--protocol-line); font-family: var(--font-display); font-weight: 600; color: var(--ink); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.protocol li:hover { transform: translateX(6px); box-shadow: var(--shadow-sm); }
[dir="rtl"] .protocol li:hover { transform: translateX(-6px); }
.protocol li::before { content: counter(step, decimal-leading-zero); font-family: "Outfit", var(--font-display); font-weight: 700; font-size: 0.85rem; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--rose); color: #fff; flex-shrink: 0; }
.protocol small { display: block; font-weight: 500; color: var(--muted); font-family: var(--font-body); }
.matters { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 1rem 0 1.6rem; }
.matters li { padding: 9px 16px; border-radius: 14px; background: var(--panel-dark); border: 1px solid var(--line); color: #fff; font-family: var(--font-display); font-weight: 500; font-size: 0.95rem; }
.matters li b { color: var(--lime-bright); font-weight: 600; }
.pull { font-family: var(--font-accent); font-style: italic; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.3; color: var(--ink); border-inline-start: 4px solid var(--lime); padding-block: 0.2em; padding-inline: 1em 0; margin: 1.6rem 0; }
[lang="ar"] .pull { font-style: normal; line-height: 1.6; }
.pull--rose { border-color: var(--rose); }
.sugar-callout { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: center; background: var(--panel-dark); color: rgba(255,255,255,.85); border-radius: var(--radius); padding: 22px 24px; margin: 1.6rem 0; border: 1px solid var(--line); }
.sugar-callout strong { font-family: var(--font-display); font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--lime-bright); line-height: 1.15; letter-spacing: -0.03em; }
.sugar-callout p { margin: 0; }
.cancer-visual { position: sticky; top: calc(var(--header-h) + 40px); align-self: start; }
@media (max-width: 900px) { .cancer-visual { position: relative; top: 0; } }
.cancer-visual figure { margin: 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 1; box-shadow: var(--shadow-lg); }
.cancer-visual img { width: 100%; height: 100%; object-fit: cover; }
.cancer-visual .ribbon-card { position: absolute; inset-inline-start: -6%; bottom: 8%; background: var(--surface); border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; max-width: 280px; animation: floaty 7s ease-in-out infinite; }
.cancer-visual .ribbon-card .icon { width: 34px; height: 34px; color: var(--rose); flex-shrink: 0; }
.cancer-visual .ribbon-card p { margin: 0; font-family: var(--font-display); font-weight: 600; color: var(--ink); line-height: 1.35; font-size: 0.98rem; }
@media (max-width: 900px) { .cancer-visual .ribbon-card { inset-inline-start: 4%; } }

/* ---------- Pricing ---------- */
.pricing { position: relative; background: var(--footer-bg); overflow: hidden; }
.pricing__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0.16; }
.pricing .container { position: relative; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
@media (max-width: 960px) { .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.price { --accent: var(--lime); position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 34px 30px 30px; display: flex; flex-direction: column; overflow: hidden; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.price:hover { transform: translateY(-8px); box-shadow: 0 40px 60px -30px rgba(0, 0, 0, 0.6); }
.price::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 8px; background: var(--accent); }
.price--teal { --accent: var(--teal); }
.price--rose { --accent: var(--rose); }
.price__name { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; color: var(--ink); margin: 0; }
.price__sub { font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-text); margin: 4px 0 22px; }
[lang="ar"] .price__sub { font-size: 0.98rem; }
/* Prices are numbers: always laid out "$ 99 .99" left-to-right. */
.price__amount { display: flex; align-items: flex-start; gap: 4px; font-family: "Outfit", sans-serif; font-weight: 700; color: var(--ink); line-height: 1; margin-bottom: 6px; direction: ltr; justify-content: flex-start; }
[dir="rtl"] .price__amount { justify-content: flex-end; }
.price__amount .cur { font-size: 1.5rem; margin-top: 8px; }
.price__amount .num { font-size: 4rem; letter-spacing: -0.04em; }
.price__amount .cents { font-size: 1.5rem; margin-top: 8px; }
.price__note { font-size: 0.9rem; color: var(--muted); margin-bottom: 22px; }
.price ul { list-style: none; padding: 22px 0 0; margin: 0 0 28px; border-top: 1px dashed var(--line); display: grid; gap: 12px; flex: 1; }
.price li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); line-height: 1.45; }
.price li .icon { color: #fff; background: var(--accent); border-radius: 50%; padding: 4px; width: 22px; height: 22px; margin-top: 1px; }
.price .btn { width: 100%; }

/* ---------- Journey ---------- */
.journey { background: var(--surface-2); overflow: hidden; text-align: center; }
.journey__path { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); height: 220px; pointer-events: none; }
.journey__path svg { width: 100%; height: 100%; }
.journey__path path { fill: none; stroke: var(--lime); stroke-width: 3; stroke-dasharray: 2 14; stroke-linecap: round; opacity: 0.8; }
.journey__walker { offset-path: path("M-20 150 C 220 40, 420 220, 720 120 S 1200 30, 1480 110"); offset-rotate: 0deg; animation: walk 14s linear infinite; }
@keyframes walk { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.journey .container { position: relative; }
.journey h2 { font-size: clamp(2rem, 4.6vw, 3.8rem); max-width: 18ch; margin: 0 auto 0.7em; }

/* ---------- About ---------- */
.about__photo { position: relative; max-width: 460px; margin-inline: auto; }
.about__photo::before { content: ""; position: absolute; inset-block: 22px -22px; inset-inline: 22px -22px; border-radius: var(--radius-lg); background: repeating-linear-gradient(135deg, var(--lime) 0 2px, transparent 2px 12px); opacity: 0.5; }
.about__photo img { position: relative; border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 10%; background: #f3f3f3; box-shadow: var(--shadow); }
.about__name { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 0.2em; }
.creds { list-style: none; padding: 0; margin: 1.4rem 0 2rem; display: grid; gap: 12px; }
.creds li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); line-height: 1.5; color: var(--ink); }
.creds li span { color: var(--muted); font-size: 0.93rem; display: block; }
.creds .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--lime-tint); color: var(--lime-tint-text); }
.creds .ico .icon { width: 20px; height: 20px; }
.refs__label { font-family: var(--font-display); font-weight: 600; color: var(--ink); margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.refs { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 4px 14px; margin: 0 -4px; list-style: none; scrollbar-width: thin; }
.refs li { scroll-snap-align: start; flex: 0 0 auto; }
/* Certificate logos stay on white in both themes. */
.refs button { width: 150px; height: 110px; padding: 14px; border-radius: 18px; background: #fff; border: 1px solid var(--line); cursor: zoom-in; display: grid; place-items: center; transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.2s; }
.refs button:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--lime); }
.refs img { max-height: 80px; width: auto; object-fit: contain; }

/* ---------- Statement banner ---------- */
.statement { position: relative; background-size: cover; background-position: center; text-align: center; }
.statement::before { content: ""; position: absolute; inset: 0; background: var(--overlay); }
.statement .container { position: relative; }
.statement p { margin: 0; font-family: var(--font-display); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); font-size: clamp(0.95rem, 1.6vw, 1.15rem); }
.statement h2 { font-size: clamp(2rem, 5vw, 4.2rem); max-width: 20ch; margin: 0.35em auto 0; letter-spacing: -0.03em; }

/* ---------- Testimonials ---------- */
.t-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 960px) { .t-grid { grid-template-columns: 1fr; max-width: 640px; margin-inline: auto; } }
.t-card { margin: 0; position: relative; background: var(--surface); border-radius: var(--radius-lg); padding: 34px 30px 28px; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.t-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.t-card > .icon { width: 38px; height: 38px; color: var(--lime); margin-bottom: 16px; }
[dir="rtl"] .t-card > .icon { transform: scaleX(-1); }
.t-card blockquote { margin: 0 0 24px; color: var(--ink); line-height: 1.65; flex: 1; }
[lang="ar"] .t-card blockquote { line-height: 1.9; }
.t-person { display: flex; align-items: center; gap: 14px; padding-top: 20px; border-top: 1px solid var(--line); }
.t-person img { width: 58px; height: 58px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid var(--lime-tint); }
.t-person strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.05rem; line-height: 1.2; }
.t-person span { font-size: 0.88rem; color: var(--muted); }
.stars { display: flex; gap: 2px; color: #f2b01e; margin-inline-start: auto; }
.stars .icon { width: 16px; height: 16px; }
.t-result { position: absolute; top: -14px; inset-inline-end: 24px; background: var(--panel-dark); border: 1px solid var(--line); color: var(--lime-bright); font-family: var(--font-display); font-weight: 600; font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; }
[lang="ar"] .t-result { font-size: 0.9rem; padding: 4px 12px; }

/* ---------- Results strip ---------- */
.results { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); margin-bottom: clamp(48px, 6vw, 72px); }
.results div { background: var(--surface); padding: 24px 18px; text-align: center; }
.results strong { display: block; font-family: "Outfit", var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--ink); letter-spacing: -0.03em; line-height: 1.15; }
.results strong em { font-style: normal; font-family: var(--font-display); color: var(--accent-text); font-size: 0.55em; margin-inline-start: 2px; }
.results span { display: block; font-size: 0.85rem; color: var(--muted); line-height: 1.4; margin-top: 6px; }
@media (max-width: 960px) { .results { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .results { grid-template-columns: repeat(2, 1fr); } }
.leaf-divider { display: flex; align-items: center; justify-content: center; gap: 16px; color: var(--lime); margin: -20px 0 48px; }
.leaf-divider svg.wave { width: 120px; height: 14px; }
.leaf-divider .icon { width: 26px; height: 26px; }

/* ---------- Lab teaser ---------- */
.lab-teaser { position: relative; overflow: hidden; }
.lab-teaser .blob { width: 420px; aspect-ratio: 1; inset-inline-end: -120px; top: -140px; background: rgba(157, 202, 0, 0.16); }
.tool-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 36px 0; }
@media (max-width: 960px) { .tool-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .tool-tiles { grid-template-columns: 1fr; } }
.tool-tile { display: block; text-decoration: none; padding: 26px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: rgba(255, 255, 255, 0.78); transition: transform 0.35s var(--ease), background-color 0.3s, border-color 0.3s; }
.tool-tile:hover { transform: translateY(-6px); background: rgba(157, 202, 0, 0.12); border-color: var(--lime); color: #fff; }
.tool-tile .ico { width: 48px; height: 48px; border-radius: 14px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; margin-bottom: 18px; }
.tool-tile .ico .icon { width: 24px; height: 24px; }
.tool-tile h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.4em; }
.tool-tile p { margin: 0; font-size: 0.95rem; line-height: 1.55; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; min-height: clamp(320px, 46vh, 460px); display: flex; align-items: flex-end; color: #fff; background-size: cover; background-position: center; overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(12, 43, 28, 0.92) 0%, rgba(12, 43, 28, 0.7) 45%, rgba(12, 43, 28, 0.2) 100%); }
[dir="rtl"] .page-hero::before { background: linear-gradient(260deg, rgba(12, 43, 28, 0.92) 0%, rgba(12, 43, 28, 0.7) 45%, rgba(12, 43, 28, 0.2) 100%); }
.page-hero .container { position: relative; padding-block: clamp(48px, 7vw, 88px); }
.page-hero h1 { color: #fff; max-width: 16ch; margin-bottom: 0.25em; font-size: clamp(2.4rem, 5.4vw, 4.4rem); letter-spacing: -0.03em; }
[lang="ar"] .page-hero h1 { line-height: 1.3; }
.page-hero p { color: rgba(255, 255, 255, 0.85); max-width: 52ch; font-size: 1.15rem; margin: 0; }
.crumbs { display: flex; gap: 8px; font-family: var(--font-display); font-size: 0.85rem; color: rgba(255, 255, 255, 0.7); margin-bottom: 18px; list-style: none; padding: 0; }
.crumbs a { color: var(--lime-bright); text-decoration: none; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; opacity: 0.6; }
.page-hero .blob { width: 420px; aspect-ratio: 1; inset-inline-end: -140px; bottom: -220px; background: rgba(157, 202, 0, 0.22); }

/* ---------- Article (The Healthy Keto) ---------- */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, var(--lime), var(--teal)); z-index: 80; }
[dir="rtl"] .progress { transform-origin: right; background: linear-gradient(270deg, var(--lime), var(--teal)); }
.article-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: calc(var(--header-h) + 24px); }
.toc__title { font-family: var(--font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.toc ol { list-style: none; padding: 0; border-inline-start: 2px solid var(--line); counter-reset: toc; }
.toc ol li { counter-increment: toc; }
.toc ol a { display: block; padding-block: 7px; padding-inline: 16px 0; margin-inline-start: -2px; border-inline-start: 2px solid transparent; text-decoration: none; color: var(--muted); font-size: 0.93rem; line-height: 1.45; transition: color 0.2s, border-color 0.2s; }
.toc ol a::before { content: counter(toc, decimal-leading-zero) "  "; font-family: "Outfit", var(--font-display); font-weight: 600; color: var(--accent-text); font-size: 0.8rem; }
.toc ol a:hover { color: var(--ink); }
.toc ol a.is-active { color: var(--ink); border-inline-start-color: var(--lime); font-weight: 600; }
.prose { max-width: 72ch; }
.prose > section { scroll-margin-top: calc(var(--header-h) + 20px); padding-bottom: clamp(32px, 4vw, 48px); }
.prose h2 { font-size: clamp(1.75rem, 3.2vw, 2.5rem); margin-top: 0.2em; }
.prose h2 .num { display: block; font-family: "Outfit", var(--font-display); font-size: 0.9rem; letter-spacing: 0.12em; color: var(--accent-text); margin-bottom: 0.5em; font-weight: 600; }
.prose h3 { margin-top: 1.4em; }
.prose p, .prose li { color: var(--text); }
.prose ol, .prose ul { padding-inline-start: 1.3em; margin-bottom: 1.1em; }
.prose li { margin-bottom: 0.5em; }
.prose figure { margin: 2rem 0; border-radius: var(--radius-lg); overflow: hidden; }
.intro-card { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 44px); border: 1px solid var(--line); margin-bottom: 40px; }
.intro-card h2 { margin-bottom: 0.3em; }
.callout { display: flex; gap: 16px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-inline-start: 4px solid var(--lime); border-radius: 16px; padding: 18px 20px; margin: 1.6rem 0; }
.callout .icon { width: 24px; height: 24px; color: var(--accent-text); margin-top: 2px; }
.callout p { margin: 0; color: var(--ink); }

.benefit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 1.6rem 0; list-style: none; padding: 0 !important; counter-reset: ben; }
@media (max-width: 640px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit-grid li { counter-increment: ben; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 22px 20px; margin: 0 !important; position: relative; transition: border-color 0.2s, transform 0.35s var(--ease); }
.benefit-grid li:hover { border-color: var(--lime); transform: translateY(-3px); }
.benefit-grid li::before { content: counter(ben); position: absolute; inset-inline-end: 18px; top: 10px; font-family: "Outfit", var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--lime-tint); line-height: 1; }
.benefit-grid strong { display: block; font-family: var(--font-display); color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; padding-inline-end: 36px; }
.benefit-grid p { margin: 0; font-size: 0.97rem; line-height: 1.6; }
[lang="ar"] .benefit-grid p { line-height: 1.8; }
.benefit-grid li:last-child:nth-child(odd) { grid-column: 1 / -1; }

.myths { display: grid; gap: 12px; margin: 1.4rem 0; }
.myth { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; transition: border-color 0.2s, box-shadow 0.3s; }
.myth[open] { border-color: var(--lime); box-shadow: var(--shadow-sm); }
.myth summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 20px; }
.myth summary::-webkit-details-marker { display: none; }
.myth__tag { font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: #fff; background: var(--red); padding: 5px 10px; border-radius: 8px; white-space: nowrap; min-width: 88px; text-align: center; }
[lang="ar"] .myth__tag { font-size: 0.88rem; padding: 3px 10px; }
.myth[open] .myth__tag { background: #557600; }
.myth__q { font-family: var(--font-display); font-weight: 600; color: var(--ink); font-size: 1.05rem; line-height: 1.35; }
[lang="ar"] .myth__q { line-height: 1.6; }
.myth[open] .myth__q { text-decoration: line-through; text-decoration-color: rgba(214, 69, 69, 0.6); text-decoration-thickness: 2px; }
.myth__toggle { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--accent-text); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.myth__toggle .icon { transition: transform 0.3s var(--ease); }
.myth[open] .myth__toggle .icon { transform: rotate(180deg); }
.myth__a { border-top: 1px dashed var(--line); padding: 16px 0 20px; margin: 0 20px; }
.myth__a::before { content: attr(data-label); display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); margin-bottom: 6px; }
[lang="ar"] .myth__a::before { font-size: 0.9rem; }
.myth__a p:last-child, .myth__a ul:last-child { margin-bottom: 0; }
@media (max-width: 560px) { .myth summary { grid-template-columns: 1fr auto; } .myth__tag { grid-column: 1 / -1; justify-self: start; } }

/* Fuel switch widget */
.fuel { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; background: var(--panel-dark); color: rgba(255,255,255,.85); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 34px); margin: 1.8rem 0; border: 1px solid var(--line); }
@media (max-width: 600px) { .fuel { grid-template-columns: 1fr; } }
.fuel__switch { position: relative; width: 132px; height: 64px; border-radius: 999px; background: #e7a92b; border: 0; cursor: pointer; transition: background-color 0.5s var(--ease); flex-shrink: 0; }
.fuel__switch::after { content: ""; position: absolute; top: 6px; inset-inline-start: 6px; width: 52px; height: 52px; border-radius: 50%; background: #fff; box-shadow: 0 6px 14px rgba(0,0,0,.25); transition: transform 0.5s var(--ease); }
.fuel__switch[aria-checked="true"] { background: var(--lime); }
.fuel__switch[aria-checked="true"]::after { transform: translateX(68px); }
[dir="rtl"] .fuel__switch[aria-checked="true"]::after { transform: translateX(-68px); }
.fuel__labels { display: flex; justify-content: space-between; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; letter-spacing: .08em; text-transform: uppercase; margin-top: 8px; color: rgba(255,255,255,.55); width: 132px; }
[lang="ar"] .fuel__labels { font-size: 0.9rem; }
.fuel__state strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: #fff; line-height: 1.35; margin-bottom: 4px; }
.fuel__state p, .prose .fuel__state p { margin: 0; color: rgba(255, 255, 255, 0.8); }
.fuel__state .k { color: var(--lime-bright); }
.fuel__state .s { color: #f3c162; }

/* Plate widget */
.plate-widget { background: var(--surface-2); border-radius: var(--radius-lg); padding: clamp(22px, 3.5vw, 34px); margin: 1.8rem 0; border: 1px solid var(--line); }
.plate-widget__head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.plate-widget__head strong { font-family: var(--font-display); color: var(--ink); font-size: 1.15rem; }
.plate-widget__body { display: grid; grid-template-columns: 220px 1fr; gap: 28px; align-items: center; }
@media (max-width: 600px) { .plate-widget__body { grid-template-columns: 1fr; justify-items: center; } }
.plate-svg { width: 220px; height: 220px; }
.plate-svg .plate-rim { fill: var(--plate-fill); stroke: var(--line); }
.plate-svg .plate-ring { fill: none; stroke: var(--line); }
.plate-svg .plate-center { fill: var(--plate-inner); }
.plate-svg .plate-mouth { stroke: var(--ink); }
.plate-svg circle.slice { transition: stroke-dasharray 0.9s var(--ease), stroke-dashoffset 0.9s var(--ease); }
.plate-legend { list-style: none; padding: 0 !important; margin: 0; display: grid; gap: 12px; width: 100%; }
.plate-legend li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: start; margin: 0 !important; }
.plate-legend .sw { width: 14px; height: 14px; border-radius: 4px; margin-top: 6px; }
.plate-legend b { font-family: var(--font-display); color: var(--ink); }
.plate-legend span.v { font-family: "Outfit", var(--font-display); font-weight: 700; color: var(--ink); float: inline-end; margin-inline-start: 12px; }

/* ---------- Segmented control ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); gap: 2px; flex-wrap: wrap; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 7px 14px; border-radius: 999px; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--muted); transition: background-color 0.2s, color 0.2s; white-space: nowrap; }
[lang="ar"] .seg span { font-size: 0.95rem; }
.seg input:checked + span { background: var(--solid-bg); color: var(--solid-fg); }
.seg input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }

/* ---------- FAQ ---------- */
.faq-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.search { position: relative; flex: 1 1 320px; max-width: 460px; }
.search .icon { position: absolute; inset-inline-start: 18px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input { width: 100%; padding-block: 15px; padding-inline: 50px 18px; border-radius: 999px; border: 1.5px solid var(--line); font: inherit; background: var(--surface); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px rgba(157, 202, 0, 0.2); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-chips button { padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-family: var(--font-display); font-weight: 500; font-size: 0.9rem; cursor: pointer; transition: all 0.2s; }
[lang="ar"] .filter-chips button { font-size: 0.97rem; }
.filter-chips button:hover { border-color: var(--lime); }
.filter-chips button[aria-pressed="true"] { background: var(--solid-bg); border-color: var(--solid-bg); color: var(--solid-fg); }
.faq-count { font-size: 0.9rem; color: var(--muted); margin-bottom: 14px; }
.faq-list { display: grid; gap: 12px; }
.faq { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; transition: border-color 0.2s, box-shadow 0.3s; }
.faq[open] { border-color: var(--lime); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; align-items: center; padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--ink); line-height: 1.35; }
[lang="ar"] .faq summary { line-height: 1.6; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime-tint); color: var(--lime-tint-text); flex-shrink: 0; transition: transform 0.35s var(--ease), background-color 0.2s; }
.faq[open] summary .plus { transform: rotate(45deg); background: var(--lime); color: var(--on-lime); }
.faq__a { padding: 0 22px 22px; }
.faq__a p:last-child { margin-bottom: 0; }
.faq__cat { display: inline-block; font-family: var(--font-display); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal-text); margin-bottom: 8px; }
[lang="ar"] .faq__cat { font-size: 0.88rem; }
.faq-empty { text-align: center; padding: 40px; color: var(--muted); display: none; }
.refs-list { margin-top: 40px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); }
.refs-list summary { cursor: pointer; padding: 18px 22px; font-family: var(--font-display); font-weight: 600; color: var(--ink); }
/* Reference URLs are English: keep them left-to-right in both languages. */
.refs-list ol { padding-block: 0 22px; padding-inline: 46px 22px; font-size: 0.88rem; columns: 2; column-gap: 32px; direction: ltr; text-align: left; }
.refs-list li { break-inside: avoid; margin-bottom: 6px; word-break: break-word; }
@media (max-width: 700px) { .refs-list ol { columns: 1; } }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); border: 1px solid var(--line); box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field > label, .field > .label { font-family: var(--font-display); font-weight: 600; font-size: 0.93rem; color: var(--ink); }
[lang="ar"] .field > label, [lang="ar"] .field > .label { font-size: 1rem; line-height: 1.6; }
.field .hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--field-bg);
  font: inherit; font-size: 1rem; color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--lime); background: var(--surface); box-shadow: 0 0 0 4px rgba(157, 202, 0, 0.2); }
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--red); }
.field .err { font-size: 0.82rem; color: var(--red); display: none; }
.field input[aria-invalid="true"] ~ .err, .field select[aria-invalid="true"] ~ .err, .field textarea[aria-invalid="true"] ~ .err, .field.is-invalid > .err { display: block; }
.field.is-invalid .choice span { border-color: var(--red); }
.input-unit { position: relative; }
.input-unit input { padding-inline-end: 64px; }
.input-unit .unit { position: absolute; inset-inline-end: 14px; top: 50%; transform: translateY(-50%); font-family: var(--font-display); font-weight: 600; font-size: 0.85rem; color: var(--muted); pointer-events: none; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.choice span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 15px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font-family: var(--font-display); font-weight: 500; font-size: 0.92rem; color: var(--ink); cursor: pointer; transition: all 0.2s; user-select: none; }
[lang="ar"] .choice span { font-size: 0.98rem; }
.choice span::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-strong); transition: all 0.2s; flex-shrink: 0; }
.choice input[type="checkbox"] + span::before { border-radius: 4px; }
.choice input:checked + span { background: var(--lime-tint); border-color: var(--lime); }
.choice input:checked + span::before { background: #557600; border-color: #557600; box-shadow: inset 0 0 0 2.5px var(--surface); }
.choice input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.93rem; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent input { width: 20px; height: 20px; accent-color: #557600; margin-top: 2px; flex-shrink: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; }
/* Honeypot: invisible to people, tempting to spam bots. */
.honey { position: absolute !important; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); font-size: 0.93rem; line-height: 1.55; color: var(--text); }
[lang="ar"] .notice { line-height: 1.8; }
.notice .icon { color: var(--accent-text); width: 22px; height: 22px; margin-top: 1px; }
.notice p { margin: 0; }
.notice--warn { background: var(--warn-bg); border-color: var(--warn-line); }
.notice--warn .icon { color: var(--warn-icon); }
.notice--error { background: var(--danger-tint); border-color: rgba(214, 69, 69, 0.35); }
.notice--error .icon { color: var(--red); }
.notice--ok { background: var(--lime-tint); border-color: var(--lime); color: var(--ink); }

/* Stepper */
.steps { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-top: 14px; font-family: var(--font-display); font-weight: 600; font-size: 0.88rem; color: var(--muted); }
.steps li::before { content: ""; position: absolute; top: 0; inset-inline: 0; height: 5px; border-radius: 5px; background: var(--line); transition: background-color 0.4s; }
.steps li.is-done::before, .steps li.is-current::before { background: var(--lime); }
.steps li.is-current { color: var(--ink); }
.steps li span::before { content: counter(s) ". "; }
@media (max-width: 560px) { .steps li { font-size: 0; } .steps li span::before { font-size: 0.8rem; } }
.step { display: none; animation: stepIn 0.5s var(--ease); }
.step.is-active { display: block; }
@keyframes stepIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.step__title { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.25em; }
.step__intro { color: var(--muted); margin-bottom: 26px; }
.female-only { display: none; }
.is-female .female-only { display: grid; }
.done { text-align: center; padding: 20px 0; }
.done__ico { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; color: var(--on-lime); animation: pop 0.6s var(--ease); }
.done__ico--warn { background: var(--amber); }
.done__ico .icon { width: 40px; height: 40px; }
@keyframes pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.send-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 520px; margin: 26px auto 0; }
.send-grid .btn { width: 100%; }
@media (max-width: 520px) { .send-grid { grid-template-columns: 1fr; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } }
.clinic-cards { display: grid; gap: 16px; }
.clinic { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.clinic .flag { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--accent-text); box-shadow: var(--shadow-sm); }
.clinic .flag .icon { width: 24px; height: 24px; }
.clinic h3 { margin-bottom: 4px; font-size: 1.2rem; }
.clinic p { margin: 0 0 8px; color: var(--text); line-height: 1.5; }
.clinic .row { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.clinic .row a { display: inline-flex; gap: 6px; align-items: center; font-family: var(--font-display); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
/* "Follow along" links, each with its network's brand colour so the logos read instantly. */
.follow-links { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (max-width: 420px) { .follow-links { grid-template-columns: 1fr; } }
.follow-links a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); transition: border-color 0.2s, transform 0.3s var(--ease); }
.follow-links a:hover { border-color: var(--lime); color: var(--ink); transform: translateY(-2px); }
.follow-links .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; flex-shrink: 0; }
.follow-links .ico .icon { width: 19px; height: 19px; }
.follow-links .is-tiktok .ico { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); }
.follow-links .is-youtube .ico { background: #ff0000; }
.follow-links .is-instagram .ico { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.follow-links .is-facebook .ico { background: #1877f2; }
.follow-links b { display: block; font-family: var(--font-display); font-size: 0.95rem; line-height: 1.25; }
.follow-links small { display: block; color: var(--muted); font-size: 0.8rem; line-height: 1.3; }
.map-card { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-card iframe { width: 100%; height: 340px; border: 0; filter: var(--map-filter); }

/* ---------- Keto Lab ---------- */
.lab-nav { position: sticky; top: var(--header-h); z-index: 40; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.lab-nav ul { list-style: none; padding: 10px 0; margin: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.lab-nav ul::-webkit-scrollbar { display: none; }
.lab-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 0.92rem; color: var(--muted); white-space: nowrap; transition: background-color 0.2s, color 0.2s; }
[lang="ar"] .lab-nav a { font-size: 0.98rem; }
.lab-nav a:hover { color: var(--ink); background: var(--surface-2); }
.lab-nav a.is-active { background: var(--solid-bg); color: var(--solid-fg); }
.lab-nav .icon { width: 17px; height: 17px; }
.tool { scroll-margin-top: calc(var(--header-h) + 70px); }
.tool + .tool { margin-top: clamp(48px, 6vw, 80px); }
.tool__head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 26px; }
.tool__head .ico { width: 56px; height: 56px; border-radius: 18px; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; flex-shrink: 0; }
.tool__head .ico .icon { width: 28px; height: 28px; }
.tool__head h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 0.2em; }
.tool__head p { margin: 0; color: var(--muted); max-width: 62ch; }
.tool__body { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 0; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }
@media (max-width: 960px) { .tool__body { grid-template-columns: 1fr; } }
.tool__inputs { padding: clamp(22px, 3.5vw, 36px); display: grid; gap: 18px; align-content: start; }
.tool__out { padding: clamp(22px, 3.5vw, 36px); background: var(--panel-dark); color: rgba(255, 255, 255, 0.82); position: relative; overflow: hidden; }
.tool__out h3 { color: #fff; }
.tool__out .blob { width: 300px; aspect-ratio: 1; inset-inline-end: -120px; bottom: -120px; background: rgba(157, 202, 0, 0.14); }
.tool__out > * { position: relative; }
.tool__note { font-size: 0.82rem; color: rgba(255, 255, 255, 0.55); margin-top: 18px; line-height: 1.5; }
[lang="ar"] .tool__note { font-size: 0.88rem; line-height: 1.75; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.kcal { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.kcal strong { font-family: "Outfit", var(--font-display); font-size: clamp(2.8rem, 6vw, 4rem); color: #fff; letter-spacing: -0.04em; line-height: 1; }
.kcal span { font-family: var(--font-display); color: var(--lime-bright); font-weight: 600; }
.macro-wrap { display: grid; grid-template-columns: 170px 1fr; gap: 26px; align-items: center; margin: 24px 0; }
@media (max-width: 480px) { .macro-wrap { grid-template-columns: 1fr; justify-items: center; } }
.donut { width: 170px; height: 170px; }
.donut circle { transition: stroke-dasharray 0.8s var(--ease), stroke-dashoffset 0.8s var(--ease); }
.donut text { font-family: "Outfit", var(--font-display); }
.macros { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; width: 100%; }
.macros li { display: grid; grid-template-columns: 12px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.06); }
.macros .sw { width: 12px; height: 12px; border-radius: 4px; }
.macros b { font-family: var(--font-display); color: #fff; font-weight: 600; }
.macros small { display: block; color: rgba(255, 255, 255, 0.55); font-size: 0.8rem; }
.macros .g { font-family: "Outfit", var(--font-display); font-weight: 700; color: #fff; font-size: 1.25rem; text-align: end; line-height: 1.1; }
.macros .g small { text-align: end; font-family: var(--font-body); }
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.stat-row div { padding: 12px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, 0.12); text-align: center; }
.stat-row b { display: block; font-family: "Outfit", var(--font-display); color: #fff; font-size: 1.15rem; }
.stat-row span { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }

.gauge { width: 100%; max-width: 360px; margin: 0 auto; display: block; }
.gauge text { font-family: "Outfit", sans-serif; }
.gauge__needle { transition: transform 1s var(--ease); transform-origin: 180px 180px; }
.gki-value { text-align: center; margin-top: -8px; }
.gki-value strong { font-family: "Outfit", var(--font-display); font-size: clamp(2.6rem, 6vw, 3.6rem); color: #fff; letter-spacing: -0.03em; line-height: 1; display: block; }
.gki-value span { font-family: var(--font-display); font-weight: 600; color: var(--lime-bright); }
.gki-zone { margin-top: 18px; padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, 0.07); border-inline-start: 4px solid var(--lime); }
.gki-zone b { color: #fff; font-family: var(--font-display); display: block; margin-bottom: 2px; }
.gki-zone p { margin: 0; font-size: 0.95rem; }
.zone-key { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; font-size: 0.85rem; }
.zone-key li { display: grid; grid-template-columns: 12px 76px 1fr; gap: 10px; align-items: center; color: rgba(255,255,255,.7); }
.zone-key li.is-on { color: #fff; font-weight: 600; }
.zone-key i { width: 12px; height: 12px; border-radius: 3px; display: block; }
.log { margin-top: 6px; }
.log table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.log th, .log td { text-align: start; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.log th { font-family: var(--font-display); font-weight: 600; color: var(--muted); font-size: 0.78rem; letter-spacing: .06em; text-transform: uppercase; }
.log td.z { font-weight: 600; }
.log .del { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 8px; }
.log .del:hover { color: var(--red); background: var(--danger-tint); }
.log-empty { font-size: 0.9rem; color: var(--muted); margin: 6px 0 0; }
.spark { width: 100%; height: 110px; margin-top: 10px; color: var(--ink); }
.btn-plain { border: 0; background: none; color: var(--muted); font: inherit; font-size: 0.85rem; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 6px 0; }
.btn-plain:hover { color: var(--red); }

.food-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 22px; }
.food-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.food { --c: var(--lime); position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 16px; border-top: 5px solid var(--c); transition: transform 0.3s var(--ease), box-shadow 0.3s; animation: stepIn 0.4s var(--ease); }
.food:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.food--orange { --c: var(--amber); }
.food--red { --c: var(--red); }
.food__top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.food h3 { font-size: 1.08rem; margin: 0 0 2px; }
.food .tag { font-size: 0.72rem; font-family: var(--font-display); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
[lang="ar"] .food .tag { font-size: 0.85rem; }
.food .carb { text-align: end; font-family: "Outfit", var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.3rem; line-height: 1; white-space: nowrap; }
.food .carb small { display: block; font-size: 0.68rem; font-weight: 500; color: var(--muted); margin-top: 3px; letter-spacing: .02em; font-family: var(--font-body); }
[lang="ar"] .food .carb small { font-size: 0.78rem; margin-top: 6px; }
.food .bar { height: 6px; border-radius: 6px; background: var(--surface-3); margin: 12px 0 10px; overflow: hidden; }
.food .bar i { display: block; height: 100%; background: var(--c); border-radius: 6px; }
.food p { margin: 0; font-size: 0.9rem; line-height: 1.5; }
[lang="ar"] .food p, [lang="ar"] .food .swap { line-height: 1.75; }
.food .swap { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 0.88rem; display: flex; gap: 8px; align-items: flex-start; color: var(--ink); }
.food .swap .icon { color: var(--accent-text); width: 16px; height: 16px; margin-top: 3px; }
.light-key { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 0.9rem; margin: 0 0 20px; }
.light-key span { display: inline-flex; gap: 8px; align-items: center; }
.light-key i { width: 12px; height: 12px; border-radius: 50%; display: block; }

.fast-wrap { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: center; margin-bottom: 24px; }
@media (max-width: 600px) { .fast-wrap { grid-template-columns: 1fr; justify-items: center; text-align: center; } }
.clock { width: 230px; height: 230px; max-width: 100%; }
.clock text { font-family: "Outfit", var(--font-display); }
.clock .arc { transition: stroke-dasharray 0.8s var(--ease), stroke-dashoffset 0.8s var(--ease); }
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.timeline li { display: grid; grid-template-columns: 62px 1fr; gap: 12px; align-items: start; padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.06); }
.timeline .t { font-family: "Outfit", var(--font-display); font-weight: 700; color: var(--lime-bright); }
.timeline b { color: #fff; font-family: var(--font-display); font-weight: 600; display: block; line-height: 1.35; }
.timeline span { font-size: 0.86rem; color: rgba(255,255,255,.65); line-height: 1.5; display: block; }
.timeline b span.ltr { display: inline-block; font-size: inherit; color: inherit; line-height: inherit; }
.window-line { font-family: var(--font-display); font-size: 1.15rem; color: #fff; margin-bottom: 14px; }
.window-line b { color: var(--lime-bright); font-family: "Outfit", var(--font-display); }
.now-badge { display: inline-block; font-family: "Outfit", var(--font-display); font-size: 0.72rem; font-weight: 700; background: var(--lime); color: var(--on-lime); padding: 2px 8px; border-radius: 999px; margin-inline-end: 6px; }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--footer-bg); color: rgba(255, 255, 255, 0.72); padding-top: 40px; }
.site-footer .accent { color: var(--lime-bright); }
.site-footer__wave { position: absolute; left: 0; right: 0; top: -59px; height: 60px; color: var(--footer-bg); }
.site-footer__wave svg { width: 100%; height: 100%; }
.footer-cta { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding: 28px 0 48px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.footer-cta__title { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 22ch; margin: 0; }
.footer-cta__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 0.8fr 1fr 1fr; gap: 36px; padding: 52px 0 40px; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 52px; width: auto; margin-bottom: 18px; }
.footer-brand p { font-size: 0.95rem; max-width: 34ch; }
.footer-brand .social a { background: rgba(255, 255, 255, 0.08); color: #fff; }
.footer-brand .social a:hover { background: var(--lime); color: var(--on-lime); }
.footer-title { color: #fff; font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; margin: 0 0 14px; font-weight: 600; }
[lang="ar"] .footer-title { font-size: 1.02rem; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: rgba(255, 255, 255, 0.78); text-decoration: none; }
.site-footer a:hover { color: var(--lime-bright); }
.site-footer address { font-size: 0.95rem; line-height: 1.65; }
.footer-mail { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: #fff !important; word-break: break-all; }
.footer-note { font-size: 0.92rem; }
.footer-lang { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(255,255,255,.2); font-weight: 600; }
.footer-lang .icon { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.85rem; }
.footer-bottom p { margin: 0; }
.footer-disclaimer { max-width: 70ch; color: rgba(255, 255, 255, 0.5); }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(8, 24, 15, 0.86); backdrop-filter: blur(4px); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 82vh; width: auto; max-width: 100%; border-radius: 16px; background: #fff; margin: 0 auto; box-shadow: var(--shadow-lg); }
.lightbox figcaption { color: #fff; text-align: center; margin-top: 14px; font-family: var(--font-display); }
.lightbox__close { position: absolute; top: -18px; inset-inline-end: -18px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; cursor: pointer; z-index: 2; }
.lightbox__close .icon { width: 22px; height: 22px; }
@media (max-width: 640px) { .lightbox__close { top: -54px; inset-inline-end: 0; } }

/* ---------- 404 ---------- */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.notfound .big { font-family: "Outfit", var(--font-display); font-weight: 800; font-size: clamp(6rem, 18vw, 12rem); line-height: 0.9; letter-spacing: -0.06em; color: var(--lime); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .pulse-line, .zigzag path { stroke-dashoffset: 0; }
  .marquee__track { animation: none; }
}

/* ---------- Ad-safe additions (Oct 2026) ---------- */
.sugar-callout--care { grid-template-columns: 1fr; gap: 6px; }
.sugar-callout--care strong { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.price-disclaimer { position: relative; margin: 28px auto 0; max-width: 62ch; text-align: center; font-size: 0.9rem; color: rgba(255, 255, 255, 0.8); }
.t-note { margin: 22px 0 0; text-align: center; font-size: 0.88rem; color: var(--muted); }
.stories-note { max-width: 860px; margin: 0 auto clamp(40px, 5vw, 64px); }

/* ---------- Floating WhatsApp button ---------- */
.wa-float {
  position: fixed; inset-inline-end: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 55;
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding-inline: 16px 20px; border-radius: 999px;
  background: #25d366; color: #073b1d; font-family: var(--font-display); font-weight: 700; font-size: 1rem; text-decoration: none;
  box-shadow: 0 12px 30px -10px rgba(7, 59, 29, 0.6); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-float .icon { width: 26px; height: 26px; }
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(7, 59, 29, 0.65); }
.wa-float:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (max-width: 640px) {
  .wa-float { width: 56px; padding: 0; justify-content: center; }
  .wa-float__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media print { .wa-float { display: none; } }

/* ---------- /links: bio link hub ---------- */
html[lang="ar"] .lh .l-en, html[lang="en"] .lh .l-ar { display: none !important; }
.lh-body { min-height: 100vh; background: radial-gradient(120% 60% at 50% 0%, var(--lime-tint), transparent 70%), var(--bg); }
.lh { max-width: 520px; margin: 0 auto; padding-inline: 16px; padding-block: 18px 40px; display: flex; flex-direction: column; gap: 22px; }
.lh__bar { display: flex; justify-content: flex-end; }
.lh__lang { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 0.92rem var(--font-display); cursor: pointer; }
.lh__lang:hover { border-color: var(--accent-text); }
.lh__lang .l-ar { font-family: "Outfit", system-ui, sans-serif; }
.lh__lang .l-en { font-family: "Tajawal", system-ui, sans-serif; }
.lh__head { text-align: center; display: grid; justify-items: center; gap: 4px; }
.lh__photo { width: 116px; height: 116px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; border: 4px solid var(--surface); box-shadow: 0 0 0 3px var(--lime), var(--shadow); margin-bottom: 10px; }
.lh__name { font-size: clamp(1.7rem, 6vw, 2.1rem); margin: 0; text-wrap: balance; }
.lh__cred { margin: 0; color: var(--text); font-weight: 600; }
.lh__tag { margin: 0; color: var(--accent-text); font-weight: 600; font-size: 0.95rem; }
.lh__links { display: grid; gap: 12px; }
.lh__btn { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); transition: transform 0.2s var(--ease), border-color 0.2s var(--ease); }
.lh__btn:hover { transform: translateY(-2px); border-color: var(--accent-text); }
.lh__btn:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 2px; }
.lh__ico { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--lime-tint); color: var(--accent-text); }
.lh__ico .icon { width: 24px; height: 24px; }
.lh__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lh__txt b { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; line-height: 1.3; }
.lh__txt small { color: var(--muted); font-size: 0.86rem; line-height: 1.4; }
.lh__go { flex: none; color: var(--muted); }
.lh__btn--wa { background: #25d366; border-color: #25d366; color: #073b1d; }
.lh__btn--wa .lh__ico { background: rgba(255, 255, 255, 0.35); color: #073b1d; }
.lh__btn--wa .lh__txt small, .lh__btn--wa .lh__go { color: #0b4d26; }
.lh__btn--wa:hover { border-color: #073b1d; }
.lh__social { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; gap: 12px; }
.lh__social a { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
.lh__social a:hover { border-color: var(--accent-text); color: var(--accent-text); }
.lh__note { margin: 0; text-align: center; font-size: 0.82rem; color: var(--muted); }
.lh__note a { color: inherit; text-decoration: underline; }
.lh__logo { align-self: center; }
.lh__logo img { height: 40px; width: auto; }

/* ---------- /shop: digital products (Oct 2026) ----------
   Covers are the real PDF first pages (assets/img/shop). Books lean away from their spine:
   spine on the left in English, on the right in Arabic, like printed books. */
.shop-hero { position: relative; overflow: hidden; color: rgba(255, 255, 255, 0.85); padding-block: clamp(48px, 7vw, 96px) clamp(64px, 8vw, 110px);
  background: radial-gradient(900px 520px at 85% 10%, rgba(157, 202, 0, 0.28), transparent 65%), radial-gradient(700px 500px at 5% 100%, rgba(50, 164, 141, 0.25), transparent 70%), var(--forest); }
.shop-hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 64px); align-items: center; }
.shop-hero h1 { color: #fff; font-size: clamp(2.5rem, 5.8vw, 4.6rem); letter-spacing: -0.03em; margin-bottom: 0.3em; }
[lang="ar"] .shop-hero h1 { line-height: 1.3; }
.shop-hero .lead { color: rgba(255, 255, 255, 0.85); max-width: 46ch; }
.shop-hero .crumbs { margin-bottom: 18px; }
.shop-perks { list-style: none; padding: 0; margin: 26px 0 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.shop-perks li { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); color: #fff; font: 600 0.92rem var(--font-display); }
.shop-perks .icon { color: var(--lime-bright); width: 18px; height: 18px; }
.shop-shelf { position: relative; height: clamp(300px, 34vw, 430px); }
.shop-shelf::after { content: ""; position: absolute; inset-inline: 4%; bottom: 0; height: 18px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, 0.45), transparent); }
.shop-shelf .book { position: absolute; bottom: 14px; width: clamp(130px, 15vw, 200px); animation: floaty 7s ease-in-out infinite; }
.shop-shelf .book:nth-child(1) { inset-inline-start: 4%; z-index: 1; animation-delay: -2s; }
.shop-shelf .book:nth-child(2) { inset-inline-start: 31%; z-index: 3; width: clamp(150px, 17vw, 228px); bottom: 26px; }
.shop-shelf .book:nth-child(3) { inset-inline-start: 64%; z-index: 2; animation-delay: -4s; }
@media (max-width: 860px) {
  .shop-hero__grid { grid-template-columns: 1fr; }
  .shop-shelf { height: 250px; max-width: 440px; width: 100%; margin-inline: auto; }
  .shop-shelf .book { width: 124px; }
  .shop-shelf .book:nth-child(2) { width: 142px; }
}

/* The book object */
.book { position: relative; aspect-ratio: 560 / 792; background: #fff; border-radius: 3px 9px 9px 3px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1), 0 26px 44px -20px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(15, 42, 29, 0.08);
  transform: perspective(1100px) rotateY(-16deg); transform-origin: left center; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
[dir="rtl"] .book { border-radius: 9px 3px 3px 9px; transform: perspective(1100px) rotateY(16deg); transform-origin: right center; }
.book img { width: 100%; height: 100%; object-fit: cover; }
.book::before { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 7%; z-index: 1; background: linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.3) 45%, rgba(0, 0, 0, 0.06)); }
[dir="rtl"] .book::before { background: linear-gradient(270deg, rgba(0, 0, 0, 0.22), rgba(255, 255, 255, 0.3) 45%, rgba(0, 0, 0, 0.06)); }
.book::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(115deg, rgba(255, 255, 255, 0.35), transparent 32%); pointer-events: none; }
[dir="rtl"] .book::after { background: linear-gradient(245deg, rgba(255, 255, 255, 0.35), transparent 32%); }

/* In-page section links */
.shop-nav { position: sticky; top: var(--header-h); z-index: 50; background: var(--header-bg); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--line); }
.shop-nav ul { list-style: none; margin: 0; padding: 10px 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.shop-nav ul::-webkit-scrollbar { display: none; }
.shop-nav a { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; font: 600 0.9rem var(--font-display); }
.shop-nav a:hover { border-color: var(--lime); }
.shop-nav a.is-free { background: var(--lime); border-color: var(--lime); color: var(--on-lime); }
.shop-nav .icon { width: 16px; height: 16px; }
.shop-section { scroll-margin-top: calc(var(--header-h) + 64px); }

/* Free guide */
.free-guide { display: grid; grid-template-columns: minmax(180px, 290px) 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding: clamp(26px, 4vw, 48px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--lime-tint), var(--surface-2)); border: 1px solid var(--line); }
.free-guide .book { max-width: 290px; justify-self: center; width: 100%; }
.free-guide__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--solid-bg); color: var(--solid-fg); font: 700 0.85rem var(--font-display); margin-bottom: 14px; }
.free-guide h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.free-guide__list { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.free-guide__list li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.free-guide__list .icon { color: var(--accent-text); margin-top: 0.3em; }
.free-guide__note { margin: 14px 0 0; font-size: 0.88rem; color: var(--muted); }
@media (max-width: 760px) { .free-guide { grid-template-columns: 1fr; } .free-guide .book { max-width: 200px; } .free-guide__list { grid-template-columns: 1fr; } }

/* Prices, buttons */
.shop-price { font: 800 1.6rem/1 var(--font-display); color: var(--ink); direction: ltr; unicode-bidi: isolate; }
.was { color: var(--muted); font-weight: 600; }
.shop-add.is-in { background: var(--solid-bg); color: var(--solid-fg); border-color: var(--solid-bg); box-shadow: none; }
.shop-add.is-in:hover { background: var(--solid-bg); color: var(--solid-fg); opacity: 0.9; }

/* Product grids */
.shop-head { margin-bottom: clamp(28px, 4vw, 44px); }
.shop-head h2 { margin: 0; }
.shop-head p { margin: 10px 0 0; max-width: 62ch; color: var(--text); }
.book-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.book-grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.book-card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); padding: 26px 22px 22px; animation: shop-in 0.7s var(--ease) both; transition: border-color 0.3s, box-shadow 0.3s; }
.book-card:hover { border-color: var(--lime); box-shadow: var(--shadow); }
.book-card .book { width: 56%; margin: 6px auto 22px; }
.book-card:hover .book { transform: perspective(1100px) rotateY(-5deg) translateY(-4px); }
[dir="rtl"] .book-card:hover .book { transform: perspective(1100px) rotateY(5deg) translateY(-4px); }
.book-card__ribbon { position: absolute; top: 16px; inset-inline-end: 16px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 0.78rem var(--font-display); }
.book-card__body { display: flex; flex-direction: column; flex: 1; }
.book-card__tag { margin: 0 0 6px; font: 600 0.8rem var(--font-display); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
[lang="ar"] .book-card__tag { font-size: 0.9rem; }
.book-card h3 { margin: 0 0 8px; font-size: 1.28rem; line-height: 1.25; }
[lang="ar"] .book-card h3 { line-height: 1.5; }
.book-card__blurb { font-size: 0.97rem; color: var(--text); margin-bottom: 12px; }
.book-card__inside { margin-bottom: 16px; border-top: 1px solid var(--line); }
.book-card__inside summary { cursor: pointer; padding: 12px 0 4px; font: 600 0.95rem var(--font-display); color: var(--accent-text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
.book-card__inside summary::-webkit-details-marker { display: none; }
.book-card__inside summary .icon { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.book-card__inside[open] summary .icon { transform: rotate(45deg); }
.book-card__inside ul { list-style: none; padding: 6px 0 0; margin: 0; display: grid; gap: 6px; }
.book-card__inside li { display: flex; gap: 8px; font-size: 0.93rem; line-height: 1.45; }
.book-card__inside li .icon { color: var(--accent-text); width: 16px; height: 16px; margin-top: 0.2em; }
.book-card__buy { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 8px; }
.book-card__buy .was { margin-inline-end: auto; }

/* Bundles */
.bundle-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(18px, 2.4vw, 28px); }
.bundle-card { display: grid; grid-template-columns: 180px 1fr; gap: 26px; align-items: center; padding: 26px; border-radius: var(--radius); background: var(--forest); color: rgba(255, 255, 255, 0.85); box-shadow: var(--shadow); animation: shop-in 0.7s var(--ease) both; }
.bundle-card h3 { color: #fff; margin: 0 0 6px; font-size: 1.35rem; }
.bundle-card p { margin: 0 0 14px; }
.bundle-card .shop-price { color: #fff; }
.bundle-card .was { color: rgba(255, 255, 255, 0.6); }
.bundle-card__save { display: inline-block; margin: 0 0 10px !important; padding: 4px 12px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 0.85rem var(--font-display); }
.bundle-card__books { position: relative; height: 200px; }
.book--stack { position: absolute; width: 112px; top: 0; }
.book--stack.book--0 { inset-inline-start: 0; z-index: 1; }
.book--stack.book--1 { inset-inline-start: 56px; top: 28px; z-index: 2; }
@media (max-width: 520px) { .bundle-card { grid-template-columns: 1fr; } .bundle-card__books { width: 180px; margin-inline: auto; } }

/* Cancer companion guides */
.care-note { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 20px 22px; border-radius: var(--radius); background: var(--warn-bg); border: 1px solid var(--warn-line); margin-bottom: 22px; }
.care-note .icon { width: 28px; height: 28px; color: var(--warn-icon); }
.care-note p { margin: 0; color: var(--ink); }
.care-inside { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.care-inside li { display: flex; gap: 8px; align-items: flex-start; font-size: 0.95rem; }
.care-inside .icon { color: var(--accent-text); width: 16px; height: 16px; margin-top: 0.25em; }
.shop-search { position: relative; max-width: 420px; margin-bottom: 20px; }
.shop-search input { width: 100%; padding: 14px 18px; padding-inline-start: 46px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: var(--field-bg); color: var(--ink); font: inherit; }
.shop-search input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-tint); }
.shop-search .icon { position: absolute; inset-inline-start: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; }
.mini-card { display: grid; grid-template-columns: 58px 1fr auto; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); animation: shop-in 0.6s var(--ease) both; transition: border-color 0.2s; }
.mini-card:hover { border-color: var(--lime); }
.mini-card__cover { width: 58px; border-radius: 3px 6px 6px 3px; box-shadow: 0 8px 16px -8px rgba(0, 0, 0, 0.5); }
[dir="rtl"] .mini-card__cover { border-radius: 6px 3px 3px 6px; }
.mini-card__text { min-width: 0; }
.mini-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.3; overflow-wrap: anywhere; }
[lang="ar"] .mini-card h3 { line-height: 1.5; }
.mini-card p { margin: 2px 0 0; font-size: 0.84rem; line-height: 1.4; color: var(--muted); }
.mini-card__buy { display: grid; justify-items: end; gap: 6px; }
.mini-card__buy .shop-price { font-size: 1.15rem; }
.mini-card .btn--sm { padding: 0.5em 0.85em; font-size: 0.85rem; }
.shop-none { padding: 18px; border-radius: 18px; background: var(--surface-2); color: var(--text); }

/* How buying works */
.buy-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.buy-steps li { position: relative; padding: 26px 22px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); counter-increment: step; }
.buy-steps li::before { content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font: 800 1.2rem var(--font-display); margin-bottom: 14px; }
.buy-steps h3 { color: #fff; font-size: 1.15rem; margin-bottom: 6px; }
.buy-steps p { margin: 0; font-size: 0.95rem; }
.pay-logos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; justify-content: center; }
.pay-logos span { padding: 8px 16px; border-radius: 12px; background: #fff; color: #0f2a1d; font: 800 1rem var(--font-display); }
@media (max-width: 960px) { .buy-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .buy-steps { grid-template-columns: 1fr; } }
.shop-disclaimer { max-width: 860px; margin: 32px auto 0; padding: 20px 22px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); font-size: 0.92rem; color: var(--text); }
.shop-disclaimer p:last-child { margin-bottom: 0; }

@keyframes shop-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Cart button, toast and drawer */
.cart-fab { position: fixed; inset-inline-start: 18px; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); z-index: 56; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding-inline: 18px 20px; border-radius: 999px; border: 0; background: var(--solid-bg); color: var(--solid-fg); font: 700 1rem var(--font-display); cursor: pointer; box-shadow: var(--shadow-lg); }
.cart-fab .icon { width: 24px; height: 24px; }
.cart-fab__count { min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--lime); color: var(--on-lime); font-size: 0.9rem; }
.cart-fab__total { direction: ltr; }
.cart-fab.is-bump { animation: cart-bump 0.5s var(--ease); }
@keyframes cart-bump { 30% { transform: scale(1.12); } 60% { transform: scale(0.96); } }
.cart-toast { position: fixed; inset-inline: 16px; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); z-index: 57; margin-inline: auto; max-width: 440px; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-block: 12px; padding-inline: 18px 12px; border-radius: 16px; background: var(--solid-bg); color: var(--solid-fg); box-shadow: var(--shadow-lg); font-weight: 600; font-size: 0.95rem; }
.cart-toast button { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--lime); color: var(--on-lime); font: 700 0.88rem var(--font-display); cursor: pointer; }
.cart-scrim { position: fixed; inset: 0; z-index: 80; background: rgba(5, 14, 9, 0.55); opacity: 0; transition: opacity 0.25s; }
.cart-scrim.is-open { opacity: 1; }
.cart-drawer { position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 81; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--bg); box-shadow: var(--shadow-lg); transform: translateX(100%); transition: transform 0.3s var(--ease); }
[dir="rtl"] .cart-drawer { transform: translateX(-100%); }
.cart-drawer.is-open, [dir="rtl"] .cart-drawer.is-open { transform: none; }
body.cart-open { overflow: hidden; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.cart-drawer__head h2 { margin: 0; font-size: 1.5rem; }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 18px 20px 28px; display: flex; flex-direction: column; gap: 16px; }
.cart-empty { margin: 30px 0; text-align: center; color: var(--muted); }
.cart-order { margin: 0; font-size: 0.88rem; color: var(--muted); }
.cart-items { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cart-item { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.cart-item__covers { display: flex; }
.cart-item__covers img { width: 40px; border-radius: 2px 4px 4px 2px; box-shadow: 0 6px 12px -6px rgba(0, 0, 0, 0.5); }
.cart-item__covers img + img { margin-inline-start: -18px; }
.cart-item__name { font-weight: 600; color: var(--ink); line-height: 1.35; font-size: 0.95rem; }
.cart-item .shop-price { font-size: 1.05rem; }
.cart-item__remove { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.cart-item__remove:hover { color: var(--red); border-color: var(--red); }
.cart-hint { padding: 14px; border-radius: 16px; background: var(--lime-tint); display: grid; gap: 10px; }
.cart-hint p { margin: 0; color: var(--ink); font-weight: 600; }
.cart-hint .shop-price { font-size: 1.05rem; }
.cart-hint s { color: var(--muted); }
.cart-total { margin: 0; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid var(--line); font: 700 1.1rem var(--font-display); color: var(--ink); }
.cart-total .shop-price { font-size: 1.8rem; }
.cart-field { display: grid; gap: 6px; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.cart-field input { padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--field-bg); color: var(--ink); font: inherit; font-weight: 400; }
.cart-field input:focus { outline: none; border-color: var(--lime); box-shadow: 0 0 0 4px var(--lime-tint); }
.cart-pay { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cart-pay legend { width: 100%; margin-bottom: 6px; font-weight: 600; color: var(--ink); font-size: 0.92rem; }
.cart-pay label { position: relative; flex: 1; min-width: 130px; cursor: pointer; }
.cart-pay input { position: absolute; opacity: 0; }
.cart-pay span { display: block; text-align: center; padding: 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); font: 700 0.98rem var(--font-display); color: var(--ink); }
.cart-pay input:checked + span { border-color: var(--lime); background: var(--lime-tint); box-shadow: inset 0 0 0 1px var(--lime); }
.cart-pay input:focus-visible + span { outline: 3px solid var(--lime); outline-offset: 2px; }
.cart-send { width: 100%; background: #25d366; color: #073b1d; box-shadow: 0 12px 26px -12px rgba(7, 59, 29, 0.7); }
.cart-send:hover { background: #2ee673; color: #073b1d; }
.cart-after { margin: 0; font-size: 0.9rem; color: var(--text); }
.cart-after strong { color: var(--ink); }
.cart-clear { align-self: center; }
@media print { .cart-fab, .cart-toast, .cart-drawer, .cart-scrim, .shop-nav { display: none !important; } }

/* ---------- /challenge: free 10-Day Lebanese Keto Challenge (Nov 2026) ---------- */
.challenge-hero sup { font-size: 0.6em; }
.challenge-shelf .book:nth-child(1) { inset-inline-start: 12%; z-index: 1; animation-delay: -3s; }
.challenge-shelf .book:nth-child(2) { inset-inline-start: 44%; z-index: 2; width: clamp(150px, 17vw, 228px); bottom: 26px; }
.cd { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 26px; color: #fff; }
.cd[hidden] { display: none; }
.cd__label { font: 600 0.95rem var(--font-display); color: rgba(255, 255, 255, 0.8); margin-inline-end: 4px; }
.cd__unit { display: inline-flex; flex-direction: column; align-items: center; min-width: 64px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font: 600 0.78rem var(--font-display); color: rgba(255, 255, 255, 0.75); }
.cd__unit b { font: 800 1.6rem/1.1 var(--font-display); color: var(--lime-bright); direction: ltr; }
.ch-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 22px); }
.ch-tile { padding: 24px 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.ch-tile .icon { width: 30px; height: 30px; color: var(--accent-text); margin-bottom: 12px; }
.ch-tile h3 { font-size: 1.15rem; margin: 0 0 6px; }
.ch-tile p { margin: 0; color: var(--text); font-size: 0.95rem; }
@media (max-width: 900px) { .ch-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ch-tiles { grid-template-columns: 1fr; } }
.ch-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: st; }
.ch-steps li { counter-increment: st; position: relative; padding: 22px 20px 20px; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--line); }
.ch-steps li::before { content: counter(st); position: absolute; top: -14px; inset-inline-start: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font: 800 0.95rem/30px var(--font-display); text-align: center; }
.ch-steps__when { display: inline-block; font: 700 0.8rem var(--font-display); color: var(--accent-text); text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
[lang="ar"] .ch-steps__when { text-transform: none; letter-spacing: 0; font-size: 0.9rem; }
.ch-steps h3 { font-size: 1.12rem; margin: 0 0 6px; }
.ch-steps p { margin: 0; font-size: 0.95rem; }
@media (max-width: 900px) { .ch-steps { grid-template-columns: 1fr 1fr; row-gap: 26px; } }
@media (max-width: 520px) { .ch-steps { grid-template-columns: 1fr; } }
.ch-day { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: clamp(24px, 4vw, 44px); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--lime-tint), var(--surface-2)); border: 1px solid var(--line); }
.ch-day h2 { margin: 6px 0 12px; }
.ch-day p { margin: 0; }
.ch-meals { display: grid; gap: 12px; }
.ch-meal { display: grid; gap: 3px; padding: 16px 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.ch-meal b { font-family: var(--font-display); font-size: 1.08rem; color: var(--ink); }
.ch-meal span { font-size: 0.92rem; color: var(--muted); }
.ch-meal .ch-meal__time { font: 700 0.8rem var(--font-display); color: var(--accent-text); }
[lang="ar"] .ch-meal .ch-meal__time { font-size: 0.9rem; }
.ch-meal--quiet { background: transparent; border-style: dashed; }
@media (max-width: 760px) { .ch-day { grid-template-columns: 1fr; } }
.ch-health-list { margin: 0 0 4px; line-height: 1.6; }
.consent.is-invalid { color: var(--red); }
.consent.is-invalid input { outline: 2px solid var(--red); outline-offset: 2px; }
.ch-done { outline: none; }
.ch-done__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font: 700 0.9rem var(--font-display); }
.ch-done h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 14px 0 18px; }
.ch-done__steps { margin: 0; padding-inline-start: 1.3em; display: grid; gap: 20px; }
.ch-done__steps li::marker { font: 800 1rem var(--font-display); color: var(--accent-text); }
.ch-done__steps .btn-row { margin-top: 10px; }
.ch-follow { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 10px; }
.ch-follow a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; font: 600 0.92rem var(--font-display); }
.ch-follow a:hover { border-color: var(--lime); background: var(--lime-tint); }
.ch-follow .icon { width: 18px; height: 18px; }
.ch-foot { margin: 18px 0 0; font-size: 0.85rem; color: var(--muted); line-height: 1.6; }
.btn--wa { background: #25d366; border-color: #25d366; color: #073b1d; }
.btn--wa:hover { background: #1fb457; border-color: #1fb457; color: #04260f; }
