/* =========================================================
   Adwise – עיצוב משותף לכל העמודים
   צבעים: לשינוי צבע בכל האתר, משנים רק את המשתנים ב-:root
   ========================================================= */
:root {
  /* עיצוב "שזיף ואפור חם". לשינוי פונט: --font-head (כותרות) ו- --font (טקסט) */
  --navy: #3A1F4A;      /* שזיף כהה – כותרות ואלמנטים כהים */
  --blue: #4B2A5E;      /* שזיף – קישורים בטקסט (AA על אפור חם, 10.4:1) */
  --blue-dark: #2E1840; /* hover לקישורים */
  --primary: #4B2A5E;   /* שזיף – כפתור ראשי (טקסט לבן 12.9:1) */
  --primary-hover: #3B1F4B;
  --tonal: #EADFEC;     /* משטח טונאלי – כפתור משני, צ׳יפים, עיגולי אייקונים */
  --tonal-hover: #DFD0E3;
  --peach: #D8A7B1;     /* ורוד עתיק – גרפיקה ורקע אייקונים/צ׳יפים בלבד, לא כטקסט */
  --soft: #FBFAF8;      /* משטח כרטיסים / אזורים מודגשים */
  --cream: #F4F1EE;     /* אפור חם – רקע האתר */
  --white: #FFFFFF;
  --text: #2E2433;
  --muted: #5E5560;
  --line: #E7E1DB;      /* קווים עדינים בלבד */
  --field: #8C7F8E;     /* מסגרת שדות טופס (3:1) */
  --radius: 24px;
  --shadow: 0 1px 2px rgba(58,31,74,.05), 0 4px 16px rgba(58,31,74,.06);
  --container: 1180px;
  --font: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --font-head: "IBM Plex Sans Hebrew", "Segoe UI", Arial, sans-serif;
  --head-weight: 700;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body {
  margin: 0; font-family: var(--font); color: var(--text); background: var(--cream);
  font-size: 17.5px; line-height: 1.7; -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.22; margin: 0 0 .6em; font-weight: var(--head-weight); font-family: var(--font-head); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
ul { padding-inline-start: 1.2em; }

/* מיקוד גלוי לניווט במקלדת */
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -60px; background: var(--navy); color: #fff; padding: .6rem 1rem; border-radius: 8px; z-index: 100; }
.skip-link:focus { top: 1rem; color: #fff; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: 88px; }
.section--soft { background: var(--soft); border-radius: 40px; margin-inline: 12px; }
.section--tight { padding-block: 56px; }
@media (max-width: 640px) { .section { padding-block: 60px; } .section--tight { padding-block: 40px; } .section-head { margin-bottom: 32px; } .card { padding: 22px; } .page-hero { padding-block: 44px 40px; } }
.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.lead { font-size: 1.15rem; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue); font-size: .95rem; letter-spacing: .02em; margin-bottom: .8rem; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.6rem; min-height: 48px; border-radius: 999px; font: inherit; font-weight: 600; font-size: 1rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; box-shadow: var(--shadow); }
.btn-outline { background: var(--tonal); color: var(--navy); }
.btn-outline:hover { background: var(--tonal-hover); color: var(--navy); }
.btn-light { background: var(--soft); color: var(--navy); }
.btn-light:hover { background: var(--tonal); color: var(--navy); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- כותרת עליונה ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(244,241,238,.94); backdrop-filter: blur(8px); border-bottom: 1px solid transparent; }
.header-inner { display: flex; align-items: center; gap: 20px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--navy); font-family: var(--font-head); font-weight: var(--head-weight); font-size: 1.5rem; direction: ltr; }
.brand:hover { color: var(--navy); }
.brand-mark { width: 34px; height: 34px; flex: none; }
.main-nav { margin-inline-start: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; padding: .45rem .85rem; border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 500; font-size: .98rem; white-space: nowrap; }
.main-nav a:hover { background: var(--soft); color: var(--navy); }
.main-nav a[aria-current="page"] { background: var(--tonal); color: var(--navy); font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle { font: inherit; font-weight: 700; font-size: .9rem; background: var(--soft); border: 0; color: var(--navy); border-radius: 999px; padding: .5rem .85rem; cursor: pointer; min-width: 46px; }
.lang-toggle:hover { background: var(--tonal); }
.header-cta { padding: .6rem 1.1rem; white-space: nowrap; }
.menu-toggle { display: none; background: var(--soft); border: 0; border-radius: 50%; width: 44px; height: 44px; cursor: pointer; color: var(--navy); align-items: center; justify-content: center; }
.menu-toggle svg { width: 22px; height: 22px; }

@media (max-width: 1340px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; inset: 72px 0 auto 0; background: var(--soft); border-radius: 0 0 28px 28px; box-shadow: var(--shadow); display: none; max-height: calc(100vh - 72px); overflow-y: auto; }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 12px 24px 20px; gap: 2px; }
  .main-nav a { padding: .8rem .6rem; font-size: 1.05rem; }
  .header-actions { margin-inline-start: auto; }
  .main-nav .nav-cta-mobile { display: block; margin-top: 10px; }
}
.nav-cta-mobile { display: none; }
.nav-cta-mobile a.btn { color: #fff; display: flex; }
@media (max-width: 560px) {
  .header-cta { display: none; }
  .brand { font-size: 1.3rem; }
}

/* ---------- כרטיסים ורשתות ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card { background: var(--soft); border: 0; border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.section--soft .card { background: var(--cream); box-shadow: none; }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.icon { width: 52px; height: 52px; border-radius: 50%; background: var(--tonal); color: var(--blue); display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.icon svg { width: 26px; height: 26px; }
.card-link { font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; padding: .4rem .9rem; margin-inline-start: -.9rem; border-radius: 999px; }
.card-link:hover { background: var(--tonal); }
.grid > .card:nth-child(even) .icon { background: var(--peach); color: var(--navy); }
.card-link::after { content: "←"; }
[dir="ltr"] .card-link::after { content: "→"; }

.badge { display: inline-block; font-size: .78rem; font-weight: 600; padding: .15rem .6rem; border-radius: 999px; background: var(--tonal); color: var(--navy); border: 0; }
.badge-sample { background: #F6E7CF; color: #6B4A12; }
.badge-hypo { background: #F6E7CF; color: #6B4A12; }

/* ---------- Hero ---------- */
.hero { padding-block: 72px 88px; background: var(--cream); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: .45em; }
.hero .lead { max-width: 560px; margin-bottom: 1.6em; }
.hero-points { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 8px; color: var(--text); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; background: var(--soft); border-radius: 999px; padding: .35rem 1rem .35rem .75rem; font-weight: 500; }
[dir="rtl"] .hero-points li { padding: .35rem .75rem .35rem 1rem; }
.hero-points li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--primary) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center/12px no-repeat; flex: none; }
.hero-visual { position: relative; }
.hero-visual svg { display: block; width: 100%; height: auto; direction: ltr; }
.illustration-note { position: absolute; top: 10px; inset-inline-end: 10px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } .hero { padding-block: 48px 64px; } }

/* ---------- צעדים ---------- */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 64px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; inset-inline-start: 28px; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-family: var(--font-head); display: flex; align-items: center; justify-content: center; margin-top: 20px; }
.step.card { padding-top: 84px; }

/* ---------- רצועת קריאה לפעולה ---------- */
.cta-band { background: var(--navy); color: #E9DFEA; border-radius: 36px; padding: 56px; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; max-width: 560px; }
@media (max-width: 640px) { .cta-band { padding: 36px 24px; } }

/* ---------- כותרת עמוד פנימי ---------- */
.page-hero { background: var(--tonal); padding-block: 64px 56px; border-radius: 0 0 40px 40px; }
.page-hero .lead { color: var(--muted); }
.page-hero .lead { max-width: 720px; margin: 0; }

/* ---------- שירותים ---------- */
.service-block { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; padding: 40px; }
.service-block + .service-block { margin-top: 28px; }
.service-block ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.service-block li { position: relative; padding-inline-start: 30px; }
.service-block li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 18px; height: 18px; border-radius: 50%; background: var(--tonal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A9432E' stroke-width='3'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center/12px no-repeat; border: 0; }
.service-block h4 { font-size: 1rem; margin-bottom: 14px; color: var(--muted); font-weight: 600; }
@media (max-width: 800px) { .service-block { grid-template-columns: 1fr; padding: 28px; gap: 20px; } }
.note { border-inline-start: 4px solid var(--primary); background: var(--tonal); padding: 20px 24px; border-radius: 20px; }
.note strong { color: var(--navy); }

/* ---------- placeholder (תוכן להשלמה) ---------- */
.placeholder { border: 2px dashed #C99A3A; background: #FFF8EA; border-radius: var(--radius); padding: 24px 28px; color: #6B4A12; }
.placeholder h3 { color: #6B4A12; }
.template-banner { background: #F6E7CF; border-bottom: 0; color: #6B4A12; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .95rem; }

/* ---------- מרכז ידע ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-btn { font: inherit; font-size: .95rem; font-weight: 500; padding: .5rem 1rem; border-radius: 999px; border: 0; background: var(--soft); color: var(--text); cursor: pointer; min-height: 40px; }
.filter-btn:hover { background: var(--tonal); color: var(--navy); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.article-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.article-card .thumb { aspect-ratio: 16/8; background: var(--tonal); display: flex; align-items: center; justify-content: center; }
.article-card .thumb svg { width: 70%; height: 70%; direction: ltr; }
.article-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.article-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.article-card h3 a { color: var(--navy); text-decoration: none; }
.article-card h3 a:hover { color: var(--blue); }
.article-card .read { margin-top: auto; color: var(--muted); font-size: .9rem; }
.empty-state { display: none; text-align: center; padding: 40px; color: var(--muted); }
.categories-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.categories-list .card { padding: 20px 22px; }
.categories-list h3 { font-size: 1.05rem; }
.categories-list p { font-size: .95rem; color: var(--muted); }

/* ---------- עמוד מאמר ---------- */
.article { max-width: 760px; margin-inline: auto; }
.article-meta { color: var(--muted); font-size: .95rem; display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 28px; }
.summary-box { background: var(--tonal); border-radius: var(--radius); padding: 24px 28px; margin-bottom: 36px; }
.summary-box h2 { font-size: 1.15rem; margin-bottom: .5em; }
.summary-box ul { margin: 0; }
.article h2 { margin-top: 1.6em; font-size: 1.55rem; }
.example-box { background: var(--soft); border: 0; border-inline-start: 4px solid var(--primary); border-radius: 20px; padding: 20px 24px; margin: 24px 0; }
.sources { font-size: .95rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 40px; padding-top: 24px; }
.tpl-label { display: inline-block; font-size: .75rem; font-weight: 700; color: #6B4A12; background: #F6E7CF; border: 0; border-radius: 999px; padding: 0 .45rem; margin-inline-start: 8px; vertical-align: middle; }

/* ---------- גרפים ---------- */
.chart-card { padding: 28px; }
.chart-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.chart-card h3 { margin: 0; }
.chart-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .9rem; color: var(--muted); margin: 6px 0 14px; }
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; direction: ltr; }
.chart text { font-family: var(--font); }
.metric-card .formula { display: block; background: var(--tonal); border-radius: 14px; padding: 10px 14px; font-weight: 600; color: var(--navy); margin: 12px 0; text-align: center; font-size: .95rem; }
.metric-card .abbr { color: var(--blue); font-family: var(--font-head); font-weight: 700; font-size: 1.5rem; direction: ltr; display: inline-block; }
.disclaimer-bar { background: #F6E7CF; border: 0; color: #6B4A12; border-radius: 20px; padding: 14px 18px; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 40px; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details { border: 0; border-radius: 22px; background: var(--soft); margin-bottom: 12px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 24px; font-weight: 600; color: var(--navy); font-size: 1.08rem; display: flex; justify-content: space-between; gap: 16px; align-items: center; border-radius: 22px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--blue); background: var(--tonal); width: 36px; height: 36px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--line); border-radius: 22px 22px 0 0; }
.faq .answer { padding: 18px 24px 22px; }
.faq .answer p:last-child { margin: 0; }

/* ---------- טופס ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; font-size: .97rem; }
.field .req { color: #b42318; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--text); background: var(--white);
  border: 1.5px solid var(--field); border-radius: 14px; padding: .7rem .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: 3px solid rgba(75,42,94,.25); outline-offset: 0; }
.field textarea { min-height: 130px; resize: vertical; }
.field input[type="email"], .field input[type="tel"], .field input[type="url"] { direction: ltr; text-align: start; }
[dir="rtl"] .field input[type="email"], [dir="rtl"] .field input[type="tel"], [dir="rtl"] .field input[type="url"] { text-align: right; }
.field .error { color: #b42318; font-size: .88rem; margin-top: 4px; min-height: 0; }
.field [aria-invalid="true"] { border-color: #b42318; }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check input { width: 20px; height: 20px; margin-top: 4px; flex: none; accent-color: var(--primary); }
.check label { font-weight: 400; color: var(--text); }
.hp-field { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-success { display: none; text-align: center; padding: 48px 28px; }
.form-success .icon { width: 64px; height: 64px; border-radius: 50%; }
.form-success.show { display: block; }
.info-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.info-list li { display: flex; gap: 12px; align-items: flex-start; }
.info-list .icon { width: 40px; height: 40px; margin: 0; flex: none; }
.info-list .icon svg { width: 20px; height: 20px; }
.booking-box { text-align: center; }

/* ---------- טקסט משפטי ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }

/* ---------- כותרת תחתונה ---------- */
.site-footer { background: var(--navy); color: #E9DFEA; border-radius: 40px 40px 0 0; padding-block: 64px 28px; margin-top: 0; font-size: .96rem; }
.site-footer a { color: #F8F2F7; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer .brand { color: #fff; margin-bottom: 10px; }
.footer-slogan { color: #fff; font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer-disclaimer { max-width: 760px; margin: 0; }
[hidden] { display: none !important; }
.svc-closing { margin: 18px 0 0; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-size: .97rem; }
.service-block ul + .svc-closing { margin-top: 18px; }
.page-hero .lead + .lead { margin-top: .5em; }
.service-block h3 + .svc-closing { border-top: 0; padding-top: 0; margin-top: 0; color: var(--text); font-size: 1.05rem; }
.types-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.types-list li { position: relative; padding-inline-start: 22px; }
.types-list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }

/* ---------- שזיף ואפור חם – תוספות ---------- */
.hero-visual svg { filter: drop-shadow(0 4px 16px rgba(58,31,74,.07)); }
.form-success .icon { background: var(--tonal); }
/* ---------- כותרות (IBM Plex Sans Hebrew) ---------- */
h1 { line-height: 1.12; letter-spacing: 0; }
h2 { line-height: 1.18; letter-spacing: 0; }
h3, h4 { line-height: 1.3; letter-spacing: 0; }
[lang="en"] h1, [lang="en"] h2 { letter-spacing: -.005em; }
.brand { font-weight: 700; letter-spacing: .005em; }
.step::before, .metric-card .abbr { font-weight: 700; }

/* =========================================================
   האזור האישי, הרשמה וממשק ניהול (אב-טיפוס)
   ========================================================= */
.site-header .container { max-width: 1360px; }
.header-portal-link { color: var(--navy); font-weight: 600; text-decoration: none; padding: .5rem .8rem; border-radius: 999px; white-space: nowrap; }
.header-portal-link:hover, .header-portal-link[aria-current="page"] { background: var(--tonal); color: var(--navy); }
.header-signup { padding: .55rem 1.1rem; min-height: 42px; white-space: nowrap; }
.header-cta { min-height: 42px; }
.nav-portal-mobile { display: none; }
@media (max-width: 1340px) {
  .portal-desktop { display: none; }
  .main-nav .nav-portal-mobile { display: block; }
}

.demo-banner { background: #F6E7CF; color: #6B4A12; text-align: center; padding: 10px 16px; font-weight: 600; font-size: .95rem; }
.demo-banner a { color: #6B4A12; }

/* טפסי כניסה/הרשמה */
.auth-wrap { max-width: 520px; margin-inline: auto; }
.auth-card { padding: 36px; }
.auth-card h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: .3em; }
.auth-card .form-grid { grid-template-columns: 1fr; }
.auth-alt { text-align: center; margin: 22px 0 0; color: var(--muted); }
.form-error-box { background: #FBE4DE; color: #8F2A1A; border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; }
.demo-hint { background: var(--tonal); border-radius: 16px; padding: 14px 18px; font-size: .95rem; margin-top: 22px; }
.demo-hint code { direction: ltr; unicode-bidi: isolate; font-size: .95em; background: var(--soft); padding: 1px 6px; border-radius: 6px; }
.field .hint { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.btn-block { width: 100%; }
.btn-text { background: transparent; color: var(--blue); padding-inline: .9rem; }
.btn-text:hover { background: var(--tonal); color: var(--blue-dark); }
.btn-sm { min-height: 38px; padding: .4rem 1rem; font-size: .92rem; }
.btn[disabled] { opacity: .6; cursor: not-allowed; }

/* לשוניות */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; background: var(--soft); border-radius: 999px; padding: 6px; width: fit-content; margin-bottom: 28px; box-shadow: var(--shadow); }
.tab { font: inherit; font-weight: 600; border: 0; background: transparent; color: var(--text); padding: .55rem 1.2rem; border-radius: 999px; cursor: pointer; min-height: 42px; }
.tab:hover { background: var(--cream); }
.tab[aria-selected="true"], .tab[aria-pressed="true"] { background: var(--tonal); color: var(--navy); }
.tab .count { display: inline-block; min-width: 22px; padding: 0 6px; margin-inline-start: 6px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .8rem; }

/* האזור האישי – שיחות */
.portal-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .portal-grid { grid-template-columns: 1fr; } }
.conv-panel { padding: 20px; }
.conv-panel .btn { width: 100%; margin-bottom: 14px; }
.conv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 560px; overflow-y: auto; }
.conv-item { width: 100%; text-align: start; font: inherit; border: 0; background: transparent; color: var(--text); border-radius: 16px; padding: 12px 14px; cursor: pointer; display: grid; gap: 2px; }
.conv-item:hover { background: var(--cream); }
.conv-item[aria-current="true"] { background: var(--tonal); }
.conv-item .t { font-weight: 600; color: var(--navy); line-height: 1.35; }
.conv-item .d { font-size: .85rem; color: var(--muted); }
.conv-empty { color: var(--muted); font-size: .95rem; padding: 8px 4px; }

.chat-panel { padding: 0; display: flex; flex-direction: column; min-height: 560px; overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.chat-head h2 { font-size: 1.3rem; margin: 0; }
.chat-log { flex: 1; padding: 24px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; max-height: 620px; }
.msg { max-width: 82%; border-radius: 22px; padding: 14px 18px; white-space: pre-line; line-height: 1.65; }
.msg-user { align-self: flex-start; background: var(--primary); color: #fff; border-start-start-radius: 6px; }
.msg-ai, .msg-adwise { align-self: flex-end; background: var(--cream); color: var(--text); border-start-end-radius: 6px; }
.msg-adwise { background: var(--tonal); }
.msg-label { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .82rem; font-weight: 700; color: var(--muted); margin-bottom: 6px; white-space: normal; }
.msg-user .msg-label { color: #FFFFFF; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 700; border-radius: 999px; padding: .12rem .6rem; background: var(--tonal); color: var(--navy); }
.chip-reviewed { background: #3A1F4A; color: #F8F2F7; }
.chip-flag { background: #F6E7CF; color: #6B4A12; }
.chip-demo { background: #F6E7CF; color: #6B4A12; }
.msg-time { font-weight: 500; }
.typing { align-self: flex-end; color: var(--muted); font-size: .95rem; background: var(--cream); border-radius: 22px; padding: 10px 16px; }
.chat-intro { color: var(--muted); text-align: center; margin: auto; max-width: 420px; padding: 24px 0; }
.chat-intro h2 { font-size: 1.4rem; }
.composer { border-top: 1px solid var(--line); padding: 16px 24px 18px; }
.composer label { display: block; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.composer-row { display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid var(--field); border-radius: 18px; padding: .7rem 1rem; min-height: 52px; max-height: 180px; resize: vertical; }
.composer textarea:focus { border-color: var(--primary); outline: 3px solid rgba(75,42,94,.25); outline-offset: 0; }
.ai-disclaimer { font-size: .85rem; color: var(--muted); margin: 10px 0 0; }
@media (max-width: 640px) { .msg { max-width: 94%; } .chat-log, .composer, .chat-head { padding-inline: 16px; } .composer-row { flex-direction: column; align-items: stretch; } }

/* סיכומים */
.summary-card { padding: 28px; }
.summary-card + .summary-card { margin-top: 18px; }
.summary-card h3 { font-size: 1.3rem; }
.summary-meta { color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.summary-sections { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .summary-sections { grid-template-columns: 1fr; } }
.summary-sections section { background: var(--cream); border-radius: 18px; padding: 16px 18px; }
.summary-sections h4 { font-size: 1.02rem; margin-bottom: .5em; }
.summary-sections ul { margin: 0; padding-inline-start: 1.1em; }
.summary-sections li + li { margin-top: 6px; }
.summary-new { outline: 3px solid var(--peach); }

/* ניהול */
.admin-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
@media (max-width: 980px) { .admin-grid { grid-template-columns: 1fr; } }
.client-item .t { display: flex; justify-content: space-between; gap: 8px; }
.admin-msg-tools { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.admin-edit textarea, .admin-reply textarea { width: 100%; font: inherit; color: var(--text); background: var(--white); border: 1.5px solid var(--field); border-radius: 14px; padding: .6rem .9rem; min-height: 120px; }
.admin-edit label, .admin-reply label { display: block; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.original-text { font-size: .88rem; color: var(--muted); border-inline-start: 3px solid var(--line); padding-inline-start: 10px; margin-top: 10px; white-space: pre-line; }
.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 24px; }
.stat { background: var(--soft); border-radius: 20px; padding: 14px 20px; box-shadow: var(--shadow); min-width: 150px; }
.stat b { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.stat span { color: var(--muted); font-size: .9rem; }

/* קריאה לפעולה בדף הבית */
.ask-band { background: var(--tonal); border-radius: 36px; padding: 48px 56px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.ask-band h2 { margin-bottom: .25em; }
.ask-band p { margin: 0; color: var(--muted); max-width: 600px; }
@media (max-width: 640px) { .ask-band { padding: 32px 24px; } }
.summary-topic { background: var(--tonal); border-radius: 14px; padding: 10px 16px; margin-bottom: 16px; }
.summary-topic b { color: var(--navy); }

/* ---------- פגישות וידאו (אב-טיפוס) ---------- */
.meet-intro { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.meet-intro h2 { margin-bottom: .3em; font-size: 1.5rem; }
.meet-intro p { margin: 0; color: var(--muted); max-width: 46em; }
.book-form { margin-bottom: 28px; }
.book-form h3 { font-size: 1.3rem; }
.book-form fieldset { border: 0; padding: 0; margin: 0; }
.book-form legend { font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
.book-form .field { margin-bottom: 18px; }
.demo-note { display: inline-block; background: #F6E7CF; color: #6B4A12; border-radius: 12px; padding: 6px 12px; font-size: .92rem; font-weight: 600; }
.slot-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { position: relative; display: inline-flex; cursor: pointer; }
.slot input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.slot span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--field); background: #fff; color: var(--text); font-weight: 600; }
.slot:hover span { background: var(--tonal); }
.slot input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.slot input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 3px; }
.meet-group { margin-top: 8px; }
.meet-group > h3 { font-size: 1.25rem; margin: 18px 0 12px; }
.meet-empty { color: var(--muted); }
.meet-card { margin-bottom: 18px; }
.meet-card:focus { outline: 3px solid var(--primary); outline-offset: 3px; }
.meet-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.meet-title { font-size: 1.2rem; margin: 0; }
.meet-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip-up { background: var(--primary); color: #fff; }
.meet-consent { font-size: .92rem; color: var(--muted); margin: 0 0 12px; }
.meet-join { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.meet-msg { margin: 10px 0 0; font-size: .95rem; color: var(--navy); }
.meet-msg:empty { display: none; }
.rec-box { aspect-ratio: 16 / 6; max-height: 230px; width: 100%; border-radius: 18px; background-color: #3A1F4A; background-image: linear-gradient(135deg, #3A1F4A, #4B2A5E); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; margin: 6px 0 14px; }
.rec-box svg { width: 72px; height: 72px; }
.rec-box p { margin: 0; max-width: 34em; font-size: .95rem; color: #fff; }
.transcript { background: var(--cream); border-radius: 16px; padding: 12px 16px; margin-bottom: 14px; }
.transcript summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.transcript ol { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.transcript li b { color: var(--navy); }
.meet-sum { border-top: 1px solid var(--line); padding-top: 14px; }
.meet-sum h4, .meet-sum h5 { font-size: 1.05rem; margin: 0; }
.meet-sub { font-weight: 700; color: var(--navy); margin: 10px 0 4px; }
.meet-sum .admin-edit { margin-top: 12px; }
.meet-sum .admin-edit label { display: block; font-weight: 600; margin-bottom: 4px; }
.meet-sum .admin-edit textarea { width: 100%; }
#admin-meetings .meet-card { max-width: 980px; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 6px; inset-inline-start: 7px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding-inline-start: 30px; padding-bottom: 16px; }
.tl-dot { position: absolute; inset-inline-start: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--tonal); border: 3px solid var(--primary); }
.tl-meet .tl-dot { background: var(--peach); }
.tl-body .summary-meta { margin: 0; }
.tl-title { margin: 2px 0 2px; font-weight: 600; color: var(--navy); }
@media (max-width: 700px) { .meet-intro { flex-direction: column; align-items: stretch; } .rec-box { aspect-ratio: 16 / 10; } }

/* ---------- Hero: CTA אחד + קישור טקסט ---------- */
.hero-cta { align-items: center; gap: 20px; }
.btn-lg { min-height: 56px; padding: .9rem 2rem; font-size: 1.08rem; }
.hero-link { color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; padding: .5rem .25rem; }
.hero-link:hover { color: var(--blue-dark); text-decoration-thickness: 2.5px; }
.hero-note { margin: 16px 0 0; color: var(--muted); font-size: .95rem; }
.nw { white-space: nowrap; }
/* כותרת hero בשתי שורות שלמות גם במסך צר */
@media (max-width: 480px) { .hero h1 { font-size: clamp(1.3rem, 7.4vw, 2rem); } html[lang="en"] .hero h1 { font-size: clamp(1.2rem, 6.6vw, 1.85rem); } }

/* ---------- תשלום על פגישות (אב-טיפוס) ---------- */
.modal { width: min(580px, calc(100vw - 24px)); max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: 24px; padding: 28px; background: var(--soft); color: var(--text); box-shadow: 0 20px 60px rgba(58,31,74,.28); }
.modal::backdrop { background: rgba(46,36,51,.55); }
.modal h2 { font-size: 1.4rem; margin-bottom: .6em; }
.modal h2:focus { outline: none; }
.pay-terms { margin: 0 0 18px; padding-inline-start: 1.2em; display: grid; gap: 8px; }
.pc-check { background: var(--tonal); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.pc-check label { font-weight: 600; color: var(--navy); }
.modal-actions { margin-top: 16px; }
.btn[disabled] { opacity: 1; background: #DDD6DE; color: #4A3F4D; cursor: not-allowed; box-shadow: none; }
.pay-box { border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 14px 16px; margin: 4px 0 14px; }
.pay-box h4, .pay-box h5, .pay-box h3 { font-size: 1.05rem; margin: 0; }
.pay-overdue { border-color: #E7B4A8; background: #FFF7F5; }
.pay-paid { border-color: var(--tonal); }
.pay-line { margin: 8px 0 0; }
.pay-sent { margin: 6px 0 10px; font-size: .92rem; color: var(--muted); }
.chip-paid { background: #3A1F4A; color: #FFFFFF; }
.chip-late { background: #FBE4DE; color: #8F2A1A; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pay-method { position: relative; cursor: pointer; }
.pay-method input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pay-method span { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 16px 10px; border: 1.5px solid var(--field); border-radius: 16px; background: #fff; text-align: center; color: var(--navy); }
.pay-method svg { width: 28px; height: 28px; }
.pay-method:hover span { background: var(--tonal); }
.pay-method input:checked + span { border-color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); background: var(--tonal); }
.pay-method input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 3px; }
.pay-result { min-height: 1.4em; margin: 10px 0 0; font-weight: 600; color: var(--navy); }
.msg-preview { margin: 8px 0; background: var(--cream); border-radius: 14px; padding: 10px 14px; }
.msg-preview summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.mp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
.mp-email, .mp-wa { background: #fff; border-radius: 12px; padding: 12px; font-size: .92rem; }
.mp-lbl { margin: 0 0 6px; font-weight: 700; color: var(--navy); }
.mp-head { margin: 0 0 8px; color: var(--muted); border-bottom: 1px solid var(--line); padding-bottom: 6px; }
.mp-body { margin: 0; white-space: pre-line; }
.mp-wa { background: #EFEAE6; }
.mp-bubble { margin: 0; background: #fff; border-radius: 12px 12px 12px 4px; padding: 10px 12px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
[dir="rtl"] .mp-bubble { border-radius: 12px 12px 4px 12px; }
@media (max-width: 640px) { .modal { padding: 20px 18px; } .pay-methods, .mp-grid { grid-template-columns: 1fr; } .pay-method span { flex-direction: row; justify-content: flex-start; padding: 12px 14px; } .modal-actions .btn { flex: 1 1 100%; } }
.modal fieldset { border: 0; padding: 0; margin: 0; } .modal legend { font-weight: 600; color: var(--navy); margin-bottom: 8px; padding: 0; }
