/* ג'וס פלאס — סטודיו אימון מכירות. עיצוב אורגני חם, עברית 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;
}
@font-face {
  font-family: 'Secular One';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/secular-latin.woff2') format('woff2');
}

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

:root {
  --paper: #f6f1e7;          /* רקע קרם חם */
  --paper-2: #eee7d3;
  --surface: #fffdf8;        /* כרטיסים */
  --line: #e2d8c3;
  --ink: #26301f;            /* ירוק-דיו כהה */
  --ink-2: #5d6a55;
  --ink-3: #949c88;
  --green: #2f6b3f;          /* ירוק עלה — צבע המותג הראשי */
  --green-deep: #23522f;
  --lime: #9bbf3b;
  --citrus: #e8842c;         /* תפוז */
  --berry: #8e3b6b;          /* פרי יער */
  --good: #2e7d46;
  --warn: #b97d1e;
  --bad: #b3403a;
  --bad-bg: #f9e9e4;
  --radius: 20px;
  font-size: 16px;
}

html { height: 100%; }
body {
  min-height: 100%;
  color: var(--ink);
  font-family: 'Rubik', 'Segoe UI', Arial, sans-serif;
  background:
    radial-gradient(1100px 500px at 85% -10%, rgba(155,191,59,0.14), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(232,132,44,0.10), transparent 60%),
    radial-gradient(700px 400px at 110% 90%, rgba(142,59,107,0.08), transparent 60%),
    var(--paper);
  background-attachment: fixed;
}

main { max-width: 1080px; margin: 0 auto; padding: 28px 18px 40px; }
.hidden { display: none !important; }
.muted { color: var(--ink-2); }
.small-text { font-size: 0.85rem; }
.error { color: var(--bad); margin-top: 10px; }
.gap-top { margin-top: 22px; }

h1, h2, .level-name, .score-value, .score-big, .timer, .hero-title {
  font-family: 'Secular One', 'Rubik', sans-serif;
  font-weight: 400;
  letter-spacing: 0.2px;
}
h1 { font-size: 1.6rem; margin-bottom: 10px; }
/* מסכי האפליקציה משתמשים ב-h2 (כותרת h1 יחידה בעמוד — תקן SEO), אך נראים כמו h1 */
h2.page-title, h2.hero-title { font-size: 1.6rem; margin-bottom: 10px; }
.page-title { display: flex; align-items: center; gap: 10px; }
.card-title { font-size: 1.15rem; margin-bottom: 14px; color: var(--green-deep); }
.kicker {
  color: var(--ink-3); font-size: 0.75rem; letter-spacing: 0.12em;
  text-transform: uppercase; margin-bottom: 4px;
}

/* אייקונים */
.ic { width: 19px; height: 19px; vertical-align: -4px; flex-shrink: 0; }
.ic.big { width: 26px; height: 26px; }

/* ---------- סרגל עליון ---------- */
#topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 26px;
  background: rgba(255,253,248,0.85);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { width: 40px; height: 40px; }
.brand-text { line-height: 1.15; }
.brand-text strong { font-family: 'Secular One', sans-serif; font-weight: 400; font-size: 1.15rem; color: var(--green-deep); display: block; }
.brand-text span { font-size: 0.72rem; color: var(--ink-3); letter-spacing: 0.08em; }
.topbar-left { display: flex; align-items: center; gap: 12px; }
.who { font-weight: 500; color: var(--ink-2); }

/* ---------- כרטיסים ---------- */
.screen { animation: rise 0.3s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; } }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  box-shadow: 0 1px 0 rgba(38,48,31,0.03), 0 12px 28px -20px rgba(38,48,31,0.25);
}
.card.narrow { max-width: 480px; margin: 36px auto; }
.center-card { text-align: center; }
.home-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; align-items: start; }
@media (max-width: 880px) { .home-grid { grid-template-columns: 1fr; } }
/* בלי זה, פריט grid/flex לא מתכווץ מתחת לרוחב התוכן שלו (min-width:auto), ומסלול
   הדרגות הרחב "מותח" את כל העמוד במובייל במקום לגלול בתוך עצמו. */
.home-grid > *, .login-wrap > *, .landing-hero > *, .pricing-cards > * { min-width: 0; }

/* ---------- טפסים וכפתורים ---------- */
label { display: block; margin-bottom: 14px; color: var(--ink-2); font-size: 0.9rem; font-weight: 500; }
input {
  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;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(47,107,63,0.15); }
input:disabled { opacity: 0.5; }

button {
  border: none; border-radius: 999px;
  padding: 11px 22px; font-size: 0.97rem;
  cursor: pointer; font-family: inherit; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s;
}
button:active { transform: translateY(1px); }
button.primary {
  background: var(--green); color: #fdfbf3;
  box-shadow: 0 6px 14px -8px rgba(47,107,63,0.7);
}
button.primary:hover { background: var(--green-deep); }
button.big { padding: 14px 28px; font-size: 1.05rem; }
button.secondary {
  background: var(--paper-2); color: var(--green-deep);
  border: 1px solid var(--line);
}
button.secondary:hover { background: #e6ddc4; }
button.ghost { background: transparent; color: var(--ink-2); border: 1px solid var(--line); }
button.ghost:hover { color: var(--ink); border-color: var(--ink-3); }
button.danger { background: var(--bad); color: #fff5f0; box-shadow: 0 6px 14px -8px rgba(179,64,58,0.6); }
button.danger:hover { background: #99332e; }
button.small { padding: 7px 14px; font-size: 0.85rem; }
button.wide { width: 100%; }
button:disabled { opacity: 0.45; cursor: default; }
.actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.actions.center { justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600;
  background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line);
}
.badge.live { color: var(--good); border-color: rgba(46,125,70,0.4); background: #eaf3ea; }
.badge.demo { color: var(--warn); border-color: rgba(185,125,30,0.4); background: #f8efdc; }
.badge.pass { color: var(--good); border-color: rgba(46,125,70,0.4); background: #eaf3ea; }
.badge.fail { color: var(--bad); border-color: rgba(179,64,58,0.35); background: var(--bad-bg); }
.badge.deal { color: var(--citrus); border-color: rgba(232,132,44,0.4); background: #fbeedd; margin-top: 8px; }
.badge.cost-badge { color: var(--ink-2); border-color: var(--line); background: var(--paper-2); font-variant-numeric: tabular-nums; }

/* ---------- התחברות ---------- */
.login-wrap {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 40px;
  align-items: center; min-height: 78vh; max-width: 940px; margin: 0 auto;
}
@media (max-width: 820px) { .login-wrap { grid-template-columns: 1fr; padding-top: 30px; } }
.login-hero { text-align: center; }
/* height:auto חובה: hero-photo.webp נושא width/height="640" ב-HTML (למניעת CLS),
   ובלי height:auto כאן הדפדפן משתמש בגובה 640 הגולמי מה-attribute במקום לקנוס
   אותו יחסית לרוחב המוגבל — הופך את העיגול לאליפסה מתוחה (320×640 בפועל). */
.hero-art { width: min(320px, 80%); height: auto; margin-bottom: 6px; }
.hero-title { font-size: 2.6rem; color: var(--green-deep); }
.hero-sub { font-size: 1.1rem; color: var(--ink-2); margin: 6px 0 10px; }
.hero-line { font-size: 0.88rem; color: var(--ink-3); }
.login-card h2 { margin-bottom: 18px; color: var(--green-deep); }

/* ---------- מסך בית ---------- */
.level-head { display: flex; justify-content: space-between; align-items: start; margin-bottom: 20px; gap: 12px; }
.level-name { font-size: 1.7rem; color: var(--green-deep); }
.score-tile {
  text-align: center; background: var(--paper-2);
  border-radius: 16px; padding: 10px 20px; border: 1px solid var(--line);
}
.score-value { font-size: 1.7rem; color: var(--citrus); }
.score-label { color: var(--ink-3); font-size: 0.72rem; letter-spacing: 0.08em; }

/* מסלול הדרגות — גפן עם פירות */
.level-path {
  display: flex; align-items: flex-start; gap: 0;
  margin: 6px 0 22px; overflow-x: auto; padding: 6px 2px 2px;
}
.level-node { display: flex; flex-direction: column; align-items: center; min-width: 74px; position: relative; }
.level-node::before {
  content: ''; position: absolute; top: 15px; right: calc(50% + 17px); width: calc(100% - 34px); height: 0;
  border-top: 2px dotted var(--line);
}
.level-node:first-child::before { display: none; }
.level-dot {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.82rem; color: var(--ink-3);
  position: relative; z-index: 1;
}
.level-node.done .level-dot { background: var(--green); border-color: var(--green); color: #fdfbf3; }
.level-node.done .level-dot .ic { width: 15px; height: 15px; }
.level-node.current .level-dot {
  background: var(--citrus); border-color: var(--citrus); color: #fff;
  transform: scale(1.22);
  box-shadow: 0 0 0 5px rgba(232,132,44,0.18);
}
.level-node-label { font-size: 0.7rem; color: var(--ink-2); margin-top: 8px; text-align: center; max-width: 76px; }
.level-node.current .level-node-label { color: var(--citrus); font-weight: 700; }

.goal-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; margin-bottom: 8px;
}
.goal-text { font-weight: 500; }
.progress-track { height: 9px; background: var(--paper-2); border-radius: 999px; margin: 12px 0 7px; overflow: hidden; border: 1px solid var(--line); }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--lime), var(--green)); border-radius: 999px; width: 0; transition: width 0.7s ease; }

/* היסטוריה והישגים */
.history-list, .events-list { display: flex; flex-direction: column; gap: 8px; }
.history-item {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; font-size: 0.9rem;
}
.history-item .muted { font-size: 0.78rem; }
.history-score { font-family: 'Secular One', sans-serif; font-size: 1.15rem; }
.history-score.pass { color: var(--good); }
.history-score.fail { color: var(--bad); }
.event-item { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 0.87rem; padding: 4px 2px; }
.event-item .ic { color: var(--citrus); width: 17px; height: 17px; }
.empty { color: var(--ink-3); font-size: 0.87rem; padding: 12px 0; }

/* ---------- תדריך ושיחה ---------- */
.brief-customer { display: flex; align-items: center; gap: 15px; margin: 20px 0; }
.avatar { width: 62px; height: 62px; flex-shrink: 0; }
.avatar svg { width: 100%; height: 100%; }
.avatar.talking { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.customer-name { font-size: 1.25rem; font-weight: 700; }

.call-card { max-width: 760px; margin: 0 auto; }
.call-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.call-head .brief-customer { margin: 0; }
.timer { font-size: 1.5rem; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.timer.warning { color: var(--warn); }

.transcript {
  background: var(--paper);
  border: 1px solid var(--line); border-radius: 16px;
  padding: 16px; height: 330px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 10px;
}
.transcript.static { height: auto; max-height: 420px; }
.bubble { max-width: 82%; padding: 10px 15px; border-radius: 16px; font-size: 0.95rem; line-height: 1.5; }
.bubble.agent { align-self: flex-start; background: var(--green); color: #f2f7ee; border-end-start-radius: 5px; }
.bubble.customer { align-self: flex-end; background: var(--surface); border: 1px solid var(--line); border-end-end-radius: 5px; }
.bubble .who { display: block; font-size: 0.68rem; opacity: 0.7; margin-bottom: 2px; letter-spacing: 0.04em; }

.demo-input { display: flex; gap: 8px; margin-top: 14px; }
.demo-input input { flex: 1; margin: 0; }
/* בועת "מקליד..." בזמן שמנוע הניסוח עובד */
.bubble.typing .dots { display: inline-flex; gap: 4px; padding: 2px 2px 0; }
.bubble.typing .dots i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3);
  animation: blink 1.2s infinite;
}
.bubble.typing .dots i:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing .dots i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

/* כפתורי השלמת הזמנה — מופיעים כשהלקוח בשלב קנייה */
.completion-actions { margin-top: 12px; padding: 12px; background: var(--paper-2); border-radius: 14px; border: 1px dashed var(--line); }
.completion-btns { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }

.brain-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.brain-row select {
  padding: 5px 10px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2); font-family: inherit; font-size: 0.85rem;
}
.mic { background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); padding: 10px 16px; }
.mic.on { background: var(--bad); border-color: var(--bad); color: #fff; animation: micpulse 1.2s infinite; }
@keyframes micpulse { 0%,100% { box-shadow: 0 0 0 0 rgba(179,64,58,0.35); } 50% { box-shadow: 0 0 0 9px rgba(179,64,58,0); } }
.send { padding: 10px 18px; }

/* ---------- עיבוד ---------- */
.spinner {
  width: 46px; height: 46px; margin: 12px auto 22px; border-radius: 50%;
  border: 4px solid var(--paper-2); border-top-color: var(--green);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- משוב ---------- */
.levelup {
  background: linear-gradient(105deg, var(--green) 0%, var(--lime) 130%);
  color: #fdfbf3; font-weight: 700; font-size: 1.05rem; text-align: center;
  border-radius: var(--radius); padding: 17px; margin-bottom: 20px;
  box-shadow: 0 10px 24px -14px rgba(47,107,63,0.7);
}
.feedback-head { display: flex; align-items: center; gap: 26px; margin-bottom: 22px; }
.gauge-wrap { position: relative; width: 130px; height: 130px; flex-shrink: 0; }
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: var(--paper-2); stroke-width: 10; }
.gauge-arc {
  fill: none; stroke: var(--green); stroke-width: 10; stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: 326.7;
  transition: stroke-dashoffset 1s ease, stroke 0.3s;
}
.gauge-center {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
}
.score-big { font-size: 2.5rem; line-height: 1; }
.fb-badges { display: flex; flex-direction: column; align-items: flex-start; }

.dims { display: flex; flex-direction: column; gap: 13px; margin-bottom: 16px; }
.dim-row { display: grid; grid-template-columns: 150px 1fr 40px; align-items: center; gap: 12px; font-size: 0.88rem; }
.dim-label { color: var(--ink-2); font-weight: 500; }
.dim-track { height: 9px; background: var(--paper-2); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.dim-fill { height: 100%; background: var(--green); border-radius: 999px; transition: width 0.8s ease; }
.dim-score { font-family: 'Secular One', sans-serif; text-align: left; color: var(--ink-2); }

.redflag {
  display: flex; align-items: center; gap: 9px;
  background: var(--bad-bg); border: 1px solid rgba(179,64,58,0.35); color: var(--bad);
  border-radius: 12px; padding: 11px 14px; margin-top: 8px; font-size: 0.88rem; font-weight: 500;
}
.redflag .ic { width: 17px; height: 17px; }
.coach-box {
  background: var(--paper); border-inline-start: 4px solid var(--citrus);
  border-radius: 12px; padding: 13px 17px; margin-bottom: 16px; font-weight: 600;
}
.good-title, .bad-title { display: flex; align-items: center; gap: 7px; font-size: 0.95rem; margin: 14px 0 7px; }
.good-title { color: var(--good); }
.bad-title { color: var(--warn); }
#screen-feedback ul { padding-inline-start: 20px; color: var(--ink-2); font-size: 0.9rem; }
#screen-feedback li { margin-bottom: 5px; }
.quote {
  border-inline-start: 3px solid var(--line); padding: 7px 13px; margin: 9px 0;
  color: var(--ink-2); font-style: italic; font-size: 0.88rem;
}
.quote.strong-q { border-color: var(--good); }
.quote.weak-q { border-color: var(--warn); }
.quote .q-label { font-style: normal; font-size: 0.72rem; color: var(--ink-3); display: block; }
.transcript-details { margin-top: 18px; }
.transcript-details summary { cursor: pointer; color: var(--ink-2); font-weight: 500; }

/* ---------- מנהל ---------- */
.admin-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; flex-wrap: wrap; gap: 8px; }
.new-user-row { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.new-user-row input { width: auto; flex: 1; min-width: 140px; margin: 0; }
.new-user-row select, .plan-select {
  padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink); font-family: inherit; font-size: 0.9rem;
}
.plan-cell { white-space: nowrap; }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th { text-align: right; color: var(--ink-3); font-weight: 600; padding: 9px 10px; border-bottom: 2px solid var(--line); font-size: 0.8rem; letter-spacing: 0.03em; }
.table td { padding: 10px; border-bottom: 1px solid var(--line); }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover { background: var(--paper); }

/* ---------- לימוד ובוחן ---------- */
.study-product {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 18px; margin: 12px 0;
  border-inline-start: 4px solid var(--lime);
}
.study-product:nth-child(2n) { border-inline-start-color: var(--citrus); }
.study-product:nth-child(3n) { border-inline-start-color: var(--berry); }
.study-product h3 { color: var(--green-deep); margin-bottom: 7px; font-family: 'Secular One', sans-serif; font-weight: 400; }
.study-product p { color: var(--ink-2); font-size: 0.9rem; margin-bottom: 5px; line-height: 1.55; }
.study-product .no-say { color: var(--bad); }
.quiz-q {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 16px; padding: 15px 18px; margin-bottom: 12px;
}
.quiz-q .q-text { font-weight: 600; margin-bottom: 10px; }
.quiz-q label { display: flex; align-items: center; gap: 9px; margin-bottom: 7px; color: var(--ink-2); cursor: pointer; font-weight: 400; }
.quiz-q input[type=radio] { width: auto; margin: 0; accent-color: var(--green); }
.quiz-q.correct { border-color: var(--good); background: #f0f6ee; }
.quiz-q.wrong { border-color: var(--bad); background: var(--bad-bg); }

/* ---------- טוסט ---------- */
#toast {
  position: fixed; bottom: 26px; right: 50%; transform: translateX(50%) translateY(20px);
  background: var(--ink); color: var(--paper);
  padding: 13px 24px; border-radius: 999px; font-weight: 600; opacity: 0;
  transition: all 0.25s ease; pointer-events: none; z-index: 99; max-width: 90vw;
  box-shadow: 0 14px 30px -12px rgba(38,48,31,0.5);
}
#toast.show { opacity: 1; transform: translateX(50%) translateY(0); }
#toast.good { background: var(--good); color: #f0f7ee; }
#toast.warn { background: var(--warn); color: #fdf6e8; }
#toast.bad { background: var(--bad); color: #fdefe9; }

/* ---------- פוטר ---------- */
.site-footer {
  text-align: center; color: var(--ink-3); font-size: 0.78rem;
  padding: 18px 0 26px; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.site-footer .ic { width: 15px; height: 15px; }

/* ---------- דף נחיתה ---------- */
.landing-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 6px 2px 18px;
}
.landing-top-actions { display: flex; gap: 10px; }
.landing-hero {
  display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 30px; align-items: center;
  padding: 26px 2px 34px;
}
.big-title { font-size: 2.1rem; line-height: 1.25; margin-bottom: 14px; color: var(--green-deep); }
.hero-sub2 { color: var(--ink-2); font-size: 1.08rem; line-height: 1.65; margin-bottom: 22px; max-width: 34rem; }
.landing-cta-row { margin-bottom: 10px; }
.benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.benefit-card h3 { margin: 10px 0 8px; color: var(--green-deep); }
.benefit-card .ic.big { width: 30px; height: 30px; color: var(--green); }
.landing-social { text-align: center; padding: 26px 0 8px; font-size: 0.9rem; }
@media (max-width: 880px) {
  .landing-hero { grid-template-columns: 1fr; text-align: center; }
  .landing-hero .hero-art { max-width: 240px; margin: 0 auto; }
  .landing-cta-row button { width: 100%; }
  .benefit-grid { grid-template-columns: 1fr; }
  .big-title { font-size: 1.6rem; }
}

/* ---------- באנרי החנות (GIF מונפש, קליק על כולו → אתר הזכיין) ---------- */
/* כל הבאנר הוא תמונת GIF מונפשת אחת. העיצוב, הצבעים, המחירים וה-CTA צרובים
   בתוך ה-GIF (נוצר ממסגרות SVG ב-scripts/build-banners → ffmpeg). ה-CSS כאן
   רק ממסגר את התמונה: פינות מעוגלות, צל, ומצב hover. line-height:0 מונע רווח
   מתחת ל-img (baseline של inline). התמונה תמיד ברוחב מלא של המכל. */
.shop-banner, .shop-card {
  display: block; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 16px 34px -20px rgba(35,82,47,0.75);
  line-height: 0; text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.shop-banner { margin: 34px 0 6px; }
.shop-banner img, .shop-card img { width: 100%; height: auto; display: block; }
.shop-banner:hover, .shop-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 42px -20px rgba(35,82,47,0.9);
}
.shop-banner:focus-visible, .shop-card:focus-visible {
  outline: 3px solid var(--green); outline-offset: 3px;
}
/* הכרטיס הצידי (portrait 1:2, "סקייסקרייפר") — מוגבל ברוחב וממורכז, כדי
   שייקרא כרכיב עזר קטן ליד התוכן ולא כפוסטר ענק ששולט במסך. */
.shop-card { width: 100%; max-width: 220px; margin-inline: auto; }
.landing-hero-side { display: grid; gap: 18px; }
.home-side { display: grid; gap: 20px; align-items: start; }
/* ילדי grid צריכים min-width: 0, אחרת תוכן רחב מותח את העמוד במקום לגלול בתוכו */
.landing-hero-side > *, .home-side > *, .shop-card { min-width: 0; }
/* הבאנר הצידי מוסתר זמנית (בקשת הבעלים 2026-07-23) — הבאנר הרחב בדף הנחיתה
   נשאר. ה-JS (mountShopCards ב-app.js) ממשיך למלא את .shop-slot כרגיל; זו
   הסתרה ב-CSS בלבד כדי שהחזרה תהיה שינוי שורה אחת. */
.shop-slot { display: none; }
.footer-shop { color: var(--green); text-decoration: none; border-bottom: 1px solid rgba(47,107,63,0.35); }
.footer-shop:hover { color: var(--green-deep); }
@media (max-width: 880px) {
  .shop-banner { margin-top: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  .shop-banner:hover, .shop-card:hover { transform: none; }
}

/* ---------- התחברות / הרשמה ---------- */
.auth-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--paper-2); border-radius: 999px; padding: 4px; }
.auth-tab {
  flex: 1; border: none; background: transparent; padding: 9px 10px;
  border-radius: 999px; cursor: pointer; font-family: inherit; font-size: 0.95rem; color: var(--ink-2);
}
.auth-tab.active { background: var(--surface); color: var(--green-deep); font-weight: 600; box-shadow: 0 1px 4px rgba(38,48,31,0.12); }
.auth-divider {
  display: flex; align-items: center; gap: 10px; color: var(--ink-3);
  margin: 16px 0 12px; font-size: 0.85rem;
}
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.google-btn-wrap { display: flex; justify-content: center; min-height: 0; }
.invite-banner {
  background: #eaf3ea; border: 1px solid rgba(46,125,70,0.35); color: var(--good);
  border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; font-size: 0.9rem;
}

/* ---------- תג תוכנית ומד ניצול ---------- */
.plan-badge { cursor: pointer; border-style: solid; }
.plan-badge.free { color: var(--ink-2); background: var(--paper-2); border-color: var(--line); }
.plan-badge.pro { color: var(--green-deep); background: #eaf3ea; border-color: rgba(46,125,70,0.4); }
.plan-badge.business { color: var(--berry); background: #f5e8f0; border-color: rgba(142,59,107,0.35); }
.plan-usage {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 14px; padding: 10px 14px; border: 1px dashed var(--line); border-radius: 12px;
  font-size: 0.9rem; color: var(--ink-2);
}
.link-btn {
  background: none; border: none; color: var(--green); cursor: pointer;
  font-family: inherit; font-size: 0.9rem; text-decoration: underline; padding: 0;
}
.link-btn:hover { color: var(--green-deep); }

/* ---------- דף מחירים ---------- */
.pricing-head { text-align: center; padding: 10px 0 26px; }
.pricing-head .hero-title { font-size: 1.7rem; margin-bottom: 8px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: start; }
.pricing-card { position: relative; text-align: center; padding-top: 34px; }
.pricing-card.highlight {
  border-color: var(--green); border-width: 2px;
  box-shadow: 0 14px 34px -18px rgba(47,107,63,0.45);
  transform: translateY(-6px);
}
.ribbon {
  position: absolute; top: -13px; right: 50%; transform: translateX(50%);
  background: var(--green); color: #fdfbf3; font-size: 0.78rem; font-weight: 600;
  padding: 5px 16px; border-radius: 999px; letter-spacing: 0.03em;
}
.price-row { display: flex; align-items: baseline; justify-content: center; gap: 6px; margin: 10px 0 2px; }
.price { font-family: 'Secular One', sans-serif; font-size: 2.2rem; color: var(--green-deep); }
.price-per { font-size: 0.85rem; }
.tagline { margin-bottom: 6px; }
.anchor-line { color: var(--citrus); font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.feature-list { list-style: none; text-align: right; margin: 16px 0 18px; display: grid; gap: 9px; }
.feature-list .ic { width: 16px; height: 16px; color: var(--good); }
.current-plan { display: inline-block; color: var(--good); border-color: rgba(46,125,70,0.4); background: #eaf3ea; }
.cancel-note { margin-top: 10px; }
.paypal-slot { min-height: 0; }
.paypal-slot.active { min-height: 45px; margin-bottom: 8px; }
.faq-card { margin-top: 22px; }
.faq-card details { border-bottom: 1px solid var(--line); padding: 10px 2px; }
.faq-card details:last-of-type { border-bottom: none; }
.faq-card summary { cursor: pointer; font-weight: 500; }
.faq-card details p { padding: 10px 2px 4px; color: var(--ink-2); line-height: 1.6; }
@media (max-width: 880px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.highlight { transform: none; }
}

/* ---------- מסך חשבון ---------- */
.account-row {
  display: flex; justify-content: space-between; gap: 14px;
  padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 0.97rem;
}
.account-row:last-of-type { border-bottom: none; }
.warn-row { color: var(--warn); font-weight: 500; }
.danger-ghost { color: var(--bad); border-color: rgba(179,64,58,0.35); }
.danger-ghost:hover { color: var(--bad); border-color: var(--bad); }

/* ---------- צוות ---------- */
.invite-link {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  background: var(--paper-2); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 0.9rem;
}
.invite-link input {
  flex: 1; min-width: 220px; border: 1px solid var(--line); border-radius: 8px;
  padding: 7px 10px; font-family: inherit; font-size: 0.85rem; background: var(--surface);
}

/* ---------- משוב נעול (תוכנית חינם) ---------- */
.locked-box {
  border: 1px dashed var(--line); border-radius: 14px; text-align: center;
  padding: 22px 18px; margin: 14px 0; background: var(--paper-2);
}
.locked-box h3 { color: var(--green-deep); margin-bottom: 8px; }
.locked-box p { margin-bottom: 14px; }

/* ---------- חלונית שדרוג ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(38,48,31,0.45); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; padding: 18px;
}
.modal-card { max-width: 440px; width: 100%; text-align: center; animation: rise 0.25s ease; }

/* ==========================================================================
   מובייל ומצב אפליקציה (PWA) — iOS ו-Android
   מטרה: בגלישה מהנייד האתר מרגיש כמו אפליקציה אמיתית, לא כמו אתר מוקטן.
   ========================================================================== */

/* --- היגיינת מגע בכל הגדלים --- */
html {
  -webkit-text-size-adjust: 100%;      /* אייפון לא "יתקן" גדלי טקסט בסיבוב */
  text-size-adjust: 100%;
}
body {
  -webkit-tap-highlight-color: transparent;  /* בלי ריבוע כחול בלחיצה */
  overscroll-behavior-y: contain;            /* בלי pull-to-refresh בתוך האפליקציה */
}
button, .mic, .auth-tab, select, summary, .link-btn, tr.clickable {
  touch-action: manipulation;   /* מבטל השהיית 300ms וזום בהקשה כפולה */
}
.transcript, .table-scroll, .history-list {
  -webkit-overflow-scrolling: touch;  /* גלילת אינרציה כמו באפליקציה */
}

/* --- אזורים בטוחים (מגרעת/פס הבית באייפון) --- */
#topbar {
  padding-top: calc(10px + env(safe-area-inset-top));
  padding-inline: calc(26px + env(safe-area-inset-right)) calc(26px + env(safe-area-inset-left));
}
main {
  padding-inline: calc(18px + env(safe-area-inset-right)) calc(18px + env(safe-area-inset-left));
  padding-bottom: calc(40px + env(safe-area-inset-bottom));
}

/* --- טבלאות: גלילה אופקית במקום שבירת פריסה --- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .table { min-width: 620px; }

/* ==========================  עד 720px  ========================== */
@media (max-width: 720px) {
  :root { font-size: 15px; }
  main { padding-top: 18px; }

  /* סרגל עליון קומפקטי: הלוגו נשאר, הכיתוב המשני יורד */
  #topbar { padding-inline: calc(14px + env(safe-area-inset-right)) calc(14px + env(safe-area-inset-left)); gap: 8px; }
  .brand-mark { width: 34px; height: 34px; }
  .brand-text span { display: none; }
  .brand-text strong { font-size: 1rem; }
  .topbar-left { gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
  .who { display: none; }               /* השם כבר מופיע במסך הבית */
  .badge { font-size: 0.72rem; padding: 4px 9px; }

  .card { padding: 18px 15px; border-radius: 16px; }
  h1 { font-size: 1.35rem; }

  /* יעד מגע תקני (44px) לכל הכפתורים */
  button { min-height: 44px; padding: 12px 18px; }
  button.small { min-height: 38px; padding: 9px 14px; }
  .actions { gap: 8px; }
  .actions button { flex: 1 1 auto; }
  .actions.center button { width: 100%; }

  /* שדות קלט: 16px מונע זום אוטומטי של iOS בפוקוס */
  input, select, textarea { font-size: 16px; min-height: 44px; }

  /* מסך שיחה — הלב של השימוש בנייד */
  .call-head { gap: 10px; }
  .avatar { width: 48px; height: 48px; }
  .timer { font-size: 1.25rem; }
  .transcript { height: 46vh; padding: 12px; }
  .bubble { max-width: 88%; font-size: 0.92rem; }
  .demo-input { gap: 6px; }
  .demo-input input { min-width: 0; }
  .mic, .send { min-width: 48px; padding: 10px 12px; }
  .brain-row { justify-content: space-between; }
  .brain-row select { flex: 1; margin-inline-start: 8px; }
  .completion-btns button { flex: 1 1 100%; }

  /* משוב */
  .score-big { font-size: 2.1rem; }
  .fb-badges { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .dim-row { grid-template-columns: 96px 1fr 34px; gap: 8px; font-size: 0.82rem; }

  /* טפסים וניהול */
  .new-user-row { flex-direction: column; }
  .new-user-row input, .new-user-row select, .new-user-row button { width: 100%; }
  .auth-tab { font-size: 0.9rem; }
}

/* ==========================  עד 430px (רוב הטלפונים)  ========================== */
@media (max-width: 430px) {
  main { padding-top: 14px; }
  .card { padding: 15px 13px; }
  .card.narrow { margin: 16px auto; }
  .transcript { height: 44vh; }
  .hero-title { font-size: 2rem; }
  .big-title { font-size: 1.4rem; }
  .dim-row { grid-template-columns: 84px 1fr 30px; }
  .plan-cell { white-space: normal; }
}

/* ==========================  מצב אפליקציה מותקנת  ========================== */
@media (display-mode: standalone) {
  /* פתוח מהמסך הבית — אין סרגל דפדפן, אז נותנים לתוכן לנשום */
  body { user-select: none; }                    /* תחושת אפליקציה, לא דף */
  input, textarea, .transcript, .bubble { user-select: text; }  /* אבל טקסט עדיין ניתן להעתקה */
  #topbar { position: sticky; }
}

/* משתמשים שמעדיפים פחות תנועה */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- שאלות נפוצות (דף נחיתה) ---------- */
.faq-section { max-width: 780px; margin: 34px auto 6px; }
.faq-title { text-align: center; margin-bottom: 16px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 18px;
}
.faq-item summary {
  cursor: pointer; font-weight: 600; color: var(--green-deep);
  list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; color: var(--ink-3); font-size: 1.3rem; line-height: 1; flex-shrink: 0;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { margin-top: 10px; color: var(--ink-2); font-size: 0.92rem; line-height: 1.65; }
@media (max-width: 720px) {
  .faq-section { margin-top: 26px; }
  .faq-item { padding: 13px 15px; }
  .faq-item summary { min-height: 32px; }
}
