/* ============================================================
   cubes — שפת הקוביות של האתר · משותף
   ------------------------------------------------------------
   נולד בעמודי השירות (06.10.2026) ועבר לכאן ביום שאחרי, כשעמודי
   המחשבונים נדרשו לאותה שפה. מקור אמת אחד — שינוי מספר כאן משנה
   את כל האתר, במקום override בכל עמוד.
   המספרים נמדדו מול Mercury · Linear · Ramp: רדיוס 20 @1440,
   ריפוד 34/32/36, אריח אייקון 56.
   ============================================================ */

.sv__kicker{
  display:flex;align-items:center;gap:0.521vw;
  color:var(--purple);font-weight:700;
  font-size:clamp(12.5px,0.729vw,15px);margin-bottom:0.833vw;
}
.sv__kicker::before{content:"";width:0.417vw;min-width:6px;aspect-ratio:1;
  border-radius:50%;background:var(--purple)}

.cubes{
  list-style:none;margin:0;padding:0;
  display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,21vw),1fr));
  gap:1.111vw;
}
.cube{
  position:relative;overflow:hidden;
  display:flex;flex-direction:column;
  background:var(--white);border:1px solid var(--rule-on-light);
  border-radius:1.389vw;              /* 20px @1440 */
  padding:2.361vw 2.222vw 2.5vw;      /* 34/32/36 @1440 — Linear עובד ב-32 */
  transition:border-color 220ms ease,transform 220ms var(--ease-out-soft),
             box-shadow 220ms ease;
}
/* הילה רכה שנדלקת בריחוף — במקום צל כבד ש-§18 אוסר */
.cube::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background:radial-gradient(70% 90% at 82% 0%, rgba(160,112,255,.13) 0%, rgba(160,112,255,0) 62%);
  opacity:0;transition:opacity 220ms ease;
}
.cube:only-child{max-width:31vw;margin-inline:auto}  /* כרטיס בודד — ממורכז כמו שאר העמוד */

.cube__top{position:relative;z-index:1;
  display:flex;align-items:flex-start;justify-content:space-between;gap:1vw}

/* ---- האייקון כעוגן ----
   אריח 3.889vw (75px @1920 · 56px @1440). */
/* 11.10.2026 — דניאל: "שלא יהיה ריבוע עם האייקונים בכל האתר, שלא יהיה AI".
   אריח צבעוני מאחורי אייקון הוא הסימן המובהק של תבנית. האייקון עומד
   לבד, בקו דק, גדול יותר כדי לפצות על הנוכחות שהאריח נתן. */
.cube__tile{
  display:inline-flex;align-items:center;justify-content:center;
  width:2.5vw;min-width:34px;aspect-ratio:1;
  transition:transform 320ms var(--ease-out-soft);
}
.cube__tile svg{width:100%;height:100%;fill:none;stroke:var(--purple);color:var(--purple);
  stroke-width:1.3;stroke-linecap:round;stroke-linejoin:round}
.cube h3{
  position:relative;z-index:1;
  color:var(--ink);font-weight:700;margin-top:1.736vw;
  font-size:clamp(18.5px,1.319vw,26px);line-height:1.3;
}
.cube p{
  position:relative;z-index:1;
  margin-top:0.764vw;color:var(--text-muted-light);line-height:1.75;
  font-size:max(16px,0.938vw);flex:1;
}
.cube p b{color:var(--ink);font-weight:700}

/* הקובייה ממורכזת — נקבע בעמודי השירות 06.10 והפך לחלק מהשפה */
.cube{text-align:center}
.cube__top{justify-content:center}

/* ---- ריחוף: האריח נדלק, הכרטיס עולה 2px ---- */
.cube:hover{
  border-color:rgba(160,112,255,.5);transform:translateY(-2px);
  box-shadow:0 .104vw .313vw rgba(15,7,35,.05), 0 .833vw 2.083vw rgba(15,7,35,.08);
}
.cube:hover::before{opacity:1}
.cube:hover .cube__tile{transform:translateY(-2px)}

@media (prefers-reduced-motion:reduce){
  .cube,.cube__tile,.cube::before{transition:none}
  .cube:hover,.cube:hover .cube__tile{transform:none}
}

@media (max-width:1100px){
  .cubes{grid-template-columns:repeat(auto-fit,minmax(min(100%,26vw),1fr))}
  .cube:only-child{max-width:46vw}
}

@media (max-width:768px){
  .sv__kicker{margin-bottom:3vw;gap:2vw}
  .cubes{grid-template-columns:1fr;gap:3.5vw}
  .cube{border-radius:4.5vw;padding:7vw 6vw 7.5vw}
  .cube:only-child{max-width:none}
  .cube__tile{width:10vw;min-width:36px}
  .cube h3{margin-top:5.5vw;font-size:clamp(18.5px,5vw,22px)}
  .cube p{margin-top:2vw}
  .cube:hover{transform:none;box-shadow:none}
  .cube:hover .cube__tile{transform:none}
}
