/* ---------- פונט ---------- */
@font-face { font-family: FbMatador; src: url(../assets/fonts/FbMatador-Light.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: FbMatador; src: url(../assets/fonts/FbMatador-Regular.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: FbMatador; src: url(../assets/fonts/FbMatador-Medium.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: FbMatador; src: url(../assets/fonts/FbMatador-Bold.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: FbMatador; src: url(../assets/fonts/FbMatador-Black.woff2) format('woff2'); font-weight: 900; font-display: swap; }
/* ערבית: FbMatador לא כולל אותיות ערביות, ולכן אותיות ערביות מוצגות ב-Rubik (רישיון OFL) */
@font-face {
  font-family: GlineArabic; src: url(../assets/fonts/Rubik-Arabic.woff2) format('woff2');
  font-weight: 300 900; font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-08FF, U+200C-200E, U+FB50-FDFF, U+FE70-FEFC;
}

/* ---------- טוקנים ---------- */
:root {
  --purple: #4d3d98;
  --purple-dark: #3a2d7a;
  --purple-soft: #eeebf8;
  --yellow: #ffdf00;
  --green: #259148;
  --red: #d42a33;
  --ink: #1d1640;
  --ink-2: #4a4568;
  --bg: #f6f5fb;
  --surface: #fff;
  --line: #e3e0ef;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgb(29 22 64 / .06), 0 8px 24px rgb(29 22 64 / .07);
  --scale: 1;
  --bar-h: 84px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { font-size: calc(17px * var(--scale)); -webkit-text-size-adjust: 100%; }
@media (min-width: 760px) { html { font-size: calc(18px * var(--scale)); } }
body {
  margin: 0;
  font-family: FbMatador, GlineArabic, 'Rubik', 'Assistant', system-ui, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--purple); }

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

/* פוקוס ברור בכל מקום */
:focus-visible {
  outline: 3px solid var(--ink);
  outline-offset: 3px;
  box-shadow: 0 0 0 7px var(--yellow);
  border-radius: 8px;
}
h1:focus, main:focus { outline: none; box-shadow: none; }

.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- כותרת עליונה ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(255 255 255 / .96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  position: relative;
  max-width: 1200px; margin: 0 auto; padding: 8px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-gline { height: 36px; width: auto; }
.brand-council { height: 40px; width: auto; }
.brand-sep { width: 1px; height: 28px; background: var(--line); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.chip-btn {
  border: 1.5px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-weight: 500; font-size: .85rem; min-height: 40px;
}
.chip-btn:hover { border-color: var(--purple); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-width: 44px; min-height: 44px; padding: 0 10px;
  border: 0; border-radius: 999px; background: var(--purple-soft); color: var(--purple);
  font-weight: 500;
}
.icon-btn:hover { background: #e0dbf3; }
.a11y-btn { background: var(--purple); color: #fff; }
.a11y-btn:hover { background: var(--purple-dark); }

.a11y-panel {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 16px; z-index: 60;
  width: min(300px, calc(100vw - 32px));
  background: #fff; border-radius: var(--radius-sm); box-shadow: var(--shadow), 0 0 0 1px var(--line);
  padding: 16px; display: grid; gap: 8px;
}
.a11y-title { font-weight: 700; }
.a11y-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.a11y-row button, .a11y-toggle {
  min-height: 44px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; font-weight: 500;
}
.a11y-row .lg1 { font-size: 1.1em; }
.a11y-row .lg2 { font-size: 1.2em; }
.a11y-panel [aria-pressed="true"] { background: var(--purple); color: #fff; border-color: var(--purple); }
.a11y-toggle { text-align: start; padding: 0 12px; }
.a11y-lang { grid-template-columns: 1fr 1fr; }

/* כפתור השפה בכותרת: מוצג תמיד, כדי שמי שלא קורא עברית ימצא אותו */
.lang-btn { font-weight: 700; color: var(--purple); border-color: #cfc8ee; }
.lang-btn:hover { background: var(--purple-soft); }
.info-btn { display: inline-flex; align-items: center; gap: 6px; }
.info-btn .icon { display: none; width: 20px; height: 20px; }
@media (max-width: 479px) {
  /* במסך צר "מידע נוסף" הופך לאייקון, כדי שיהיה מקום לכפתור השפה */
  .info-btn { width: 40px; padding: 0; justify-content: center; }
  .info-btn .icon { display: block; }
  .info-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .header-actions { gap: 6px; }
  .brand { gap: 8px; }
  .brand-gline { height: 30px; }
  .brand-council { height: 34px; }
}
/* בערבית האותיות גבוהות יותר, ולכן קצת יותר ריווח בין השורות */
html[lang="ar"] body { line-height: 1.65; }

/* ---------- פס התקדמות בצורת קו ---------- */
.progress { max-width: 1200px; margin: 0 auto; padding: 4px 16px 12px; }
.progress-count { font-size: .85rem; color: var(--ink-2); margin-bottom: 8px; }
.progress-count strong { color: var(--purple); }
.progress-line {
  --pct: 0%;
  position: relative; list-style: none; margin: 0; padding: 0;
  display: flex; justify-content: space-between;
}
.progress-line::before, .progress-line::after {
  content: ''; position: absolute; top: 8px; height: 6px; border-radius: 3px;
  inset-inline-start: 9px;
}
.progress-line::before { inset-inline-end: 9px; background: var(--line); }
.progress-line::after {
  width: calc((100% - 18px) * var(--pct) / 100%);
  background: linear-gradient(to left, var(--purple), #8f87c1);
  transition: width .5s ease;
}
.progress-stop { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.progress-dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 4px solid var(--line);
  display: grid; place-items: center; color: #fff;
}
.progress-dot .icon { width: 12px; height: 12px; stroke-width: 3.5; }
.progress-stop.is-done .progress-dot { background: var(--purple); border-color: var(--purple); }
.progress-stop.is-current .progress-dot {
  border-color: var(--purple); background: var(--yellow);
  box-shadow: 0 0 0 5px rgb(77 61 152 / .18);
}
.progress-name { display: none; font-size: .8rem; color: var(--ink-2); white-space: nowrap; }
.progress-stop.is-current .progress-name { color: var(--purple); font-weight: 700; }
@media (min-width: 760px) {
  .progress-count { display: none; }
  .progress { padding-top: 10px; }
  .progress-name { display: block; }
}

/* ---------- מבנה מסך ---------- */
main { flex: 1; width: 100%; }
.screen {
  max-width: 920px; margin: 0 auto; padding: 24px 16px 32px;
  animation: enter .35s ease both;
}
.screen.no-anim { animation: none; }
.screen-wide { max-width: 1200px; }
.screen-narrow { max-width: 600px; }
.screen-center { text-align: center; display: flex; flex-direction: column; align-items: center; }
@keyframes enter { from { opacity: 0; } }
/* בלי transform על .screen, כדי לא לשבור את position: fixed של סרגל הפעולה */

h1 {
  font-weight: 700; color: var(--purple);
  font-size: clamp(1.75rem, 1.1rem + 3vw, 2.6rem); line-height: 1.15;
  margin-bottom: 10px; text-wrap: balance;
}
.lead { font-size: 1.1rem; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.screen-center .lead { margin-inline: auto; }
.eyebrow {
  display: inline-block; font-weight: 500; font-size: .85rem; color: var(--purple);
  background: var(--purple-soft); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px;
}

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 1rem; text-decoration: none; line-height: 1.2;
  transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:active:not(:disabled) { transform: scale(.98); }
.btn-primary { background: var(--purple); color: #fff; box-shadow: 0 4px 0 var(--purple-dark); }
.btn-primary:hover:not(:disabled) { background: var(--purple-dark); }
.btn-primary:disabled { background: #cfcbe0; color: #6f6a8a; box-shadow: none; cursor: not-allowed; }
.btn-outline { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.btn-outline:hover { background: var(--purple-soft); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 0 14px; }
.btn-ghost:hover { background: var(--purple-soft); color: var(--purple); }
.btn-light { background: #fff; color: var(--purple); }
.btn-wa { background: #1c8a4a; color: #fff; }
.btn-wa:hover { background: #157a3f; }
.btn-lg { min-height: 58px; font-size: 1.1rem; padding: 0 28px; }
.btn-block { width: 100%; }
.btn-cta.is-pulse { animation: pulse 1.6s ease-in-out 3; }
@keyframes pulse { 50% { box-shadow: 0 4px 0 var(--purple-dark), 0 0 0 10px rgb(255 223 0 / .7); } }
.link {
  background: none; border: 0; padding: 0; color: var(--purple);
  text-decoration: underline; text-underline-offset: 3px; font-weight: 500;
}

/* ---------- סרגל פעולה ---------- */
.actionbar {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px;
  position: fixed; inset: auto 0 0 0; z-index: 40;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -6px 20px rgb(29 22 64 / .06);
}
.actionbar .btn-back span { display: none; }
.actionbar .btn-cta { width: 100%; }
.actionbar:not(:has(.btn-cta)) { grid-template-columns: auto 1fr; }
.actionbar:not(:has(.btn-cta)) .wa-inline { justify-self: end; }
.wa-inline {
  display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%;
  background: #25d366; color: #fff; text-decoration: none;
}
.wa-inline .icon { width: 28px; height: 28px; }
body.has-actionbar { padding-bottom: calc(var(--bar-h) + env(safe-area-inset-bottom)); }

@media (min-width: 760px) {
  .actionbar {
    position: static; display: flex; justify-content: space-between;
    padding: 0; margin-top: 40px; background: none; border: 0; box-shadow: none;
  }
  .actionbar .btn-back span { display: inline; }
  .actionbar .btn-cta { width: auto; min-width: 240px; }
  .wa-inline { display: none; }
  body.has-actionbar { padding-bottom: 0; }
}

/* ---------- WhatsApp צף ---------- */
.wa-float {
  position: fixed; z-index: 45;
  inset-inline-end: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  background: #fff; color: var(--ink); text-decoration: none;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  box-shadow: 0 6px 24px rgb(29 22 64 / .18), 0 0 0 1px var(--line);
  transition: transform .2s ease;
}
.wa-icon {
  width: 48px; height: 48px; border-radius: 50%; background: #25d366; color: #fff;
  display: grid; place-items: center; flex: none;
}
.wa-icon .icon { width: 28px; height: 28px; }
.wa-text { display: grid; line-height: 1.2; }
.wa-text strong { font-weight: 700; }
.wa-sub, .wa-hover { font-size: .8rem; color: var(--ink-2); }
.wa-hover { display: none; }
body.has-actionbar .wa-float { display: none; }
@media (min-width: 760px) {
  body.has-actionbar .wa-float { display: flex; }
  .wa-float:hover { transform: translateY(-2px); }
  .wa-float:hover .wa-sub { display: none; }
  .wa-float:hover .wa-hover { display: block; }
}
@media (max-width: 759px) {
  /* במסך הפתיחה: כפתור רחב בתחתית */
  .wa-float { inset-inline: 16px; justify-content: center; }
  body[data-screen="audience"] { padding-bottom: 96px; }
}

/* ---------- מסך פתיחה ---------- */
.screen-hero { max-width: 1200px; text-align: center; padding-top: 28px; }
.screen-hero .lead { margin: 0 auto; }
.hero-lines { display: flex; justify-content: center; gap: 6px; margin-bottom: 20px; }
.hero-lines span {
  height: 10px; width: 28px; border-radius: 5px; background: var(--c);
  animation: grow .6s cubic-bezier(.3,1.4,.5,1) both;
}
.hero-lines span:nth-child(odd) { width: 44px; }
.hero-lines span:nth-child(3n) { width: 10px; background: var(--yellow); }
@keyframes grow { from { transform: scaleX(0); } }
.choose-title { font-size: 1.2rem; font-weight: 700; margin: 32px 0 16px; }

.audience-grid {
  list-style: none; padding: 0; margin: 0 auto; max-width: 820px;
  display: grid; gap: 14px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .audience-grid { grid-template-columns: 1fr 1fr; gap: 18px; } }
@media (min-width: 1280px) { .audience-grid { grid-template-columns: repeat(4, 1fr); max-width: none; } }
.audience-card {
  width: 100%; height: 100%;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px;
  text-align: start; padding: 18px; min-height: 96px;
  background: #fff; border: 0; border-radius: var(--radius);
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.audience-card::before {
  content: ''; position: absolute; inset-block: 0; inset-inline-start: 0; width: 8px; background: var(--c);
}
.audience-icon {
  width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--c);
  box-shadow: inset 0 0 0 4px var(--c);
}
.audience-icon .icon { width: 30px; height: 30px; color: var(--ink); }
.audience-text { display: grid; }
.audience-title { font-weight: 700; font-size: 1.3rem; }
.audience-age { color: var(--ink-2); }
.audience-go {
  display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--purple);
  background: var(--purple-soft); padding: 8px 14px; border-radius: 999px; font-size: .9rem;
}
@media (min-width: 1280px) {
  .audience-card { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 28px 18px; }
  .audience-card::before { inset-inline: 0; inset-block: 0 auto; width: auto; height: 8px; }
  .audience-icon { width: 84px; height: 84px; }
  .audience-icon .icon { width: 40px; height: 40px; }
}
@media (hover: hover) {
  .audience-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgb(29 22 64 / .14); }
  .audience-card:hover .audience-go { background: var(--purple); color: #fff; }
}

/* ---------- וידאו ---------- */
.video-wrap {
  position: relative; margin: 24px auto 0;
  width: min(100%, calc((100dvh - 360px) * 9 / 16)); min-width: min(100%, 230px);
  aspect-ratio: 9 / 16; border-radius: var(--radius); overflow: hidden;
  background: #120d2b; box-shadow: var(--shadow);
}
.video-wrap video { width: 100%; height: 100%; object-fit: contain; background: #000; }
/* סרטון לרוחב (16:9) במסך רחב */
.video-wrap.is-wide { aspect-ratio: 16 / 9; width: min(100%, 880px, calc((100dvh - 330px) * 16 / 9)); min-width: min(100%, 420px); }
.video-wrap.in-modal.is-wide { width: min(100%, calc(70dvh * 16 / 9)); }
.modal:has(.is-wide) { max-width: min(960px, calc(100vw - 24px)); }
.video-wrap.in-modal { margin: 0 auto; width: min(100%, calc(70dvh * 9 / 16)); }
.video-done {
  position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: rgb(29 22 64 / .72);
}
.video-done[hidden] { display: none; }
.unmute-btn {
  position: absolute; top: 14px; inset-inline-start: 50%; transform: translateX(50%);
  display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border: 0; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 700;
  box-shadow: 0 6px 20px rgb(0 0 0 / .3); animation: pop .4s cubic-bezier(.3,1.6,.5,1) both;
}
.unmute-btn .icon { width: 24px; height: 24px; }
.video-done-badge {
  width: 88px; height: 88px; border-radius: 50%; background: var(--yellow); color: var(--purple);
  display: grid; place-items: center; animation: pop .5s cubic-bezier(.3,1.6,.5,1) both;
}
.video-done-badge .icon { width: 48px; height: 48px; stroke-width: 3; }
@keyframes pop { from { transform: scale(0); } }
.video-placeholder {
  height: 100%; display: grid; place-content: center; justify-items: center; gap: 12px;
  color: #cfcbe0; text-align: center; padding: 24px;
}
.video-placeholder .icon { width: 56px; height: 56px; }

/* ---------- מה זה G LINE ---------- */
.fact-grid {
  list-style: none; padding: 0; margin: 28px 0 0;
  display: grid; gap: 14px; grid-template-columns: 1fr 1fr;
}
@media (min-width: 900px) { .fact-grid { grid-template-columns: repeat(4, 1fr); } }
.fact-card {
  background: #fff; border-radius: var(--radius); padding: 20px 16px; box-shadow: var(--shadow);
  display: grid; align-content: start; gap: 4px; border-top: 8px solid var(--c);
}
.fact-big { height: 64px; display: flex; align-items: center; color: var(--purple); }
.fact-num { font-size: 3.4rem; font-weight: 900; line-height: 1; }
.fact-big .icon { width: 46px; height: 46px; }
.fact-label { font-weight: 700; font-size: 1.15rem; }
.fact-text { color: var(--ink-2); font-size: .95rem; }

/* ---------- מפה ---------- */
.map-layout { display: grid; gap: 16px; margin-top: 20px; }
@media (min-width: 1000px) { .map-layout { grid-template-columns: 290px 1fr; align-items: start; } }
.line-picker {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin-inline: -16px; padding-inline: 16px;
  scroll-snap-type: x proximity; scrollbar-width: none;
}
.line-picker::-webkit-scrollbar { display: none; }
.line-chip {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 4px 14px 4px 6px; border-radius: 999px;
  background: #fff; border: 2px solid var(--line); font-weight: 700;
}
.line-chip-num {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c); color: var(--on); font-weight: 900;
}
.line-chip-route { display: none; }
.line-chip-all { padding: 4px 16px; }
.line-chip[aria-pressed="true"] { border-color: var(--c, var(--purple)); background: color-mix(in srgb, var(--c, var(--purple)) 16%, #fff); box-shadow: 0 0 0 2px var(--c, var(--purple)); }
.line-chip-all[aria-pressed="true"] { background: var(--purple); color: #fff; }
@media (min-width: 1000px) {
  .line-picker { flex-direction: column; overflow: visible; margin: 0; padding: 0; }
  .line-chip { border-radius: var(--radius-sm); padding: 8px 10px; text-align: start; align-items: center; }
  .line-chip-name { display: none; }
  .line-chip-route { display: block; font-weight: 500; font-size: .88rem; line-height: 1.3; }
  .line-chip-all { justify-content: center; }
}
.map-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 12px; position: relative; display: flex; flex-direction: column;
}
.map-tools { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 6px; }
.map-fs span { font-size: .9rem; }
.map-viewport { overflow: hidden; border-radius: var(--radius-sm); background: #fbfaff; touch-action: pan-y; }
.gline-map { width: 100%; height: auto; touch-action: pan-y pinch-zoom; user-select: none; }
.map-viewport:has(.gline-map) { touch-action: pan-y; }
.gline-map text { font-family: FbMatador, GlineArabic, sans-serif; }
.map-station-label { font-size: 26px; font-weight: 500; fill: var(--ink); paint-order: stroke; stroke: #fbfaff; stroke-width: 6px; }
.map-line-label { font-size: 36px; font-weight: 900; paint-order: stroke; stroke: #fbfaff; stroke-width: 6px; }
.map-terminal-text { fill: #fff; font-size: 30px; font-weight: 700; }
.map-terminal-text.small { font-size: 22px; font-weight: 400; }
.map-line, .map-station { transition: opacity .3s ease; }
.has-focus .map-line:not(.is-on) { opacity: .12; }
.has-focus .map-station:not(.is-on):not(.terminal) { opacity: .25; }
.has-focus .map-line.is-on path { stroke-width: 40; }
.map-status { min-height: 1.6em; margin: 10px 4px 0; font-size: 1.05rem; }
.map-status strong { color: var(--purple); }
.map-status { display: flex; align-items: center; gap: 8px; }
.map-status .icon { color: var(--green); width: 24px; height: 24px; stroke-width: 3; }
.map-status:has(.icon) { color: var(--green); font-weight: 700; }
.map-hint { color: var(--ink-2); font-size: .9rem; }
/* מפה בתוך שאלה בשאלון */
.quiz-map { margin-top: 18px; }
.quiz-map .map-card { padding: 10px; }
.map-legend { list-style: none; margin: 8px 4px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .88rem; color: var(--ink-2); }
.map-legend li { display: flex; align-items: center; gap: 6px; }
.lg { width: 16px; height: 16px; border-radius: 50%; display: inline-block; }
.lg-stop { border: 3px solid #ee303a; }
.lg-center { border: 3px solid var(--purple); background: radial-gradient(var(--purple) 30%, #fff 34%); }
.lg-terminal { background: var(--purple); width: 20px; height: 20px; }

.map-card.is-fullscreen {
  position: fixed; inset: 0; z-index: 100; border-radius: 0; padding: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.map-card.is-fullscreen .map-viewport { flex: 1; display: flex; align-items: center; touch-action: none; }
.map-card.is-fullscreen .gline-map { touch-action: none; max-height: 100%; }
.map-card.is-fullscreen .map-fs { background: var(--purple); color: #fff; }

/* ---------- איך משתמשים במפה ---------- */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.step {
  background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: auto 1fr; column-gap: 14px; row-gap: 2px; position: relative;
}
.step-num {
  grid-row: span 2; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 1.25rem;
  background: #fff; border: 5px solid var(--c, var(--purple)); color: var(--ink);
}
.step-icon { display: none; }
.step-title { font-size: 1.1rem; font-weight: 700; }
.step p { color: var(--ink-2); grid-column: 2; }
@media (min-width: 900px) {
  .steps { position: relative; }
  .steps::before {
    content: ''; position: absolute; top: 40px; inset-inline: 10%; height: 6px; border-radius: 3px;
    background: linear-gradient(to left, #ee303a, #0079c1, #259148, #8f87c1, #96c94b);
  }
  .step { grid-template-columns: 1fr; justify-items: center; text-align: center; padding-top: 16px; }
  .step-num { grid-row: auto; position: relative; z-index: 1; margin-bottom: 8px; }
  .step p { grid-column: auto; font-size: .92rem; }
}
.example {
  margin-top: 20px; background: var(--purple); color: #fff; border-radius: var(--radius); padding: 20px;
}
.example h2 { font-size: 1rem; font-weight: 500; color: var(--yellow); }
.example p { margin-top: 4px; font-size: 1.05rem; }
.example-route { display: flex; align-items: center; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.example-route span {
  width: 34px; height: 34px; border-radius: 50%; background: var(--c); color: var(--ink);
  display: grid; place-items: center; font-weight: 900;
}
.example-route i { width: 18px; height: 4px; border-radius: 2px; background: rgb(255 255 255 / .5); }
.example-route b { background: #fff; color: var(--purple); border-radius: 999px; padding: 4px 12px; font-size: .9rem; }

/* ---------- Moovit ---------- */
.moovit-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
@media (min-width: 760px) { .moovit-steps { grid-template-columns: repeat(3, 1fr); } }
.moovit-step {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow);
}
.moovit-step .step-num { flex: none; border-color: #f5831f; }
.moovit-step p { color: var(--ink-2); }
.stores { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.store {
  display: inline-flex; align-items: center; gap: 10px; min-height: 58px; min-width: 190px;
  padding: 8px 18px; border-radius: 14px; background: #111; color: #fff; text-decoration: none;
  line-height: 1.1; font-weight: 700; font-size: 1.1rem; text-align: start;
}
.store small { display: block; font-weight: 400; font-size: .75rem; opacity: .85; }
.store-logo { width: 28px; height: 28px; }
.store.is-emph { order: -1; box-shadow: 0 0 0 4px var(--yellow); }
.store.is-secondary { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); min-height: 50px; font-size: .95rem; }

/* ---------- כללי נסיעה ---------- */
.rules {
  list-style: none; padding: 4px 16px 12px; margin: 24px -16px 0;
  display: grid; grid-auto-flow: column; grid-auto-columns: 84%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.rules::-webkit-scrollbar { display: none; }
.rule { scroll-snap-align: center; position: relative; display: grid; perspective: 1200px; }

/* כרטיס שמתהפך: מקדימה הכלל, מאחור "למה זה חשוב" */
.rule-card {
  width: 100%; padding: 0; border: 0; background: none; font: inherit; color: inherit; text-align: start;
  cursor: pointer; border-radius: var(--radius); display: grid;
}
.rule-inner {
  display: grid; min-height: 250px; border-radius: var(--radius);
  transform-style: preserve-3d; transition: transform .55s cubic-bezier(.3, .8, .3, 1);
}
.rule-card[aria-expanded="true"] .rule-inner { transform: rotateY(180deg); }
.rule-face {
  grid-area: 1 / 1; border-radius: var(--radius); padding: 22px 20px;
  display: grid; gap: 8px; align-content: start;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
  box-shadow: var(--shadow);
}
.rule-front { background: #fff; border: 3px solid transparent; transition: border-color .2s; }
.rule-card:hover .rule-front { border-color: color-mix(in srgb, var(--c) 45%, #fff); }
.rule-card.is-seen .rule-front { border-color: var(--c); }
.rule-back {
  transform: rotateY(180deg);
  background: color-mix(in srgb, var(--c) 22%, #fff); border: 3px solid var(--c);
  align-content: center;
}
.rule-num {
  position: absolute; top: 16px; inset-inline-end: 16px;
  width: 36px; height: 36px; border-radius: 50%; border: 4px solid var(--c); background: #fff;
  display: grid; place-items: center; font-weight: 900;
}
.rule-num .icon { display: none; width: 18px; height: 18px; stroke-width: 3; }
.rule-card.is-seen .rule-num { background: var(--c); color: var(--ink); animation: pop .3s; }
.rule-card.is-seen .rule-num b { display: none; }
.rule-card.is-seen .rule-num .icon { display: block; }
.rule-icon {
  width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, #fff); color: var(--ink);
}
.rule-icon .icon { width: 34px; height: 34px; }
.rule-title { font-size: 1.25rem; font-weight: 700; margin-top: 6px; }
.rule-text { color: var(--ink-2); }
.rule-why-pill {
  justify-self: start; align-self: end; margin-top: 8px;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px;
  background: var(--purple); color: #fff; font-weight: 700; font-size: .95rem;
}
.rule-back-icon { width: 52px; height: 52px; border-radius: 50%; background: #fff; display: grid; place-items: center; }
.rule-back-icon .icon { width: 28px; height: 28px; }
.rule-back-title { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.rule-why { font-size: 1.08rem; line-height: 1.55; color: var(--ink); }
.rule-back-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .9rem; font-weight: 500; color: var(--purple); }
.rule-back-link .icon { width: 18px; height: 18px; }

.rules-hint { display: flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--ink-2); }
.rules-hint .icon { width: 20px; height: 20px; color: var(--purple); }
.rules-progress { display: flex; align-items: center; gap: 12px; margin-top: 14px; }
.rules-count { font-weight: 700; color: var(--purple); flex: none; }
.rules-bar { flex: 1; height: 10px; border-radius: 5px; background: var(--line); overflow: hidden; }
.rules-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: var(--purple); transition: width .3s; }
.rules-done {
  display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 16px;
  color: var(--green); font-weight: 700; font-size: 1.1rem; animation: pop .4s;
}
.rules-done .icon { width: 26px; height: 26px; stroke-width: 3; }

/* בלי אנימציות: הכרטיס מתחלף מיד, בלי סיבוב */
@media (prefers-reduced-motion: reduce) {
  .rule-inner { transition: none; }
  .rule-card[aria-expanded="true"] .rule-inner { transform: none; }
  .rule-card[aria-expanded="true"] .rule-front, .rule-card[aria-expanded="false"] .rule-back { visibility: hidden; }
  .rule-back { transform: none; }
}
.reduce-motion .rule-inner { transition: none; }
.reduce-motion .rule-card[aria-expanded="true"] .rule-inner { transform: none; }
.reduce-motion .rule-card[aria-expanded="true"] .rule-front, .reduce-motion .rule-card[aria-expanded="false"] .rule-back { visibility: hidden; }
.reduce-motion .rule-back { transform: none; }
.rules-dots { display: flex; justify-content: center; gap: 8px; margin-top: 6px; }
.rules-dots span { width: 10px; height: 10px; border-radius: 5px; background: var(--line); transition: width .2s; }
.rules-dots span.is-seen { background: #b7b1d6; }
.rules-dots span.is-on { width: 28px; background: var(--purple); }
@media (min-width: 760px) {
  .rules { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); overflow: visible; margin: 24px 0 0; padding: 0; }
  .rules-dots { display: none; }
}
@media (min-width: 1000px) { .rules { grid-template-columns: repeat(3, 1fr); } }

/* ---------- שאלון ---------- */
.big-badge {
  width: 96px; height: 96px; border-radius: 50%; background: var(--yellow); color: var(--purple);
  display: grid; place-items: center; margin: 16px auto 20px;
}
.big-badge .icon { width: 50px; height: 50px; }
.quiz { max-width: 720px; }
.quiz-count { font-weight: 700; color: var(--purple); }
.quiz-track {
  list-style: none; padding: 0; margin: 10px 0 22px; display: flex; align-items: center; gap: 0;
}
.quiz-track li {
  width: 20px; height: 20px; border-radius: 50%; border: 4px solid var(--line); background: #fff; flex: none;
}
.quiz-track li + li { margin-inline-start: 0; }
.quiz-track li:not(:last-child)::after { content: none; }
.quiz-track li:not(:first-child) { position: relative; margin-inline-start: 36px; }
.quiz-track li:not(:first-child)::before {
  content: ''; position: absolute; top: 4px; inset-inline-end: calc(100% + 4px); width: 36px; height: 4px; background: var(--line);
}
.quiz-track li.is-done { background: var(--purple); border-color: var(--purple); }
.quiz-track li.is-done + li::before, .quiz-track li.is-done + li.is-done::before { background: var(--purple); }
.quiz-track li.is-current:not(.is-done) { border-color: var(--purple); background: var(--yellow); }
.quiz-q { font-size: clamp(1.4rem, 1rem + 2vw, 2rem); color: var(--ink); }
.answers { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 760px) { .answers { grid-template-columns: 1fr 1fr; } }
.answer {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  width: 100%; min-height: 72px; padding: 12px 14px; text-align: start;
  background: #fff; border: 2.5px solid var(--line); border-radius: var(--radius-sm);
  font-size: 1.05rem; font-weight: 500; transition: border-color .15s, background-color .15s, transform .15s;
}
.answer-letter {
  width: 38px; height: 38px; border-radius: 50%; background: var(--purple-soft); color: var(--purple);
  display: grid; place-items: center; font-weight: 700;
}
.answer-mark { width: 32px; height: 32px; display: grid; place-items: center; }
.answer-mark .icon { width: 26px; height: 26px; stroke-width: 3; }
@media (hover: hover) { .answer:hover:not(:disabled) { border-color: var(--purple); background: #fbfaff; } }
.answer.is-correct { border-color: var(--green); background: #e8f6ec; color: var(--ink); opacity: 1; animation: pop .35s ease; }
.answer.is-correct .answer-letter { background: var(--green); color: #fff; }
.answer.is-correct .answer-mark { color: var(--green); }
.answer.is-wrong { border-color: var(--red); border-style: dashed; background: #fdeced; animation: shake .35s ease; }
.answer.is-wrong .answer-letter { background: var(--red); color: #fff; }
.answer.is-wrong .answer-mark { color: var(--red); }
.answer:disabled { cursor: default; }
.quiz .answer:disabled:not(.is-correct):not(.is-wrong) { opacity: .55; }
@keyframes shake { 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.feedback {
  min-height: 56px; margin-top: 16px; display: flex; align-items: center; gap: 10px;
  font-size: 1.2rem; font-weight: 700;
}
.feedback.is-good { color: var(--green); }
.feedback.is-good .icon { width: 30px; height: 30px; stroke-width: 3; }
.feedback.is-bad { color: var(--red); }

/* ---------- חגיגה ---------- */
.celebrate { position: relative; width: 200px; height: 200px; margin: 8px auto 12px; }
.celebrate.small { width: 150px; height: 150px; }
.celebrate span {
  position: absolute; top: 50%; left: 50%; width: 44%; height: 16px; border-radius: 8px; background: var(--c);
  transform-origin: 0 50%;
  transform: rotate(calc(var(--i) * 45deg - 90deg)) translateX(38%);
  animation: burst .7s cubic-bezier(.3,1.5,.5,1) both; animation-delay: calc(var(--i) * 45ms);
}
.celebrate.small span { height: 12px; }
@keyframes burst { from { transform: rotate(calc(var(--i) * 45deg - 90deg)) translateX(0) scaleX(0); } }
.celebrate-badge {
  position: absolute; inset: 28%; border-radius: 50%; background: var(--purple); color: var(--yellow);
  display: grid; place-items: center; animation: pop .5s .3s cubic-bezier(.3,1.6,.5,1) both;
  box-shadow: 0 0 0 8px #fff;
}
.celebrate-badge .icon { width: 55%; height: 55%; stroke-width: 3; }

/* ---------- סיום ---------- */
.finish-head { text-align: center; }
.finish-head .lead { margin: 0 auto; }
.finish-main {
  margin: 28px auto 0; max-width: 560px; text-align: center;
  background: var(--purple); color: #fff; border-radius: var(--radius); padding: 28px 22px;
  display: grid; gap: 10px; justify-items: center; box-shadow: var(--shadow);
}
.finish-main h2 { font-size: 1.35rem; font-weight: 700; }
.finish-main p { opacity: .9; max-width: 40ch; }
.finish-main .btn-primary { background: var(--yellow); color: var(--ink); box-shadow: 0 4px 0 #c9af00; margin-top: 6px; }
.finish-main .btn-primary:hover { background: #ffe733; }
.finish-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple);
}
.finish-main .finish-icon { background: rgb(255 255 255 / .14); color: var(--yellow); }
.finish-icon .icon { width: 34px; height: 34px; }
.finish-secondary {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 20px; margin-top: 18px;
}
.finish-secondary .link { color: var(--ink-2); font-weight: 400; min-height: 44px; }

/* הערה במסך Moovit: ההורדה מחכה בסוף */
.later-note {
  display: flex; align-items: center; gap: 10px; margin-top: 20px; padding: 14px 18px;
  background: var(--purple-soft); color: var(--purple); border-radius: var(--radius-sm); font-weight: 500;
}
.later-note .icon { width: 26px; height: 26px; }

/* מסך התעודה: הצעד הבא */
.next-step {
  margin: 28px auto 0; max-width: 640px; text-align: center;
  background: #fff; border-radius: var(--radius); padding: 24px 18px; box-shadow: var(--shadow);
  display: grid; gap: 8px; justify-items: center; border-top: 8px solid #f5831f;
}
.next-step h2 { font-size: 1.25rem; font-weight: 700; }
.next-step p { color: var(--ink-2); max-width: 44ch; margin-bottom: 8px; }
.modal-body .stores { margin-top: 6px; }

/* ---------- טופס ---------- */
.form { margin-top: 22px; display: grid; gap: 16px; background: #fff; padding: 22px 18px; border-radius: var(--radius); box-shadow: var(--shadow); }
.field-row { display: grid; gap: 16px; }
@media (min-width: 560px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.req { color: var(--red); }
.field input:not([type="checkbox"]) {
  min-height: 54px; padding: 0 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff;
  font-size: 1.05rem;
}
.field input[dir="ltr"] { text-align: right; }
.field input[dir="ltr"]:not(:placeholder-shown) { text-align: left; }
.field input:focus-visible { border-color: var(--purple); border-radius: 12px; }
.field input[aria-invalid="true"] { border-color: var(--red); background: #fff7f7; }
.field-err { color: var(--red); font-size: .9rem; font-weight: 500; min-height: 0; }
.field-err:empty { display: none; }
.field-err::before { content: '⚠ '; }
.field-check { grid-template-columns: auto 1fr; align-items: start; gap: 10px; }
.field-check input { width: 26px; height: 26px; margin: 2px 0 0; accent-color: var(--purple); }
.field-check label { font-weight: 400; }
.field-check .field-err { grid-column: 1 / -1; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- תעודה ---------- */
.cert-preview {
  margin-top: 20px; min-height: 200px; display: grid; place-items: center;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; overflow: hidden;
}
.cert-preview img { width: 100%; height: auto; border-radius: 8px; }
.cert-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 18px; }
@media (max-width: 559px) { .cert-actions .btn { flex: 1 1 100%; } }
.spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 6px solid var(--purple-soft); border-top-color: var(--purple); animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- שגיאה ---------- */
.error-card {
  height: 100%; min-height: 320px; display: grid; place-content: center; justify-items: center; gap: 10px;
  text-align: center; padding: 28px 18px; background: #fff; color: var(--ink);
}
.error-card h2 { font-size: 1.5rem; font-weight: 700; color: var(--purple); }
.error-card p { color: var(--ink-2); }
.error-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.error-lines { display: flex; gap: 6px; margin-bottom: 6px; }
.error-lines span { width: 34px; height: 10px; border-radius: 5px; background: #8f87c1; }
.error-lines span:nth-child(2) { width: 10px; background: var(--yellow); }
.error-lines span:nth-child(3) { background: #f5831f; }

/* ---------- מודאלים ---------- */
.modal {
  border: 0; padding: 0; background: transparent; max-width: min(640px, calc(100vw - 24px)); width: 100%;
  max-height: calc(100dvh - 24px);
}
.modal::backdrop { background: rgb(29 22 64 / .55); }
.modal-box { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.modal-head h2 { font-size: 1.35rem; font-weight: 700; color: var(--purple); }
.modal-body { display: grid; gap: 10px; color: var(--ink-2); }
.resume-box { text-align: center; padding: 28px 22px; }
.resume-box h2 { font-size: 1.4rem; font-weight: 700; color: var(--purple); margin-bottom: 6px; }
.resume-box p { color: var(--ink-2); }
.resume-lines { display: flex; justify-content: center; gap: 6px; margin-bottom: 16px; }
.resume-lines span { width: 40px; height: 10px; border-radius: 5px; background: #0079c1; }
.resume-lines span:nth-child(2) { width: 10px; background: var(--yellow); }
.resume-lines span:nth-child(3) { background: #96c94b; }
.resume-actions { display: grid; gap: 10px; margin-top: 20px; }

/* ---------- תחתית ---------- */
.site-footer { background: #fff; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 22px 16px 28px;
  display: grid; gap: 14px; justify-items: center; text-align: center; font-size: .9rem;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-brand img:first-child { height: 32px; width: auto; }
.footer-brand img:last-child { height: 48px; width: auto; }
.footer-hotline a { font-weight: 700; text-decoration: none; }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; }
.footer-links .link { color: var(--ink-2); font-weight: 400; min-height: 32px; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: auto 1fr auto; text-align: start; justify-items: start; align-items: center; }
  .footer-hotline { justify-self: center; }
  .site-footer { padding-bottom: 76px; } /* מקום לכפתור ה-WhatsApp הצף */
}
@media (max-width: 759px) { body.has-actionbar .site-footer { margin-bottom: 0; } }

/* ---------- העדפות נגישות ---------- */
.hc {
  --ink: #000; --ink-2: #1a1a1a; --line: #1a1a1a; --bg: #fff; --purple: #2e1f78; --purple-soft: #e6e1fa;
}
.hc .audience-card, .hc .fact-card, .hc .step, .hc .rule-face, .hc .moovit-step, .hc .map-card,
.hc .next-step, .hc .form { box-shadow: 0 0 0 2px #000; }
.hc .lead, .hc .step p, .hc .rule p, .hc .fact-text { color: #000; }
.underline-links a, .underline-links .link { text-decoration: underline 2px; text-underline-offset: 4px; }
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- אדם: הבוט ---------- */
.adam-fab {
  position: fixed; z-index: 46;
  inset-inline-start: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  padding: 5px 18px 5px 5px; border: 0; border-radius: 999px;
  background: var(--purple); color: #fff; font-weight: 700;
  box-shadow: 0 6px 24px rgb(29 22 64 / .25);
  transition: transform .2s ease;
}
.adam-fab img { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--yellow); object-fit: cover; }
.adam-fab:hover { transform: translateY(-2px); }
@media (max-width: 759px) {
  /* במובייל: התמונה של אדם עם "שאלו את אדם", מעל סרגל הפעולה ומעל כפתור ה-WhatsApp */
  .adam-fab { padding: 4px 14px 4px 4px; gap: 8px; font-size: .95rem; bottom: calc(96px + env(safe-area-inset-bottom)); }
  body.has-actionbar .adam-fab { bottom: calc(var(--bar-h) + 14px + env(safe-area-inset-bottom)); }
  .adam-fab img { width: 48px; height: 48px; }
}
body.adam-open { overflow: hidden; }
@media (min-width: 760px) { body.adam-open { overflow: auto; } }

.adam-panel {
  position: fixed; z-index: 150; inset: 0;
  display: flex; flex-direction: column;
  background: var(--bg);
}
@media (min-width: 760px) {
  .adam-panel {
    inset: auto; inset-inline-start: 16px; bottom: 16px;
    width: 390px; height: min(620px, calc(100dvh - 120px));
    border-radius: var(--radius); overflow: hidden;
    box-shadow: 0 20px 60px rgb(29 22 64 / .3), 0 0 0 1px var(--line);
  }
}
.adam-head {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--purple); color: #fff;
}
.adam-avatar { width: 44px; height: 44px; border-radius: 50%; border: 3px solid var(--yellow); object-fit: cover; }
.adam-id { flex: 1; min-width: 0; }
.adam-id h2 { font-size: 1.15rem; font-weight: 700; line-height: 1.2; }
.adam-id p { font-size: .82rem; opacity: .85; }
.adam-head .icon-btn { background: rgb(255 255 255 / .14); color: #fff; }
.adam-head .icon-btn:hover { background: rgb(255 255 255 / .25); }

.adam-log { flex: 1; overflow-y: auto; padding: 16px 12px; display: flex; flex-direction: column; gap: 10px; }
.adam-msg { display: flex; align-items: flex-end; gap: 8px; max-width: 88%; }
.adam-msg.is-user { align-self: flex-end; }
.adam-msg.is-bot { align-self: flex-start; }
.adam-mini { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; }
.adam-bubble {
  padding: 10px 14px; border-radius: 18px; line-height: 1.55; font-size: 1rem;
  overflow-wrap: anywhere;
}
.is-bot .adam-bubble { background: #fff; color: var(--ink); border-end-start-radius: 6px; box-shadow: 0 1px 2px rgb(29 22 64 / .08); }
.is-user .adam-bubble { background: var(--purple); color: #fff; border-end-end-radius: 6px; }
.is-error .adam-bubble { background: #fff7f7; box-shadow: inset 0 0 0 1.5px #f3c2c5; }
.adam-status { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-2); font-size: .92rem; }
.adam-status .icon { width: 18px; height: 18px; }
.adam-typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.adam-typing i { width: 7px; height: 7px; border-radius: 50%; background: #b7b1d6; animation: adam-dot 1s infinite; }
.adam-typing i:nth-child(2) { animation-delay: .15s; }
.adam-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes adam-dot { 50% { transform: translateY(-4px); background: var(--purple); } }

.adam-suggest { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 12px 10px; }
.adam-suggest:empty { display: none; }
.adam-chip {
  border: 1.5px solid #cfc8ee; background: #fff; color: var(--purple);
  border-radius: 999px; padding: 8px 12px; font-size: .9rem; font-weight: 500; text-align: start;
}
.adam-chip:hover { background: var(--purple-soft); }

.adam-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 12px; background: #fff; border-top: 1px solid var(--line); }
.adam-form textarea {
  flex: 1; resize: none; min-height: 48px; max-height: 120px; padding: 12px 14px;
  border: 2px solid var(--line); border-radius: 16px; font-size: 1rem; line-height: 1.4;
}
.adam-form textarea:focus-visible { border-color: var(--purple); border-radius: 16px; }
.adam-send {
  width: 48px; height: 48px; flex: none; border: 0; border-radius: 50%;
  background: var(--purple); color: #fff; display: grid; place-items: center;
}
.adam-send:disabled { background: #cfcbe0; cursor: default; }
.adam-send .icon { width: 24px; height: 24px; }
.adam-foot {
  padding: 6px 12px calc(10px + env(safe-area-inset-bottom)); background: #fff;
  font-size: .78rem; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
}
.adam-wa { display: inline-flex; align-items: center; gap: 4px; color: #157a3f; font-weight: 700; text-decoration: none; }
.adam-wa .icon { width: 16px; height: 16px; }
.hc .adam-bubble { box-shadow: 0 0 0 1.5px #000; }

/* אדם: קול */
.adam-mic {
  width: 48px; height: 48px; flex: none; border: 2px solid #cfc8ee; border-radius: 50%;
  background: #fff; color: var(--purple); display: grid; place-items: center;
}
.adam-mic .icon { width: 24px; height: 24px; }
.adam-mic[aria-pressed="true"] {
  background: #d42a33; border-color: #d42a33; color: #fff;
  animation: adam-pulse 1.2s ease-in-out infinite;
}
@keyframes adam-pulse { 50% { box-shadow: 0 0 0 8px rgb(212 42 51 / .2); } }
.adam-voice-status { padding: 0 12px; background: #fff; color: var(--purple); font-weight: 500; font-size: .9rem; }
.adam-voice-status:empty { display: none; }
.adam-head .adam-voice[aria-pressed="true"] { background: var(--yellow); color: var(--ink); }
.adam-speak {
  align-self: center; flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: transparent; color: var(--ink-2); display: grid; place-items: center;
}
.adam-speak:hover { background: var(--purple-soft); color: var(--purple); }
.adam-speak .icon { width: 20px; height: 20px; }
