/* ═══════════════════════════════════════════════════════════
   פיטופוליס · FITOPOLIS — fitopolis.co.il
   השפה הנעולה: Fredoka (כותרות) · Rubik (טקסט) · Secular One (ספרות)
   פלטת 7 התפקידים — אותם הקסים בבהיר ובכהה (PROJECT-STATE §2 🎨)
   ═══════════════════════════════════════════════════════════ */

:root {
  /* צבעי התפקידים */
  --trainer: #12939D;        /* קול המאמן */
  --trainer-deep: #0E767E;
  --trainer-tint: #E7F2F3;
  --trainee: #F07C1A;        /* קול המתאמן */
  --trainee-ink: #331B04;    /* טקסט על כתום — כהה, לא לבן */
  --attention: #C08A18;      /* דורש טיפול */
  --attention-tint: #F6EFDD;
  --positive: #37945F;       /* מגמה/תוצאה חיובית */
  --positive-tint: #E9F3EC;
  --negative: #CC5555;       /* שלילי */
  --system: #B0599A;         /* מערכת */
  --neutral: #8A8A8A;

  /* גרסאות-טקסט של צבעי התפקידים.
     §2 🎨 קובע: "ניגודיות לטקסט קטן בצבע תפקיד תיבדק בקידוד (AA)".
     צבעי התפקידים עצמם (המילויים) לא משתנים — אלה וריאנטים לטקסט קטן בלבד,
     כולם נמדדו מול הרקע שעליו הם יושבים ועוברים AA (4.5:1). */
  --trainer-text: #0E767E;     /* 4.8:1 */
  --attention-text: #79560B;   /* 5.8:1 */
  --positive-text: #2A7449;    /* 5.0:1 */
  --negative-text: #A33333;

  /* משטחים ודיו */
  --bg: #F0EFEC;
  --bg-deep: #E4E2DD;
  --surface: #FFFFFF;
  --surface-soft: #F5F4F1;
  --chip-bg: #E6E4DF;
  --ink: #141412;
  --ink-soft: #4A4844;
  --ink-mid: #2B2A27;
  --line: #D8D5CE;
  --dark: #1C1917;
  --dark-2: #292421;
  --dark-line: rgba(255, 255, 255, 0.11);
  --dark-ink: #EAE5DC;
  --dark-soft: #A9A399;

  /* עומק */
  --shadow-sm: 0 1px 2px rgba(21, 18, 15, 0.06), 0 6px 18px rgba(21, 18, 15, 0.10);
  --shadow-md: 0 2px 6px rgba(21, 18, 15, 0.08), 0 20px 40px rgba(21, 18, 15, 0.18);
  --shadow-lg: 0 10px 24px rgba(21, 18, 15, 0.14), 0 40px 80px rgba(21, 18, 15, 0.30);
  /* גרעין עדין — מה שמונע מהמשטחים להיראות כמו נייר שטוח */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");

  --font-display: "Fredoka", "Rubik", "Segoe UI", system-ui, sans-serif;
  --font-body: "Rubik", "Segoe UI", system-ui, sans-serif;
  --font-digits: "Secular One", "Rubik", sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable; /* שלא יזוז הכל ב-7px בין דף ארוך לקצר */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--trainer-text); text-decoration: none; }
a:hover { color: #0B6068; }

/* ── פוקוס נראה — בלי זה משתמש מקלדת לא יודע איפה הוא ─────── */
:focus-visible {
  outline: 3px solid var(--trainer-text);
  outline-offset: 3px;
  border-radius: 6px;
}
.closing :focus-visible,
.sides :focus-visible,
.inner-footer :focus-visible { outline-color: #FFFFFF; }

/* קישור דילוג — מופיע רק כשמגיעים אליו במקלדת */
.skip-link {
  position: absolute;
  inset-inline-start: 24px;
  top: 10px;
  transform: translateY(-200%);
  z-index: 100;
  background: var(--dark);
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 15.5px;
  font-weight: 600;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); color: #FFFFFF; }

img, svg { max-width: 100%; }

.container {
  width: 100%;          /* בלי זה, עטיפת flex מכווצת את הסרגל לרוחב התוכן
                           והרשת של הסרגל העליון קורסת — הכפתור קופץ למרכז */
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

/* ── לוגוטייפ ─────────────────────────────────────────────── */
.logotype {
  display: inline-flex;
  align-items: center;
  direction: ltr;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(30px, 4.2vw, 38px); /* מינימום 28px — כלל הלוגו הנעול */
  letter-spacing: 0.02em;
  line-height: 1;
}
.logotype .fit { color: var(--trainer); }
.logotype .polis { color: var(--trainee); }
.logotype .o-mark {
  width: 0.78em;
  height: 0.78em;
  margin: 0 0.03em;
}

/* ── סרגל עליון — הלוגו תמיד במרכז, הניווט תמיד באותו צד ──── */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding-block: 26px 18px;
}
.topbar .logotype { grid-column: 2; justify-self: center; }
.topbar-nav { grid-column: 3; justify-self: end; }
.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-soft);
  white-space: nowrap;
}
.nav-link:hover { color: var(--trainer); }
.nav-link .arrow { transition: transform 0.18s ease; }
.nav-link:hover .arrow { transform: translateX(-3px); }

@media (max-width: 560px) {
  /* בטלפון הלוגו והניווט נערמים — אבל בריפוד של דסקטופ זה בלע 128px.
     מהודק ל-~86 בלי לוותר על מירכוז הלוגו ועל יעד מגע של 44px. */
  .topbar {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 2px;
    padding-block: 14px 6px;
  }
  .topbar .logotype, .topbar-nav { grid-column: 1; justify-self: center; }
  .topbar .logotype { font-size: 29px; }
  .nav-link { font-size: 15px; }
}

/* ── כפתורים — גלולות, כמו שפת הצורה ─────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 34px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 600;
  transition: transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}
.btn-primary { background: var(--trainer-text); color: #FFFFFF; }
.btn-primary:hover {
  background: #0B6068;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(18, 147, 157, 0.28);
}
.btn-ghost { border: 1.5px solid #FFFFFF; color: #FFFFFF; }
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 65% at 28% 2%, #FCFCFB 0%, rgba(252,252,251,0) 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
}
/* שכבת גרעין — בלי mix-blend-mode: הוא כפה קומפוזיטינג מחדש בכל פריים
   וזה מה שהפך את מעקב-העכבר ללאגי */
.hero::after,
.features::after,
.sides::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.032;
  pointer-events: none;
}
.sides::after { opacity: 0.05; }
.features { position: relative; }
.sides { position: relative; }
.hero > *, .features > *, .sides > * { position: relative; z-index: 1; }
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 64px;
  padding-block: 48px 88px;
}
.hero-copy {
  position: relative;
  z-index: 1;
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 22px;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--chip-bg);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.hero-chip .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--attention);
}
.hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.14;
}
.hero .sub {
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 540px;
}
.hero .note { font-size: 14.5px; color: var(--ink-soft); }

/* טבעות הרקע המרחפות */
.ring-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  will-change: transform;   /* מרים את השכבה לקומפוזיטור — בלי זה יש לאג */
}
.ring-layer .ring, .ring-layer .blob { position: absolute; }
.ring-layer .blob { border-radius: 999px; }

/* ── הטלפון ───────────────────────────────────────────────── */
.phone-col {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.phone-frame {
  width: 300px;
  background: var(--dark);
  border-radius: 42px;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transition: transform 0.12s ease-out;
  will-change: transform;
}
.phone-screen {
  position: relative;
  overflow: hidden;
  background: var(--surface);
  border-radius: 34px;
  padding: 18px 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-height: 570px;
}
.phone-caption { font-size: 13.5px; color: var(--ink-soft); }

/* הסרגל העליון של האפליקציה — אווטאר ריבוע-מעוגל עם טבעת עבה (v188) */
.ps-head { display: flex; justify-content: space-between; align-items: center; padding-inline: 2px; }
.ps-daylabel { font-family: var(--font-display); font-weight: 600; font-size: 19px; letter-spacing: -0.01em; }
.ps-avatar {
  width: 32px; height: 32px;
  border-radius: 11px;
  background: var(--trainer-tint);
  border: 2.5px solid var(--trainer);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ps-avatar svg { width: 17px; height: 17px; }

/* ארבעת כרטיסי מסך הבית */
.ps-hcard {
  background: var(--surface-soft);
  border-radius: 16px;
  padding: 11px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.ps-hcard .hc-top { display: flex; align-items: center; gap: 7px; }
.ps-hcard .hc-title { font-size: 13.5px; font-weight: 600; letter-spacing: -0.005em; }
.ps-hcard .hc-count {
  margin-inline-start: auto;
  font-family: var(--font-digits);
  font-size: 15px;
  line-height: 1;
  padding: 4px 10px;
  border-radius: 999px;
  min-width: 26px;
  text-align: center;
}
/* החלפת ערך במקום: שתי השכבות באותו תא רשת — נשארות מיושרות תמיד */
.swap-stack { display: grid; align-items: center; justify-items: center; }
.swap-stack > * { grid-area: 1 / 1; }
.count-trainee { background: var(--trainee); color: var(--trainee-ink); }
.count-attention { background: var(--attention-tint); color: var(--attention-text); }
.ps-hcard .hc-link { font-size: 11.5px; font-weight: 700; color: var(--trainer-text); }
.ps-hcard .hc-icon { width: 15px; height: 15px; flex: none; }

.ps-card {
  background: var(--surface);
  border-radius: 12px;
  padding: 9px 10px;
  display: flex;
  gap: 9px;
  align-items: center;
}
.ps-card .marker {
  width: 3.5px;
  align-self: stretch;
  border-radius: 999px;
  flex: none;
}
.marker-trainer { background: var(--trainer); }
.marker-trainee { background: var(--trainee); }
.ps-card .t1 { font-size: 13px; font-weight: 600; letter-spacing: -0.005em; }
.ps-card .t2 { font-size: 11.5px; color: var(--ink-soft); }
.ps-card .col { display: flex; flex-direction: column; gap: 1px; }
.ps-chip {
  font-size: 10px;
  font-weight: 600;
  border-radius: 999px;
  padding: 3px 8px;
  white-space: nowrap;
}
.ps-hcard .hc-link { margin-top: 1px; }
.chip-positive { background: var(--positive-tint); color: var(--positive-text); }
.chip-attention { background: var(--attention-tint); color: var(--attention-text); }
.ps-chip-swap {
  margin-inline-start: auto;
  display: grid;
  align-items: center;
  justify-items: stretch;
}
.ps-chip-swap > * { grid-area: 1 / 1; text-align: center; }
/* בר הניווט — גלולה עם חמישה טאבים; הפעיל הוא גלולה מלאה עם תווית
   (כמו bottom_nav_with_fab.dart: רדיוס 30, פריט פעיל ברדיוס 22 + תווית 10px/700) */
/* הגלולה מכווצת סביב הטאב הפעיל בלבד, ונפתחת בריחוף.
   מונפש רוחב ההורה — הטאבים עצמם לא משנים גודל, רק נחשפים. */
.ps-nav {
  margin-top: auto;
  margin-inline: auto;
  width: 56px;
  overflow: hidden;
  border-radius: 30px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(20, 20, 18, 0.12);
  display: flex;
  align-items: center;
  padding: 6px;
  transition: width 0.42s cubic-bezier(0.22, 0.8, 0.35, 1);
}
.phone-frame:hover .ps-nav,
.ps-nav.is-open { width: 200px; }
/* מכווץ: רק הטאב הפעיל נראה. בריחוף — כולם נפתחים.
   בדיוק כמו `show = navExpanded || isActive` ב-bottom_nav_with_fab.dart */
.ps-tab {
  display: flex;
  flex: none;
  box-sizing: border-box;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 7px 9px;
  border-radius: 22px;
  position: relative;
  transition: opacity 0.3s ease;
}
.ps-tab.is-hidden { opacity: 0; }
.phone-frame:hover .ps-tab.is-hidden,
.ps-nav.is-open .ps-tab.is-hidden { opacity: 1; transition-delay: 0.08s; }
.ps-tab svg { width: 18px; height: 18px; display: block; flex: none; }
.ps-tab.active {
  background: var(--trainer-text);
  padding-inline: 12px;
}
.ps-tab.active .ps-tab-label {
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1;
  color: #FFFFFF;
}
.ps-tab .badge {
  position: absolute;
  top: 4px;
  inset-inline-end: 5px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--trainee);
  border: 1.5px solid var(--surface-soft);
  opacity: 0;
}
.ps-toast {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translate(-50%, -18px);
  opacity: 0;
  background: var(--dark);
  color: #FFFFFF;
  border-radius: 999px;
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  white-space: nowrap;
  z-index: 2;
}

/* ── סקשנים ───────────────────────────────────────────────── */
.section-title {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(27px, 3vw, 34px);
}
/* כותרת ממורכזת עם הסימן מעליה */
.section-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
}
.section-head .section-title { margin: 0; text-align: center; }
.section-mark { width: 38px; height: 38px; display: block; }
/* הכרטיסים הלבנים יושבים על הרקע העמוק — שם הם באמת מתרוממים */
.features {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  padding-block: 88px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.feat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 13px;
  /* עומק פנימי: המשטח עצמו נוטה מלבן לצל קל, עם קו-אור בקצה העליון */
  background: linear-gradient(168deg, #FFFFFF 0%, #FBFAF7 62%, #F5F3EE 100%);
  border-radius: 22px;
  padding: 30px 22px 28px;
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(21, 18, 15, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.feat-card:hover {
  transform: translateY(-5px);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(21, 18, 15, 0.05);
}
.feat-icon {
  width: 54px;
  height: 54px;
  border-radius: 999px;
  /* האייקון יושב בתוך גומה — לא סתם עיגול שטוח */
  background: linear-gradient(160deg, #EAF4F5 0%, #D6E9EA 100%);
  box-shadow:
    inset 0 2px 4px rgba(18, 147, 157, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.8),
    0 3px 8px rgba(18, 147, 157, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.feat-card h3 { margin: 0; font-size: 17.5px; font-weight: 600; font-family: var(--font-body); }
.feat-card p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); max-width: 24ch; }

/* שני הקולות יושבים על כהה — שם הטורקיז והכתום באמת קופצים */
.sides {
  background: var(--dark);
  color: #FFFFFF;
  padding-block: 84px;
}
.sides .section-title { color: #FFFFFF; }
.sides-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.side-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: 26px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;   /* סמן, כותרת וטקסט על ציר אחד */
  text-align: center;
  gap: 18px;
}
.side-card .voice-dot { width: 46px; height: 46px; border-radius: 999px; }
.voice-trainer { background: var(--trainer); box-shadow: 0 0 0 8px rgba(18, 147, 157, 0.16); }
.voice-trainee { background: var(--trainee); box-shadow: 0 0 0 8px rgba(240, 124, 26, 0.16); }
.side-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: #FFFFFF;
}
.side-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  color: var(--dark-ink);
}
.side-card li { display: flex; gap: 11px; align-items: baseline; justify-content: center; }
.side-card li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  flex: none;
  transform: translateY(-2px);
}
.side-trainer li::before { background: var(--trainer); }
.side-trainee li::before { background: var(--trainee); }

/* ── סגירה + פוטר ─────────────────────────────────────────── */
.closing {
  background: var(--dark);
  color: #FFFFFF;
  padding-block: 0 40px;
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding-block: 78px 62px;
  border-top: 1px solid var(--dark-line);
  text-align: center;
}
.closing h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(25px, 3vw, 30px);
}
.closing .sub { font-size: 16px; color: var(--dark-soft); }
/* הפוטר — גם כאן הלוגו במרכז, כמו בכל שאר הדפים */
.footer-bar {
  border-top: 1px solid var(--dark-line);
  padding-top: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}
.footer-bar .links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  color: var(--dark-soft);
  flex-wrap: wrap;
  justify-content: center;
}
/* יעד מגע מלא גם לקישורי הפוטר */
.footer-bar .links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
}
.footer-bar .links a { color: var(--dark-soft); }
.footer-bar .links a:hover { color: #FFFFFF; }

/* ── דף תמיכה + 404 ──────────────────────────────────────── */
.page-main {
  width: 100%;          /* בלי זה, אותו באג של .container: בתוך עטיפת flex
                           האזור מתנפח לרוחב התוכן ולא גולש שורה */
  max-width: 660px;
  margin-inline: auto;
  padding: 40px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
/* כלל הבעלים (28/08): כותרת שאין לצידה תוכן שמתמשק איתה — ממורכזת.
   בפתיח הכותרת נשארת בצד דווקא כי הטלפון יושב מולה. */
.page-main h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(34px, 4vw, 42px);
  text-align: center;
}
.page-main .lead { font-size: 18px; line-height: 1.65; color: var(--ink-soft); text-align: center; }
/* כרטיס המייל — אותו עומק כמו כרטיסי היכולות בדף הבית */
.contact-group { display: flex; flex-direction: column; gap: 12px; }
.contact-card {
  background: linear-gradient(168deg, #FFFFFF 0%, #FBFAF7 62%, #F5F3EE 100%);
  border-radius: 24px;
  padding: 30px 28px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.contact-card .icon {
  width: 56px;
  height: 56px;
  border-radius: 999px;
  background: linear-gradient(160deg, #EAF4F5 0%, #D6E9EA 100%);
  box-shadow:
    inset 0 2px 4px rgba(18, 147, 157, 0.18),
    inset 0 -1px 0 rgba(255, 255, 255, 0.8),
    0 3px 8px rgba(18, 147, 157, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.contact-card .label { font-size: 17px; font-weight: 600; }
.contact-card .value { direction: ltr; font-size: 16.5px; color: var(--ink-soft); }
/* ההערה קשורה לכרטיס שמעליה, לא מרחפת בפני עצמה */
.mini-note {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink-soft);
  text-align: center;
  padding-inline: 8px;
}
.faq-placeholder {
  border: 1.5px dashed #D8D2C8;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  text-align: center;
  color: var(--ink-soft);
}
.faq-placeholder .t {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}
/* הפוטר של הדפים הפנימיים — זהה לזה של דף הבית, בלי בלוק הסגירה */
.inner-footer { margin-top: auto; padding-block: 0 40px; }
.inner-footer .footer-bar { border-top: none; padding-top: 40px; }
.page-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.contact-card {
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(21, 18, 15, 0.05);
  transition: box-shadow 0.22s ease, transform 0.22s ease;
}
.contact-card:hover {
  transform: translateY(-3px);
  box-shadow:
    var(--shadow-md),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(21, 18, 15, 0.05);
}
.invite-code-card {
  box-shadow:
    var(--shadow-sm),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(21, 18, 15, 0.05);
}

/* ── דף ההזמנה ────────────────────────────────────────────
   הדף היחיד באתר שהקהל שלו הוא המתאמן — ולכן הוא לובש את
   קול המתאמן (כתום) ולא את קול המאמן. */
.invite-main { align-items: center; text-align: center; }
.invite-mark { display: inline-block; width: 68px; height: 68px; }
.invite-mark svg { width: 100%; height: 100%; }
/* כרטיס הקוד — אותו עומק כמו כרטיסי היכולות */
.invite-code-card {
  background: linear-gradient(168deg, #FFFFFF 0%, #FBFAF7 62%, #F5F3EE 100%);
  border-radius: 24px;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  align-self: stretch;
}
.invite-code-label {
  font-size: 15.5px;
  font-weight: 500;
  color: var(--ink-soft);
}
/* הקוד בדיו כהה — לפי הכלל: צבע-תפקיד חי על סמנים, לא על טקסט
   ולא על רקעים. הכתום נשאר כסמן מתחת. 15.8:1 — הכי קריא בדף. */
.invite-code {
  font-family: var(--font-digits);
  font-size: clamp(36px, 8.5vw, 50px);
  line-height: 1.1;
  letter-spacing: 0.14em;
  color: var(--ink);
  position: relative;
  padding-bottom: 12px;
}
.invite-code::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 8%;
  height: 4px;
  border-radius: 999px;
  background: var(--trainee);
}
.invite-copy {
  appearance: none;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  min-height: 46px;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-mid);
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(21, 18, 15, 0.05);
  transition: border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.invite-copy:hover {
  border-color: var(--trainee);
  color: var(--trainee);
  transform: translateY(-1px);
}
.store-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; align-self: stretch; }
.store-btn {
  flex: 1 1 200px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 60px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--dark);
  color: #FFFFFF;
}
.store-btn.is-soon { opacity: 0.42; cursor: default; }
.store-btn .col { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.2; }
.store-btn .s1 { font-size: 12px; }
.store-btn .s2 { font-size: 17px; font-weight: 600; font-family: var(--font-display); }
.invite-help {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 15.5px;
  color: var(--ink-soft);
}
/* יעד מגע של 44px גם לקישור שיושב בתוך משפט */
.invite-help span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-wrap: wrap;
  min-height: 44px;
}
.invite-help a {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
}
/* הלוגו כשהוא קישור — גם הוא יעד מגע מלא */
a.logotype { min-height: 44px; }

/* ═══ אנימציות ═══════════════════════════════════════════── */

/* כניסה מדורגת בטעינה (Hero) */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal { animation: fadeUp 0.7s cubic-bezier(0.22, 0.8, 0.35, 1) both; }
.reveal.d1 { animation-delay: 0.08s; }
.reveal.d2 { animation-delay: 0.16s; }
.reveal.d3 { animation-delay: 0.2s; }
.reveal.d4 { animation-delay: 0.24s; }
.reveal.d5 { animation-delay: 0.32s; }

/* חשיפה בגלילה */
.scroll-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.22, 0.8, 0.35, 1), transform 0.7s cubic-bezier(0.22, 0.8, 0.35, 1);
}
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ריחוף הטבעות */
@keyframes driftA { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes driftB { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
.drift-a { animation: driftA 9s ease-in-out infinite; }
.drift-b { animation: driftB 12s ease-in-out -4s infinite; }
.drift-c { animation: driftA 11s ease-in-out -7s infinite; }

/* נשימת הטבעת בסגירה */
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.breathe { animation: breathe 5s ease-in-out infinite; }

/* ה-O בסרגל העליון — סיבוב אחד בכניסה, ועוד אחד בריחוף */
@keyframes oSpin {
  from { transform: rotate(-180deg) scale(0.72); opacity: 0; }
  to   { transform: rotate(0deg) scale(1); opacity: 1; }
}
.logotype .o-mark { transition: transform 0.6s cubic-bezier(0.22, 0.8, 0.35, 1); }
.topbar .logotype .o-mark { animation: oSpin 0.9s cubic-bezier(0.22, 0.8, 0.35, 1) 0.15s both; }
.logotype:hover .o-mark { transform: rotate(180deg); }

/* דמו הטלפון — לופ 12 שניות: בוקר של מאמן */
@keyframes demoChipOld { 0%, 16% { opacity: 1; } 20%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demoChipNew {
  0%, 16% { opacity: 0; transform: scale(0.7); }
  21% { opacity: 1; transform: scale(1.12); }
  25%, 94% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(0.7); }
}
@keyframes demoCard {
  0%, 36% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-10px); }
  43%, 93% { opacity: 1; max-height: 90px; padding-top: 12px; padding-bottom: 12px; transform: translateY(0); }
  99%, 100% { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; transform: translateY(-10px); }
}
@keyframes demoToast {
  0%, 58% { opacity: 0; transform: translate(-50%, -18px); }
  63%, 77% { opacity: 1; transform: translate(-50%, 0); }
  82%, 100% { opacity: 0; transform: translate(-50%, -18px); }
}
@keyframes demoBadge {
  0%, 62% { opacity: 0; transform: scale(0); }
  66%, 94% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(0); }
}
/* פעימה שנייה — סטטוס הפגישה מתהפך מאוחר יותר בלופ */
@keyframes demoStatOld { 0%, 44% { opacity: 1; } 48%, 96% { opacity: 0; } 100% { opacity: 1; } }
@keyframes demoStatNew {
  0%, 44% { opacity: 0; transform: scale(0.7); }
  49% { opacity: 1; transform: scale(1.12); }
  53%, 94% { opacity: 1; transform: scale(1); }
  98%, 100% { opacity: 0; transform: scale(0.7); }
}
.demo-stat-old { animation: demoStatOld 12s ease-in-out infinite; }
.demo-stat-new { animation: demoStatNew 12s ease-in-out infinite; }
.demo-chip-old { animation: demoChipOld 12s ease-in-out infinite; }
.demo-chip-new { animation: demoChipNew 12s ease-in-out infinite; }
.demo-card { overflow: hidden; animation: demoCard 12s ease-in-out infinite; }
.demo-toast { animation: demoToast 12s ease-in-out infinite; }
.demo-badge { animation: demoBadge 12s ease-in-out infinite; }

/* ═══ רספונסיב ═══════════════════════════════════════════── */
@media (max-width: 920px) {
  .hero-inner { flex-direction: column; align-items: flex-start; gap: 44px; padding-block: 28px 56px; }
  .phone-col { align-self: center; }
  .hero-copy .btn { align-self: stretch; }
  .footer-bar { flex-direction: column; }
}

/* ═══ הפחתת תנועה — נגישות ═══════════════════════════════── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .drift-a, .drift-b, .drift-c, .breathe,
  .demo-chip-old, .demo-chip-new, .demo-card, .demo-toast, .demo-badge,
  .demo-stat-old, .demo-stat-new, .topbar .logotype .o-mark {
    animation: none !important;
  }
  .demo-stat-new { opacity: 0 !important; }
  /* בלי תנועה — הבר פשוט פתוח, בלי הנפשה */
  .ps-nav { width: 200px !important; transition: none; }
  .ps-tab.is-hidden { opacity: 1; transition: none; }
  .logotype .o-mark, .logotype:hover .o-mark { transition: none; transform: none; }
  .demo-chip-new, .demo-toast, .demo-badge { opacity: 0 !important; }
  .demo-card { opacity: 1 !important; max-height: none !important; }
  .scroll-reveal { opacity: 1; transform: none; transition: none; }
  .phone-frame { transition: none; }
}

/* ── עמודים משפטיים (הצהרת נגישות וכו') ─────────────────── */
.legal {
  max-width: 720px;
  text-align: start;
  gap: 0;                 /* המרווח מנוהל בתוך הסקשנים, לא ברווח אחיד */
  padding-bottom: 96px;
}
.legal h1 { text-align: center; }
.legal .lead {
  text-align: center;
  margin-block: 14px 8px;
  max-width: 54ch;
  margin-inline: auto;
}
.legal section {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-top: 44px;
  margin-top: 44px;
  border-top: 1px solid var(--line);
}
.legal h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 25px;
  line-height: 1.3;
}
.legal p {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink-mid);
  max-width: 62ch;
}
.legal ul {
  margin: 0;
  padding-inline-start: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-mid);
  max-width: 62ch;
}
.legal li { display: flex; gap: 13px; align-items: baseline; }
.legal li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--trainee);
  flex: none;
  transform: translateY(-3px);
}
.legal li strong { color: var(--ink); }
.legal .contact-card { margin-top: 4px; }
.legal .mini-note { text-align: start; padding-inline: 0; }
.legal-meta {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px 22px;
  font-size: 16.5px;
  line-height: 1.6;
  background: var(--surface);
  border-radius: 20px;
  padding: 26px 28px;
  box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.95);
}
.legal-meta dt { font-weight: 600; color: var(--ink); }
.legal-meta dd { margin: 0; color: var(--ink-soft); }

@media (max-width: 560px) {
  .legal section { padding-top: 34px; margin-top: 34px; }
  .legal-meta { grid-template-columns: 1fr; gap: 4px 0; }
  .legal-meta dd { margin-bottom: 12px; }
}

/* ── ביצועים ───────────────────────────────────────────────
   הלאג בגלילה נבע משלושה מקורות: אנימציות אינסופיות שרצות גם
   כשלא רואים אותן, צללים גדולים שמצוירים מחדש בכל גלילה,
   ומאזין גלילה שכתב טרנספורמים גם אחרי שהפתיח יצא מהמסך. */

/* כל סקשן מצויר בנפרד — שינוי באחד לא מכריח ציור מחדש של האחרים */
.hero, .features, .sides, .closing { contain: paint; }

/* הטלפון על שכבה משלו, כדי שהצל העמוק שלו לא יצויר מחדש בגלילה */
.phone-frame { transform: translateZ(0); }

/* אנימציות נעצרות כשהאלמנט לא על המסך */
.anim-paused,
.anim-paused *,
.anim-paused *::before,
.anim-paused *::after { animation-play-state: paused !important; }

/* ── דף התמיכה בטלפון ────────────────────────────────────── */
@media (max-width: 560px) {
  .page-main { padding: 28px 20px 64px; }
  /* כרטיס המייל נערם: אייקון מעל, כתובת מתחת — כתובת מייל ארוכה
     לא נדחסת לחצי רוחב ולא נחתכת */
  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
    padding: 26px 20px;
  }
  .contact-card .value {
    font-size: 15.5px;
    overflow-wrap: anywhere;   /* כתובת ארוכה שוברת שורה במקום לגלוש */
  }
  .faq-placeholder { padding: 26px 20px; }
}

/* ── פוטר בטלפון ─────────────────────────────────────────── */
@media (max-width: 560px) {
  .inner-footer { padding-bottom: 26px; }
  .inner-footer .footer-bar { padding-top: 28px; }
  .footer-bar { gap: 8px; }
  .footer-bar .logotype { font-size: 28px; }
  .footer-bar .links {
    gap: 0 20px;            /* בלי רווח בין שורות — הן ממילא בגובה 44 */
    font-size: 13.5px;
    line-height: 1.4;
  }
  .closing-inner { padding-block: 52px 44px; }
}
