/* =========================================================================
   Sections ported from apostherapy.co.il (21.10.26):
   - .apos-how   "מערכת נעלי אפוס - איך זה עובד?" image demo, STAGE 01-04
   - .apos-funds "טיפול אפוסתרפיה - בהשתתפות כל קופות החולים", all 6 logos
   Self-contained: own tokens, so nothing here leaks into the rest of lp2.
   ========================================================================= */
.apos-how, .apos-funds{
  --ah-blue-800:#0047ba; --ah-blue-700:#0058b8; --ah-blue-600:#0071e3; --ah-blue-300:#a5cfff; --ah-blue-050:#f0f7ff;
  --ah-red:#d8463b; --ah-strong:#1a1f28; --ah-mut:#515c6e; --ah-line:#edf0f5;
  --ah-on-dark-mut:#b8d3f7; --ah-e-out:cubic-bezier(.16,.84,.36,1);
}

/* ---------- how it works ---------- */
.apos-how .anatomy__layout{display:grid;grid-template-columns:1fr 1fr;gap:clamp(32px,5vw,72px);align-items:center}
.apos-how .anatomy__visual{position:relative;border-radius:24px;overflow:hidden;background:linear-gradient(150deg,#232b36,#171c24);padding:30px;
  box-shadow:0 18px 48px rgba(20,25,35,.12),0 6px 16px rgba(20,25,35,.07)}
.apos-how .anatomy__visual .cap{margin:16px 0 0;color:var(--ah-on-dark-mut);font-size:13.5px;text-align:center;letter-spacing:.02em}
.apos-how .stage--img{position:relative;display:grid;aspect-ratio:3/2;max-width:560px;width:100%;margin-inline:auto;
  padding:clamp(16px,2.4vw,28px);border-radius:24px;overflow:hidden;
  background:linear-gradient(135deg,rgba(255,255,255,.86),rgba(244,248,252,.6));border:1px solid rgba(255,255,255,.9);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 16px 44px rgba(10,23,38,.12);transition:transform .35s var(--ah-e-out)}
.apos-how .stage__imgs{position:absolute;inset:clamp(16px,2.4vw,28px)}
.apos-how .si{position:absolute;inset:0;display:grid;place-items:center;opacity:0;transition:opacity .7s var(--ah-e-out)}
.apos-how .si img{width:100%;height:100%;object-fit:contain;display:block}
.apos-how .stage--img[data-stage="1"] .si[data-si="1"],
.apos-how .stage--img[data-stage="2"] .si[data-si="2"],
.apos-how .stage--img[data-stage="3"] .si[data-si="2"],
.apos-how .stage--img[data-stage="4"] .si[data-si="4"]{opacity:1}
.apos-how .stage__aim{position:absolute;z-index:2;border:2px dashed var(--ah-red);border-radius:50%;opacity:0;transition:opacity .45s;pointer-events:none}
.apos-how .stage__aim.a1{width:26%;height:26%;top:26%;left:28%}
.apos-how .stage__aim.a2{width:24%;height:24%;bottom:22%;right:30%}
.apos-how .stage--img[data-stage="3"] .stage__aim{opacity:.85;animation:ah-aim 1.4s ease-in-out infinite}
@keyframes ah-aim{50%{transform:scale(1.1)}}
.apos-how .stage__badge{position:absolute;z-index:3;top:14px;right:14px;font-family:'Heebo',sans-serif;font-weight:700;font-size:11px;letter-spacing:1px;color:var(--ah-blue-700);
  background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.9);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:8px;padding:5px 11px;direction:ltr}
.apos-how .stage__cap{position:absolute;z-index:3;bottom:14px;left:0;right:0;margin-inline:auto;width:max-content;max-width:84%;text-align:center;
  font-size:14px;font-weight:700;color:var(--ah-blue-800);background:rgba(255,255,255,.86);border:1px solid rgba(255,255,255,.95);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-radius:999px;padding:7px 18px;box-shadow:0 6px 18px rgba(10,23,38,.14)}
.apos-how .demo-toggle{position:absolute;z-index:3;top:12px;left:12px;display:inline-flex;align-items:center;gap:7px;cursor:pointer;
  background:rgba(255,255,255,.72);border:1px solid rgba(255,255,255,.9);color:var(--ah-blue-700);-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  border-radius:999px;padding:7px 13px;font-family:inherit;font-weight:600;font-size:12.5px;transition:background .2s,box-shadow .2s}
.apos-how .demo-toggle:hover{background:#fff}
.apos-how .demo-toggle:focus-visible{outline:3px solid var(--ah-blue-300);outline-offset:2px}
.apos-how .anatomy__steps{display:grid;gap:12px}
.apos-how .astep{display:flex;gap:15px;align-items:flex-start;text-align:start;width:100%;cursor:pointer;
  background:rgba(255,255,255,.92);border:1px solid rgba(16,32,52,.08);border-radius:16px;padding:15px 18px;
  transition:border-color .25s,background .35s,box-shadow .35s}
.apos-how .astep__n{font-family:var(--font-display);font-weight:800;font-size:24px;color:var(--ah-blue-700);line-height:1;flex:0 0 auto;min-width:34px}
.apos-how .astep__t{margin:0;font-family:var(--font-display);font-weight:700;font-size:18px;color:var(--ah-strong);line-height:1.3}
.apos-how .astep__d{display:block;font-size:15px;color:var(--ah-mut);margin-top:5px;line-height:1.6}
.apos-how .astep:hover{border-color:var(--ah-blue-300)}
.apos-how .astep:focus-visible{outline:2px solid var(--ah-blue-600);outline-offset:2px}
.apos-how .astep.is-active{border-color:var(--ah-blue-300);background:linear-gradient(135deg,rgba(255,255,255,.96),var(--ah-blue-050));
  box-shadow:0 4px 14px rgba(20,25,35,.07),0 1px 4px rgba(20,25,35,.05)}
@media (max-width:900px){.apos-how .anatomy__layout{grid-template-columns:1fr}.apos-how .anatomy__visual{padding:18px}}
@media (max-width:560px){.apos-how .astep{padding:13px 15px}.apos-how .astep__t{font-size:16.5px}}

/* ---------- health funds ---------- */
.apos-funds{padding-block:clamp(44px,6vw,76px) clamp(30px,4vw,56px)}
.apos-funds .funds__head{text-align:center;margin-bottom:30px}
.apos-funds .funds__head h2{margin:0;font-family:var(--font-display);font-weight:700;font-size:clamp(22px,3vw,30px);color:var(--ah-strong);line-height:1.25}
.apos-funds .funds__head p{color:var(--ah-mut);margin:8px 0 0;font-size:16px}
.apos-funds .funds__row{display:flex;align-items:center;justify-content:center;gap:clamp(16px,3vw,40px) clamp(18px,4vw,44px);flex-wrap:wrap}
.apos-funds .funds__break{flex-basis:100%;height:0}
.apos-funds .funds__break ~ .afund{margin-top:-12px}
.apos-funds .afund{height:74px;display:grid;place-items:center;padding:14px 18px;background:#fff;border:1px solid var(--ah-line);border-radius:16px;
  box-shadow:0 1px 2px rgba(20,25,35,.05),0 1px 3px rgba(20,25,35,.04);transition:transform .25s,box-shadow .25s}
.apos-funds .afund:hover{transform:translateY(-3px);box-shadow:0 4px 14px rgba(20,25,35,.07),0 1px 4px rgba(20,25,35,.05)}
.apos-funds .afund img{max-height:46px;width:auto;object-fit:contain;display:block}
@media (max-width:560px){.apos-funds .afund{height:64px;padding:10px 14px}.apos-funds .afund img{max-height:38px;max-width:132px}.apos-funds .funds__break{display:none}.apos-funds .funds__break ~ .afund{margin-top:0}}

@media (prefers-reduced-motion:reduce){
  .apos-how .si,.apos-how .stage--img{transition:none}
  .apos-how .stage--img[data-stage="3"] .stage__aim{animation:none}
}

/* ---------- form fixes, 21.10.26 ---------- */
/* region buttons: an old rule (style.css, .radios .radio label{display:inline-flex}) shrank each
   button to the width of its word, so they rendered as narrow ovals with the text touching the edge */
.radios .radio label{display:flex;width:100%;min-height:48px;padding:0 12px;border-radius:12px;font-size:16px;white-space:nowrap}
.radio input:checked+label{color:var(--accent-text)}

/* after the lead is sent: real, labelled buttons instead of two tiny banner images in circles */
.cta-form.is-done{display:flex;flex-direction:column;justify-content:center}
.cta-form.is-done .bdika-text{margin:0;text-align:center}
.bdika-text .thanks-ic{width:64px;height:64px;margin:0 auto 18px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent-text)}
.bdika-text .thanks-sub{margin:14px 0 0;color:var(--muted);font-size:16.5px;text-align:center}
.bdika-text .links{display:flex;flex-wrap:wrap;gap:12px;justify-content:center;margin-top:22px}
.bdika-text .links a.link{width:auto;height:auto;min-height:48px;border-radius:999px;display:inline-flex;align-items:center;gap:10px;padding:11px 20px;
  background:#fff;border:1px solid var(--line-2);color:var(--text);font:700 16px var(--font-body);text-decoration:none;
  transition:transform .2s,border-color .2s,box-shadow .2s}
.bdika-text .links a.link svg{width:22px;height:22px;flex:0 0 auto}
.bdika-text .links a.link:hover{transform:translateY(-2px);border-color:var(--accent);box-shadow:0 8px 20px -12px rgba(20,45,80,.35)}
.bdika-text .links a.link--fb{background:#1877f2;border-color:#1877f2;color:#fff}
.bdika-text .links a.link--fb:hover{border-color:#1877f2}
.bdika-text .links a.link:focus-visible{outline:3px solid var(--accent-2);outline-offset:3px}
.bdika-text .thanks-tel{display:block;margin-top:18px;color:var(--muted);font-size:15px;text-align:center}
.bdika-text .thanks-tel a{color:var(--text);font-weight:700;text-decoration:none}
@media (max-width:520px){.bdika-text .links{flex-direction:column;align-items:stretch}.bdika-text .links a.link{justify-content:center}}
