/* Logicar — דף נחיתה: הרכיבים החיים (פתיחה, סייר התחומים, הדרך של רכב, מספרים, רקעים).
   כל תנועה כאן נעצרת ב-prefers-reduced-motion וב"עצירת אנימציות" שבתפריט הנגישות. */

.rel { position: relative; }
.bgfx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.sec.dark, .stats { position: relative; overflow: hidden; }

/* גילוי בגלילה: רק כש-JS קבע שמותר לנוע */
html.motion [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
html.motion [data-reveal].in { opacity: 1; transform: none; }
html.a11y-still [data-reveal] { opacity: 1 !important; transform: none !important; }

/* הטיה עדינה בריחוף */
@media (hover: hover) {
  .tilt { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease; will-change: transform; }
  html.motion [data-reveal].tilt.in { transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .18s ease, opacity .6s ease; }
}

/* ───────── פתיחה ───────── */
.hero { padding-bottom: 64px; }
.hero-in { grid-template-areas: "text" "stage" "form"; }
.hero-text { grid-area: text; }
.lead#demo { grid-area: form; }
.hero-stage { grid-area: stage; position: relative; width: min(300px, 78%); margin: 6px auto 4px; aspect-ratio: 120 / 124; --px: 0; --py: 0; }
.dial { display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
.dial .track { stroke: rgba(255, 255, 255, .16); }
.dial .zone { stroke: var(--orange); }
.dial .zone-end { fill: var(--orange); }
.dial .ticks { stroke: rgba(255, 255, 255, .35); }
.dial .needle { transform-box: view-box; transform-origin: 60px 62px; transform: rotate(var(--needle, 0deg)); transition: transform .5s cubic-bezier(.2, .9, .25, 1.15); }
.dial .needle line { stroke: #fff; }
.dial .hub { fill: var(--orange); }
.chip { position: absolute; z-index: 2; transform: translate(calc(var(--px) * var(--d, 0) * 1px), calc(var(--py) * var(--d, 0) * 1px)); transition: transform .35s ease-out; }
.chip-in { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; padding: 9px 14px; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .7); }
.chip .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot.new { background: #2563eb; } .dot.ok { background: #16a34a; } .dot.pay { background: var(--orange); }
.chip-in.bars { flex-direction: column; align-items: stretch; gap: 6px; border-radius: 14px; padding: 10px 12px; font-size: .8rem; }
.minibars { display: flex; align-items: flex-end; gap: 5px; height: 38px; }
.minibars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: var(--ink); }
.minibars i:last-child { background: var(--orange); }
.c1 { top: -4%; inset-inline-start: -10%; }
.c2 { top: 30%; inset-inline-end: -14%; }
.c3 { bottom: 16%; inset-inline-start: -12%; }
.c4 { bottom: -6%; inset-inline-end: -4%; }
@media (prefers-reduced-motion: no-preference) {
  .chip-in { animation: drift 6s ease-in-out infinite; }
  .c2 .chip-in { animation-duration: 7.5s; animation-delay: -2s; }
  .c3 .chip-in { animation-duration: 8.5s; animation-delay: -4s; }
  .c4 .chip-in { animation-duration: 7s; animation-delay: -1s; }
  @keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
}
@media (min-width: 760px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) minmax(0, 380px); grid-template-areas: "text form" "stage form"; align-items: center; }
  .hero-stage { margin: 26px auto 0; }
}
@media (min-width: 1100px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) 270px minmax(0, 370px); grid-template-areas: "text stage form"; gap: 44px; }
  .hero-stage { width: 270px; margin: 0; }
  .hero h1 { font-size: clamp(2.3rem, 3.7vw, 3.35rem); }
}

/* ───────── פס שמות ───────── */
.ticker { background: var(--orange); color: var(--ink); overflow: hidden; padding: 12px 0; direction: ltr; }
.ticker-run { display: flex; width: max-content; gap: 0; font-weight: 700; font-size: 1.02rem; }
.ticker-run span { padding: 0 22px; white-space: nowrap; position: relative; direction: rtl; }
.ticker-run span::after { content: ""; position: absolute; inset-inline-start: -4px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--ink); }
@media (prefers-reduced-motion: no-preference) {
  .ticker-run { animation: tick 38s linear infinite; }
  @keyframes tick { to { transform: translateX(-50%); } }
}

/* ───────── סייר התחומים ───────── */
.xp { margin-top: 34px; display: grid; gap: 18px; }
.xp-tiles { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.xp-tile { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 6px; width: 104px; min-height: 96px; padding: 12px 6px 10px; border: 2px solid var(--line); border-radius: 18px; background: #fff; cursor: pointer; font-weight: 700; font-size: .9rem; line-height: 1.2; text-align: center; color: var(--ink); transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease; }
.xp-tile svg { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.xp-tile .acc { stroke: var(--orange); }
.xp-tile:hover { border-color: var(--ink); transform: translateY(-2px); }
.xp-tile[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.xp-tile .add { font-size: .7rem; font-weight: 700; color: var(--orange-deep); }
.xp-tile[aria-selected="true"] .add { color: #ffb37a; }
.xp-device { border-radius: 22px; background: var(--ink); padding: 0 0 2px; box-shadow: 0 40px 70px -40px rgba(17, 24, 39, .75); min-width: 0; }
.xp-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; color: #fff; flex-wrap: wrap; }
.xp-bar i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.xp-bar i:first-child { background: var(--orange); }
.xp-bar strong { margin-inline-start: 8px; font-size: 1.05rem; }
.xp-bar span { color: #b9c2d0; font-size: .92rem; }
.xp-body { margin: 0 2px; background: var(--fog); border-radius: 0 0 20px 20px; padding: 18px 14px 20px; min-height: 560px; display: grid; align-content: start; gap: 14px; }
.xp-body > * { animation: xin .35s ease both; }
@keyframes xin { from { opacity: 0; transform: translateY(8px); } }
.xp-note { font-size: .86rem; color: var(--steel); }
@media (min-width: 900px) {
  .xp { grid-template-columns: 330px minmax(0, 1fr); gap: 26px; align-items: start; }
  .xp-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; min-width: 0; }
  .xp-tile { width: auto; min-width: 0; }
  .xp-body { padding: 26px 26px 28px; min-height: 580px; }
}

/* רכיבים משותפים בתוך הסייר */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.seg button, .pill { min-height: 42px; padding: 0 16px; border-radius: 999px; border: 2px solid var(--line); background: #fff; font-weight: 700; font-size: .95rem; cursor: pointer; color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.act { min-height: 46px; padding: 0 20px; border-radius: 12px; border: 0; background: var(--orange); color: var(--ink); font-weight: 700; font-size: 1rem; cursor: pointer; justify-self: start; }
.act:hover { background: #ff8a33; }
.act.ghost { background: #fff; box-shadow: inset 0 0 0 2px var(--line); }
.act:disabled { opacity: .5; cursor: not-allowed; }
.card { background: #fff; border-radius: 14px; padding: 14px 16px; box-shadow: 0 1px 0 rgba(17, 24, 39, .06); }
.big { font-size: clamp(1.9rem, 6vw, 2.6rem); font-weight: 700; line-height: 1.1; letter-spacing: -.5px; }
.lbl { font-size: .86rem; font-weight: 700; color: var(--steel); }
input[type="range"].rng { width: 100%; accent-color: var(--orange); min-height: 34px; direction: ltr; }

/* מלאי */
.rows { display: grid; gap: 8px; }
.row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 12px; background: #fff; border-radius: 12px; padding: 8px 12px; transition: opacity .25s ease, transform .25s ease; }
.row[hidden] { display: none !important; }
.row svg { width: 54px; height: 24px; }
.row strong { display: block; font-size: .98rem; line-height: 1.25; }
.row small { color: var(--steel); font-size: .82rem; }
.row b { font-size: .98rem; white-space: nowrap; }
/* תמחור */
.meter { height: 16px; border-radius: 999px; background: #dbe1ea; overflow: hidden; }
.meter i { display: block; height: 100%; width: var(--w, 0%); border-radius: 999px; background: var(--orange); transition: width .3s ease, background-color .3s ease; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
/* לידים */
.cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.col { background: #e1e6ee; border-radius: 12px; padding: 8px; min-height: 170px; display: grid; align-content: start; gap: 6px; }
.col h4 { margin: 0 0 2px; font-size: .86rem; display: flex; justify-content: space-between; }
.lc { background: #fff; border-radius: 9px; padding: 7px 9px; font-size: .84rem; line-height: 1.3; border-inline-start: 4px solid var(--orange); }
.lc small { display: block; color: var(--steel); }
.lc.pop { animation: pop .4s ease; }
@keyframes pop { from { transform: scale(.85); opacity: .3; } }
/* תחרות */
.board { display: grid; gap: 8px; }
.pl { display: grid; grid-template-columns: 26px 64px 1fr 34px; align-items: center; gap: 10px; background: #fff; border-radius: 12px; padding: 9px 12px; font-weight: 700; }
.pl .rank { width: 26px; height: 26px; border-radius: 50%; background: var(--fog); display: grid; place-items: center; font-size: .82rem; }
.pl:first-child .rank { background: var(--orange); }
.pl .bar { height: 12px; border-radius: 999px; background: #dbe1ea; overflow: hidden; }
.pl .bar i { display: block; height: 100%; width: var(--w); background: var(--ink); border-radius: 999px; transition: width .4s ease; }
.pl:first-child .bar i { background: var(--orange); }
/* מסמך וחתימה */
.paper { background: #fff; border-radius: 12px; padding: 16px; display: grid; gap: 8px; }
.paper .ln { height: 9px; border-radius: 5px; background: #e3e8ef; }
.paper .ln.s { width: 60%; } .paper .ln.t { width: 40%; height: 13px; background: #c9d1dd; }
.pad { position: relative; margin-top: 6px; border: 2px dashed #9aa5b5; border-radius: 12px; background: #fbfcfe; height: 130px; }
.pad canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: crosshair; border-radius: 10px; }
.pad span { position: absolute; inset: auto 0 8px 0; text-align: center; font-size: .84rem; color: var(--steel); pointer-events: none; }
.stamp { font-weight: 700; color: #0b6b3a; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
/* דוחות */
.chart { width: 100%; height: auto; display: block; }
.chart rect { fill: var(--ink); transform-box: fill-box; transform-origin: bottom; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.chart rect.hi { fill: var(--orange); }
.chart polyline { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; transition: stroke-dashoffset 1s ease; }
/* AI */
.scan { display: grid; grid-template-columns: 112px 1fr; gap: 14px; align-items: start; }
.rcpt { position: relative; background: #fff; border-radius: 8px; padding: 12px 10px; display: grid; gap: 7px; overflow: hidden; }
.rcpt .ln { height: 7px; border-radius: 4px; background: #dfe4ec; }
.rcpt .ln.s { width: 55%; }
.rcpt::after { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--orange); box-shadow: 0 0 14px 4px rgba(249, 115, 22, .5); opacity: 0; }
.rcpt.go::after { opacity: 1; animation: scan 1.3s ease-in-out 2; }
@keyframes scan { 0% { transform: translateY(0); } 50% { transform: translateY(150px); } 100% { transform: translateY(0); } }
.fields { display: grid; gap: 8px; }
.fld { background: #fff; border-radius: 10px; padding: 7px 12px; min-height: 52px; }
.fld b { display: block; min-height: 1.4em; }
/* הרשאות */
.menu { display: grid; gap: 6px; }
.mi { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 10px; padding: 9px 12px; font-weight: 700; transition: opacity .25s ease, transform .25s ease; }
.mi::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); }
.mi.off { opacity: .32; transform: translateX(-10px); text-decoration: line-through; }
.mi.off::before { background: #9aa5b5; }
/* אתר */
.browser { background: #fff; border-radius: 12px; overflow: hidden; }
.browser .url { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: #dfe4ec; font-size: .82rem; direction: ltr; color: var(--steel); }
.browser .url i { width: 9px; height: 9px; border-radius: 50%; background: #aab3c1; }
.sitegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 10px; }
.sc { position: relative; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px; font-size: .84rem; line-height: 1.3; }
.sc svg { width: 100%; height: 34px; }
.sc.new { border-color: var(--orange); animation: pop .5s ease; }
.sc.new::after { content: "חדש"; position: absolute; top: 6px; inset-inline-start: 6px; background: var(--orange); font-weight: 700; font-size: .72rem; padding: 1px 8px; border-radius: 999px; }
@media (min-width: 560px) { .sitegrid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ───────── מספרים ───────── */
.stats { background: var(--ink-2); color: #fff; padding: 46px 0; }
.stats-in { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stats-in li { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); border-radius: 18px; padding: 18px 16px; display: grid; gap: 2px; }
.stats-in b { font-size: clamp(2.4rem, 8vw, 3.6rem); line-height: 1; color: var(--orange); font-weight: 700; font-variant-numeric: tabular-nums; }
.stats-in span { color: #dbe2ec; font-weight: 600; }
.stats-in b span { color: inherit; font-weight: inherit; }
@media (min-width: 900px) { .stats-in { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* ───────── הדרך של רכב ───────── */
.story { background: var(--fog); height: 420vh; position: relative; }
.story-pin { position: sticky; top: 0; height: 100vh; display: grid; align-content: center; overflow: hidden; padding: 20px 0; }
.road { position: relative; margin-top: 46px; height: 132px; direction: rtl; }
.road-line { position: absolute; inset: 64px 0 auto 0; height: 22px; border-radius: 12px; background: var(--ink); }
.road-line::after { content: ""; position: absolute; inset: 9px 14px auto 14px; height: 4px; background: repeating-linear-gradient(90deg, #fff 0 18px, transparent 18px 34px); opacity: .55; }
.road-fill { position: absolute; top: 64px; inset-inline-start: 0; height: 22px; width: calc(9% + var(--p, 0) * 82%); border-radius: 12px; background: var(--orange); opacity: .9; }
.road-car { position: absolute; top: 14px; inset-inline-start: calc(9% + var(--p, 0) * 82%); width: 96px; margin-inline-start: -48px; transform: scaleX(-1); filter: drop-shadow(0 8px 8px rgba(17, 24, 39, .3)); }
.road-car svg { display: block; }
.road-stops { position: absolute; inset: 0; }
.road-stops li { position: absolute; top: 60px; inset-inline-start: calc(9% + var(--i) * 16.4%); width: 60px; margin-inline-start: -30px; display: grid; justify-items: center; gap: 28px; font-weight: 700; font-size: .84rem; color: var(--steel); transition: color .3s ease; }
.road-stops li::before { content: ""; width: 30px; height: 30px; border-radius: 50%; background: #fff; border: 5px solid var(--ink); transition: background-color .3s ease, transform .3s ease, border-color .3s ease; }
.road-stops li.on { color: var(--ink); }
.road-stops li.on::before { background: var(--orange); transform: scale(1.18); }
.story-cap { margin-top: 26px; min-height: 96px; background: #fff; border-radius: 18px; padding: 18px 20px; max-width: 520px; display: grid; gap: 2px; border-inline-start: 6px solid var(--orange); }
.story-cap strong { font-size: 1.5rem; font-family: var(--display); }
.story-cap span { color: var(--steel); }
.story-list { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.story.static { height: auto; }
.story.static .story-pin { position: static; height: auto; padding: 68px 0; }
.story.static .story-cap, .story.static .road-car, .story.static .road-fill { display: none; }
.story.static .story-list { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin-top: 22px; display: grid; gap: 10px; counter-reset: s; }
.story.static .story-list li { background: #fff; border-radius: 12px; padding: 12px 16px; }
.story.static .story-list strong { margin-inline-end: 8px; }
@media (min-width: 900px) { .road-stops li { font-size: 1rem; width: 90px; margin-inline-start: -45px; } .road-car { width: 124px; margin-inline-start: -62px; top: 0; } .story-cap { margin-top: 34px; } }
@media (prefers-reduced-motion: reduce) {
  .story { height: auto; } .story-pin { position: static; height: auto; padding: 68px 0; }
  .story-cap, .road-car, .road-fill { display: none; }
  .story-list { position: static; width: auto; height: auto; overflow: visible; clip: auto; margin-top: 22px; display: grid; gap: 10px; }
  .story-list li { background: #fff; border-radius: 12px; padding: 12px 16px; }
  *, *::before, *::after { animation: none !important; }
}

/* רקע חי בתוך המקטעים הכהים: התוכן מעל */
.hero .wrap, .sec.dark .wrap { position: relative; z-index: 1; }
