/* TaSim - מובייל קודם (390px), ואז מסכים רחבים */

:root {
  --blue: #0b6fb8;
  --blue-deep: #08497a;
  --sky: #eaf4fb;
  --sky-2: #d3e8f7;
  --ink: #12263a;
  --muted: #34495e;
  --line: #bcd5e8;
  --white: #fff;
  /* ירוק וואטסאפ - רק לכפתורים (ולוגו). הטקסט עליו כהה כדי לעבור ניגודיות */
  --green: #1faf55;
  --green-shade: #168a42;
  --on-green: #042612;
  --radius: 22px;
  --focus: #12263a;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: "Rubik", "Segoe UI", Arial, sans-serif;
  font-size: 1.25rem; /* 20px */
  line-height: 1.7;
  color: var(--ink);
  background: var(--white);
  /* מקום לכפתור הדביק במובייל */
  padding-bottom: 104px;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--blue); }

.wrap { width: min(100% - 40px, 1040px); margin-inline: auto; }
.narrow { max-width: 760px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- נגישות ---------- */
:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 4px;
  border-radius: 8px;
}
.final :focus-visible, .foot :focus-visible { outline-color: var(--white); }

.skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -80px;
  z-index: 100;
  background: var(--ink);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- כותרת עליונה ---------- */
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.logo { text-decoration: none; font-size: 2rem; font-weight: 800; letter-spacing: -0.5px; line-height: 1; }
.logo .ta { color: var(--blue); }
.logo .sim { color: var(--green); }
.top-link {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--blue);
  padding: 12px 8px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
}

/* ---------- כפתור וואטסאפ ---------- */
.btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  min-height: 80px;
  padding: 14px 32px;
  border-radius: 999px;
  background: var(--green);
  color: var(--on-green);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 7px 0 var(--green-shade), 0 16px 28px rgba(8, 73, 122, 0.22);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn-wa .ico { width: 40px; height: 40px; fill: currentColor; flex: none; }
.btn-wa:hover { background: #22b95a; }
.btn-wa:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--green-shade), 0 6px 14px rgba(8, 73, 122, 0.2); }
@media (prefers-reduced-motion: reduce) {
  .btn-wa { transition: none; }
}

.cta { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.cta-note { font-size: 1.25rem; color: var(--muted); text-align: center; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--sky) 0%, var(--white) 100%); padding: 40px 0 56px; }
.hero-in { display: grid; gap: 32px; }
.hero-text { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.tag {
  display: inline-block;
  background: var(--white);
  color: var(--blue-deep);
  border: 2px solid var(--sky-2);
  border-radius: 999px;
  padding: 6px 20px;
  font-weight: 700;
  font-size: 1.25rem;
}
h1 { font-size: clamp(2.2rem, 9vw, 3.6rem); line-height: 1.15; font-weight: 800; color: var(--blue-deep); }
.lead { font-size: 1.25rem; max-width: 34ch; }

.chat { display: none; }

/* ---------- אזורים ---------- */
.sec { padding: 64px 0; }
.sec.alt { background: var(--sky); }
h2 { font-size: clamp(1.9rem, 6.5vw, 2.6rem); line-height: 1.25; font-weight: 800; color: var(--blue-deep); text-align: center; margin-bottom: 36px; }
h3 { font-size: 1.5rem; line-height: 1.3; font-weight: 700; }

.card {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
}

/* איך זה עובד */
.steps { display: grid; gap: 20px; }
.step { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; align-items: center; }
.step .num {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 2rem;
  font-weight: 800;
}
.step p { color: var(--muted); }

/* למה זה נוח */
.why { display: grid; gap: 16px; max-width: 760px; margin-inline: auto; }
.why li {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  font-weight: 500;
  font-size: 1.25rem;
  line-height: 1.4;
}
.tick { flex: none; width: 44px; height: 44px; padding: 9px; border-radius: 50%; background: var(--blue); fill: var(--white); }

/* הטלפון שלי מתאים */
.phones { display: grid; gap: 20px; }
.phone h3 { color: var(--blue-deep); margin-bottom: 8px; }
.phone p + p { margin-top: 8px; color: var(--muted); }
.phone p:nth-of-type(1) { font-weight: 700; }
.unsure { margin-top: 28px; text-align: center; font-weight: 700; font-size: 1.25rem; color: var(--blue-deep); }

/* שאלות נפוצות */
.faq { display: grid; gap: 14px; }
details { background: var(--white); border: 2px solid var(--line); border-radius: var(--radius); }
details[open] { border-color: var(--blue); }
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
  padding: 14px 24px;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  list-style: none;
  border-radius: var(--radius);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
  font-size: 1.8rem;
  line-height: 1;
}
details[open] summary::after { content: "−"; }
details p { padding: 0 24px 22px; }
details p + p { margin-top: -8px; }

/* סיום */
.final { background: var(--blue); color: var(--white); text-align: center; padding: 72px 0 80px; }
.final h2 { color: var(--white); margin-bottom: 12px; }
.final p { font-size: 1.25rem; margin-bottom: 32px; }
.final .btn-wa { box-shadow: 0 0 0 4px var(--white), 0 7px 0 4px var(--green-shade), 0 20px 30px rgba(0, 0, 0, 0.25); }
.final .btn-wa:active { box-shadow: 0 0 0 4px var(--white), 0 2px 0 4px var(--green-shade); }

/* פוטר */
.foot { background: var(--blue-deep); color: var(--white); padding: 40px 0 44px; text-align: center; }
.foot a { color: var(--white); }
.foot-brand { font-size: 1.25rem; margin-bottom: 14px; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 28px; }
.foot-links a { display: inline-flex; align-items: center; min-height: 48px; font-size: 1.25rem; }

/* כפתור דביק - מובייל בלבד */
.sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgba(8, 73, 122, 0.12);
}
.sticky .btn-wa { min-height: 66px; font-size: 1.5rem; box-shadow: 0 5px 0 var(--green-shade); }
.sticky .btn-wa:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--green-shade); }
.sticky .btn-wa .ico { width: 34px; height: 34px; }

/* ---------- עמודי משפט ---------- */
.legal { padding: 40px 0 72px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(2rem, 7vw, 2.8rem); margin-bottom: 24px; }
.legal h2 { text-align: right; font-size: 1.5rem; margin: 40px 0 12px; }
.legal p { margin-bottom: 14px; }
.legal ul { list-style: disc; padding-inline-start: 28px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.draft {
  background: #fff3c4;
  border: 3px solid #8a5a00;
  border-radius: 14px;
  color: #3b2600;
  font-weight: 700;
  padding: 14px 20px;
  margin-bottom: 28px;
}
body:not(.home) { padding-bottom: 0; }

/* ---------- מסך רחב ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .sticky { display: none; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; row-gap: 8px; padding: 36px 24px; }
  .step .num { grid-row: auto; margin-bottom: 8px; width: 76px; height: 76px; font-size: 2.4rem; }
  .why { grid-template-columns: 1fr 1fr; max-width: none; }
  .phones { grid-template-columns: 1fr 1fr; }
  .sec { padding: 88px 0; }
}

@media (min-width: 900px) {
  .hero { padding: 72px 0 56px; }
  .hero-in { grid-template-columns: 1.15fr 0.85fr; align-items: center; gap: 56px; }
  .hero-text { text-align: right; align-items: flex-start; }
  .lead { max-width: 38ch; }
  .cta { align-items: flex-start; }
  .cta-note { text-align: right; }
  .final .cta { align-items: center; }

  .chat {
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
    border: 2px solid var(--sky-2);
    border-radius: 28px;
    padding: 24px;
    box-shadow: 0 24px 50px rgba(8, 73, 122, 0.16);
    transform: rotate(-2deg);
  }
  .chat-head { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--blue-deep); padding-bottom: 12px; border-bottom: 2px solid var(--sky); }
  .chat-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--blue); }
  .bubble { max-width: 88%; padding: 14px 18px; border-radius: 20px; font-size: 1.25rem; line-height: 1.5; }
  .bubble.me { align-self: flex-start; background: var(--sky); border-end-start-radius: 4px; }
  .bubble.bot { align-self: flex-end; background: var(--blue); color: var(--white); border-end-end-radius: 4px; }
}

/* תיקוני סבב בדיקות */
.nw { white-space: nowrap; }
.logo { display: inline-flex; align-items: center; min-height: 48px; }
.foot-brand a { display: inline-flex; align-items: center; min-height: 44px; }
.legal p a { padding: 10px 0; }
