/* Shared landing page CSS — HE + AR. Fonts via --font-body / --font-display vars set in each HTML file. */
:root {
  --navy: #0f2540;
  --blue: #1a3a5c;
  --blue-mid: #2a5298;
  --blue-light: #3d6bb5;
  --gold: #e8a020;
  --gold-light: #f5c55a;
  --gold-pale: #fef3d8;
  --white: #ffffff;
  --off-white: #f7f9fc;
  --text: #1a2332;
  --text-muted: #5a6a7a;
  --border: #d8e3ee;
  --radius: 16px;
  --shadow: 0 4px 24px rgba(15,37,64,0.12);
  --shadow-lg: 0 12px 48px rgba(15,37,64,0.18);
}

/* ── DARK MODE ── */
[data-theme="dark"] {
  --navy: #e6eef8;
  --blue: #b8c8e0;
  --blue-mid: #5a7fb8;
  --blue-light: #8aaae0;
  --white: #0a1220;
  --off-white: #162033;
  --text: #e6eef8;
  --text-muted: #8ea0b8;
  --border: #243650;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,0.6);
}
[data-theme="dark"] body { background: #0a1220; }
[data-theme="dark"] nav { background: rgba(10,18,32,0.95) !important; border-bottom-color: #243650; }
[data-theme="dark"] nav a { color: #b8c8e0 !important; }

/* Hero — שמור על רקע כהה גם במצב לילה */
[data-theme="dark"] .hero {
  background: linear-gradient(160deg, #0d1f3c 0%, #1a3560 55%, #243e7a 100%);
}
[data-theme="dark"] .hero h1 { color: #e6eef8; }

/* פרקים ו-CTA — רקע כהה */
[data-theme="dark"] .chapters-bg {
  background: linear-gradient(160deg, #0a1628 0%, #142244 100%) !important;
}
/* כרטיסי פרקים — גבול וריבוע גלוי */
[data-theme="dark"] .chapters-bg .section-inner > div > div {
  background: rgba(255,255,255,0.06) !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
}
[data-theme="dark"] .chapter-card {
  background: rgba(255,255,255,0.06) !important;
  border: 1px solid rgba(255,255,255,0.3) !important;
}
[data-theme="dark"] .feature-mockup {
  background: linear-gradient(135deg, #0d1f3c, #1e3d7a);
}
[data-theme="dark"] .cta-banner {
  background: linear-gradient(135deg, #0d1f3c 0%, #1e3d7a 100%);
}

/* פוטר */
[data-theme="dark"] footer { background: #070f1c; }

/* כרטיסים */
[data-theme="dark"] .plan,
[data-theme="dark"] .step,
[data-theme="dark"] .faq-item { background: #162033 !important; border-color: #243650 !important; }
[data-theme="dark"] .plan.featured { background: linear-gradient(160deg, #1a2d4a, #162033) !important; }

/* טקסטים */
[data-theme="dark"] .section-title { color: #e6eef8; }
[data-theme="dark"] .step h3 { color: #e6eef8; }
[data-theme="dark"] .feature-text h4 { color: #e6eef8; }
[data-theme="dark"] .plan-price { color: #e6eef8; }
[data-theme="dark"] .faq-q { color: #e6eef8 !important; }
[data-theme="dark"] .faq-a { color: #8ea0b8 !important; }
[data-theme="dark"] .section-tag { background: rgba(232,160,32,0.15); color: #f0c040; }

/* כפתורים */
[data-theme="dark"] .plan-btn-outline { background: #1e3254; color: #8aaae0; border-color: #3d6bb5; }

/* שדה קופון */
[data-theme="dark"] #landing-coupon {
  background: #162033; color: #e6eef8; border-color: #243650;
}
[data-theme="dark"] #landing-coupon::placeholder { color: #5a7090; }

.theme-toggle-nav {
  background: rgba(255,255,255,0.1);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.theme-toggle-nav:hover { background: rgba(0,0,0,0.05); }
[data-theme="dark"] .theme-toggle-nav { background: rgba(255,255,255,0.08); }
[data-theme="dark"] .theme-toggle-nav:hover { background: rgba(255,255,255,0.15); }
* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body { font-family:var(--font-body); color:var(--text); background:var(--white); direction:rtl; overflow-x:hidden; }

/* ── NAV ── */
nav {
  position:fixed; top:0; right:0; left:0; z-index:100;
  background:rgba(255,255,255,0.92); backdrop-filter:blur(12px);
  border-bottom:1px solid rgba(216,227,238,0.6);
  padding:0 24px; height:68px;
  display:flex; align-items:center; justify-content:space-between;
}
.nav-logo { display:flex; align-items:center; gap:10px; }
.nav-logo-icon { width:40px; height:40px; background:linear-gradient(135deg,var(--blue),var(--blue-mid)); border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:20px; }
.nav-logo-text { font-family:var(--font-display); font-size:1.3rem; font-weight:900; color:var(--navy); }
.nav-logo-text span { color:var(--blue-mid); }
.nav-links { display:flex; align-items:center; gap:28px; }
.nav-links a { font-size:0.9rem; font-weight:600; color:var(--text-muted); text-decoration:none; transition:color 0.2s; }
.nav-links a:hover { color:var(--blue); }
.nav-cta { background:var(--gold); color:var(--navy); border:none; padding:10px 22px; border-radius:8px; font-family:var(--font-body); font-weight:800; font-size:0.9rem; cursor:pointer; text-decoration:none; transition:all 0.2s; }
.nav-cta:hover { background:var(--gold-light); transform:translateY(-1px); }

/* ── HERO ── */
.hero {
  min-height:100vh;
  background: linear-gradient(160deg, var(--navy) 0%, var(--blue) 55%, var(--blue-mid) 100%);
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  padding:72px 24px 44px;
  position:relative; overflow:hidden; text-align:center;
}
.hero-bg-truck {
  position:absolute; font-size:500px; opacity:0.03;
  bottom:-80px; left:-60px; pointer-events:none; line-height:1;
  animation: drift 20s ease-in-out infinite;
}
@keyframes drift { 0%,100%{transform:translateX(0)} 50%{transform:translateX(30px)} }
.hero-badge {
  display:inline-flex; align-items:center; gap:8px;
  background:rgba(232,160,32,0.15); border:1px solid rgba(232,160,32,0.4);
  color:var(--gold-light); padding:7px 18px; border-radius:30px;
  font-size:0.83rem; font-weight:700; letter-spacing:0.5px;
  margin-bottom:28px; animation:fadeUp 0.6s ease both;
}
.hero h1 {
  font-family:var(--font-display);
  font-size:clamp(2.4rem,6vw,4rem);
  font-weight:900; color:var(--white);
  line-height:1.15; margin-bottom:20px;
  animation:fadeUp 0.7s 0.1s ease both;
}
.hero h1 em { color:var(--gold-light); font-style:normal; }
.hero-sub {
  font-size:clamp(1rem,2.5vw,1.2rem); color:rgba(255,255,255,0.78);
  max-width:560px; line-height:1.75; font-weight:300;
  margin-bottom:44px; animation:fadeUp 0.7s 0.2s ease both;
}
.hero-actions { display:flex; gap:14px; flex-wrap:wrap; justify-content:center; animation:fadeUp 0.7s 0.3s ease both; }
.btn-primary { background:var(--gold); color:var(--navy); border:none; padding:16px 36px; border-radius:10px; font-family:var(--font-body); font-weight:800; font-size:1.05rem; cursor:pointer; text-decoration:none; transition:all 0.22s; display:inline-block; }
.btn-primary:hover { background:var(--gold-light); transform:translateY(-2px); box-shadow:0 8px 24px rgba(232,160,32,0.35); }
.btn-outline { background:transparent; color:var(--white); border:2px solid rgba(255,255,255,0.35); padding:15px 30px; border-radius:10px; font-family:var(--font-body); font-weight:700; font-size:1rem; cursor:pointer; text-decoration:none; transition:all 0.22s; display:inline-block; }
.btn-outline:hover { background:rgba(255,255,255,0.1); border-color:rgba(255,255,255,0.6); }
.hero-stats {
  display:flex; gap:0; margin-top:64px; animation:fadeUp 0.7s 0.4s ease both;
  border:1px solid rgba(255,255,255,0.12); border-radius:14px; overflow:hidden;
  background:rgba(255,255,255,0.06); backdrop-filter:blur(8px);
}
.hero-stat { padding:20px 36px; text-align:center; flex:1; }
.hero-stat:not(:last-child) { border-left:1px solid rgba(255,255,255,0.12); }
.hero-stat-num { font-family:var(--font-display); font-size:2.2rem; font-weight:900; color:var(--gold-light); display:block; }
.hero-stat-label { font-size:0.8rem; color:rgba(255,255,255,0.6); margin-top:3px; }

/* ── HOW IT WORKS ── */
.section { padding:56px 24px; }
.section-inner { max-width:1080px; margin:0 auto; }
.section-tag { display:inline-block; background:var(--gold-pale); color:var(--blue); font-size:0.78rem; font-weight:800; padding:5px 14px; border-radius:20px; letter-spacing:0.8px; text-transform:uppercase; margin-bottom:16px; }
.section-title { font-family:var(--font-display); font-size:clamp(1.8rem,4vw,2.6rem); font-weight:900; color:var(--navy); margin-bottom:14px; line-height:1.25; }
.section-sub { font-size:1.05rem; color:var(--text-muted); max-width:540px; line-height:1.7; }

.steps { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:28px; margin-top:52px; }
.step { background:var(--off-white); border-radius:var(--radius); padding:32px 28px; position:relative; border:1px solid var(--border); transition:all 0.25s; }
.step:hover { transform:translateY(-4px); box-shadow:var(--shadow); border-color:var(--blue-light); }
.step-num { width:48px; height:48px; background:linear-gradient(135deg,var(--blue),var(--blue-mid)); border-radius:12px; display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:1.4rem; font-weight:900; color:white; margin-bottom:20px; }
.step h3 { font-size:1.1rem; font-weight:700; color:var(--navy); margin-bottom:10px; }
.step p { font-size:0.9rem; color:var(--text-muted); line-height:1.65; }

/* ── CHAPTERS PREVIEW ── */
.chapters-bg { background:linear-gradient(160deg,var(--navy) 0%,var(--blue) 100%); }
.chapters-bg .section-title, .chapters-bg .section-tag { color:white; }
.chapters-bg .section-sub { color:rgba(255,255,255,0.7); }
.chapters-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(240px,1fr)); gap:16px; margin-top:48px; }
.chapter-card {
  background:rgba(255,255,255,0.07); border:1px solid rgba(255,255,255,0.12);
  border-radius:12px; padding:24px 20px; display:flex; align-items:center; gap:16px;
  transition:all 0.22s; cursor:default;
}
.chapter-card:hover { background:rgba(255,255,255,0.12); transform:translateY(-2px); }
.chapter-card-icon { font-size:28px; flex-shrink:0; width:52px; height:52px; background:rgba(255,255,255,0.1); border-radius:10px; display:flex; align-items:center; justify-content:center; }
.chapter-card-info h4 { font-size:0.92rem; font-weight:700; color:white; margin-bottom:4px; }
.chapter-card-info span { font-size:0.78rem; color:rgba(255,255,255,0.78); }
.chapter-free-badge { background:var(--gold); color:var(--navy); font-size:0.65rem; font-weight:800; padding:2px 8px; border-radius:10px; margin-right:6px; }

/* ── FEATURES ── */
.features-grid { display:grid; grid-template-columns:1fr 1fr; gap:52px; align-items:center; margin-top:20px; }
.features-list { display:flex; flex-direction:column; gap:24px; }
.feature-item { display:flex; gap:16px; align-items:flex-start; }
.feature-icon { width:48px; height:48px; background:var(--gold-pale); border-radius:12px; display:flex; align-items:center; justify-content:center; font-size:22px; flex-shrink:0; }
.feature-text h4 { font-size:1rem; font-weight:700; color:var(--navy); margin-bottom:5px; }
.feature-text p { font-size:0.88rem; color:var(--text-muted); line-height:1.6; }
.feature-mockup {
  background:linear-gradient(135deg,var(--navy),var(--blue-mid));
  border-radius:20px; padding:28px; box-shadow:var(--shadow-lg);
  position:relative; overflow:hidden;
}
.mockup-header { background:rgba(255,255,255,0.1); border-radius:10px; padding:14px 18px; display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.mockup-logo { font-family:var(--font-display); font-weight:900; color:white; font-size:1rem; }
.mockup-badge { background:var(--gold); color:var(--navy); font-size:0.7rem; font-weight:800; padding:3px 10px; border-radius:8px; }
.mockup-q { background:rgba(255,255,255,0.08); border-radius:10px; padding:16px; margin-bottom:14px; }
.mockup-q-text { font-size:0.85rem; color:white; font-weight:600; margin-bottom:12px; line-height:1.5; }
.mockup-opt { background:rgba(255,255,255,0.06); border:1px solid rgba(255,255,255,0.15); border-radius:8px; padding:10px 14px; margin-bottom:8px; display:flex; align-items:center; gap:10px; font-size:0.8rem; color:rgba(255,255,255,0.75); transition:all 0.2s; }
.mockup-opt.correct { background:rgba(46,125,50,0.25); border-color:#4caf50; color:#a5d6a7; }
.mockup-opt-letter { width:26px; height:26px; border-radius:6px; background:rgba(255,255,255,0.12); display:flex; align-items:center; justify-content:center; font-size:0.75rem; font-weight:700; color:white; flex-shrink:0; }
.mockup-opt.correct .mockup-opt-letter { background:#4caf50; }
.mockup-progress { height:5px; background:rgba(255,255,255,0.15); border-radius:3px; overflow:hidden; }
.mockup-progress-fill { height:100%; background:var(--gold); border-radius:3px; width:35%; }

/* ── PRICING ── */
.pricing-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:24px; max-width:600px; margin:32px auto 0; }
.plan {
  border:2px solid var(--border); border-radius:var(--radius); padding:36px 28px;
  position:relative; transition:all 0.25s; text-align:center;
}
.plan:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.plan.featured { border-color:var(--blue); background:linear-gradient(160deg,#f0f5ff,var(--white)); }
.plan-popular { position:absolute; top:-14px; right:50%; transform:translateX(50%); background:var(--gold); color:var(--navy); font-size:0.72rem; font-weight:800; padding:4px 16px; border-radius:20px; white-space:nowrap; }
.plan-name { font-size:0.85rem; font-weight:700; color:var(--text-muted); text-transform:uppercase; letter-spacing:1px; margin-bottom:16px; }
.plan-price { font-family:var(--font-display); font-size:3rem; font-weight:900; color:var(--navy); line-height:1; }
.plan-price sup { font-size:1.2rem; vertical-align:super; color:var(--text-muted); }
.plan-price sub { font-size:0.9rem; font-weight:400; color:var(--text-muted); }
.plan-period { font-size:0.82rem; color:var(--text-muted); margin:8px 0 24px; }
.plan-features-list { list-style:none; margin-bottom:28px; text-align:right; }
.plan-features-list li { padding:8px 0; font-size:0.9rem; color:var(--text-muted); border-bottom:1px solid var(--border); display:flex; align-items:center; gap:10px; }
.plan-features-list li:last-child { border-bottom:none; }
.plan-features-list li::before { content:'✓'; color:#2e7d32; font-weight:800; flex-shrink:0; }
.plan-btn { width:100%; padding:13px; border:none; border-radius:8px; font-family:var(--font-body); font-weight:800; font-size:0.95rem; cursor:pointer; transition:all 0.2s; text-decoration:none; display:block; }
.plan-btn-outline { background:white; color:var(--blue); border:2px solid var(--blue); }
.plan-btn-filled { background:linear-gradient(135deg,var(--blue),var(--blue-mid)); color:white; }
.plan-btn:hover { transform:translateY(-1px); box-shadow:0 4px 16px rgba(26,58,92,0.2); }

/* ── FAQ ── */
.faq-list { margin-top:48px; max-width:680px; }
.faq-item { border-bottom:1px solid var(--border); }
.faq-q { width:100%; background:none; border:none; text-align:right; padding:20px 0; display:flex; justify-content:space-between; align-items:center; cursor:pointer; font-family:var(--font-body); font-size:1rem; font-weight:700; color:var(--navy); gap:16px; }
.faq-q:hover { color:var(--blue-mid); }
.faq-icon { font-size:1.2rem; color:var(--gold); flex-shrink:0; transition:transform 0.2s; }
.faq-a { font-size:0.92rem; color:var(--text-muted); line-height:1.75; padding-bottom:20px; display:none; }
.faq-item.open .faq-a { display:block; }
.faq-item.open .faq-icon { transform:rotate(45deg); }

/* ── CTA BANNER ── */
.cta-banner {
  background:linear-gradient(135deg,var(--navy) 0%,var(--blue-mid) 100%);
  padding:52px 24px; text-align:center;
}
.cta-banner h2 { font-family:var(--font-display); font-size:clamp(1.8rem,4vw,2.8rem); font-weight:900; color:white; margin-bottom:16px; }
.cta-banner p { font-size:1.05rem; color:rgba(255,255,255,0.75); margin-bottom:36px; max-width:480px; margin-inline:auto; line-height:1.7; }

/* ── FOOTER ── */
footer { background:var(--navy); padding:48px 24px 28px; }
.footer-inner { max-width:1080px; margin:0 auto; }
.footer-top { display:flex; justify-content:space-between; align-items:flex-start; gap:32px; flex-wrap:wrap; margin-bottom:40px; }
.footer-brand h3 { font-family:var(--font-display); font-size:1.4rem; font-weight:900; color:white; margin-bottom:8px; }
.footer-brand p { font-size:0.85rem; color:rgba(255,255,255,0.45); max-width:260px; line-height:1.6; }
.footer-links h4 { font-size:0.8rem; font-weight:700; color:rgba(255,255,255,0.4); text-transform:uppercase; letter-spacing:1px; margin-bottom:14px; }
.footer-links a { display:block; font-size:0.88rem; color:rgba(255,255,255,0.6); text-decoration:none; margin-bottom:8px; transition:color 0.2s; }
.footer-links a:hover { color:white; }
.footer-bottom { border-top:1px solid rgba(255,255,255,0.08); padding-top:20px; display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:10px; }
.footer-bottom p { font-size:0.8rem; color:rgba(255,255,255,0.3); }

@keyframes fadeUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }

@media(max-width:768px) {
  .hero-stats { flex-direction:column; gap:0; }
  .hero-stat:not(:last-child) { border-left:none; border-bottom:1px solid rgba(255,255,255,0.12); }
  .features-grid { grid-template-columns:1fr; }
  .feature-mockup { display:none; }
  .nav-links { display:none; }
  .footer-top { flex-direction:column; }
}

/* --- סגנונות מיוחדים למודאל החדש --- */
.auth-step-container {
    transition: all 0.3s ease-in-out;
}
#display-email-login, #display-email-reg {
    background: #f0f5ff;
    padding: 10px;
    border-radius: 8px;
    border: 1px dashed #2a5298;
    display: inline-block;
    width: 100%;
    color: #1a3a5c;
    font-weight: 700;
    font-size: 0.95rem;
    margin-bottom: 18px;
    text-align: center;
}
@keyframes slideIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
#step-email, #step-login, #step-register {
    animation: slideIn 0.3s ease-out;
}
#auth-modal input:focus {
    border-color: #1a3a5c !important;
    box-shadow: 0 0 0 3px rgba(26, 58, 92, 0.1);
}

/* ── נגישות ── */
.skip-link {
  position:absolute; top:-60px; right:0;
  background:#f0c040; color:#0f2540;
  padding:10px 18px; font-weight:800; font-size:1rem;
  border-radius:0 0 10px 10px; z-index:9999; text-decoration:none;
  transition:top 0.2s;
}
.skip-link:focus { top:0; outline:3px solid #0f2540; }
:focus-visible {
  outline:3px solid #f0c040;
  outline-offset:2px;
  border-radius:4px;
}

/* ── נגישות: כיבוד העדפת תנועה מופחתת ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
