/* ============ תאוריה.IL — design tokens ============
   השראה: תמרורי הדרך הישראליים. כחול תמרור, צהוב אזהרה,
   רקע תכלכל רגוע (לא לבן מסנוור) ושכבת "כביש" כהה למצב פוקוס. */
:root {
  --ink: #15233b;
  --ink-soft: #46546e;
  --paper: #f2f5f9;
  --card: #ffffff;
  --line: #d9e1ec;
  --road: #1b5fd9;
  --road-deep: #14418f;
  --sign: #ffc93c;
  --go: #1e9e62;
  --stop: #d6453d;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(21, 35, 59, .07);
  --font-scale: 1;
  --body-font: 'Heebo', system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--body-font);
  font-size: calc(16px * var(--font-scale));
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  min-height: 100vh;
}
h1, h2, h3, .display { font-family: 'Suez One', var(--body-font); font-weight: 400; letter-spacing: .2px; }
button { font-family: inherit; cursor: pointer; font-size: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
a { color: var(--road); }
img { max-width: 100%; }

/* ---------- מצבי נגישות ---------- */
body.dyslexic { --body-font: 'Comic Sans MS', 'Heebo', sans-serif; letter-spacing: .04em; word-spacing: .12em; }
body.high-contrast { --paper:#ffffff; --card:#ffffff; --ink:#000000; --ink-soft:#222; --line:#000; --road:#0033cc; }
body.high-contrast .card, body.high-contrast .answer { border-width: 2px; }
body.reduced-motion *, body.reduced-motion *::before, body.reduced-motion *::after { transition: none !important; animation: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- מצב פוקוס: הכביש בלילה ---------- */
body.focus-mode { background: #101a2c; color: #eef2f9; }
body.focus-mode .topbar, body.focus-mode .subnav, body.focus-mode footer,
body.focus-mode .hide-in-focus { display: none !important; }
body.focus-mode .card { background: #1a2740; border-color: #2c3c5e; color: #eef2f9; box-shadow: none; }
body.focus-mode .answer { background: #22314f; border-color: #36486c; color: #eef2f9; }
body.focus-mode .muted { color: #9fb0cc; }
body.focus-mode .focus-exit { display: inline-flex; }
.focus-exit { display: none; position: fixed; top: 14px; left: 14px; z-index: 90; }

/* ---------- מבנה ---------- */
.container { max-width: 1060px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 720px; }

.topbar {
  background: var(--card); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar-inner { display: flex; align-items: center; gap: 18px; height: 62px; }
.logo { display: flex; align-items: center; gap: 9px; font-family: 'Suez One'; font-size: 21px; color: var(--ink); text-decoration: none; }
.logo-sign {
  width: 34px; height: 34px; background: var(--road); border-radius: 8px;
  display: grid; place-items: center; color: #fff; font-size: 16px;
  border: 2.5px solid #fff; outline: 2px solid var(--road);
}
.nav { display: flex; gap: 4px; margin-inline-start: auto; align-items: center; flex-wrap: wrap; }
.nav a, .nav button.linklike {
  padding: 7px 13px; border-radius: 9px; text-decoration: none; color: var(--ink-soft);
  background: none; border: none; font-weight: 500;
}
.nav a.active, .nav a:hover { background: var(--paper); color: var(--road-deep); }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; border-radius: 11px; border: 1.5px solid transparent;
  font-weight: 600; text-decoration: none; transition: transform .08s, background .15s;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible, a:focus-visible, .answer:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--sign); outline-offset: 2px;
}
.btn-primary { background: var(--road); color: #fff; }
.btn-primary:hover { background: var(--road-deep); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--road); color: var(--road-deep); }
.btn-go { background: var(--go); color: #fff; }
.btn-warn { background: var(--stop); color: #fff; }
.btn-sm { padding: 6px 13px; font-size: .9em; border-radius: 8px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- כרטיסים ---------- */
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow);
}
.muted { color: var(--ink-soft); }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }

/* ---------- חתימה: הדרך לטסט ---------- */
.road-progress {
  position: relative; height: 56px; background: #2b3850; border-radius: 12px;
  overflow: hidden; margin: 8px 0;
}
.road-progress .lane {
  position: absolute; inset-inline: 14px; top: 50%; height: 0;
  border-top: 4px dashed rgba(255, 255, 255, .55);
}
.road-progress .car-marker {
  position: absolute; top: 50%; transform: translate(50%, -50%);
  inline-size: 34px; block-size: 34px; background: var(--sign); border-radius: 50%;
  display: grid; place-items: center; font-size: 17px; transition: inset-inline-start .6s ease;
  border: 3px solid #fff;
}
.road-progress .finish {
  position: absolute; inset-inline-end: 10px; top: 50%; transform: translateY(-50%);
  background: var(--go); color: #fff; border-radius: 7px; padding: 3px 9px;
  font-size: 13px; font-weight: 700; border: 2px solid #fff;
}

/* ---------- Hero ---------- */
.hero { padding: 64px 0 44px; text-align: center; }
.hero .sign-board {
  display: inline-block; background: var(--road); color: #fff;
  border-radius: 18px; padding: 26px 38px; border: 4px solid #fff;
  outline: 3px solid var(--road); box-shadow: 0 10px 30px rgba(20, 65, 143, .25);
  margin-bottom: 22px;
}
.hero .sign-board h1 { font-size: clamp(26px, 5vw, 44px); line-height: 1.25; }
.hero .sign-board .arrow { color: var(--sign); }
.hero p.lead { max-width: 580px; margin: 0 auto 26px; font-size: 1.12em; color: var(--ink-soft); }

.badge {
  display: inline-flex; align-items: center; gap: 6px; background: #fff;
  border: 1.5px solid var(--line); border-radius: 99px; padding: 5px 14px;
  font-size: .88em; font-weight: 600; color: var(--ink-soft);
}
.badge.adhd { border-color: var(--sign); background: #fff8e2; color: #7a5c00; }

/* ---------- שאלה (כרטיס בסגנון שלט) ---------- */
.question-card { border-inline-start: 6px solid var(--road); }
.question-card .q-cat { font-size: .82em; font-weight: 700; color: var(--road-deep); letter-spacing: .03em; }
.question-card h3 { font-size: 1.2em; margin: 6px 0 16px; line-height: 1.5; }
.answers { display: grid; gap: 10px; }
.answer {
  text-align: start; padding: 13px 16px; border-radius: 11px;
  border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .12s, background .12s; line-height: 1.5;
}
.answer:hover { border-color: var(--road); }
.answer.selected { border-color: var(--road); background: #e8f0ff; }
.answer.correct { border-color: var(--go); background: #e4f6ed; font-weight: 600; }
.answer.wrong { border-color: var(--stop); background: #fdeae9; }
body.focus-mode .answer.correct { background: #15402d; border-color: var(--go); }
body.focus-mode .answer.wrong { background: #46201e; border-color: var(--stop); }
.explanation {
  margin-top: 14px; padding: 13px 16px; border-radius: 11px;
  background: #fff8e2; border: 1.5px solid var(--sign); font-size: .95em;
}
body.focus-mode .explanation { background: #3a3215; color: #ffe9a8; }

/* ---------- טיימר ופס התקדמות ---------- */
.exam-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.timer { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 1.15em; background: var(--card); border: 1.5px solid var(--line); padding: 6px 14px; border-radius: 9px; }
.timer.low { border-color: var(--stop); color: var(--stop); }
.progress-pills { display: flex; gap: 5px; flex-wrap: wrap; }
.pill { width: 22px; height: 10px; border-radius: 6px; background: var(--line); border: none; padding: 0; }
.pill.answered { background: var(--road); }
.pill.current { outline: 2px solid var(--sign); }

/* ---------- סטטיסטיקות ---------- */
.stat-num { font-family: 'Suez One'; font-size: 2em; color: var(--road-deep); }
.bar { height: 10px; background: var(--line); border-radius: 6px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--road); border-radius: 6px; }
.bar.good > span { background: var(--go); }
.bar.bad > span { background: var(--stop); }

/* ---------- טפסים ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .92em; }
.field input, .field select, .field textarea {
  padding: 11px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
}
.field input:focus, .field select:focus { border-color: var(--road); }
.hint { font-size: .84em; color: var(--ink-soft); }
.error-box { background: #fdeae9; border: 1.5px solid var(--stop); color: #8c2722; padding: 11px 15px; border-radius: 10px; font-size: .94em; }
.ok-box { background: #e4f6ed; border: 1.5px solid var(--go); color: #135c3a; padding: 11px 15px; border-radius: 10px; font-size: .94em; }

/* ---------- מודאל ---------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(16, 26, 44, .55); z-index: 80;
  display: grid; place-items: center; padding: 16px;
}
.modal { background: var(--card); border-radius: 16px; padding: 26px; width: 100%; max-width: 430px; max-height: 92vh; overflow: auto; }

/* ---------- מתגים ---------- */
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.toggle-row:last-child { border-bottom: none; }
.switch { position: relative; width: 46px; height: 26px; flex-shrink: 0; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; z-index: 2; }
.switch .knob { position: absolute; inset: 0; background: var(--line); border-radius: 99px; transition: background .15s; }
.switch .knob::after { content: ''; position: absolute; top: 3px; inset-inline-start: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + .knob { background: var(--go); }
.switch input:checked + .knob::after { transform: translateX(-20px); }

/* ---------- תמחור ---------- */
.price-card { text-align: center; position: relative; }
.price-card.featured { border: 2.5px solid var(--road); }
.price-card .flag { position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%); background: var(--sign); color: #5d4500; padding: 3px 14px; border-radius: 99px; font-size: .82em; font-weight: 700; }
.price { font-family: 'Suez One'; font-size: 2.3em; color: var(--ink); }
.price small { font-size: .42em; color: var(--ink-soft); font-family: var(--body-font); }

/* ---------- שונות ---------- */
.toast {
  position: fixed; bottom: 22px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--ink); color: #fff; padding: 12px 22px; border-radius: 11px; z-index: 100;
  box-shadow: 0 6px 20px rgba(0,0,0,.25);
}
.subnav { display: flex; gap: 6px; margin: 20px 0; flex-wrap: wrap; }
.subnav button { padding: 8px 16px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--card); font-weight: 600; color: var(--ink-soft); }
.subnav button.active { background: var(--road); border-color: var(--road); color: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .93em; }
.tbl th, .tbl td { padding: 9px 10px; text-align: start; border-bottom: 1px solid var(--line); }
.tbl th { color: var(--ink-soft); font-size: .88em; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .8em; font-weight: 700; }
.tag.paid, .tag.active-tag { background: #e4f6ed; color: #135c3a; }
.tag.pending { background: #fff8e2; color: #7a5c00; }
.tag.failed { background: #fdeae9; color: #8c2722; }
footer { padding: 36px 0; color: var(--ink-soft); font-size: .9em; text-align: center; }
main { padding-bottom: 56px; min-height: 70vh; }
.section-title { margin: 28px 0 14px; }
.break-overlay { position: fixed; inset: 0; background: #101a2c; color: #fff; z-index: 95; display: grid; place-items: center; text-align: center; padding: 20px; }

@media (max-width: 640px) {
  .topbar-inner { height: auto; padding: 10px 0; flex-wrap: wrap; }
  .hero { padding: 36px 0 28px; }
  .card { padding: 17px; }
}

/* ---------- וריאציות toast ---------- */
.toast.ok { background: var(--go); }
.toast.bad { background: var(--stop); }

/* ---------- פוטר ועמודים משפטיים ---------- */
.footer-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: .92em; }
.footer-links a:hover { color: var(--road-deep); text-decoration: underline; }
.footer-disclaimer { font-size: .82em; color: var(--ink-soft); opacity: .85; margin-top: 6px; }
.legal h3 { margin: 20px 0 8px; font-size: 1.05em; }
.legal p { margin-bottom: 10px; line-height: 1.75; }
.legal a { color: var(--road-deep); }

/* ================= 2026 PASS — הייטק, עומק, זוהר ================= */
:root {
  --grad-hero: linear-gradient(135deg, #0d1b34 0%, #15233b 45%, #1b3a6b 100%);
  --grad-accent: linear-gradient(90deg, #1b5fd9, #4f8df9);
  --glow-blue: 0 0 0 1px rgba(27,95,217,.25), 0 8px 30px -6px rgba(27,95,217,.35);
  --shadow-soft: 0 1px 2px rgba(21,35,59,.05), 0 8px 24px -8px rgba(21,35,59,.14);
}
body { -webkit-font-smoothing: antialiased; }
.card {
  border: 1px solid rgba(21,35,59,.07);
  box-shadow: var(--shadow-soft);
  border-radius: 16px;
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: 0 2px 4px rgba(21,35,59,.06), 0 14px 34px -10px rgba(21,35,59,.18); }
.btn { border-radius: 12px; transition: transform .15s, box-shadow .2s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-accent); border: none; box-shadow: var(--glow-blue); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-go { box-shadow: 0 0 0 1px rgba(30,158,98,.25), 0 8px 26px -8px rgba(30,158,98,.4); }
.hero {
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}
.hero::before { /* רשת נקודות עדינה — תחושת מוצר טק */
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.10) 1px, transparent 1px);
  background-size: 26px 26px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
}
.hero::after { /* הילת זוהר */
  content: ''; position: absolute; width: 600px; height: 600px;
  top: -300px; inset-inline-start: -150px; border-radius: 50%;
  background: radial-gradient(circle, rgba(79,141,249,.28), transparent 65%);
  pointer-events: none;
}
.hero > * { position: relative; z-index: 1; }
.topbar { backdrop-filter: blur(14px); background: rgba(242,245,249,.82); border-bottom: 1px solid rgba(21,35,59,.07); }
.question-card { border-radius: 18px; box-shadow: var(--shadow-soft); }
.answer { border-radius: 12px; transition: transform .12s, box-shadow .15s, border-color .15s, background .15s; }
.answer:hover:not(.correct):not(.wrong) { transform: translateY(-1px); box-shadow: 0 6px 18px -8px rgba(27,95,217,.3); border-color: var(--road); }
.price-card { border-radius: 18px; transition: transform .25s, box-shadow .25s; }
.price-card:hover { transform: translateY(-5px); }
.price-card.featured { box-shadow: var(--glow-blue); border-color: var(--road); position: relative; }
.toast { border-radius: 12px; backdrop-filter: blur(6px); box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); }
.modal { border-radius: 18px; box-shadow: 0 24px 70px -20px rgba(13,27,52,.45); }
.q-img img { max-height: 220px; border-radius: 12px; box-shadow: var(--shadow-soft); }
.progress-pills .pill { transition: transform .12s; }
.progress-pills .pill:hover { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce), (body.reduced-motion) {
  .card, .btn, .answer, .price-card, .pill { transition: none !important; }
}
body.focus-mode .card, body.focus-mode .question-card { box-shadow: none; border-color: rgba(255,255,255,.1); }

/* ---------- באנרים: הודעת מערכת + קוקיז + חותם אמון ---------- */
.site-banner {
  display: flex; justify-content: center; align-items: center; gap: 14px;
  background: var(--grad-accent); color: #fff; padding: 9px 16px; font-weight: 600; font-size: .94em;
  position: relative; z-index: 60;
}
.site-banner button { background: none; border: 0; color: #fff; cursor: pointer; font-size: 1em; opacity: .85; }
.cookie-banner {
  position: fixed; bottom: 14px; inset-inline: 14px; z-index: 90;
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap;
  background: rgba(21,35,59,.96); color: #e6ecf7; padding: 13px 18px; border-radius: 14px;
  box-shadow: 0 14px 40px -10px rgba(0,0,0,.5); backdrop-filter: blur(8px);
  font-size: .92em; max-width: 860px; margin-inline: auto;
}
.cookie-banner a { color: #8fb6ff; }
.trust-note { margin-top: 12px; font-size: .85em; color: var(--ink-soft); line-height: 1.7; }
.trust-note a { color: var(--road-deep); }
body.focus-mode .site-banner, body.focus-mode .cookie-banner { display: none; }

/* ================= תיקוני UI + פוליש סטארטאפ ================= */
/* כפתור יציאה מפוקוס — קיים רק בתוך מצב פוקוס */
.focus-exit { display: none; }
body.focus-mode .focus-exit {
  display: inline-flex; position: fixed; top: 14px; inset-inline-start: 14px; z-index: 95;
  background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.35);
}
body.focus-mode .focus-exit:hover { background: rgba(255,255,255,.22); color: #fff; }

/* כפתור משני על רקע כהה (hero) — היה בלתי נראה */
.hero .btn-ghost { color: #eaf1fd; border-color: rgba(255,255,255,.45); }
.hero .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.08); }
.hero .badge { background: rgba(255,255,255,.1); color: #dbe6fa; border: 1px solid rgba(255,255,255,.18); }

/* טיפוגרפיה ברמת מוצר */
.hero h1 { font-size: clamp(2.1em, 5vw, 3.3em); letter-spacing: -0.5px; line-height: 1.15; }
.hero .lead { font-size: 1.13em; max-width: 640px; margin-inline: auto; color: #c9d6ec; }
.section-title { letter-spacing: -0.3px; }
h1, h2, h3 { letter-spacing: -0.2px; }

/* כותרות עם הדגשת גרדיאנט — מראה סטארטאפ */
.gradient-text, .hero h1 .arrow {
  background: linear-gradient(90deg, #ffc93c, #ffe08a);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* קצב סקשנים ומספרים */
section { scroll-margin-top: 80px; }
.stat-num { font-size: 2.3em; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }

/* אינפוטים מודרניים */
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="url"], input[type="date"], select, textarea {
  border-radius: 11px; transition: border-color .15s, box-shadow .15s;
}
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none; border-color: var(--road); box-shadow: 0 0 0 3px rgba(27,95,217,.18);
}

/* טבלאות נקיות */
table.tbl tr:hover td { background: rgba(27,95,217,.035); }

/* סרגל גלילה עדין */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(21,35,59,.22); border-radius: 99px; border: 2px solid var(--paper); }
::-webkit-scrollbar-thumb:hover { background: rgba(21,35,59,.35); }

/* ================= HERO V2 — מראה מוצר הייטק ================= */
h1, h2, h3, .section-title { font-family: 'Heebo'; font-weight: 800; }
.logo, .logo-sign { font-family: 'Suez One'; }

.hero-v2 { padding: 72px 24px 56px; text-align: start; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  max-width: 1120px; margin-inline: auto;
}
.hero-copy .lead { margin-inline: 0; text-align: start; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(79,141,249,.14); border: 1px solid rgba(79,141,249,.4);
  color: #aecbff; padding: 6px 14px; border-radius: 99px; font-size: .88em; font-weight: 600;
  text-decoration: none; margin-bottom: 22px; transition: background .2s;
}
.hero-pill:hover { background: rgba(79,141,249,.24); }
.hero-cta { margin-top: 26px; }
.btn-lg { padding: 14px 26px; font-size: 1.06em; }
.hero-trust { display: flex; gap: 18px; margin-top: 22px; flex-wrap: wrap; color: #9fb4d8; font-size: .9em; }
.hero-badges { justify-content: center; margin-top: 44px; }

/* Mockup — חלון מוצר חי */
.hero-mock { position: relative; }
.mock-window {
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08);
  transform: rotate(-1.5deg);
  animation: mock-float 7s ease-in-out infinite;
}
@keyframes mock-float { 50% { transform: rotate(-1.5deg) translateY(-9px); } }
.mock-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: #f0f3f8; border-bottom: 1px solid #e3e8f0; color: var(--ink-soft); font-size: .8em;
}
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d6dce6; }
.mock-bar i:nth-child(1) { background: #ff5f57; } .mock-bar i:nth-child(2) { background: #febc2e; } .mock-bar i:nth-child(3) { background: #28c840; }
.mock-bar b { margin-inline-start: 10px; font-weight: 600; }
.mock-body { padding: 18px; }
.mock-q { font-weight: 800; color: var(--ink); margin-bottom: 12px; font-size: 1.02em; }
.mock-a {
  padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 11px;
  margin-bottom: 8px; font-size: .9em; color: var(--ink);
}
.mock-a.ok { border-color: var(--go); background: #e9f8f0; color: #136a41; font-weight: 700; }
.mock-progress { height: 8px; background: #eceff5; border-radius: 99px; margin: 16px 0 10px; overflow: hidden; }
.mock-progress span { display: block; height: 100%; background: var(--grad-accent); border-radius: 99px; }
.mock-meta { display: flex; justify-content: space-between; font-size: .85em; color: var(--ink-soft); }
.mock-meta b { color: var(--road-deep); }
.mock-chip {
  position: absolute; background: rgba(13,27,52,.92); color: #fff; padding: 9px 15px;
  border-radius: 12px; font-size: .82em; font-weight: 600;
  box-shadow: 0 12px 32px -8px rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(6px);
}
.chip-1 { top: -16px; inset-inline-end: -10px; animation: chip-float 5s ease-in-out infinite; }
.chip-2 { bottom: -14px; inset-inline-start: -12px; animation: chip-float 6s ease-in-out 1s infinite; }
@keyframes chip-float { 50% { transform: translateY(-6px); } }

/* פס סטטיסטיקות */
.stats-band {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
  max-width: 980px; margin: -34px auto 30px; position: relative; z-index: 2;
  background: #fff; border-radius: 16px; padding: 22px 18px;
  box-shadow: var(--shadow-soft); border: 1px solid rgba(21,35,59,.06); text-align: center;
}
.stats-band b { display: block; font-size: 1.7em; font-weight: 800; background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stats-band span { font-size: .85em; color: var(--ink-soft); }

/* חשיפה בגלילה */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
body.reduced-motion .reveal { opacity: 1; transform: none; transition: none; }
body.reduced-motion .mock-window, body.reduced-motion .mock-chip { animation: none; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-v2 { text-align: center; padding-top: 52px; }
  .hero-copy .lead { text-align: center; margin-inline: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .mock-window { transform: none; }
  .stats-band { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
}

/* תיקון ניגודיות hero — טקסט בהיר מובטח על הרקע הכהה */
.hero-v2 h1 { color: #fff; }
.hero-v2 .lead { color: #c4d3ea; }
.hero-v2 .hero-trust span { color: #9fb4d8; }

/* פוליש פאנל ניהול */
.admin-side { background: linear-gradient(180deg, #0d1b34, #15233b); }
.admin-side a.active { background: var(--grad-accent); color: #fff; box-shadow: 0 4px 14px -4px rgba(27,95,217,.5); }
.admin-main h1 { font-weight: 800; font-family: 'Heebo'; }

/* ---------- עמודי מאמר ובלוג ---------- */
.article-page { max-width: 760px; margin: 36px auto 60px; padding: 0 20px; }
.article-h1 { font-size: clamp(1.7em, 4vw, 2.5em); font-weight: 800; line-height: 1.2; margin: 12px 0 16px; }
.article-lead { font-size: 1.15em; color: var(--ink-soft); margin-bottom: 28px; }
.article-body { font-size: 1.08em; line-height: 1.9; color: var(--ink); }
.article-body h2 { font-size: 1.35em; font-weight: 800; margin: 32px 0 12px; color: var(--ink); }
.article-body p { margin-bottom: 16px; }
.article-body ol { margin: 0 22px 18px; display: grid; gap: 10px; }
.article-body li { line-height: 1.8; }
.article-body strong { color: var(--road-deep); }
.article-cta { margin-top: 40px; padding: 28px; background: var(--grad-hero); border-radius: 18px; text-align: center; color: #fff; }
.article-cta h3 { font-size: 1.3em; margin-bottom: 16px; color: #fff; }
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 24px; }
.article-card {
  display: block; padding: 22px; background: #fff; border: 1px solid rgba(21,35,59,.08); border-radius: 16px;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-soft); transition: transform .2s, box-shadow .2s;
}
.article-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px -10px rgba(21,35,59,.2); }
.article-card h2 { font-size: 1.15em; font-weight: 800; margin: 10px 0 8px; line-height: 1.35; }
.article-card p { font-size: .92em; color: var(--ink-soft); line-height: 1.6; }
.article-card .read-more { display: inline-block; margin-top: 12px; color: var(--road-deep); font-weight: 700; font-size: .9em; }

/* ================= LANDING V3 — BENTO UI ================= */
:root { --radius-lg: 16px; --radius-xl: 22px; }

.saas-hero { text-align: center; padding: 76px 5% 36px; max-width: 1000px; margin: 0 auto; }
.saas-pill {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  background: rgba(27,95,217,.08); color: var(--road-deep); border: 1px solid rgba(27,95,217,.2);
  padding: 8px 18px; border-radius: 99px; font-weight: 700; font-size: .95em; margin-bottom: 24px;
  transition: background .2s;
}
.saas-pill:hover { background: rgba(27,95,217,.14); }
.saas-hero h1 { font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 800; line-height: 1.1; margin-bottom: 18px; color: var(--ink); letter-spacing: -1px; }
.saas-hero h1 span { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.saas-hero p.lead { font-size: 1.18rem; color: var(--ink-soft); max-width: 640px; margin: 0 auto 32px; line-height: 1.65; }

.bento-grid { max-width: 1100px; margin: 0 auto 70px; padding: 0 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-rows: 1fr; }
.bento-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: 32px; position: relative; overflow: hidden;
  transition: box-shadow .3s, transform .3s, border-color .3s;
}
.bento-card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -14px rgba(21,35,59,.18); border-color: rgba(27,95,217,.3); }
.bento-icon { font-size: 1.8rem; background: var(--paper); width: 60px; height: 60px; display: flex; align-items: center; justify-content: center; border-radius: 16px; margin-bottom: 18px; }
.bento-card h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 10px; color: var(--ink); }
.bento-card p { color: var(--ink-soft); line-height: 1.65; font-size: 1rem; }
.bento-large { grid-column: span 2; }
.bento-tall { grid-row: span 2; display: flex; flex-direction: column; }
.bento-lead { max-width: 420px; margin-bottom: 30px; }

/* כרטיס גדול: טקסט + מוקאפ זה לצד זה (בלי דריסה) */
.bento-large-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; height: 100%; }
.bento-large-text { align-self: center; }
.bento-mockup {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: 0 14px 34px -10px rgba(21,35,59,.16);
}
.bento-mockup .mock-bar { padding: 0 0 10px; background: none; border: none; }
.bm-q { font-weight: 800; margin-bottom: 12px; font-size: 1rem; color: var(--ink); }
.bm-a { padding: 10px 13px; border: 1.5px solid var(--line); border-radius: 11px; margin-bottom: 7px; font-size: .9em; color: var(--ink); }
.bm-a.ok { background: rgba(30,158,98,.1); color: #14794a; border-color: rgba(30,158,98,.25); font-weight: 700; }

/* סטטיסטיקה בכרטיס הגבוה */
.bento-stat { margin-top: auto; background: var(--paper); padding: 18px; border-radius: 16px; border: 1px solid var(--line); }
.bento-stat b { font-size: .95em; }
.bm-bar { height: 8px; background: var(--line); border-radius: 10px; margin-top: 12px; overflow: hidden; }
.bm-bar span { display: block; height: 100%; background: var(--road); border-radius: 10px; }

.pricing-section { max-width: 1000px; margin: 0 auto 60px; text-align: center; padding: 0 5%; }

/* אנימציית כניסה עדינה */
.fade-up { animation: fadeUp .6s cubic-bezier(.4,0,.2,1) forwards; opacity: 0; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.d-1 { animation-delay: .08s; } .d-2 { animation-delay: .16s; } .d-3 { animation-delay: .24s; }
body.reduced-motion .fade-up { animation: none; opacity: 1; }

@media (max-width: 900px) {
  .saas-hero { padding-top: 40px; }
  .bento-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .bento-large, .bento-tall { grid-column: span 1; grid-row: span 1; }
  .bento-lead { margin-bottom: 22px; max-width: 100%; }
  .bento-large-inner { grid-template-columns: 1fr; gap: 18px; }
}

/* ================= GLASS DESIGN LANGUAGE — כל האתר ================= */
:root {
  --glass: rgba(255,255,255,.72);
  --glass-border: rgba(255,255,255,.55);
  --ease-glass: cubic-bezier(.25,1,.5,1);
}
/* רקע גרדיאנט עדין לכל הדפים */
body {
  background-color: var(--paper);
  background-image:
    radial-gradient(at 0% 0%, rgba(27,95,217,.08) 0px, transparent 45%),
    radial-gradient(at 100% 8%, rgba(16,185,129,.05) 0px, transparent 42%);
  background-attachment: fixed;
}
/* Topbar זכוכית צף */
.topbar {
  background: var(--glass);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 4px 24px rgba(15,23,42,.04);
}
/* כרטיסים — זכוכית עדינה + מעבר חלק */
.card, .bento-card, .price-card, .article-card {
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .3s var(--ease-glass), box-shadow .3s var(--ease-glass), border-color .3s var(--ease-glass);
}
/* מוקאפ ה-hero — אפקט 3D עדין */
.mock-window { box-shadow: 0 30px 60px -20px rgba(15,23,42,.28), inset 0 1px 0 rgba(255,255,255,1); }

/* כפתורים — glow רך יותר */
.btn-primary { box-shadow: 0 8px 24px -6px var(--primary-glow, rgba(27,95,217,.4)); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px -6px rgba(27,95,217,.45); }

/* badges/pills של נושאים — זכוכית */
.badge, .pill { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* === מסכי הלקוח הפנימיים === */
/* כרטיסי השאלות, סטטיסטיקה, הגדרות — אותה שפת זכוכית */
.question-card {
  background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
}
.answer { backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.stat-card, .progress-card, .dash-card {
  background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
}
.road-progress { border: 1px solid var(--glass-border); backdrop-filter: blur(8px); }

/* מצב פוקוס — מבטל זכוכית ומחזיר כהה אטום (קריאוּת) */
body.focus-mode .card, body.focus-mode .question-card { background: rgba(255,255,255,.04); backdrop-filter: none; }
/* ניגודיות גבוהה — מבטל שקיפויות לטובת נגישות */
body.high-contrast .topbar, body.high-contrast .card, body.high-contrast .question-card,
body.high-contrast .bento-card { background: #fff; backdrop-filter: none; }

/* ================= HI-TECH POLISH — מסכים פנימיים ================= */
/* כותרות מסך עם קו גרדיאנט מתחת */
.section-title {
  position: relative; display: inline-block; padding-bottom: 6px; font-weight: 800;
}
.section-title::after {
  content: ''; position: absolute; bottom: 0; inset-inline-start: 0; width: 46px; height: 3px;
  background: var(--grad-accent); border-radius: 3px;
}

/* כרטיסי ניווט בדשבורד — הופכים לאינטראקטיביים עם חץ זוהר */
a.card { position: relative; overflow: hidden; }
a.card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(27,95,217,.06), transparent 60%);
  opacity: 0; transition: opacity .3s var(--ease-glass);
}
a.card:hover::before { opacity: 1; }
a.card h3 { transition: transform .25s var(--ease-glass); }
a.card:hover h3 { transform: translateX(-4px); }

/* כרטיסי סטטיסטיקה — מספרים ענקיים בגרדיאנט + רקע עדין */
.card[style*="text-align:center"] {
  background:
    radial-gradient(circle at 50% 0%, rgba(27,95,217,.06), transparent 70%),
    var(--glass);
  position: relative;
}
.stat-num {
  font-size: 2.6em; font-weight: 800; line-height: 1.05;
  background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -1px;
}

/* מד הדרך לטסט — מסלול עם זוהר */
.road-progress {
  background: linear-gradient(90deg, rgba(27,95,217,.08), rgba(30,158,98,.08));
  border-radius: 14px; padding: 14px 16px; position: relative; overflow: hidden;
}
.car-marker { transition: inset-inline-start .8s var(--ease-glass); filter: drop-shadow(0 4px 8px rgba(0,0,0,.2)); }
.finish { font-weight: 800; }

/* פסי דיוק נושאי — גרדיאנט + מילוי מונפש */
.bar { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad-accent); transition: width 1s var(--ease-glass); }
.bar.good span { background: linear-gradient(90deg, #1e9e62, #36c785); }
.bar.bad span { background: linear-gradient(90deg, #d6453d, #f0716a); }

/* מסך לימוד/מבחן — כרטיס שאלה עם הדגשה */
.question-card { position: relative; }
.question-card::before {
  content: ''; position: absolute; top: 0; inset-inline-start: 0; width: 100%; height: 4px;
  background: var(--grad-accent); border-radius: 18px 18px 0 0;
}

/* טבלאות פנימיות — שורות מרחפות */
.tbl tbody tr { transition: background .15s; }
.tbl tbody tr:hover td { background: rgba(27,95,217,.04); }

/* אנימציית כניסה לתוכן שמוזרק */
#view > h1, #view > .section-title { animation: fadeUp .5s var(--ease-glass) both; }
body.reduced-motion #view > h1, body.reduced-motion #view > .section-title,
body.reduced-motion .car-marker, body.reduced-motion .bar span { animation: none; transition: none; }

/* תווית עליונה בכרטיסי סטטיסטיקה — מראה דשבורד מוצר */
.stat-label {
  font-size: .72em; font-weight: 700; text-transform: uppercase; letter-spacing: .5px;
  color: var(--road); opacity: .7; margin-bottom: 4px;
}
.stat-card { padding: 22px 16px; }

/* ================= אפקטי הייטק — glow עוקב-עכבר ================= */
.bento-card { --mx: 50%; --my: 50%; }
.bento-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(27,95,217,.12), transparent 42%);
  opacity: 0; transition: opacity .35s var(--ease-glass); z-index: 1;
}
.bento-card:hover::after { opacity: 1; }
.bento-card > * { position: relative; z-index: 2; }
/* גבול זוהר עוקב */
.bento-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(300px circle at var(--mx) var(--my), rgba(27,95,217,.5), transparent 40%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s var(--ease-glass);
}
.bento-card:hover::before { opacity: 1; }
body.reduced-motion .bento-card::after, body.reduced-motion .bento-card::before { display: none; }

/* ================= canvas 3D ברקע ה-hero ================= */
.saas-hero { position: relative; }
#hero3d {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .55;
}
.saas-hero > *:not(#hero3d) { position: relative; z-index: 1; }
@media (max-width: 700px) { #hero3d { opacity: .35; } }

/* ================= כפתור פידבק צף ================= */
.fb-fab {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 80;
  background: var(--ink); color: #fff; border: 1px solid rgba(255,255,255,.15);
  padding: 11px 18px; border-radius: 99px; font-weight: 700; font-size: .92em; cursor: pointer;
  box-shadow: 0 10px 30px -8px rgba(15,23,42,.4); backdrop-filter: blur(8px);
  transition: transform .2s var(--ease-glass), box-shadow .2s;
}
.fb-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 36px -8px rgba(27,95,217,.5); background: var(--road-deep); }
/* מוסתר במצב פוקוס ובהדפסה */
body.focus-mode .fb-fab { display: none; }
@media (max-width: 600px) { .fb-fab { bottom: 14px; inset-inline-end: 14px; font-size: .85em; padding: 9px 14px; } }

/* ================= תיקוני CLS וביצועים (PageSpeed) ================= */
/* גופן fallback מותאם-מידות ל-Heebo — מונע קפיצת תוכן (CLS) כשהפונט נטען */
@font-face {
  font-family: 'Heebo-fallback';
  src: local('Arial');
  size-adjust: 96%;
  ascent-override: 90%;
  descent-override: 22%;
  line-gap-override: 0%;
}
:root { --body-font: 'Heebo', 'Heebo-fallback', system-ui, sans-serif; }

/* שמירת מקום קבוע ל-hero — מונע shift בזמן טעינת פונטים/3D */
.saas-hero { min-height: 420px; }
@media (max-width: 700px) { .saas-hero { min-height: 360px; } }
/* ה-canvas של ה-3D לא משפיע על פריסה (כבר position:absolute, מוודאים) */
#hero3d { contain: strict; }
/* הפוטר לא קופץ — שמירת מקום מינימלי */
footer { min-height: 120px; }

/* כותרת נסתרת ויזואלית אך נגישה לקוראי מסך ולמנועי חיפוש */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
