/* דף המכירה. נשען על tool.css ומוסיף רק את מה שייחודי לו. */

.sec { padding: 62px 0; }
.sec + .sec { border-top: 1px solid rgba(0, 80, 116, .10); }
.sec.warm { background: var(--cream); border-top: 0; }
.sec.deep { background: var(--teal); color: var(--cream); border-top: 0; }
.sec.deep h2, .sec.deep h3 { color: var(--cream); }
.sec.deep .lede { color: rgba(249, 231, 204, .82); }

.sec h2 {
  font-size: clamp(27px, 6.6vw, 38px);
  font-weight: 700;
  color: var(--teal);
  text-wrap: balance;
  margin-bottom: 16px;
}

.sec p { margin: 0 0 15px; }
.sec p:last-child { margin-bottom: 0; }

/*
 * תווית הסקשן ככרטיס קטן שנד על וו, כמו כרטיסי השלבים.
 * הרקע לבן גם על הסקשן הכהה, ולכן הצבע נשאר אותו אלמוג כהה בכל מקום.
 * צהוב על לבן היה בלתי קריא.
 */
.eyebrow {
  display: inline-block;
  background: #fff;
  border-radius: 12px;
  padding: 9px 18px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .04em;
  color: var(--coral-ink);
  margin-bottom: 18px;
  box-shadow: 0 2px 7px rgba(27, 42, 51, .12), 0 9px 22px rgba(27, 42, 51, .10);
  transform-origin: 50% -15px;
  animation: sway 6.4s ease-in-out infinite;
  will-change: transform;
}
.sec:nth-of-type(even) .eyebrow { animation-duration: 5.5s; animation-delay: -2.1s; }
.sec:nth-of-type(3n) .eyebrow   { animation-duration: 7.1s; animation-delay: -3.6s; }
.sec.deep .eyebrow { color: var(--coral-ink); }

@media (prefers-reduced-motion: reduce) {
  .eyebrow { animation: none; transform: rotate(-1.4deg); }
}

/* גיבור */

.top {
  min-height: 92svh;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center; padding: 50px 0;
  position: relative;
  overflow: hidden;
}

/* תצלום רגוע שנמוג אל הנייר, רק מתחת למסך הראשון ולא לאורך כל הדף */
.top::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  pointer-events: none;
  background: url("../img/library/sheket_01.webp") center 42% / cover no-repeat;
  opacity: .11;
  filter: saturate(.35);
  -webkit-mask-image: linear-gradient(to top, #000 4%, transparent 100%);
  mask-image: linear-gradient(to top, #000 4%, transparent 100%);
}
.top .wrap { position: relative; z-index: 1; }
.top .display { margin-bottom: 6px; }
.top .btn-primary { margin: 32px auto 0; }

/* שלבים */

/*
 * השלבים ככרטיסים שנדים על וו.
 * ציר הסיבוב יושב מעל הכרטיס (transform-origin עם ערך שלילי), ולכן
 * הסיבוב מרגיש כמו תלייה ולא כמו סיבוב סביב המרכז.
 * לכל כרטיס משך והשהיה שונים במעט, אחרת חמישה כרטיסים נדים כמו מסך אחד.
 */
.steps { counter-reset: s; margin: 26px 0 0; padding: 0; list-style: none; }

.steps li {
  counter-increment: s;
  background: #fff;
  border-radius: 12px;
  padding: 15px 17px;
  margin-bottom: 12px;
  font-size: 16.5px;
  line-height: 1.45;
  box-shadow: 1px 3px 10px rgba(27, 42, 51, .10);
  display: flex;
  gap: 12px;
  align-items: center;
  transform-origin: 50% -16px;
  animation: sway 5.2s ease-in-out infinite;
  will-change: transform;
}
.steps li:last-child { margin-bottom: 0; }

.steps li::before {
  content: counter(s);
  flex: 0 0 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--coral);
  color: #fff;
  font-family: Heebo, sans-serif;
  font-weight: 700;
  font-size: 15px;
  display: grid;
  place-items: center;
}

.steps li:nth-child(1) { animation-duration: 5.6s; animation-delay: -0.2s; }
.steps li:nth-child(2) { animation-duration: 4.9s; animation-delay: -1.4s; }
.steps li:nth-child(3) { animation-duration: 6.1s; animation-delay: -2.7s; }
.steps li:nth-child(4) { animation-duration: 5.2s; animation-delay: -0.9s; }
.steps li:nth-child(5) { animation-duration: 5.8s; animation-delay: -3.3s; }

@keyframes sway {
  0%, 100% { transform: rotate(-0.85deg); }
  50%      { transform: rotate(0.85deg); }
}

@media (prefers-reduced-motion: reduce) {
  .steps li { animation: none; }
  .steps li:nth-child(odd)  { transform: rotate(-0.6deg); }
  .steps li:nth-child(even) { transform: rotate(0.5deg); }
}

/*
 * תצלום קטן בצד הטקסט, כמו תמונה שהודבקה לשולי העמוד.
 * float: left ב-RTL מניח אותה בצד שמאל והטקסט זורם סביבה מימין,
 * ולכן הרווח אל הטקסט הוא margin-right ולא margin-left.
 * קטנות בכוונה. הן אמורות להרגיש כמו נוכחות ולא כמו איור.
 */
.side {
  float: left;
  width: 152px;
  height: auto;
  margin: 6px 20px 12px 0;
  border-radius: 3px;
  box-shadow: 0 2px 6px rgba(27, 42, 51, .14), 0 10px 26px rgba(27, 42, 51, .13);
  transform: rotate(-2.2deg);
}
.side.tilt { transform: rotate(1.9deg); }

/* בלי זה הצף חורג מהסקשן ונכנס לסקשן הבא */
.wrap::after { content: ""; display: block; clear: both; }

@media (max-width: 480px) {
  .side { width: 118px; margin: 4px 16px 10px 0; }
}

/* ניגודים: לא זה, אלא זה */

.swap { margin: 26px 0 0; display: grid; gap: 14px; }
.swap div {
  background: #fff; border: 1px solid var(--lightblue);
  border-radius: 14px; padding: 16px 18px;
}
.swap .no { color: var(--muted); font-size: 15.5px; text-decoration: line-through; text-decoration-color: rgba(184,69,46,.5); }
.swap .yes { font-weight: 600; color: var(--teal); margin-top: 6px; font-size: 17px; }

/* דוגמאות */

/*
 * דוגמה אחת גדולה ולא שלוש. שלושה לוחות זה לצד זה במובייל מצטמצמים
 * לרוחב של אגודל, ואי אפשר לקרוא עליהם כלום. עדיף אחד שרואים.
 */
.showcase { margin: 28px 0 0; text-align: center; }
.showcase img {
  width: 100%;
  max-width: 440px;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  transform: rotate(-1.2deg);
  box-shadow: 0 3px 10px rgba(27, 42, 51, .14), 0 22px 50px rgba(27, 42, 51, .18);
}
.showcase figcaption {
  font-size: 14.5px;
  color: var(--muted);
  margin: 26px auto 0;
  max-width: 420px;
  line-height: 1.55;
  text-wrap: balance;
}

/* ליטל */

.about { display: flex; gap: 22px; align-items: flex-start; flex-wrap: wrap; }
.about .txt { flex: 1 1 280px; }

/* פוטר */

.foot { background: var(--teal); color: rgba(249,231,204,.78); padding: 34px 0; font-size: 14.5px; text-align: center; }
.foot a { color: var(--cream); }
.foot p { margin: 6px 0; }

/* סרגל דביק במובייל */

.sticky {
  position: fixed; inset: auto 0 0 0; z-index: 90;
  background: rgba(253, 248, 240, .94);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--lightblue);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  display: none;
}
.sticky .btn { width: 100%; }
@media (max-width: 760px) {
  .sticky[data-on] { display: block; }
  body { padding-bottom: 0; }
}
