/* =========================================================================
   Keto Therapy — homepage (v2, "three doors" hook layout)
   Loaded only on the EN + AR home pages (front-matter "styles: home.css").
   Every class starts with "hm-" so nothing collides with style.css.
   Light sections use the site theme tokens, so dark mode follows them;
   the hero, cancer chapter and final call-to-action are dark in both themes.
   Logical properties (inset-inline-*, margin-inline-*) handle RTL.
   ========================================================================= */

:root {
  --hm-night: #0a1d14;
  --hm-forest: #0f2a1d;
  --hm-rose: #e0577d;
  --hm-rose-soft: #f7c9d6;
  --hm-teal-door: #4cc3a9;
  --hm-meta-bg: linear-gradient(180deg, var(--bg), #e8f5f1);
  --hm-track: #eef1ea;
  --hm-pill-off: #f1f1ee;
  --hm-pill-off-text: #9a9a92;
  --hm-shadow: 0 24px 60px -24px rgba(15, 42, 29, 0.35);
  --hm-soft-shadow: 0 10px 30px -18px rgba(15, 42, 29, 0.35);
  --hm-hero-bg: radial-gradient(900px 520px at 85% 10%, rgba(157, 202, 0, 0.24), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(50, 164, 141, 0.14), transparent 60%), linear-gradient(180deg, #f4f9ee, #ffffff);
  --hm-hero-dots: rgba(15, 42, 29, 0.09);
  --hm-door-bg: #ffffff;
  --hm-trust-bg: #ffffff;
  --hm-cancer-bg: radial-gradient(900px 600px at 100% 0%, rgba(224, 87, 125, 0.12), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(157, 202, 0, 0.08), transparent 60%), #fff7f9;
  --hm-panel: #ffffff;
  --hm-ring-off: rgba(224, 87, 125, 0.14);
  --hm-ring-lbl: #b23458;
}
:root[data-theme="dark"] {
  --hm-hero-bg: radial-gradient(900px 520px at 85% 10%, rgba(157, 202, 0, 0.2), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(50, 164, 141, 0.18), transparent 60%), linear-gradient(180deg, #0a1d14, #0f2a1d);
  --hm-hero-dots: rgba(255, 255, 255, 0.07);
  --hm-door-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
  --hm-trust-bg: #0f2a1d;
  --hm-cancer-bg: radial-gradient(900px 600px at 100% 0%, rgba(224, 87, 125, 0.16), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(157, 202, 0, 0.08), transparent 60%), #0d1a14;
  --hm-panel: rgba(255, 255, 255, 0.04);
  --hm-ring-off: rgba(255, 255, 255, 0.08);
  --hm-ring-lbl: #ffffff;
  --hm-meta-bg: linear-gradient(180deg, var(--bg), #0c211a);
  --hm-track: rgba(255, 255, 255, 0.08);
  --hm-pill-off: rgba(255, 255, 255, 0.06);
  --hm-pill-off-text: #7d8f85;
  --hm-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --hm-soft-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --hm-hero-bg: radial-gradient(900px 520px at 85% 10%, rgba(157, 202, 0, 0.2), transparent 60%), radial-gradient(700px 500px at 0% 100%, rgba(50, 164, 141, 0.18), transparent 60%), linear-gradient(180deg, #0a1d14, #0f2a1d);
    --hm-hero-dots: rgba(255, 255, 255, 0.07);
    --hm-door-bg: linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    --hm-trust-bg: #0f2a1d;
    --hm-cancer-bg: radial-gradient(900px 600px at 100% 0%, rgba(224, 87, 125, 0.16), transparent 60%), radial-gradient(800px 500px at 0% 100%, rgba(157, 202, 0, 0.08), transparent 60%), #0d1a14;
    --hm-panel: rgba(255, 255, 255, 0.04);
    --hm-ring-off: rgba(255, 255, 255, 0.08);
    --hm-ring-lbl: #ffffff;
    --hm-meta-bg: linear-gradient(180deg, var(--bg), #0c211a);
    --hm-track: rgba(255, 255, 255, 0.08);
    --hm-pill-off: rgba(255, 255, 255, 0.06);
    --hm-pill-off-text: #7d8f85;
    --hm-shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
    --hm-soft-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.6);
  }
}

/* ---------- base inside the homepage ---------- */
.hm :where(h1, h2, h3, p, ul, ol, figure, blockquote) { margin: 0; }
.hm :where(ul, ol) { padding: 0; list-style: none; }
.hm-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.hm-serif { font-family: var(--font-accent); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
[lang="ar"] .hm-serif { font-style: normal; font-weight: 700; }
[lang="ar"] .hm :is(h1, h2) { line-height: 1.3; }
.hm-eyebrow { font-family: var(--font-display); font-weight: 600; font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 10px; }
.hm-eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
[lang="ar"] .hm-eyebrow { font-size: 15px; }

.hm-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-weight: 600; font-size: 16px; padding: 16px 26px; border-radius: 999px; text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); border: 0; cursor: pointer; white-space: nowrap; }
.hm-btn:hover { transform: translateY(-2px); }
.hm-btn svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.hm-btn:hover svg { transform: translateX(3px); }
[dir="rtl"] .hm-btn:hover svg:has(use[href="#i-arrow"]) { transform: scaleX(-1) translateX(3px); }
.hm-btn--lime, .hm-btn--lime:hover { background: var(--lime); color: var(--hm-forest); box-shadow: 0 14px 30px -12px rgba(157, 202, 0, 0.7); }
.hm-btn--teal, .hm-btn--teal:hover { background: var(--teal); color: #fff; box-shadow: 0 14px 30px -12px rgba(50, 164, 141, 0.7); }
.hm-btn--rose, .hm-btn--rose:hover { background: var(--hm-rose); color: #fff; box-shadow: 0 14px 30px -12px rgba(224, 87, 125, 0.7); }
.hm-btn--ghost, .hm-btn--ghost:hover { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px currentColor; }
.hm-btn--wa, .hm-btn--wa:hover { background: #25d366; color: #06331a; }
@media (max-width: 420px) { .hm-btn { white-space: normal; text-align: center; } }

/* ---------- hero ---------- */
.hm-hero { position: relative; background: var(--bg); color: var(--text); padding: 56px 0 0; isolation: isolate; overflow: hidden; }
.hm-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--hm-hero-bg); }
[dir="rtl"] .hm-hero::before { transform: scaleX(-1); }
.hm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: 0.35; background-image: radial-gradient(var(--hm-hero-dots) 1px, transparent 1px); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000, transparent 75%); mask-image: linear-gradient(180deg, #000, transparent 75%); }
.hm-hero__grid { display: grid; gap: 40px; align-items: end; }
.hm-hero .hm-eyebrow { color: var(--accent-text); }
.hm-hero h1 { color: var(--ink); font-family: var(--font-display); font-size: clamp(42px, 7.4vw, 86px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 18px 0 22px; }
.hm-hero h1 .hm-line { display: block; }
@media (min-width: 560px) { .hm-hero h1 .hm-line { white-space: nowrap; } }
.hm-hero h1 .hm-serif { color: var(--accent-text); }
.hm-hero__lead { font-size: clamp(17px, 2.2vw, 20px); max-width: 560px; color: var(--text); }
.hm-hero__lead strong { color: var(--ink); font-weight: 600; }
.hm-who { display: flex; align-items: center; gap: 12px; margin-top: 26px; font-size: 14px; color: var(--muted); }
.hm-who img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; border: 2px solid var(--lime); }
.hm-who strong { display: block; color: var(--ink); font: 600 15px var(--font-display); }
.hm-hero__portrait { display: none; position: relative; justify-self: end; }
.hm-arch { width: 400px; aspect-ratio: 4 / 5; border-radius: 220px 220px 28px 28px; overflow: hidden; position: relative; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.7); }
.hm-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.hm-hero .hm-arch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(10, 29, 20, 0.65)); }
.hm-halo { position: absolute; top: -26px; inset-inline-end: -26px; width: 460px; aspect-ratio: 1; border-radius: 50%; border: 1.5px dashed rgba(157, 202, 0, 0.35); z-index: -1; animation: hm-spin 60s linear infinite; }
@keyframes hm-spin { to { transform: rotate(360deg); } }
.hm-badge { position: absolute; background: rgba(255, 255, 255, 0.96); color: var(--hm-forest); border-radius: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--hm-shadow); border: 1px solid var(--line); font: 600 14px/1.25 var(--font-display); }
.hm-badge small { display: block; font: 500 12px var(--font-body); color: #5d6d64; }
.hm-badge__dot { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--lime); color: var(--hm-forest); flex: none; }
.hm-badge__dot--wa { background: #25d366; color: #fff; }
.hm-badge__dot svg { width: 20px; height: 20px; }
.hm-badge--a { inset-inline-start: -70px; bottom: 120px; }
.hm-badge--b { inset-inline-end: -40px; top: 24px; }

/* the three doors */
.hm-ask { margin: 44px 0 18px; font: 600 15px var(--font-display); color: var(--ink); display: flex; align-items: center; gap: 10px; }
[lang="ar"] .hm-ask { font-size: 17px; }
.hm-ask span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 6px rgba(157, 202, 0, 0.18); animation: hm-ping 2s infinite; }
@keyframes hm-ping { 50% { box-shadow: 0 0 0 11px rgba(157, 202, 0, 0); } }
.hm-doors { display: grid; gap: 14px; padding-bottom: 56px; }
.hm-door { --c: var(--lime); --c-text: var(--accent-text); position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; border-radius: var(--radius); text-decoration: none; background: var(--hm-door-bg); border: 1px solid var(--line-strong); box-shadow: var(--hm-soft-shadow); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); overflow: hidden; transition: transform 0.4s var(--ease), border-color 0.4s; }
.hm-door, .hm-door:hover { color: var(--ink); }
.hm-door::before { content: ""; position: absolute; bottom: -80%; inset-inline-end: -40%; width: 260px; height: 260px; border-radius: 50%; background: var(--c); opacity: 0; filter: blur(40px); transition: opacity 0.5s; }
.hm-door:hover { transform: translateY(-4px); border-color: var(--c); }
.hm-door:hover::before { opacity: 0.35; }
.hm-door__ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--c); color: var(--hm-forest); flex: none; }
.hm-door__ico svg { width: 26px; height: 26px; }
.hm-door__tag { font: 600 11.5px var(--font-display); letter-spacing: 0.14em; text-transform: uppercase; color: var(--c-text); display: block; margin-bottom: 4px; }
[lang="ar"] .hm-door__tag { font-size: 13px; }
.hm-door h2 { color: var(--ink); font-family: var(--font-display); font-size: 19px; font-weight: 600; line-height: 1.2; letter-spacing: -0.01em; }
[lang="ar"] .hm-door h2 { line-height: 1.4; }
.hm-door p { display: none; font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.hm-door__go { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-strong); transition: background 0.3s, color 0.3s, transform 0.4s var(--ease); }
.hm-door__go svg { width: 16px; height: 16px; }
.hm-door:hover .hm-door__go { background: var(--c); color: var(--hm-forest); border-color: var(--c); transform: rotate(-45deg); }
[dir="rtl"] .hm-door:hover .hm-door__go { transform: rotate(45deg); }
.hm-door--teal { --c: var(--hm-teal-door); --c-text: var(--teal-text); }
.hm-door--teal .hm-door__ico { color: #06281f; }
.hm-door--rose { --c: var(--hm-rose); --c-text: var(--rose-text); }
.hm-door--rose .hm-door__ico, .hm-door--rose:hover .hm-door__go { color: #fff; }

/* trust strip */
.hm-trust { background: var(--hm-trust-bg); border-block: 1px solid var(--line); color: var(--muted); font: 500 14px var(--font-display); }
.hm-trust .hm-wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; padding: 18px 0; }
.hm-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hm-trust svg { width: 16px; height: 16px; color: var(--accent-text); }

/* ---------- chapters ---------- */
.hm-chapter { padding: 88px 0; position: relative; scroll-margin-top: 70px; }
.hm-chapter__grid { display: grid; gap: 48px; align-items: center; }
.hm-num { font: 800 15px var(--font-display); letter-spacing: 0.1em; color: var(--c); display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.hm-num b { font-size: 46px; line-height: 1; opacity: 0.9; }
.hm-chapter h2 { font-family: var(--font-display); font-size: clamp(36px, 6vw, 62px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 22px; color: var(--ink); }
.hm-chapter h2 .hm-serif { color: var(--c-ink); }
.hm-lead { font-size: clamp(17px, 2vw, 19.5px); color: var(--text); max-width: 560px; }
.hm-lead strong { color: var(--ink); }
.hm-ticks { display: grid; gap: 12px; margin: 28px 0 32px; }
.hm-ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; color: var(--ink); }
.hm-ticks li::before { content: ""; flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--c) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat; }
[lang="ar"] .hm-ticks li::before { margin-top: 5px; }
.hm-quote { margin-top: 36px; padding: 22px 24px; border-radius: var(--radius); background: var(--surface); box-shadow: var(--hm-soft-shadow); border-inline-start: 4px solid var(--c); max-width: 560px; }
.hm-quote p { font-family: var(--font-accent); font-style: italic; font-size: 18px; color: var(--ink); line-height: 1.5; }
[lang="ar"] .hm-quote p { font-family: var(--font-body); font-style: normal; font-size: 17px; line-height: 1.8; }
.hm-quote figcaption { display: flex; align-items: center; gap: 10px; margin-top: 12px; font: 600 14px var(--font-display); color: var(--ink); }
.hm-quote figcaption img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.hm-quote figcaption small { font: 500 12px var(--font-body); color: var(--muted); display: block; }
.hm-big { font-style: normal; font-family: var(--font-display); font-weight: 800; color: var(--c-ink); }
.hm-more { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font: 600 14.5px var(--font-display); color: var(--c-ink); text-decoration: none; }
.hm-more svg { width: 16px; height: 16px; }

/* 01 weight */
.hm-weight { --c: var(--lime); --c-ink: var(--accent-text); background: var(--surface-2); }
.hm-gauge-card { background: var(--surface); border-radius: var(--radius-lg); padding: 32px 28px 28px; box-shadow: var(--hm-shadow); position: relative; overflow: hidden; }
.hm-gauge-card::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(157, 202, 0, 0.22), transparent 70%); inset-inline-end: -100px; top: -120px; }
.hm-gauge-card h3 { font-family: var(--font-display); font-size: 15px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); text-align: center; }
[lang="ar"] .hm-gauge-card h3 { font-size: 17px; }
.hm-gauge { width: 100%; max-width: 420px; margin: 10px auto 0; display: block; overflow: visible; direction: ltr; }
.hm-gauge .track { stroke: var(--hm-track); }
.hm-gauge .ticks { stroke: var(--ink); stroke-opacity: 0.25; }
.hm-gauge .ink { fill: var(--ink); }
.hm-gauge text { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.hm-gauge .t-sugar { fill: var(--rose-text); }
.hm-gauge .t-fat { fill: var(--accent-text); }
.hm-gauge .needle { transform-origin: 200px 200px; transform: rotate(-72deg); transition: transform 2.4s cubic-bezier(0.34, 1.35, 0.5, 1) 0.3s; }
.is-visible .hm-gauge .needle { transform: rotate(68deg); }
.hm-gauge-status { display: flex; justify-content: center; gap: 10px; margin-top: 4px; font: 700 15px var(--font-display); color: var(--ink); }
.hm-pill { padding: 6px 14px; border-radius: 999px; background: var(--hm-pill-off); color: var(--hm-pill-off-text); transition: all 0.5s 0.2s; }
.is-visible .hm-pill--on { background: var(--lime); color: var(--hm-forest); transition-delay: 2.2s; }
.hm-gauge-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.hm-gauge-steps div { background: var(--surface-2); border-radius: 14px; padding: 12px; text-align: center; font-size: 13px; line-height: 1.35; color: var(--muted); }
.hm-gauge-steps b { display: block; font: 700 15px var(--font-display); color: var(--ink); margin-bottom: 2px; }

/* 02 metabolic */
.hm-meta { --c: var(--teal); --c-ink: var(--teal-text); background: var(--hm-meta-bg); }
.hm-chart-card { background: var(--surface); border-radius: var(--radius-lg); padding: 26px 22px 20px; box-shadow: var(--hm-shadow); position: relative; }
.hm-chart-card h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.hm-chart-card h3 small { font: 500 12px var(--font-body); color: var(--muted); }
.hm-legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 10px 0 4px; }
.hm-legend span { display: inline-flex; align-items: center; gap: 7px; }
.hm-legend i { width: 18px; height: 4px; border-radius: 2px; display: inline-block; }
.hm-chart { width: 100%; display: block; direction: ltr; }
.hm-chart .grid { stroke: var(--ink); stroke-opacity: 0.08; }
.hm-chart .range-label { fill: var(--teal-text); font-family: var(--font-body); font-size: 16px; font-weight: 600; }
.hm-chart .meal { fill: var(--muted); font-family: var(--font-display); font-size: 19px; font-weight: 600; }
.hm-chart .draw { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.6s var(--ease); }
.hm-chart .draw--b { transition-delay: 0.9s; }
.is-visible .hm-chart .draw { stroke-dashoffset: 0; }
.hm-meter { position: absolute; width: 132px; bottom: -40px; inset-inline-end: -14px; border-radius: 20px; border: 5px solid var(--surface); box-shadow: var(--hm-shadow); transform: rotate(6deg); display: none; }
[dir="rtl"] .hm-meter { transform: rotate(-6deg); }
.hm-care { display: flex; gap: 14px; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(50, 164, 141, 0.3); max-width: 560px; font-size: 15px; }
.hm-care svg { width: 24px; height: 24px; flex: none; color: var(--teal-text); margin-top: 2px; }
.hm-care strong { color: var(--ink); font-family: var(--font-display); }
.hm-also { font-size: 14.5px; color: var(--muted); margin-top: 14px; }
.hm-cta-row { margin-top: 28px; }

/* 03 cancer (dark in both themes) */
.hm-cancer { --c: var(--hm-rose); --c-ink: var(--rose-text); background: var(--hm-cancer-bg); color: var(--text); }
.hm-cancer h2 { color: var(--ink); }
.hm-cancer .hm-lead { color: var(--text); }
.hm-cancer .hm-lead strong { color: var(--ink); }
.hm-ring-wrap { position: relative; max-width: 440px; margin-inline: auto; width: 100%; display: none; }
.hm-ring { width: 100%; display: block; overflow: visible; direction: ltr; }
.hm-ring .seg { fill: none; stroke-width: 34; stroke: var(--hm-ring-off); transition: stroke 0.4s, stroke-width 0.4s; }
.hm-ring .seg.is-on { stroke: var(--hm-rose); stroke-width: 40; }
.hm-ring .lbl { font: 700 16px var(--font-display); fill: var(--hm-ring-lbl); transition: fill 0.4s; text-anchor: middle; dominant-baseline: central; }
.hm-ring-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; pointer-events: none; }
.hm-ring-center div { max-width: 150px; }
.hm-ring .lbl.is-on { fill: #fff; }
.hm-ring-center b { display: block; font: 700 22px/1.1 var(--font-display); color: var(--ink); }
.hm-ring-center span { font-size: 13px; color: var(--muted); line-height: 1.35; display: block; margin-top: 6px; }
.hm-pillars { display: grid; gap: 12px; margin: 30px 0; }
.hm-pillar { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--hm-panel); border: 1px solid var(--line); transition: background 0.35s, border-color 0.35s, transform 0.35s var(--ease), opacity 0.9s var(--ease); }
.hm-pillar.is-on, .hm-pillar:hover { background: rgba(224, 87, 125, 0.1); border-color: rgba(224, 87, 125, 0.5); }
.hm-pillar.is-on.is-visible, .hm-pillar.is-visible:hover { transform: translateX(4px); }
[dir="rtl"] .hm-pillar.is-on.is-visible, [dir="rtl"] .hm-pillar.is-visible:hover { transform: translateX(-4px); }
.hm-pillar__n { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font: 700 16px var(--font-display); background: rgba(224, 87, 125, 0.18); color: var(--rose-text); }
.hm-pillar.is-on .hm-pillar__n { background: var(--hm-rose); color: #fff; }
.hm-pillar h3 { color: var(--ink); font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.hm-pillar p { font-size: 15px; line-height: 1.55; color: var(--muted); }
[lang="ar"] .hm-pillar p { line-height: 1.8; }
.hm-pillar p em { color: var(--rose-text); font-style: normal; font-weight: 600; }
.hm-onc-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 18px; background: var(--hm-panel); border: 1px solid var(--line-strong); font-size: 15px; margin-bottom: 28px; }
.hm-onc-note svg { width: 24px; height: 24px; flex: none; color: var(--hm-rose); margin-top: 2px; }
.hm-onc-note strong { color: var(--ink); font-family: var(--font-display); }

/* ---------- meet Mousa ---------- */
.hm-meet { padding: 96px 0; background: var(--bg); position: relative; overflow: hidden; scroll-margin-top: 70px; }
.hm-meet::before { content: ""; position: absolute; width: 700px; height: 700px; border-radius: 50%; background: radial-gradient(circle, var(--lime-tint), transparent 65%); inset-inline-start: -260px; top: -160px; z-index: 0; }
.hm-meet .hm-wrap { position: relative; }
.hm-meet__grid { display: grid; gap: 56px; align-items: center; }
.hm-meet__photos { position: relative; max-width: 460px; width: 100%; margin-inline: auto; padding-bottom: 70px; }
.hm-meet__photos .hm-arch { width: 100%; border-radius: 260px 260px 30px 30px; }
.hm-meet__inset { position: absolute; width: 56%; inset-inline-end: -6%; bottom: 0; border-radius: 22px; overflow: hidden; border: 6px solid var(--surface); box-shadow: var(--hm-shadow); }
.hm-meet__inset img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; object-position: 50% 30%; }
.hm-meet__inset figcaption { position: absolute; inset: auto 0 0; padding: 8px 12px; background: linear-gradient(transparent, rgba(0, 0, 0, 0.7)); color: #fff; font: 600 12px var(--font-display); }
.hm-meet .hm-eyebrow { color: var(--accent-text); }
.hm-meet h2 { font-family: var(--font-display); font-size: clamp(40px, 6vw, 64px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; margin: 14px 0 6px; color: var(--ink); }
.hm-meet__role { font: 500 18px var(--font-display); color: var(--accent-text); margin-bottom: 22px; }
.hm-meet__bio { font-size: 17.5px; max-width: 580px; }
.hm-meet__bio + .hm-meet__bio { margin-top: 14px; }
.hm-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 28px 0; max-width: 580px; }
.hm-facts div { padding: 16px 12px; border-radius: 16px; background: var(--surface-2); text-align: center; }
.hm-facts b { display: block; font: 700 24px var(--font-display); color: var(--ink); line-height: 1.1; }
.hm-facts span { font-size: 12.5px; color: var(--muted); line-height: 1.3; display: block; margin-top: 4px; }
.hm-creds { display: grid; gap: 10px; max-width: 580px; }
.hm-creds li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 15.5px; line-height: 1.4; }
.hm-creds li svg { width: 22px; height: 22px; flex: none; color: var(--accent-text); margin-top: 1px; }
.hm-creds small { display: block; font-weight: 500; color: var(--muted); font-size: 13.5px; }
.hm-certs { margin-top: 72px; }
.hm-certs__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 20px; }
.hm-certs__head h3 { font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 32px); font-weight: 700; color: var(--ink); }
.hm-certs__head p { color: var(--muted); font-size: 14px; }
.hm-cert-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 2px 18px; scrollbar-width: thin; }
.hm-cert { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px; cursor: zoom-in; text-align: start; font: inherit; color: inherit; transition: transform 0.35s var(--ease), box-shadow 0.35s; }
.hm-cert:hover { transform: translateY(-4px); box-shadow: var(--hm-shadow); }
.hm-cert img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 20%; border-radius: 10px; background: var(--surface-2); }
.hm-cert span { display: block; font: 600 13.5px/1.3 var(--font-display); color: var(--ink); margin-top: 10px; }
.hm-cert small { display: block; font-size: 12px; color: var(--muted); }
.hm-cert--press { background: var(--hm-forest); border-color: var(--hm-forest); }
.hm-cert--press span { color: #fff; }
.hm-cert--press small { color: var(--lime); }

/* ---------- how it works ---------- */
.hm-how { padding: 96px 0; background: var(--surface-2); }
.hm-how h2 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); font-weight: 700; line-height: 1.1; color: var(--ink); text-align: center; margin: 12px 0 48px; }
.hm-how h2 .hm-serif { color: var(--accent-text); }
.hm-how .hm-eyebrow { color: var(--accent-text); display: flex; justify-content: center; }
.hm-steps { display: grid; gap: 18px; counter-reset: hm-s; }
.hm-step { background: var(--surface); border-radius: var(--radius); padding: 28px 26px; position: relative; box-shadow: var(--hm-soft-shadow); }
.hm-step::before { counter-increment: hm-s; content: "0" counter(hm-s); font: 800 50px/1 var(--font-display); color: var(--lime); display: block; margin-bottom: 14px; }
.hm-step h3 { font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.hm-step p { font-size: 15.5px; color: var(--muted); }
.hm-how__links { display: flex; flex-wrap: wrap; gap: 10px 26px; justify-content: center; margin-top: 36px; }
.hm-how__links a { display: inline-flex; align-items: center; gap: 8px; font: 600 15px var(--font-display); color: var(--accent-text); text-decoration: none; }
.hm-how__links svg { width: 16px; height: 16px; }

/* ---------- final call to action ---------- */
.hm-final { background: var(--hm-forest); color: #c3d3ca; padding: 96px 0; text-align: center; position: relative; overflow: hidden; isolation: isolate; scroll-margin-top: 70px; }
.hm-final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(700px 400px at 50% 120%, rgba(157, 202, 0, 0.28), transparent 70%); }
.hm-final h2 { color: #fff; font-family: var(--font-display); font-size: clamp(38px, 6.5vw, 72px); font-weight: 700; line-height: 1.08; letter-spacing: -0.02em; max-width: 900px; margin: 0 auto 18px; }
.hm-final h2 .hm-serif { color: var(--lime); }
.hm-final__text { max-width: 560px; margin: 0 auto 34px; font-size: 18px; }
.hm-final__row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.hm-final__row svg { width: 20px; height: 20px; }
.hm-final__disclaimer { margin: 44px auto 0; font-size: 13px; color: #88a093; max-width: 680px; }

/* ---------- larger screens ---------- */
@media (min-width: 720px) {
  .hm-door p { display: block; }
  .hm-gauge-card { padding: 40px 40px 32px; }
  .hm-steps { grid-template-columns: repeat(3, 1fr); }
  .hm-meter { display: block; }
}
@media (min-width: 980px) {
  .hm-hero { padding-top: 80px; }
  .hm-hero__grid { grid-template-columns: 1.25fr 0.75fr; }
  .hm-hero__portrait { display: block; margin-bottom: -10px; }
  .hm-who { display: none; }
  .hm-doors { grid-template-columns: repeat(3, 1fr); gap: 18px; padding-bottom: 70px; }
  .hm-door { grid-template-columns: 1fr; align-content: start; padding: 28px; min-height: 250px; }
  .hm-door__go { position: absolute; inset-inline-end: 24px; top: 28px; }
  .hm-door h2 { font-size: 23px; }
  .hm-chapter { padding: 104px 0; }
  .hm-chapter__grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .hm-meta .hm-chart-wrap { order: -1; }
  .hm-cancer .hm-chapter__grid { grid-template-columns: 0.85fr 1.15fr; align-items: start; }
  .hm-ring-wrap { position: sticky; top: 110px; display: block; }
  .hm-meet__grid { grid-template-columns: 0.9fr 1.1fr; gap: 90px; }
  .hm-cert-row { grid-auto-columns: calc((100% - 80px) / 6); overflow: visible; }
}

/* screenshots (?shot) and reduced motion: show everything in its final state */
html.hm-shot *, html.hm-shot *::before, html.hm-shot *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hm-halo, .hm-ask span { animation: none; }
  .hm-chart .draw { stroke-dashoffset: 0; transition: none; }
  .hm-gauge .needle { transform: rotate(68deg); transition: none; }
  .hm-pill--on { background: var(--lime); color: var(--hm-forest); }
}
@media (max-width: 480px) {
  .hm-gauge-steps { gap: 8px; }
  .hm-gauge-steps div { padding: 10px 6px; font-size: 12.5px; }
  .hm-gauge-steps b { font-size: 14px; white-space: nowrap; }
}

/* =========================================================================
   Services page (same visual language as the homepage)
   ========================================================================= */
.hm-hero--page { padding-bottom: 0; }
.hm-hero--page h1 { font-size: clamp(40px, 6.4vw, 76px); }
.hm-hero--page .hm-hero__grid { align-items: center; }
.hm-hero--page .hm-arch { width: 380px; }
.hm-hero--page .hm-doors { margin-top: 40px; }
.hm-door__price { display: block; margin-top: 10px; font: 700 14px var(--font-display); color: var(--c-text); }

/* photo card with a floating chip */
.hm-photo { position: relative; max-width: 520px; width: 100%; margin-inline: auto; }
.hm-photo__img { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--hm-shadow); aspect-ratio: 5 / 4; }
.hm-photo__img img { width: 100%; height: 100%; object-fit: cover; }
.hm-photo__chip { position: absolute; inset-inline-start: -14px; bottom: -22px; max-width: 78%; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; display: flex; align-items: center; gap: 12px; box-shadow: var(--hm-shadow); font: 600 14px/1.3 var(--font-display); }
.hm-photo__chip small { display: block; font: 500 12px var(--font-body); color: var(--muted); }
.hm-photo__chip .hm-badge__dot { background: var(--c); color: var(--hm-forest); }
.hm-cancer .hm-photo__chip .hm-badge__dot { color: #fff; }
.hm-photo__inset { position: absolute; width: 34%; inset-inline-end: -12px; top: -22px; border-radius: 18px; border: 5px solid var(--surface); box-shadow: var(--hm-shadow); transform: rotate(5deg); }
[dir="rtl"] .hm-photo__inset { transform: rotate(-5deg); }
.hm-side { display: grid; gap: 56px; align-content: start; }

/* benefit tiles */
.hm-benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 26px 0; max-width: 560px; }
.hm-benefits div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-size: 14px; line-height: 1.4; color: var(--muted); }
.hm-benefits b { display: block; font: 700 16px var(--font-display); color: var(--ink); margin-bottom: 2px; }
.hm-benefits svg { width: 22px; height: 22px; color: var(--c-ink); margin-bottom: 8px; }

/* phases */
.hm-phases { display: grid; gap: 10px; margin: 26px 0; max-width: 560px; counter-reset: hm-ph; }
.hm-phases li { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.hm-phases li::before { counter-increment: hm-ph; content: counter(hm-ph); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--c); color: var(--hm-forest); font: 700 15px var(--font-display); }
.hm-phases b { display: block; font: 700 16px var(--font-display); color: var(--ink); }
.hm-phases span { font-size: 14.5px; color: var(--muted); }
.hm-subhead { font: 700 15px var(--font-display); letter-spacing: 0.1em; text-transform: uppercase; color: var(--c-ink); margin-top: 30px; }
[lang="ar"] .hm-subhead { font-size: 17px; }

/* condition chips */
.hm-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.hm-chips li { padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); font: 600 14px var(--font-display); color: var(--ink); }
.hm-cancer .hm-chips li { background: var(--hm-panel); }
.hm-chips b { color: var(--c-ink); }

/* what we track */
.hm-track { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 24px 0; max-width: 560px; }
.hm-track div { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 10px; text-align: center; font: 600 13.5px/1.3 var(--font-display); color: var(--ink); }
.hm-track svg { width: 22px; height: 22px; color: var(--c-ink); margin: 0 auto 6px; }

/* plan / price card */
.hm-plan { background: var(--surface); border-radius: var(--radius-lg); padding: 28px 26px; box-shadow: var(--hm-shadow); border-top: 5px solid var(--c); max-width: 520px; width: 100%; margin-inline: auto; }
.hm-cancer .hm-plan { background: var(--hm-panel); border: 1px solid var(--line-strong); border-top: 5px solid var(--c); box-shadow: none; }
.hm-plan__name { font: 700 22px var(--font-display); color: var(--ink); }
.hm-plan__sub { font: 600 12.5px var(--font-display); letter-spacing: 0.12em; text-transform: uppercase; color: var(--c-ink); margin-top: 2px; }
[lang="ar"] .hm-plan__sub { font-size: 14px; }
.hm-plan__price { display: flex; align-items: flex-start; gap: 2px; margin: 16px 0 2px; color: var(--ink); font-family: var(--font-display); direction: ltr; }
[dir="rtl"] .hm-plan__price { justify-content: flex-end; }
.hm-plan__price .cur { font-size: 22px; font-weight: 600; margin-top: 8px; }
.hm-plan__price .num { font-size: 58px; font-weight: 800; line-height: 1; letter-spacing: -0.03em; }
.hm-plan__price .cents { font-size: 22px; font-weight: 700; margin-top: 6px; }
.hm-plan__note { font-size: 14px; color: var(--muted); }
.hm-plan ul { display: grid; gap: 10px; margin: 20px 0 24px; padding-top: 20px; border-top: 1px dashed var(--line-strong); }
.hm-plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink); }
.hm-plan li svg { width: 20px; height: 20px; flex: none; color: var(--c-ink); margin-top: 2px; }
.hm-plan .hm-btn { width: 100%; }

/* small links row inside chapters */
.hm-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 18px; }
.hm-links a { display: inline-flex; align-items: center; gap: 8px; font: 600 14.5px var(--font-display); color: var(--c-ink); text-decoration: none; }
.hm-links svg { width: 16px; height: 16px; }

/* research note (cancer) */
.hm-note { font-size: 15px; color: var(--muted); max-width: 600px; margin-bottom: 18px; }

/* stories section heading */
.hm-stories-head { text-align: center; margin-bottom: 36px; }
.hm-stories-head .hm-eyebrow { color: var(--accent-text); display: flex; justify-content: center; }
.hm-stories-head h2 { font-family: var(--font-display); font-size: clamp(32px, 4.6vw, 48px); font-weight: 700; color: var(--ink); margin-top: 10px; }
.hm-stories-head h2 .hm-serif { color: var(--accent-text); }

@media (min-width: 980px) {
  .hm-hero--page { padding-top: 72px; }
  .hm-chapter__grid--top { align-items: start; }
  .hm-sticky { position: sticky; top: 110px; }
}
@media (max-width: 979px) {
  .hm-hero--page .hm-doors { margin-top: 28px; }
}
@media (max-width: 480px) {
  .hm-track { grid-template-columns: repeat(2, 1fr); }
  .hm-benefits { grid-template-columns: 1fr 1fr; }
  .hm-photo__chip { inset-inline-start: 8px; }
  .hm-photo__inset { inset-inline-end: 6px; }
}
