/* ===== Hero B: big before/after compare + punchy ad-style copy ===== */
.hb{--c:var(--y);--cf:var(--ink);position:relative;overflow:hidden;background:var(--c);color:var(--cf);transition:background .4s}
.hb.k-drain{--c:var(--b);--cf:#fff}
.hb.k-clean{--c:var(--o);--cf:#fff}
.hb::before{content:"";position:absolute;inset:-60%;background:repeating-conic-gradient(from 0deg at 50% 50%,rgba(255,255,255,.08) 0 5deg,transparent 5deg 13deg)}
.hb.k-seal::before{background:repeating-conic-gradient(from 0deg at 50% 50%,rgba(20,22,26,.06) 0 5deg,transparent 5deg 13deg)}

/* layout: compare takes ~62%, copy column the rest (copy on the right in Arabic, left in French) */
.hb-in{position:relative;max-width:1760px;margin:0 auto;padding:64px 36px 66px;display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);grid-template-areas:"tabs media" "txt media";
  grid-template-rows:auto 1fr;column-gap:44px;row-gap:14px;align-items:start}
.hbp{display:contents}
.hbp[hidden]{display:none}
.hb-tabs{grid-area:tabs;display:flex;gap:8px;flex-wrap:wrap;padding-top:6px}
.hb-txt{grid-area:txt;align-self:center}
.cmp{grid-area:media;align-self:center}

.hb-tabs button{display:flex;align-items:center;gap:8px;font:900 14px Inter,sans-serif;letter-spacing:.5px;padding:9px 18px;border-radius:999px;border:2px solid rgba(20,22,26,.85);background:rgba(255,255,255,.92);color:var(--ink);cursor:pointer;transition:transform .15s}
.hb-tabs button:hover{transform:translateY(-1px)}
.hb-tabs button i{width:11px;height:11px;border-radius:50%;background:var(--y);border:2px solid var(--ink)}
.hb-tabs .t-drain i{background:var(--b)} .hb-tabs .t-clean i{background:var(--o)}
.hb-tabs button[aria-selected=true]{background:var(--ink);color:#fff;border-color:var(--ink);box-shadow:0 6px 16px rgba(0,0,0,.25)}

/* copy */
.hbp:not([hidden]) .hb-txt>*{animation:rise .45s both}
.hbp:not([hidden]) .hb-txt>*:nth-child(2){animation-delay:.06s}
.hbp:not([hidden]) .hb-txt>*:nth-child(3){animation-delay:.12s}
.hbp:not([hidden]) .hb-txt>*:nth-child(n+4){animation-delay:.18s}
@keyframes rise{from{opacity:0;transform:translateY(14px)}}

/* pain question on an ink brush-stroke */
.hb .kicker{margin:0 0 6px;font-size:clamp(24px,2.5vw,40px);font-weight:900;font-style:normal}
.hb .kicker span{display:inline-block;background:var(--ink);color:#fff;padding:6px 22px 10px;transform:rotate(-2deg);
  clip-path:polygon(0 8%,4% 0,30% 6%,60% 0,96% 4%,100% 0,99% 55%,100% 100%,70% 94%,40% 100%,6% 95%,0 100%,1% 50%)}
.hb.k-seal .kicker span{background:var(--ink);color:var(--y)}
.hb .mega{font-size:clamp(64px,9.4vw,172px);line-height:.86;margin:8px 0 12px;letter-spacing:-.04em;text-shadow:0 6px 0 rgba(0,0,0,.12)}
.hb .mega small{font-size:.26em;letter-spacing:.12em;margin-bottom:2px}
.hb .line{font-size:clamp(19px,1.75vw,30px);font-weight:900;line-height:1.3;margin:0 0 16px;max-width:none}

.hb-ticks{list-style:none;margin:0 0 22px;padding:0;display:flex;flex-wrap:wrap;gap:8px 10px}
.hb-ticks li{display:flex;align-items:center;gap:7px;background:rgba(255,255,255,.95);color:var(--ink);font-weight:900;font-size:clamp(14px,1.1vw,18px);padding:7px 14px 7px 12px;border-radius:999px;box-shadow:0 4px 0 rgba(20,22,26,.85)}
.hb-ticks li::before{content:"✓";width:20px;height:20px;border-radius:50%;background:var(--g,#18a957);color:#fff;font-size:12px;display:grid;place-items:center;flex:none}

.hb-cta{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.hb .pill{background:var(--ink);color:#fff;font-size:clamp(17px,1.35vw,24px);padding:18px 34px;border:3px solid var(--ink);box-shadow:0 7px 0 rgba(0,0,0,.35);animation:hbpulse 2.2s ease-in-out infinite}
.hb.k-seal .pill{box-shadow:0 7px 0 rgba(20,22,26,.35)}
.hb .pill i{font-style:normal;font-family:Inter;transition:transform .2s}
.hb .pill:hover i{transform:translateX(-4px)}
[dir=ltr] .hb .pill i{transform:scaleX(-1)}
@keyframes hbpulse{0%,100%{transform:scale(1)}50%{transform:scale(1.04)}}

/* price sticker */
.hb-price{margin:0;display:inline-flex;align-items:baseline;gap:6px;background:var(--red,#d0302f);color:#fff;font-weight:900;font-size:clamp(15px,1.15vw,19px);padding:8px 18px 10px;border-radius:14px;transform:rotate(-3deg);box-shadow:0 8px 18px rgba(208,48,47,.35)}
.hb-price b{font-family:Inter;font-size:clamp(34px,3vw,52px);line-height:1;direction:ltr;unicode-bidi:isolate;display:inline-block}
.hb-trust{margin:18px 0 0;font-weight:800;font-size:clamp(14px,1.05vw,17px);opacity:.92}

/* compare: before on the LEFT, after on the RIGHT, in every language */
.cmp{--x:50%;position:relative;direction:ltr;aspect-ratio:16/9;border-radius:26px;overflow:hidden;background:#222;box-shadow:0 26px 60px rgba(0,0,0,.32);border:5px solid #fff;user-select:none;touch-action:pan-y}
.cmp img.ca,.cmp img.cb{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none}
.cmp img.cb{clip-path:inset(0 calc(100% - var(--x)) 0 0)}
.cmp .hd{position:absolute;top:0;bottom:0;left:var(--x);width:4px;margin-left:-2px;background:#fff;box-shadow:0 0 12px rgba(0,0,0,.4);pointer-events:none}
.cmp .hd b{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:60px;height:60px;border-radius:50%;background:#fff;color:var(--ink);display:grid;place-items:center;font:900 22px Inter;box-shadow:0 6px 18px rgba(0,0,0,.35);border:4px solid var(--c)}
.cmp input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;-webkit-appearance:none;appearance:none}
.cmp input::-webkit-slider-thumb{-webkit-appearance:none;width:70px;height:900px}
.cmp input::-moz-range-thumb{width:70px;height:900px;border:0}
.cmp .lb{position:absolute;top:18px;padding:8px 22px;border-radius:999px;font-weight:900;font-size:clamp(15px,1.3vw,22px);pointer-events:none}
.cmp .lb-b{left:18px;background:#3b3f47;color:#fff}
.cmp .lb-a{right:18px;background:var(--y);color:var(--ink)}
.cmp .hint{position:absolute;left:30%;bottom:18px;transform:translateX(-50%);background:rgba(20,22,26,.82);color:#fff;font-weight:800;font-size:15px;padding:8px 18px;border-radius:999px;pointer-events:none;white-space:nowrap;transition:opacity .3s}
.cmp.used .hint{opacity:0}

/* product standing in the corner of the "after" side */
.hb-prod{position:absolute;right:3%;bottom:3%;width:19%;height:52%;pointer-events:none}
.hb-prod img{position:absolute;right:0;bottom:0;max-height:100%;max-width:100%;width:auto;height:auto;object-fit:contain;filter:drop-shadow(0 16px 16px rgba(0,0,0,.45)) drop-shadow(0 2px 3px rgba(0,0,0,.3))}
.hb-prod.w{width:28%;height:48%}
.hb-prod span{position:absolute;bottom:2%;left:-18px;background:var(--y);color:var(--ink);font:900 clamp(14px,1.3vw,22px) Inter;padding:4px 12px;border-radius:10px;border:3px solid var(--ink);z-index:1}

@media(max-width:1100px){
  .hb-in{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);column-gap:32px;padding:48px 22px 50px}
}
@media(max-width:820px){
  .hb-in{grid-template-columns:1fr;grid-template-areas:"tabs" "media" "txt";padding:14px 14px 26px;row-gap:14px;text-align:center}
  .hb-tabs{justify-content:center;padding:0}
  .hb-tabs button{padding:8px 13px;font-size:13px}
  .cmp{aspect-ratio:4/3;border-radius:18px;border-width:4px}
  .cmp .hd b{width:48px;height:48px;font-size:18px}
  .cmp .lb{top:12px;padding:5px 14px}
  .cmp .lb-b{left:12px} .cmp .lb-a{right:12px}
  .cmp .hint{font-size:12px;left:36%;bottom:12px;padding:6px 12px}
  .hb-prod{width:24%;height:50%} .hb-prod.w{width:32%;height:44%}
  .hb-prod span{left:-10px;padding:2px 8px}
  .hb .mega{font-size:clamp(56px,16vw,80px)}
  [dir=rtl] .hb .mega{text-align:center}
  .hb .line{font-size:18px;margin-bottom:12px}
  .hb-ticks{justify-content:center;margin-bottom:18px}
  .hb-ticks li{font-size:13px;padding:6px 11px 6px 9px}
  .hb-cta{justify-content:center;gap:14px}
  .hb-trust{margin-top:12px;font-size:13px}
  .cmp{aspect-ratio:16/11}
  .hb-in{row-gap:10px;padding-top:10px}
  .hb .kicker{font-size:20px;margin-bottom:2px}
  .hb .kicker span{padding:4px 14px 7px}
  .hb .mega{font-size:clamp(50px,14vw,64px);margin:4px 0 6px}
  .hb .line{font-size:15px;margin-bottom:10px}
  .hb-ticks{gap:6px;margin-bottom:14px;flex-wrap:nowrap}
  .hb-ticks li{font-size:12px;padding:5px 9px 5px 7px;box-shadow:0 3px 0 rgba(20,22,26,.85);white-space:nowrap}
  .hb-ticks li:nth-child(3){display:none}
  .hb-ticks li::before{width:16px;height:16px;font-size:10px}
  .hb-cta{flex-wrap:nowrap;gap:10px}
  .hb .pill{font-size:15px;padding:13px 20px;white-space:nowrap}
  .hb-price{padding:6px 12px 8px;font-size:13px;white-space:nowrap}
  .hb-price b{font-size:28px}
}
@media(prefers-reduced-motion:reduce){.hbp .hb-txt>*,.hb .pill{animation:none}}
/* keep the benefit chips on one row so the copy column stays compact */
.hb-ticks{flex-wrap:nowrap}
.hb-ticks li{white-space:nowrap}
@media(max-width:1500px){.hb-ticks li:nth-child(3){display:none}}
@media(min-width:821px) and (max-width:1300px){.hb-in{padding-top:48px;padding-bottom:50px}.hb .mega{font-size:clamp(64px,8.4vw,120px)}}

/* ===== Mobile first screen (95% of visitors): offer bar → hook → photo → order, tabs last ===== */
.hb-bar,.hb-sticky{display:none}
@media(max-width:820px){
  .hb{padding:0}
  .hb-in{grid-template-columns:minmax(0,1fr);grid-template-areas:"bar" "kicker" "mega" "media" "cta" "line" "ticks" "swtxt" "tabs";padding:0 14px 22px;row-gap:0}
  .hb-txt{display:contents}
  .hb-bar{grid-area:bar;display:flex;justify-content:center;gap:clamp(8px,3vw,16px);margin:0 -14px 12px;padding:7px 8px;background:var(--ink);color:#fff;font-size:clamp(11.5px,3.4vw,13.5px);font-weight:800;white-space:nowrap}
  .hb-bar b{font-weight:900}
  .hb .kicker{grid-area:kicker;margin:0 0 2px;font-size:21px}
  .hb .mega{grid-area:mega;margin:0 0 10px;font-size:clamp(46px,13vw,60px);text-shadow:0 4px 0 rgba(0,0,0,.12)}
  .hb .mega small{text-shadow:none}
  .cmp{grid-area:media;margin-bottom:14px}
  .hb-cta{grid-area:cta;margin-bottom:14px}
  .hb .line{grid-area:line;margin:0 0 10px}
  .hb-ticks{grid-area:ticks;margin:0 0 16px}
  .hb-tabs{grid-area:tabs;gap:6px}
  .hb-tabs button{padding:6px 12px;font-size:12px;border-width:1.5px}
  .hb-tabs button i{width:9px;height:9px}
  /* sticky order bar, shown by brand.js once the hero button scrolls away */
  .hb-sticky{display:block;position:fixed;left:0;right:0;bottom:0;z-index:30;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:var(--ink);transform:translateY(110%);transition:transform .25s}
  .hb-sticky.on{transform:none}
  .hb-sticky .pill{display:flex;justify-content:center;align-items:center;gap:8px;width:100%;box-sizing:border-box;background:var(--o);border-color:var(--o);color:#fff;font-size:16px;padding:13px 16px;animation:none;box-shadow:none;white-space:nowrap}
  .hb-sticky.k-seal .pill{background:var(--y);border-color:var(--y);color:var(--ink)}
  .hb-sticky.k-drain .pill{background:var(--b);border-color:var(--b)}
}

/* phones: WhatsApp is a round icon (the text pill covered content); on the home page it waits until the order bar is up */
@media(max-width:820px){
  body.home:not(.hb-past) .wa{display:none}
  .wa{display:grid;place-items:center;width:52px;height:52px;padding:0;font-size:0;bottom:80px}
  .wa::before{content:"";width:28px;height:28px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M12 2a10 10 0 0 0-8.6 15.1L2 22l5-1.3A10 10 0 1 0 12 2zm0 18.2c-1.5 0-3-.4-4.3-1.2l-.3-.2-3 .8.8-2.9-.2-.3A8.2 8.2 0 1 1 12 20.2zm4.5-6.1c-.2-.1-1.5-.7-1.7-.8-.2-.1-.4-.1-.6.1l-.8 1c-.1.2-.3.2-.5.1a6.7 6.7 0 0 1-3.3-2.9c-.2-.4.2-.4.7-1.3.1-.2 0-.3 0-.4l-.8-1.8c-.2-.5-.4-.4-.6-.4h-.5a1 1 0 0 0-.7.3 3 3 0 0 0-.9 2.2c0 1.3.9 2.5 1 2.7.1.2 1.8 2.8 4.4 3.9 1.6.7 2.3.8 3.1.6.5-.1 1.5-.6 1.7-1.2.2-.6.2-1.1.2-1.2-.1-.1-.3-.2-.5-.3z'/%3E%3C/svg%3E") center/contain no-repeat}
}

/* swipe between products: the new panel slides in from the side the finger moved away from */
.hb[data-sw="l"] .hbp:not([hidden]) .cmp{animation:swl .35s ease-out both}
.hb[data-sw="r"] .hbp:not([hidden]) .cmp{animation:swr .35s ease-out both}
@keyframes swl{from{opacity:.2;transform:translateX(60px)}}
@keyframes swr{from{opacity:.2;transform:translateX(-60px)}}
@media(prefers-reduced-motion:reduce){.hb[data-sw] .hbp .cmp{animation:none}}

/* swipe hint (phones only): arrows beside the product name + a line until the first swipe */
.hb-sw,.hb-swtxt{display:none}
@media(max-width:820px){
  .hb-sw{grid-area:mega;position:relative;z-index:3;display:flex;justify-content:space-between;align-items:center;pointer-events:none;margin:0 -6px 10px;direction:ltr}
  .hb-sw button{pointer-events:auto;width:40px;height:40px;border-radius:50%;border:2px solid var(--ink);background:rgba(255,255,255,.92);color:var(--ink);font:900 26px/1 Inter,sans-serif;padding:0 0 4px;display:grid;place-items:center;box-shadow:0 4px 0 rgba(20,22,26,.85);cursor:pointer}
  .hb-sw .sw-a{animation:nudgeL 1.6s ease-in-out 1.2s 3}
  .hb-sw .sw-b{animation:nudgeR 1.6s ease-in-out 1.2s 3}
  .hb-swtxt{grid-area:swtxt;display:block;justify-self:center;margin:0 0 8px;background:none;color:inherit;direction:ltr;font-size:12.5px;font-weight:800;padding:5px 14px 7px;border-radius:999px;pointer-events:none;white-space:nowrap;transition:opacity .3s}
  .hb-swtxt span{display:inline-block;animation:nudgeL 1.6s ease-in-out infinite}
  .hb-swtxt span+b+span{animation-name:nudgeR}
  .hb-swtxt b{unicode-bidi:isolate;margin:0 8px}
  .hb.swiped .hb-swtxt{display:none}
  .hb.swiped .hb-sw button{animation:none}
}
@keyframes nudgeL{0%,100%{transform:translateX(0)}50%{transform:translateX(-6px)}}
@keyframes nudgeR{0%,100%{transform:translateX(0)}50%{transform:translateX(6px)}}
@media(prefers-reduced-motion:reduce){.hb-sw button,.hb-swtxt span{animation:none!important}}

/* phones: arrows barely there (the swipe and the hint line do the work); kicker text centred in its black band */
@media(max-width:820px){
  .hb-sw{margin:0 -10px 10px}
  .hb-sw button{width:28px;height:44px;border:0;background:none;box-shadow:none;color:currentColor;opacity:.35;font-size:30px;font-weight:400;padding:0}
  .hb .kicker span{padding:0 14px 6px;line-height:1.35}
}
