/* ==========================================================================
   site.css — העיצוב המשותף של RSU Buddy
   --------------------------------------------------------------------------
   1. גופנים (מקומיים)
   2. סרגל הניווט והתחתית — מופיעים בכל דף, גם בכלים (מחלקות rsu-*)
   3. דפי האתר עצמם (דף הנחיתה, אודות) — הכל תחת body.site,
      כדי לא להתנגש בעיצוב הפנימי של הכלים.
   ========================================================================== */

/* ---------- 1. גופנים ---------- */
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2"); font-weight: 400; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-hebrew-latin-400-normal.woff2"); font-weight: 400; unicode-range: U+0000-024F, U+2000-206F, U+20AA; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-hebrew-hebrew-500-normal.woff2"); font-weight: 500; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-hebrew-latin-500-normal.woff2"); font-weight: 500; unicode-range: U+0000-024F, U+2000-206F, U+20AA; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2"); font-weight: 600; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-hebrew-latin-600-normal.woff2"); font-weight: 600; unicode-range: U+0000-024F, U+2000-206F, U+20AA; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-hebrew-hebrew-700-normal.woff2"); font-weight: 700; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: "Plex"; src: url("fonts/ibm-plex-sans-hebrew-latin-700-normal.woff2"); font-weight: 700; unicode-range: U+0000-024F, U+2000-206F, U+20AA; font-display: swap; }
@font-face { font-family: "Frank"; src: url("fonts/frank-ruhl-libre-hebrew-700-normal.woff2"); font-weight: 700; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: "Frank"; src: url("fonts/frank-ruhl-libre-latin-700-normal.woff2"); font-weight: 700; unicode-range: U+0000-024F, U+2000-206F, U+20AA; font-display: swap; }
@font-face { font-family: "Frank"; src: url("fonts/frank-ruhl-libre-hebrew-500-normal.woff2"); font-weight: 500; unicode-range: U+0590-05FF, U+FB1D-FB4F; font-display: swap; }
@font-face { font-family: "Frank"; src: url("fonts/frank-ruhl-libre-latin-500-normal.woff2"); font-weight: 500; unicode-range: U+0000-024F, U+2000-206F, U+20AA; font-display: swap; }

/* ---------- 2. סרגל וחלק תחתון (בכל דף) ---------- */
.rsu-bar, .rsu-foot {
  --rsu-ink: #16202b; --rsu-ink-2: #4a5663; --rsu-ink-3: #7a8591; --rsu-line: #dde2e8;
  --rsu-accent: #2b3a67; --rsu-soft: #eef1f8;
  font-family: "Plex", "Segoe UI", Arial, sans-serif; direction: rtl;
}
.rsu-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 10px 20px; border-bottom: 1px solid var(--rsu-line); background: #fff;
  font-size: 14px; line-height: 1.4;
}
.rsu-brand { font-family: "Frank", serif; font-weight: 700; font-size: 20px; color: var(--rsu-accent); text-decoration: none; letter-spacing: .01em; }
.rsu-links { display: flex; gap: 4px 18px; flex-wrap: wrap; }
.rsu-links a { color: var(--rsu-ink-2); text-decoration: none; padding: 4px 0; border-bottom: 2px solid transparent; }
.rsu-links a:hover { color: var(--rsu-accent); }
.rsu-links a[aria-current="page"] { color: var(--rsu-accent); font-weight: 600; border-bottom-color: var(--rsu-accent); }
.rsu-foot {
  margin-top: 32px; padding: 18px 20px 26px; border-top: 1px solid var(--rsu-line);
  color: var(--rsu-ink-3); font-size: 13px; line-height: 1.6; background: #fff;
}
.rsu-foot p { margin: 0 0 6px; max-width: 1100px; }
.rsu-foot a { color: var(--rsu-ink-2); display: inline-block; }
.rsu-foot .sep { margin: 0 6px; color: var(--rsu-line); }
/* גרסת אלפא: פס בראש כל דף */
.rsu-alpha {
  margin: 0; padding: 7px 16px; background: #8a2c23; color: #fff; text-align: center;
  font: 600 14px/1.4 "Plex", "Segoe UI", Arial, sans-serif; direction: rtl; letter-spacing: .01em;
}
.rsu-alpha span { font-weight: 400; opacity: .92; }

/* חלון האישור בכניסה */
.rsu-modal-open, .rsu-modal-open body { overflow: hidden; }
.rsu-modal {
  position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center;
  padding: 16px; background: rgba(16, 24, 40, .62); direction: rtl;
  font-family: "Plex", "Segoe UI", Arial, sans-serif; color: #16202b;
}
.rsu-modal-box {
  width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  background: #fff; border-radius: 14px; padding: 26px 28px 22px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3);
  font-size: 16px; line-height: 1.6; text-align: right;
}
.rsu-modal-tag { display: inline-block; margin: 0 0 10px; padding: 3px 10px; border-radius: 99px; background: #fbecea; color: #8a2c23; font-size: 13px; font-weight: 600; }
.rsu-modal-box h2 { margin: 0 0 10px; font-family: "Frank", serif; font-size: 26px; font-weight: 700; color: #2b3a67; }
.rsu-modal-box p { margin: 0 0 10px; }
.rsu-modal-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 18px; padding: 12px 14px; border: 1px solid #dde2e8; border-radius: 10px; background: #f6f8fb; cursor: pointer; font-weight: 500; }
.rsu-modal-check input { width: 20px; height: 20px; margin: 3px 0 0; flex: none; accent-color: #2b3a67; }
.rsu-modal-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.rsu-modal-actions button {
  font: inherit; font-weight: 600; padding: 10px 22px; border-radius: 8px; border: 0; cursor: pointer;
  background: #2b3a67; color: #fff;
}
.rsu-modal-actions button:disabled { background: #b8c0cc; cursor: not-allowed; }
.rsu-modal-actions a { color: #4a5663; font-size: 14px; }
.rsu-modal :focus-visible { outline: 3px solid #3d6fb6; outline-offset: 2px; }

.rsu-mobile-note { display: none; margin: 0; padding: 8px 16px; background: #fff6e5; color: #8a5a12; font: 13px/1.4 "Plex", Arial, sans-serif; direction: rtl; }
@media (max-width: 820px) { .rsu-mobile-note { display: block; } }
@media print { .rsu-bar, .rsu-foot, .rsu-mobile-note, .rsu-alpha, .rsu-modal { display: none !important; } }

/* ---------- 3. דפי האתר ---------- */
body.site {
  --ink: #16202b; --ink-2: #4a5663; --ink-3: #7a8591; --line: #dde2e8; --line-2: #eef1f4;
  --accent: #2b3a67; --accent-2: #3d6fb6; --soft: #eef1f8; --good: #1d7a46; --bad: #b3362d; --bad-bg: #fbecea; --warm: #f6efe3;
  margin: 0; background: #fff; color: var(--ink);
  font-family: "Plex", "Segoe UI", Arial, sans-serif; font-size: 17px; line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
.site *, .site *::before, .site *::after { box-sizing: border-box; }
.site h1, .site h2, .site h3 { font-family: "Frank", serif; font-weight: 700; color: var(--ink); line-height: 1.2; margin: 0; text-wrap: balance; }
.site h1 { font-size: clamp(30px, 5vw, 46px); color: var(--accent); }
.site h2 { font-size: clamp(24px, 3.2vw, 31px); margin-bottom: 8px; }
.site h3 { font-size: 20px; }
.site p { margin: 0 0 12px; }
.site a { color: var(--accent); }
.site .num, .site td { font-variant-numeric: tabular-nums; }
.site .wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.site section { padding: 52px 0; }
.site section + section { border-top: 1px solid var(--line-2); }
.site .lead { font-size: 19px; color: var(--ink-2); max-width: 62ch; }
.site .muted { color: var(--ink-3); font-size: 15px; }
.site .eyebrow { font-size: 14px; color: var(--ink-3); font-weight: 600; letter-spacing: .02em; margin-bottom: 10px; }

/* כפתורים */
.site .btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--accent); color: var(--accent); background: #fff; transition: background .15s;
}
.site .btn:hover { background: var(--soft); }
.site .btn.primary { background: var(--accent); color: #fff; }
.site .btn.primary:hover { background: #1f2b4f; }
.site .btn:focus-visible, .site a:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 2px; }
.site .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

/* כותרת ראשית */
.site .hero { padding: 64px 0 52px; background: linear-gradient(180deg, var(--soft), #fff); }
.site .hero h1 { max-width: 18ch; }
.site .hero .lead { margin-top: 16px; }
.site .scope { margin-top: 18px; font-size: 14px; color: var(--ink-3); }

/* שלוש הבטחות */
.site .promises { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.site .promises li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.site .promises svg { flex: none; margin-top: 3px; }
.site .promises b { display: block; font-size: 17px; }
.site .promises span { color: var(--ink-2); font-size: 15px; }

/* כרטיסים */
.site .cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 22px; }
.site .card { border: 1px solid var(--line); border-radius: 12px; padding: 20px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.site .card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.site .card .go { margin-top: auto; font-weight: 600; text-decoration: none; }
.site .card .go::after { content: " ←"; }
.site a.card { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.site a.card:hover { border-color: var(--accent); box-shadow: 0 2px 12px rgba(43, 58, 103, .08); }
.site .tool { padding: 0; overflow: hidden; }
.site .tool img { display: block; width: 100%; height: 190px; object-fit: cover; object-position: top right; border-bottom: 1px solid var(--line); background: var(--soft); }
.site .tool .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.site .tool .q { font-weight: 600; color: var(--ink); font-size: 17px; }
.site .tool .meta { font-size: 14px; color: var(--ink-3); }

/* צעדים */
.site .steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; margin: 22px 0 0; list-style: none; }
.site .steps li { counter-increment: s; position: relative; padding: 18px 20px 18px; border-radius: 12px; background: var(--soft); }
.site .steps li::before { content: counter(s); display: flex; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; align-items: center; justify-content: center; margin-bottom: 10px; }
.site .steps b { display: block; }
.site .steps span { color: var(--ink-2); font-size: 15px; }

/* פרטיות */
.site .privacy { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: start; }
.site .check { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; background: #fff; }
.site .check ol { margin: 8px 0 0; padding-inline-start: 22px; color: var(--ink-2); font-size: 15px; }
.site .check li + li { margin-top: 6px; }
.site code { white-space: nowrap; font-family: Consolas, "Courier New", monospace; font-size: .88em; background: var(--line-2); border-radius: 4px; padding: 1px 5px; direction: ltr; unicode-bidi: embed; }

/* דוגמה */
.site .example { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.site table.grants { border-collapse: collapse; width: 100%; font-size: 15px; margin-top: 10px; }
.site table.grants th, .site table.grants td { padding: 7px 10px; border-bottom: 1px solid var(--line-2); text-align: right; }
.site table.grants th { color: var(--ink-2); font-weight: 600; font-size: 14px; background: var(--line-2); }
.site table.grants td.n { text-align: left; direction: ltr; }
.site table.grants tfoot td { font-weight: 700; border-top: 1px solid var(--line); border-bottom: 0; }
.site .shot { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 20px rgba(22, 32, 43, .08); background: #fff; }
.site .shot img { display: block; width: 100%; height: auto; }
.site figcaption { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

/* למה בניתי */
.site .why { display: grid; grid-template-columns: 1fr; max-width: 760px; }
.site .why p { font-size: 18px; }
.site .disclose { font-size: 15px; color: var(--ink-3); }

/* שאלות נפוצות */
.site details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.site details:first-of-type { border-top: 1px solid var(--line); }
.site summary { cursor: pointer; font-weight: 600; font-size: 18px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.site summary::-webkit-details-marker { display: none; }
.site summary::after { content: "+"; color: var(--accent); font-size: 22px; line-height: 1; }
.site details[open] summary::after { content: "−"; }
.site details > div { padding-top: 10px; color: var(--ink-2); max-width: 75ch; }

/* קשר */
.site .contact { background: var(--soft); }
.site .contact .cards { grid-template-columns: repeat(3, 1fr); }
.site .placeholder-note { font-size: 13px; color: var(--bad); }

/* דף טקסט (אודות) */
.site .doc { max-width: 760px; }
.site .doc h2 { margin-top: 34px; }
.site .doc h3 { margin-top: 22px; margin-bottom: 6px; font-size: 19px; }
.site .doc ul { padding-inline-start: 22px; }
.site .doc li { margin-bottom: 6px; }
.site .toc { display: flex; gap: 8px 18px; flex-wrap: wrap; font-size: 15px; margin-top: 14px; }

/* טלפון */
@media (max-width: 820px) {
  body.site { font-size: 16px; }
  .site section { padding: 40px 0; }
  .site .hero { padding: 44px 0 36px; }
  .site .promises, .site .cards, .site .steps, .site .contact .cards { grid-template-columns: 1fr; }
  .site .privacy, .site .example { grid-template-columns: 1fr; }
  .rsu-bar { padding: 10px 16px; }
  .rsu-links { gap: 2px 14px; font-size: 13.5px; }
}

/* ---------- הדרכה (tour.js) ---------- */
.rsu-tour { position: fixed; inset: 0; z-index: 9000; direction: rtl; font-family: "Plex", "Segoe UI", Arial, sans-serif; }
.rsu-tour-block { position: absolute; inset: 0; }
.rsu-tour.center .rsu-tour-block { background: rgba(16, 24, 40, .55); }
.rsu-tour-spot {
  position: fixed; border-radius: 10px; pointer-events: none;
  box-shadow: 0 0 0 3px #f2b84b, 0 0 0 9999px rgba(16, 24, 40, .55);
  transition: top .2s, left .2s, width .2s, height .2s;
}
.rsu-tour-pop {
  position: fixed; width: 340px; max-width: calc(100vw - 32px); background: #fff; color: #16202b;
  border-radius: 12px; padding: 16px 18px 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .28);
  font-size: 15px; line-height: 1.55; text-align: right;
}
.rsu-tour.center .rsu-tour-pop { left: 50%; top: 50%; transform: translate(-50%, -50%); width: 420px; }
.rsu-tour.phone .rsu-tour-pop { left: 12px; right: 12px; bottom: 12px; top: auto; width: auto; max-width: none; }
.rsu-tour-pop:focus { outline: none; }
.rsu-tour-count { margin: 0 0 4px; font-size: 12.5px; color: #7a8591; font-weight: 600; }
.rsu-tour-pop h3 { margin: 0 0 6px; font-family: "Frank", serif; font-size: 20px; font-weight: 700; color: #2b3a67; }
.rsu-tour-pop p { margin: 0; }
.rsu-tour-nav { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.rsu-tour-nav button { font: inherit; font-size: 14px; border-radius: 7px; padding: 7px 14px; cursor: pointer; border: 1px solid #c9d1db; background: #fff; color: #2b3a67; }
.rsu-tour-nav .rsu-t-next { background: #2b3a67; border-color: #2b3a67; color: #fff; font-weight: 600; }
.rsu-tour-nav .rsu-t-skip { margin-inline-start: auto; border: 0; background: none; color: #7a8591; text-decoration: underline; padding: 7px 4px; }
.rsu-tour-nav button:focus-visible { outline: 3px solid #3d6fb6; outline-offset: 2px; }
.rsu-tour-help {
  position: fixed; left: 18px; bottom: 18px; z-index: 8000; width: 40px; height: 40px; border-radius: 50%;
  border: 0; background: #2b3a67; color: #fff; font: 700 19px/1 "Plex", Arial, sans-serif; cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}
.rsu-tour-help:hover { background: #1f2b4f; }
.rsu-tour-help:focus-visible { outline: 3px solid #3d6fb6; outline-offset: 2px; }
@media print { .rsu-tour, .rsu-tour-help { display: none !important; } }
