/* AI למאחרים — landing page styles.
   Design language extracted from sites.prh.com/thecreativeact (stark black &
   white, big elegant display type, generous whitespace, sharp buttons).
   Tokens: docs/design-reference/creative-act-tokens.md. RTL Hebrew. */

/* ---------- self-hosted variable fonts ---------- */
@font-face{
  font-family:"Frank Ruhl Libre";
  src:url("/static/fonts/FrankRuhlLibre.ttf") format("truetype-variations");
  font-weight:300 900; font-style:normal; font-display:swap;
}
@font-face{
  font-family:"Heebo";
  src:url("/static/fonts/Heebo.ttf") format("truetype-variations");
  font-weight:100 900; font-style:normal; font-display:swap;
}

/* ---------- design tokens ---------- */
:root{
  --ink:#000000; --ink-soft:#333333; --paper:#FFFFFF; --paper-warm:#F7F7F7;
  --mist:#BDBDBD; --night:#0A0A0A; --charcoal:#212121;
  --bg:var(--paper-warm); --fg:var(--ink); --muted:var(--ink-soft); --hairline:#E2E2E2;
  --accent:var(--ink); --tint:var(--paper-warm);
  --ochre:#C0792B; --ochre-dark:#A4641C; /* warm primary-CTA accent */
  --star:#F5A623; --star-empty:#D0D0D0;  /* Amazon-gold review stars */

  --font-display:"Frank Ruhl Libre",Georgia,serif;
  --font-body:"Heebo",system-ui,sans-serif;

  --t-hero:52px; --t-h1:45px; --t-h2:32px; --t-lead:23px;
  --t-body:20px; --t-small:15px; --t-tiny:13px;

  --space-1:8px; --space-2:16px; --space-3:24px; --space-4:40px;
  --space-5:64px; --space-6:96px; --space-7:128px;
  --container:1040px; --container-narrow:680px; --section-pad-y:96px;
}
@media (max-width:768px){
  :root{ --t-hero:39px; --t-h1:38px; --t-h2:27px; --t-lead:19.5px; --t-body:17px; --section-pad-y:56px; }
}

/* ---------- reset / base ---------- */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; }
body{
  margin:0; background:var(--bg); color:var(--fg);
  font-family:var(--font-body); font-size:var(--t-body); font-weight:400;
  line-height:1.6; direction:rtl; text-align:right;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{ max-width:100%; height:auto; display:block; }
a{ color:inherit; text-decoration:none; }
h1,h2,h3,h4{ font-family:var(--font-display); font-weight:500; line-height:1.05; margin:0; }
p{ margin:0 0 var(--space-2); }
strong{ font-weight:700; }

/* ---------- layout ---------- */
.container{ width:100%; max-width:var(--container); margin-inline:auto; padding-inline:var(--space-3); }
.narrow{ max-width:var(--container-narrow); }
.section{ padding-block:var(--section-pad-y); }
.section--paper{ background:var(--paper); }
.section--warm{ background:var(--paper-warm); }
.section--ink{ background:var(--ink); color:var(--paper); }
.section--ink .muted{ color:var(--mist); }
.center{ text-align:center; }
.eyebrow{ font-size:var(--t-tiny); letter-spacing:.18em; text-transform:uppercase; color:var(--muted); margin-bottom:var(--space-2); }
.muted{ color:var(--muted); }
.lead{ font-size:var(--t-lead); line-height:1.5; color:var(--ink-soft); }
.hr{ height:1px; background:var(--hairline); border:0; margin-block:var(--space-5); }

/* ---------- buttons ---------- */
.btn{
  display:inline-block; background:var(--ink); color:var(--paper);
  font-family:var(--font-body); font-size:var(--t-small); font-weight:500;
  letter-spacing:.02em; padding:15px 30px; border:1px solid var(--ink); border-radius:0;
  cursor:pointer; transition:background .15s ease,color .15s ease; text-align:center;
}
.btn:hover{ background:var(--paper); color:var(--ink); }
.btn--lg{ font-size:18px; padding:18px 44px; }
.section--ink .btn{ background:var(--paper); color:var(--ink); border-color:var(--paper); }
.section--ink .btn:hover{ background:transparent; color:var(--paper); }
.btn-note{ display:block; margin-top:var(--space-2); font-size:var(--t-small); color:var(--muted); }

/* ---------- top nav ---------- */
.nav{ position:sticky; top:0; z-index:40; background:color-mix(in srgb,var(--paper-warm) 88%,transparent); backdrop-filter:saturate(120%) blur(6px); border-bottom:1px solid var(--hairline); }
.nav__inner{ display:flex; align-items:center; justify-content:space-between; padding-block:var(--space-2); }
.nav__brand{ font-family:var(--font-display); font-weight:700; font-size:21px; }
.nav__cta{ font-size:var(--t-small); }
.nav__cta.btn{ display:inline-flex; align-items:center; justify-content:center; padding:9px 20px; line-height:1; }

/* ---------- hero ---------- */
.hero{ padding-block:var(--space-7) var(--space-6); text-align:center; }
.hero__title{ font-size:var(--t-hero); font-weight:700; margin-bottom:var(--space-2); }
.hero__subtitle{ font-size:var(--t-h2); font-weight:400; color:var(--ink-soft); margin-bottom:var(--space-3); }
.hero__promise{ font-size:var(--t-lead); line-height:1.55; max-width:620px; margin:0 auto var(--space-4); color:var(--ink-soft); }
.hero__cover{ max-width:300px; margin:var(--space-5) auto 0; }
.hero__caption{ font-size:var(--t-small); color:var(--muted); margin-top:var(--space-2); }

/* ---------- pull quote ---------- */
.quote{ text-align:center; }
.quote__text{ font-family:var(--font-display); font-weight:400; font-size:var(--t-h1); line-height:1.25; }
.quote__attrib{ display:block; margin-top:var(--space-3); font-family:var(--font-body); font-size:var(--t-small); color:var(--mist); letter-spacing:.12em; text-transform:uppercase; }

/* ---------- section heading ---------- */
.s-head{ text-align:center; margin-bottom:var(--space-5); }
.s-head__title{ font-size:var(--t-h1); font-weight:500; margin-bottom:var(--space-2); }
.s-head__intro{ font-size:var(--t-lead); color:var(--ink-soft); max-width:600px; margin-inline:auto; }

/* ---------- wins ---------- */
.wins{ display:grid; gap:var(--space-5); max-width:var(--container-narrow); margin-inline:auto; }
.win{ display:grid; grid-template-columns:auto 1fr; gap:var(--space-3); align-items:start; }
.win__num{ font-family:var(--font-display); font-size:var(--t-h2); font-weight:500; color:var(--mist); line-height:1; }
.win__title{ font-size:24px; font-weight:500; margin-bottom:var(--space-1); }
.win__body{ color:var(--ink-soft); margin-bottom:var(--space-2); }
.win__example{ border-inline-start:2px solid var(--ink); padding-inline-start:var(--space-2); font-size:var(--t-small); color:var(--ink-soft); background:var(--paper); padding-block:var(--space-1); }

/* ---------- inside the book ---------- */
.inside{ display:grid; grid-template-columns:1fr 1fr; gap:var(--space-6); align-items:start; }
.inside__cover{ max-width:320px; margin-inline:auto; }
/* sample-pages carousel (one image at a time, RTL: prev on the right) */
.carousel{ position:relative; width:100%; max-width:600px; margin-inline:auto; }
.carousel__viewport{ overflow:hidden; border:1px solid var(--hairline); border-radius:8px; background:var(--paper); }
.carousel__track{ display:grid; }
.carousel__slide{ grid-area:1 / 1; opacity:0; transition:opacity .5s ease; pointer-events:none; }
.carousel__slide.is-active{ opacity:1; pointer-events:auto; }
.carousel__img{ display:block; width:100%; height:auto; }
.carousel__arrow{ position:absolute; top:50%; transform:translateY(-50%); width:44px; height:44px; padding:0; border:none; border-radius:50%; background:var(--tint); color:var(--accent); font-size:26px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 10px rgba(0,0,0,.14); transition:transform .15s ease; z-index:2; }
.carousel__arrow:hover{ transform:translateY(-50%) scale(1.08); }
.carousel__arrow--prev{ right:10px; left:auto; }   /* RTL: previous on the right */
.carousel__arrow--next{ left:10px; right:auto; }   /* RTL: next on the left */
.carousel__dots{ display:flex; justify-content:center; gap:8px; margin-top:var(--space-2); }
.carousel__dot{ width:9px; height:9px; padding:0; border:none; border-radius:50%; background:var(--hairline); cursor:pointer; transition:transform .15s ease, background .15s ease; }
.carousel__dot.is-active{ background:var(--accent); transform:scale(1.3); }
.chapters{ list-style:none; margin:0; padding:0; }
.chapters li{ padding-block:var(--space-2); border-bottom:1px solid var(--hairline); display:flex; gap:var(--space-2); }
.chapters li:last-child{ border-bottom:0; }
.chapters .num{ color:var(--mist); font-family:var(--font-display); min-width:1.6em; }

/* ---------- praise ---------- */
.praise{ display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-4); }
.praise__card{ border:1px solid var(--hairline); padding:var(--space-4); background:var(--paper); }
.praise__quote{ font-family:var(--font-display); font-size:var(--t-lead); line-height:1.35; margin-bottom:var(--space-3); }
.praise__by{ font-size:var(--t-small); color:var(--muted); }

/* ---------- author ---------- */
.author{ max-width:var(--container-narrow); margin-inline:auto; text-align:center; }
.author__body{ font-size:var(--t-lead); line-height:1.6; color:var(--ink-soft); }
.author__sign{ font-family:var(--font-display); font-size:var(--t-h2); margin-top:var(--space-3); }

/* ---------- buy ---------- */
.buy{ text-align:center; max-width:var(--container-narrow); margin-inline:auto; }
.buy__price{ font-family:var(--font-display); font-size:var(--t-hero); font-weight:700; margin-block:var(--space-2); }
.buy__includes{ list-style:none; padding:0; margin:var(--space-4) auto; display:inline-grid; gap:var(--space-1); text-align:start; }
.buy__includes li::before{ content:"✓"; margin-inline-end:var(--space-1); }
#paypal-buttons{ max-width:360px; margin:var(--space-4) auto 0; }
.buy__trust{ font-size:var(--t-small); color:var(--mist); margin-top:var(--space-3); }

/* ---------- footer + newsletter ---------- */
.footer{ background:var(--night); color:var(--paper); padding-block:var(--space-6); }
.footer .muted{ color:var(--mist); }
.newsletter{ max-width:480px; margin-inline:auto; text-align:center; }
.newsletter__form{ display:flex; gap:var(--space-1); margin-top:var(--space-3); }
.newsletter__form input{ flex:1; padding:14px 16px; border:1px solid var(--mist); background:transparent; color:var(--paper); font-family:var(--font-body); font-size:var(--t-small); border-radius:0; }
.newsletter__form input::placeholder{ color:var(--mist); }
.newsletter__msg{ min-height:1.2em; margin-top:var(--space-2); font-size:var(--t-small); color:var(--mist); }
.footer__rights{ text-align:center; margin-top:var(--space-5); font-size:var(--t-tiny); color:var(--mist); }

/* ---------- image placeholder (empty slots) ---------- */
.ph{ display:flex; align-items:center; justify-content:center; aspect-ratio:3/4; background:var(--paper); border:1px solid var(--hairline); color:var(--mist); font-size:var(--t-small); }

/* ---------- checkout modal (site-controlled close over PayPal) ---------- */
.checkout-modal{ position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; padding:var(--space-3); }
.checkout-modal[hidden]{ display:none; }
.checkout-modal__backdrop{ position:absolute; inset:0; background:rgba(20,16,12,.6); }
.checkout-modal__panel{ position:relative; z-index:1; width:100%; max-width:440px; max-height:90vh; overflow-y:auto; background:var(--paper); color:var(--ink); border-radius:14px; padding:var(--space-5) var(--space-4) var(--space-4); box-shadow:0 24px 70px rgba(0,0,0,.4); text-align:center; }
.checkout-modal__close{ position:absolute; top:12px; left:12px; right:auto; width:40px; height:40px; padding:0; border:none; border-radius:50%; background:var(--paper-warm); color:var(--ink); font-size:26px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; transition:background .15s ease; }
.checkout-modal__close:hover{ background:var(--hairline); }
.checkout-modal__title{ font-family:var(--font-display); font-size:var(--t-lead); margin:0 0 var(--space-1); }
.checkout-modal__price{ font-family:var(--font-display); font-size:var(--t-h2); font-weight:700; margin-bottom:var(--space-3); }
.checkout-modal__trust{ margin-top:var(--space-3); font-size:var(--t-small); color:var(--muted); }
body.modal-open{ overflow:hidden; }

/* ---------- download / unboxing page ---------- */
.dl{ min-height:100vh; display:flex; align-items:center; justify-content:center; padding:var(--space-4) var(--space-3); background:linear-gradient(180deg,var(--paper-warm),#ECE6DC); }
.dl__card{ width:100%; max-width:560px; background:var(--paper); border:1px solid var(--hairline); border-radius:22px; padding:var(--space-6) var(--space-4) var(--space-5); box-shadow:0 30px 80px rgba(45,33,20,.13); text-align:center; }
.dl__badge{ width:66px; height:66px; margin:0 auto var(--space-3); border-radius:50%; background:var(--ink); color:var(--paper); display:flex; align-items:center; justify-content:center; font-size:32px; line-height:1; }
.dl__badge--soft{ background:var(--paper-warm); color:var(--ink); border:1px solid var(--hairline); }
.dl__title{ font-family:var(--font-display); font-size:var(--t-h1); line-height:1.12; margin:0 0 var(--space-2); }
.dl__lead{ font-size:var(--t-lead); line-height:1.55; color:var(--ink-soft); max-width:44ch; margin:0 auto var(--space-5); }
.dl__items{ display:grid; gap:var(--space-2); text-align:start; }
.dl__item{ display:flex; align-items:center; justify-content:space-between; gap:var(--space-3); padding:var(--space-3) var(--space-4); border:1px solid var(--hairline); border-radius:16px; background:var(--paper-warm); text-decoration:none; color:inherit; transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.dl__item:hover{ border-color:var(--ink); transform:translateY(-1px); box-shadow:0 10px 24px rgba(45,33,20,.1); }
.dl__meta{ flex:1; min-width:0; }
.dl__label{ display:block; font-weight:700; font-size:var(--t-body); margin-bottom:2px; }
.dl__desc{ display:block; font-size:var(--t-small); color:var(--ink-soft); }
.dl__go{ flex:0 0 46px; width:46px; height:46px; border-radius:50%; background:var(--ink); color:var(--paper); display:flex; align-items:center; justify-content:center; font-size:22px; }
.dl__note{ margin:var(--space-5) auto 0; font-size:var(--t-small); color:var(--ink-soft); max-width:46ch; }
.dl__tip{ margin:var(--space-2) auto 0; font-size:var(--t-small); color:var(--mist); max-width:46ch; }
.dl__help{ margin-top:var(--space-4); font-size:var(--t-small); color:var(--ink-soft); }
.dl__home{ display:inline-block; margin-top:var(--space-4); font-size:var(--t-small); color:var(--mist); }
/* tablet + desktop: a wider, roomier card with the two downloads as side-by-side
   tiles (arrow on top, label, description), so it reads as an intentional desktop
   layout rather than a phone card floating on a big screen. */
@media (min-width:769px){
  .dl{ padding:var(--space-6); }
  .dl__card{ max-width:640px; padding:var(--space-7) var(--space-6) var(--space-6); border-radius:26px; }
  .dl__badge{ width:74px; height:74px; font-size:36px; }
  .dl__items{ grid-template-columns:1fr 1fr; gap:var(--space-3); margin-top:var(--space-2); }
  .dl__item{ flex-direction:column; align-items:center; text-align:center; gap:var(--space-2); padding:var(--space-4) var(--space-3); }
  .dl__go{ order:-1; }
  .dl__note{ margin-top:var(--space-6); }
}

/* ---------- responsive ---------- */
@media (max-width:768px){
  .inside{ grid-template-columns:1fr; gap:var(--space-4); }
  .carousel__arrow{ display:none; }   /* mobile: swipe only, no arrows */
  .praise{ grid-template-columns:1fr; }
  .hero{ padding-block:var(--space-6) var(--space-5); }
  .btn{ display:block; width:100%; }
  .nav__cta.btn{ width:auto; display:inline-flex; }
  .newsletter__form{ flex-direction:column; }
  .checkout-modal{ padding:0; align-items:flex-end; }
  .checkout-modal__panel{ max-width:none; border-radius:16px 16px 0 0; max-height:94vh; }
  .dl__card{ padding:var(--space-5) var(--space-3) var(--space-4); border-radius:18px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion:reduce){ *{ transition:none !important; } }

/* ============ CRO sections (conversion landing) ============ */
/* hero strong headline */
.hero__headline{ font-size:var(--t-h1); line-height:1.12; max-width:18ch; margin-inline:auto; }
.btn--accent{ background:var(--ochre); color:#fff; border-color:var(--ochre); }
.btn--accent:hover{ background:var(--ochre-dark); color:#fff; border-color:var(--ochre-dark); }
.section--ink .btn--accent{ background:var(--ochre); color:#fff; border-color:var(--ochre); }
.section--ink .btn--accent:hover{ background:var(--ochre-dark); color:#fff; }

/* pain / empathy */
.pain__text{ font-family:var(--font-display); font-size:var(--t-h2); line-height:1.4; text-align:center; color:var(--ink); }

/* how it works (3 steps) */
.steps{ text-align:center; }
.steps__list{ list-style:none; margin:var(--space-4) 0 0; padding:0; display:grid; grid-template-columns:repeat(3,1fr); gap:var(--space-3); }
.step{ display:flex; flex-direction:column; align-items:center; gap:var(--space-2); color:var(--paper); }
.step__num{ width:54px; height:54px; border-radius:50%; border:2px solid var(--ochre); color:var(--ochre); display:flex; align-items:center; justify-content:center; font-family:var(--font-display); font-size:24px; font-weight:700; }
.step__text{ font-size:var(--t-lead); }

/* inside carousel caption */
.inside__caption{ text-align:center; margin-top:var(--space-2); font-size:var(--t-small); color:var(--muted); }

/* reviews carousel */
.reviews__avg{ margin-top:var(--space-1); font-size:var(--t-lead); }
.reviews__avgnum{ font-family:var(--font-display); font-size:var(--t-h2); }
.reviews__star{ color:var(--star); }
.reviews{ position:relative; margin-top:var(--space-4); }
.reviews__viewport{ overflow:hidden; }
.reviews__track{ display:flex; gap:16px; transition:transform .45s ease; }
.review{ flex:0 0 100%; box-sizing:border-box; background:var(--paper); border:1px solid var(--hairline); border-radius:12px; padding:var(--space-4); text-align:start; box-shadow:0 2px 8px rgba(0,0,0,.07); }
.review__stars{ letter-spacing:2px; margin-bottom:var(--space-1); font-size:18px; color:var(--star); }
.review__body{ font-size:var(--t-body); line-height:1.55; color:var(--ink); margin:0 0 var(--space-2); }
.review__meta{ font-size:var(--t-small); color:var(--ink-soft); margin:0; }
.review__name{ font-weight:700; }
.review__verified{ display:inline-block; margin-inline-start:8px; color:var(--ochre-dark); font-weight:700; }
.reviews__arrow{ position:absolute; top:40%; transform:translateY(-50%); width:42px; height:42px; padding:0; border:none; border-radius:50%; background:var(--tint); color:var(--accent); font-size:24px; line-height:1; cursor:pointer; display:flex; align-items:center; justify-content:center; box-shadow:0 2px 10px rgba(0,0,0,.12); z-index:2; }
.reviews__arrow--prev{ right:-8px; left:auto; }
.reviews__arrow--next{ left:-8px; right:auto; }
.reviews__dots{ display:flex; justify-content:center; gap:8px; margin-top:var(--space-3); }
.reviews__dot{ width:9px; height:9px; padding:0; border:none; border-radius:50%; background:var(--hairline); cursor:pointer; }
.reviews__dot.is-active{ background:var(--ochre); transform:scale(1.3); }

/* gift */
.gift{ text-align:center; }

/* FAQ accordion */
.faq{ max-width:640px; margin-inline:auto; }
.faq__item{ border-bottom:1px solid var(--hairline); padding:var(--space-2) 0; }
.faq__q{ font-family:var(--font-display); font-size:var(--t-lead); cursor:pointer; list-style:none; }
.faq__q::-webkit-details-marker{ display:none; }
.faq__q::after{ content:"+"; float:left; color:var(--ochre); font-weight:700; }
.faq__item[open] .faq__q::after{ content:"\2212"; }
.faq__a{ margin:var(--space-2) 0 0; color:var(--ink-soft); line-height:1.55; }

/* buy urgency + consent */
.buy__urgency{ font-size:var(--t-small); color:var(--ochre); font-weight:700; margin-bottom:var(--space-3); }
.consent{ display:flex; align-items:flex-start; gap:10px; font-size:var(--t-small); color:var(--mist); max-width:46ch; margin:var(--space-2) auto 0; text-align:start; line-height:1.45; }
.consent input[type="checkbox"]{ width:18px; height:18px; flex:0 0 auto; margin-top:2px; }
.consent span{ flex:1 1 auto; min-width:0; }
/* the waitlist consent fills the form width and reads right-to-left */
.wl__form .consent{ max-width:none; margin-top:0; color:var(--ink-soft); }
.footer__links{ margin-top:var(--space-3); }
.footer__links a{ color:var(--mist); }

/* waitlist page */
.wl{ min-height:60vh; max-width:560px; margin-inline:auto; padding:var(--space-5) var(--space-3); }
.wl__card{ background:var(--paper); border:1px solid var(--hairline); border-radius:18px; padding:var(--space-5) var(--space-4); margin-bottom:var(--space-4); box-shadow:0 14px 40px rgba(45,33,20,.08); }
.wl__title{ font-family:var(--font-display); font-size:var(--t-h1); margin:0 0 var(--space-2); }
.wl__title2{ font-family:var(--font-display); font-size:var(--t-h2); margin:0 0 var(--space-3); }
.wl__sub{ font-size:var(--t-lead); color:var(--ink-soft); }
.wl__teaser{ color:var(--ink-soft); }
.wl__form{ display:grid; gap:var(--space-2); margin-top:var(--space-3); }
.wl__form input:not([type="checkbox"]), .wl__form textarea{ width:100%; box-sizing:border-box; padding:13px 14px; border:1px solid var(--hairline); border-radius:8px; font:inherit; font-size:16px; background:var(--paper-warm); direction:rtl; text-align:right; }
.wl__msg{ min-height:1.2em; font-size:var(--t-small); color:var(--ochre-dark); }
.wl__back{ text-align:center; }
.wl__back a{ color:var(--mist); font-size:var(--t-small); }
.rating{ display:flex; gap:6px; font-size:30px; }
.rating__star{ background:none; border:none; padding:0 2px; cursor:pointer; color:var(--star-empty); line-height:1; min-width:34px; min-height:34px; }
.rating__star.on{ color:var(--star); }

@media (max-width:768px){
  .hero__headline{ font-size:var(--t-h2); }
  .steps__list{ grid-template-columns:1fr; gap:var(--space-3); }
  .review{ flex-basis:100%; }
  .reviews__arrow{ display:none; }   /* mobile: swipe only, no arrows */
}
@media (min-width:769px){
  .review{ flex-basis:calc(50% - 8px); }
}
@media (min-width:1100px){
  .review{ flex-basis:calc(33.333% - 11px); }
}

.dl__version{ margin-top:var(--space-2); font-size:var(--t-tiny); color:var(--mist); }
