/* סבב 3 — רכיבים משותפים לפי הריג'קטים של דניאל.
   אין צבע אחיד, אין כרטיס לבן ריק, אייקונים מ־Phosphor. כל אתר מגדיר את משתני --k-* */

:root {
  --k-ink: #222; --k-muted: #555; --k-acc: #e8553a; --k-acc2: #f5a623; --k-soft: #fff4e6; --k-card: #fff;
  --k-line: rgba(0,0,0,.12); --k-btn: var(--k-acc); --k-btn-text: #fff; --k-radius: 22px;
  --noise: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 .055 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- כניסה מיידית בטעינה ---------- */
.enter { opacity: 0; transform: translateY(30px); transition: opacity .9s cubic-bezier(.2,.8,.2,1), transform 1.1s cubic-bezier(.2,.8,.2,1); transition-delay: var(--d, 0s); }
.enter.from-s { transform: translateX(70px); }   /* מהצד של תחילת השורה (ימין) */
.enter.from-e { transform: translateX(-70px); }  /* מהצד של סוף השורה (שמאל) */
.enter.pop { transform: scale(.72) rotate(-6deg); }
.enter.rise { transform: translateY(80px) scale(.96); }
html.loaded .enter { opacity: 1; transform: none; }
.lm { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.lm > span { display: inline-block; transform: translateY(108%); transition: transform 1.1s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
html.loaded .lm > span { transform: none; }

/* טקסטורה: גרעין עדין מעל גרדיאנט, כדי ששום רקע לא ייראה שטוח */
.tex { position: relative; isolation: isolate; }
.tex::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: var(--noise); pointer-events: none; mix-blend-mode: multiply; }

/* ---------- כרטיסי תמונה (רפרנס "סוזי") + קרוסלה ---------- */
.cc-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 34px; }
.cc-nav { display: flex; gap: 12px; flex: none; }
.cc-nav button { width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; background: var(--k-acc2); color: var(--k-ink); box-shadow: 0 10px 22px -10px rgba(0,0,0,.35); transition: transform .3s, background .3s; }
.cc-nav button:hover { transform: scale(1.08); }
.cc-nav button:disabled { opacity: .35; cursor: default; transform: none; }
.cc-nav svg { width: 22px; height: 22px; }
.cc-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 340px); gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 6px 46px; margin: 0 -6px; scrollbar-width: none; scroll-padding-inline: 6px; }
.cc-row::-webkit-scrollbar { display: none; }
.cc { scroll-snap-align: start; position: relative; background: var(--k-card); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 22px 44px -26px rgba(40,20,0,.45), 0 2px 0 rgba(255,255,255,.6) inset; transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.cc:hover { transform: translateY(-8px); box-shadow: 0 34px 60px -30px rgba(40,20,0,.55); }
.cc-img { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; }
.cc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.8,.2,1); }
.cc:hover .cc-img img { transform: scale(1.07); }
.cc-badge { position: absolute; top: 14px; inset-inline-end: 14px; min-width: 52px; height: 52px; padding: 0 12px; border-radius: 999px; display: grid; place-items: center; background: var(--k-acc); color: #fff; font-weight: 800; font-size: .88rem; letter-spacing: .01em; box-shadow: 0 8px 18px -8px rgba(0,0,0,.5); }
.cc-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cc-body h3 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.01em; }
.cc-body p { font-size: 1rem; line-height: 1.62; color: var(--k-muted); }
.cc-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 700; font-size: .95rem; text-decoration: none; background: var(--k-btn); color: var(--k-btn-text); box-shadow: 0 12px 24px -14px var(--k-btn); transition: transform .3s, box-shadow .3s; }
.cc-btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -14px var(--k-btn); }
.cc-btn svg { width: 18px; height: 18px; }

/* ---------- חלון פרטים (dialog) ---------- */
dialog.dlg { margin: auto; border: 0; padding: 0; border-radius: 26px; width: min(900px, 92vw); max-height: 90vh; overflow: auto; background: var(--k-card); color: var(--k-ink); box-shadow: 0 50px 100px -40px rgba(0,0,0,.6); }
dialog.dlg::backdrop { background: rgba(28,18,8,.55); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
dialog.dlg[open] { animation: dlg-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
.dlg-in { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 420px; }
.dlg-img { position: relative; min-height: 260px; }
.dlg-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dlg-txt { padding: 40px 38px 36px; display: flex; flex-direction: column; gap: 12px; }
.dlg-k { font-size: .85rem; font-weight: 700; color: var(--k-acc); letter-spacing: .04em; }
.dlg-txt h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); line-height: 1.15; letter-spacing: -0.01em; }
.dlg-txt > p { font-size: 1.05rem; line-height: 1.65; color: var(--k-muted); }
.dlg-steps { list-style: none; padding: 0; margin: 8px 0 0; counter-reset: s; display: grid; gap: 12px; }
.dlg-steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr; gap: 12px; align-items: start; line-height: 1.55; }
.dlg-steps li::before { content: counter(s); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .9rem; color: #fff; background: linear-gradient(135deg, var(--k-acc), var(--k-acc2)); }
.dlg-x { position: absolute; top: 14px; inset-inline-start: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; background: rgba(255,255,255,.92); color: var(--k-ink); display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.dlg-x svg { width: 20px; height: 20px; }
.dlg-link { margin-top: 10px; }

/* ---------- מרכז + נקודות (רפרנס הבולדוג) ---------- */
.hub { position: relative; display: grid; grid-template-columns: 1fr minmax(300px, 420px) 1fr; align-items: center; gap: 2vw; }
.hub-col { list-style: none; padding: 0; margin: 0; display: grid; gap: 7vh; position: relative; z-index: 2; }
.hub-item { display: flex; align-items: center; gap: 18px; }
.hub-a .hub-item { justify-content: flex-start; text-align: end; flex-direction: row; }
.hub-a .hub-item:nth-child(2) { transform: translateX(46px); }
.hub-b .hub-item:nth-child(2) { transform: translateX(-46px); }
.hub-a .hub-item .hub-txt { order: 1; } .hub-a .hub-item .hub-ic { order: 2; }
.hub-b .hub-item { text-align: start; }
.hub-ic { flex: none; width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: radial-gradient(circle at 30% 25%, color-mix(in srgb, var(--k-acc) 75%, #fff), var(--k-acc) 70%); box-shadow: 0 14px 26px -12px var(--k-acc); }
.hub-ic svg { width: 36px; height: 36px; }
.hub-txt b { display: block; font-size: 1.12rem; line-height: 1.3; margin-bottom: 4px; }
.hub-txt span { display: block; font-size: .95rem; line-height: 1.5; color: var(--k-muted); max-width: 26ch; }
.hub-a .hub-txt span { margin-inline-start: auto; }
.hub-center { position: relative; aspect-ratio: 1; display: grid; place-items: end center; z-index: 1; }
.hub-blob { position: absolute; inset: 12% 2% 4% 2%; background: radial-gradient(circle at 35% 30%, var(--k-acc2), color-mix(in srgb, var(--k-acc2) 70%, var(--k-acc))); border-radius: 58% 42% 46% 54% / 52% 58% 42% 48%; animation: hub-morph 12s ease-in-out infinite alternate; }
@keyframes hub-morph { to { border-radius: 44% 56% 58% 42% / 46% 42% 58% 54%; transform: rotate(6deg); } }
.hub-center img { position: relative; width: 92%; height: auto; filter: drop-shadow(0 26px 30px rgba(0,0,0,.22)); }
.hub-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.hub-lines path { fill: none; stroke: var(--k-acc2); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 0.1 10; opacity: 0; transition: opacity .8s; }
.hub.on .hub-lines path { opacity: 1; }
.hub .hub-item { opacity: 0; transition: opacity .7s, transform .9s cubic-bezier(.2,.8,.2,1); }
.hub.on .hub-item { opacity: 1; }
.hub.on .hub-a .hub-item:nth-child(1) { transition-delay: .1s; } .hub.on .hub-a .hub-item:nth-child(2) { transition-delay: .25s; } .hub.on .hub-a .hub-item:nth-child(3) { transition-delay: .4s; }
.hub.on .hub-b .hub-item:nth-child(1) { transition-delay: .18s; } .hub.on .hub-b .hub-item:nth-child(2) { transition-delay: .33s; } .hub.on .hub-b .hub-item:nth-child(3) { transition-delay: .48s; }

/* ---------- מעגל אייקונים (רפרנס "How to feed") ---------- */
.orbit { --size: min(600px, 88vw); --btn: 82px; position: relative; width: var(--size); height: var(--size); margin: 0 auto; }
.orbit-ring { position: absolute; inset: calc(var(--btn) / 2); border-radius: 50%; border: 1.5px dashed var(--k-line); }
.orbit-ring::after { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--k-acc2) 22%, transparent), transparent 70%); }
.orbit-btn { --a: calc(var(--i) * 360deg / var(--n) - 90deg); position: absolute; left: 50%; top: 50%; width: var(--btn); height: var(--btn); margin: calc(var(--btn) / -2); border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center; color: var(--k-acc); background: var(--k-card); box-shadow: 0 10px 24px -14px rgba(0,0,0,.35);
  transform: rotate(var(--a)) translate(calc(var(--size) / 2 - var(--btn) / 2)) rotate(calc(-1 * var(--a))); transition: background .4s, color .4s, box-shadow .4s, scale .4s; }
.orbit-btn svg { width: 38px; height: 38px; }
.orbit-btn:hover { scale: 1.08; }
.orbit-btn[aria-pressed="true"] { background: var(--k-ink); color: #fff; scale: 1.18; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); }
.orbit-center { position: absolute; inset: 24%; display: grid; place-items: center; text-align: center; }
.orbit-center article { display: none; }
.orbit-center article.on { display: block; animation: orb-in .5s cubic-bezier(.2,.8,.2,1); }
@keyframes orb-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.orbit-center .ok { font-size: .82rem; font-weight: 700; color: var(--k-acc); letter-spacing: .05em; }
.orbit-center h3 { font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.15; margin: 8px 0 10px; letter-spacing: -0.01em; }
.orbit-center p { font-size: 1rem; line-height: 1.6; color: var(--k-muted); }
.orbit-hint { text-align: center; margin-top: 18px; font-size: .9rem; color: var(--k-muted); }

/* ---------- ציר זמן לאורך ---------- */
.vtl { position: relative; list-style: none; padding: 0; margin: 0 auto; max-width: 1120px; }
.vtl-line, .vtl-fill { position: absolute; top: 0; left: 50%; width: 4px; margin-left: -2px; border-radius: 4px; }
.vtl-line { bottom: 0; background: var(--k-line); }
.vtl-fill { height: 0; background: linear-gradient(var(--k-acc2), var(--k-acc)); box-shadow: 0 0 18px color-mix(in srgb, var(--k-acc) 50%, transparent); }
.vtl-item { position: relative; display: grid; grid-template-columns: 1fr 140px 1fr; align-items: center; min-height: 34vh; }
.vtl-node { grid-column: 2; grid-row: 1; justify-self: center; position: relative; z-index: 2; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; color: var(--k-acc); background: var(--k-card); box-shadow: 0 0 0 8px color-mix(in srgb, var(--k-acc2) 18%, transparent), 0 16px 30px -16px rgba(0,0,0,.4); transform: scale(.7); transition: transform .6s cubic-bezier(.3,1.6,.5,1), background .5s, color .5s; }
.vtl-node svg { width: 44px; height: 44px; }
.vtl-item.on .vtl-node { transform: scale(1); color: #fff; background: linear-gradient(135deg, var(--k-acc2), var(--k-acc)); }
.vtl-card { grid-column: 1; grid-row: 1; padding-inline-end: 10px; transform: translateX(40px); transition: transform .9s cubic-bezier(.2,.8,.2,1); }   /* נגישות 12.10: בלי שקיפות, כדי שהטקסט יעמוד בניגודיות AA גם לפני שהשלב פעיל */
.vtl-item:nth-child(even of .vtl-item) .vtl-card { grid-column: 3; padding-inline: 10px 0; transform: translateX(-40px); }
.vtl-item.on .vtl-card { opacity: 1; transform: none; }
.vtl-side { grid-column: 3; grid-row: 1; opacity: 0; transition: opacity .8s .15s; }
.vtl-item:nth-child(even of .vtl-item) .vtl-side { grid-column: 1; }
.vtl-item.on .vtl-side { opacity: 1; }
.vtl-num { font-size: clamp(4rem, 8vw, 7rem); font-weight: 900; line-height: .9; color: transparent; -webkit-text-stroke: 2px color-mix(in srgb, var(--k-acc) 45%, transparent); }
.vtl-k { font-size: .85rem; font-weight: 700; color: var(--k-acc); letter-spacing: .05em; }
.vtl-card h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); line-height: 1.15; margin: 8px 0 10px; letter-spacing: -0.01em; }
.vtl-card p { font-size: 1.05rem; line-height: 1.65; color: var(--k-muted); max-width: 40ch; }
.vtl-card img { width: 100%; max-width: 420px; aspect-ratio: 16/10; object-fit: cover; border-radius: 18px; margin-top: 16px; }

/* ---------- גלילה לצד (מוצמד) ---------- */
.hs { position: relative; }
.hs-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; }
.hs-track { display: flex; gap: 34px; will-change: transform; padding-inline: 7vw; }

/* ---------- סרט רץ ---------- */
.mq { overflow: hidden; white-space: nowrap; direction: ltr; }
.mq-in { display: inline-flex; gap: 0; animation: mq 34s linear infinite; }
.mq-in > span { direction: rtl; display: inline-flex; align-items: center; gap: 26px; padding-inline: 26px; }
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 860px) {
  .hub { grid-template-columns: 1fr; gap: 26px; }
  .hub-center { order: -1; max-width: 340px; margin: 0 auto; width: 100%; }
  .hub-col { gap: 18px; }
  .hub-a .hub-item, .hub-b .hub-item { transform: none !important; flex-direction: row; text-align: start; justify-content: flex-start; }
  .hub-a .hub-item .hub-txt { order: 2; } .hub-a .hub-item .hub-ic { order: 1; }
  .hub-a .hub-txt span { margin-inline-start: 0; }
  .hub-ic { width: 60px; height: 60px; } .hub-ic svg { width: 28px; height: 28px; }
  .hub-lines { display: none; }
  .orbit { --btn: 58px; }
  .orbit-btn svg { width: 26px; height: 26px; }
  /* הטקסט יורד מתחת לעיגול: העיגול תופס את ה־padding העליון, והטקסט זורם אחריו */
  .orbit { height: auto; padding-top: var(--size); }
  .orbit-ring { bottom: auto; height: calc(var(--size) - var(--btn)); }
  .orbit-btn { top: calc(var(--size) / 2); }
  .orbit-center { position: static; margin-top: calc(var(--size) * .09 + 20px); }   /* האייקון הנבחר גדל (scale) וזז החוצה בכ־9% מהעיגול */
  .orbit-center article { display: block; grid-area: 1 / 1; visibility: hidden; }   /* כל ההערות באותה משבצת: הגובה לא קופץ כשמתחלפים */
  .orbit-center article.on { visibility: visible; }
  .orbit-wrap { display: grid; }
  .vtl-line, .vtl-fill { left: auto; right: 34px; margin: 0; }
  .vtl-item { grid-template-columns: 72px 1fr; min-height: 0; margin-bottom: 44px; align-items: start; }
  .vtl-node { grid-column: 1; width: 64px; height: 64px; justify-self: center; } .vtl-node svg { width: 30px; height: 30px; }
  .vtl-card, .vtl-item:nth-child(even of .vtl-item) .vtl-card { grid-column: 2; padding: 0; transform: none; opacity: 1; }
  .vtl-side { display: none; }
  .dlg-in { grid-template-columns: 1fr; }
  .dlg-img { min-height: 210px; }
  .dlg-txt { padding: 26px 22px 28px; }
  .cc-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .enter, .lm > span { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hub-blob, .mq-in { animation: none; }
  .hub .hub-item { opacity: 1; }
  .vtl-card { opacity: 1; transform: none; }
}

/* כרטיסי קרוסלה: שומרים גם על ההופעה ההדרגתית (המעבר של .cc דרס את של .rv) */
.cc.rv { transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1), box-shadow .45s; }
.cc-fit .cc-nav { visibility: hidden; }

/* =================== סבב 4: צבעים אחידים ברכיבים המשותפים =================== */
.dlg-steps li::before { background: var(--k-acc); }
.hub-ic { background: var(--k-acc); }
.hub-blob { background: var(--k-acc2); }
.orbit-ring::after { background: color-mix(in srgb, var(--k-acc2) 16%, transparent); }
.vtl-fill { background: var(--k-acc); box-shadow: none; }
.vtl-item.on .vtl-node { background: var(--k-acc); }
.cc-btn { box-shadow: 0 8px 18px -9px var(--k-shadow, rgba(0,0,0,.3)); }
.cc-btn:hover { box-shadow: 0 12px 22px -9px var(--k-shadow, rgba(0,0,0,.35)); }
.cc-nav button { background: var(--k-btn); color: var(--k-btn-text); box-shadow: 0 8px 18px -9px var(--k-shadow, rgba(0,0,0,.3)); }

/* =================== סבב 5: רכיבים מהראיונות =================== */
/* כפתור וואטסאפ צף — צבע הכפתור של האתר + צל עדין */
.wa-float {
  position: fixed; z-index: 40; bottom: 18px; inset-inline-end: 18px;
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px 12px 16px; border-radius: 999px;
  background: var(--k-btn); color: var(--k-btn-text); font-weight: 700; text-decoration: none; font-size: .98rem;
  box-shadow: 0 10px 22px -10px var(--k-shadow, rgba(0,0,0,.35));
  opacity: 0; transform: translateY(14px) scale(.96); pointer-events: none;
  transition: opacity .35s ease, transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease;
}
.wa-float svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.wa-float.show { opacity: 1; transform: none; pointer-events: auto; }
.wa-float:hover { box-shadow: 0 14px 26px -10px var(--k-shadow, rgba(0,0,0,.4)); }
.wa-float:focus-visible { outline: 3px solid var(--k-ink, #222); outline-offset: 3px; }
@media (max-width: 560px) { .wa-float { padding: 13px; bottom: 14px; inset-inline-end: 14px; } .wa-float span { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float { transition: opacity .2s ease; transform: none; } }
@media (prefers-reduced-motion: reduce) { dialog.dlg[open], .orbit-center article.on { animation: none; } } /* QA 11.10 */

/* שורת פרטים בתחתית כרטיס (משך, גודל קבוצה, מחיר) */
.cc-meta { display: block; margin-top: 10px; font-size: .9rem; font-weight: 700; color: var(--k-acc); }
.cc-meta b { font-weight: 800; }
