/* =========================================================================
   SLIM DIET — the website's shared stylesheet.
   -------------------------------------------------------------------------
   One stylesheet for every page on drslimcare.com: the six static pages
   and the blog. The calculator has its own (calculator.css), and so does
   the blog's article typography (blog.css); everything else is here.

   The visual language is the customer app's (app.drslimcare.com): navy for
   the brand and every solid button, teal for focus, selection and accents,
   white cards on a cool off-white page, IBM Plex Sans Arabic for both
   scripts. The colours below are the handoff's tokens, word for word.
   Change a colour here and it changes everywhere; nothing else in the
   site should name a raw hex value except the two data: URIs for the mark.

   Cache: every page links this file as site.css?v=<hash of this file>.
   After editing it, run  php tools/stamp-assets.php  so the pages ask for
   the new version; the check script in CLAUDE.md fails until you do.

   RTL: only logical properties (margin-inline, inset-inline-start, ...).
   Never left/right. Arabic gets no letter-spacing — see the end of file.
   ========================================================================= */

:root{
  /* --- colour, from the handoff ------------------------------------------ */
  --navy:        #162D4D;   /* primary: brand, headings, solid buttons      */
  --navy-strong: #0B1A2E;   /* hover on navy, the footer                     */
  --teal:        #167D8D;   /* accent: focus ring, selected states, icons    */
  --teal-text:   #126B78;   /* accent as text: links, eyebrows (5.9:1)      */
  --bg:          #F6F8FB;   /* page                                          */
  --card:        #FFFFFF;   /* cards                                         */
  --surface:     #EEF2F7;   /* secondary surface: bands, chips, wells        */
  --muted:       #5C6B80;   /* secondary text (5.1:1 on --bg)                */
  --border:      #E2E8F0;   /* hairlines and card edges                      */
  --input:       #8291A7;   /* input borders. The handoff's #94A3B8 darkened  */
                            /* to the lightest slate with 3:1 against white  */
                            /* and the page: a field's edge is how you find  */
                            /* it (WCAG 1.4.11 non-text contrast).           */
  --error:       #B42318;   /* validation                                    */

  /* derived, used sparingly */
  --ink:         #1C2B40;   /* body text: navy, a step lighter than headings */
  --teal-tint:   #E7F3F5;   /* selected fills, icon discs                    */
  --on-dark:     #C9D4E3;   /* secondary text on navy                        */

  /* --- type --------------------------------------------------------------- */
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* --- shape and space: a 4px scale ------------------------------------- */
  --r-control: 10px;
  --r-card:    16px;
  --r-card-sm: 14px;
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px;
  --s8: 32px; --s10: 40px; --s12: 48px; --s16: 64px; --s20: 80px; --s24: 96px;

  --shadow-sm: 0 1px 2px rgba(11,26,46,.06);
  --shadow:    0 1px 2px rgba(11,26,46,.05), 0 8px 24px rgba(11,26,46,.07);

  --wrap: 1120px;
  --gut:  clamp(16px, 4vw, 32px);
  --hdr:  64px;
  --rhythm: clamp(56px, 8vw, 96px);

  /* The branch, from assets/logo.svg: the same path the site has always
     drawn, in white so it can sit in the navy tile the app uses. */
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='491 280 397 501'%3E%3Cpath fill='%23FFFFFF' stroke='%23FFFFFF' stroke-width='9' stroke-linejoin='round' fill-rule='evenodd' d='M 680,471 L 654,477 L 638,486 L 627,496 L 616,512 L 608,530 L 604,546 L 603,566 L 607,557 L 617,545 L 631,537 L 642,534 L 657,527 L 669,518 L 679,507 L 689,492 L 699,473 L 699,471 L 681,471 Z M 786,286 L 777,306 L 756,341 L 738,364 L 723,379 L 696,399 L 679,408 L 652,419 L 626,427 L 625,426 L 641,411 L 648,402 L 659,380 L 662,367 L 663,350 L 661,333 L 655,317 L 648,358 L 642,374 L 633,388 L 610,410 L 564,441 L 543,457 L 519,480 L 507,496 L 500,510 L 497,520 L 497,543 L 500,552 L 509,567 L 541,604 L 555,625 L 561,638 L 565,652 L 566,680 L 559,707 L 549,727 L 531,751 L 506,775 L 524,766 L 545,752 L 573,726 L 582,715 L 592,699 L 599,682 L 602,668 L 601,646 L 598,636 L 591,622 L 580,608 L 537,566 L 526,551 L 520,539 L 517,526 L 517,514 L 522,498 L 528,489 L 544,474 L 576,457 L 619,441 L 669,425 L 731,408 L 767,400 L 824,383 L 856,368 L 872,357 L 882,348 L 842,367 L 814,377 L 725,399 L 724,397 L 740,381 L 752,366 L 770,337 L 783,306 L 786,287 Z'/%3E%3C/svg%3E");
}

/* ============================ BASE ======================================= */
*, *::before, *::after{ box-sizing:border-box; }
/* An author rule that sets display beats the browser's own [hidden] rule, so
   anything toggled with the hidden attribute needs this to stay hidden. */
[hidden]{ display:none !important; }

html{
  -webkit-text-size-adjust:100%; text-size-adjust:100%;
  scroll-behavior:smooth;
  scroll-padding-top:calc(var(--hdr) + 16px);
}
body{
  margin:0;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--font);
  font-size:16px;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
@media (min-width:768px){ body{ font-size:17px; } }

img, svg{ max-width:100%; }
img{ display:block; height:auto; }
a{ color:var(--teal-text); text-underline-offset:3px; text-decoration-thickness:1px; }
a:hover{ color:var(--navy); }
button{ font:inherit; color:inherit; }
p{ margin:0 0 1em; }
p:last-child{ margin-bottom:0; }
ul, ol{ margin:0; padding:0; }

h1, h2, h3, h4{
  font-family:var(--font);
  color:var(--navy);
  margin:0;
  line-height:1.15;
  font-weight:700;
  letter-spacing:-0.015em;
  text-wrap:balance;
}
h1{ font-size:clamp(2rem, 4.6vw, 3.25rem); letter-spacing:-0.025em; }
h2{ font-size:clamp(1.6rem, 3.2vw, 2.35rem); }
h3{ font-size:clamp(1.08rem, 1.6vw, 1.22rem); font-weight:600; line-height:1.3; }
html[lang="ar"] h1, html[lang="ar"] h2, html[lang="ar"] h3, html[lang="ar"] h4{ line-height:1.4; }

/* The focus ring: teal, with a gap so it reads against any surface. */
:focus-visible{
  outline:3px solid var(--teal);
  outline-offset:2px;
  border-radius:4px;
}
.on-dark :focus-visible{ outline-color:#7FD3DD; }

/* ============================ UTILITIES ================================== */
.sr-only{
  position:absolute !important; width:1px; height:1px; padding:0; margin:-1px;
  overflow:hidden; clip:rect(0 0 0 0); clip-path:inset(50%); white-space:nowrap; border:0;
}
.skip{
  position:absolute; inset-inline-start:var(--s4); top:-100px; z-index:100;
  background:var(--navy); color:#fff; padding:var(--s3) var(--s4);
  border-radius:var(--r-control); font-weight:600; text-decoration:none;
}
.skip:focus{ top:var(--s3); color:#fff; }

/* A number whose two ends carry meaning — a range, a phone number — keeps its
   order inside Arabic text and never breaks across two lines. See trap 13 in
   CLAUDE.md: in an RTL paragraph 18.5–24.9 otherwise comes out 24.9–18.5. */
.num{ direction:ltr; unicode-bidi:isolate; white-space:nowrap; font-variant-numeric:tabular-nums; }

.wrap{ max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gut); }
.section{ padding-block:var(--rhythm); }
.section + .section{ padding-top:0; }
.section-alt{ background:var(--card); border-block:1px solid var(--border); }
.section-alt + .section{ padding-top:var(--rhythm); }

.section-head{ max-width:44rem; margin-bottom:clamp(28px, 4vw, 44px); }
.section-head.center{ margin-inline:auto; text-align:center; }
.eyebrow{
  display:inline-block;
  font-size:.92rem; font-weight:600; color:var(--teal-text);
  margin-bottom:var(--s3);
}
.section-head h2 + .lede, .section-head h1 + .lede{ margin-top:var(--s4); }
.lede{ font-size:clamp(1.05rem, 1.4vw, 1.18rem); color:var(--muted); max-width:40em; }
.muted{ color:var(--muted); }
.small{ font-size:.9rem; }

/* a text link with an arrow that turns with the language */
.link-arrow{
  display:inline-flex; align-items:center; gap:6px;
  font-weight:600; color:var(--teal-text); text-decoration:none;
  min-height:44px;
}
.link-arrow::after{ content:'→'; transition:transform .2s ease; }
html[dir="rtl"] .link-arrow::after{ content:'←'; }
.link-arrow:hover{ color:var(--navy); text-decoration:underline; }
.link-arrow:hover::after{ transform:translateX(3px); }
html[dir="rtl"] .link-arrow:hover::after{ transform:translateX(-3px); }

/* ============================ BUTTONS ==================================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:var(--s2);
  min-height:48px; padding:12px 22px;
  font-family:var(--font); font-size:1rem; font-weight:600; line-height:1.25;
  text-align:center; text-decoration:none; cursor:pointer;
  border:1px solid transparent; border-radius:var(--r-control);
  transition:background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}
.btn svg{ width:20px; height:20px; flex:none; }
.btn-primary{ background:var(--navy); color:#fff; }
.btn-primary:hover{ background:var(--navy-strong); color:#fff; }
.btn-secondary{ background:var(--card); color:var(--navy); border-color:var(--input); }
.btn-secondary:hover{ border-color:var(--navy); color:var(--navy); background:var(--card); }
.btn-ghost{ background:transparent; color:var(--navy); border-color:var(--border); }
.btn-ghost:hover{ background:var(--surface); color:var(--navy); }
.btn-sm{ min-height:44px; padding:9px 16px; font-size:.95rem; }
.btn-block{ display:flex; width:100%; }
.on-dark .btn-primary{ background:#fff; color:var(--navy); }
.on-dark .btn-primary:hover{ background:var(--teal-tint); color:var(--navy-strong); }
.on-dark .btn-secondary{ background:transparent; color:#fff; border-color:rgba(255,255,255,.55); }
.on-dark .btn-secondary:hover{ border-color:#fff; background:rgba(255,255,255,.08); color:#fff; }
.btn-row{ display:flex; flex-wrap:wrap; gap:var(--s3); align-items:center; }

/* ============================ FORM CONTROLS ============================== */
/* Shared by the calculator (index.html, bmi.html) and the request-contact
   form (start.html). Phones: 16px or larger, or iOS zooms the page into the
   field, and at least 44px tall. */
.field{ display:flex; flex-direction:column; gap:6px; min-width:0; border:0; margin:0; padding:0; }
.field > label, .field > legend{ font-weight:600; color:var(--navy); font-size:.95rem; padding:0; }
.input{
  width:100%; min-height:48px; padding:10px 14px;
  font-family:var(--font); font-size:1.05rem; color:var(--navy);
  background:var(--card); border:1px solid var(--input); border-radius:var(--r-control);
  -webkit-appearance:none; appearance:none;
}
.input:hover{ border-color:var(--navy); }
.input:focus{ outline:none; border-color:var(--teal); box-shadow:0 0 0 3px rgba(22,125,141,.28); }
.input[aria-invalid="true"]{ border-color:var(--error); }
.input[aria-invalid="true"]:focus{ box-shadow:0 0 0 3px rgba(180,35,24,.22); }
.field-error{
  margin:0; color:var(--error); font-size:.9rem; font-weight:500; line-height:1.4;
  display:flex; gap:6px; align-items:flex-start;
}
.field-error::before{
  content:'!'; flex:none; display:inline-grid; place-items:center;
  width:18px; height:18px; margin-top:1px; border-radius:50%;
  background:var(--error); color:#fff; font-size:.75rem; font-weight:700;
}

/* ============================ HEADER ===================================== */
.site-header{
  position:sticky; top:0; z-index:50;
  background:rgba(246,248,251,.94);
  -webkit-backdrop-filter:saturate(1.4) blur(10px);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid transparent;
  transition:border-color .2s ease;
}
.site-header.stuck, .site-header.menu-open{ border-bottom-color:var(--border); }
.hdr-in{
  max-width:var(--wrap); margin-inline:auto; padding-inline:var(--gut);
  min-height:var(--hdr);
  display:flex; align-items:center; gap:clamp(12px, 2vw, 28px);
}

.brand{
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none; color:var(--navy); flex:none;
  min-height:44px;
}
.brand-tile{
  display:inline-grid; place-items:center;
  width:36px; height:36px; border-radius:10px; background:var(--navy); flex:none;
}
.mark{ display:block; width:20px; height:25px; background:var(--mark) center/contain no-repeat; }
.brand-name{ font-weight:700; font-size:1.15rem; letter-spacing:-0.01em; white-space:nowrap; color:var(--navy); }
.brand:hover .brand-name{ color:var(--navy-strong); }

.nav-desktop{ display:flex; align-items:center; gap:clamp(16px, 2vw, 28px); margin-inline-start:var(--s4); }
.nav-desktop a{
  color:var(--ink); text-decoration:none; font-weight:500; font-size:.97rem; white-space:nowrap;
  padding-block:10px; border-bottom:2px solid transparent;
}
.nav-desktop a:hover{ color:var(--navy); border-bottom-color:var(--teal); }
.nav-desktop a[aria-current="page"]{ color:var(--navy); border-bottom-color:var(--teal); font-weight:600; }

.hdr-actions{ display:flex; align-items:center; gap:var(--s3); margin-inline-start:auto; }
.hdr-login{
  color:var(--navy); font-weight:600; font-size:.97rem; text-decoration:none; white-space:nowrap;
  min-height:44px; display:inline-flex; align-items:center; padding-inline:4px;
}
.hdr-login:hover{ text-decoration:underline; color:var(--navy); }
.hdr-cta{ white-space:nowrap; }

/* the language switch: a button on the static pages, a link on the blog */
.langbtn{
  display:inline-flex; align-items:center; justify-content:center;
  min-height:44px; min-width:44px; padding:8px 14px;
  font-family:var(--font); font-size:.95rem; font-weight:600; color:var(--navy);
  background:var(--card); border:1px solid var(--border); border-radius:var(--r-control);
  cursor:pointer; text-decoration:none; white-space:nowrap;
}
.langbtn:hover{ border-color:var(--input); color:var(--navy); }

.menubtn{
  display:none;
  width:44px; height:44px; padding:0; place-items:center;
  background:var(--card); border:1px solid var(--border); border-radius:var(--r-control);
  color:var(--navy); cursor:pointer;
}
.menubtn svg{ width:22px; height:22px; }
.menubtn .i-close{ display:none; }
.menubtn[aria-expanded="true"] .i-open{ display:none; }
.menubtn[aria-expanded="true"] .i-close{ display:block; }

/* The phone menu. With JavaScript it is a disclosure behind the menu button;
   without it (no .js on <html>) the links simply show under the header row,
   so the site can still be walked with scripts off. */
.mmenu{ display:none; }
.mmenu ul{ list-style:none; }
.mmenu li a{
  display:flex; align-items:center; min-height:48px;
  padding-inline:var(--s2); border-bottom:1px solid var(--border);
  color:var(--navy); font-weight:600; text-decoration:none; font-size:1.02rem;
}
.mmenu li a:hover{ background:var(--surface); }
.mmenu li a[aria-current="page"]{ color:var(--teal-text); }
.mmenu .btn{ margin-top:var(--s3); }
.mmenu .btn + .btn{ margin-top:var(--s2); }

@media (max-width:1023px){
  .nav-desktop, .hdr-login, .hdr-cta{ display:none; }
  .js .menubtn{ display:inline-grid; }
  .mmenu{
    display:block;
    max-width:var(--wrap); margin-inline:auto;
    padding:var(--s2) var(--gut) var(--s5);
  }
  .js .mmenu{
    display:none;
    position:absolute; inset-inline:0; top:100%;
    background:var(--bg); border-bottom:1px solid var(--border);
    box-shadow:0 12px 24px rgba(11,26,46,.08);
    max-height:calc(100vh - var(--hdr)); overflow-y:auto; overscroll-behavior:contain;
  }
  .js .mmenu.open{ display:block; }
}
@media (max-width:420px){
  .brand-name{ font-size:1.05rem; }
  .hdr-actions{ gap:var(--s2); }
  .langbtn{ padding-inline:10px; }
}

/* ============================ ICONS ====================================== */
.ico{
  display:inline-grid; place-items:center; flex:none;
  width:44px; height:44px; border-radius:12px;
  background:var(--teal-tint); color:var(--teal-text);
}
.ico svg{ width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }

/* ============================ CARDS ====================================== */
.card{
  background:var(--card); border:1px solid var(--border); border-radius:var(--r-card);
  padding:clamp(20px, 2.6vw, 28px); box-shadow:var(--shadow-sm);
}
.grid{ display:grid; gap:clamp(14px, 2vw, 22px); }
.grid-2{ grid-template-columns:repeat(2, minmax(0,1fr)); }
.grid-3{ grid-template-columns:repeat(3, minmax(0,1fr)); }
.grid-4{ grid-template-columns:repeat(4, minmax(0,1fr)); }
@media (max-width:959px){ .grid-4{ grid-template-columns:repeat(2, minmax(0,1fr)); } .grid-3{ grid-template-columns:1fr; } }
@media (max-width:639px){ .grid-2, .grid-4{ grid-template-columns:1fr; } }

/* ============================ HERO ======================================= */
.hero{ padding-block:clamp(20px, 4vw, 64px) clamp(48px, 7vw, 88px); }
/* top-aligned: the card grows downwards when a result opens, and the copy
   beside it must stay where it was rather than drift to the new middle */
.hero-grid{
  display:grid; grid-template-columns:minmax(0,1fr) minmax(0, 500px);
  gap:clamp(32px, 5vw, 72px); align-items:start;
}
@media (min-width:960px){ .hero-copy{ padding-top:clamp(16px, 4vw, 56px); } }
.hero-copy h1{ margin-bottom:var(--s4); }
.hero-copy .lede{ color:var(--muted); }
.hero-links{ display:flex; flex-wrap:wrap; gap:var(--s2) var(--s6); margin-top:var(--s4); }
.hero-note{ margin-top:var(--s2); font-size:.9rem; color:var(--muted); }
@media (max-width:959px){
  .hero-grid{ grid-template-columns:minmax(0,1fr); gap:var(--s6); }
  .hero-copy{ max-width:40rem; }
}
@media (max-width:639px){
  .hero{ padding-top:var(--s4); }
  .hero .eyebrow{ font-size:.86rem; margin-bottom:var(--s2); }
  .hero-copy h1{ font-size:clamp(1.6rem, 7.4vw, 2.1rem); margin-bottom:var(--s3); }
  html[lang="ar"] .hero-copy h1{ font-size:clamp(1.5rem, 6.6vw, 1.95rem); }
  .hero-copy .lede{ font-size:1rem; }
  .hero-links{ margin-top:var(--s2); }
}

/* ============================ WHAT YOU GET ================================ */
.pillar{ display:flex; flex-direction:column; gap:var(--s3); }
.pillar h3{ font-size:1.1rem; }
.pillar p{ color:var(--muted); font-size:.98rem; margin:0; }

/* ============================ STEPS ====================================== */
.steps{ list-style:none; counter-reset:step; display:grid; gap:var(--s3); }
.steps-5{ grid-template-columns:repeat(5, minmax(0,1fr)); }
.step{
  counter-increment:step; position:relative;
  background:var(--card); border:1px solid var(--border); border-radius:var(--r-card-sm);
  padding:var(--s5);
}
.step::before{
  content:counter(step);
  display:grid; place-items:center; width:32px; height:32px; border-radius:50%;
  background:var(--navy); color:#fff; font-weight:700; font-size:.92rem;
  margin-bottom:var(--s3);
}
.step h3{ font-size:1.02rem; margin-bottom:6px; }
.step p{ color:var(--muted); font-size:.94rem; margin:0; }
.step .opt{ display:inline-block; margin-top:var(--s2); font-size:.8rem; font-weight:600; color:var(--teal-text);
  background:var(--teal-tint); border-radius:999px; padding:2px 10px; }
@media (max-width:1023px){ .steps-5{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:639px){
  .steps-5{ grid-template-columns:1fr; }
  .step{ display:grid; grid-template-columns:32px minmax(0,1fr); column-gap:var(--s4); padding:var(--s4); }
  .step::before{ grid-row:1 / span 3; margin:0; }
}
.section-foot{ margin-top:clamp(24px, 3vw, 36px); }

/* ============================ APP PREVIEWS ================================
   Drawn in HTML and CSS from the app's own layout, never a screenshot of a
   real account. Every preview carries the "Preview · sample data" label, and
   the drawing itself is aria-hidden: the caption next to it is the content.
   ========================================================================= */
.previews{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:clamp(14px, 2vw, 22px); }
@media (max-width:1023px){ .previews{ grid-template-columns:repeat(2, minmax(0,1fr)); } }
@media (max-width:639px){ .previews{ grid-template-columns:1fr; } }
.preview{ display:flex; flex-direction:column; gap:var(--s3); margin:0; min-width:0; }
.preview figcaption h3{ font-size:1.05rem; margin-bottom:4px; }
.preview figcaption p{ font-size:.94rem; color:var(--muted); margin:0; }
.preview-tag{
  align-self:flex-start;
  font-size:.78rem; font-weight:600; color:var(--muted);
  background:var(--surface); border-radius:999px; padding:3px 10px;
}

.app{
  background:var(--card); border:1px solid var(--border); border-radius:20px;
  box-shadow:var(--shadow); overflow:hidden; font-size:13px; line-height:1.4; color:var(--ink);
}
.app-bar{
  display:flex; align-items:center; gap:8px; padding:10px 12px;
  background:var(--navy); color:#fff;
}
.app-bar .brand-tile{ width:24px; height:24px; border-radius:7px; background:rgba(255,255,255,.12); }
.app-bar .mark{ width:13px; height:16px; }
.app-bar b{ font-size:13px; font-weight:600; }
.app-bar span{ margin-inline-start:auto; font-size:11.5px; color:var(--on-dark); }
.app-body{ padding:12px; display:flex; flex-direction:column; gap:10px; }
.app-days{ display:flex; gap:5px; }
.app-days i{
  flex:1; font-style:normal; text-align:center; font-size:11px; font-weight:600;
  padding:5px 0; border-radius:8px; background:var(--surface); color:var(--muted);
}
.app-days i.on{ background:var(--navy); color:#fff; }
.app-tiles{ display:grid; grid-template-columns:repeat(4, minmax(0,1fr)); gap:5px; }
.app-tiles div{ background:var(--surface); border-radius:8px; padding:6px 4px; text-align:center; }
.app-tiles b{ display:block; font-size:12.5px; color:var(--navy); }
.app-tiles small{ display:block; font-size:10px; color:var(--muted); }
.app-meal{ border:1px solid var(--border); border-radius:10px; padding:8px 10px; }
.app-meal > b{ display:block; font-size:12px; color:var(--navy); margin-bottom:4px; }
.app-item{ display:flex; justify-content:space-between; gap:8px; padding-block:3px; }
.app-item span{ min-width:0; }
.app-item small{ display:block; font-size:10.5px; color:var(--muted); }
.app-item em{ font-style:normal; font-weight:600; color:var(--navy); white-space:nowrap; }

.app-ex{ border:1px solid var(--border); border-radius:10px; padding:10px; }
.app-ex .k{ font-size:10.5px; font-weight:600; color:var(--teal-text); }
.app-ex .n{ font-size:13px; font-weight:600; color:var(--navy); margin:2px 0 6px; }
.app-ex .rx{ display:inline-block; font-size:11px; font-weight:600; border:1px solid var(--border); border-radius:6px; padding:1px 6px; }
.app-sets{ display:grid; gap:4px; margin-top:8px; }
.app-set{ display:grid; grid-template-columns:18px minmax(0,1fr) minmax(0,1fr) 22px; gap:5px; align-items:center; font-size:11.5px; }
.app-set i{ font-style:normal; color:var(--muted); text-align:center; }
.app-set span{ border:1px solid var(--border); border-radius:6px; padding:3px 4px; min-height:24px; text-align:center; white-space:nowrap; }
.app-set .tick{ width:22px; height:22px; border-radius:6px; border:1px solid var(--input); display:grid; place-items:center; }
.app-set.done span{ background:var(--teal-tint); border-color:transparent; color:var(--navy); font-weight:600; }
.app-set.done .tick{ background:var(--teal); border-color:var(--teal); color:#fff; }
.app-rest{ display:inline-flex; align-items:center; gap:6px; align-self:flex-start; font-size:11.5px; font-weight:600;
  background:var(--surface); border-radius:999px; padding:4px 10px; color:var(--navy); }

.app-week{ display:grid; gap:7px; }
.app-row{ display:flex; justify-content:space-between; align-items:center; gap:8px; font-size:12px;
  border-bottom:1px solid var(--border); padding-bottom:7px; }
.app-row:last-child{ border-bottom:0; padding-bottom:0; }
.app-row b{ color:var(--navy); font-weight:600; white-space:nowrap; }
.app-bars{ display:flex; align-items:flex-end; gap:5px; height:56px; padding-top:4px; }
.app-bars i{ flex:1; background:var(--teal); opacity:.85; border-radius:4px 4px 0 0; }
.app-bars i.plan{ background:var(--surface); opacity:1; }
.app-legend{ display:flex; gap:10px; font-size:10.5px; color:var(--muted); }
.app-legend span::before{ content:''; display:inline-block; width:8px; height:8px; border-radius:2px; background:var(--teal); margin-inline-end:4px; }

.app-rate{ display:grid; grid-template-columns:1fr auto; gap:6px 10px; align-items:center; font-size:12px; }
.app-dots{ display:flex; gap:3px; direction:ltr; }
.app-dots i{ width:9px; height:9px; border-radius:50%; background:var(--border); }
.app-dots i.on{ background:var(--teal); }
.app-note{ background:var(--surface); border-radius:10px; padding:8px 10px; font-size:12px; }
.app-reply{ background:var(--teal-tint); border-radius:10px; padding:8px 10px; font-size:12px; }
.app-reply b{ display:block; font-size:11px; color:var(--teal-text); margin-bottom:2px; }

/* ============================ PROGRAMME ================================== */
.programme{
  display:grid; grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);
  gap:clamp(20px, 3vw, 32px); align-items:start;
}
@media (max-width:959px){ .programme{ grid-template-columns:minmax(0,1fr); } }
.incl{ list-style:none; display:grid; gap:var(--s4); margin-top:var(--s5); }
.incl li{ display:grid; grid-template-columns:44px minmax(0,1fr); gap:var(--s4); align-items:start; }
.incl h3{ font-size:1.02rem; margin-bottom:2px; }
.incl p{ margin:0; color:var(--muted); font-size:.96rem; }

/* The action area. Its own block on purpose: when prices, durations or a
   purchase route are approved, they go in here and nothing around it moves.
   See "The programme action area" in CLAUDE.md. */
.action-area{
  background:var(--card); border:1px solid var(--border); border-radius:var(--r-card);
  box-shadow:var(--shadow); padding:clamp(20px, 3vw, 30px);
  display:flex; flex-direction:column; gap:var(--s4);
}
.action-area h2, .action-area h3{ font-size:clamp(1.2rem, 2vw, 1.45rem); }
.action-area p{ margin:0; color:var(--muted); font-size:.96rem; }
.action-area .sub-actions{ display:flex; flex-direction:column; gap:2px; border-top:1px solid var(--border); padding-top:var(--s3); }

/* start.html: the request-contact form, the second way to enquire. It sits
   under the WhatsApp button, folded, so the page's one loud action stays
   WhatsApp; enquiry.js unfolds it. */
.callback{ display:flex; flex-direction:column; gap:var(--s3); }
.callback-or{
  display:flex; align-items:center; gap:var(--s3); margin:0;
  color:var(--muted); font-size:.85rem;
}
.callback-or::before, .callback-or::after{ content:''; flex:1; height:1px; background:var(--border); }
.callback-toggle{
  display:flex; align-items:center; justify-content:space-between; gap:var(--s3);
  width:100%; min-height:48px; padding:10px 14px;
  background:var(--surface); color:var(--navy); border:1px solid var(--border);
  border-radius:var(--r-control); font:inherit; font-weight:600; text-align:start; cursor:pointer;
}
.callback-toggle::after{ content:''; flex:none; width:9px; height:9px; margin-top:-4px;
  /* physical sides on purpose: a down/up chevron must not turn with the
     language, and logical ones turn it sideways in Arabic */
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform:rotate(45deg); transition:transform .2s ease; }
.callback-toggle[aria-expanded="true"]::after{ transform:rotate(225deg); margin-top:4px; }
.callback-toggle:hover{ border-color:var(--input); }
.callback-form{ display:flex; flex-direction:column; gap:var(--s4); }
.callback-phone{ display:grid; grid-template-columns:minmax(0, 8.75rem) minmax(0, 1fr); gap:var(--s2); }
/* side by side the number gets under 100px on the narrowest phones: stack */
@media (max-width:399px){ .callback-phone{ grid-template-columns:minmax(0, 1fr); } }
.callback-cc{
  padding-inline:10px 28px; font-size:1rem; cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23162D4D' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center;
}
/* the arrow sits at the inline end in both languages, so only its picture
   moves; the padding is logical already */
html[dir="rtl"] .callback-cc{ background-position:left 10px center; }
.callback-phone .input[type="tel"]{ direction:ltr; }
html[dir="rtl"] .callback-phone .input[type="tel"]{ text-align:right; }
.callback-hint{ margin:0; font-size:.86rem; color:var(--muted); }
.callback-note{ margin:0; font-size:.86rem; color:var(--muted); }
.callback-fail{ margin:0; padding:10px 12px; border-radius:var(--r-control);
  background:#FDF0EE; color:var(--error); font-size:.92rem; display:flex; flex-direction:column; gap:2px; }
.callback-fail .link-arrow{ color:var(--error); min-height:36px; }
.callback-done{ padding:14px 16px; border-radius:var(--r-control); background:var(--teal-tint); color:var(--navy); }
.callback-done p{ margin:0; color:var(--navy); }
.callback-done p + p{ margin-top:6px; }
.callback-done:focus{ outline:3px solid var(--teal); outline-offset:2px; }
.btn[aria-busy="true"]{ opacity:.7; cursor:progress; }
/* bots fill this in; people never see it. Off the TOP, never off the side:
   pushed sideways it widens the page in Arabic, and clipped in place a
   browser's autofill can still fill it and lose a real person's lead. */
.callback-hp{ position:absolute; top:-9999px; width:1px; height:1px; overflow:hidden; }
/* an open form can be taller than a laptop screen, and a sticky box that
   tall hides its own button */
.pp-aside.form-open{ position:static; }

/* start.html: the description on one side, the action area held beside it
   on a desk; on a phone the action area comes straight after the intro, so
   the enquiry is on the first or second screen, not after every paragraph */
.pp{
  display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr);
  grid-template-areas:"head aside" "body aside";
  gap:clamp(20px, 3vw, 36px) clamp(24px, 4vw, 56px); align-items:start;
  padding-block:clamp(24px, 5vw, 64px) var(--rhythm);
}
.pp-head{ grid-area:head; }
.pp-head .lede{ margin-top:var(--s4); }
.pp-aside{ grid-area:aside; position:sticky; top:calc(var(--hdr) + 20px); }
.pp-body{ grid-area:body; display:flex; flex-direction:column; gap:clamp(36px, 5vw, 56px); }
.pp-body h2{ font-size:clamp(1.35rem, 2.4vw, 1.75rem); }
.pp-more{ margin-top:var(--s4); }
.action-area .small{ margin:0; }
@media (max-width:959px){
  .pp{ grid-template-columns:minmax(0,1fr); grid-template-areas:"head" "aside" "body"; }
  .pp-aside{ position:static; }
}
.steps-2{ grid-template-columns:repeat(2, minmax(0,1fr)); margin-top:var(--s5); }
@media (max-width:639px){
  .steps-2{ grid-template-columns:1fr; }
}
.final-app{ margin:var(--s5) 0 0; }
.final-app a{ color:#fff; font-weight:600; }
.final-app a:hover{ color:#fff; }

/* how.html#demo: a preview and its explanation */
.demo-item figcaption p{ font-size:.98rem; }
.demo-item .app{ max-width:440px; width:100%; }

/* ============================ WHY ======================================== */
.why{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:var(--s5) clamp(20px, 4vw, 48px); }
.why > div{ display:grid; grid-template-columns:44px minmax(0,1fr); gap:var(--s4); align-items:start; }
.why h3{ margin-bottom:4px; }
.why p{ margin:0; color:var(--muted); font-size:.98rem; }
@media (max-width:639px){ .why{ grid-template-columns:1fr; } }

/* ============================ COMING SOON ================================ */
.soon{
  display:grid; grid-template-columns:auto minmax(0,1fr); gap:var(--s4) var(--s5); align-items:center;
  background:var(--surface); border:1px solid var(--border); border-radius:var(--r-card);
  padding:clamp(20px, 3vw, 28px);
}
.soon h2{ font-size:clamp(1.25rem, 2.2vw, 1.5rem); }
.soon p{ margin:6px 0 0; color:var(--muted); max-width:46em; }
.badge{
  display:inline-block; vertical-align:middle;
  font-size:.8rem; font-weight:700; color:var(--teal-text);
  background:var(--card); border:1px solid var(--border); border-radius:999px; padding:3px 12px;
  margin-inline-start:var(--s2);
}
@media (max-width:639px){ .soon{ grid-template-columns:1fr; } }

/* ============================ RESOURCES ================================== */
.res-card{
  display:flex; flex-direction:column; gap:var(--s2); height:100%;
  text-decoration:none; color:inherit;
  transition:border-color .18s ease, box-shadow .18s ease;
}
.res-card:hover{ border-color:var(--teal); box-shadow:var(--shadow); color:inherit; }
.res-card .k{ font-size:.85rem; font-weight:600; color:var(--teal-text); }
.res-card h3{ font-size:1.05rem; }
.res-card p{ margin:0; color:var(--muted); font-size:.94rem; }
.res-card .go{ margin-top:auto; padding-top:var(--s2); font-weight:600; color:var(--teal-text); font-size:.94rem; }

/* ============================ FAQ ========================================
   Native <details>: keyboard-accessible, announces expanded and collapsed by
   itself, and works with scripts off. Nothing to add but the look. */
.faq{ max-width:52rem; border-top:1px solid var(--border); }
.faq details{ border-bottom:1px solid var(--border); }
.faq summary{
  display:flex; align-items:center; justify-content:space-between; gap:var(--s4);
  min-height:56px; padding-block:var(--s4);
  cursor:pointer; list-style:none;
  font-weight:600; color:var(--navy); font-size:1.04rem;
}
.faq summary::-webkit-details-marker{ display:none; }
.faq summary::after{
  content:''; flex:none; width:22px; height:22px; border-radius:50%;
  background:var(--surface) no-repeat center/12px 12px;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M6 1v10M1 6h10' stroke='%23162D4D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq details[open] summary::after{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M1 6h10' stroke='%23162D4D' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
}
.faq summary:hover{ color:var(--teal-text); }
.faq .ans{ padding:0 0 var(--s5); color:var(--ink); max-width:46em; }
.faq .ans p{ margin-bottom:.6em; }
.faq .ans a{ font-weight:600; }

/* ============================ FINAL CTA ================================== */
.final{
  background:var(--navy); color:#fff; border-radius:clamp(16px, 2vw, 22px);
  padding:clamp(28px, 5vw, 56px); text-align:center;
}
.final h2{ color:#fff; }
.final p{ color:var(--on-dark); max-width:36em; margin:var(--s3) auto var(--s6); }
.final .btn-row{ justify-content:center; }

/* ============================ PAGE HEADS ================================= */
.page-head{ padding-block:clamp(28px, 5vw, 64px) clamp(24px, 3vw, 40px); }
.page-head h1{ max-width:22em; }
.page-head .lede{ margin-top:var(--s4); }

/* how.html: the seven moments */
.timeline{ list-style:none; display:grid; gap:var(--s3); counter-reset:tl; max-width:52rem; }
.timeline li{
  counter-increment:tl; display:grid; grid-template-columns:40px minmax(0,1fr); gap:var(--s4);
  background:var(--card); border:1px solid var(--border); border-radius:var(--r-card-sm); padding:var(--s5);
}
.timeline li::before{
  content:counter(tl); display:grid; place-items:center; width:36px; height:36px; border-radius:50%;
  background:var(--navy); color:#fff; font-weight:700;
}
.timeline h3{ margin-bottom:4px; }
.timeline p{ margin:0; color:var(--muted); }
.timeline .opt{ display:inline-block; margin-inline-start:var(--s2); font-size:.78rem; font-weight:600;
  color:var(--teal-text); background:var(--teal-tint); border-radius:999px; padding:1px 9px; vertical-align:middle; }

/* how.html#demo: the bigger previews, two to a row */
.demo-grid{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:clamp(18px, 3vw, 32px); }
@media (max-width:767px){ .demo-grid{ grid-template-columns:1fr; } }
.demo-grid .app{ font-size:13.5px; }
.demo-note{
  margin-bottom:clamp(20px, 3vw, 28px); padding:var(--s4) var(--s5);
  background:var(--surface); border-radius:var(--r-card-sm); border-inline-start:3px solid var(--teal);
}
.demo-note b{ display:block; color:var(--navy); }
.demo-note span{ color:var(--muted); font-size:.95rem; }

/* ============================ PROSE (privacy, terms) ===================== */
.prose{ max-width:46rem; }
.prose h2{ font-size:clamp(1.25rem, 2.2vw, 1.5rem); margin:clamp(32px, 4vw, 44px) 0 var(--s3); }
.prose ul{ padding-inline-start:1.3em; margin:0 0 1em; }
.prose li{ margin-bottom:.5em; }
.prose li::marker{ color:var(--teal); }
.prose .date{ color:var(--muted); font-size:.92rem; margin-top:var(--s3); }
.prose .disc{ margin-top:clamp(32px, 4vw, 44px); padding-top:var(--s5); border-top:1px solid var(--border);
  color:var(--muted); font-size:.92rem; }

/* bmi.html: the explainer under the calculator */
.facts{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:clamp(14px, 2vw, 22px); }
.facts h3{ margin-bottom:6px; }
.facts p{ margin:0; color:var(--muted); font-size:.98rem; }
@media (max-width:767px){ .facts{ grid-template-columns:1fr; } }
.band-table{ width:100%; border-collapse:collapse; margin-top:var(--s4); font-size:.98rem; }
.band-table th, .band-table td{ text-align:start; padding:12px 14px; border-bottom:1px solid var(--border); }
.band-table th{ font-size:.9rem; color:var(--muted); font-weight:600; }
.band-table td:first-child{ font-weight:600; color:var(--navy); }

.cta-band{
  display:grid; grid-template-columns:minmax(0,1fr) auto; gap:var(--s5); align-items:center;
}
.cta-band h2{ font-size:clamp(1.3rem, 2.4vw, 1.7rem); }
.cta-band p{ margin:var(--s2) 0 0; color:var(--muted); }
@media (max-width:767px){ .cta-band{ grid-template-columns:1fr; } }

/* ============================ FOOTER ===================================== */
/* no margin of its own: the last section's padding is the gap */
.site-footer{ background:var(--navy-strong); color:var(--on-dark); }
.site-footer a{ color:#fff; text-decoration:none; }
.site-footer a:hover{ text-decoration:underline; color:#fff; }
.ftr-grid{
  display:grid; grid-template-columns:minmax(0,1.3fr) repeat(3, minmax(0,1fr));
  gap:clamp(24px, 4vw, 48px); padding-block:clamp(40px, 6vw, 64px) var(--s8);
}
.ftr-brand .brand-name{ color:#fff; }
.ftr-brand .brand-tile{ background:rgba(255,255,255,.1); }
.slogan{ margin-top:var(--s3); font-weight:600; color:#fff; }
.ftr-line{ font-size:.92rem; margin-top:var(--s2); }
.ftr-h{ font-size:.86rem; font-weight:600; color:var(--on-dark); margin-bottom:var(--s3); letter-spacing:0; }
.ftr-col ul{ list-style:none; display:grid; gap:2px; }
.ftr-col li a, .ftr-col li button{
  display:inline-flex; align-items:center; min-height:40px; font-size:.97rem;
}
.ftr-lang{
  background:none; border:0; padding:0; color:#fff; cursor:pointer;
  font-family:var(--font); text-decoration:underline; text-underline-offset:3px;
}
.ftr-contact .c{ margin:0 0 var(--s4); }
.ftr-contact .c-k{ display:block; font-size:.86rem; color:var(--on-dark); }
.ftr-contact .c-num{ display:inline-flex; min-height:40px; align-items:center; }
.ftr-contact .c-primary .c-num{ font-weight:700; font-size:1.08rem; }
.ftr-contact .c-secondary .c-num{ font-weight:500; font-size:.97rem; color:var(--on-dark); }
.ftr-contact .c-note{ font-size:.85rem; margin:0; }
.ftr-bottom{
  border-top:1px solid rgba(255,255,255,.12);
  padding-block:var(--s5); font-size:.86rem;
  display:flex; flex-wrap:wrap; justify-content:space-between; gap:var(--s2) var(--s6);
}
@media (max-width:959px){ .ftr-grid{ grid-template-columns:repeat(2, minmax(0,1fr)); } .ftr-brand{ grid-column:1 / -1; } }
@media (max-width:479px){ .ftr-grid{ grid-template-columns:1fr; } }

/* ============================ ARABIC ===================================== */
/* Letter-spacing pulls Arabic letters apart and breaks their joins. Nothing
   in Arabic is tracked, whatever a rule above asked for. */
:lang(ar), :lang(ar) *{ letter-spacing:normal !important; }

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

@media print{
  .site-header, .site-footer, .mmenu, .skip{ display:none !important; }
  body{ background:#fff; }
}
