/* ==========================================================================
   ד״ר דיאנה שי | משבר לכתר
   ========================================================================== */

:root {
  /* צבעים */
  --bg: #FFF9EF;
  --bg-tint: #FBF2E4;
  --bg-deep: #F5E7D2;
  --gold: #B9873F;
  --gold-soft: #D6B171;
  --gold-text: #8A6226;
  --ink: #221912;
  --ink-soft: #31251D;
  --muted: #6F5E50;
  --card: rgba(255, 255, 255, 0.55);
  --border: rgba(176, 133, 72, 0.22);
  --border-strong: rgba(176, 133, 72, 0.45);

  /* טיפוגרפיה: מערכת אחת */
  --font-sans: "Heebo", "Segoe UI", Arial, sans-serif;
  --font-serif: var(--font-sans); /* משפחת גופן אחת בכל האתר */
  --fs-h1: clamp(2.7rem, 9.5vw, 4.2rem);
  --fs-h2: clamp(1.55rem, 3.4vw, 2.1rem);
  --fs-h3: 1.125rem;
  --fs-lead: clamp(1.0625rem, 1.7vw, 1.2rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-price: 1.75rem;
  --fs-cta: 1rem;

  --space-section: clamp(2.25rem, 4.6vw, 3.5rem);
  --radius: 18px;
  --shadow: 0 18px 50px -22px rgba(88, 60, 22, 0.35);
  --header-h: 62px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink-soft);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 0.75em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--ink);
  margin: 0;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); line-height: 1.05; font-weight: 700; letter-spacing: -0.01em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.3; }

:focus-visible { outline: 2px solid var(--gold-text); outline-offset: 3px; border-radius: 4px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 200;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 40px, 1040px); margin-inline: auto; }
.container--narrow { width: min(100% - 40px, 700px); }

.eyebrow {
  font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 600;
  color: var(--gold-text); margin: 0 0 0.6rem;
}
.lead { font-size: var(--fs-lead); color: var(--ink-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans); font-weight: 500; font-size: var(--fs-cta);
  text-decoration: none; text-align: center; line-height: 1.2; white-space: nowrap;
  padding: 0.85em 1.9em; border-radius: 999px; border: 0; cursor: pointer;
  transition: background-color 0.2s ease, transform 0.2s ease;
}
.btn--primary {
  background: var(--ink); color: var(--bg);
  box-shadow: 0 10px 24px -14px rgba(34, 25, 18, 0.7), inset 0 0 0 1px rgba(214, 177, 113, 0.4);
}
.btn--primary:hover { background: #3a2a1c; transform: translateY(-1px); }
.btn--primary:active { transform: translateY(0); }
.btn--sm { font-size: var(--fs-small); padding: 0.7em 1.3em; }
.btn--block { width: 100%; }

/* ---------- Price, buy row, trust ---------- */
.price {
  margin: 0; display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  font-family: var(--font-serif); color: var(--ink);
}
.price__now { font-size: var(--fs-price); font-weight: 500; line-height: 1; white-space: nowrap; }
.price__regular { font-size: var(--fs-body); color: var(--muted); }
.price__tag { font-family: var(--font-sans); font-size: var(--fs-small); color: var(--gold-text); font-weight: 600; }

.buy-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; }
.buy-row--center { justify-content: center; }

.trust { margin: 0.75rem 0 0; font-size: clamp(0.7rem, 3.15vw, 0.875rem); color: var(--muted); white-space: nowrap; }
.trust--center { text-align: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 249, 239, 0.9);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: var(--header-h);
}
.wordmark {
  font-family: var(--font-sans); font-weight: 700; font-size: 1.2rem;
  color: var(--ink); text-decoration: none; white-space: nowrap; margin: 0;
}
.site-header__actions { display: flex; align-items: center; gap: 10px; }

.nav {
  display: none; position: absolute; inset-inline: 0; top: 100%;
  background: var(--bg); border-bottom: 1px solid var(--border);
  padding: 4px 20px 12px; flex-direction: column;
}
.nav.is-open { display: flex; }
.nav a { text-decoration: none; color: var(--ink-soft); padding: 12px 4px; border-bottom: 1px solid var(--border); }
.nav a:last-child { border-bottom: 0; }
.nav a:hover { color: var(--gold-text); }

.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 40px; height: 40px; padding: 10px; background: transparent;
  border: 1px solid var(--border); border-radius: 50%; cursor: pointer;
}
.nav-toggle span { display: block; height: 1.5px; background: var(--ink); border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (min-width: 900px) {
  .nav { display: flex; position: static; flex-direction: row; gap: 30px; background: none; border: 0; padding: 0; }
  .nav a { border: 0; padding: 6px 0; }
  .nav-toggle { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  padding-block: 14px clamp(2.25rem, 4.5vw, 3.25rem);
  background:
    radial-gradient(60% 70% at 82% 6%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%),
    radial-gradient(50% 60% at 4% 100%, rgba(245, 231, 210, 0.75), rgba(245, 231, 210, 0) 70%),
    var(--bg);
}
.hero__grid { display: grid; gap: 30px; }

.hero__media { position: relative; }
.hero__photo {
  width: 100%; aspect-ratio: 1 / 1;
  object-fit: cover; object-position: 50% 24%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero__book {
  position: absolute; inset-inline-end: 12px; bottom: -22px;
  width: 76px; border-radius: 2px 4px 4px 2px;
  box-shadow: 0 12px 26px -10px rgba(60, 40, 15, 0.6), 0 0 0 1px rgba(176, 133, 72, 0.25);
  transform: rotate(-3deg);
}

.hero__author {
  margin: 0 0 0.35rem;
  font-weight: 500; font-size: var(--fs-lead); color: var(--gold-text);
}
.hero__author span { font-family: var(--font-sans); font-weight: 400; font-size: var(--fs-small); color: var(--muted); margin-inline-end: 4px; }
.hero__sub {
  font-size: var(--fs-lead); line-height: 1.5; color: var(--ink); text-wrap: balance;
  margin: 0.6em 0 1.1em; max-width: 26em;
}

@media (max-width: 899.98px) and (max-height: 720px) {
  .hero__photo { aspect-ratio: 3 / 2; object-position: 50% 26%; }
}

@media (min-width: 900px) {
  .hero { padding-block: clamp(1.5rem, 3vw, 2.5rem) clamp(3rem, 5vw, 4rem); }
  .hero__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 5vw, 64px); }
  .hero__photo {
    aspect-ratio: 4 / 5; width: auto; max-height: min(78vh, 680px); margin-inline: auto;
    object-position: center;
    border-radius: 999px 999px var(--radius) var(--radius);
  }
  .hero__book { width: clamp(104px, 9.5vw, 132px); inset-inline-end: -22px; bottom: -26px; }
}

/* ---------- Sections ---------- */
.section { padding-block: var(--space-section); }
.section--tint { background: var(--bg-tint); }
.section--deep {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(255, 249, 239, 0.85), rgba(255, 249, 239, 0) 70%),
    linear-gradient(180deg, var(--bg-tint), var(--bg-deep));
}
.section__head { text-align: center; margin-bottom: clamp(1.25rem, 2.6vw, 1.75rem); }
.section__head .lead { margin: 0.45em auto 0; max-width: 30em; text-wrap: balance; }

/* ---------- Meet ---------- */
.meet { text-align: center; }
.meet__photo {
  width: 112px; height: 112px; border-radius: 50%; object-fit: cover;
  margin: 0 auto 0.9rem;
  box-shadow: 0 0 0 4px var(--bg), 0 0 0 5px var(--border-strong), var(--shadow);
}
.meet h2 { margin-bottom: 0.7rem; }
.meet p { font-size: var(--fs-lead); line-height: 1.55; text-wrap: balance; }
.meet__last { font-weight: 500; color: var(--ink); margin-bottom: 0; }

/* ---------- For you ---------- */
.foryou__list { display: grid; gap: 10px; max-width: 920px; margin-inline: auto; }
.foryou__list li {
  position: relative;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 13px 18px; padding-inline-start: 42px;
  line-height: 1.45; color: var(--ink); text-wrap: balance;
}
.foryou__list li::before {
  content: ""; position: absolute; inset-inline-start: 18px; top: 1.3em;
  width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--gold);
}
.foryou__close {
  text-align: center; max-width: 32em; margin: clamp(1.25rem, 2.6vw, 1.75rem) auto 0;
  font-weight: 500; font-size: var(--fs-lead); color: var(--ink); line-height: 1.5; text-wrap: balance;
}
@media (min-width: 760px) { .foryou__list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) {
  .foryou__list li { font-size: 0.95rem; padding: 12px 14px; padding-inline-start: 36px; }
  .foryou__list li::before { inset-inline-start: 14px; }
}

/* ---------- Different ---------- */
.different__grid { display: grid; gap: 14px; max-width: 920px; margin-inline: auto; }
.different__col { border-radius: var(--radius); padding: 20px 22px; }
.different__col h3 { margin-bottom: 0.6rem; }
.different__col li { position: relative; padding-inline-start: 24px; margin-bottom: 0.4em; line-height: 1.45; text-wrap: balance; }
.different__col li:last-child { margin-bottom: 0; }
.different__col--no { border: 1px dashed var(--border-strong); color: var(--muted); }
.different__col--no h3 { color: var(--muted); }
.different__col--no li::before {
  content: ""; position: absolute; inset-inline-start: 2px; top: 0.75em;
  width: 11px; height: 1px; background: var(--muted);
}
.different__col--yes { background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow); color: var(--ink); }
.different__col--yes li::before {
  content: ""; position: absolute; inset-inline-start: 3px; top: 0.5em;
  width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold);
}
@media (min-width: 760px) { .different__grid { grid-template-columns: 0.85fr 1.15fr; align-items: center; } }

/* ---------- Inside ---------- */
.inside__grid { display: grid; gap: 10px; }
.card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: baseline;
  background: var(--card); border: 1px solid var(--border); border-radius: 14px;
  padding: 14px 18px;
}
.card__num { grid-row: span 2; font-weight: 500; font-size: var(--fs-h3); color: var(--gold-text); direction: ltr; }
.card h3 { margin-bottom: 0.1rem; }
.card p { margin: 0; color: var(--muted); line-height: 1.45; }
@media (min-width: 640px) { .inside__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .inside__grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }

/* ---------- Story ---------- */
.story__grid { display: grid; gap: 22px; }
.story__photo {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 42%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.story__body h2 { margin-bottom: 0.8rem; }
.story__body p { max-width: 36em; text-wrap: balance; }
.story__close {
  font-weight: 500; font-size: var(--fs-lead); color: var(--ink); line-height: 1.5; text-wrap: balance;
  border-inline-start: 2px solid var(--gold); padding-inline-start: 16px; margin: 1.1em 0 0;
}
@media (min-width: 900px) {
  .story__grid { grid-template-columns: 0.7fr 1.3fr; align-items: center; gap: clamp(32px, 5vw, 56px); }
  .story__body p { font-size: var(--fs-lead); }
  .story__photo { aspect-ratio: 4 / 5; max-height: 420px; object-position: center; width: auto; margin-inline: auto; border-radius: 999px 999px var(--radius) var(--radius); }
}

/* ---------- Quotes ---------- */
.quotes { text-align: center; }
.quotes__label { font-family: var(--font-sans); font-size: var(--fs-small); font-weight: 500; margin-bottom: 1rem; }
.quote { margin: 0; padding-block: clamp(0.9rem, 2vw, 1.25rem); border-top: 1px solid var(--border-strong); }
.quote:first-of-type { border-top: 0; padding-top: 0; }
.quote:last-of-type { padding-bottom: 0; }
.quote p {
  margin: 0; font-weight: 400; font-size: var(--fs-h2);
  line-height: 1.3; color: var(--ink); text-wrap: balance;
}

/* ---------- Purchase ---------- */
.purchase__card {
  display: grid; gap: 22px;
  background: #fff; border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(22px, 3.6vw, 40px);
  box-shadow: var(--shadow);
  max-width: 780px; margin-inline: auto;
}
.purchase__media { display: flex; justify-content: center; }
.book { position: relative; width: min(46vw, 200px); transform: rotate(-2deg); }
.book img {
  border-radius: 2px 6px 6px 2px;
  box-shadow: 0 26px 44px -22px rgba(60, 40, 15, 0.55), 0 0 0 1px rgba(176, 133, 72, 0.2);
}
.book::before { /* שדרה: ספר עברי נכרך מימין */
  content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 5%;
  background: linear-gradient(to left, rgba(60, 40, 15, 0.22), rgba(255, 255, 255, 0.28) 45%, rgba(60, 40, 15, 0.06));
  border-radius: 0 6px 6px 0; z-index: 1; pointer-events: none;
}
.purchase__by { color: var(--muted); margin: 0.2em 0 0.8em; }
.purchase__list { margin-bottom: 1rem; }
.purchase__list li { position: relative; padding-inline-start: 24px; margin-bottom: 0.4em; color: var(--ink); }
.purchase__list li::before {
  content: ""; position: absolute; inset-inline-start: 3px; top: 0.6em;
  width: 8px; height: 8px; transform: rotate(45deg); background: var(--gold);
}
.purchase__body .price { margin-bottom: 1rem; }
@media (min-width: 820px) {
  .purchase__card { grid-template-columns: 0.85fr 1.15fr; align-items: center; gap: clamp(32px, 5vw, 56px); }
  .book { width: min(100%, 240px); }
}

/* ---------- FAQ (שקט וקטן) ---------- */
.faq__title { font-size: var(--fs-h3); text-align: center; margin-bottom: 1rem; color: var(--muted); }
.faq__list details { border-bottom: 1px solid var(--border); }
.faq__list details:first-of-type { border-top: 1px solid var(--border); }
.faq__list summary {
  cursor: pointer; list-style: none; position: relative;
  padding: 12px 0; padding-inline-end: 36px; color: var(--ink);
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "+"; position: absolute; inset-inline-end: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.3rem; color: var(--gold-text); transition: transform 0.2s ease;
}
.faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq__list details p { margin: 0 0 14px; color: var(--muted); font-size: var(--fs-small); line-height: 1.6; max-width: 40em; }

/* ---------- Final CTA ---------- */
.final {
  background:
    radial-gradient(60% 80% at 80% 100%, rgba(245, 231, 210, 0.8), rgba(245, 231, 210, 0) 70%),
    var(--bg);
}
.final__grid { display: grid; gap: 22px; }
.final__photo {
  width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 50% 20%;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.final__body { text-align: center; }
.final__line { font-weight: 500; font-size: var(--fs-h2); line-height: 1.2; color: var(--gold-text); margin: 0.25em 0 0.9em; }
@media (min-width: 900px) {
  .final__grid { grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: clamp(32px, 5vw, 56px); }
  .final__photo { order: 2; aspect-ratio: 4 / 5; max-height: 380px; width: auto; margin-inline: auto; border-radius: 999px 999px var(--radius) var(--radius); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #e9dcc8; padding-block: 26px 22px; }
.site-footer__inner { display: grid; gap: 12px; text-align: center; }
.wordmark--footer { color: #fff7ea; }
.site-footer__tag { margin: 2px 0 0; color: var(--gold-soft); font-family: var(--font-serif); }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; }
.site-footer__links a { color: #e9dcc8; text-decoration: none; font-size: var(--fs-small); }
.site-footer__links a:hover { color: #fff; text-decoration: underline; }
.site-footer__copy { margin: 0; font-size: var(--fs-small); color: #b9a890; }
@media (min-width: 820px) {
  .site-footer__inner { grid-template-columns: 1fr auto; text-align: start; align-items: center; }
  .site-footer__links { justify-content: flex-end; }
  .site-footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(214, 177, 113, 0.2); padding-top: 14px; }
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 16px calc(8px + env(safe-area-inset-bottom));
  background: rgba(255, 249, 239, 0.96);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  transform: translateY(110%); transition: transform 0.3s ease;
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta__text { margin: 0; font-weight: 500; font-size: var(--fs-body); color: var(--ink); white-space: nowrap; }
.sticky-cta__sep { color: var(--gold); margin-inline: 4px; }
@media (min-width: 768px) { .sticky-cta { display: none; } }

/* ---------- Simple pages (thank you, legal) ---------- */
.page-simple { min-height: 100vh; display: flex; flex-direction: column; }
.page-simple main { flex: 1; display: grid; place-items: center; padding-block: var(--space-section); }
.thanks { text-align: center; }
.thanks h1 { margin-bottom: 0.4em; }
.thanks .lead { margin-bottom: 0.6em; }
.thanks__note { color: var(--muted); margin-bottom: 1.8em; }
.thanks__cover { width: 140px; margin: 0 auto 1.6rem; border-radius: 2px 6px 6px 2px; box-shadow: var(--shadow); transform: rotate(-2deg); }
.legal h1 { font-size: var(--fs-h2); margin-bottom: 0.8em; }
.legal h2 { font-size: var(--fs-h3); margin: 1.6em 0 0.4em; }
.legal a { color: var(--gold-text); }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.3s ease, transform 0.3s ease; }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .sticky-cta { transition: none; }
}

[hidden] { display: none !important; }
