/* ==========================================================================
   SafeBus - עמודי המידע הציבוריים (איך זה עובד, למי זה מתאים, אבטחה, שאלות
   נפוצות). אותה שפה עיצובית כמו המערכת: ירוק, Rubik, כרטיסים לבנים. הכל תחום
   ל-body.sb-page. הכותרת והתחתית - ב-chrome.css.
   ========================================================================== */

.sb-page {
  --green: #16a34a;
  --green-dark: #15803d;
  --green-deep: #0f5f30;
  --green-soft: #eaf5ea;
  --green-line: #d5e8d5;
  --ink: #122019;
  --text: #33413a;
  --sub: #5c6b60;
  --faint: #9db3a1;
  --page: #fbfdfb;
  --alt: #f1f7f1;
  --surface: #ffffff;
  --border: #dde7dd;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(18, 32, 25, 0.28);
  --shadow-lg: 0 30px 70px -30px rgba(18, 32, 25, 0.38);
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: 'Rubik', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.sb-page img {
  max-width: 100%;
  height: auto;
  display: block;
}

.sb-page main a {
  color: var(--green-dark);
}

.sb-page :focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.45);
  outline-offset: 2px;
  border-radius: 8px;
}

.sb-page h1,
.sb-page h2,
.sb-page h3,
.sb-page h4 {
  color: var(--ink);
  margin: 0;
  line-height: 1.2;
}

.sb-page p {
  margin: 0;
}

.sb-skip {
  position: absolute;
  inset-inline-start: 12px;
  top: -60px;
  z-index: 2000;
  background: var(--ink);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
}

.sb-skip:focus {
  top: 12px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: 13px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.sb-page .btn-primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 12px 26px -12px rgba(22, 163, 74, 0.75);
}

.sb-page .btn-primary:hover {
  background: var(--green-dark);
}

.sb-page .btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border);
}

.sb-page .btn-ghost:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

.sb-page .btn-light {
  background: #fff;
  color: var(--green-deep);
}

.sb-page .btn-outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.sb-page .btn-outline-light:hover {
  border-color: #fff;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 64px 0 76px;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(74, 222, 128, 0.18), transparent 70%),
    radial-gradient(700px 380px at 0% 110%, rgba(22, 163, 74, 0.10), transparent 70%),
    linear-gradient(180deg, #f6fbf6 0%, var(--page) 100%);
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero.text-only .wrap {
  grid-template-columns: 1fr;
  max-width: 900px;
  text-align: center;
}

.hero.text-only .actions,
.hero.text-only .hero-facts {
  justify-content: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #dcfce7;
  color: var(--green-deep);
  font-size: 13.5px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.25rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.hero h1 .accent {
  color: var(--green);
}

.hero .lead {
  margin-top: 18px;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--sub);
  max-width: 600px;
}

.hero.text-only .lead {
  margin-inline: auto;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  padding: 0;
  list-style: none;
  color: var(--sub);
  font-size: 14px;
  font-weight: 500;
}

.hero-facts li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.hero-facts i {
  color: var(--green);
}

.hero-media {
  position: relative;
}

.hero-media img {
  width: 100%;
  filter: drop-shadow(0 30px 40px rgba(18, 32, 25, 0.18));
}

.hero-media.phone img {
  width: min(320px, 78%);
  margin-inline: auto;
}

/* ---------- sections ---------- */
.section {
  padding: 76px 0;
}

.section.alt {
  background: var(--alt);
}

.section.tight {
  padding: 56px 0;
}

.section-head {
  max-width: 760px;
  margin: 0 auto 44px;
  text-align: center;
}

.section-head.start {
  margin-inline: 0;
  text-align: right;
}

.tag {
  display: inline-block;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.section-head h2,
.split-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 900;
  letter-spacing: -0.02em;
}

.section-head p {
  margin-top: 14px;
  color: var(--sub);
  font-size: 1.05rem;
}

/* ---------- grids & cards ---------- */
.grid {
  display: grid;
  gap: 20px;
}

.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 1px 0 rgba(18, 32, 25, 0.02);
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

a.card {
  display: block;
  color: inherit;
  text-decoration: none;
}

a.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-line);
}

.card h3 {
  font-size: 1.12rem;
  font-weight: 800;
  margin-top: 16px;
}

.card p {
  margin-top: 8px;
  color: var(--sub);
  font-size: 15px;
}

.card .more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 14px;
  color: var(--green-dark);
  font-weight: 700;
  font-size: 14.5px;
}

.ic {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  background: #dcfce7;
  color: var(--green-dark);
}

.ic.blue { background: #dbeafe; color: #1d4ed8; }
.ic.purple { background: #f3e8ff; color: #7c3aed; }
.ic.amber { background: #fef3c7; color: #b45309; }
.ic.red { background: #fee2e2; color: #b91c1c; }
.ic.teal { background: #ccfbf1; color: #0f766e; }
.ic.ink { background: #e5ece7; color: var(--ink); }

/* ---------- split (text + image) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}

.split + .split {
  margin-top: 84px;
}

.split.rev .split-media {
  order: -1;
}

.split-text .tag {
  margin-bottom: 8px;
}

.split-text > p {
  margin-top: 14px;
  color: var(--sub);
  font-size: 1.04rem;
}

.split-media img {
  width: 100%;
}

.split-media.phone img {
  width: min(300px, 75%);
  margin-inline: auto;
  filter: drop-shadow(0 26px 34px rgba(18, 32, 25, 0.2));
}

.split-media.device img {
  filter: drop-shadow(0 26px 34px rgba(18, 32, 25, 0.16));
}

/* שני טלפונים זה לצד זה (השני מעט נמוך יותר) */
.split-media.phones {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 18px;
}

.split-media.phones img {
  width: min(230px, 46%);
  filter: drop-shadow(0 22px 30px rgba(18, 32, 25, 0.2));
}

.split-media.phones img + img {
  margin-top: 48px;
}

/* split שבא אחרי רשת כרטיסים באותו קטע */
.grid + .split.after-grid {
  margin-top: 84px;
}

/* צילום מסך שטוח (מהמערכת) במסגרת דפדפן */
.shot {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.shot::before {
  content: '';
  display: block;
  height: 30px;
  background:
    radial-gradient(circle at 18px 15px, #f87171 5px, transparent 5.5px),
    radial-gradient(circle at 36px 15px, #fbbf24 5px, transparent 5.5px),
    radial-gradient(circle at 54px 15px, #4ade80 5px, transparent 5.5px),
    #eef3ee;
  border-bottom: 1px solid var(--border);
  direction: ltr;
}

.shot img {
  width: 100%;
}

figure figcaption,
.caption {
  margin-top: 12px;
  color: var(--sub);
  font-size: 13.5px;
  text-align: center;
}

.shot figcaption {
  margin: 0;
  padding: 10px 14px;
  border-top: 1px solid var(--border);
  background: #fbfdfb;
}

/* צילום מסך מהטלפון (בלי מסגרת מכשיר) */
.mshot {
  margin: 0 auto;
  max-width: 280px;
}

.mshot img {
  width: 100%;
  border-radius: 30px;
  border: 7px solid #16211b;
  box-shadow: var(--shadow-lg);
  background: #16211b;
}

.mshots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
}

.mshots .mshot {
  flex: 0 1 240px;
  margin: 0;
}

/* ---------- lists ---------- */
.checks {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-inline-start: 34px;
  color: var(--text);
}

.checks li::before {
  content: '\f00c';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dcfce7;
  color: var(--green-dark);
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.checks li strong {
  color: var(--ink);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
}

/* ---------- steps ---------- */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 18px;
  counter-reset: step;
}

.steps > li {
  counter-increment: step;
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px 22px 24px;
  padding-inline-start: 82px;
}

.steps > li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 22px;
  top: 22px;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 20px -10px rgba(22, 163, 74, 0.8);
}

.steps h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.steps p {
  margin-top: 6px;
  color: var(--sub);
  font-size: 15px;
}

.steps .who {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green-deep);
  font-size: 12.5px;
  font-weight: 700;
}

.steps.compact {
  grid-template-columns: repeat(4, 1fr);
}

.steps.compact > li {
  padding: 74px 20px 22px;
}

.steps.compact > li::before {
  top: 20px;
}

/* ---------- callouts ---------- */
.note {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px 20px;
  border-radius: 16px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: var(--text);
  font-size: 15px;
}

.note > i {
  color: var(--green-dark);
  font-size: 18px;
  margin-top: 3px;
}

.note.amber {
  background: #fffbeb;
  border-color: #fde68a;
}

.note.amber > i {
  color: #b45309;
}

/* ---------- facts strip ---------- */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.fact {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.fact .ic {
  width: 42px;
  height: 42px;
  font-size: 17px;
  flex: none;
}

.fact strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.fact span {
  display: block;
  color: var(--sub);
  font-size: 13.5px;
  margin-top: 2px;
  line-height: 1.55;
}

/* ---------- table ---------- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.sb-page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
  min-width: 560px;
}

.sb-page th,
.sb-page td {
  padding: 13px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.sb-page th {
  background: #f4f8f4;
  color: var(--ink);
  font-weight: 700;
}

.sb-page tr:last-child td {
  border-bottom: 0;
}

/* בטלפון: כל שורה הופכת לכרטיס קטן - התפקיד מעל ההסבר, בלי גלילה הצידה */
@media (max-width: 640px) {
  .sb-page table {
    min-width: 0;
  }

  .sb-page thead {
    display: none;
  }

  .sb-page tr,
  .sb-page td {
    display: block;
  }

  .sb-page tr {
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
  }

  .sb-page tr:last-child {
    border-bottom: 0;
  }

  .sb-page td {
    padding: 0;
    border-bottom: 0;
  }

  .sb-page td:first-child {
    margin-bottom: 4px;
  }
}

/* ---------- FAQ ---------- */
.faq-group + .faq-group {
  margin-top: 40px;
}

.faq-group > h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.35rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.faq-group > h2 .ic {
  width: 40px;
  height: 40px;
  font-size: 16px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 10px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.faq details[open] {
  border-color: var(--green-line);
  box-shadow: var(--shadow);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 20px;
  padding-inline-end: 52px;
  position: relative;
  font-weight: 700;
  color: var(--ink);
  font-size: 15.5px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '\f078';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  inset-inline-end: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--green-dark);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq details > div {
  padding: 0 20px 18px;
  color: var(--sub);
  font-size: 15px;
}

.faq details > div p + p {
  margin-top: 8px;
}

/* ---------- audience cards ---------- */
.audience .card {
  display: flex;
  flex-direction: column;
}

.audience .card .more {
  margin-top: auto;
  padding-top: 14px;
}

/* ---------- CTA band ---------- */
.cta-band {
  padding: 0 0 80px;
}

.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  padding: 46px 48px;
  background:
    radial-gradient(520px 260px at 0% 0%, rgba(74, 222, 128, 0.25), transparent 70%),
    linear-gradient(135deg, #14532d 0%, #166534 55%, #15803d 100%);
  color: #e7f6ec;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 28px;
  align-items: center;
}

.cta-box h2 {
  color: #fff;
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 900;
}

.cta-box p {
  margin-top: 10px;
  color: #c7e9d2;
  font-size: 1.04rem;
}

.cta-box .actions {
  margin-top: 0;
  justify-content: flex-end;
}

/* ---------- page nav (in-page links) ---------- */
.toc-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 26px;
  padding: 0;
  list-style: none;
}

.toc-inline a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.toc-inline a:hover {
  border-color: var(--green);
  color: var(--green-dark);
}

[id] {
  scroll-margin-top: 84px;
}

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .grid.c4 { grid-template-columns: repeat(2, 1fr); }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .steps.compact { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero {
    padding: 44px 0 56px;
  }

  .hero .wrap,
  .split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .split.rev .split-media {
    order: 0;
  }

  .split + .split,
  .grid + .split.after-grid {
    margin-top: 64px;
  }

  .grid.c3 { grid-template-columns: repeat(2, 1fr); }

  .cta-box {
    grid-template-columns: 1fr;
    padding: 36px 28px;
  }

  .cta-box .actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }

  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 32px;
  }

  .grid.c2,
  .grid.c3,
  .grid.c4,
  .facts,
  .steps.compact {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 20px;
  }

  .steps > li {
    padding: 20px 18px;
    padding-inline-start: 72px;
  }

  .steps > li::before {
    inset-inline-start: 16px;
    top: 18px;
  }

  .steps.compact > li {
    padding: 20px 18px;
    padding-inline-start: 72px;
  }

  .actions .btn {
    flex: 1 1 100%;
  }

  .cta-band {
    padding-bottom: 56px;
  }

  .cta-box {
    border-radius: 20px;
    padding: 30px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sb-page *,
  .sb-page *::before,
  .sb-page *::after {
    transition: none !important;
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
