/* =========================================================
   יובל ברזני, מורה פרטי - design system
   Editorial notebook / stamped-paper aesthetic.
   Deliberately not the default AI look: serif display type,
   warm paper tones, hard ink borders + offset "stamp" shadows
   instead of soft blurred shadows / glassy gradients.
   ========================================================= */

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

:root {
  --ink: #1c1a16;
  --ink-soft: #4a463d;
  --paper: #f6f0e2;
  --paper-2: #ecdfc2;
  --paper-3: #fbf8f0;
  --rust: #b8441e;
  --rust-dark: #8f3315;
  --gold: #d9a441;
  --teal: #1f5c56;
  --line: var(--ink);
  --radius: 6px;
  --shadow-sm: 4px 4px 0 var(--ink);
  --shadow-lg: 8px 8px 0 var(--ink);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Heebo', sans-serif;
  background: var(--paper);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Frank Ruhl Libre', serif;
  line-height: 1.2;
  font-weight: 700;
}

a { color: inherit; }

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

.container { max-width: 820px; margin: 0 auto; padding: 0 24px; }

.section { padding: 88px 0; position: relative; }
.section--alt { background: var(--paper-2); }
.section--ink { background: var(--ink); color: var(--paper-3); }

/* graph-paper texture used behind the hero and a couple of sections */
.grid-texture {
  background-image:
    linear-gradient(rgba(28,26,22,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(28,26,22,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

/* ---------- eyebrow / numbered section labels ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: var(--rust);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--rust);
  display: inline-block;
}
.section--ink .eyebrow { color: var(--gold); }
.section--ink .eyebrow::before { background: var(--gold); }

/* ---------- stamp badge ---------- */
.stamp {
  display: inline-block;
  background: var(--gold);
  border: 2px solid var(--ink);
  color: var(--ink);
  font-weight: 800;
  font-size: 15px;
  padding: 8px 22px;
  transform: rotate(-2deg);
  box-shadow: var(--shadow-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Heebo', sans-serif;
  font-weight: 800;
  font-size: 19px;
  padding: 17px 34px;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--rust);
  color: var(--paper-3);
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--ink); background: var(--rust-dark); }
.btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.section--ink .btn--ghost { color: var(--paper-3); border-color: var(--paper-3); box-shadow: 4px 4px 0 var(--paper-3); }
.section--ink .btn--ghost:hover { box-shadow: 7px 7px 0 var(--paper-3); }

.btn-row { display: flex; justify-content: center; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--paper-3);
  border-bottom: 2px solid var(--ink);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.3;
}
.logo span { color: var(--rust); }
.logo .tagline {
  display: block;
  font-family: 'Heebo', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-soft);
}
.header-cta {
  font-size: 16px;
  padding: 10px 20px;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  padding: 64px 24px 0;
  text-align: center;
}
.hero-inner { max-width: 760px; margin: 0 auto; }

.hero h1 {
  font-size: 46px;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--rust);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 6px;
  text-underline-offset: 6px;
}

.hero .subtitle {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 18px;
}
.hero .subtitle strong { color: var(--rust); font-weight: 700; }

.hero .sub-text {
  font-size: 17px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 auto 34px;
}

.hero-photo-wrap {
  margin: 52px auto 0;
  max-width: 420px;
  position: relative;
}
.hero-photo-wrap img {
  border: 3px solid var(--ink);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.5deg);
}
.hero-photo-wrap .tape {
  position: absolute;
  top: -14px;
  right: 50%;
  transform: translateX(50%) rotate(3deg);
  width: 90px;
  height: 30px;
  background: rgba(217,164,65,0.55);
  border: 1px solid rgba(28,26,22,0.25);
}

/* =========================================================
   PROMISE
   ========================================================= */
.promise { text-align: center; }
.promise blockquote {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 27px;
  font-weight: 500;
  line-height: 1.55;
  max-width: 680px;
  margin: 0 auto;
}
.promise blockquote strong { color: var(--rust); }

/* =========================================================
   STORY
   ========================================================= */
.story h2 { font-size: 32px; margin-bottom: 22px; }
.story p { margin-bottom: 20px; color: #2b2822; }
.story .lede { font-size: 21px; font-weight: 500; color: var(--ink); }

.story h3.pivot {
  font-size: 26px;
  color: var(--rust);
  margin: 40px 0 16px;
}

.note-card {
  background: var(--paper-3);
  border: 2px solid var(--ink);
  border-inline-start: 8px solid var(--rust);
  padding: 22px 26px;
  margin: 30px 0;
  box-shadow: var(--shadow-sm);
}
.note-card p { margin-bottom: 0; font-weight: 600; }

.result-line {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 25px;
  font-weight: 700;
  text-align: center;
  margin: 28px 0;
}
.result-line span { color: var(--rust); }

.quote-card {
  background: var(--ink);
  color: var(--paper-3);
  padding: 34px 30px;
  margin: 36px 0;
  border: 2px solid var(--ink);
  position: relative;
}
.quote-card::before {
  content: '״';
  position: absolute;
  top: -6px;
  right: 22px;
  font-size: 90px;
  color: var(--gold);
  font-family: 'Frank Ruhl Libre', serif;
  line-height: 1;
  opacity: 0.6;
}
.quote-card .attribution {
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 10px;
  font-weight: 700;
}
.quote-card p.line { font-size: 21px; font-weight: 600; line-height: 1.5; }

.gallery-label {
  text-align: center;
  font-weight: 800;
  margin-bottom: 18px;
  font-size: 15px;
  letter-spacing: 0.08em;
}

/* ---------- results carousel ---------- */
.carousel { margin: 32px 0; }
.carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}
.carousel-track-container {
  overflow: hidden;
  flex: 1;
  direction: ltr;
  border: 2px solid var(--ink);
  background: var(--paper-3);
}
.carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}
.carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-slide img {
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  display: block;
}
.carousel-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper-3);
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.carousel-btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--ink);
  background: var(--rust);
  color: var(--paper-3);
}
.carousel-btn:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 var(--ink); }
.carousel-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}
.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper-3);
  cursor: pointer;
  padding: 0;
}
.dot.active { background: var(--rust); }

@media (max-width: 640px) {
  .carousel-btn { width: 34px; height: 34px; font-size: 15px; }
  .carousel-slide img { max-height: 340px; }
}

/* =========================================================
   PRODUCT REVEAL
   ========================================================= */
.product-reveal { text-align: center; }
.product-photo {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid var(--ink);
  margin: 0 auto 20px;
  box-shadow: var(--shadow-sm);
}
.product-reveal .lead-in { font-size: 17px; color: var(--ink-soft); margin-bottom: 10px; }
.product-reveal h2 { font-size: 40px; margin-bottom: 14px; }
.product-reveal h2 span { color: var(--rust); }
.product-tagline {
  font-family: 'Frank Ruhl Libre', serif;
  font-size: 30px;
  font-weight: 700;
  color: var(--teal);
  margin-top: 10px;
}

/* =========================================================
   BENEFITS — ledger list, not icon cards
   ========================================================= */
.benefits h2 { text-align: center; font-size: 32px; margin-bottom: 44px; }
.ledger { border-top: 2px solid var(--ink); }
.ledger-row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 2px solid var(--ink);
}
.ledger-num {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--rust);
  min-width: 34px;
}
.ledger-text { font-weight: 500; }
.ledger-text strong { color: var(--teal); }

/* =========================================================
   HOW IT WORKS — two paths, no pricing
   ========================================================= */
.how { text-align: center; }
.how h2 { font-size: 32px; margin-bottom: 18px; }
.how .reason { color: #333; max-width: 620px; margin: 0 auto 40px; }

.path-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin: 0 0 20px;
  text-align: start;
}
.path-card {
  background: var(--paper-3);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-sm);
  padding: 28px 26px;
}
.path-card .path-num {
  font-family: 'Frank Ruhl Libre', serif;
  font-weight: 900;
  font-size: 22px;
  color: var(--rust);
  margin-bottom: 10px;
}
.path-card h3 { font-size: 21px; margin-bottom: 10px; }
.path-card p { color: #444; font-size: 16px; margin: 0; }

.contact-card {
  background: var(--ink);
  color: var(--paper-3);
  border: 2px solid var(--ink);
  box-shadow: var(--shadow-lg);
  padding: 40px 30px;
  margin: 40px auto;
  max-width: 480px;
  text-align: center;
}
.contact-card h3 { font-size: 24px; margin-bottom: 12px; }
.contact-card p { color: rgba(246,240,226,0.75); font-size: 16px; margin-bottom: 22px; }

/* =========================================================
   RECOMMENDATIONS
   ========================================================= */
.recommendations { text-align: center; }
.recommendations h2 { font-size: 30px; margin-bottom: 40px; }

/* =========================================================
   FAQ
   ========================================================= */
.faq h2 { text-align: center; font-size: 32px; margin-bottom: 40px; }
.faq-item {
  background: var(--paper-3);
  border: 2px solid var(--ink);
  padding: 22px 26px;
  margin-bottom: 14px;
  cursor: pointer;
}
.faq-question {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  font-weight: 700;
  font-size: 18px;
}
.faq-question .toggle {
  font-size: 22px;
  color: var(--rust);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq-item.active .toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}
.faq-answer.open { max-height: 420px; padding-top: 16px; }
.faq-answer p { color: #444; font-size: 16px; }

/* =========================================================
   LEAD FORM
   ========================================================= */
.lead-form-section { text-align: center; }
.lead-form-section h2 { font-size: 32px; margin-bottom: 10px; }
.form-sub { color: var(--ink-soft); margin-bottom: 30px; }

.lead-form {
  max-width: 460px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: start;
}
.lead-form label {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: -8px;
}
.lead-form input,
.lead-form select {
  width: 100%;
  padding: 15px 16px;
  font-size: 16px;
  font-family: 'Heebo', sans-serif;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-3);
  outline: none;
}
.lead-form input:focus,
.lead-form select:focus { border-color: var(--rust); }
.lead-form .submit-btn { width: 100%; justify-content: center; margin-top: 6px; }
.lead-form .form-note { font-size: 13px; color: var(--ink-soft); text-align: center; }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

.form-success {
  display: none;
  border: 2px solid var(--teal);
  background: var(--paper-3);
  color: var(--teal);
  font-weight: 700;
  padding: 24px;
  max-width: 460px;
  margin: 0 auto;
}
.form-success.visible { display: block; }
.lead-form.hidden { display: none; }

/* =========================================================
   FINAL CTA
   ========================================================= */
.final-cta { text-align: center; }
.final-cta h2 { font-size: 34px; margin-bottom: 10px; }
.final-cta p { color: rgba(246,240,226,0.7); font-size: 17px; max-width: 520px; margin: 0 auto 30px; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--ink);
  color: rgba(246,240,226,0.6);
  padding: 40px 24px 28px;
  text-align: center;
  font-size: 14px;
  border-top: 4px solid var(--gold);
}
.site-footer .foot-links { margin-bottom: 14px; }
.site-footer a { text-decoration: underline; }

/* =========================================================
   FLOATING WHATSAPP BUTTON
   ========================================================= */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  left: 22px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--teal);
  color: var(--paper-3);
  border: 2px solid var(--ink);
  padding: 13px 20px;
  border-radius: 50px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.whatsapp-float:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.whatsapp-float svg { width: 22px; height: 22px; flex-shrink: 0; }

/* =========================================================
   LEGAL / LONG-FORM TEXT PAGES
   ========================================================= */
.legal h1 { font-size: 38px; margin-bottom: 8px; }
.legal .legal-updated { color: var(--ink-soft); font-size: 15px; margin-bottom: 32px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p { margin-bottom: 14px; color: #2b2822; }
.legal ul { margin: 0 0 16px; padding-inline-start: 24px; }
.legal li { margin-bottom: 8px; color: #2b2822; }
.legal a { color: var(--rust); text-decoration: underline; }

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
  .hero { padding: 44px 20px 0; }
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 19px; }
  .hero .sub-text { font-size: 15px; }
  .section { padding: 60px 0; }
  .story h2, .benefits h2, .faq h2, .how h2, .lead-form-section h2, .recommendations h2 { font-size: 26px; }
  .product-reveal h2 { font-size: 30px; }
  .final-cta h2 { font-size: 26px; }
  .whatsapp-float span { display: none; }
  .whatsapp-float { padding: 14px; }
}
