/* Landing page sections under the hero: Find, Fix, Timing, Everything else, the final call to action, plus light
   restyles of the comparison table and guides headings. Same type, colours and cards as hero/hero.css; classes are
   prefixed hm- so they never meet landing.css. */
.hm {
  --ink: #F2F2EF;
  --ink2: rgba(242, 242, 239, .64);
  --ink3: rgba(242, 242, 239, .42);
  --card: #1E1E1E;
  --sheet: #141414;
  --sec: #9A9A95;
  --mute: #6E6E6A;
  --low-bg: #3D2A1C;
  --low-fg: #ED8B42;
  --ok: #7DD7C2;
  --blue: #2152E3;
  --shadow: 0 40px 80px rgba(0, 0, 0, .45), 0 12px 30px rgba(0, 0, 0, .3);
  position: relative;
  padding: clamp(84px, 11vw, 150px) var(--pad);
  font-family: var(--body);
  color: var(--ink);
}

.hm *, .hm *::before, .hm *::after { box-sizing: border-box; }
:where(.hm) :is(h2, h3, p, ul) { margin: 0; }
:where(.hm) a { color: inherit; text-decoration: none; }

.hm-wrap { max-width: 1180px; margin: 0 auto; }
.hm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.hm-flip > .hm-text { order: 2; }
.hm-center { text-align: center; }
.hm-center .hm-lede { margin-inline: auto; }

.hm-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: 999px;
  background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 13px; font-weight: 500; color: var(--ink2);
}

.hm h2 {
  margin-top: 22px; font-size: clamp(38px, 4.6vw, 60px); line-height: 1.04; font-weight: 600; letter-spacing: -.04em;
  text-wrap: balance;
}
.hm h2 span { display: block; color: var(--ink2); }
.hm-lede { margin-top: 22px; max-width: 34em; font-size: 18px; line-height: 1.55; color: var(--sec); }

.hm-points { margin-top: 30px; padding: 0; list-style: none; display: grid; gap: 0; border-top: 1px solid rgba(255, 255, 255, .08); max-width: 34em; }
.hm-points li { padding: 16px 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 15.5px; line-height: 1.5; color: var(--sec); }
.hm-points b { color: var(--ink); font-weight: 600; }

/* shared pieces */
.hm-k { font-size: 11px; font-weight: 700; letter-spacing: .055em; text-transform: uppercase; color: var(--mute); }
.hm-card {
  border-radius: 24px; background: rgba(20, 20, 20, .96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 0 1px rgba(255, 255, 255, .08), var(--shadow);
}
.hm-chip-low { padding: 5px 10px; border-radius: 999px; background: var(--low-bg); color: var(--low-fg); font-size: 12px; font-weight: 700; white-space: nowrap; }

.hm-phone {
  --w: 270px; --b: calc(var(--w) * .028);
  position: absolute; width: calc(var(--w) + 2 * var(--b)); padding: var(--b);
  border-radius: calc(var(--w) * .15);
  background: linear-gradient(145deg, #3a3a3c, #111 30%, #1c1c1e 70%, #4a4a4c);
  box-shadow: var(--shadow);
}
.hm-phone::before { content: ""; position: absolute; inset: 2px; border-radius: calc(var(--w) * .15 - 2px); background: #050505; }
.hm-scr { position: relative; border-radius: calc(var(--w) * .15 - var(--b)); overflow: hidden; aspect-ratio: 1290 / 2796; background: #000; }
.hm-scr img { display: block; width: 100%; height: 100%; }
.hm-island { position: absolute; left: 50%; top: calc(var(--b) + var(--w) * .03); width: calc(var(--w) * .29); height: calc(var(--w) * .085); transform: translateX(-50%); border-radius: 999px; background: #000; }

.hm-stage { position: relative; }

/* ---------- Find ---------- */
.hm-stage-find { height: 640px; }
.hm-ph-back { --w: 250px; inset-inline-end: 4%; top: 0; opacity: .55; }
.hm-ph-front { --w: 270px; inset-inline-start: 8%; top: 52px; z-index: 2; }
.hm-low { position: absolute; z-index: 3; inset-inline-end: 0; bottom: 34px; width: 300px; padding: 16px; }
.hm-low-h { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--low-fg); }
.hm-low-h i { width: 7px; height: 7px; border-radius: 4px; background: var(--low-fg); }
.hm-low-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hm-tile { padding: 12px 12px 10px; border-radius: 16px; background: var(--low-bg); min-height: 112px; display: flex; flex-direction: column; }
.hm-tile b { font-size: 12.5px; font-weight: 600; color: #F0B58A; }
.hm-tile span { margin-top: auto; font-size: 30px; font-weight: 700; letter-spacing: -.03em; color: var(--ink); line-height: 1; }
.hm-tile span small { font-size: 13px; font-weight: 600; color: var(--ink2); margin-inline-start: 2px; }
.hm-tile em { margin-top: 3px; font-style: normal; font-size: 10.5px; font-weight: 500; color: rgba(240, 181, 138, .7); }

/* ---------- Fix ---------- */
.hm-stage-fix { display: flex; justify-content: center; }
.hm-sheet { width: min(100%, 420px); padding: 24px 22px 22px; border-radius: 30px; background: var(--sheet); }
.hm-sheet-t { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 6px; }
.hm-sheet-t b { font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.hm-matters { margin-top: 12px; padding: 16px; border-radius: 20px; background: var(--card); }
.hm-matters .hm-k { margin-bottom: 6px; }
.hm-matters p { font-size: 14px; line-height: 1.45; font-weight: 500; color: var(--ink); }
.hm-matters p b { color: var(--low-fg); }
.hm-fix-h { margin: 22px 0 10px; font-size: 15px; font-weight: 700; letter-spacing: -.013em; }
.hm-fixes { display: grid; gap: 8px; }
.hm-fixrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 16px; border-radius: 18px; background: var(--card); }
.hm-fixrow b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -.013em; }
.hm-fixrow small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--sec); }
.hm-fixrow > div:last-child { text-align: end; }
.hm-fixrow > div:last-child b { font-size: 14px; }
.hm-fixrow > div:last-child small { color: var(--ok); font-size: 11px; }
.hm-fixrow.hm-hi { position: relative; background: #232323; transform: scale(1.04); box-shadow: inset 0 0 0 1.5px rgba(125, 215, 194, .5), 0 14px 28px rgba(0, 0, 0, .5); }

/* ---------- Timing ---------- */
.hm-stage-timing { height: 600px; }
.hm-ph-dim { --w: 260px; left: 50%; top: 0; margin-left: calc(-130px - 260px * .028); }
.hm-ph-dim .hm-scr::after { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); }
.hm-heads { position: absolute; z-index: 2; left: 50%; top: 168px; width: 360px; margin-left: -180px; padding: 20px 20px 16px; border-radius: 22px; background: #1E1E1E; }
.hm-heads .hm-k { margin-bottom: 10px; }
.hm-heads-t { font-size: 16px; line-height: 22px; font-weight: 600; letter-spacing: -.0125em; }
.hm-heads-s { margin-top: 6px; font-size: 13px; font-weight: 500; color: var(--sec); }
.hm-heads-f { margin-top: 10px; font-size: 15px; line-height: 21px; font-weight: 500; }
.hm-heads-b { margin-top: 16px; height: 48px; border-radius: 16px; background: #E8E8E4; color: #131313; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; }
.hm-heads-n { padding-top: 12px; text-align: center; font-size: 13px; font-weight: 600; color: var(--sec); }
/* the app's heads-up Adi (AdiHeadsUpMark in InteractionConfirmSheet): wide eyes, leaning back off the card's bottom
   corner, gold watch. Card first, then Adi fades in, then he glances up at the card as the watch shows. */
.hm-hu { position: absolute; z-index: 2; width: 120px; height: 120px; inset-inline-end: -25px; bottom: -44px; rotate: 22deg; transform-origin: 50% 100%; pointer-events: none; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45)); }
.hm-hu svg { display: block; width: 100%; height: 100%; overflow: visible; }
[dir="rtl"] .hm-hu { rotate: -22deg; }
[dir="rtl"] .hm-hu svg { transform: scaleX(-1); }
.hm-hu-eyes { translate: -2px -14px; }
.hx-anim .hm-stage-timing .hm-hu { opacity: 0; }
.hx-anim .hm-stage-timing .hm-hu-eyes { translate: 0 0; }
.hx-anim .hm-stage-timing .hm-hu-watch { opacity: 0; }
.hx-anim .hm-stage-timing.in .hm-hu { opacity: 1; transition: opacity .3s ease .95s; }
.hx-anim .hm-stage-timing.in .hm-hu-eyes { translate: -2px -14px; transition: translate .46s cubic-bezier(.33, 1, .68, 1) 1.39s; }
.hx-anim .hm-stage-timing.in .hm-hu-watch { opacity: 1; transition: opacity .46s cubic-bezier(.33, 1, .68, 1) 1.39s; }

/* ---------- Everything else ---------- */
.hm-more h2 { margin-inline: auto; max-width: 15em; }
.hm-bento { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hm-tile-lg {
  position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 520px; padding: 28px 26px 0;
  border-radius: 28px; background: #121213; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.hm-tile-lg h3 { font-size: 24px; font-weight: 600; letter-spacing: -.025em; }
.hm-tile-lg p { margin-top: 8px; font-size: 15px; line-height: 1.5; color: var(--sec); max-width: 26em; }
.hm-crop { position: relative; margin: 28px auto 0; width: 76%; flex: 1; min-height: 300px; overflow: hidden; border-radius: 30px 30px 0 0; box-shadow: 0 0 0 7px #1c1c1e, 0 0 0 8px #3a3a3c, var(--shadow); }
.hm-crop img { position: absolute; left: 0; top: 0; width: 100%; height: auto; display: block; }
/* the weight trend card (the store set's frame 2): nine weeks of weigh-ins, the plateau, the target moving, the drop */
.hm-adapt p { margin-bottom: 22px; }
.hm-wt { margin-top: auto; margin-bottom: 26px; padding: 18px 18px 16px; border-radius: 22px; background: #1A1A1A; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px rgba(0, 0, 0, .35); }
.hm-wt-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.hm-wt-h .hm-k { display: block; color: var(--sec); letter-spacing: .07em; }
.hm-wt-h b { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; letter-spacing: -.02em; }
.hm-wt-h em { font-style: normal; font-size: 22px; font-weight: 800; letter-spacing: -.03em; color: var(--ok); white-space: nowrap; }
.hm-wt-chart { display: block; width: 100%; height: auto; margin-top: 8px; overflow: visible; font-family: var(--body); }
.hm-wt-kcal { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; white-space: nowrap; }
.hm-wt-kcal s { font-size: 20px; font-weight: 700; letter-spacing: -.03em; color: var(--mute); text-decoration-thickness: 2px; }
.hm-wt-kcal svg { align-self: center; }
.hm-wt-kcal b { font-size: 40px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.hm-wt-kcal span { font-size: 13px; font-weight: 600; color: var(--sec); }

.hm-adi-demo { position: relative; margin-top: auto; padding-bottom: 26px; }
.hm-adi-in { display: flex; align-items: center; gap: 10px; height: 48px; padding-block: 0; padding-inline: 18px 6px; border-radius: 999px; background: #1E1E1E; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); font-size: 14px; font-weight: 500; }
.hm-adi-in span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-adi-in i { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); display: flex; align-items: center; justify-content: center; flex: none; }
.hm-adi-out { margin-top: 10px; padding: 14px 14px 8px; border-radius: 20px; background: #1A1A1A; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.hm-adi-oh { display: flex; justify-content: space-between; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--mute); }
.hm-adi-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-top: 1px solid rgba(255, 255, 255, .06); }
.hm-adi-row:first-of-type { border-top: 0; }
.hm-adi-row b { display: block; font-size: 14px; font-weight: 600; }
.hm-adi-row small { display: block; margin-top: 1px; font-size: 11.5px; color: var(--sec); }
.hm-adi-row > span { font-size: 14px; font-weight: 700; white-space: nowrap; }
.hm-adi-row > span small { display: inline; font-size: 11px; font-weight: 500; color: var(--sec); }
/* Adi peeks over the input bar with his fingertips on its top edge, in the app's ledge pose (LedgePeek): drawn upright,
   the figure's 140-unit window at 0.46 px a unit, his eyes' bottom 5 px above the edge, leaning (home/adi.js) about his
   hidden bottom centre. His centre sits 96 px in from the bar's end (right in English, left in Arabic), clear of the send button; the fingertips are
   the app's too, 60 units either side of his centre, 26 x 15 units, standing 10 units above the edge. */
.hm-adi-demo { isolation: isolate; }
.hm-adi-in { position: relative; z-index: 2; }
/* the bar is short, so Adi sits in a box that ends at the bar's middle: tucked or risen, none of him shows below it */
.hm-adi-clip { position: absolute; z-index: 1; left: 0; right: 0; top: -140px; height: 164px; overflow: hidden; pointer-events: none; }
.hm-adi-peek {
  --s: 64.4px; position: absolute; inset-inline-end: calc(96px - var(--s) / 2); top: calc(140px - var(--s) * 110 / 140 - 5px);
  width: var(--s); height: var(--s); transform-origin: 50% 100%;
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .45));
}
.hm-adi-peek svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* click him and he smiles (home/adi.js); only his body takes the click, not the box around him. The body group also
   fills the notch between his feet, which would otherwise poke above the bar as a little dark caret. */
.hm-adi-clip { user-select: none; -webkit-user-select: none; -webkit-tap-highlight-color: transparent; }
.hm-adi-body { pointer-events: auto; cursor: pointer; }
.hm-adi-tip {
  position: absolute; z-index: 3; top: -4.6px; width: 12px; height: 6.9px; border-radius: 999px; background: #F2F2EF;
  box-shadow: inset 0 0 0 1px rgba(19, 19, 19, .36), 0 1.5px 3px rgba(0, 0, 0, .4);
}
.hm-adi-tip.hm-r { inset-inline-end: calc(96px - 27.6px - 6px); }
.hm-adi-tip.hm-l { inset-inline-end: calc(96px + 27.6px - 6px); }
/* he stays tucked behind the bar until the tile has come in, then rises and takes hold */
@keyframes hmAdiRise { from { translate: 0 var(--s); } }
@keyframes hmAdiTips { from { opacity: 0; translate: 0 6px; } }
.hx-anim .hm-adi .hm-adi-peek { translate: 0 var(--s); }
.hx-anim .hm-adi .hm-adi-tip { opacity: 0; }
.hx-anim .hm-adi.in .hm-adi-peek { translate: none; animation: hmAdiRise 1s cubic-bezier(.25, .9, .3, 1.04) .6s both; }
.hx-anim .hm-adi.in .hm-adi-tip { opacity: 1; animation: hmAdiTips .35s ease-out 1.15s both; }
.hm-smalls { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.hm-small { padding: 22px 24px; border-radius: 22px; background: #121213; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07); }
.hm-small b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.hm-small span { display: block; margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--sec); }

/* ---------- comparison table and guides: headings in the same voice (the table keeps its own orange) ---------- */
/* they take the sections' pill label; being outside .hm, they bring its colours (the dot matches the table) */
.compare .hm-eyebrow, #guides .hm-eyebrow { --ink2: rgba(242, 242, 239, .64); margin-bottom: 22px; }
.compare .si-head, #guides .si-head { font-family: var(--body); font-size: clamp(34px, 4vw, 52px); line-height: 1.06; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; }

/* ---------- the end: the juice stand again, dimmed, under one last call ---------- */
.hm-end { overflow: hidden; padding-top: clamp(110px, 14vw, 190px); padding-bottom: clamp(110px, 14vw, 190px); }
.hm-end-photo { position: absolute; inset: 0; z-index: 0; }
.hm-end-photo img { position: absolute; left: 50%; bottom: -8%; width: max(1500px, 120%); height: auto; transform: translateX(-50%); opacity: .45; }
.hm-end-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg, #0A0A0B) 0%, rgba(10, 10, 11, .78) 40%, rgba(10, 10, 11, .55) 75%, var(--bg, #0A0A0B) 100%); }
.hm-end .hm-wrap { position: relative; z-index: 1; }
.hm-end h2 { margin-top: 0; font-size: clamp(40px, 5.4vw, 72px); }
.hm-end-ctas { margin-top: 34px; display: flex; justify-content: center; }
.hm-cta { display: inline-flex; align-items: center; gap: 10px; height: 54px; padding: 0 26px; border-radius: 999px; background: var(--ink); color: #0B0B0C !important; font-size: 16px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); transition: transform .18s, box-shadow .18s; }
.hm-cta:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(0, 0, 0, .45); }
.hm-end-links { margin-top: 22px; display: flex; justify-content: center; gap: 22px; font-size: 14px; color: var(--sec); }
.hm-end-links a:hover { color: var(--ink); }

/* reveal on scroll (the page script adds .in); hidden only when motion is allowed and the script is running */
.hx-anim .hm [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); }
.hx-anim .hm [data-reveal].in { opacity: 1; transform: none; }
.hx-anim .hm .hm-stage[data-reveal] { transition-delay: .12s; }

@media (max-width: 1000px) {
  .hm-split { grid-template-columns: 1fr; }
  .hm-flip > .hm-text { order: 0; }
  .hm-stage-find { height: 600px; max-width: 520px; width: 100%; margin: 0 auto; }
  .hm-stage-timing { max-width: 520px; width: 100%; margin: 0 auto; }
  .hm-bento { grid-template-columns: 1fr 1fr; }
  .hm-tile-lg.hm-arabic { grid-column: 1 / -1; min-height: 460px; }
  .hm-smalls { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .hm-lede { font-size: 16.5px; }
  /* the lean sticks his head past a phone-width card; sit him on the corner */
  .hm-hu { width: 100px; height: 100px; inset-inline-end: 6px; bottom: -34px; }
  .hm-stage-find { height: 520px; }
  .hm-ph-back { --w: 200px; inset-inline-end: 0; }
  .hm-ph-front { --w: 220px; inset-inline-start: 0; top: 40px; }
  .hm-low { width: 250px; bottom: 10px; padding: 12px; }
  .hm-tile { min-height: 96px; }
  .hm-tile span { font-size: 26px; }
  .hm-sheet { padding: 20px 16px 16px; }
  .hm-sheet-t b { font-size: 26px; }
  .hm-stage-timing { height: 540px; }
  .hm-ph-dim { --w: 230px; margin-left: calc(-115px - 230px * .028); }
  .hm-heads { width: 318px; margin-left: -159px; top: 140px; padding: 18px 16px 14px; }
  .hm-bento { grid-template-columns: 1fr; margin-top: 40px; }
  .hm-tile-lg { min-height: 470px; }
  .hm-smalls { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hm-cta { transition: none; }
}

/* ---------- Arabic page (ar/index.html, dir=rtl) ----------
   Layout mirrors through the grid and the logical properties above. Arabic is joined script, so the tight Latin
   letter-spacing would pull its letters apart: it goes back to normal everywhere on the page's own sections, and the
   headings get the taller lines Arabic needs. */
html[dir="rtl"] :is(.hx, .hm, .compare, #guides) * { letter-spacing: normal; }
html[dir="rtl"] .hm h2 { line-height: 1.24; }
html[dir="rtl"] .hm-lede { line-height: 1.75; }
html[dir="rtl"] .hm-points li, html[dir="rtl"] .hm-small span, html[dir="rtl"] .hm-tile-lg p { line-height: 1.7; }
html[dir="rtl"] .compare .si-head, html[dir="rtl"] #guides .si-head { line-height: 1.3; }
html[dir="rtl"] .hm-wt-kcal svg { transform: scaleX(-1); }
