/* =========================================================
   דף נחיתה — מערכת העיצוב של calmo digital.
   קרקע בהירה וקרירה, Ink לטקסט, Pacific במינון קטן,
   וקו אופק אחד שכל השאר מתיישר אליו.
   ========================================================= */

:root {
  /* --- הפלטה מהברנד בוק --- */
  --ink:       #1D2433;   /* טקסט, כותרות, רקעים כהים */
  --pacific:   #2AB7CA;   /* קו האופק, מילויים, כפתור ראשי */
  --tomato:    #FE4A49;   /* התראות בלבד, ניצוץ אחד לעמוד */
  --mustard:   #FED766;   /* הדגשה */
  --alabaster: #E6E6EA;   /* גבולות ומשטחים משניים */
  --ghost:     #F4F4F8;   /* הקרקע הבהירה */
  --surface:   #FFFFFF;   /* כרטיסים מעל הקרקע */

  /* --- גוונים נגזרים, כולם נבדקו לניגודיות --- */
  /* Pacific המקורי נותן 2.19:1 כטקסט על Ghost White — לא קריא.
     לכן קישורים וטקסט אינטראקטיבי מקבלים את הגרסה המוכהה (5.17:1),
     ו-Pacific המקורי נשאר למילויים, לקו האופק ולכפתורים. */
  --pacific-ink:  #1A717D;
  --pacific-soft: rgba(42,183,202,.12);
  --pacific-line: rgba(42,183,202,.32);

  --ink-2: #454C5C;   /* טקסט משני על קרקע בהירה */
  --slate: #5F6570;   /* Slate של המותג, מוכהה מעט: המקור נותן 4.39 */
  --mist:  #A6ACB8;   /* Mist של המותג — לטקסט משני על רקע כהה בלבד */
  --alert: #C0322F;   /* Tomato מוכהה, לטקסט שגיאה קטן */
  /* Mist על קרקע בהירה נותן 2.08:1, ולכן הוא לא מתאים לפלייסהולדרים —
     הם נושאים רמז לפורמט ("050-0000000") וצריך לקרוא אותם. */
  --placeholder: #6A707C;

  /* --- טיפוגרפיה ---
     Outfit מגיש latin בלבד ואין בו עברית. לכן הוא ראשון ברשימה
     ותופס את הלטינית (הלוגו, AI, מספרים), והעברית נופלת ל-Noto Sans
     Hebrew — בדיוק מה שהברנד בוק מגדיר. */
  --font: "Outfit", "Noto Sans Hebrew", "Segoe UI", Arial, system-ui, sans-serif;

  /* הברנד בוק: לעולם לא bold. 500 הוא הקול הכבד ביותר במערכת. */
  --w-head: 500;
  --w-body: 400;
  --w-light: 300;

  --pad: clamp(1.25rem, 4vw, 4rem);
  --ease: cubic-bezier(.22,.72,.28,1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--ghost);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  font-weight: var(--w-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; font-weight: var(--w-head); }
p { margin: 0; }
a { color: inherit; }
b, strong { font-weight: var(--w-head); }

:focus-visible { outline: 3px solid rgba(42,183,202,.7); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 300;
  background: var(--ink); color: var(--ghost); padding: .7rem 1.1rem;
}
.skip-link:focus { inset-inline-start: 1rem; }

main, .bar, .foot, .sticky-cta { position: relative; z-index: 1; }

/* =========================================================
   אנימציות
   ========================================================= */

/* חשיפה בגלילה. המחלקה js-reveal מתווספת ב-main.js רק כשיש
   IntersectionObserver ורק כשהמשתמש לא ביקש להפחית תנועה —
   כך שבלי JS, או עם reduced motion, הכל פשוט מוצג רגיל. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  will-change: opacity, transform;
}
.js-reveal [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.js-reveal [data-reveal].d1.is-in { transition-delay: .07s; }
.js-reveal [data-reveal].d2.is-in { transition-delay: .14s; }
.js-reveal [data-reveal].d3.is-in { transition-delay: .21s; }
.js-reveal [data-reveal].d4.is-in { transition-delay: .28s; }
.js-reveal [data-reveal].d5.is-in { transition-delay: .35s; }

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(42,183,202,.5); }
  70%  { box-shadow: 0 0 0 9px rgba(42,183,202,0); }
  100% { box-shadow: 0 0 0 0 rgba(42,183,202,0); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition-duration: .01ms !important;
  }
  .js-reveal [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- בר עליון ---------- */
.bar { border-bottom: 1px solid var(--alabaster); background: var(--surface); }
.bar-inner {
  display: flex; align-items: center;
  padding: .85rem var(--pad);
  justify-content: flex-start; /* בעברית זה צמוד לימין */
}
.brand {
  display: inline-flex; align-items: center; gap: .7rem;
  text-decoration: none; color: inherit;
}
/* הבאדג' של המותג: סקווירקל עם קו אופק */
.badge { flex: none; display: block; width: 34px; height: 34px; }
.badge svg { width: 100%; height: 100%; display: block; }

.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text b { font-size: 1rem; font-weight: var(--w-head); letter-spacing: -.01em; }
/* שם המותג הוא לטיני ולכן נכתב ב-Outfit, באותיות קטנות כמו בברנד בוק */
.brand-text em {
  font-style: normal; font-weight: var(--w-light);
  font-size: .78rem; color: var(--slate); letter-spacing: .06em;
}

/* ---------- במה: כותרת + טופס ---------- */
/* קו האופק. הוא לא קישוט אלא הקו שכל השאר מתיישר אליו,
   ולכן הוא גם הגבול התחתון של הסקשן. */
.stage {
  position: relative; overflow: hidden;
  border-bottom: 2px solid var(--pacific);
}
/* בהירו אין קישוט נוסף. שתי העמודות מלאות עד קו האופק, וכל צורה
   שמתווספת נוחתת מתחת לתוכן ונקראת ככתם. הקו לבדו עושה את העבודה,
   והשמש מופיעה בעמוד /book שבו יש לה מקום. */
.stage-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.1fr .9fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding: clamp(2.25rem, 5vw, 4.5rem) var(--pad) clamp(2.5rem, 5vw, 4.5rem);
  max-width: 1400px; margin-inline: auto;
}

.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .82rem; font-weight: var(--w-head); color: var(--pacific-ink);
  letter-spacing: .02em; margin-bottom: 1.3rem;
  border: 1px solid var(--pacific-line); border-radius: 999px;
  padding: .3rem .9rem; background: var(--surface);
}
/* "Dot — the signal" מהשפה הגרפית */
.dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--pacific);
  animation: ping 2.6s ease-out infinite;
}

h1 {
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: var(--w-head);
  letter-spacing: -.025em;
  line-height: 1.16;
}
.mark { color: var(--pacific-ink); }

.sub {
  font-size: clamp(1rem, 1.15vw, 1.1rem);
  font-weight: var(--w-light);
  line-height: 1.65;
  color: var(--ink-2); margin-top: 1.2rem; max-width: 46ch;
}

/* ---------- שלוש דוגמאות קונקרטיות ----------
   הברנד בוק: סימן ה"מטופל" הוא וי בצבע Pacific. זה מה שהופך
   את הרשימה הזו לשפה של המותג ולא לרשימת תבליטים גנרית. */
.examples { list-style: none; margin: 1.6rem 0 0; padding: 0; }
.examples li {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .99rem; color: var(--ink-2);
  padding: .3rem 0;
}
.tick {
  flex: none; width: 19px; height: 19px; margin-top: .32rem;
  border-radius: 50%; background: var(--pacific-soft);
  display: grid; place-items: center;
}
.tick svg { width: 11px; height: 11px; color: var(--pacific-ink); display: block; }

/* ---------- התמונה, המותג והלינקדאין ----------
   מי שמגיע מקישור בוואטסאפ לא מכיר אותי, והתמונה עושה את
   ההבדל בין "עוד דף נחיתה" לבין בנאדם. */
.author {
  display: flex; align-items: center; gap: .85rem;
  margin-top: 1.7rem;
  padding-top: 1.4rem; border-top: 1px solid var(--alabaster);
}

.author-photo {
  position: relative; flex: none;
  width: 64px; height: 64px; border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--alabaster), 0 0 0 5px rgba(42,183,202,.10);
}
.author-photo img {
  position: relative; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; display: block;
}
/* ראשי תיבות מתחת לתמונה. נראים רק אם קובץ התמונה חסר,
   כדי שלא יופיע ריבוע שבור במקום הפרצוף. */
.author-initials {
  position: absolute; inset: 0; z-index: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem; font-weight: var(--w-head); color: var(--ghost);
  background: var(--ink);
}
.author-photo.no-photo img { display: none; }

.author-who { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.author-name { font-size: .98rem; font-weight: var(--w-head); }
.author-bio { font-size: .86rem; font-weight: var(--w-light); color: var(--slate); }

.author-link {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .86rem; font-weight: var(--w-body); color: var(--pacific-ink);
  text-decoration: none; margin-top: .15rem;
}
.author-link svg { flex: none; }
.author-link:hover { text-decoration: underline; }

/* ---------- פאנל הטופס ---------- */
.form-slot { display: flex; flex-direction: column; gap: 1.1rem; }

.panel {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--alabaster);
  border-radius: 18px;
  padding: clamp(1.4rem, 2.2vw, 2rem);
  box-shadow: 0 1px 2px rgba(29,36,51,.05), 0 24px 54px -26px rgba(29,36,51,.30);
}
/* קו אופק קטן בראש הפאנל — אותו מוטיב, בקנה מידה של רכיב */
.panel::before {
  content: ""; position: absolute; top: 0; inset-inline: clamp(1.4rem, 2.2vw, 2rem);
  height: 2px; background: var(--pacific); border-radius: 0 0 2px 2px;
}
.panel-head { margin-bottom: 1.3rem; }
.panel-head h2 { font-size: 1.32rem; letter-spacing: -.015em; }
.panel-head p { font-size: .9rem; font-weight: var(--w-light); color: var(--slate); margin-top: .3rem; }

.field { margin-bottom: .85rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
label { display: block; font-size: .85rem; font-weight: var(--w-body); margin-bottom: .3rem; }
.optional {
  font-weight: var(--w-light); font-size: .78rem; color: var(--slate);
  margin-inline-start: .35rem;
}
input, textarea {
  width: 100%; font-family: inherit; font-size: 1rem; font-weight: var(--w-body);
  color: var(--ink);
  background: var(--ghost); border: 1px solid var(--alabaster); border-radius: 10px;
  padding: .72rem .9rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease);
}
textarea { resize: vertical; min-height: 92px; line-height: 1.6; }
input::placeholder, textarea::placeholder { color: var(--placeholder); }
input:focus, textarea:focus {
  outline: none; background: var(--surface); border-color: var(--pacific);
  box-shadow: 0 0 0 3px rgba(42,183,202,.22);
}
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--alert); background: #FDF6F6; }

.error { font-size: .83rem; color: var(--alert); margin-top: .3rem; font-weight: var(--w-body); }
.form-error { text-align: center; margin-top: .8rem; }
.form-error a { color: var(--pacific-ink); }
.micro { font-size: .8rem; font-weight: var(--w-light); color: var(--slate); text-align: center; margin-top: .8rem; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- כפתור ----------
   לבן על Pacific נותן 2.41:1 ולא עובר. Ink על Pacific נותן 6.45:1,
   ולכן הכפתור הראשי הוא מילוי Pacific עם טקסט Ink. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: inherit; font-weight: var(--w-head); font-size: 1.02rem;
  background: var(--pacific); color: var(--ink);
  border: 0; border-radius: 10px; padding: .92rem 1.6rem;
  cursor: pointer; text-decoration: none;
  transition: transform .18s var(--ease), background-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn:hover {
  background: #23A3B4;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -10px rgba(42,183,202,.85);
}
.btn:active { transform: translateY(0); }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.btn-block { width: 100%; }
#submit-btn { margin-top: .5rem; }
.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2.5px solid rgba(29,36,51,.28); border-top-color: var(--ink);
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- מה אומרים עליי ---------- */
.voices { padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad); }
.voices-inner { max-width: 1400px; margin-inline: auto; }
.voices-grid {
  display: grid; gap: clamp(.9rem, 1.6vw, 1.3rem);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.quote {
  margin: 0;
  /* עמודה, כדי שהחתימות יישבו על אותו קו גם כשהציטוטים באורכים שונים */
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--alabaster);
  border-radius: 18px;
  padding: clamp(1.1rem, 1.8vw, 1.5rem);
}
.quote blockquote {
  margin: 0; font-size: .97rem; font-weight: var(--w-light);
  line-height: 1.7; color: var(--ink-2);
}
.quote blockquote::before {
  content: ""; display: block;
  width: 30px; height: 2px; background: var(--pacific);
  margin-bottom: .8rem; border-radius: 2px;
}
.quote figcaption {
  display: flex; align-items: center; gap: .7rem;
  margin-top: auto; padding-top: .9rem;
  border-top: 1px solid var(--alabaster);
}
/* margin-top: auto דוחף את החתימה לתחתית הכרטיס, ולכן צריך רווח
   מינימלי מהציטוט כשהוא קצר */
.quote blockquote { margin-bottom: 1rem; }
.q-photo {
  position: relative; flex: none;
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--alabaster);
}
.q-photo img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; display: block; }
.q-initials {
  position: absolute; inset: 0; z-index: 0;
  display: grid; place-items: center;
  font-size: 1.05rem; font-weight: var(--w-head); color: var(--ghost);
  background: var(--ink);
}
.q-photo.no-photo img { display: none; }
.q-who { display: flex; flex-direction: column; line-height: 1.35; }
.q-who b { font-size: .92rem; font-weight: var(--w-head); }
.q-who em { font-style: normal; font-size: .82rem; font-weight: var(--w-light); color: var(--slate); }

/* ---------- מסך הצלחה ---------- */
.success { text-align: center; padding: 1rem 0 .5rem; }
.success-icon {
  width: 54px; height: 54px; border-radius: 50%; margin: 0 auto 1rem;
  background: var(--pacific-soft); color: var(--pacific-ink); display: grid; place-items: center;
}
.success-icon svg { width: 27px; height: 27px; }
.success h3 { font-size: 1.45rem; }
.success p { color: var(--ink-2); font-weight: var(--w-light); margin-top: .5rem; }
.success .btn { margin-top: 1.2rem; }

/* =========================================================
   עמוד בחירת המועד (book.html)
   ========================================================= */

.book {
  position: relative; overflow: hidden;
  padding: clamp(2rem, 5vw, 3.5rem) var(--pad) clamp(2.5rem, 5vw, 4rem);
}
.book::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  bottom: 0; inset-inline-start: 4%;
  width: 40vw; height: 20vw; max-width: 520px; max-height: 260px;
  border-radius: 999px 999px 0 0;
  background: var(--pacific-soft);
}
.book-inner { position: relative; z-index: 1; max-width: 940px; margin-inline: auto; }

.book-head { text-align: center; margin-bottom: clamp(1.5rem, 3vw, 2.25rem); }
.book-head .kicker { margin-bottom: 1.1rem; }
.book-head h1 { font-size: clamp(1.85rem, 4.2vw, 2.85rem); }
.book-sub { margin-top: .8rem; color: var(--ink-2); font-weight: var(--w-light); font-size: 1.05rem; }

.cal-wrap {
  background: var(--surface);
  border: 1px solid var(--alabaster);
  border-radius: 18px;
  padding: clamp(.5rem, 1.2vw, 1rem);
  box-shadow: 0 1px 2px rgba(29,36,51,.05), 0 24px 54px -28px rgba(29,36,51,.28);
  min-height: 560px;
}
#cal-inline-30min { width: 100%; min-height: 560px; overflow: auto; }

/* דף 404. המחלקה קיימת כדי שלא יידרש style בתוך התגית —
   ה-CSP חוסם סגנון מוטבע, והמרווח פשוט לא היה חל. */
.notfound-cta { margin-top: 1.8rem; }
/* העמוד קצר, ולכן השמש בגודל של עמוד היומן משתלטת עליו */
.notfound .book::before { width: 26vw; height: 13vw; max-width: 320px; max-height: 160px; }

.cal-note {
  margin-top: 1.2rem; text-align: center;
  font-size: .9rem; font-weight: var(--w-light); color: var(--slate);
}
.cal-note a { color: var(--pacific-ink); font-weight: var(--w-body); }

@media (max-width: 700px) {
  .cal-wrap { border-radius: 14px; padding: .35rem; min-height: 520px; }
  #cal-inline-30min { min-height: 520px; }
}

/* ---------- במה אני עוזר ---------- */
.what {
  position: relative; overflow: hidden;
  padding: clamp(2.5rem, 5vw, 4.5rem) var(--pad);
  background: var(--surface);
  border-bottom: 1px solid var(--alabaster);
}
/* "Tide — offset horizon lines": דפוס אחד, בפינה הפנויה, מאחורי
   כותרת קצרה בלבד ולעולם לא מאחורי פסקה. ארבעה קווים באורכים
   שונים — קצה משונן שפונה לשולי העמוד ולא לתוכן. */
.what::before {
  content: ""; position: absolute; z-index: 0; pointer-events: none;
  /* צמוד לשולי העמוד, כך שהקווים יוצאים מהקצה ונקראים כרצועה
     ולא כקווים שמרחפים באמצע. */
  inset-inline-end: 0; top: clamp(1.6rem, 3.5vw, 2.8rem);
  width: min(320px, 26vw); height: 58px;
  background-image:
    linear-gradient(var(--pacific), var(--pacific)),
    linear-gradient(var(--pacific), var(--pacific)),
    linear-gradient(var(--pacific), var(--pacific)),
    linear-gradient(var(--pacific), var(--pacific));
  background-size: 100% 2px, 68% 2px, 86% 2px, 46% 2px;
  background-position: 0 0, 0 18px, 0 36px, 0 54px;
  background-repeat: no-repeat;
  opacity: .5;
}
.what-inner { position: relative; z-index: 1; max-width: 1400px; margin-inline: auto; }
.what-title {
  font-size: .8rem; font-weight: var(--w-head); letter-spacing: .1em;
  color: var(--slate); margin-bottom: 1.5rem;
}
.lines { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--alabaster); }
.lines li {
  position: relative;
  display: grid; grid-template-columns: 3.2rem 13rem 1fr;
  align-items: baseline; gap: 1rem;
  padding: 1.1rem .25rem;
  border-bottom: 1px solid var(--alabaster);
  transition: background-color .22s var(--ease);
}
/* קו אופק שנפתח מימין בריחוף */
.lines li::after {
  content: ""; position: absolute; bottom: -1px; inset-inline-start: 0;
  width: 0; height: 2px; background: var(--pacific);
  transition: width .45s var(--ease);
}
.lines li:hover { background: var(--ghost); }
.lines li:hover::after { width: 100%; }
.num {
  font-size: .88rem; font-weight: var(--w-head); color: var(--pacific-ink);
  font-variant-numeric: tabular-nums; letter-spacing: .02em;
}
.lines b { font-size: 1.18rem; font-weight: var(--w-head); letter-spacing: -.015em; }
.det { color: var(--ink-2); font-weight: var(--w-light); font-size: .97rem; }

.what-note { margin-top: 1.7rem; font-size: 1rem; font-weight: var(--w-light); color: var(--ink-2); }
.what-note a { font-weight: var(--w-body); color: var(--pacific-ink); text-decoration: none; }
.what-note a:hover { text-decoration: underline; }

/* ---------- פוטר ---------- */
.foot { border-top: 1px solid var(--alabaster); }
.foot-inner {
  max-width: 1400px; margin-inline: auto;
  display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between;
  padding: 1.4rem var(--pad); font-size: .87rem; font-weight: var(--w-light); color: var(--slate);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot a { text-decoration: none; transition: color .2s var(--ease); }
.foot a:hover { color: var(--pacific-ink); }

/* ---------- כפתור צף בנייד ---------- */
.sticky-cta {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 90; display: none;
  padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom));
  background: rgba(244,244,248,.95);
  backdrop-filter: saturate(180%) blur(10px);
  border-top: 2px solid var(--pacific);
}

/* ---------- רספונסיביות ---------- */
@media (max-width: 1000px) {
  .stage-inner { grid-template-columns: 1fr; gap: 2.25rem; align-items: start; }
  .sub { max-width: none; }
  .stage::after { opacity: .6; }
}

@media (max-width: 700px) {
  body { font-size: 16px; }
  .bar-inner { justify-content: center; }
  .lines li { grid-template-columns: 2.4rem 1fr; row-gap: .15rem; }
  .lines .det { grid-column: 2; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .author-photo { width: 56px; height: 56px; }
  .author-initials { font-size: 1.3rem; }
  .sticky-cta { display: block; }
  .foot { padding-bottom: 4.5rem; }
  .foot-inner { flex-direction: column; gap: .6rem; }
  .what::before { display: none; }
  .stage::before { width: 60vw; height: 30vw; }
}
