/* ============================================================
   BioCore — design system
   Mobile-first. Type scale matches the measured competitor scale
   (mobile 15/29.25/26, desktop 16/39/31.2) so section rhythm lands
   the same, but the palette and shapes are BioCore's own.
   ============================================================ */

:root{
  --ink:#0E1B17;
  --ink-soft:#26332E;
  /* --accent is for FILLS, borders and large glyphs only: it measures ~3:1 on
     white, which passes for non-text UI but fails WCAG AA for body text.
     Anything that is text on a light surface must use --accent-dark (~5.9:1
     on white, ~5.2:1 on --accent-soft). */
  --accent:#16A46B;
  --accent-dark:#0B6B45;
  --accent-soft:#E7F6EF;
  --text:#1A1A1A;
  --muted:#6B7280;
  --line:#E5E7EB;
  --tint:#F5F6F4;
  --white:#fff;

  --wrap:1120px;
  --narrow:720px;
  --r:14px;
  --r-lg:20px;
  --shadow:0 1px 2px rgba(14,27,23,.05), 0 8px 24px rgba(14,27,23,.06);

  --sec-y:52px;
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;
  font-family:"Noto Sans Hebrew",system-ui,-apple-system,"Segoe UI",Arial,sans-serif;
  font-size:15px; line-height:1.8; color:var(--text); background:var(--white);
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img{max-width:100%;height:auto;display:block}
a{color:inherit}
h1,h2,h3{margin:0 0 .5em;line-height:1.23;font-weight:800;letter-spacing:-.01em}
h1{font-size:29.25px}
h2{font-size:26px}
h3{font-size:17px;font-weight:700}
p{margin:0 0 1em}
/* Hebrew RTL body with Latin brand names, ₪ amounts and "!" mixed in: without
   isolation the bidi algorithm reorders the run and prices land in the wrong
   place mid-sentence. Every such island is isolated. */
s,bdi,.paylogos li{unicode-bidi:isolate}
s{color:var(--muted);text-decoration-thickness:1px}

.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:18px}
.narrow{max-width:var(--narrow)}
.center{text-align:center}
.sec{padding-block:var(--sec-y)}
.sec--tint{background:var(--tint)}
.lede{font-size:16px;color:var(--ink-soft)}
.microcopy{font-size:13px;color:var(--muted);margin:10px 0 0}
.fineprint{font-size:12px;line-height:1.7;color:var(--muted)}
.eyebrow{font-size:12px;font-weight:700;letter-spacing:.08em;color:var(--accent-dark);margin:0 0 10px}

/* ---------- ruled heading (matches the competitor's flanked-line H2) ---------- */
.ruled{display:flex;align-items:center;gap:14px;justify-content:center;text-align:center}
.ruled::before,.ruled::after{content:"";height:1px;background:var(--line);flex:1}

/* ---------- buttons ---------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:8px;
  background:var(--ink);color:#fff;text-decoration:none;font-weight:700;font-size:15px;
  padding:13px 26px;border-radius:999px;border:0;cursor:pointer;
  transition:transform .15s ease,background .15s ease;
  min-height:44px; /* touch target */
}
.btn:hover{background:var(--ink-soft)}
.btn:active{transform:scale(.985)}
.btn--sm{padding:10px 18px;font-size:14px;min-height:44px}
.btn--lg{padding:17px 34px;font-size:17px;border-radius:14px;min-height:54px}
.btn--block{display:flex;width:100%}
.btn:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.badge{display:inline-block;font-size:12px;font-weight:700;padding:4px 10px;border-radius:999px}
.badge--soft{background:var(--accent-soft);color:var(--accent-dark)}

/* ---------- announce + trust bar ---------- */
.announce{background:var(--ink);color:#fff;font-size:12.5px}
.announce .wrap{display:flex;gap:8px;justify-content:center;align-items:center;flex-wrap:wrap;padding-block:0}
.announce a{color:#fff;display:inline-flex;align-items:center;min-height:44px;padding-inline:4px}
.announce > .wrap > span:first-child{padding-block:11px}
.announce .sep{opacity:.4}

.trustbar{background:var(--accent-soft);font-size:12.5px;color:var(--accent-dark);font-weight:600}
/* 2x2 grid on phones. A horizontal scroll rail here reads as a clipped, broken
   bar — the last item is always half-cut and nobody scrolls a trust badge. */
.trustbar__row{display:grid;grid-template-columns:1fr 1fr;gap:4px 14px;padding-block:9px}
.trustbar__item{display:inline-flex;align-items:center;gap:5px}
/* SVG check, not a "✓" glyph — the character renders at a different weight and
   baseline in every Hebrew font fallback, and screen readers announce it. */
.trustbar__item::before{
  content:"";width:14px;height:14px;flex:0 0 auto;
  background:currentColor;
  -webkit-mask:var(--check) center/contain no-repeat;
  mask:var(--check) center/contain no-repeat;
}
:root{
  --check:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0Z'/%3E%3C/svg%3E");
}

/* ---------- header ---------- */
.hdr{position:sticky;top:0;z-index:40;background:rgba(255,255,255,.92);backdrop-filter:blur(10px);border-bottom:1px solid var(--line)}
.hdr__row{display:flex;align-items:center;gap:16px;padding-block:11px}
.hdr__logo{flex:0 0 auto;display:flex;align-items:center;min-height:44px}
.hdr__nav{display:none;gap:14px;font-size:14px;font-weight:600;margin-inline-start:auto}
.hdr__nav a{text-decoration:none;display:inline-flex;align-items:center;min-height:44px;padding-inline:6px}
.hdr__nav a:hover{color:var(--accent-dark)}
.hdr .btn{margin-inline-start:auto}
.hdr__nav ~ .btn{margin-inline-start:0}

/* ---------- hero ---------- */
.hero{padding-block:34px 44px}
.hero__grid{display:grid;gap:26px}
.hero__copy h1{margin-bottom:14px}
.hero__price{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 14px}
.price{font-size:30px;font-weight:800;letter-spacing:-.02em}
.price--was{font-size:17px;color:var(--muted);text-decoration:line-through}
.hero__media{margin:0;background:var(--tint);border-radius:var(--r-lg);padding:22px;order:-1}
.hero__media img{margin-inline:auto;max-height:340px;width:auto;object-fit:contain}

/* ---------- pills ---------- */
.pills{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:12px}
.pill{background:var(--white);border:1px solid var(--line);border-radius:var(--r);padding:16px;box-shadow:var(--shadow);text-align:center}
.pill strong{display:block;font-size:16px}
.pill span{font-size:13px;color:var(--muted)}

/* ---------- pricing ---------- */
.sec--buy{scroll-margin-top:70px}
.plans{display:grid;gap:12px;margin:26px 0 18px}
.plan{position:relative;display:block;cursor:pointer;background:var(--white);border:2px solid var(--line);border-radius:var(--r);padding:16px 16px 14px}
.plan:has(input:checked){border-color:var(--ink);box-shadow:var(--shadow)}
.plan:has(input:focus-visible){outline:3px solid var(--accent);outline-offset:2px}
.plan input{position:absolute;inset-inline-start:16px;top:19px;accent-color:var(--ink);width:18px;height:18px;margin:0}
.plan__body{display:block;padding-inline-start:30px}
.plan__head{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.plan__name{font-size:15px;font-weight:600}
.plan__name b{font-weight:800}
.plan__price{font-size:19px;font-weight:800;white-space:nowrap}
.plan__sub{display:block;font-size:13px;color:var(--muted);margin-top:3px}
.plan__badge{
  position:absolute;top:-11px;inset-inline-start:14px;
  background:var(--accent);color:#fff;font-size:11.5px;font-weight:800;
  padding:4px 11px;border-radius:999px;letter-spacing:.01em;
}
.plans__note{font-size:13px;color:var(--muted);text-align:center;margin:0 0 16px}
.paylogos{list-style:none;display:flex;flex-wrap:wrap;gap:8px;justify-content:center;padding:0;margin:18px 0 0}
.paylogos li{font-size:11px;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:5px 9px;background:var(--white)}

/* ---------- steps ---------- */
.steps{list-style:none;margin:26px 0 0;padding:0;display:grid;gap:16px;text-align:start}
.steps li{display:flex;gap:14px;align-items:flex-start}
.steps__n{flex:0 0 auto;width:32px;height:32px;border-radius:999px;background:var(--ink);color:#fff;display:grid;place-items:center;font-weight:800;font-size:15px}
.steps strong{display:block}
.steps p{margin:2px 0 0;font-size:14px;color:var(--muted)}

/* ---------- horizontal rails (carousels, no JS lib) ---------- */
.rail{display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;padding-block:6px;margin-inline:-18px;padding-inline:18px;scrollbar-width:none}
.rail::-webkit-scrollbar{display:none}
.rail > *{flex:0 0 78%;scroll-snap-align:center}

/* ---------- timeline ---------- */
.tl{display:grid;gap:14px;margin-top:24px}
.tl__item{background:var(--white);border:1px solid var(--line);border-inline-start:4px solid var(--accent);border-radius:var(--r);padding:16px}
.tl__when{display:inline-block;font-size:12px;font-weight:800;color:var(--accent-dark);background:var(--accent-soft);padding:3px 10px;border-radius:999px;margin-bottom:6px}
.tl__item p{margin:0;font-size:14px}

/* ---------- ingredients ---------- */
.ing{width:100%;border-collapse:collapse;margin:22px 0 14px;font-size:14px;display:block;overflow-x:auto}
.ing thead th{text-align:start;font-size:12px;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);border-bottom:1px solid var(--line);padding:0 10px 8px}
.ing td{padding:11px 10px;border-bottom:1px solid var(--line);vertical-align:top}
.ing td:first-child{font-weight:700;white-space:nowrap}
.ing td:nth-child(2){color:var(--accent-dark);font-weight:700;white-space:nowrap}

/* ---------- cta + guarantee bands ---------- */
.sec--cta{background:var(--ink);color:#fff}
.sec--cta h2{margin-bottom:22px}
.sec--cta .btn{background:var(--accent)}
.sec--cta .btn:hover{background:var(--accent-dark)}
.sec--guar{background:var(--accent-soft)}
.sec--guar .lede{color:var(--ink)}
.sec--guar .btn{margin-top:18px}

/* ---------- faq ---------- */
#faq details{border:1px solid var(--line);border-radius:var(--r);margin-bottom:10px;background:var(--white);overflow:hidden}
#faq summary{cursor:pointer;padding:15px 16px;font-weight:700;font-size:15px;list-style:none;display:flex;justify-content:space-between;gap:12px;align-items:center}
#faq summary::-webkit-details-marker{display:none}
#faq summary::after{content:"+";font-size:20px;font-weight:400;color:var(--accent);flex:0 0 auto;line-height:1}
#faq details[open] summary::after{content:"−"}
#faq details[open] summary{border-bottom:1px solid var(--line)}
#faq details p{margin:0;padding:14px 16px;font-size:14.5px;color:var(--ink-soft)}

/* ---------- footer ---------- */
.ftr{background:var(--ink);color:#fff;padding-block:38px 20px;margin-bottom:74px}
.ftr__grid{display:grid;gap:26px}
.ftr h3{font-size:13px;text-transform:uppercase;letter-spacing:.06em;color:rgba(255,255,255,.55);margin-bottom:10px}
.ftr nav{display:flex;flex-direction:column;font-size:14px}
.ftr nav a{text-decoration:none;color:rgba(255,255,255,.85);display:flex;align-items:center;min-height:44px}
.ftr nav a:hover{color:#fff;text-decoration:underline}
.ftr .fineprint{color:rgba(255,255,255,.55);margin-top:12px}
.ftr__bottom{border-top:1px solid rgba(255,255,255,.12);padding-top:16px;margin-top:26px;color:rgba(255,255,255,.5)}

/* ---------- sticky mobile CTA ---------- */
.sticky{
  position:fixed;inset-inline:0;bottom:0;z-index:50;
  display:flex;align-items:center;gap:12px;
  background:rgba(255,255,255,.97);backdrop-filter:blur(10px);
  border-top:1px solid var(--line);
  padding:10px 16px calc(10px + env(safe-area-inset-bottom));
  box-shadow:0 -4px 18px rgba(14,27,23,.08);
}
.sticky__price{font-size:17px;font-weight:800;white-space:nowrap}
.sticky__price s{font-size:13px;font-weight:400}
.sticky .btn{margin-inline-start:auto;flex:0 0 auto}

/* ============================================================
   DARK BAND + WAVE DIVIDERS
   The competitor breaks their page with a dark section entered and
   exited through a sine wave. Same mechanism, BioCore's ink.
   ============================================================ */
:root{ --ink-deep:#081310; --wave-h:38px; }

.sec--dark{background:var(--ink-deep);color:#fff}
.sec--dark h2{color:#fff}
.sec--dark .microcopy,.sec--dark .fineprint{color:rgba(255,255,255,.55)}
/* Cards keep their light surface inside the dark band, so their text must go
   back to ink — otherwise it inherits the band's white and vanishes. */
.sec--dark .tl__item{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.10)}
.sec--dark .tl__item p{color:rgba(255,255,255,.88)}
.sec--tight{padding-top:8px}

/* The wave path deliberately runs from x=-160 to x=192 against a 0..150
   viewBox so the curve never shows a seam at the edges. SVG does not clip to
   the viewBox on its own, so without overflow:hidden the overhang widens the
   document and the whole page scrolls sideways. */
.wave{display:block;line-height:0;background:var(--white);overflow:hidden}
/* 108% wide and pulled back 4%: the parallax drift moves this +-2%, and at an
   exact 100% width that drift exposes a bare strip at one edge. */
.wave svg{display:block;width:108%;margin-inline-start:-4%;height:var(--wave-h);overflow:hidden}
.wave svg path{fill:var(--ink-deep)}
/* entering the dark band: white above, ink below */
.wave--in{background:var(--white)}
/* leaving it: flip vertically so the curve mirrors the entry */
.wave--out{background:var(--white)}
.wave--out svg{transform:scaleY(-1)}

/* ============================================================
   CAROUSEL — scroll-snap track with JS arrows + dots.
   Native momentum scrolling on touch, real buttons on desktop,
   and it still works with JS disabled (it is just a scroller).
   ============================================================ */
.carousel{--per:1.12;--gap:14px;position:relative;margin:26px 0 14px}
.carousel__track{
  list-style:none;margin:0;padding:0 0 4px;
  display:flex;gap:var(--gap);
  overflow-x:auto;scroll-snap-type:x mandatory;
  scrollbar-width:none;-webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
}
.carousel__track::-webkit-scrollbar{display:none}
.carousel__slide{
  flex:0 0 calc((100% - (var(--gap) * (var(--per) - 1))) / var(--per));
  scroll-snap-align:center;
}
@media (prefers-reduced-motion:reduce){ .carousel__track{scroll-behavior:auto} }

.carousel__nav{
  position:absolute;top:50%;transform:translateY(-50%);z-index:3;
  width:44px;height:44px;border-radius:999px;border:0;cursor:pointer;
  background:rgba(255,255,255,.94);color:var(--ink);
  box-shadow:0 2px 10px rgba(14,27,23,.22);
  display:none;place-items:center;padding:0;
  transition:background .2s ease,transform .2s ease;
}
.carousel__nav svg{width:22px;height:22px}
.carousel__nav:hover{background:#fff;transform:translateY(-50%) scale(1.06)}
.carousel__nav:disabled{opacity:.32;cursor:default;transform:translateY(-50%)}
.carousel__nav--prev{inset-inline-end:-6px}   /* RTL: "previous" sits on the right */
.carousel__nav--next{inset-inline-start:-6px}
.carousel__nav:focus-visible{outline:3px solid var(--accent);outline-offset:2px}

.carousel__dots{display:flex;gap:7px;justify-content:center;margin-top:14px;flex-wrap:wrap}
.carousel__dots button{
  width:8px;height:8px;padding:0;border:0;border-radius:999px;cursor:pointer;
  background:var(--line);transition:width .25s ease,background .25s ease;
}
.carousel__dots button[aria-selected="true"]{width:22px;background:var(--accent)}
.sec--dark .carousel__dots button{background:rgba(255,255,255,.25)}
.sec--dark .carousel__dots button[aria-selected="true"]{background:var(--accent)}
.carousel__dots button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}

/* ---------- before / after slide: square, like theirs ---------- */
.ba{margin:0;border-radius:var(--r);overflow:hidden;background:var(--tint);aspect-ratio:1/1}
.ba img{width:100%;height:100%;object-fit:cover;display:block}

/* ---------- instagram-style comment card ---------- */
.cmt{
  display:flex;gap:10px;align-items:flex-start;
  background:#12100F;border:1px solid rgba(255,255,255,.08);
  border-radius:12px;padding:12px 13px;min-height:96px;
}
.cmt__av{flex:0 0 auto;width:30px;height:30px;border-radius:999px;background:linear-gradient(135deg,var(--accent),#0B6B45)}
.cmt__b{flex:1 1 auto;min-width:0}
.cmt__meta{margin:0 0 3px;font-size:12.5px;color:rgba(255,255,255,.55);display:flex;gap:7px;align-items:center}
.cmt__meta b{color:#fff;font-weight:700}
.cmt__t{margin:0 0 6px;font-size:13.5px;line-height:1.6;color:rgba(255,255,255,.92)}
.cmt__act{margin:0;font-size:11.5px;color:rgba(255,255,255,.4)}
.cmt__like{
  flex:0 0 auto;align-self:center;font-size:12px;font-weight:700;color:rgba(255,255,255,.75);
  display:flex;flex-direction:column;align-items:center;gap:3px;
}
.cmt__like::before{content:"";width:15px;height:15px;background:#E0245E;
  -webkit-mask:var(--heart) center/contain no-repeat;mask:var(--heart) center/contain no-repeat}
:root{--heart:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 21s-8-4.9-8-10.4A4.6 4.6 0 0 1 12 7a4.6 4.6 0 0 1 8 3.6C20 16.1 12 21 12 21Z'/%3E%3C/svg%3E")}

/* ============================================================
   MOTION — initial states. GSAP clears them; if GSAP fails to load
   the fallback below makes everything visible again so the page is
   never left blank because an animation library 404'd.
   ============================================================ */
@media (prefers-reduced-motion:no-preference){
  html.gsap-ready [data-anim]{opacity:0}
  html.gsap-ready .hero__copy > *{opacity:0}
}

/* ============================================================
   TABLET  ≥640px
   ============================================================ */
@media (min-width:640px){
  :root{--wave-h:52px}
  .trustbar__row{display:flex;justify-content:center;gap:24px}
  .trustbar__item{white-space:nowrap}
  .carousel{--per:2.1;--gap:20px}
  .pills{grid-template-columns:repeat(3,1fr)}
  .tl{grid-template-columns:repeat(3,1fr)}
  .rail > *{flex-basis:46%}
  .ftr__grid{grid-template-columns:2fr 1fr 1fr}
  .ing{display:table}
}

/* ============================================================
   DESKTOP  ≥900px — matches the measured desktop type scale
   ============================================================ */
@media (min-width:900px){
  :root{--sec-y:76px;--wave-h:60px}

  /* 3-up with a 28px gutter — the competitor's exact grid */
  .carousel{--per:3;--gap:28px;padding-inline:0}
  .carousel__nav{display:grid}
  .carousel__nav--prev{inset-inline-end:-22px}
  .carousel__nav--next{inset-inline-start:-22px}
  .carousel__slide{scroll-snap-align:start}
  .cmt{min-height:104px}
  body{font-size:16px;line-height:1.8}
  h1{font-size:39px}
  h2{font-size:31.2px;line-height:1.23}
  .lede{font-size:18px}

  .hdr__nav{display:flex}
  .hero{padding-block:56px 72px}
  .hero__grid{grid-template-columns:1fr 1fr;align-items:center;gap:48px}
  .hero__media{order:0}
  .hero__media img{max-height:460px}
  .hero .btn--block{display:inline-flex;width:auto}
  .price{font-size:38px}

  .plans{grid-template-columns:repeat(3,1fr);gap:16px;align-items:stretch}
  .plan{display:flex}
  .plan__body{display:flex;flex-direction:column;justify-content:center;width:100%}
  .plan__head{flex-direction:column;align-items:flex-start;gap:2px}
  .sec--buy .btn--block{max-width:420px;margin-inline:auto}

  .rail > *{flex-basis:31%}
  .sticky{display:none}       /* desktop has the inline CTAs in view */
  .ftr{margin-bottom:0}
}

/* ---------- motion ---------- */
@media (prefers-reduced-motion:no-preference){
  [data-reveal]{opacity:0;transform:translateY(14px);transition:opacity .5s ease,transform .5s ease}
  [data-reveal].is-in{opacity:1;transform:none}
}
