/* ==========================================================================
   edge2edge — מערכת העיצוב (v2)
   מקור: מותג/brand-system.md (נעול) + "מיפוי עיצוב ושינוי מלא" (27.09.2026)
   שכבות: tokens → base → components → motifs → layout
   חוקים: בלי ריווח אותיות · בלי גרדיאנט על כפתורים · בלי הילות · בלי אימוג'י
          זהב לתגיות בלבד · צל אחד בלבד (פאנל כהה / כרטיס מחיר) · אנימציה אחת (משיכת המגב)
   ========================================================================== */

@layer tokens, base, components, motifs, layout;

/* ---------- fonts: subset עברי, woff2, 2 משקלים לכל משפחה ---------- */
@font-face {
  font-family: "Assistant";
  src: url("../fonts/assistant-he-700-800.woff2") format("woff2");
  font-weight: 700 800;
  font-display: swap;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-he-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Heebo";
  src: url("../fonts/heebo-he-500.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}

/* ========================================================================== */
@layer tokens {
  :root {
    color-scheme: light;

    /* צבע — מותג בלבד. אין קרם. */
    --c-bg: #F4F9FB;          /* רקע דף · ~60% */
    --c-surface: #FFFFFF;     /* משטחים · ~15% */
    --c-ink: #001F3B;         /* טקסט ראשי + הפאנל הכהה היחיד · ~15% */
    --c-navy: #0E3A57;        /* מקור לטקסט משני וקווים */
    --c-ink-2: #3C6078;       /* טקסט משני = נייבי 80% על הרקע (6.2:1) */
    --c-cyan: #00B3D2;        /* CTA ראשי, נבחר · עד 5% · טקסט עליו: נייבי */
    --c-sky: #1CA7E0;         /* קישור, התקדמות */
    --c-cyan-text: #009AB5;   /* ציאן לטקסט גדול ולטבעת פוקוס על רקע בהיר — 3.2:1 (הציאן של המותג 2.4:1, נכשל) */
    --c-cyan-lt: #7FCDEC;     /* בוצע/נבחר; טקסט משני על כהה */
    --c-gold: #EAB73E;        /* תגיות בלבד · עד 1% */
    --c-line: rgba(14, 58, 87, .10);
    --c-line-2: rgba(14, 58, 87, .12);
    --c-line-ctrl: #7A8FA0;       /* גבול פקדים — 3.2:1 מול הרקע (WCAG 1.4.11) */
    --c-cyan-35: rgba(0, 179, 210, .35);
    --c-cyan-lt-25: rgba(127, 205, 236, .25);
    --c-on-dark-line: rgba(255, 255, 255, .12);
    --c-on-dark-fill: rgba(255, 255, 255, .06);

    /* טיפוגרפיה */
    --f-head: "Assistant", "Heebo", Arial, sans-serif;
    --f-body: "Heebo", Arial, sans-serif;

    --t-price: 800 56px/1.1 var(--f-head);
    --t-h1: 800 30px/1.15 var(--f-head);
    --t-h2: 700 22px/1.25 var(--f-head);
    --t-h3: 700 18px/1.3 var(--f-head);
    --t-body: 400 17px/1.6 var(--f-body);
    --t-sub: 400 15px/1.5 var(--f-body);
    --t-label: 500 14px/1.3 var(--f-body);
    --t-min: 400 13px/1.4 var(--f-body);
    --t-btn: 700 17px/1 var(--f-head);
    --t-tag: 700 13px/1 var(--f-head);

    /* מרווחים 8 / 12 / 16 / 24 / 32 / 48 / 72 */
    --s-1: 8px; --s-2: 12px; --s-3: 16px; --s-4: 24px;
    --s-5: 32px; --s-6: 48px; --s-7: 72px;
    --gutter: 20px;
    --section: var(--s-6);
    --max: 1120px;
    --max-form: 560px;

    /* רדיוס: 24 למכלים · 14 לפקדים · גלולה לתגיות בלבד */
    --r-box: 24px;
    --r-ctrl: 14px;
    --r-pane: 8px;
    --r-pill: 999px;

    /* הצל היחיד */
    --shadow: 0 1px 2px rgba(0, 31, 59, .06), 0 12px 32px -16px rgba(0, 31, 59, .22);

    /* פקדים */
    --h-ctrl: 56px;
    --tap: 44px;

    /* תנועה — משיכת המגב */
    --wipe-angle: 12deg;
    --wipe-dur: 600ms;
    --wipe-ease: cubic-bezier(.22, .8, .24, 1);

    /* מעטפת עליונה/תחתונה (iOS) */
    --safe-b: env(safe-area-inset-bottom, 0px);
  }

  @media (min-width: 600px) {
    :root { --t-h1: 800 36px/1.12 var(--f-head); --t-h2: 700 25px/1.22 var(--f-head); }
  }
  @media (min-width: 960px) {
    :root {
      --t-price: 800 80px/1.1 var(--f-head);
      --t-h1: 800 clamp(44px, 4.4vw, 64px)/1.08 var(--f-head);
      --t-h2: 700 28px/1.2 var(--f-head);
      --t-h3: 700 20px/1.3 var(--f-head);
      --t-body: 400 18px/1.6 var(--f-body);
      --t-sub: 400 16px/1.5 var(--f-body);
      --section: var(--s-7);
      --h-ctrl: 52px;
    }
  }
}

/* ========================================================================== */
@layer base {
  *, *::before, *::after { box-sizing: border-box; }
  html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 16px;
  }
  body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-ink);
    font: var(--t-body);
    letter-spacing: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  h1, h2, h3, p, ul, ol, figure { margin: 0; }
  ul, ol { padding: 0; list-style: none; }
  img, svg, video { display: block; max-width: 100%; }
  img { height: auto; }
  a { color: var(--c-sky); text-underline-offset: 3px; }
  a:hover { color: var(--c-navy); }
  button, input, select, textarea { font: inherit; color: inherit; }
  button, a, input, label, summary, select { touch-action: manipulation; }

  /* ספרות: טבלאיות, ומספרי טלפון תמיד LTR */
  .num, [data-num] { font-variant-numeric: tabular-nums; }
  .price { font: var(--t-price); font-variant-numeric: tabular-nums; white-space: nowrap; }
  bdi.ltr, .ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }

  /* פוקוס נראה לכל אלמנט אינטראקטיבי — אין outline:none בלי תחליף */
  :focus-visible {
    outline: 3px solid var(--c-cyan-text);
    outline-offset: 2px;
    border-radius: 4px;
  }
  .panel :focus-visible { outline-color: var(--c-cyan-lt); }

  h1, h2, h3, .h1, .h2, .h3 { text-wrap: balance; }
  p, .sub, .min, small { text-wrap: pretty; }
  .nowrap { white-space: nowrap; }
  .h1 { font: var(--t-h1); }
  .h2 { font: var(--t-h2); }
  .h3 { font: var(--t-h3); }
  .sub { font: var(--t-sub); color: var(--c-ink-2); }
  .min { font: var(--t-min); color: var(--c-ink-2); }
  /* המוטיב הדו-גוני — ל-H1 בלבד */
  /* ציאן המותג #00B3D2 על הרקע = 2.4:1, נכשל גם לטקסט גדול (תקן נגישות ישראלי = AA).
     לכן בטקסט: גוון כהה במעט של אותו ציאן, 3.2:1. בכפתורים ובמילויים — ציאן המותג. */
  .h1 .tone-2 { color: var(--c-cyan-text); }
  .panel .h1 .tone-2 { color: var(--c-cyan); }

  .sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .skip {
    position: absolute; inset-inline-start: var(--s-2); top: -100px; z-index: 50;
    background: var(--c-ink); color: #fff; padding: var(--s-2) var(--s-3);
    border-radius: var(--r-ctrl); font: var(--t-label); text-decoration: none;
  }
  .skip:focus { top: var(--s-2); color: #fff; }
}

/* ========================================================================== */
@layer components {

  /* ---- כפתור ---- */
  .btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s-1);
    min-height: var(--h-ctrl); padding: 0 var(--s-4);
    border-radius: var(--r-ctrl); border: 1.5px solid transparent;
    font: var(--t-btn); text-decoration: none; text-align: center;
    cursor: pointer; user-select: none;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
  }
  .btn--primary { background: var(--c-cyan); color: var(--c-ink); }
  @media (hover: hover) { .btn--primary:hover { background: #00A3C0; color: var(--c-ink); } }
  .btn--primary:active { background: #0096B0; }
  .btn--secondary { background: transparent; color: var(--c-ink); border-color: var(--c-ink); }
  .btn--secondary:hover { background: rgba(0, 31, 59, .04); color: var(--c-ink); }
  .btn--block { display: flex; width: 100%; }
  .btn--icon { width: var(--h-ctrl); padding: 0; flex: 0 0 auto; }
  .btn svg { flex: 0 0 auto; max-width: none; }
  .btn[disabled], .btn[aria-disabled="true"] {
    background: var(--c-cyan-35); border-color: transparent; color: var(--c-ink); cursor: not-allowed;
  }
  /* שורה שאומרת מה חסר — חובה מתחת לכל כפתור מושבת */
  .btn-hint { font: var(--t-min); color: var(--c-ink-2); margin-top: var(--s-1); }
  @media (min-width: 960px) {
    .btn { padding: 0 var(--s-5); }
    .btn--block { max-width: 360px; }
  }
  /* על הפאנל הכהה */
  .panel .btn--secondary { color: #fff; border-color: rgba(255, 255, 255, .6); }
  .panel .btn--secondary:hover { background: var(--c-on-dark-fill); color: #fff; }

  /* ---- קישור טקסט ---- */
  .link { display: inline-flex; align-items: center; min-height: var(--tap); align-self: flex-start; color: var(--c-ink); font: var(--t-label); text-decoration: underline; text-decoration-color: var(--c-sky); text-decoration-thickness: 2px; }
  .link:hover { color: var(--c-navy); }
  .link--quiet {
    color: var(--c-ink); text-decoration: none; font: var(--t-label);
    display: inline-flex; align-items: center; min-height: var(--tap);
    padding: 0 var(--s-3); border: 1.5px solid var(--c-line-ctrl); border-radius: var(--r-ctrl);
  }
  .link--quiet:hover { border-color: var(--c-ink); color: var(--c-ink); }

  /* ---- שדה קלט ---- */
  .field { display: flex; flex-direction: column; gap: var(--s-1); max-width: var(--max-form); }
  .field__label { font: var(--t-label); color: var(--c-ink); }
  .field__input {
    height: var(--h-ctrl); padding: 0 var(--s-3);
    background: var(--c-surface); border: 1.5px solid var(--c-line-ctrl); border-radius: var(--r-ctrl);
    font: var(--t-body); line-height: 1; color: var(--c-ink);
  }
  .field__input::placeholder { color: #6B8497; opacity: 1; }
  .field__input:focus { outline: none; border: 2px solid var(--c-cyan-text); padding: 0 calc(var(--s-3) - .5px); }
  .field__input:focus-visible { outline: none; }
  .field__input[type="tel"] { direction: ltr; text-align: end; }
  .field__error { font: var(--t-min); color: #B42318; }
  .field__input[aria-invalid="true"] { border-color: #B42318; }

  /* שורת הסכמה: יעד מגע 44+ כולל התווית */
  .consent { display: flex; gap: var(--s-2); align-items: flex-start; min-height: var(--tap); padding: var(--s-1) 0; font: var(--t-sub); cursor: pointer; }
  .consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--c-ink); flex: 0 0 auto; }
  .consent a { color: var(--c-ink); text-decoration-color: var(--c-sky); text-decoration-thickness: 2px; white-space: nowrap; }

  /* ---- בחירה אחת מתוך כמה (radio אמיתי + label) ---- */
  .choices { border: 0; margin: 0; padding: 0; min-width: 0; }
  .choices legend:not(.sr-only) { display: block; width: 100%; padding: 0; margin-bottom: var(--s-1); font: var(--t-label); color: var(--c-ink); }
  .choices legend .min { display: block; margin-top: 2px; }
  .choices__opts { display: grid; gap: var(--s-1); grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .choices__opts--1 { grid-template-columns: 1fr; }
  .choice { position: relative; }
  .choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
  .choice span {
    display: flex; flex-direction: column; justify-content: center; gap: 2px;
    min-height: var(--h-ctrl); padding: 10px var(--s-3);
    background: var(--c-surface); border: 1.5px solid var(--c-line-ctrl); border-radius: var(--r-ctrl);
    font: 500 16px/1.25 var(--f-body); color: var(--c-ink); text-align: start;
  }
  .choice small { font: var(--t-min); color: var(--c-ink-2); }
  .choice span { position: relative; padding-inline-end: 44px; }
  .choice input:checked + span { border: 2px solid var(--c-ink); background: #E3F4FB; padding: 9.5px calc(var(--s-3) - .5px); padding-inline-end: 43.5px; }
  .choice input:checked + span::after {
    content: ""; position: absolute; inset-inline-end: 14px; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%;
    background: var(--c-ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat;
  }
  .choice input:focus-visible + span { outline: 3px solid var(--c-cyan-text); outline-offset: 2px; }

  /* ---- מונה (מספר עם פלוס/מינוס) ---- */
  .counter { display: grid; grid-template-columns: 1fr auto; gap: var(--s-2); align-items: center; padding: var(--s-2) 0; border-bottom: 1px solid var(--c-line); }
  .counter:last-child { border-bottom: 0; }
  .counter__label { font: 500 16px/1.3 var(--f-body); }
  .counter__label small { display: block; font: var(--t-min); color: var(--c-ink-2); margin-top: 2px; }
  .counter__ctl { display: flex; align-items: center; gap: 4px; direction: ltr; }
  .counter__btn {
    width: var(--tap); height: var(--tap); border-radius: var(--r-ctrl); border: 1.5px solid var(--c-line-ctrl);
    background: var(--c-surface); display: grid; place-items: center; cursor: pointer; padding: 0;
  }
  .counter__btn:disabled { opacity: .35; cursor: default; }
  .counter__btn svg { width: 18px; height: 18px; }
  .counter__val { width: 44px; height: var(--tap); text-align: center; border: 0; background: transparent; font: 800 20px/1 var(--f-head); color: var(--c-ink); font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
  .counter__val::-webkit-outer-spin-button, .counter__val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
  .counter__btn[aria-disabled="true"] { opacity: .35; cursor: default; }
  @media (max-width: 300px) { .counter { grid-template-columns: 1fr; } .counter__ctl { justify-self: start; } }

  /* ---- כרטיס ---- */
  .card {
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: var(--r-box);
    padding: 20px; text-align: start;
  }
  @media (min-width: 960px) { .card { padding: 28px; } }

  /* ---- הפאנל הכהה: אחד בכל מסך, נושא את הצל היחיד ---- */
  .panel {
    background: var(--c-ink); color: #fff; border-radius: var(--r-box);
    padding: var(--s-4) 22px; box-shadow: var(--shadow);
  }
  .panel .sub, .panel p { color: var(--c-cyan-lt); }
  .panel__rule { border: 0; border-top: 1px solid var(--c-on-dark-line); margin: 0; }
  @media (min-width: 960px) { .panel { padding: var(--s-6); } }

  /* ---- תג ---- */
  .tag {
    display: inline-flex; align-items: center; height: 26px; padding: 0 10px;
    border-radius: var(--r-pill); font: var(--t-tag); white-space: nowrap;
    background: var(--c-cyan-lt-25); color: var(--c-ink);
  }
  .tag--gold { background: var(--c-gold); color: var(--c-ink); }   /* "מכוסה" · "מחיר נעול" · "הערכה" בלבד */
  .tag--muted { background: rgba(14, 58, 87, .08); color: var(--c-navy); }
  .tag--on-dark { background: rgba(0, 31, 59, .85); color: #fff; }
  .tag--cyan { background: var(--c-cyan); color: var(--c-ink); }

  /* ---- רשימת וי ---- */
  .checks { display: flex; flex-direction: column; gap: var(--s-2); }
  .checks li { display: flex; gap: 10px; align-items: flex-start; font: 400 16px/1.5 var(--f-body); }
  .checks svg { flex: 0 0 18px; margin-top: 4px; }
  .panel .checks li { color: #fff; }

  /* ---- שאלות נפוצות (details/summary, בלי JS) ---- */
  .faq { border-top: 1px solid var(--c-line-2); }
  .faq details { border-bottom: 1px solid var(--c-line-2); }
  .faq summary {
    list-style: none; cursor: pointer; min-height: 56px;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-3);
    padding: var(--s-3) 0; font: 500 16px/1.5 var(--f-body);
  }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after {
    content: ""; flex: 0 0 12px; height: 12px; margin-inline-end: 4px;
    border-right: 2px solid var(--c-ink); border-bottom: 2px solid var(--c-ink);
    transform: translateY(-3px) rotate(45deg);
  }
  .faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
  .faq__a { padding: 0 0 var(--s-3); font: var(--t-sub); color: var(--c-ink-2); max-width: 62ch; }
  .faq__a p + p { margin-top: var(--s-1); }
  .faq__a a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-sky); text-decoration-thickness: 2px; }

  /* ---- סרגל עליון ---- */
  .appbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 14px var(--gutter); }
  .brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--c-ink); min-height: var(--tap); }
  .brand img { width: 36px; height: 36px; }
  /* 19px = טקסט גדול מודגש (≥18.66px) ⟵ ציאן-טקסט 3.2:1 עובר (WCAG 1.4.3 / ת"י 5568) */
  .brand__word { font: 800 19px/1 var(--f-head); color: var(--c-ink); }
  .brand__word b { font-weight: 800; color: var(--c-cyan-text); }
  .appnav { display: none; }
  @media (min-width: 960px) {
    .appbar { padding: 22px 0; width: min(var(--max), 100% - 2 * var(--s-5)); margin-inline: auto; }
    .appnav .btn { min-height: var(--tap); padding: 0 var(--s-4); font-size: 15px; }
    .brand img { width: 40px; height: 40px; }
    .brand__word { font-size: 20px; }
    .appnav { display: flex; align-items: center; gap: 28px; }
    .appnav a:not(.link--quiet):not(.btn) { color: var(--c-ink-2); text-decoration: none; font: var(--t-label); font-size: 15px; min-height: var(--tap); display: inline-flex; align-items: center; }
    .appnav a:not(.link--quiet):not(.btn):hover { color: var(--c-ink); }
    .appbar > .link--quiet { display: none; }
  }

  /* ---- סרגל פעולה דביק (מובייל, אורח) ---- */
  .dock {
    position: fixed; inset-inline: 0; bottom: 0; z-index: 20;
    display: flex; gap: 10px;
    padding: var(--s-2) var(--gutter) calc(var(--s-2) + var(--safe-b));
    background: rgba(244, 249, 251, .96);
    border-top: 1px solid var(--c-line-2);
  }
  .dock .btn--primary { flex: 1; }
  .dock.is-waiting { visibility: hidden; }
  @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .dock { background: rgba(244, 249, 251, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  }
  @media (min-width: 960px), (max-height: 480px) { .dock { display: none; } }

  /* ---- פוטר ---- */
  /* ---- ביטול עסקה בדף הראשי (חוק הגנת הצרכן §14ט(ב),(ה)(2)): בהבלטה, ודרכי הביטול יחד ---- */
  .cxl { margin: var(--section) var(--gutter) 0; padding: 16px 18px; border: 2px solid var(--c-ink); border-radius: var(--r-box); background: var(--c-surface); }
  .cxl h2 { font: var(--t-h3); }
  .cxl p { font: var(--t-sub); margin-top: 6px; }
  .cxl a { color: var(--c-ink); text-decoration: underline; text-decoration-color: var(--c-sky); text-decoration-thickness: 2px; display: inline-flex; align-items: center; min-height: var(--tap); }
  .cxl .cxl__go { font-weight: 700; }
  .cxl ul { list-style: none; padding: 0; margin-top: 4px; }
  .cxl li { font: var(--t-sub); min-height: var(--tap); display: flex; flex-wrap: wrap; align-items: center; gap: 0 6px; }
  @media (min-width: 960px) { .cxl { width: min(var(--max), 100% - 2 * var(--s-5)); margin-inline: auto; } }
  .foot { padding: var(--s-5) var(--gutter) var(--s-4); border-top: 1px solid var(--c-line-2); display: flex; flex-direction: column; gap: var(--s-2); font: var(--t-min); color: var(--c-ink-2); }
  .foot__links { display: flex; flex-wrap: wrap; gap: 0 var(--s-3); }
  .foot__links a { color: var(--c-ink-2); min-height: var(--tap); display: inline-flex; align-items: center; }
  @media (min-width: 960px) { .foot { width: min(var(--max), 100% - 2 * var(--s-5)); margin-inline: auto; padding-inline: 0; flex-direction: row; justify-content: space-between; align-items: center; } }
}

/* ==========================================================================
   שלושה מוטיבי חתימה
   ========================================================================== */
@layer motifs {

  /* 1) משיכת המגב — פס ציאן עם קצה מחודד כלהב גומי.
        פס התקדמות: --p = החלק שהושלם ("נוקה"), 0–1. */
  .wipe-bar { position: relative; height: 10px; border-radius: 5px; background: var(--c-line); overflow: hidden; }
  .wipe-bar__fill {
    position: absolute; inset-block: 0; inset-inline-start: 0; width: 100%;
    background: var(--c-cyan);
    transform-origin: right center;
    transform: scaleX(var(--p, 0));
    clip-path: polygon(0 0, 100% 0, 100% 100%, 9px 100%);
    transition: transform var(--wipe-dur) var(--wipe-ease);
  }
  [dir="ltr"] .wipe-bar__fill { transform-origin: left center; }
  /* מפריד */
  .wipe-rule { height: 6px; width: 72px; background: var(--c-cyan); clip-path: polygon(0 0, 100% 0, calc(100% - 4px) 100%, 0 100%); border: 0; margin: 0; }

  /* 2) לפני/אחרי עם חשיפה אלכסונית (12°).
        "לפני" מלא; "אחרי" נחשף מהצד השמאלי (בקריאה מימין לשמאל: לפני ← אחרי).
        האנימציה: transform בלבד — המסכה זזה ומוטה, התמונה שבתוכה מבטלת את שניהם. */
  .ba { position: relative; overflow: hidden; border-radius: var(--r-box); aspect-ratio: 1 / 1; background: #DDE7ED; isolation: isolate; direction: ltr; }
  @supports not (aspect-ratio: 1 / 1) { .ba { height: 0; padding-top: 100%; } }
  @media (min-width: 600px) { .ba { aspect-ratio: 16 / 10; } @supports not (aspect-ratio: 1 / 1) { .ba { padding-top: 62.5%; } } }
  .ba picture { display: contents; }
  .ba img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
  .ba__mask {
    position: absolute; top: 0; bottom: 0; left: -30%; width: 80%;   /* קצה ימני במרכז התמונה */
    overflow: hidden; transform-origin: 0 50%;
    transform: translateX(0) skewX(calc(-1 * var(--wipe-angle)));
  }
  .ba__mask img {
    left: 37.5%; width: 125%; max-width: none;                        /* = 100% של הקופסה, מיושר אליה */
    transform-origin: -30% 50%;                                       /* אותה נקודה מוחלטת כמו של המסכה (x=-30% מהקופסה) */
    transform: skewX(var(--wipe-angle)) translateX(0);
  }
  .ba__seam { position: absolute; top: 0; bottom: 0; right: 0; width: 4px; background: var(--c-cyan); }
  .ba__tag { position: absolute; top: 12px; z-index: 2; }
  .ba__tag--before { right: 14px; }
  .ba__tag--after { left: 14px; }
  /* מצב התחלה — רק כש-JS חמוש ורק בלי reduced-motion */
  .ba.is-armed .ba__mask { transform: translateX(-75%) skewX(calc(-1 * var(--wipe-angle))); }
  .ba.is-armed .ba__mask img { transform: skewX(var(--wipe-angle)) translateX(60%); }
  .ba.is-armed .ba__tag--after { opacity: 0; }
  .ba.is-revealed .ba__mask,
  .ba.is-revealed .ba__mask img { transition: transform var(--wipe-dur) var(--wipe-ease); }
  .ba.is-revealed .ba__mask { transform: translateX(0) skewX(calc(-1 * var(--wipe-angle))); }
  .ba.is-revealed .ba__mask img { transform: skewX(var(--wipe-angle)) translateX(0); }
  .ba.is-revealed .ba__tag--after { opacity: 1; transition: opacity .2s ease var(--wipe-dur); }

  /* 3א) חלון 4 השמשות — השנה המכוסה כמבנה מידע.
         מצבים: is-done (בוצע), is-next (הבא בתור), ברירת מחדל = עתידי. */
  /* מסגרת חלון אחת עם מזוזות (לא ארבעה כרטיסים) */
  .panes {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3px; padding: 3px;
    background: var(--c-line-ctrl); border-radius: var(--r-ctrl); overflow: hidden;
  }
  .pane {
    min-height: 92px; padding: 10px 12px; min-width: 0;
    display: flex; flex-direction: column; justify-content: flex-end; gap: 2px;
    background: var(--c-surface); color: var(--c-ink); border: 0; border-radius: 0; overflow-wrap: break-word;
  }
  .panes > .pane:first-child { border-start-start-radius: 11px; }
  .panes > .pane:nth-child(2) { border-start-end-radius: 11px; }
  .panes > .pane:nth-child(3) { border-end-start-radius: 11px; }
  .panes > .pane:nth-child(4) { border-end-end-radius: 11px; }
  @media (max-width: 280px) {
    .panes { grid-template-columns: 1fr; }
    .panes > .pane { border-radius: 0 !important; }
    .panes > .pane:first-child { border-start-start-radius: 11px !important; border-start-end-radius: 11px !important; }
    .panes > .pane:last-child { border-end-start-radius: 11px !important; border-end-end-radius: 11px !important; }
  }
  .pane b { font: 800 15px/1.15 var(--f-head); }
  .pane span { font: 400 13px/1.35 var(--f-body); color: var(--c-ink-2); }
  .pane small { font: 500 13px/1.2 var(--f-body); color: var(--c-ink-2); }
  .pane.is-done { background: var(--c-cyan-lt); }
  .pane.is-done span, .pane.is-done small { color: var(--c-ink); }
  .pane.is-next { box-shadow: inset 0 0 0 2px var(--c-cyan-text); }
  .panel .panes { background: rgba(255, 255, 255, .3); }
  .panel .pane { background: #0B2B49; color: #fff; }
  .panel .pane span, .panel .pane small { color: rgba(255, 255, 255, .85); }
  .panel .pane.is-done { background: var(--c-cyan-lt); color: var(--c-ink); }
  .panel .pane.is-done span, .panel .pane.is-done small { color: var(--c-ink); }
  .panel .pane.is-next { box-shadow: inset 0 0 0 2px var(--c-cyan); }
  @media (min-width: 960px) {
    .panes--row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .panes--row > .pane { border-radius: 0; }
    .panes--row > .pane:first-child { border-start-start-radius: 11px; border-end-start-radius: 11px; }
    .panes--row > .pane:nth-child(4) { border-start-end-radius: 11px; border-end-end-radius: 11px; }
  }

  /* 3ב) רצועת תיעוד — תמונת אמת + עיר ותאריך ב-Heebo 13 */
  .doc { display: flex; justify-content: space-between; gap: var(--s-2); font: var(--t-min); color: var(--c-ink-2); padding-top: 10px; }

  @media (forced-colors: active) {
    .panel, .tag, .card, .pane { border: 1px solid CanvasText; }
    .ba__seam { background: Highlight; forced-color-adjust: none; }
    .pane.is-done { outline: 3px solid Highlight; outline-offset: -3px; }
    .wipe-bar__fill { background: Highlight; forced-color-adjust: none; }
  }
  @media (prefers-reduced-motion: reduce) {
    .wipe-bar__fill, .ba.is-revealed .ba__mask, .ba.is-revealed .ba__mask img, .ba.is-revealed .ba__tag--after { transition: none !important; }
    html { scroll-behavior: auto; }
  }
}

/* ==========================================================================
   פריסה
   ========================================================================== */
@layer layout {
  .wrap { padding-inline: var(--gutter); }
  .stack { display: flex; flex-direction: column; }
  .gap-1 { gap: var(--s-1); } .gap-2 { gap: var(--s-2); } .gap-3 { gap: var(--s-3); } .gap-4 { gap: var(--s-4); }
  .section { margin-top: var(--section); }
  @media (min-width: 960px) {
    .wrap { width: min(var(--max), 100% - 2 * var(--s-5)); margin-inline: auto; padding-inline: 0; }
  }
}
