/* ConvoOS — אתר השיווק הציבורי. עברית RTL. עיצוב פרימיום, מינימלי, שקט. */

@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/rubik-hebrew.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Rubik';
  font-style: normal;
  font-weight: 300 900;
  font-display: swap;
  src: url('/fonts/rubik-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Secular One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/secular-hebrew.woff2') format('woff2');
  unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --paper: #f7faf9;
  --surface: #ffffff;
  --line: #e3e1d8;
  --ink: #23261f;
  --ink-2: #5c6154;
  --ink-3: #8b9082;
  --green: #1f6f6b;
  --green-deep: #12433f;
  --citrus: #e8913c;
  --berry: #6b3fa0;
  --radius: 18px;
  font-size: 16px;
}

html { height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
  line-height: 1.55;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

a { color: inherit; }
img, svg { max-width: 100%; display: block; }
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--ink-2); }

h1, h2, h3, .brand-word { font-family: 'Secular One', 'Rubik', sans-serif; font-weight: 400; letter-spacing: 0.2px; }
h1 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 2.2vw, 2rem); line-height: 1.25; margin-bottom: 10px; }
h3 { font-size: 1.15rem; margin-bottom: 6px; }
p { margin: 0 0 12px; }

/* ---------- ניווט ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(247,250,249,0.9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand-mark-wrap { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-word { font-size: 1.25rem; color: var(--green-deep); }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { text-decoration: none; color: var(--ink-2); font-weight: 500; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; padding: 11px 22px; font-size: 0.95rem; font-weight: 600;
  text-decoration: none; cursor: pointer; border: 1px solid transparent;
  font-family: inherit; transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-deep); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-3); }
.btn-small { padding: 8px 16px; font-size: 0.88rem; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--green-deep); background: #e9f2ee;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero-cta-row { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.hero-utility { margin-top: 14px; font-size: 0.9rem; }
.hero-utility a { color: var(--green-deep); font-weight: 600; text-decoration: underline; }

/* מסגרת מוצר לדמו — ללא נתונים אמיתיים, ללא צילום מסך; ציור פשוט המרמז
   על שיחה + ציון + דשבורד, בלי טענות שאינן נכונות */
.product-frame {
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 20px; box-shadow: 0 24px 60px -30px rgba(18,67,63,0.35);
}
.product-frame .pf-row { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.product-frame .pf-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.pf-bubble { border-radius: 12px; padding: 10px 14px; margin-bottom: 8px; font-size: 0.85rem; max-width: 82%; }
.pf-bubble.customer { background: var(--paper); border: 1px solid var(--line); }
.pf-bubble.agent { background: #e9f2ee; margin-inline-start: auto; }
.pf-score { display: flex; gap: 10px; margin-top: 16px; }
.pf-score-tile { flex: 1; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.pf-score-tile b { display: block; font-size: 1.3rem; color: var(--green-deep); }
.pf-score-tile span { font-size: 0.72rem; color: var(--ink-3); }

/* ---------- סקציות כלליות ---------- */
section.block { padding: 56px 0; }
.section-head { max-width: 680px; margin-bottom: 32px; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px;
}
.card .num { font-family: 'Secular One', sans-serif; color: var(--green-deep); font-size: 1.4rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-inline-start: 46px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; inset-inline-start: 0; top: 0;
  width: 32px; height: 32px; border-radius: 50%; background: var(--green);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-family: 'Secular One', sans-serif; font-size: 0.95rem;
}

.tone-alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.solutions-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .solutions-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .solutions-grid { grid-template-columns: 1fr; } }
.solution-card { text-decoration: none; color: inherit; display: block; }
.solution-card:hover { border-color: var(--ink-3); }

.security-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin-top: 8px; }
@media (max-width: 620px) { .security-list { grid-template-columns: 1fr; } }
.security-list li { display: flex; align-items: flex-start; gap: 10px; list-style: none; }
.security-list .chk { flex-shrink: 0; width: 20px; height: 20px; color: var(--green); margin-top: 2px; }

.final-cta { text-align: center; padding: 64px 0; }

footer.site-footer-marketing {
  border-top: 1px solid var(--line); padding: 32px 0; color: var(--ink-3); font-size: 0.85rem;
}
.footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-links { display: flex; gap: 16px; }
.footer-links a { text-decoration: none; color: var(--ink-3); }
.footer-links a:hover { color: var(--ink-2); }

/* ---------- דפי משנה (Solutions / Platform / Security / About) ---------- */
.page-hero { padding: 48px 0 8px; }
.example-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; margin: 16px 0 0; }
@media (max-width: 620px) { .example-list { grid-template-columns: 1fr; } }
.example-list li { list-style: none; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- טופס Book a Private Demo ---------- */
.demo-form { max-width: 640px; margin: 0 auto; }
.demo-form label { display: block; margin-bottom: 16px; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; }
.demo-form input, .demo-form select, .demo-form textarea {
  width: 100%; margin-top: 6px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--paper); color: var(--ink);
  font-size: 1rem; font-family: inherit;
}
.demo-form input:focus, .demo-form select:focus, .demo-form textarea:focus {
  outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(31,111,107,0.15);
}
.demo-form .row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 560px) { .demo-form .row-2 { grid-template-columns: 1fr; } }
.form-error { color: #b3403a; margin-top: 8px; font-size: 0.9rem; }
.form-error.hidden, .demo-confirm.hidden, .demo-form.hidden { display: none; }
.demo-confirm { max-width: 560px; margin: 0 auto; text-align: center; }
.demo-confirm .chk-big { width: 56px; height: 56px; color: var(--green); margin: 0 auto 16px; }

/* טקסטים דו-כיווניים (טלפון/אימייל) תמיד LTR בתוך עמוד RTL */
.ltr { direction: ltr; unicode-bidi: isolate; text-align: right; }

/* ---------- Demo reel (לולאת ה-hero + מודאל הסקירה) ---------- */
/* אין קובץ וידאו: הרצף מונפש ב-DOM. ר' public/reel.js */

.reel-stage {
  position: relative; min-height: 300px;
  display: flex; flex-direction: column; gap: 12px;
}
.reel-label {
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-3);
}

/* אנימציות כניסה — מגודרות ב-no-preference יחד עם המצב ההתחלתי המוסתר.
   בלי הגידור הזה, מי שביקש פחות תנועה היה רואה אלמנטים בלתי-נראים לאורך
   כל ה-delay שלהם (opacity:0 בלי אנימציה שתחזיר אותם). */
@media (prefers-reduced-motion: no-preference) {
  .reel-in { opacity: 0; animation: reel-rise 0.5s ease forwards; animation-delay: var(--d, 0s); }
  @keyframes reel-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
  .reel-bar > i { width: 0; animation: reel-grow 0.9s cubic-bezier(.2,.7,.3,1) forwards; animation-delay: var(--d, 0s); }
  @keyframes reel-grow { to { width: var(--w); } }
  .reel-ring-arc { animation: reel-arc 1.1s cubic-bezier(.2,.7,.3,1) forwards; }
  @keyframes reel-arc { from { stroke-dashoffset: 327; } to { stroke-dashoffset: 78.5; } }
}
@media (prefers-reduced-motion: reduce) {
  .reel-bar > i { width: var(--w); }
  .reel-ring-arc { stroke-dashoffset: 78.5; }
}

/* סצנה 1 — תרחיש */
.reel-card { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.reel-card-top { display: flex; gap: 8px; margin-bottom: 10px; }
.reel-chip {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.04em;
  background: #e9f2ee; color: var(--green-deep); padding: 4px 10px; border-radius: 999px;
}
.reel-chip-soft { background: #f0efe9; color: var(--ink-2); }
.reel-card-title { font-size: 1.05rem; margin-bottom: 4px; }
.reel-card-sub { font-size: 0.85rem; color: var(--ink-2); margin-bottom: 12px; }
.reel-objective {
  font-size: 0.82rem; color: var(--ink-2); border-inline-start: 3px solid var(--green);
  padding-inline-start: 10px; margin-bottom: 14px;
}
.reel-objective span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }
.reel-btn {
  display: inline-block; background: var(--green); color: #fff; font-weight: 600;
  font-size: 0.85rem; padding: 9px 18px; border-radius: 999px;
}

/* סצנה 2 — שיחה */
.reel-chat { display: flex; flex-direction: column; gap: 8px; }
.reel-bubble { border-radius: 12px; padding: 10px 14px; font-size: 0.85rem; max-width: 85%; line-height: 1.45; }
.reel-bubble.customer { background: var(--paper); border: 1px solid var(--line); }
.reel-bubble.agent { background: #e9f2ee; margin-inline-start: auto; }

/* סצנה 3 — ציונים */
.reel-scores { display: flex; flex-direction: column; gap: 10px; }
.reel-score-row { display: grid; grid-template-columns: 1fr 90px 32px; align-items: center; gap: 10px; }
.reel-score-label { font-size: 0.82rem; color: var(--ink-2); }
.reel-bar { display: block; height: 7px; background: #eceae2; border-radius: 999px; overflow: hidden; }
.reel-bar > i { display: block; height: 100%; background: var(--green); border-radius: 999px; }
.reel-score-num { font-weight: 700; color: var(--green-deep); text-align: end; font-variant-numeric: tabular-nums; }
.reel-next {
  margin-top: 6px; font-size: 0.82rem; color: var(--ink-2);
  background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px;
}
.reel-next span { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-3); }

/* סצנה 4 — דשבורד מנהל */
.reel-dash { display: grid; grid-template-columns: 128px 1fr; gap: 18px; align-items: center; }
@media (max-width: 480px) { .reel-dash { grid-template-columns: 1fr; } }
.reel-ring { position: relative; width: 128px; height: 128px; }
.reel-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.reel-ring-track { fill: none; stroke: #eceae2; stroke-width: 10; }
.reel-ring-arc {
  fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 78.5;
}
.reel-ring-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.reel-ring-center b { display: block; font-size: 1.6rem; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.reel-ring-center b::after { content: '%'; font-size: 0.9rem; }
.reel-ring-center span { font-size: 0.68rem; color: var(--ink-3); }
.reel-agents { display: flex; flex-direction: column; gap: 8px; }
.reel-agent {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px;
}
.reel-agent-name { font-size: 0.85rem; }
.reel-tag { font-size: 0.7rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.reel-tag.ok { background: #e4f0e6; color: #2e7d46; }
.reel-tag.mid { background: #f7eeda; color: #8a6414; }
.reel-tag.low { background: #f7e4e2; color: #a33d37; }
.reel-illustrative { margin-top: 10px; font-size: 0.68rem; color: var(--ink-3); text-align: center; }

/* ---------- מודאל הסקירה ---------- */
.video-modal {
  position: fixed; inset: 0; z-index: 60; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(20, 24, 20, 0.55);
}
.video-modal.open { display: flex; }
.video-modal-inner {
  background: var(--surface); border-radius: 20px; max-width: 720px; width: 100%;
  padding: 26px; position: relative; box-shadow: 0 30px 80px -30px rgba(0,0,0,0.5);
}
.video-modal-close {
  position: absolute; top: 14px; inset-inline-end: 14px;
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--ink-2);
}
.video-modal-close:hover { color: var(--ink); }
.reel-caption {
  margin-top: 16px; text-align: center; font-family: 'Secular One', sans-serif;
  font-size: 1.05rem; color: var(--green-deep); min-height: 1.6em;
}
.reel-dots { display: flex; gap: 6px; justify-content: center; margin-top: 12px; }
.reel-dots span { width: 7px; height: 7px; border-radius: 999px; background: #ddd9cf; transition: background 0.3s; }
.reel-dots span.on { background: var(--green); }
.video-modal-foot { margin-top: 18px; text-align: center; }

/* ---------- כפתור החלפת שפה ---------- */
.lang-toggle {
  background: transparent; border: 1px solid var(--line); color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-size: 0.85rem; font-weight: 600;
  font-family: inherit; cursor: pointer; line-height: 1.2;
  transition: color 0.12s, border-color 0.12s;
}
.lang-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
.lang-toggle:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
