/* ============================================================================
 *  agents.css — עמוד ה-B2B /agents/  (elidobit.com)
 *  ---------------------------------------------------------------------------
 *  עמוד סטטי, מחוץ לוורדפרס ולאלמנטור — ולכן הגיליון הזה עומד בפני עצמו ואינו
 *  יורש דבר מ-mu-plugins/css/elidobit-content.css (שמתוחם ל-.elido-article).
 *
 *  שני כללים שהם חוזה, לא סגנון:
 *  1. RTL — AGENTS.md §5. כל מרווח/מיקום כיווני נכתב בתכונות לוגיות
 *     (padding-inline, inset-inline-start, text-align:start). אין left/right
 *     ואין קיצור padding בן ארבעה ערכים בשום כלל כיווני.
 *  2. ניגודיות — AGENTS.md §2, סף 4.5. צבעי הפלטה של המותג טרם תוקנו, ולכן
 *     כאן נבחרו גוונים שנמדדו מול הרקע שמאחוריהם (WCAG relative luminance,
 *     נמדד 15.8.2026 — לא הוערך בעין):
 *       --ink       #10243d על #fff        → 15.65
 *       --ink-soft  #46586e על #fff        → 7.29  (טקסט משני)
 *       --teal-ink  #0b6b62 על #fff        → 6.38  (קישורים/מספרים)
 *       --ink-soft  #46586e על --bg        → 6.79
 *       #fff        על --navy #12314f      → 13.31 (Hero, רצועות כהות)
 *       rgba(255,255,255,.86) על --navy    → 10.22 (תת-כותרת Hero)
 *       #10243d     על --amber #f6b93b     → 8.88  (כפתור ראשי)
 *       #8d1019     על #fdeaec             → 8.18  (הודעת שגיאה)
 *       #0a4f49     על --teal-soft         → 8.34  (הודעת הצלחה)
 *     כל שינוי צבע כאן מחייב מדידה מחדש, לא הערכה בעין.
 * ========================================================================== */

:root {
  --navy: #12314f;
  --navy-deep: #0d2540;
  --teal-ink: #0b6b62;
  --teal-soft: #e6f4f2;
  --amber: #f6b93b;
  --ink: #10243d;
  --ink-soft: #46586e;
  --line: #dfe4ea;
  --bg: #f5f7fa;
  --card: #ffffff;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 10px 30px rgba(16, 36, 61, .08);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  font-family: "Assistant", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }

/* ── קישור דילוג לתוכן (AGENTS.md §2) — ראשון בסדר הפוקוס, מוסתר עד פוקוס,
      ואינו מכסה פריטי ניווט כשהוא מופיע: הוא נוחת מעל ההדר, לא עליו. ── */
.skip-link {
  position: absolute;
  inset-inline-start: 12px;
  top: -100px;
  z-index: 100;
  background: #fff;
  color: var(--ink);
  padding-block: 10px;
  padding-inline: 18px;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  text-decoration: none;
  transition: top .15s ease-out;
}
.skip-link:focus { top: 0; }

/* טבעת פוקוס אחידה — מוחלפת, לעולם לא מוסרת (AGENTS.md §2) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid #0b6b62;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ── הדר ── */
.site-header {
  background: #fff;
  border-block-end: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: .3px;
  min-height: 44px;   /* יעד מגע — נמדד ב-34px לפני התיקון */
}
.brand-mark {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), var(--teal-ink));
  display: inline-block;
  flex-shrink: 0;
}
.header-cta {
  font-weight: 700;
  font-size: 15.5px;
  color: var(--teal-ink);
  text-decoration: none;
  border: 2px solid var(--teal-ink);
  border-radius: 999px;
  padding-block: 8px;
  padding-inline: 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.header-cta:hover { background: var(--teal-soft); }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 60%, #0b3b46 100%);
  color: #fff;
  padding-block: 64px 72px;
}
.hero h1 {
  font-size: clamp(27px, 4.2vw, 42px);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -.2px;
  max-width: 20ch;
}
.hero .lede {
  margin-block-start: 20px;
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, .86);
  max-width: 54ch;
}
.hero-actions {
  margin-block-start: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  padding-block: 12px;
  padding-inline: 30px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}
.btn-primary { background: var(--amber); color: var(--ink); }
.btn-primary:hover { background: #e5a92c; }
.btn-ghost {
  background: transparent;
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  padding-inline: 4px;
  min-height: 44px;
  font-weight: 700;
}
.btn-ghost:hover { color: #ffe6a8; }

/* ── סקשן כללי ── */
section { padding-block: 62px; }
.sec-light { background: #fff; }
.sec-tint { background: var(--bg); }

h2 {
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.2px;
  max-width: 26ch;
}
.sec-intro {
  margin-block-start: 14px;
  color: var(--ink-soft);
  max-width: 62ch;
  font-size: 17.5px;
}

/* ── שיקוף הכאב ── */
.pains {
  margin-block-start: 34px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, 1fr);
  list-style: none;
}
.pains li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.pains b { display: block; font-size: 18px; margin-block-end: 6px; }
.pains span { color: var(--ink-soft); font-size: 16px; }

/* ── שני מסלולים ── */
.tracks {
  margin-block-start: 36px;
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(2, 1fr);
}
.track {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow);
}
.track h3 {
  font-size: 21px;
  font-weight: 800;
  margin-block-end: 4px;
}
.track .track-kicker {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: .6px;
  color: var(--teal-ink);
  background: var(--teal-soft);
  border-radius: 999px;
  padding-block: 4px;
  padding-inline: 12px;
  margin-block-end: 12px;
}
.steps {
  margin-block-start: 18px;
  display: grid;
  gap: 14px;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding-block: 14px;
  padding-inline-start: 58px;
  padding-inline-end: 16px;
  min-height: 62px;
  display: flex;
  align-items: center;
  font-size: 16.5px;
}
/* המספר יושב בצד ההתחלה של השורה — inset-inline-start, לא left (AGENTS.md §5) */
.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  inset-inline-start: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* מציין מקום לצילום מסך — מסומן בבירור, אינו מתחזה לצילום אמיתי.
   התמונה נשארת באותו יחס גובה-רוחב אחרי ההחלפה בצילום האמיתי. */
.shot-figure { margin-block-start: 20px; }
.shot-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #f2f5f8;
}
/* צילום מסך לאורך (נייד) — שני המסלולים משתמשים בו, ושניהם ביחס 760×1379.
   הצילומים נשמרים ביחס המקורי במקום להיחתך ב-cover; `width`/`height` על התגית
   מספקים את היחס, כך שאין קפיצת פריסה בטעינה. בלי תקרת גובה הצילום מותח את
   הכרטיס; `width: auto` מונע מתיחה, ו-`margin-inline: auto` ממרכז אותו. */
.shot-img--portrait {
  aspect-ratio: auto;
  object-fit: contain;
  width: auto;
  max-width: 100%;
  max-height: 560px;
  margin-inline: auto;
}
.shot-figure figcaption {
  margin-block-start: 8px;
  font-size: 14.5px;
  color: var(--ink-soft);
  text-align: start;
}

/* ── מה יש בפנים ── */
.inside {
  margin-block-start: 34px;
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
  list-style: none;
}
.inside li {
  background: var(--card);
  border: 1px solid var(--line);
  border-inline-start: 4px solid var(--teal-ink);
  border-radius: var(--radius);
  padding: 20px;
  font-size: 16.5px;
}
.inside b { display: block; font-size: 17.5px; margin-block-end: 5px; }
.inside span { color: var(--ink-soft); }

/* ── למי מתאים ── */
.fit {
  margin-block-start: 32px;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(2, 1fr);
}
.fit-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.fit-card h3 { font-size: 19px; font-weight: 800; margin-block-end: 8px; }
.fit-card p { color: var(--ink-soft); font-size: 16.5px; }
.fit-note {
  margin-block-start: 26px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius);
  padding-block: 20px;
  padding-inline: 24px;
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

/* ── FAQ ── */
.faq { margin-block-start: 30px; display: grid; gap: 12px; }
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding-block: 4px;
  padding-inline: 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 17.5px;
  padding-block: 16px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 700;
  color: var(--teal-ink);
  line-height: 1;
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "–"; }
.faq .answer {
  padding-block-end: 18px;
  color: var(--ink-soft);
  font-size: 16.5px;
  max-width: 68ch;
}
.faq-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--teal-ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 5px;
}

/* ── טופס ── */
.demo { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; }
.demo h2 { color: #fff; }
.demo .sec-intro { color: rgba(255, 255, 255, .86); }
.demo-grid {
  margin-block-start: 32px;
  display: grid;
  gap: 26px;
  grid-template-columns: 1.25fr .75fr;
  align-items: start;
}
.form-card {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
}
.field { margin-block-end: 18px; }
.field label {
  display: block;
  font-weight: 700;
  font-size: 16px;
  margin-block-end: 7px;
}
.field .hint { font-weight: 500; color: var(--ink-soft); font-size: 14.5px; }
.field input,
.field select {
  width: 100%;
  min-height: 50px;
  border: 1.5px solid #c3ccd6;
  border-radius: 12px;
  padding-block: 10px;
  padding-inline: 14px;
  font-family: inherit;
  font-size: 16.5px;
  color: var(--ink);
  background: #fff;
}
.field input:hover, .field select:hover { border-color: var(--teal-ink); }
.field .error-msg { display: block; color: #a5121b; font-size: 15px; margin-block-start: 6px; }
/* מלכודת ספאם — מוסתרת מהעין ומעץ הנגישות כאחד */
.hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-card .btn-primary { width: 100%; }
.form-status {
  margin-block-start: 16px;
  font-weight: 700;
  font-size: 16.5px;
  border-radius: 12px;
}
.form-status:not(:empty) {
  padding-block: 14px;
  padding-inline: 16px;
  background: var(--teal-soft);
  color: #0a4f49;
  border: 1px solid #9fd3cd;
}
.form-status.is-error:not(:empty) {
  background: #fdeaec;
  color: #8d1019;
  border-color: #f0b4ba;
}

.aside-card {
  background: rgba(255, 255, 255, .10);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--radius-lg);
  padding: 26px;
}
.aside-card h3 { font-size: 19px; font-weight: 800; margin-block-end: 10px; }
.aside-card p { color: rgba(255, 255, 255, .86); font-size: 16.5px; margin-block-end: 18px; }
.wa-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 50px;
  width: 100%;
  background: #fff;
  color: #0a4f49;
  border-radius: 999px;
  font-weight: 800;
  font-size: 16.5px;
  text-decoration: none;
  padding-inline: 20px;
}
.wa-link:hover { background: #eafaf7; }

/* ── פוטר ── */
.site-footer {
  background: #0b1f33;
  color: rgba(255, 255, 255, .82);
  padding-block: 34px;
  font-size: 15.5px;
}
.site-footer a {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  min-height: 44px;   /* יעד מגע — נמדד ב-20px לפני התיקון */
}
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; justify-content: space-between; }

/* ── מובייל ── */
@media (max-width: 860px) {
  .pains, .tracks, .inside, .fit { grid-template-columns: 1fr; }
  .demo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  section { padding-block: 44px; }
  .hero { padding-block: 46px 52px; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn-primary { width: 100%; }
  .header-cta { display: none; }
  .site-header .wrap { justify-content: center; }
  .site-footer .wrap { justify-content: center; text-align: center; }
}
