/*
 * TALKOLI · דף הנחיתה: בסיס, פתיחה, המסע בחלקיקים והקולות.
 * החלקים האלה אושרו על ידי דניאל. לא לשנות את המראה שלהם.
 * החלקים שנוספו אחריהם נמצאים ב-sections.css, וחלון העוזר ב-assistant.css.
 */

/* פלטה: שחור, כסף ואדום */
:root {
  --ink: #0a0a0b;
  --ink-2: #141518;
  --ink-3: #1e2024;
  --paper: #eceef1;          /* כסף בהיר: טקסט על שחור */
  --paper-2: #e6e8eb;        /* רקע של חלק בהיר */
  --paper-3: #d9dce1;
  --card-light: #f5f6f8;
  --gray-1: #858b94;         /* כסף כהה: השורה הראשונה בכותרות */
  --gray-2: #b4b9c1;
  --gray-dark: #5b6068;
  --line-dark: rgba(236, 238, 241, 0.12);
  --line-light: rgba(10, 10, 11, 0.12);
  --frame: #c4c9d0;          /* מסגרת כסופה לכרטיסים על רקע בהיר */
  --frame-dark: rgba(196, 201, 208, 0.26);   /* מסגרת כסופה על שחור */
  --in-bg: rgba(236, 238, 241, 0.06);        /* משטח פנימי בתוך כרטיס קרן */
  --in-line: rgba(236, 238, 241, 0.12);      /* הגבול שלו */
  --ctl-line: rgba(236, 238, 241, 0.26);     /* גבול של כפתור או בחירה כהים */
  --accent: #e0263c;         /* אדום */
  --accent-ink: #ffffff;
  --accent-bright: #ff4a5e;  /* אדום לטקסט קטן על שחור */
  --accent-on-light: #c01a31;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --gutter: clamp(16px, 4.4vw, 64px);
  --max: 1320px;
  --radius: 18px;
}
* { box-sizing: border-box; }
html { background: var(--ink); scrollbar-color: #3a3a3a var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
@media (prefers-reduced-motion: no-preference) { html:not(.a11y-no-motion) { scroll-behavior: smooth; } }
::selection { background: var(--accent); color: var(--accent-ink); }
body { margin: 0; font-family: "Assistant", system-ui, sans-serif; color: var(--paper); background: var(--ink); line-height: 1.5; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
input { caret-color: var(--accent); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; inset-inline-start: 12px; top: -80px; z-index: 200; background: var(--paper); color: var(--ink); padding: 12px 18px; border-radius: 12px; font-weight: 600; }
.skip-link:focus { top: 12px; }
main:focus { outline: none; }

/* ---------- ניווט צף ---------- */
.nav { position: fixed; inset-inline: var(--gutter); top: 16px; z-index: 50; max-width: var(--max); margin-inline: auto; height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-inline: 22px 12px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-dark); transition: background-color 300ms ease, border-color 300ms ease, color 300ms ease; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.01em; }
.brand svg { width: 26px; height: 26px; }
.nav-links { display: flex; gap: 30px; font-size: 0.98rem; }
.nav-links a { opacity: 0.78; transition: opacity 160ms ease; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
@media (hover: hover) and (pointer: fine) { .nav-links a:hover { opacity: 1; } }

/* ---------- כפתורי גלולה עם עיגול חץ ---------- */
.pill { display: inline-flex; align-items: center; gap: 12px; height: 48px; padding-inline: 22px 6px; border-radius: 999px; font-size: 1rem; font-weight: 500; white-space: nowrap; transition: transform 160ms var(--ease-out), background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.pill:active { transform: scale(0.97); }
.pill .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; transition: transform 220ms var(--ease-out); }
.pill .dot svg { width: 16px; height: 16px; }
.pill-solid { background: var(--paper); color: var(--ink); }
.pill-solid .dot { background: var(--ink); color: var(--paper); }
.pill-red, .light .pill-red { background: var(--accent); color: var(--accent-ink); }
.pill-red .dot, .light .pill-red .dot { background: var(--accent-ink); color: var(--accent); }
@media (hover: hover) and (pointer: fine) { .pill-red:hover { background: #c81f34; } }
.pill-ghost { border: 1px solid rgba(255, 255, 255, 0.55); color: var(--paper); }
.pill-ghost .dot { background: var(--paper); color: var(--ink); }
.pill-sm { height: 40px; padding-inline: 18px; font-size: 0.95rem; }
.light .pill-ghost { border-color: rgba(11, 11, 11, 0.5); color: var(--ink); }
.light .pill-solid { background: var(--ink); color: var(--paper); }
.light .pill-solid .dot { background: var(--paper); color: var(--ink); }
.light .pill-ghost .dot { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) {
  .pill:hover .dot { transform: translateX(-3px); }
  .pill-ghost:hover { border-color: var(--paper); }
  .light .pill-ghost:hover { border-color: var(--ink); }
}

/* ---------- הבמה: פתיחה + מסע בחלקיקים ---------- */
.stage { position: relative; height: 420vh; }
.stage-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage-anchor { position: absolute; inset-inline: 0; top: 16%; height: 1px; pointer-events: none; }
#field { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }

.hero { position: absolute; inset-inline: var(--gutter); top: clamp(120px, 18vh, 176px); max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 32px 56px; align-items: start; will-change: transform, opacity; }
h1 { margin: 0; font-weight: 400; font-size: clamp(2.5rem, 1.1rem + 3.9vw, 4.4rem); line-height: 1.06; letter-spacing: -0.04em; }
h1 .l { display: block; overflow: hidden; padding-bottom: 0.08em; }
h1 .l > span { display: block; }
h1 .l1 { color: var(--gray-1); }
.hero-side { padding-top: 10px; }
.hero-side p { margin: 0 0 28px; font-size: clamp(1.06rem, 1rem + 0.3vw, 1.22rem); color: #d2d2cf; max-width: 36ch; line-height: 1.55; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.platforms { position: absolute; inset-inline: var(--gutter) max(var(--gutter), 96px); bottom: clamp(20px, 4vh, 40px); max-width: var(--max); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: #9a9a97; font-size: 1.05rem; will-change: opacity; }
.platforms .label { color: #82827e; font-size: 0.95rem; }
.platforms .names { display: flex; gap: clamp(24px, 5vw, 72px); font-weight: 600; letter-spacing: -0.01em; }

/* כיתובי המסע */
.story { position: absolute; inset-inline-start: var(--gutter); top: 50%; transform: translateY(-50%); width: min(42vw, 600px); pointer-events: none; }
.caption { position: absolute; inset-inline: 0; top: 0; transform: translateY(-50%); opacity: 0; transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); }
.caption.is-on { opacity: 1; transform: translateY(-50%); }
.caption.is-before { transform: translateY(calc(-50% + 18px)); }
.caption.is-after { transform: translateY(calc(-50% - 18px)); }
.caption .n { display: block; font-size: 0.95rem; color: var(--accent-bright); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.caption h3 { margin: 0; font-weight: 400; font-size: clamp(2rem, 1.1rem + 2.8vw, 3.6rem); line-height: 1.08; letter-spacing: -0.035em; }
.caption h3 .g { color: var(--gray-1); display: block; }

/* כרטיס "שיחה חיה" */
.live { position: absolute; inset-inline-end: max(var(--gutter), 92px); bottom: clamp(28px, 5vh, 48px); width: min(340px, 82vw); border-radius: 16px; color: var(--paper); padding: 16px 18px 18px; opacity: 0; transform: translateY(16px); transition: opacity 420ms var(--ease-out), transform 520ms var(--ease-out); }
.live.is-shown { opacity: 1; transform: translateY(0); }
.live-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 0.9rem; color: var(--gray-2); margin-bottom: 12px; }
.live-head .tag { display: inline-flex; align-items: center; gap: 8px; color: var(--paper); font-weight: 600; }
.live-head .tag i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.live-head time { font-variant-numeric: tabular-nums; }
.live-body { position: relative; min-height: 128px; }
.scene { position: absolute; inset: 0; opacity: 0; transition: opacity 360ms ease; }
.scene.is-on { opacity: 1; position: relative; }
.who { font-size: 0.8rem; color: var(--gray-2); margin-bottom: 2px; }
.said { font-size: 1.08rem; line-height: 1.4; margin: 0 0 10px; }
.said.agent { color: #d6d9de; }
.rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rows li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; background: var(--in-bg); box-shadow: inset 0 0 0 1px var(--in-line); font-size: 0.95rem; }
.rows li b { font-weight: 600; font-variant-numeric: tabular-nums; }
.rows li:first-child { box-shadow: inset 0 0 0 1px rgba(236, 238, 241, 0.6); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.82rem; background: var(--in-bg); box-shadow: inset 0 0 0 1px var(--in-line); color: #c3c8cf; }
.chip.hot { background: var(--accent); color: var(--accent-ink); }
.price { display: flex; align-items: baseline; gap: 10px; margin: 4px 0 10px; font-variant-numeric: tabular-nums; }
.price s { color: var(--gray-1); font-size: 1rem; }
.price strong { font-size: 1.9rem; font-weight: 500; letter-spacing: -0.02em; }
.note { font-size: 0.78rem; color: var(--gray-1); margin-top: 10px; }
.listen { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: var(--paper); }
.listen span.ic { width: 28px; height: 28px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; }
.listen svg { width: 12px; height: 12px; }

/* מחוון שלבים */
.steps { position: absolute; inset-inline-start: max(var(--gutter), 96px); bottom: clamp(24px, 5vh, 44px); display: flex; gap: 8px; opacity: 0; transition: opacity 300ms ease; }
.steps.is-shown { opacity: 1; }
.steps li { list-style: none; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-dark); color: #8d8d8b; font-size: 0.88rem; transition: color 240ms ease, border-color 240ms ease, background-color 240ms ease; }
.steps li.is-on { color: var(--ink); background: var(--paper); border-color: var(--paper); }
.steps li.is-done { color: #d8d8d5; }
.steps ol { display: flex; gap: 8px; margin: 0; padding: 0; }

/* ---------- חלק לבן: הקולות ---------- */
.light { background: var(--paper); color: var(--ink); }
.dark { background: var(--ink); color: var(--paper); }
/* זוהר אדום עדין בראש החלקים שהיו בהירים. מקום המרכז והחוזק משתנים בין חלקים, החוזק נשאר בין 0.08 ל-0.12 */
.glow { background: radial-gradient(60% 55% at var(--glow-at, 50% 0%), rgba(224, 38, 60, var(--glow-a, 0.11)), transparent 72%), var(--ink); }
/* ניגודיות גבוהה מכפתור הנגישות: בלי זוהר, רק שחור. הכפתור קובע את צבע הרקע, וכאן מבטלים את השכבה שמעליו */
html.a11y-contrast .glow { background-image: none !important; }
.voices { padding: clamp(96px, 12vw, 160px) var(--gutter) clamp(96px, 12vw, 150px); }
.wrap { max-width: var(--max); margin-inline: auto; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 56px; }
.sec-head h2 { margin: 0; font-weight: 400; font-size: clamp(2.2rem, 1.2rem + 3vw, 4rem); line-height: 1.06; letter-spacing: -0.035em; text-wrap: balance; }
.sec-head h2 .g { color: #84847f; display: block; }
.sec-head p { margin: 0; color: #52524f; font-size: 1.12rem; max-width: 40ch; }
.dark .sec-head h2 .g { color: var(--gray-1); }
.dark .sec-head p { color: #c3c8cf; }
.vgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.vcard { position: relative; text-align: start; border-radius: var(--radius); background: var(--ink-2); color: var(--paper); border: 1.5px solid rgba(236, 238, 241, 0.22); padding: 20px 20px 18px; min-height: 172px; display: flex; flex-direction: column; justify-content: space-between; gap: 18px; transition: background-color 220ms ease, border-color 220ms ease, transform 160ms var(--ease-out); }
.vcard.is-playing { border-color: var(--accent); }
.vcard:active { transform: scale(0.985); }
.vcard .top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.vcard .nm { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
.vcard .ds { display: block; font-size: 0.92rem; color: #b4b9c1; margin-top: 6px; line-height: 1.35; }
.vcard .play { width: 38px; height: 38px; border-radius: 50%; background: var(--paper); color: var(--ink); display: grid; place-items: center; flex: none; }
.vcard .play svg { width: 14px; height: 14px; }
.vcard .play .i-stop { display: none; }
.vcard.is-playing .play .i-stop { display: block; }
.vcard.is-playing .play .i-play { display: none; }
.vcard .wv { position: relative; height: 34px; direction: ltr; }
.vcard .wv svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.vcard .wv .idle path { fill: rgba(180, 185, 193, 0.5); }   /* צורת הגל בכסף */
.vcard .wv .played { clip-path: inset(0 calc(100% - var(--p, 0%)) 0 0); }
.vcard .wv .played path { fill: var(--paper); }
.vcard.is-playing { background: #1b1d21; }
@media (hover: hover) and (pointer: fine) { .vcard:not(.is-playing):hover { border-color: rgba(236, 238, 241, 0.5); } }
.vfoot { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; color: #b4b9c1; font-size: 0.98rem; }
.vfoot b { color: var(--paper); font-weight: 600; }

/* ---------- כפתור צף: פותח את העוזר ---------- */
.launcher { position: fixed; inset-inline-start: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(0, 0, 0, 0.55); opacity: 0; transform: scale(0.9); pointer-events: none; transition: transform 240ms var(--ease-out), opacity 200ms ease, background-color 200ms ease; }
.launcher.is-shown { opacity: 1; transform: scale(1); pointer-events: auto; }
.launcher.is-shown:active { transform: scale(0.94); }
.launcher svg { width: 28px; height: 28px; grid-area: 1 / 1; transition: opacity 180ms ease, transform 220ms var(--ease-out); }
.launcher .i-close { width: 22px; height: 22px; opacity: 0; transform: rotate(-45deg) scale(0.8); }
.launcher[aria-expanded="true"] .i-dots { opacity: 0; transform: scale(0.8); }
.launcher[aria-expanded="true"] .i-close { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) { .launcher:hover { background: #c81f34; } }

/* ---------- כניסה ----------
   אנימציה של CSS בלבד, שמתחילה בציור הראשון. הכותרת לא מחכה לסקריפט, ובלי סקריפט היא פשוט שם */
@keyframes rise-in { from { transform: translateY(105%); } }
@keyframes fade-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade-only-in { from { opacity: 0; } }
.rise { animation: rise-in 700ms var(--ease-out) var(--d, 0ms) both; }
.fade { animation: fade-in 550ms var(--ease-out) var(--d, 0ms) both; }
.fade-only { animation: fade-only-in 500ms ease var(--d, 0ms) both; }

/* שורה קטנה מתחת לכפתורי הוואטסאפ הראשיים */
.cta-note { margin: 14px 0 0; font-size: 0.92rem; color: #b9bdc4; }
.hero-side .cta-note { margin: 14px 0 0; font-size: 0.92rem; color: #b9bdc4; max-width: none; line-height: 1.4; }
.light .cta-note { color: #4d525a; }

/* תמליל משפט הפתיחה בחלק הקולות */
.vline { margin: 24px 0 0; color: #c3c8cf; font-size: 1.02rem; max-width: 80ch; }
.vline b { color: var(--paper); font-weight: 600; }

/* חלון העוזר נטען בלי לחסום. עד שהעיצוב שלו מגיע, הוא מוסתר */
.assist { position: fixed; visibility: hidden; }
.as-scrim { display: none; }

/* ---------- מובייל ---------- */
@media (max-width: 1100px) {
  .nav .pill-ghost { display: none; }   /* שישה קישורים בסרגל: מפנים להם מקום */
}
@media (max-width: 980px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; top: 104px; gap: 18px; }
  .hero-side p { margin-bottom: 20px; }
  .platforms .label { display: none; }
  /* מעל כפתור הנגישות הצף, ולא מתחתיו */
  .platforms { justify-content: center; inset-inline: var(--gutter); bottom: 92px; }
  .platforms .names { gap: 20px; font-size: 0.95rem; flex-wrap: wrap; justify-content: center; }
  .story { width: auto; inset-inline: var(--gutter); top: 21%; }
  .caption h3 { font-size: clamp(1.8rem, 1rem + 4vw, 2.6rem); }
  .live { inset-inline: var(--gutter); width: auto; bottom: 74px; }
  .steps { display: none; }
  /* בצד שמאל יושב כפתור הנגישות הצף, ולכן הכרטיס נעצר לפניו */
  .live { bottom: 24px; inset-inline-end: 88px; }
  .vgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sec-head { grid-template-columns: 1fr; margin-bottom: 36px; }
}
@media (max-width: 520px) {
  .nav { padding-inline: 16px 8px; height: 58px; }
  .nav .pill-ghost { display: none; }
  .hero-ctas .pill { width: 100%; justify-content: space-between; }
  .vgrid { grid-template-columns: 1fr; }
  .vcard { min-height: 0; }
  .live-body { min-height: 112px; }
}

/* הפחתת תנועה: גם מההגדרה של המערכת וגם מכפתור הנגישות בדף */
@media (prefers-reduced-motion: reduce) {
  .rise, .fade { animation: fade-only-in 200ms ease var(--d, 0ms) both; }
  .caption, .live, .scene { transition: opacity 150ms ease; }
  .caption.is-before, .caption.is-after { transform: translateY(-50%); }
}
.a11y-no-motion .rise, .a11y-no-motion .fade, .a11y-no-motion .fade-only { animation: none; }
.a11y-no-motion .caption, .a11y-no-motion .live, .a11y-no-motion .scene { transition: opacity 150ms ease; }
.a11y-no-motion .caption.is-before, .a11y-no-motion .caption.is-after { transform: translateY(-50%); }
