/*
  TorahAI - אתר תדמית (בנייה חדשה לגמרי)
  עיצוב חם, ברור וקריא - בהשראת כריכת ספר עם זהב על כחול, לא "עיצוב סטארטאפ" קר.
*/

@import url('https://fonts.googleapis.com/css2?family=Frank+Ruhl+Libre:wght@500;700;900&family=Rubik:wght@400;500;600;700;800&display=swap');

:root {
  --bg: #faf6ee;
  --bg-alt: #f1e9d8;
  --card: #ffffff;
  --ink: #2b241c;
  --ink-soft: #5c5041;
  --border: rgba(43, 36, 28, 0.12);
  --navy: #1f3a5f;
  --navy-deep: #14283f;
  --gold: #a9762d;
  --gold-light: #c99a4b;
  --good: #2f7a4d;
  --warn-bg: #fbf1de;
  --warn-border: #e3c07f;
  --font-head: 'Frank Ruhl Libre', serif;
  --font-body: 'Rubik', sans-serif;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(31, 58, 95, 0.18);
  --transition: 0.25s ease;
}

:root[data-theme="dark"] {
  --bg: #15202c;
  --bg-alt: #1c2b3a;
  --card: #1f2f40;
  --ink: #f3ede0;
  --ink-soft: #c6bda9;
  --border: rgba(243, 237, 224, 0.14);
  --navy: #6f9bd1;
  --navy-deep: #dce8f7;
  --gold: #e0b467;
  --gold-light: #f0cf94;
  --warn-bg: #2c2515;
  --warn-border: #614a1f;
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #15202c;
    --bg-alt: #1c2b3a;
    --card: #1f2f40;
    --ink: #f3ede0;
    --ink-soft: #c6bda9;
    --border: rgba(243, 237, 224, 0.14);
    --navy: #6f9bd1;
    --navy-deep: #dce8f7;
    --gold: #e0b467;
    --gold-light: #f0cf94;
    --warn-bg: #2c2515;
    --warn-border: #614a1f;
    --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  font-size: 17px;
  direction: rtl;
}

h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.3;
}

a { color: var(--navy); }

img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5rem 0; }
.section-alt { background: var(--bg-alt); }

.section-head { text-align: center; max-width: 700px; margin: 0 auto 3rem; }
.section-head .kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  margin-bottom: 0.6rem;
}
.section-head h2 { font-size: 2.1rem; margin-bottom: 0.75rem; }
.section-head p { color: var(--ink-soft); font-size: 1.05rem; }

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.navbar .wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 8px; background: #fff; padding: 3px; box-shadow: var(--shadow); }
.brand span { font-family: var(--font-head); font-weight: 900; font-size: 1.3rem; color: var(--navy-deep); }
:root[data-theme="dark"] .brand span, @media (prefers-color-scheme: dark) { }

.nav-links { display: flex; gap: 1.6rem; list-style: none; }
.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--navy-deep); }

.nav-actions { display: flex; align-items: center; gap: 0.7rem; }

.icon-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: var(--transition);
}
.icon-btn:hover { border-color: var(--gold); color: var(--gold); }

.nav-toggle { display: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.7rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  font-family: var(--font-body);
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(169, 118, 45, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(169, 118, 45, 0.7); }
.btn-secondary {
  background: transparent;
  color: var(--navy-deep);
  border: 1.5px solid var(--border);
}
.btn-secondary:hover { border-color: var(--navy); color: var(--navy); }
.btn-nav {
  background: var(--navy);
  color: #fff;
  padding: 0.6rem 1.3rem;
  border-radius: 50px;
  font-size: 0.9rem;
}
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 1.1rem 2.2rem; font-size: 1.1rem; }

/* ===== Hero ===== */
.hero {
  padding: 5rem 0 4rem;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}
.hero p.lead {
  font-size: 1.2rem;
  color: var(--ink-soft);
  margin-bottom: 2rem;
  max-width: 560px;
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: 0.9rem; color: var(--ink-soft); }

.hero-visual {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.mock-bar {
  background: var(--navy-deep);
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mock-dots { display: flex; gap: 5px; margin-left: auto; }
.mock-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.35); }
.mock-body { display: flex; min-height: 320px; }
.mock-doc {
  flex: 1.4;
  padding: 1.6rem;
  background: var(--bg-alt);
}
.mock-line { height: 10px; border-radius: 5px; background: var(--border); margin-bottom: 0.9rem; }
.mock-line.w80 { width: 80%; }
.mock-line.w60 { width: 60%; }
.mock-line.w95 { width: 95%; }
.mock-line.err { background: #d97a6b; width: 30%; display:inline-block; }
.mock-side {
  width: 42%;
  background: var(--card);
  border-right: 1px solid var(--border);
  padding: 1.2rem;
}
.mock-side .tag {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.mock-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.8rem;
  font-size: 0.8rem;
  color: var(--ink-soft);
}
.mock-card b { color: var(--ink); }
.mock-fix { color: var(--good); font-weight: 700; }

/* ===== Explainer / what-is-an-addin ===== */
.explain-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.explain-steps { display: flex; flex-direction: column; gap: 1.5rem; }
.explain-step { display: flex; gap: 1rem; }
.explain-num {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.explain-step h4 { font-size: 1.05rem; margin-bottom: 0.3rem; }
.explain-step p { color: var(--ink-soft); font-size: 0.95rem; }

.analogy-box {
  background: var(--card);
  border: 1px dashed var(--gold);
  border-radius: var(--radius);
  padding: 1.6rem;
}
.analogy-box .label { font-weight: 800; color: var(--gold); margin-bottom: 0.5rem; display:block; }

/* ===== Overview cards ===== */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.overview-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem;
  text-align: center;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.overview-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold); }
.overview-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: var(--bg-alt);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}
.overview-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.overview-card p { font-size: 0.9rem; color: var(--ink-soft); }

/* ===== Deep-dive sections ===== */
.deepdive {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: start;
  padding: 4rem 0;
  border-top: 1px solid var(--border);
}
.deepdive:first-of-type { border-top: none; }
.deepdive-intro { position: sticky; top: 90px; }
.deepdive-intro .kicker { color: var(--gold); font-weight: 700; font-size: 0.9rem; }
.deepdive-intro h2 { font-size: 1.9rem; margin: 0.5rem 0 1rem; }
.deepdive-intro p { color: var(--ink-soft); }

.task-list { display: flex; flex-direction: column; gap: 1rem; }
.task-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.2rem 1.4rem;
}
.task-item h4 { font-size: 1.02rem; margin-bottom: 0.35rem; display: flex; align-items: center; gap: 0.5rem; }
.task-item h4 .num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--bg-alt); color: var(--gold);
  font-size: 0.8rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.task-item p { color: var(--ink-soft); font-size: 0.92rem; }

.example-box {
  margin-top: 1.5rem;
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  font-size: 0.9rem;
}
.example-box b { color: var(--gold); }

.mini-note {
  display: flex;
  gap: 0.7rem;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.mini-note .ico { font-size: 1.2rem; flex-shrink: 0; }

.kbd {
  display: inline-block;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.1rem 0.5rem;
  font-family: monospace;
  font-size: 0.85rem;
  font-weight: 700;
}

.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ===== Numbered guide steps ===== */
.guide-steps { display: flex; flex-direction: column; gap: 1.2rem; max-width: 760px; margin: 0 auto; }
.guide-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.6rem;
  display: flex;
  gap: 1.3rem;
}
.guide-num {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
}
.guide-step h4 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.guide-step p { color: var(--ink-soft); }
.guide-step .btn { margin-top: 0.8rem; }
.guide-step .warn-line {
  margin-top: 0.6rem;
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 700;
}

.guide-divider {
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  color: var(--ink-soft);
  font-weight: 700;
  position: relative;
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  max-width: 850px;
  margin: 0 auto;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2.2rem;
}
.price-card.pro { border: 2px solid var(--gold); position: relative; box-shadow: var(--shadow); }
.price-card .badge {
  position: absolute; top: -14px; right: 1.5rem;
  background: var(--gold); color: #fff;
  font-size: 0.75rem; font-weight: 800;
  padding: 0.3rem 0.9rem; border-radius: 50px;
}
.price-card h3 { font-size: 1.4rem; margin-bottom: 0.3rem; }
.price-card .price { font-size: 1.6rem; font-weight: 800; color: var(--navy-deep); margin-bottom: 1rem; }
.price-card .price span { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); }
.price-list { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin: 1.2rem 0; }
.price-list li { display: flex; gap: 0.5rem; font-size: 0.92rem; color: var(--ink-soft); }
.price-list li::before { content: '✓'; color: var(--good); font-weight: 800; }
.contact-box {
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1rem;
}
.contact-box a { color: var(--gold); font-weight: 800; }

/* ===== FAQ ===== */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 0.9rem; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: right;
  background: none;
  border: none;
  padding: 1.1rem 1.4rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q .arrow { transition: transform var(--transition); flex-shrink: 0; color: var(--gold); }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition);
  padding: 0 1.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 1.2rem; }

/* ===== Download section ===== */
.download-box {
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  color: #fff;
  border-radius: 24px;
  padding: 3.5rem 2rem;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.download-box h2 { color: #fff; }
.download-box p { color: rgba(255,255,255,0.85); max-width: 520px; margin: 0.8rem auto 2rem; }
.download-box .btn-primary { background: #fff; color: var(--navy-deep); box-shadow: 0 10px 24px -8px rgba(0,0,0,0.35); }
.download-box .btn-primary:hover { background: var(--gold-light); color: #fff; }
.download-note { margin-top: 1.2rem; font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* ===== Footer ===== */
.footer { padding: 3rem 0 2rem; border-top: 1px solid var(--border); }
.footer .wrap { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; }
.footer-links { display: flex; gap: 1.5rem; list-style: none; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--ink-soft); text-decoration: none; font-size: 0.9rem; }
.footer-links a:hover { color: var(--navy); }
.footer small { color: var(--ink-soft); font-size: 0.82rem; }
.footer small a { color: var(--gold); font-weight: 700; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .explain-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .deepdive { grid-template-columns: 1fr; }
  .deepdive-intro { position: static; }
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 1.5rem;
    gap: 1rem;
  }
  .nav-links.mobile-open { display: flex; }
  .nav-toggle { display: flex; }
  .hero h1 { font-size: 2.2rem; }
  .overview-grid { grid-template-columns: 1fr; }
  body { font-size: 16px; }
  .section { padding: 3.5rem 0; }
}

/* ===== Reveal animation ===== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
