/* =========================================================================
   torbot-demo.css · עיצוב הדמו
   כל מה שהוא תוכן נראה כמו באתר החי: אותם צבעים, אותן קופסאות, בלי צל.
   הקובץ מוסיף רק את הסצנות (הטלפון והיומן) ואת התנועה בגלילה, וכל צבע
   בסצנות לקוח מהצבעים שכבר מוגדרים באתר.
   נטען אחרי הסגנונות הקיימים של האתר. scrollcraft.css יושב מתחת לכל
   הכללים האלה (שכבה בשם engine), ולכן לא דורס שום כלל קיים.
   ========================================================================= */

:root{
  --sc-canvas:var(--paper); --sc-surface:var(--panel);
  --sc-ink:var(--ink); --sc-ink-soft:var(--muted);
  --sc-accent:var(--brass); --sc-accent-ink:#ffffff;
  --sc-font-display:var(--display); --sc-font-text:var(--body);
  --hdr:72px;               /* גובה הסרגל העליון, מתעדכן מהסקריפט */
  --vh:100vh;
  --e-out:cubic-bezier(.23,1,.32,1);
  --sh-1:0 1px 2px rgb(14 42 35 / .06),0 8px 18px -10px rgb(14 42 35 / .16);
  --sh-2:0 2px 4px rgb(14 42 35 / .05),0 20px 38px -20px rgb(14 42 35 / .28);
  --sh-3:0 4px 10px rgb(14 42 35 / .07),0 40px 72px -34px rgb(14 42 35 / .42);
}
@supports (height:100svh){:root{--vh:100svh}}

/* ------------------------------------------------- כמו באתר החי ----------
   המנוע צובע גם חלקים של הדפדפן (סימון טקסט, תיבות סימון, סמן הכתיבה,
   פס הגלילה, פינות מסגרת הפוקוס, צבע השדות). באתר החי אין כללים כאלה,
   ולכן כאן הם חוזרים בדיוק למה שהדפדפן מציג באתר החי. */
::selection{background-color:revert;color:revert}
:root{accent-color:auto;caret-color:auto}
html{scrollbar-color:auto;scrollbar-width:auto}
:where(:focus-visible){border-radius:revert}
:where(button,input,select,textarea){color:revert;font:revert}
body{letter-spacing:normal;-webkit-font-smoothing:auto;text-rendering:auto;font-synthesis-weight:auto}
:where(a){text-decoration-thickness:revert;text-underline-offset:revert}
:where(table){font-variant-numeric:revert}
/* גודלי הטקסט והכותרות נשארים של האתר, כדי ש"הגדלת טקסט" תגדיל הכול בדיוק כמו היום */

main>section:not(.legal-page){padding-block:clamp(60px,7vw,100px)}

/* ------------------------------------------------------------- כפתורים -- */
.btn{transition:background-color .18s var(--e-out),border-color .18s var(--e-out),box-shadow .18s var(--e-out),transform .12s var(--e-out)}
.btn:active{transform:translateY(1px)}

/* ------------------------------------------------------------------ hero --
   שלוש שכבות בעומק: יומן שבועי בהיר מאחור, הטלפון עם השיחה באמצע, בועת
   "מקליד" קדימה. בגלילה השכבות נפרדות קצת; הטקסט לא זז. */
.hero{padding-block:clamp(36px,5vw,76px) clamp(40px,5vw,72px);overflow:clip}
@media (min-width:861px){.hero-grid{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(32px,5vw,84px)}}
.hero-scene{--hs-pt:30px;position:relative;isolation:isolate;width:100%;padding-top:var(--hs-pt);display:flex;flex-direction:column;align-items:center}
.hs-plane{position:absolute;pointer-events:none}
.hs-far{z-index:0;inset-block:-1% 12%;inset-inline:10% -27%}
.hs-far .hs-in{width:100%;height:100%;transform:translate3d(calc(var(--hx,0) * -14px),calc(var(--hy,0) * -10px),0) rotate(-5deg) scale(.95);filter:drop-shadow(0 26px 30px rgb(14 42 35 / .10))}
.hs-sheet{width:100%;height:100%}
.hs-mid{position:relative;z-index:1;width:100%;max-width:360px}
.hs-mid .phone{box-shadow:var(--sh-3)}
/* הבועה הקרובה יושבת בפינה העליונה הריקה של הטלפון (כמו "מקליד…" בכותרת של וואטסאפ) ועולה מעליו בגלילה,
   כך שלעולם לא מסתירה טקסט של השיחה */
.hs-near{z-index:2;inset-inline-end:max(4px,calc(50% - 212px));top:calc(var(--hs-pt,30px) - 6px)}
.hs-near .hs-in{transform:translate3d(calc(var(--hx,0) * 20px),calc(var(--hy,0) * 15px),0)}
.typing{display:inline-flex;align-items:center;gap:6px;padding:14px 17px;background:#fff;border-radius:20px 20px 20px 6px;box-shadow:var(--sh-2)}
.typing i,.pk-typing i{display:block;width:8px;height:8px;border-radius:50%;background:#76808a}
html.sc-motion .typing i,html.sc-motion .pk-typing i{animation:tdot 1.3s var(--e-out) infinite}
.typing i:nth-child(2),.pk-typing i:nth-child(2){animation-delay:.16s}
.typing i:nth-child(3),.pk-typing i:nth-child(3){animation-delay:.32s}
@keyframes tdot{0%,60%,100%{transform:translateY(0);opacity:.55}30%{transform:translateY(-4px);opacity:1}}
.hero-scene .cap{position:relative;z-index:3;margin-top:16px;padding:2px 10px;border-radius:8px}
@media (max-width:860px){
  .hero{padding-block:26px 56px}
  .hero-scene{--hs-pt:26px}
  .hs-far{inset-block:5% 16%;inset-inline:-16% -16%}
}

/* ===================================================================== */
/* השיא: "השיחה שקובעת את עצמה"                                          */
/* ===================================================================== */
.peak .peak-body{display:grid;grid-template-columns:minmax(0,4fr) minmax(0,7fr);column-gap:clamp(28px,4.5vw,72px);align-items:stretch;margin-top:6px}
/* השלבים בקופסאות כמו באתר. במחשב הקופסאות אחת מתחת לשנייה, ליד הטלפון. */
@media (min-width:861px){.peak .peak-steps{grid-template-columns:1fr}}
/* העיגול של כל שלב בצבעים של האתר; השלב שמתנהל עכשיו מודגש בירוק של הכפתורים */
.peak .peak-steps li::before{transition:background-color .3s var(--e-out),color .3s var(--e-out)}
.peak .peak-steps li.is-active::before{background:var(--brass);color:#fff}
/* בגלילה במחשב כל קופסה עומדת באמצע קטע גלילה משלה, כדי שהשלב שקוראים יהיה השלב שקורה בטלפון */
@media (min-width:861px){
  html.sc-motion .peak .peak-steps{display:flex;flex-direction:column;gap:0}
  html.sc-motion .peak .peak-steps li{margin-block:max(11px,calc(((var(--vh) - var(--hdr)) * var(--L,1) - var(--box,187px)) / 2))}
}
.peak .peak-steps li:nth-child(1){--L:.92}
.peak .peak-steps li:nth-child(2){--L:1.08}
.peak .peak-steps li:nth-child(3){--L:1.3}

.peak{--stage-h:min(660px,calc(var(--vh) - var(--hdr) - 44px))}
.peak-track{position:relative;min-width:0}
/* ההדמיה היא איור (מוסתר מקורא מסך, והתוכן שלה כתוב בטקסט בכותרת הראשית). היא נשארת בקנה מידה
   קבוע כמו תמונה, כך שהגדלת טקסט מגדילה את כל הטקסט האמיתי בלי לשבור את האיור. */
.peak-stage{position:relative;display:flex;flex-direction:column;gap:12px;font-size:16px;line-height:1.5}
.peak-stage .chat{font-size:.95em}
.peak-stage .chat-top small{font-size:.82em}
.peak-stage .m time{font-size:.76em}
.peak-stage .chat-in span{font-size:.93em}
.peak-stage .cap{font-size:.85em}
html.sc-motion .peak-stage{position:sticky;z-index:1;height:var(--stage-h);top:calc(var(--hdr) + (var(--vh) - var(--hdr) - var(--stage-h)) / 2)}
.peak-stage .cap{margin:0;text-align:center}
.pk-now{display:none;margin:0}
.pk-scene{position:relative;flex:1;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,.92fr);gap:clamp(18px,2.6vw,40px);align-items:center;transform-origin:50% 0;transform:scale(var(--pk-fit,1))}
.pk-phone{margin:0;width:100%;max-width:330px;justify-self:center;display:flex;flex-direction:column;box-shadow:var(--sh-3)}
html.sc-motion .pk-phone{height:100%;max-height:610px}
.pk-phone .chat{flex:1;display:flex;flex-direction:column;min-height:0}
.pk-msgs{flex:1;min-height:0;justify-content:flex-end;overflow:hidden}
.pk-msgs .pk-typing{display:none;align-items:center;gap:5px;padding:12px 14px}
html.sc-motion .pk-msgs .m:not(.is-in){display:none}
html.sc-motion .pk-msgs .pk-typing.is-in{display:flex}
html.sc-motion .pk-msgs .m.is-in{animation:pkIn .34s var(--e-out) backwards}
@keyframes pkIn{from{opacity:0;transform:translateY(12px) scale(.96)}to{opacity:1;transform:none}}
.pk-src{font-variant-numeric:tabular-nums}

/* היומן: לבן כמו הכרטיסים באתר, תורים תפוסים בצבע הרקע הבהיר של האתר, השעות שהוצעו במסגרת ירוקה */
.pk-cal{width:100%;max-width:300px;justify-self:center;background:var(--panel);border:1px solid var(--line);border-radius:20px;box-shadow:var(--sh-2);padding:14px 14px 16px;display:flex;flex-direction:column;gap:12px}
html.sc-motion .pk-cal{height:min(100%,540px)}
.pk-cal-top{display:flex;align-items:center;gap:10px;font-family:var(--display);font-size:1.08em;color:var(--ink)}
.pk-ic{width:34px;height:34px;border-radius:10px;background:var(--brass-soft);color:#0a5a3e;display:grid;place-items:center;flex:none}
.pk-ic svg{width:18px;height:18px}
.pk-day{position:relative;flex:1;min-height:360px;border-radius:12px;overflow:hidden}
html.sc-motion .pk-day{min-height:0}
.pk-line{position:absolute;inset-inline:0;top:calc(var(--t) * 100%);height:1px;background:var(--line)}
.pk-busy,.pk-slot{position:absolute;inset-inline:6px;top:calc(var(--a) * 100% + 3px);height:calc((var(--b) - var(--a)) * 100% - 6px);border-radius:9px}
.pk-busy{background:var(--mist);border:1px solid var(--line)}
.pk-slot{display:flex;align-items:center;justify-content:space-between;gap:6px;padding-inline:12px;border:1.5px dashed #b4c8bf;background:var(--paper);
  color:var(--muted);font-weight:700;font-variant-numeric:tabular-nums;line-height:1.2;
  transition:background-color .3s var(--e-out),border-color .3s var(--e-out),color .3s var(--e-out)}
.pk-slot.is-offered{border-color:var(--brass);background:#f4faf6;color:#0a5a3e}
.pk-slot.is-booked{border-style:solid;border-color:var(--brass);background:var(--brass);color:#fff}
.pk-slot.is-landed{animation:pkLand .55s var(--e-out)}
@keyframes pkLand{0%{transform:scale(1.07)}100%{transform:none}}
.pk-ok{display:none;width:20px;height:20px;flex:none}
.pk-ok svg{width:100%;height:100%}
.pk-slot.is-booked .pk-ok{display:block}
.pk-scan{position:absolute;inset-inline:0;top:0;height:22%;opacity:0;pointer-events:none;
  background:linear-gradient(to bottom,rgb(10 125 85 / 0),rgb(10 125 85 / .13),rgb(10 125 85 / 0));transform:translate3d(0,calc(var(--scan,-1) * 100%),0)}
.pk-scan.is-on{opacity:1}
.pk-chip{position:absolute;top:0;left:0;z-index:4;padding:3px 7px;border-radius:999px;background:var(--brass);color:#fff;font-weight:700;
  font-variant-numeric:tabular-nums;line-height:1.3;white-space:nowrap;box-shadow:var(--sh-2);display:none;pointer-events:none;will-change:transform}
.pk-chip.is-on{display:block}
.a11y-contrast .pk-busy{background:#fff;border-color:#000}
.a11y-contrast .pk-slot{border-color:#000;color:#000}
.a11y-contrast .pk-slot.is-offered{background:#fff;color:#000;border-width:2.5px}
.a11y-contrast .pk-slot.is-booked{background:#000;color:#fff}
.a11y-contrast .pk-chip{background:#000;color:#fff}
.a11y-contrast .pk-ic{background:#fff;color:#000;border:2px solid #000}

@media (max-width:860px){
  .peak .peak-body{display:block}
  .peak-track{margin-top:22px}
  /* משאירים מקום לשני הכפתורים הצפים בתחתית המסך (וואטסאפ ונגישות) */
  .peak{--stage-h:calc(var(--vh) - var(--hdr) - 18px - 76px - env(safe-area-inset-bottom,0px))}
  html.sc-motion .peak-track{height:calc(var(--stage-h) + var(--vh) * 2.7)}
  html.sc-motion .peak-stage{top:calc(var(--hdr) + 9px)}
  html.sc-motion .pk-now{display:flex;justify-content:center;min-height:32px}
  .pk-now span{display:none;padding:4px 14px;border-radius:999px;background:var(--brass-soft);color:#0a5a3e;font-weight:700;font-size:.95em}
  .pk-now span.is-on{display:inline-block;animation:pkIn .3s var(--e-out) backwards}
  .pk-scene{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) auto;gap:12px;align-items:stretch}
  .pk-phone{max-width:350px}
  html.sc-motion .pk-phone{max-height:none;min-height:0}
  .pk-cal{max-width:350px;padding:10px 12px 12px;gap:8px;border-radius:16px}
  html.sc-motion .pk-cal{height:auto}
  .pk-cal-top{font-size:.98em}
  .pk-ic{width:28px;height:28px;border-radius:8px}
  .pk-day,html.sc-motion .pk-day{min-height:0;height:58px;flex:none}
  /* בטלפון היומן הוא פס אופקי שמראה רק את אחר הצהריים (15:15 עד 18:30), כדי שהחלונות יהיו רחבים */
  .pk-off-m{display:none}
  .pk-line{inset-inline:auto;inset-inline-start:calc(var(--mt,0) * 100%);top:0;bottom:0;width:1px;height:auto}
  .pk-busy,.pk-slot{inset-inline:auto;inset-inline-start:calc(var(--ma,0) * 100% + 2px);width:calc((var(--mb,0) - var(--ma,0)) * 100% - 4px);top:5px;height:auto;bottom:5px}
  .pk-slot{justify-content:center;padding-inline:2px;font-size:.9em}
  .pk-slot.is-booked .pk-ok{display:none}
  .pk-scan{inset-inline:auto;inset-inline-start:0;top:0;bottom:0;height:auto;width:22%;
    background:linear-gradient(to left,rgb(10 125 85 / 0),rgb(10 125 85 / .14),rgb(10 125 85 / 0));transform:translate3d(calc(var(--scan,-1) * -100%),0,0)}
}

/* -------------------------------------------------------- סוגי עסקים -- */
.types-sec{overflow-x:clip}
main>.peak+.types-sec{padding-top:clamp(40px,5vw,72px)}

/* -------------------------------------------- מה המערכת עושה: רשימות -- */
@media (min-width:980px){
  #what .group{display:grid;grid-template-columns:minmax(170px,230px) minmax(0,1fr);column-gap:clamp(32px,4vw,64px);align-items:start}
  #what .group>h3{position:sticky;top:calc(var(--hdr) + 28px)}
  #what .group>.grid{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:30px}
}

/* ------------------------------------------ רשימת המתנה: הסימון מתקדם -- */
.wait-sec .slot{position:relative;padding-inline-start:42px}
.slot-rail{position:absolute;inset-inline-start:22px;top:34px;bottom:34px;width:2px;border-radius:2px;background:var(--line)}
.slot-rail::after{content:"";position:absolute;inset:0;border-radius:inherit;background:var(--brass);transform-origin:50% 0;transform:scaleY(var(--rail,1))}
.wait-sec .slot>div{position:relative}
.wait-sec .slot>div::before{content:"";position:absolute;inset-inline-start:-25px;top:50%;width:10px;height:10px;margin-top:-5px;border-radius:50%;background:var(--paper);border:2px solid var(--brass)}
html.sc-motion .wait-sec .slot>div{transition:background-color .35s var(--e-out),color .35s var(--e-out)}
html.sc-motion .wait-sec .slot>div:not(.is-on){background:var(--mist);color:var(--ink)}
html.sc-motion .wait-sec .slot>div:not(.is-on)::before{border-color:#b4c8bf}
.a11y-contrast .slot-rail::after{background:#000}

/* הדפים המשפטיים נשארים בדיוק כמו באתר: אין כאן אף כלל שנוגע בהם */

/* =====================================================================
   בלי תנועה: "הפחתת תנועה" במכשיר, "עצירת תנועה" בתפריט, או כשאין JS.
   הכול גלוי, במקום, בלי שום אפקט גלילה.
   ===================================================================== */
html:not(.sc-motion) [data-sc-in],
html:not(.sc-motion) [data-sc-stagger]>*,
html:not(.sc-motion) [data-sc-cue]{opacity:1!important;transform:none!important;transition:none!important}
html:not(.sc-motion) [data-sc-parallax],
html:not(.sc-motion) [data-sc-tilt],
html:not(.sc-motion) .types-sec .types li{transform:none!important}
