/* ==========================================================================
   NF-Blaze · דף נחיתה
   עברית RTL, מובייל-first. הפלטה זהה לזו של האפליקציה עצמה
   (src/renderer/src/styles/global.css) כדי שהאתר והמוצר ייראו כמו דבר אחד.
   ========================================================================== */

:root {
  --bg-deep: #07090d;
  --bg-base: #0c0f14;
  --bg-elevated: #12171f;
  --bg-panel: #151b25;
  --bg-hover: #1c2431;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.14);
  /* יחסי ניגודיות מול הרקע העמוק (‏#07090d) — ת"י 5568 / WCAG AA דורש
     4.5:1 לטקסט רגיל. ‏--text-dim היה #5c6a7d ונכשל ב-3.6:1; הועלה. */
  --text: #eef2f7; /* 17.7:1 */
  --text-muted: #96a2b4; /* 7.7:1 */
  --text-dim: #7f8c9e; /* 5.8:1 — היה 3.6 ונכשל */
  --accent: #e8a04a;
  --accent-hot: #f0b35c;
  --accent-deep: #c97828;
  --accent-soft: rgba(232, 160, 74, 0.13);
  --success: #3dba7e;
  --danger: #e85d5d;
  --info: #5b9fd4;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-sm: 9px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --maxw: 1240px;
  --nav-h: 64px;
  color-scheme: dark;
}

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

html {
  /* גלילה חלקה לעוגנים, אבל בלי לשבור נגישות */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: 'Heebo', 'Segoe UI', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  direction: rtl;
  /* שום דבר לא גולש הצידה במובייל */
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img,
svg,
video {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent-hot);
  text-decoration: none;
}

::selection {
  background: rgba(232, 160, 74, 0.3);
}

/* מיקוד מקלדת חייב להיות מובחן — משתמש שמנווט ב-Tab צריך לראות איפה הוא */
:focus-visible {
  outline: 3px solid var(--accent-hot);
  outline-offset: 3px;
  border-radius: 4px;
}

/**
 * «דלג לתוכן» — מוסתר עד שמגיעים אליו ב-Tab, ואז קופץ לפינה.
 * בלעדיו משתמש מקלדת חייב לעבור את כל פריטי הניווט בכל עמוד מחדש.
 */
.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  transform: translate(50%, -150%);
  top: 8px;
  z-index: 200;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  background: var(--accent-hot);
  color: #1a1207;
  font-weight: 700;
  transition: transform 0.18s ease;
}

.skip-link:focus {
  transform: translate(50%, 0);
}

/* ---------- עזרי פריסה ---------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(18px, 5vw, 40px);
}

section {
  position: relative;
  padding-block: clamp(64px, 11vw, 128px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--accent-hot);
  background: var(--accent-soft);
  border: 1px solid rgba(232, 160, 74, 0.26);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

h1,
h2,
h3 {
  line-height: 1.18;
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.01em;
  /* מונע «יתום» — מילה בודדת שנופלת לשורה משלה */
  text-wrap: balance;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(1.55rem, 4.2vw, 2.5rem);
}

h3 {
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
}

.lead {
  color: var(--text-muted);
  font-size: clamp(1rem, 2.3vw, 1.18rem);
  max-width: 62ch;
  margin: 0 0 28px;
}

.section-head {
  max-width: 720px;
  margin-bottom: clamp(34px, 5vw, 58px);
}

.text-glow {
  background: linear-gradient(100deg, var(--accent-hot) 10%, #ffd9a0 45%, var(--accent) 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- כפתורים ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  /* יעד מגע נוח באצבע — 48px מינימום */
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-weight: 700;
  font-size: 0.97rem;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(145deg, var(--accent-hot), var(--accent-deep));
  border-color: transparent;
  color: #1a1207;
  box-shadow: 0 10px 30px rgba(232, 160, 74, 0.24);
}

.btn-primary:hover {
  background: linear-gradient(145deg, #f6c479, var(--accent));
  box-shadow: 0 16px 40px rgba(232, 160, 74, 0.34);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.btn-lg {
  min-height: 56px;
  padding: 14px 30px;
  font-size: 1.03rem;
}

.btn .ic {
  width: 19px;
  height: 19px;
  flex: none;
}

/* ---------- אייקונים ---------- */

.ic {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ic-solid {
  fill: currentColor;
  stroke: none;
}

/* ---------- ניווט ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  /* שקוף מעט — התוכן מבצבץ מאחור. הטשטוש החזק הוא מה ששומר על קריאות
     הטקסט, ולכן הוא עלה יחד עם הורדת האטימות. */
  background: rgba(7, 9, 13, 0.55);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
  /* מכשירים עם מגרעת */
  padding-top: env(safe-area-inset-top);
}

.nav.scrolled {
  border-bottom-color: var(--border);
  background: rgba(7, 9, 13, 0.72);
}

/* במובייל התפריט הנפתח נשען על הסרגל — שם צריך אטימות מלאה יותר,
   אחרת הטקסט שמאחור מבצבץ דרך שתי השכבות. */
@media (max-width: 1049px) {
  .nav,
  .nav.scrolled {
    background: rgba(7, 9, 13, 0.82);
  }
}

.nav .wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-family: 'Syne', 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 1.16rem;
  letter-spacing: -0.02em;
  flex: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  flex: none;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-inline-start: auto;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
  display: none;
  margin-inline-start: 8px;
}

/* ---------- תפריט נפתח (מדריכים) ---------- */

.has-drop {
  position: relative;
}

.drop-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.93rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.drop-btn:hover,
.has-drop:hover .drop-btn,
.has-drop:focus-within .drop-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.drop-btn .chev {
  width: 8px;
  height: 8px;
  border-inline-end: 2px solid currentColor;
  border-block-end: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.has-drop:hover .drop-btn .chev,
.has-drop:focus-within .drop-btn .chev {
  transform: rotate(-135deg) translateY(-2px);
}

.drop {
  position: absolute;
  top: calc(100% + 10px);
  inset-inline-end: 0;
  min-width: 268px;
  padding: 8px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: rgba(14, 18, 25, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}

/* גשר בלתי נראה — העכבר לא "נופל" בין הכפתור לתפריט */
.drop::before {
  content: '';
  position: absolute;
  top: -12px;
  inset-inline: 0;
  height: 12px;
}

.has-drop:hover .drop,
.has-drop:focus-within .drop {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.drop a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.93rem;
  font-weight: 600;
  transition: background 0.16s ease;
}

.drop a:hover {
  background: rgba(232, 160, 74, 0.1);
}

.drop a small {
  display: block;
  font-weight: 400;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 1px;
}

.drop .ic {
  width: 26px;
  height: 26px;
  flex: none;
}

/* קבוצת מדריכים בתפריט המובייל */
.menu-group {
  padding: 14px 8px 6px;
  font-size: 0.76rem;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  font-weight: 700;
  border-bottom: 1px solid var(--border);
}

.mobile-menu a.sub {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.98rem;
  padding-inline-start: 8px;
}

.mobile-menu a.sub .ic {
  width: 22px;
  height: 22px;
  flex: none;
}

.nav-toggle {
  margin-inline-start: auto;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: none;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  inset: calc(var(--nav-h) + env(safe-area-inset-top)) 0 auto 0;
  z-index: 55;
  background: rgba(7, 9, 13, 0.98);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  padding: 14px clamp(18px, 5vw, 40px) 26px;
  display: grid;
  gap: 4px;
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
  max-height: calc(100dvh - var(--nav-h));
  overflow-y: auto;
}

.mobile-menu.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mobile-menu a {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 600;
  padding: 14px 8px;
  border-radius: var(--radius-sm);
  border-bottom: 1px solid var(--border);
}

.mobile-menu .btn {
  margin-top: 14px;
}

/* 1050 ולא 900: עם «הורדה» יש שבעה פריטים ועוד כפתור פעולה, ובמסך צר
   מזה הם נדחסים ונדבקים זה לזה. עדיף המבורגר מסודר מתפריט צפוף. */
@media (min-width: 1050px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }

  .nav-toggle,
  .mobile-menu {
    display: none;
  }
}

/* ---------- רקע חי ---------- */

.aurora {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(78px);
  opacity: 0.5;
  will-change: transform;
}

.blob-1 {
  width: 46vw;
  height: 46vw;
  min-width: 300px;
  min-height: 300px;
  background: radial-gradient(circle, rgba(232, 160, 74, 0.55), transparent 68%);
  top: -14%;
  inset-inline-end: -10%;
  animation: drift1 22s ease-in-out infinite alternate;
}

.blob-2 {
  width: 38vw;
  height: 38vw;
  min-width: 250px;
  min-height: 250px;
  background: radial-gradient(circle, rgba(91, 159, 212, 0.32), transparent 68%);
  bottom: -18%;
  inset-inline-start: -8%;
  animation: drift2 27s ease-in-out infinite alternate;
}

.blob-3 {
  width: 30vw;
  height: 30vw;
  min-width: 210px;
  min-height: 210px;
  background: radial-gradient(circle, rgba(201, 120, 40, 0.34), transparent 70%);
  top: 34%;
  inset-inline-start: 26%;
  animation: drift3 19s ease-in-out infinite alternate;
}

@keyframes drift1 {
  to {
    transform: translate3d(-9%, 12%, 0) scale(1.16);
  }
}

@keyframes drift2 {
  to {
    transform: translate3d(11%, -10%, 0) scale(1.13);
  }
}

@keyframes drift3 {
  to {
    transform: translate3d(6%, -14%, 0) scale(0.88);
  }
}

/* גחלים עולים — מוטיב ה«להבה» של המותג */
.embers {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ember {
  position: absolute;
  bottom: -10px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent-hot);
  box-shadow: 0 0 10px 2px rgba(232, 160, 74, 0.55);
  opacity: 0;
  animation: rise linear infinite;
}

@keyframes rise {
  0% {
    transform: translateY(0) scale(0.7);
    opacity: 0;
  }
  12% {
    opacity: 0.85;
  }
  75% {
    opacity: 0.5;
  }
  100% {
    transform: translateY(-88vh) translateX(var(--drift, 20px)) scale(0.2);
    opacity: 0;
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(52px, 9vw, 96px);
  padding-bottom: clamp(56px, 9vw, 104px);
  overflow: hidden;
}

.hero .wrap {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  gap: clamp(38px, 6vw, 64px);
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid {
    grid-template-columns: 1.12fr 0.88fr;
  }
}

.hero h1 {
  margin-bottom: 20px;
}

/* במסך צר השבירה הידנית יוצרת «יתום» — נותנים לטקסט לזרום לבד */
@media (max-width: 559px) {
  .hero h1 br {
    display: none;
  }

  /* לא יורדים מתחת ל-12px — מתחת לזה זה כבר לא נוח לקריאה בטלפון */
  .eyebrow {
    font-size: 0.76rem;
    padding: 5px 11px;
    letter-spacing: 0.04em;
  }
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero-cta .btn {
  flex: 1 1 auto;
  min-width: 190px;
}

@media (min-width: 560px) {
  .hero-cta .btn {
    flex: 0 0 auto;
  }
}

.hero-note {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  color: var(--text-dim);
  font-size: 0.87rem;
}

.hero-note span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-note .ic {
  width: 15px;
  height: 15px;
  color: var(--success);
}

/* ---------- חלון «הסוכן עובד» ---------- */

.console {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(170deg, var(--bg-panel), var(--bg-base));
  box-shadow: var(--shadow);
  overflow: hidden;
  direction: rtl;
}

.console-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--border);
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
}

.console-title {
  margin-inline-start: auto;
  font-size: 0.78rem;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}

.console-body {
  padding: 16px 18px 20px;
  font-size: clamp(0.78rem, 2.4vw, 0.88rem);
  line-height: 2;
  min-height: 268px;
}

.line {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  opacity: 0;
  transform: translateY(6px);
  animation: lineIn 0.45s ease forwards;
}

@keyframes lineIn {
  to {
    opacity: 1;
    transform: none;
  }
}

.line .tag {
  flex: none;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 1px 8px;
  border-radius: 999px;
  margin-top: 6px;
  letter-spacing: 0.02em;
}

.tag-user {
  background: rgba(91, 159, 212, 0.16);
  color: #8dc3ea;
}

.tag-tool {
  background: var(--accent-soft);
  color: var(--accent-hot);
}

.tag-ok {
  background: rgba(61, 186, 126, 0.15);
  color: var(--success);
}

.line code {
  font-family: 'JetBrains Mono', ui-monospace, 'Cascadia Code', Consolas, monospace;
  font-size: 0.92em;
  color: var(--text-muted);
  direction: ltr;
  text-align: left;
  unicode-bidi: embed;
  word-break: break-word;
}

.caret {
  display: inline-block;
  width: 8px;
  height: 1.05em;
  background: var(--accent-hot);
  vertical-align: -2px;
  animation: blink 1.05s step-end infinite;
}

@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ---------- לוגואים / רצועת אמון ---------- */

.strip {
  border-block: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.015);
  padding-block: 24px;
}

.strip .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 34px;
}

.strip-label {
  width: 100%;
  text-align: center;
  font-size: 0.79rem;
  letter-spacing: 0.11em;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.strip-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.95rem;
  opacity: 0.85;
  transition: opacity 0.2s ease, color 0.2s ease;
}

.strip-item:hover {
  opacity: 1;
  color: var(--text);
}

.strip-item .ic {
  width: 22px;
  height: 22px;
}

/* ---------- כרטיסים ---------- */

.cards {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}

@media (min-width: 620px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.card::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 160, 74, 0.55), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 160, 74, 0.32);
  background: linear-gradient(165deg, rgba(232, 160, 74, 0.07), rgba(255, 255, 255, 0.015));
}

.card:hover::after {
  opacity: 1;
}

.card-ic {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--accent-soft);
  border: 1px solid rgba(232, 160, 74, 0.24);
  color: var(--accent-hot);
  margin-bottom: 16px;
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card p + p {
  margin-top: 10px;
}

.card code,
.integ-card code {
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: 0.85em;
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(232, 160, 74, 0.12);
  color: var(--accent-hot);
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

.card strong,
.integ-card strong {
  color: var(--text);
}

.card ul {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}

.card li {
  position: relative;
  padding-inline-start: 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.card li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.62em;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.75;
  transform: rotate(45deg);
}

/* ---------- איך זה עובד ---------- */

.steps {
  display: grid;
  gap: 18px;
  counter-reset: step;
}

@media (min-width: 860px) {
  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
  }
}

.step {
  position: relative;
  padding: 26px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.step-num {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--accent-hot), var(--accent-deep));
  color: #1a1207;
  font-weight: 900;
  font-size: 1.05rem;
  margin-bottom: 14px;
}

.step h3 {
  font-size: 1.05rem;
  margin-bottom: 7px;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* קו מקשר בין השלבים — רק בדסקטופ, ה-RTL מכתיב שהוא רץ ימינה→שמאלה */
@media (min-width: 860px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 46px;
    inset-inline-start: -14px;
    width: 14px;
    height: 2px;
    background: linear-gradient(90deg, rgba(232, 160, 74, 0.5), transparent);
  }
}

/* ---------- חיבורים ---------- */

.integ {
  display: grid;
  gap: 18px;
}

@media (min-width: 900px) {
  .integ {
    grid-template-columns: repeat(3, 1fr);
  }
}

.integ-card {
  padding: 28px 25px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.integ-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}

.integ-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}

.integ-head .ic {
  width: 30px;
  height: 30px;
}

.integ-head h3 {
  margin: 0;
  font-size: 1.16rem;
}

.integ-card > p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin: 0 0 14px;
}

.integ-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}

.integ-card li {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.integ-card li .ic {
  width: 16px;
  height: 16px;
  flex: none;
  margin-top: 5px;
  color: var(--accent);
}

.oauth-note {
  margin-top: 34px;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px dashed rgba(232, 160, 74, 0.36);
  background: rgba(232, 160, 74, 0.05);
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.oauth-note .ic {
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--accent-hot);
  margin-top: 3px;
}

.oauth-note p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.94rem;
}

.oauth-note strong {
  color: var(--text);
}

/* ---------- אבטחה ---------- */

.split {
  display: grid;
  gap: clamp(30px, 5vw, 56px);
  align-items: start;
}

@media (min-width: 950px) {
  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }
}

.facts {
  display: grid;
  gap: 14px;
}

.fact {
  display: flex;
  gap: 15px;
  padding: 20px 21px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.022);
}

.fact .ic {
  width: 25px;
  height: 25px;
  flex: none;
  color: var(--accent-hot);
  margin-top: 3px;
}

.fact h3 {
  font-size: 1.02rem;
  margin-bottom: 5px;
}

.fact p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ---------- מודלים ---------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.chip .ic {
  width: 16px;
  height: 16px;
  color: var(--accent);
}

/* ---------- הורדה ---------- */

.download-box {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 58px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 160, 74, 0.3);
  background:
    radial-gradient(ellipse at 78% 0%, rgba(232, 160, 74, 0.16), transparent 62%),
    linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.012));
  text-align: center;
}

.download-box h2 {
  margin-bottom: 12px;
}

.download-box .lead {
  margin-inline: auto;
}

.dl-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  margin-top: 20px;
  color: var(--text-dim);
  font-size: 0.85rem;
}

.dl-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dl-meta .ic {
  width: 15px;
  height: 15px;
}

/* ---------- טופס ---------- */

.form-card {
  padding: clamp(26px, 5vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: linear-gradient(170deg, var(--bg-panel), rgba(12, 15, 20, 0.92));
  box-shadow: var(--shadow);
}

.form-grid {
  display: grid;
  gap: 16px;
}

@media (min-width: 640px) {
  .form-row-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
}

.field label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 7px;
  color: var(--text);
}

.field .req {
  color: var(--accent-hot);
}

.input,
textarea.input {
  width: 100%;
  min-height: 50px;
  padding: 13px 15px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-deep);
  color: var(--text);
  /* 16px מונע זום אוטומטי ב-iOS בעת פוקוס */
  font: inherit;
  font-size: 16px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

textarea.input {
  min-height: 122px;
  resize: vertical;
  line-height: 1.65;
}

.input::placeholder {
  color: var(--text-dim);
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(232, 160, 74, 0.16);
}

/**
 * שדה בחירה. חץ מצויר ב-CSS ולא ב-appearance המקורי, כי ברירת המחדל
 * של הדפדפן נראית זרה בכהה — והחץ מוצב בצד השמאלי בהתאם ל-RTL.
 */
.select-field {
  appearance: none;
  -webkit-appearance: none;
  padding-inline-end: 44px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent-hot) 50%),
    linear-gradient(135deg, var(--accent-hot) 50%, transparent 50%);
  background-position:
    calc(18px) calc(50% + 2px),
    calc(24px) calc(50% + 2px);
  background-size:
    6px 6px,
    6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.select-field:invalid {
  color: var(--text-dim);
}

.select-field option {
  background: var(--bg-elevated);
  color: var(--text);
}

/* הודעת «יישלח תוך 48 שעות» — מידע, לא אזהרה */
.form-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(91, 159, 212, 0.35);
  background: rgba(91, 159, 212, 0.08);
}

.form-note .ic {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 2px;
  color: var(--info);
}

.form-note p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.form-note strong {
  color: var(--text);
}

/* מלכודת בוטים — מוסתרת מבני אדם ומקוראי מסך */
.hp {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.form-msg {
  margin: 0;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  display: none;
}

.form-msg.show {
  display: block;
}

.form-msg.ok {
  background: rgba(61, 186, 126, 0.12);
  border: 1px solid rgba(61, 186, 126, 0.4);
  color: #7fd9ac;
}

.form-msg.err {
  background: rgba(232, 93, 93, 0.1);
  border: 1px solid rgba(232, 93, 93, 0.4);
  color: #f09a9a;
}

.form-foot {
  margin-top: 4px;
  color: var(--text-dim);
  font-size: 0.83rem;
}

/* ---------- שאלות נפוצות ---------- */

.faq {
  display: grid;
  gap: 12px;
  max-width: 860px;
}

details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.022);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

details[open] {
  border-color: rgba(232, 160, 74, 0.3);
}

summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
}

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

summary::after {
  content: '';
  margin-inline-start: auto;
  width: 10px;
  height: 10px;
  border-inline-end: 2px solid var(--accent-hot);
  border-block-end: 2px solid var(--accent-hot);
  transform: rotate(45deg);
  transition: transform 0.22s ease;
  flex: none;
}

details[open] summary::after {
  transform: rotate(-135deg);
}

details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.94rem;
}

/* ---------- פוטר ---------- */

footer {
  border-top: 1px solid var(--border);
  padding-block: 44px calc(38px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.012);
}

.foot-grid {
  display: grid;
  gap: 26px;
  align-items: start;
}

@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.foot-grid p {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin: 12px 0 0;
  max-width: 42ch;
}

.foot-col h4 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  letter-spacing: 0.09em;
  color: var(--text-dim);
  font-weight: 700;
}

.foot-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.94rem;
  padding: 5px 0;
  transition: color 0.18s ease;
}

.foot-col a:hover {
  color: var(--accent-hot);
}

.foot-bottom {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  color: var(--text-dim);
  font-size: 0.84rem;
}

/* ==========================================================================
   עמודי מדריך (guides/)
   ========================================================================== */

.guide-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(46px, 8vw, 84px) clamp(30px, 5vw, 52px);
}

.guide-hero .wrap {
  position: relative;
  z-index: 1;
}

.crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

.crumb a {
  color: var(--text-muted);
}

.crumb a:hover {
  color: var(--accent-hot);
}

.crumb .sep {
  opacity: 0.5;
}

.guide-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 14px;
}

.guide-title .brand-badge {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.04);
}

.guide-title .brand-badge .ic {
  width: 32px;
  height: 32px;
}

.guide-title h1 {
  font-size: clamp(1.7rem, 5vw, 2.7rem);
  margin: 0;
}

/* מטא: זמן, עלות, האם צריך כרטיס */
.meta-row {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

@media (min-width: 660px) {
  .meta-row {
    grid-template-columns: repeat(3, 1fr);
  }
}

.meta {
  padding: 15px 17px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
}

.meta .k {
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  font-weight: 700;
  margin-bottom: 4px;
}

.meta .v {
  font-size: 0.97rem;
  font-weight: 600;
  color: var(--text);
}

/* ---------- שלבים ממוספרים ---------- */

.guide-body {
  max-width: 800px;
}

.guide-body h2 {
  margin-top: clamp(38px, 6vw, 60px);
}

.guide-body > p {
  color: var(--text-muted);
  font-size: 1rem;
}

.gstep {
  position: relative;
  padding-inline-start: 60px;
  padding-bottom: 30px;
}

.gstep:last-child {
  padding-bottom: 0;
}

/* קו אנכי שמחבר בין השלבים */
.gstep::before {
  content: '';
  position: absolute;
  inset-inline-start: 21px;
  top: 46px;
  bottom: -4px;
  width: 2px;
  background: linear-gradient(180deg, rgba(232, 160, 74, 0.42), rgba(232, 160, 74, 0.05));
}

.gstep:last-child::before {
  display: none;
}

.gstep .n {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: linear-gradient(145deg, var(--accent-hot), var(--accent-deep));
  color: #1a1207;
  font-weight: 900;
  font-size: 1.08rem;
}

.gstep h3 {
  margin: 8px 0 8px;
  font-size: 1.13rem;
}

.gstep p {
  margin: 0 0 10px;
  color: var(--text-muted);
  font-size: 0.97rem;
}

.gstep ul {
  margin: 0 0 10px;
  padding-inline-start: 20px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.gstep li {
  margin-bottom: 6px;
}

@media (max-width: 480px) {
  .gstep {
    padding-inline-start: 50px;
  }

  .gstep .n {
    width: 38px;
    height: 38px;
    font-size: 0.98rem;
  }

  .gstep::before {
    inset-inline-start: 18px;
    top: 40px;
  }
}

/* מה שכתוב על הכפתור במסך של הספק */
.ui {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 6px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.06);
  font-size: 0.88em;
  font-weight: 600;
  color: var(--text);
  direction: ltr;
  unicode-bidi: isolate;
  white-space: nowrap;
}

/* מחרוזת לדוגמה — מפתח, כתובת */
.mono {
  font-family: 'JetBrains Mono', ui-monospace, Consolas, monospace;
  font-size: 0.87em;
  padding: 2px 8px;
  border-radius: 6px;
  background: rgba(232, 160, 74, 0.12);
  color: var(--accent-hot);
  direction: ltr;
  unicode-bidi: isolate;
  word-break: break-all;
}

/* ---------- הערות והתראות ---------- */

.callout {
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  border-radius: var(--radius);
  margin: 20px 0;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.025);
}

.callout .ic {
  width: 24px;
  height: 24px;
  flex: none;
  margin-top: 3px;
}

/* h3 ולא h4 — התקן הישראלי אוסר דילוג רמה, וזו כותרת בתוך מקטע h2 */
.callout .callout-h {
  margin: 0 0 5px;
  font-size: 1rem;
  font-weight: 700;
}

.callout p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.callout p + p {
  margin-top: 8px;
}

.callout.danger {
  border-color: rgba(232, 93, 93, 0.45);
  background: rgba(232, 93, 93, 0.07);
}

.callout.danger .ic {
  color: var(--danger);
}

.callout.warn {
  border-color: rgba(232, 160, 74, 0.45);
  background: rgba(232, 160, 74, 0.07);
}

.callout.warn .ic {
  color: var(--accent-hot);
}

.callout.ok {
  border-color: rgba(61, 186, 126, 0.4);
  background: rgba(61, 186, 126, 0.06);
}

.callout.ok .ic {
  color: var(--success);
}

.callout.info .ic {
  color: var(--info);
}

/* ---------- כללי בטיחות ---------- */

.rules {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

@media (min-width: 720px) {
  .rules {
    grid-template-columns: 1fr 1fr;
  }
}

.rule {
  display: flex;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.022);
}

.rule .mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 8px;
  font-weight: 900;
  font-size: 0.95rem;
}

.rule.no .mark {
  background: rgba(232, 93, 93, 0.16);
  color: var(--danger);
}

.rule.yes .mark {
  background: rgba(61, 186, 126, 0.16);
  color: var(--success);
}

.rule strong {
  display: block;
  margin-bottom: 3px;
  font-size: 0.97rem;
}

.rule span {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* ---------- ניווט בין מדריכים ---------- */

.guide-next {
  display: grid;
  gap: 12px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
}

@media (min-width: 660px) {
  .guide-next {
    grid-template-columns: 1fr 1fr;
  }
}

.guide-next a {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 19px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
  font-weight: 600;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guide-next a:hover {
  border-color: rgba(232, 160, 74, 0.4);
  transform: translateY(-2px);
}

.guide-next .ic {
  width: 26px;
  height: 26px;
  flex: none;
}

.guide-next small {
  display: block;
  font-weight: 400;
  font-size: 0.79rem;
  color: var(--text-dim);
}

/* ---------- כרטיסי בחירת מדריך ---------- */

.guide-pick {
  display: grid;
  gap: 16px;
}

@media (min-width: 780px) {
  .guide-pick {
    grid-template-columns: repeat(3, 1fr);
  }
}

.guide-pick a {
  display: block;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  color: var(--text);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.guide-pick a:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 160, 74, 0.35);
}

.guide-pick .ic {
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
}

.guide-pick h3 {
  margin-bottom: 6px;
}

.guide-pick p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.93rem;
}

.guide-pick .tagline {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent-hot);
}

/* ==========================================================================
   עמודים משפטיים — מדיניות פרטיות, תקנון, הצהרת נגישות
   ========================================================================== */

.legal {
  max-width: 820px;
}

.legal h2 {
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  margin-top: clamp(34px, 5vw, 52px);
  padding-top: clamp(20px, 3vw, 28px);
  border-top: 1px solid var(--border);
}

.legal h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.legal h3 {
  font-size: 1.05rem;
  margin-top: 26px;
}

.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.9;
}

.legal ul,
.legal ol {
  padding-inline-start: 22px;
  margin: 0 0 18px;
}

.legal li {
  margin-bottom: 9px;
}

.legal li::marker {
  color: var(--accent);
}

.legal strong {
  color: var(--text);
}

.legal a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal dl {
  margin: 0 0 18px;
  display: grid;
  gap: 12px;
}

.legal dt {
  font-weight: 700;
  color: var(--text);
  font-size: 0.97rem;
}

.legal dd {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

/* טבלת מידע — «איזה נתון, למה, כמה זמן» */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 22px;
  font-size: 0.94rem;
}

.legal-table th,
.legal-table td {
  padding: 12px 14px;
  text-align: start;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.legal-table th {
  color: var(--text);
  font-weight: 700;
  font-size: 0.88rem;
  background: rgba(255, 255, 255, 0.03);
}

.legal-table td {
  color: var(--text-muted);
}

/* במובייל הטבלה נפרשת לכרטיסים */
@media (max-width: 620px) {
  .legal-table thead {
    display: none;
  }

  .legal-table,
  .legal-table tbody,
  .legal-table tr,
  .legal-table td {
    display: block;
    width: 100%;
  }

  .legal-table tr {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px;
    margin-bottom: 12px;
    background: rgba(255, 255, 255, 0.02);
  }

  .legal-table td {
    border: 0;
    padding: 5px 0;
  }

  .legal-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--text-dim);
    font-size: 0.78rem;
    margin-bottom: 2px;
  }
}

.legal-updated {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.legal-toc {
  padding: 18px 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.025);
  margin-bottom: 30px;
}

.legal-toc strong {
  display: block;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

.legal-toc ol {
  margin: 0;
  padding-inline-start: 20px;
}

.legal-toc li {
  margin-bottom: 5px;
  font-size: 0.94rem;
}

/* ---------- חשיפה בגלילה ---------- */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal[data-d='1'] {
  transition-delay: 0.07s;
}
.reveal[data-d='2'] {
  transition-delay: 0.14s;
}
.reveal[data-d='3'] {
  transition-delay: 0.21s;
}
.reveal[data-d='4'] {
  transition-delay: 0.28s;
}

/* ---------- העדפת תנועה מופחתת ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .ember,
  .blob {
    display: none;
  }
}
