/* טאדאם · שפה עיצובית: הצבעים של Pieceful (קרם, כתום) וגופן המערכת של Apple, עם הרכיבים הבועתיים שלנו. בהיר תמיד */
:root {
  color-scheme: light;
  --bg: #f4efe8;
  --paper: #f4efe8;
  --warm: #eae3d8;
  --card: #fbf8f3;
  --ink: #14110f;
  --ink2: rgba(20, 17, 15, 0.66);
  --ink3: rgba(20, 17, 15, 0.52);
  --ink40: rgba(20, 17, 15, 0.42);
  --line: #d8d0c4;
  --acc-deep: #b9531f;
  --fill: rgba(20, 17, 15, 0.07);
  --accent: #d9692f;
  --accent2: #d9692f;
  --accent-soft: #f3e2d5;
  --green: #28a745;
  --green-soft: #e9f7ee;
  --orange: #c25e00;
  --orange-soft: #fff4e5;
  --red: #e5352b;
  --red-soft: #fdecea;
  --font: -apple-system, BlinkMacSystemFont, "SF Hebrew", "SF Pro Text", system-ui, "Segoe UI", Roboto, "Noto Sans Hebrew", "Arial Hebrew", sans-serif;
  --r: 18px;
  --r-lg: 26px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 6px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.05), 0 18px 50px rgba(0, 0, 0, 0.12);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  --col: 520px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none;
}
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; padding: 0; }
button:active { transform: scale(0.97); transition: transform 90ms ease-out; }
input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- סימן המותג ---------- */
.mark { display: inline-flex; align-items: center; gap: 7px; font-weight: 800; letter-spacing: -0.02em; }
.mark svg { width: 22px; height: 22px; }
.mark.lg { font-size: 30px; gap: 10px; }
.mark.lg svg { width: 34px; height: 34px; }

/* ---------- סרגל עליון ---------- */
.nav {
  position: fixed; inset-inline: 0; top: 0; z-index: 30;
  padding: calc(var(--top) + 8px) 12px 8px;
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px;
  background: rgba(244, 239, 232, 0.72); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
}
.nav .ttl { text-align: center; line-height: 1.2; min-width: 0; }
.nav .ttl small { display: block; font-size: 12px; color: var(--ink2); }
.nav .ttl b { display: block; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.78); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn.on { background: var(--accent); color: #fff; }

/* ---------- במה תלת־ממדית ---------- */
#stage {
  position: fixed; inset-inline: 0; top: 0; height: 50svh; z-index: 1;
  background: radial-gradient(120% 90% at 50% 30%, #fbf8f3 0%, #f4efe8 55%, #eae3d8 100%);
  transition: opacity 0.3s;
  touch-action: none;
}
#stage .gl { width: 100%; height: 100%; display: block; }
body.no-stage #stage { opacity: 0; pointer-events: none; height: 0; }
body.mode-build #stage { height: 100svh; }
.ring { position: absolute; top: 0; left: 0; width: 0; height: 0; pointer-events: none; opacity: 0; transition: opacity 0.3s; }
.ring.on { opacity: 1; }
.ring i {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 3px solid #fff; background: rgba(217, 105, 47, 0.28); box-shadow: 0 0 0 2px var(--accent2), 0 4px 14px rgba(0, 0, 0, 0.18);
}
.ring i::after {
  content: ""; position: absolute; inset: -12px; border-radius: 50%; border: 2.5px solid var(--accent2);
  animation: ring 1.6s var(--ease) infinite;
}
.ring b {
  position: absolute; top: -44px; left: 14px; font-size: 13px; font-weight: 700; color: #fff;
  background: var(--accent); border-radius: 999px; padding: 2px 8px; box-shadow: 0 4px 12px rgba(217, 105, 47, 0.35);
}
.ring b:empty { display: none; }
/* התג לא יוצא מהמסך: ליד הקצה הימני הוא עובר לשמאל הטבעת, ומתחת לסרגל העליון הוא יורד מתחתיה */
.ring.flip b { left: auto; right: 14px; }
.ring.low b { top: 22px; }
@keyframes ring { 0% { transform: scale(0.55); opacity: 0; } 25% { opacity: 1; } 100% { transform: scale(1.35); opacity: 0; } }
.pick-label {
  position: absolute; transform: translate(-50%, -150%) scale(0.9); opacity: 0; pointer-events: none;
  background: rgba(20, 17, 15, 0.86); color: #fff; font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px;
  backdrop-filter: blur(10px); transition: opacity 0.2s, transform 0.35s var(--ease); white-space: nowrap;
}
.pick-label.on { opacity: 1; transform: translate(-50%, -170%) scale(1); }
.hint-chip {
  position: absolute; z-index: 5; top: calc(50svh - 44px); left: 50%; transform: translateX(-50%);
  font-size: 12px; color: var(--ink2); background: rgba(255, 255, 255, 0.8); padding: 4px 10px; border-radius: 999px;
  backdrop-filter: blur(10px); pointer-events: none; transition: opacity 0.4s;
}

/* ---------- עמוד מוצר ---------- */
.page { position: relative; z-index: 2; max-width: var(--col); margin: 0 auto; }
.sheet-page {
  margin-top: calc(50svh - 22px); min-height: 60svh;
  background: var(--bg); border-radius: var(--r-lg) var(--r-lg) 0 0;
  padding: 22px 16px calc(110px + var(--bottom));
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
}
.p-head h1 { font-size: 28px; line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
.p-head .brand { font-size: 14px; color: var(--ink2); margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--fill); color: var(--ink2); }
.badge.blue { background: var(--accent-soft); color: var(--accent); }
.badge.green { background: var(--green-soft); color: #1d7a35; }
.badge.demo { background: #efe7da; color: #6b5a48; }

.seg {
  display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative;
  background: var(--fill); border-radius: 11px; padding: 2px; margin: 18px 0 18px;
}
.seg button { position: relative; z-index: 1; padding: 7px 4px; font-size: 14px; font-weight: 500; border-radius: 9px; color: var(--ink); }
.seg button[aria-selected="true"] { font-weight: 600; }
.seg .thumb { position: absolute; top: 2px; bottom: 2px; border-radius: 9px; background: var(--card); box-shadow: 0 3px 8px rgba(0, 0, 0, 0.12), 0 1px 1px rgba(0, 0, 0, 0.04); transition: transform 0.45s var(--ease); }

.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; }
.card + .card, .stack > * + * { margin-top: 12px; }
.sec-t { font-size: 13px; font-weight: 600; color: var(--ink2); margin: 22px 4px 8px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 10px; text-align: center; }
.stat b { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 12px; color: var(--ink2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 999px; padding: 7px 12px; font-size: 14px; box-shadow: var(--shadow); }
.chip svg { width: 18px; height: 18px; color: var(--ink2); }
.inv { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.inv-i { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 12px; box-shadow: var(--shadow); font-size: 14px; }
.inv-i svg { width: 26px; height: 26px; flex: none; color: var(--ink); }
.inv-i em { margin-inline-start: auto; font-style: normal; font-weight: 600; color: var(--ink2); }

.cta-bar {
  position: fixed; z-index: 20; inset-inline: 0; bottom: 0; padding: 12px 16px calc(12px + var(--bottom));
  background: linear-gradient(to top, rgba(244, 239, 232, 0.96) 60%, rgba(244, 239, 232, 0));
}
.cta-bar > div { max-width: var(--col); margin: 0 auto; display: flex; gap: 10px; }
.btn {
  text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 20px; border-radius: 14px; font-size: 17px; font-weight: 600; width: 100%;
  transition: background 0.2s, transform 0.12s;
}
.btn svg { width: 20px; height: 20px; }
.btn.primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(217, 105, 47, 0.28); }
.btn.secondary { background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.btn.tinted { background: var(--accent-soft); color: var(--accent); }
.btn.small { height: 40px; font-size: 15px; border-radius: 12px; padding: 0 14px; width: auto; }
.btn[disabled] { opacity: 0.4; pointer-events: none; }
.link { color: var(--accent); font-weight: 500; }

/* ---------- רשימות ---------- */
.list { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.row { display: flex; align-items: center; gap: 12px; padding: 14px 16px; width: 100%; text-align: start; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; inset-inline-start: 62px; inset-inline-end: 0; height: 1px; background: var(--line); }
.row .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--fill); display: grid; place-items: center; font-size: 17px; flex: none; }
.row .ic svg { width: 22px; height: 22px; }
.row .tx { flex: 1; min-width: 0; }
.row .tx b { display: block; font-weight: 600; font-size: 16px; }
.row .tx span { display: block; font-size: 13px; color: var(--ink2); }
.row .chev { color: var(--ink3); width: 18px; height: 18px; transform: scaleX(-1); }
.row:active { background: rgba(0, 0, 0, 0.03); transform: none; }
.check { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #cbc1b3; display: grid; place-items: center; transition: all 0.25s var(--ease); flex: none; }
.check svg { width: 15px; height: 15px; color: #fff; opacity: 0; transform: scale(0.4); transition: all 0.3s var(--ease); }
.row.done .check { background: var(--green); border-color: var(--green); }
.row.done .check svg { opacity: 1; transform: scale(1); }
.row.done .tx b { color: var(--ink2); }

/* ---------- מצב הרכבה ---------- */
body.mode-build { overflow: hidden; }
.build-top {
  position: fixed; z-index: 20; inset-inline: 0; top: 0; padding: calc(var(--top) + 10px) 12px 0;
  display: flex; align-items: center; gap: 8px; pointer-events: none;
}
.build-top > * { pointer-events: auto; }
.build-top .step-pill { margin-inline: auto; background: rgba(255, 255, 255, 0.82); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08); }
.step-card {
  position: fixed; z-index: 20; inset-inline: 10px; bottom: calc(10px + var(--bottom)); max-width: calc(var(--col) - 20px); margin: 0 auto;
  background: rgba(255, 255, 255, 0.84); backdrop-filter: blur(26px) saturate(180%); -webkit-backdrop-filter: blur(26px) saturate(180%);
  border-radius: 24px; box-shadow: var(--shadow-lg); padding: 14px 16px 12px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}
.progress { display: flex; gap: 4px; margin-bottom: 12px; }
.progress i { flex: 1; height: 5px; border-radius: 3px; background: rgba(0, 0, 0, 0.1); position: relative; overflow: hidden; }
.progress i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform 0.5s var(--ease); }
.progress i.done::after, .progress i.cur::after { transform: scaleX(1); }
.progress i.cur::after { background: var(--accent2); animation: cur 1.6s ease-in-out infinite; }
@keyframes cur { 50% { opacity: 0.55; } }
.step-card h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; line-height: 1.2; }
.step-card p { font-size: 15.5px; color: #3d3732; margin-top: 4px; line-height: 1.45; }
.step-card .parts { display: flex; gap: 6px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.step-card .parts::-webkit-scrollbar { display: none; }
.part-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--card); border-radius: 12px; padding: 6px 10px 6px 8px; font-size: 13.5px; box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06); }
.part-chip svg { width: 20px; height: 20px; }
.part-chip em { font-style: normal; font-weight: 700; color: var(--accent); }
.note { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; margin-top: 10px; padding: 9px 11px; border-radius: 12px; background: var(--accent-soft); color: #6e3312; }
.note.warn { background: var(--orange-soft); color: #8a4500; }
.note button { margin-inline-start: auto; font-weight: 600; color: inherit; text-decoration: underline; white-space: nowrap; }
.controls { display: grid; grid-template-columns: 1fr 56px 1fr; gap: 10px; margin-top: 12px; align-items: center; }
.controls .btn { height: 48px; font-size: 16px; white-space: nowrap; padding: 0 12px; }
.play { width: 56px; height: 48px; border-radius: 14px; background: var(--fill); display: grid; place-items: center; }
.play svg { width: 22px; height: 22px; }

/* ---------- סיום ---------- */
.done-wrap { position: fixed; inset: 0; z-index: 40; display: grid; place-items: end center; padding: 10px 10px calc(10px + var(--bottom)); pointer-events: none; }
.finish { pointer-events: auto; width: 100%; max-width: calc(var(--col) - 20px); background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); border-radius: 26px; box-shadow: var(--shadow-lg); padding: 24px 18px 16px; text-align: center; animation: rise 0.6s var(--ease); }
.finish h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; }
.finish p { color: var(--ink2); margin-top: 4px; }
.stars { display: flex; justify-content: center; gap: 6px; margin: 16px 0; direction: ltr; }
.stars button { font-size: 32px; color: #d8d0c4; transition: transform 0.3s var(--ease), color 0.2s; }
.stars button.on { color: #ffb800; transform: scale(1.12); }
.finish .btns { display: grid; gap: 8px; margin-top: 6px; }
@keyframes rise { from { transform: translateY(40px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 39; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 2.6s cubic-bezier(0.2, 0.6, 0.4, 1) forwards; }
@keyframes fall { to { transform: translate3d(var(--dx), 105vh, 0) rotate(var(--rot)); } }

/* ---------- גיליונות ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, 0.32); opacity: 0; transition: opacity 0.35s; }
.scrim.on { opacity: 1; }
.sheet {
  position: fixed; z-index: 51; inset-inline: 0; bottom: 0; max-width: var(--col); margin: 0 auto;
  max-height: 88svh; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); border-radius: 24px 24px 0 0; padding: 8px 16px calc(20px + var(--bottom));
  transform: translateY(100%); transition: transform 0.5s var(--ease); box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.15);
}
.sheet.on { transform: none; }
.sheet .grab { width: 38px; height: 5px; border-radius: 3px; background: #cbc1b3; margin: 2px auto 10px; }
.sheet-h { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet-h h3 { font-size: 22px; font-weight: 700; letter-spacing: -0.015em; flex: 1; }
.sheet-h .x { width: 32px; height: 32px; border-radius: 50%; background: var(--fill); display: grid; place-items: center; color: var(--ink2); }
.sheet-h .x svg { width: 14px; height: 14px; }
.lead { color: var(--ink2); font-size: 15px; margin: -6px 0 16px; }
.photo { position: relative; border-radius: var(--r); overflow: hidden; background: #eae3d8; aspect-ratio: 4 / 3; }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.scan::after {
  content: ""; position: absolute; inset-inline: 0; height: 36%; top: -36%;
  background: linear-gradient(to bottom, rgba(217, 105, 47, 0), rgba(217, 105, 47, 0.35), rgba(217, 105, 47, 0));
  animation: scan 1.2s ease-in-out infinite;
}
@keyframes scan { to { top: 100%; } }
.scan .dots i { position: absolute; width: 8px; height: 8px; margin: -4px; border-radius: 50%; background: var(--card); box-shadow: 0 0 0 3px rgba(217, 105, 47, 0.6); animation: pop 0.5s var(--ease) both; }
@keyframes pop { from { transform: scale(0); } }
.result { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 14px; border-radius: var(--r); background: var(--green-soft); animation: rise 0.5s var(--ease); }
.result.bad { background: var(--orange-soft); }
.result .big { font-size: 26px; line-height: 1; }
.result b { display: block; font-size: 17px; }
.result span { font-size: 14.5px; color: #3d3732; }
.ticket { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.ticket-h { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: #f4efe8; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink2); }
.ticket dl { margin: 0; padding: 6px 14px 12px; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14.5px; }
.ticket dt { color: var(--ink2); }
.ticket dd { margin: 0; font-weight: 500; }
.ticket .thumb { width: 84px; height: 63px; border-radius: 10px; object-fit: cover; background: #eae3d8; }
textarea.field { width: 100%; min-height: 76px; border: 0; border-radius: 14px; padding: 12px 14px; background: var(--card); box-shadow: var(--shadow); resize: none; outline: none; font-size: 16px; }
.field:focus { box-shadow: 0 0 0 3px rgba(217, 105, 47, 0.25); }
.ok-state { text-align: center; padding: 18px 0 6px; animation: rise 0.5s var(--ease); }
.ok-state .tick { width: 64px; height: 64px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 12px; }
.ok-state .tick svg { width: 32px; height: 32px; }
.ok-state h4 { margin: 0; font-size: 21px; }
.ok-state p { color: var(--ink2); margin-top: 4px; }

/* ---------- חוברת וצ'אט ---------- */
.pages { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 4px 16px 10px; scrollbar-width: none; }
.pages::-webkit-scrollbar { display: none; }
.pg { flex: none; width: 74%; scroll-snap-align: center; background: var(--card); border-radius: 6px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 10px 26px rgba(0, 0, 0, 0.07); padding: 10px; position: relative; aspect-ratio: 1 / 1.25; display: flex; flex-direction: column; }
.pg img { flex: 1; min-height: 0; object-fit: contain; }
.pg .n { position: absolute; top: 10px; inset-inline-start: 12px; font: 700 26px/1 var(--font); color: #14110f; }
.pg .pp { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; font: 600 11px/1 var(--font); color: #14110f; direction: ltr; }
.pg .pp span { display: inline-flex; align-items: center; gap: 3px; border: 1.5px solid #14110f; border-radius: 6px; padding: 3px 5px; }
.pg .pp svg { width: 14px; height: 14px; }
.pg.cover { justify-content: center; text-align: center; gap: 8px; }
.pg.cover h4 { margin: 0; font-size: 20px; }
.pg.flash { animation: flashpg 1.2s ease; }
@keyframes flashpg { 30% { box-shadow: 0 0 0 4px var(--accent2), 0 10px 26px rgba(0, 0, 0, 0.07); } }
.chat { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.msg { max-width: 84%; padding: 9px 13px; border-radius: 20px; font-size: 15.5px; line-height: 1.4; animation: rise 0.35s var(--ease); }
.msg.me { align-self: flex-start; background: var(--accent); color: #fff; border-end-start-radius: 6px; }
.msg.bot { align-self: flex-end; background: var(--card); box-shadow: var(--shadow); border-end-end-radius: 6px; }
.msg .cite { display: inline-flex; margin-top: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); background: var(--accent-soft); padding: 3px 9px; border-radius: 999px; }
.msg.typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: var(--ink3); animation: typing 1s infinite; }
.msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 50% { transform: translateY(-4px); opacity: 0.5; } }
.suggest { display: flex; gap: 8px; overflow-x: auto; margin: 10px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.suggest button { flex: none; font-size: 14px; padding: 8px 12px; border-radius: 999px; background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.composer { display: flex; gap: 8px; margin-top: 10px; }
.composer input { flex: 1; height: 44px; border-radius: 22px; border: 0; padding: 0 16px; background: var(--card); box-shadow: var(--shadow); outline: none; font-size: 16px; }
.composer button { width: 44px; height: 44px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; }
.composer button svg { width: 20px; height: 20px; transform: scaleX(-1); }
.fine { font-size: 12.5px; color: var(--ink3); margin-top: 8px; text-align: center; }

/* ---------- תקלה ---------- */
.fix { counter-reset: f; list-style: none; padding: 0; margin: 0; }
.fix li { counter-increment: f; position: relative; padding: 12px 16px 12px 16px; padding-inline-start: 50px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow); font-size: 15.5px; }
.fix li + li { margin-top: 8px; }
.fix li::before { content: counter(f); position: absolute; inset-inline-start: 14px; top: 12px; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; font-size: 13px; display: grid; place-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }

/* ---------- טוסט ---------- */
#toast { position: fixed; z-index: 80; left: 50%; top: calc(var(--top) + 64px); transform: translate(-50%, -20px); opacity: 0; pointer-events: none; background: rgba(20, 17, 15, 0.9); color: #fff; padding: 10px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 500; transition: all 0.45s var(--ease); white-space: nowrap; }
#toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- בית ---------- */
.home { max-width: var(--col); margin: 0 auto; padding: calc(var(--top) + 44px) 18px calc(40px + var(--bottom)); }
.hero { text-align: center; padding: 18px 4px 26px; }
.hero h1 { font-size: 40px; line-height: 1.05; letter-spacing: -0.035em; font-weight: 800; margin-top: 18px; }
.hero h1 span { background: linear-gradient(90deg, #d9692f, #b9531f); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--ink2); font-size: 17px; margin-top: 10px; }
.boxes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.box { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px 14px; text-align: start; display: flex; flex-direction: column; gap: 10px; min-height: 196px; }
.box .art { height: 92px; border-radius: 14px; background: linear-gradient(160deg, #f7f3ec, #efe7da); display: grid; place-items: center; color: #8a6a45; }
.box .art svg { width: 64px; height: 64px; }
.box b { font-size: 16px; line-height: 1.2; }
.box small { color: var(--ink2); font-size: 13px; margin-top: auto; display: flex; align-items: center; gap: 4px; }
.how { display: grid; gap: 10px; margin-top: 12px; }
.how .row { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); }
.how .row + .row::before { display: none; }
.foot { text-align: center; color: var(--ink3); font-size: 12.5px; margin-top: 28px; }

/* ---------- לוח בקרה ---------- */
.dash { max-width: 980px; margin: 0 auto; padding: calc(var(--top) + 72px) 16px calc(40px + var(--bottom)); }
.dash h1 { font-size: 30px; letter-spacing: -0.025em; font-weight: 800; }
.dash .sub { color: var(--ink2); margin-top: 2px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.kpi { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 16px; }
.kpi span { font-size: 13px; color: var(--ink2); }
.kpi b { display: block; font-size: 28px; font-weight: 700; letter-spacing: -0.025em; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12.5px; font-weight: 600; color: #1d7a35; }
.grid2 { display: grid; gap: 12px; margin-top: 12px; }
.funnel .bar { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; font-size: 13.5px; padding: 5px 0; }
.funnel .bar i { height: 22px; border-radius: 6px; background: linear-gradient(90deg, #de7038, #d9692f); display: block; transform-origin: right; animation: grow 0.9s var(--ease) both; }
.funnel .bar.hot i { background: linear-gradient(90deg, #ffb35c, #ff7a00); }
.funnel .bar em { font-style: normal; font-weight: 600; text-align: end; font-variant-numeric: tabular-nums; }
@keyframes grow { from { transform: scaleX(0); } }
.insight { display: flex; gap: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin-top: 12px; }
.insight .big { font-size: 24px; }
.insight b { display: block; }
.insight span { color: #3d3732; font-size: 14.5px; }
table.tk { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tk th { text-align: start; color: var(--ink2); font-weight: 500; font-size: 12.5px; padding: 6px 8px; }
table.tk td { padding: 10px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.tbl-wrap { overflow-x: auto; }
.pipeline .row .ic { transition: background 0.3s; }
.pipeline .row.run .ic { background: var(--accent-soft); color: var(--accent); }
.pipeline .row.ok .ic { background: var(--green); color: #fff; }
.spin { width: 16px; height: 16px; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: sp 0.7s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.drop { border: 2px dashed #cbc1b3; border-radius: var(--r); padding: 26px 16px; text-align: center; background: var(--card); }
.drop svg { width: 40px; height: 40px; color: var(--accent); margin: 0 auto 8px; }

@media (min-width: 760px) {
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .grid2 { grid-template-columns: 1.3fr 1fr; align-items: start; }
}
/* ---------- הדרכת מחוות ---------- */
.coach { pointer-events: none; position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.28); opacity: 0; transition: opacity 0.35s; }
.coach.on { opacity: 1; }
.coach-card { width: 100%; max-width: 340px; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 24px; padding: 18px; box-shadow: var(--shadow-lg); transform: scale(0.94); transition: transform 0.5s var(--ease); }
.coach.on .coach-card { transform: none; }
.coach-card { pointer-events: auto; }
.coach .g { display: flex; align-items: center; gap: 14px; padding: 10px 4px; font-size: 16px; }
.coach .g + .g { border-top: 1px solid var(--line); }
.coach .g span { width: 44px; height: 44px; border-radius: 14px; background: var(--accent-soft); display: grid; place-items: center; font-size: 22px; flex: none; }
.build-top .icon-btn svg { width: 20px; height: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.12s !important; }
}

/* =========================================================
   שכבה בועתית: Apple, בסגנון זכוכית, עגול ורך
   ========================================================= */
:root {
  --r: 24px;
  --r-lg: 34px;
  --accent: #d9692f;
  --accent2: #d9692f;
  --grad: #d9692f;
  --glass: rgba(251, 248, 243, 0.74);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, 0.9), inset 0 0 0 1px rgba(216, 208, 196, 0.55);
  --lift: 0 2px 6px rgba(60, 40, 20, 0.05), 0 18px 36px -18px rgba(60, 40, 20, 0.28);
  --shadow: 0 0 0 1px rgba(216, 208, 196, 0.6), 0 22px 44px -30px rgba(60, 40, 20, 0.35);
  --bg: #f4efe8;
}
body { background: var(--bg); }
#stage { background: radial-gradient(90% 70% at 50% 30%, #fbf8f3 0%, #f4efe8 55%, #eae3d8 100%); overflow: hidden; }
#stage::before, #stage::after { content: ""; position: absolute; border-radius: 50%; filter: blur(40px); opacity: 0.55; pointer-events: none; }
#stage::before { width: 60vw; height: 60vw; max-width: 420px; max-height: 420px; background: #f0dccb; top: 6%; right: -12%; }
#stage::after { width: 50vw; height: 50vw; max-width: 360px; max-height: 360px; background: #efe2cf; bottom: 8%; left: -10%; }
#stage .gl { position: relative; z-index: 1; }
.ring, .pick-label { z-index: 2; }
/* תקריב החומרה: עיגול בפינה, כמו העיגול המוגדל בחוברת. התמונה מצוירת בקנבס, הטבעת והתווית כאן */
.inset {
  position: absolute; z-index: 3; pointer-events: none; opacity: 0; transform: scale(0.85); transform-origin: center;
  border-radius: 50%; box-shadow: 0 0 0 3px #fbf8f3, 0 0 0 5.5px var(--accent), 0 12px 30px rgba(60, 40, 20, 0.22);
  transition: opacity 0.35s, transform 0.5s var(--ease);
}
.inset.on { opacity: 1; transform: none; }
.inset.on:not(.rdy) { opacity: 0; }
.inset b { position: absolute; top: -6px; inset-inline-end: -4px; font-size: 13px; font-weight: 800; color: #fff; background: var(--grad); border-radius: 999px; padding: 2px 9px; box-shadow: 0 4px 12px rgba(217, 105, 47, 0.35); }
.inset b:empty { display: none; }
.inset span {
  position: absolute; bottom: -12px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  font-size: 12px; font-weight: 700; color: var(--ink); background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  padding: 3px 10px; border-radius: 999px; box-shadow: var(--glass-edge), var(--shadow);
}
.inset span:empty { display: none; }
/* התקדמות מקובצת לפי שלבים, למוצר עם הרבה צעדים */
.progress.phased { gap: 7px; align-items: stretch; }
.pg-grp { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pg-bar { display: flex; gap: 2px; }
.pg-bar i { flex: 1; min-width: 3px; }
.pg-grp .pg-name { font-size: 10.5px; font-weight: 600; color: var(--ink3); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.1; }
.pg-grp.cur span { color: var(--accent); }
.pg-grp.done span { color: var(--ink2); }

.nav { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.icon-btn { width: 44px; height: 44px; background: var(--glass); backdrop-filter: blur(24px) saturate(190%); -webkit-backdrop-filter: blur(24px) saturate(190%); box-shadow: var(--glass-edge), var(--lift); }
.icon-btn.on { background: var(--grad); color: #fff; }
.nav .ttl { background: var(--glass); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-radius: 999px; padding: 5px 16px; box-shadow: var(--glass-edge), var(--lift); justify-self: center; max-width: 100%; }

.sheet-page { background: rgba(244, 239, 232, 0.9); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); border-radius: var(--r-lg) var(--r-lg) 0 0; box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.9), 0 -14px 40px rgba(60, 40, 20, 0.08); }
.p-head h1 { font-size: 30px; font-weight: 800; }
.badge.blue { background: var(--grad); color: #fff; }
.seg { background: rgba(20, 17, 15, 0.07); border-radius: 999px; padding: 3px; }
.seg button { border-radius: 999px; padding: 9px 4px; font-size: 15px; }
.seg .thumb { top: 3px; bottom: 3px; border-radius: 999px; box-shadow: 0 4px 14px rgba(60, 40, 20, 0.14); }

.stat, .card, .chip, .inv-i, .list, .ticket, .box, .kpi { border-radius: var(--r); box-shadow: var(--shadow); }
.stat { padding: 16px 8px 14px; }
.stat i { display: block; font-style: normal; font-size: 26px; line-height: 1; margin-bottom: 6px; }
.stat b { font-size: 24px; font-weight: 800; }
.chip { border-radius: 999px; padding: 9px 14px; font-weight: 500; }
.chip i { font-style: normal; font-size: 18px; }
.inv-i { border-radius: 20px; }
.inv-i svg { width: 34px; height: 34px; padding: 6px; border-radius: 12px; background: #eae3d8; color: #14110f; }
.inv-i:nth-child(3n+2) svg { background: #fff1e6; color: #c2570c; }
.inv-i:nth-child(3n) svg { background: #ecfbf3; color: #188a4b; }
.row .ic { border-radius: 14px; background: #eae3d8; color: #14110f; }

.btn { border-radius: 999px; font-weight: 700; }
.btn.primary { background: var(--grad); box-shadow: 0 10px 26px rgba(217, 105, 47, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.btn.secondary { background: var(--card); color: var(--accent); }
.btn.tinted { background: #f3e2d5; color: #8f3f17; }
.cta-bar { background: linear-gradient(to top, rgba(244, 239, 232, 0.98) 55%, rgba(244, 239, 232, 0)); }
.cta-bar .btn { height: 58px; font-size: 19px; }

/* כרטיס הצעד */
.build-top .step-pill { background: var(--glass); backdrop-filter: blur(24px) saturate(190%); -webkit-backdrop-filter: blur(24px) saturate(190%); box-shadow: var(--glass-edge), var(--lift); padding: 10px 16px; }
.step-card { background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(34px) saturate(200%); -webkit-backdrop-filter: blur(34px) saturate(200%); border-radius: 32px; box-shadow: var(--glass-edge), 0 20px 50px rgba(60, 40, 20, 0.18); padding: 16px 16px 14px; border: 0; }
.progress { gap: 5px; margin-bottom: 12px; }
.progress i { height: 6px; border-radius: 99px; background: rgba(60, 40, 20, 0.12); }
.progress i::after { background: var(--grad); }
.sc-head { display: flex; align-items: center; gap: 10px; }
.sc-head .num { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--grad); color: #fff; font-weight: 800; font-size: 17px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(217, 105, 47, 0.35); }
.step-card h2 { font-size: 23px; font-weight: 800; }
.step-card p { font-size: 16px; margin-top: 6px; color: #3d3732; }
.part-chip { border-radius: 999px; padding: 6px 12px 6px 6px; background: var(--card); box-shadow: 0 2px 8px rgba(60, 40, 20, 0.08); font-weight: 500; }
.part-chip svg { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: #eae3d8; color: #14110f; }
.part-chip:nth-child(3n+2) svg { background: #fff1e6; color: #c2570c; }
.part-chip:nth-child(3n) svg { background: #ecfbf3; color: #188a4b; }
.part-chip em { background: var(--grad); color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 12.5px; }
.note { border-radius: 18px; }
.controls { grid-template-columns: 52px 52px 1fr; gap: 10px; }
.controls .round { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(20, 17, 15, 0.07); color: var(--ink); }
.controls .round svg { width: 22px; height: 22px; }
.controls .round[disabled] { opacity: 0.35; pointer-events: none; }
.controls .btn { height: 52px; font-size: 18px; }
.ring i { background: rgba(217, 105, 47, 0.3); box-shadow: 0 0 0 2px #d9692f, 0 6px 18px rgba(217, 105, 47, 0.35); }
.ring b { background: var(--grad); }

/* גיליונות ודברים קטנים */
.sheet { border-radius: 32px 32px 0 0; }
.sheet-h h3 { font-weight: 800; }
.finish { border-radius: 34px; background: rgba(255, 255, 255, 0.8); box-shadow: var(--glass-edge), 0 24px 60px rgba(60, 40, 20, 0.2); }
.finish h2 { font-size: 40px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.box { border-radius: 28px; }
.box .art { border-radius: 20px; }
.hero h1 { font-weight: 900; }
.msg.me { background: var(--grad); }
.composer button { background: var(--grad); }
.fix li::before { background: var(--grad); }
.hint-chip { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: var(--glass-edge), var(--shadow); padding: 6px 12px; }

/* =========================================================
   תמונות אמיתיות במקום אייקונים
   ========================================================= */
img.pimg, span.pimg { width: 52px; height: 52px; flex: none; border-radius: 16px; background: linear-gradient(160deg, #fbf8f3, #eae3d8); box-shadow: inset 0 0 0 1px rgba(60, 40, 20, 0.06); object-fit: contain; opacity: 0.6; transition: opacity 0.35s; color: transparent; font-size: 0; }
img.pimg.in, span.pimg { opacity: 1; }
span.pimg { display: grid; place-items: center; color: #14110f; }
span.pimg svg { width: 26px; height: 26px; }
.inv { grid-template-columns: 1fr 1fr; }
.inv-i { flex-direction: column; align-items: stretch; text-align: center; gap: 6px; padding: 10px 10px 12px; position: relative; }
.inv-i img.pimg, .inv-i span.pimg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 16px; }
.inv-i span { font-weight: 600; font-size: 14.5px; }
.inv-i em { position: absolute; top: 14px; inset-inline-start: 14px; margin: 0; background: var(--grad); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 13px; }
.inv-i svg { background: none !important; padding: 0 !important; }
.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tool { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 8px 8px 10px; text-align: center; font-size: 13.5px; font-weight: 600; }
.tool img.pimg { width: 100%; height: auto; aspect-ratio: 1; margin-bottom: 4px; }
.part-chip img.pimg, .part-chip span.pimg { width: 40px; height: 40px; border-radius: 50%; padding: 0; }
.part-chip { padding: 4px 12px 4px 4px; }
.part-chip svg { background: none !important; }
.row img.pimg, .row span.pimg { width: 54px; height: 54px; }
.pimg-lg img.pimg, .pimg-lg span.pimg { width: 84px; height: 84px; border-radius: 22px; }
.box .art { height: 140px; background: radial-gradient(90% 80% at 50% 35%, #fbf8f3, #eae3d8) !important; overflow: hidden; }
.box .art img.hero-img { width: 100%; height: 100%; object-fit: contain; opacity: 0; transform: scale(0.96); transition: opacity 0.5s, transform 0.6s var(--ease); }
.box .art img.hero-img.in { opacity: 1; transform: none; }
.boxes .box { min-height: 230px; }

/* כפתור מציאות רבודה וחוברת */
.ar-btn { position: absolute; z-index: 6; top: calc(50svh - 82px); inset-inline-start: 16px; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; background: var(--glass); backdrop-filter: blur(24px) saturate(190%); -webkit-backdrop-filter: blur(24px) saturate(190%); box-shadow: var(--glass-edge), var(--lift); color: var(--ink); }
.ar-btn svg { width: 20px; height: 20px; color: #b9531f; }
.pdf-card { display: flex; align-items: center; gap: 12px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; color: inherit; text-decoration: none; margin-bottom: 4px; }
.pdf-card .pdf-ic { width: 46px; height: 56px; border-radius: 8px; background: linear-gradient(160deg, #ff6b5e, #e5352b); color: #fff; font-weight: 800; font-size: 13px; display: grid; place-items: center; box-shadow: 0 6px 14px rgba(229, 53, 43, 0.3); flex: none; }
.pdf-card b { display: block; }
.pdf-card small { color: var(--ink2); font-size: 13px; }
.pdf-card .chev { margin-inline-start: auto; color: var(--ink3); width: 18px; height: 18px; transform: scaleX(-1); }
.ar-wrap { height: 52svh; border-radius: 26px; overflow: hidden; background: radial-gradient(90% 80% at 50% 35%, #fbf8f3, #eae3d8); position: relative; }
.ar-wrap model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.ar-load { position: absolute; inset: 0; display: grid; place-items: center; color: var(--accent); }
.ar-go { position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%); width: auto; padding: 0 22px; height: 50px; white-space: nowrap; }
.ar-go svg { width: 20px; height: 20px; }
.p-head { display: flex; gap: 14px; align-items: center; }
.p-photo { width: 92px; height: 92px; flex: none; border-radius: 22px; object-fit: contain; background: radial-gradient(90% 80% at 50% 35%, #fbf8f3, #eae3d8); box-shadow: inset 0 0 0 1px rgba(60, 40, 20, 0.06); }
.p-ttl { min-width: 0; }
.p-ttl h1 { font-size: 26px; }
.p-sku { font-size: 13px; color: var(--ink2); margin-top: 2px; direction: rtl; }

/* =========================================================
   מסלול מודרך: מסך אחד בכל פעם
   ========================================================= */
.home-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: -12px; }
.home .hero { padding-top: 6px; }
.home .boxes .box { min-height: 0; }
.home .box .art { height: 190px; }
.home .box b { font-size: 16.5px; text-align: center; }
.flow { max-width: var(--col); margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; padding: calc(var(--top) + 10px) 18px calc(18px + var(--bottom)); }
.flow-top { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; }
.f-dots { display: flex; justify-content: center; gap: 6px; }
.f-dots i { width: 8px; height: 8px; border-radius: 99px; background: rgba(60, 40, 20, 0.16); transition: all 0.45s var(--ease); }
.f-dots i.done { background: #e6b89c; }
.f-dots i.cur { width: 26px; background: var(--grad); }
.flow-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 14px 2px 10px; animation: fin 0.55s var(--ease) both; }
.flow-body.back { animation-name: fback; }
@keyframes fin { from { opacity: 0; transform: translateX(-36px); } }
@keyframes fback { from { opacity: 0; transform: translateX(36px); } }
.flow-foot { display: grid; gap: 4px; position: sticky; bottom: calc(10px + var(--bottom)); }
.f-cta { height: 60px; font-size: 19px; }
.f-cta svg { width: 20px; height: 20px; }
.f-alt { height: 44px; color: var(--accent); font-weight: 600; font-size: 16px; }
.f-photo { position: relative; border-radius: 34px; background: radial-gradient(90% 80% at 50% 35%, #fbf8f3, #eae3d8); box-shadow: var(--glass-edge), var(--lift); overflow: hidden; height: min(46svh, 420px); display: grid; place-items: center; }
/* התמונה ממלאת את הכרטיס בלי להיחתך (גובה באחוזים בתוך grid לא נפתר, והתמונה גלשה), ומשאירה שורה פנויה לכפתור "בחדר שלי" */
.f-photo img { position: absolute; inset: 0; box-sizing: border-box; height: 100%; width: 100%; object-fit: contain; padding: 12px 12px 54px; animation: rise 0.8s var(--ease); }
.ar-chip { position: absolute; bottom: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--glass); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: var(--glass-edge), var(--shadow); font-weight: 700; font-size: 14px; }
.ar-chip svg { width: 18px; height: 18px; color: #b9531f; }
.f-brand { text-align: center; color: var(--ink2); font-weight: 600; margin-top: 8px; }
.f-h1 { text-align: center; font-size: 32px; line-height: 1.1; font-weight: 900; letter-spacing: -0.03em; }
.f-p { text-align: center; color: #4d463f; font-size: 17px; line-height: 1.45; }
.f-sub { margin-bottom: 4px; }
.f-eyebrow { text-align: center; font-size: 14px; font-weight: 700; color: #b9531f; }
.f-h2 { text-align: center; font-size: 29px; line-height: 1.15; font-weight: 900; letter-spacing: -0.025em; margin-bottom: 8px; }
.f-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.f-tile { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 20px 6px 16px; text-align: center; }
.f-tile i { font-style: normal; font-size: 34px; display: block; line-height: 1; }
.f-tile b { display: block; font-size: 30px; font-weight: 900; margin-top: 8px; }
.f-tile span { color: var(--ink2); font-size: 14px; }
.f-tip { margin-top: 6px; background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 16px; font-size: 16px; line-height: 1.5; color: #3d3732; }
.f-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.f-tool { background: var(--card); border-radius: 28px; box-shadow: var(--shadow); padding: 12px 12px 16px; text-align: center; display: grid; gap: 6px; justify-items: center; }
.f-tool img.pimg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22px; }
.f-tool b { font-size: 17px; }
.f-parts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.f-part { position: relative; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 6px 6px 8px; display: grid; gap: 2px; justify-items: center; transition: transform 0.3s var(--ease), box-shadow 0.3s; }
.f-part img.pimg, .f-part span.pimg { width: 100%; height: auto; aspect-ratio: 1; border-radius: 15px; }
.f-part span:not(.pimg) { font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.f-part em { position: absolute; top: 9px; inset-inline-start: 9px; font-style: normal; font-size: 12px; font-weight: 700; background: var(--grad); color: #fff; border-radius: 99px; padding: 1px 7px; }
.f-part i { position: absolute; top: 8px; inset-inline-end: 8px; width: 24px; height: 24px; border-radius: 50%; border: 2px solid #cbc1b3; background: var(--card); display: grid; place-items: center; transition: all 0.3s var(--ease); }
.f-part i svg { width: 14px; height: 14px; color: #fff; opacity: 0; }
.f-part.on { box-shadow: 0 0 0 2.5px #34c759, var(--shadow); }
.f-part.on i { background: #34c759; border-color: #34c759; transform: scale(1.1); }
.f-part.on i svg { opacity: 1; }
@media (max-height: 700px) { .f-photo { height: 36svh; } .f-h1 { font-size: 27px; } .f-parts { gap: 6px; } }

/* =========================================================
   כרטיס צעד קומפקטי: ההדמיה במרכז
   ========================================================= */
.step-card { padding: 10px 14px 12px; border-radius: 28px; }
.progress { margin-bottom: 8px; }
.progress i { height: 4px; }
.sc-head { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; }
.sc-head .num { width: 32px; height: 32px; font-size: 15px; }
.step-card h2 { font-size: 19px; line-height: 1.18; flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; text-wrap: balance; } /* עד שתי שורות: כותרת ארוכה לא נחתכת בשלוש נקודות */
.sc-head .mini { display: flex; gap: 4px; flex: none; }
.mini-p { position: relative; }
.mini-p img.pimg, .mini-p span.pimg { width: 34px; height: 34px; border-radius: 50%; box-shadow: 0 0 0 2px #fbf8f3, 0 2px 6px rgba(60, 40, 20, 0.12); }
.mini-p em { position: absolute; bottom: -4px; inset-inline-start: -4px; font-style: normal; font-size: 10.5px; font-weight: 800; background: var(--grad); color: #fff; border-radius: 99px; padding: 0 5px; line-height: 16px; }
.chev-d { flex: none; width: 26px; height: 26px; border-radius: 50%; background: rgba(20, 17, 15, 0.07); display: grid; place-items: center; transition: transform 0.35s var(--ease); }
.chev-d svg { width: 14px; height: 14px; transform: rotate(-90deg); }
.step-card.open .chev-d { transform: rotate(180deg); }
.sc-body { font-size: 15px !important; margin-top: 6px !important; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.step-card.open .sc-body { -webkit-line-clamp: unset; display: block; }
.sc-more { display: none; }
.step-card.open .sc-more { display: block; }
.step-card .note { margin-top: 8px; padding: 7px 11px; font-size: 13.5px; }
.controls { margin-top: 10px; grid-template-columns: 46px 46px 1fr; gap: 8px; }
.controls .round { width: 46px; height: 46px; }
.controls .btn { height: 46px; font-size: 17px; }

/* =========================================================
   החנות
   ========================================================= */
.market { max-width: 720px; margin: 0 auto; padding: calc(var(--top) + 12px) 16px calc(32px + var(--bottom)); }
.m-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.m-top .mark { font-size: 22px; }
.m-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); }
.m-search svg { width: 20px; height: 20px; color: var(--ink3); flex: none; }
.m-search input { flex: 1; border: 0; outline: none; background: none; font-size: 16px; min-width: 0; }
.m-banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 16px -16px 0; padding: 4px 16px 10px; scrollbar-width: none; }
.m-banners::-webkit-scrollbar { display: none; }
.m-banner { flex: none; width: 86%; max-width: 520px; scroll-snap-align: center; height: 190px; border-radius: 30px; position: relative; overflow: hidden; display: flex; align-items: center; padding: 20px; color: #fff; text-decoration: none; box-shadow: 0 14px 34px rgba(60, 40, 20, 0.18); }
.m-banner.b1 { background: radial-gradient(90% 120% at 12% 100%, rgba(217, 105, 47, 0.42) 0%, rgba(217, 105, 47, 0) 60%), linear-gradient(150deg, #2a211b 0%, #14110f 100%); color: #f4efe8; }
.m-banner.b2 { background: radial-gradient(120% 120% at 0% 100%, #c47a2c 0%, #e8a95c 55%, #f6d7a7 100%); }
.m-banner > div { position: relative; z-index: 1; max-width: 58%; }
.m-banner h3 { margin: 8px 0 4px; font-size: 24px; line-height: 1.1; font-weight: 900; letter-spacing: -0.02em; }
.m-banner p { margin: 0; font-size: 14px; opacity: 0.9; }
.m-banner img { position: absolute; left: -2%; right: auto; bottom: -6%; height: 112%; width: 50%; object-fit: contain; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.18)); }
.m-chip { display: inline-block; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px); padding: 4px 10px; border-radius: 999px; }
.m-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 8px; }
.m-act { background: var(--card); border-radius: 22px; box-shadow: var(--shadow); padding: 14px 6px 12px; display: grid; justify-items: center; gap: 8px; font-weight: 700; font-size: 14px; }
.m-ai { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-size: 20px; color: #fff; }
.m-ai svg { width: 24px; height: 24px; }
.m-ai.blue { background: var(--grad); } .m-ai.orange { background: linear-gradient(140deg, #ffb24d, #ff7a1a); } .m-ai.green { background: linear-gradient(140deg, #4cd471, #1f9d48); }
.m-sec { margin: 24px 4px 10px; scroll-margin-top: 16px; }
.m-sec h4 { margin: 0; font-size: 20px; font-weight: 800; letter-spacing: -0.015em; }
.m-brands { display: flex; gap: 14px; overflow-x: auto; margin: 0 -16px; padding: 4px 16px 6px; scrollbar-width: none; }
.m-brands::-webkit-scrollbar { display: none; }
.m-b { flex: none; display: grid; justify-items: center; gap: 6px; width: 70px; text-decoration: none; color: var(--ink); font-size: 12.5px; font-weight: 600; text-align: center; }
.b-logo { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 26px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 6px 16px rgba(60, 40, 20, 0.16); }
.b-logo.xs { width: 20px; height: 20px; font-size: 11px; box-shadow: none; }
.b-logo.xl { width: 96px; height: 96px; font-size: 40px; }
.m-cats { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px 6px; scrollbar-width: none; }
.m-cats::-webkit-scrollbar { display: none; }
.m-cats button { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); font-weight: 600; font-size: 14.5px; }
.m-cats button.on { background: var(--ink); color: #fff; }
.m-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .m-grid { grid-template-columns: repeat(3, 1fr); } }
.m-card { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 8px 8px 12px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; }
.m-img { position: relative; aspect-ratio: 1; border-radius: 20px; background: radial-gradient(90% 80% at 50% 35%, #fbf8f3, #eae3d8); overflow: hidden; }
.m-img img { width: 100%; height: 100%; object-fit: contain; padding: 6px; opacity: 0; transition: opacity 0.4s; }
.m-img img.in { opacity: 1; }
.m-tag { position: absolute; top: 8px; inset-inline-start: 8px; font-size: 11.5px; font-weight: 800; background: var(--grad); color: #fff; border-radius: 999px; padding: 2px 9px; }
.m-brand { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink2); font-weight: 600; margin: 4px 4px 0; }
.m-card b { font-size: 15px; line-height: 1.25; margin: 0 4px; }
.m-card small { color: var(--ink3); font-size: 12.5px; margin: 0 4px; }
.m-empty { grid-column: 1 / -1; background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 30px 20px; text-align: center; display: grid; gap: 4px; }
.m-empty span { color: var(--ink2); font-size: 14px; }
.br-head { text-align: center; display: grid; justify-items: center; gap: 6px; margin: 4px 0 20px; }
.br-head h1 { margin: 8px 0 0; font-size: 30px; font-weight: 900; }
.br-head p { margin: 0; color: var(--ink2); }
.scan-box { position: relative; aspect-ratio: 3 / 4; max-height: 58svh; margin: 0 auto; border-radius: 28px; overflow: hidden; background: #14110f; }
.scan-box video { width: 100%; height: 100%; object-fit: cover; }
.scan-box.off { background: radial-gradient(90% 80% at 50% 35%, #fbf8f3, #eae3d8); }
.scan-frame { position: absolute; inset: 18%; }
.scan-frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; border-radius: 8px; }
.scan-frame i:nth-child(1) { top: 0; left: 0; border-width: 4px 0 0 4px; } .scan-frame i:nth-child(2) { top: 0; right: 0; border-width: 4px 4px 0 0; }
.scan-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 4px 4px; } .scan-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 4px 4px 0; }
.scan-box.off .scan-frame i { border-color: #bfb4a5; }
.scan-line { position: absolute; left: 6%; right: 6%; height: 3px; border-radius: 3px; background: #d9692f; box-shadow: 0 0 14px #d9692f; animation: sline 1.8s ease-in-out infinite alternate; }
@keyframes sline { from { top: 6%; } to { top: 92%; } }

/* =========================================================
   שכבת Pieceful: הצבעים, האות והכותרות של האתר של דור.
   הצורות הבועתיות, הזכוכית והתנועה נשארות שלנו.
   ========================================================= */
body { line-height: 1.45; font-feature-settings: "kern"; }
h1, h2, h3, h4 { letter-spacing: -0.028em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

/* כותרת בשני גוונים: שורה ראשונה עמומה, שורה שנייה חזקה */
.mute { display: block; color: var(--ink40); font-weight: 500; }
/* תווית עם קו כתום 22 על 2 */
.label, .sec-t, .f-eyebrow, .m-sec small {
  display: flex; align-items: center; gap: 10px; font-size: 12.5px; font-weight: 500; letter-spacing: 0.09em; color: var(--ink2);
}
.label::before, .sec-t::before, .f-eyebrow::before, .m-sec small::before { content: ""; width: 22px; height: 2px; background: var(--accent); flex: none; }
.sec-t { margin: 24px 2px 10px; }

/* כפתורים: גלולה. ראשי = דיו מלא, משני = קו דק, והכתום רק לפעולה הראשית של המסך */
.btn { font-weight: 600; letter-spacing: -0.005em; transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease), transform 0.12s; }
.btn.primary { background: var(--ink); color: var(--paper); box-shadow: none; }
.btn.secondary { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn.tinted { background: var(--warm); color: var(--ink); }
.f-cta, .cta-bar .btn.primary, .controls .btn.primary, .ar-go, .btn.primary.main {
  background: var(--accent); color: #fff; box-shadow: 0 16px 30px -14px rgba(217, 105, 47, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
.link, .f-alt { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.cta-bar { background: linear-gradient(to top, rgba(244, 239, 232, 0.98) 55%, rgba(244, 239, 232, 0)); }

/* תגים ומונים */
.badge.blue { background: var(--accent-soft); color: #8f3f17; }
.badge.demo { background: transparent; color: #8f3f17; box-shadow: inset 0 0 0 1px var(--accent); }
.part-chip em, .inv-i em, .f-part em, .mini-p em, .m-tag, .inset b, .ring b { background: var(--acc-deep); color: #fff; }
.sc-head .num { background: var(--accent); box-shadow: 0 8px 16px -8px rgba(217, 105, 47, 0.7); }
.row .ic, .coach .g span { background: var(--warm); color: var(--ink); }
.inv-i svg, .part-chip svg, span.pimg { color: var(--ink); }
.pipeline .row.run .ic { background: var(--accent-soft); color: var(--acc-deep); }
.note { background: var(--accent-soft); color: #6e3312; }
.note.warn { background: #fbefd9; color: #6f4300; }
.msg.me { background: var(--ink); color: var(--paper); }
.msg .cite { color: #8f3f17; }
.suggest button { color: var(--ink); }
.fix li::before { background: var(--ink); color: var(--paper); }
.stars button { color: var(--line); }
.stars button.on { color: var(--accent); }
.kpi small { color: var(--ink2); font-weight: 500; }
.funnel .bar i { background: var(--ink); border-radius: 99px; height: 12px; }
.funnel .bar.hot i { background: var(--accent); }
.insight { box-shadow: var(--shadow), inset -3px 0 0 var(--accent); }
.drop { border-color: var(--line); }
.pdf-card .pdf-ic { background: var(--ink); box-shadow: none; color: var(--paper); }
.seg { background: var(--warm); }
.seg .thumb { background: var(--card); }
.check { border-color: var(--line); }

/* טיפוגרפיה לפי הסולם של דור */
.p-head h1, .p-ttl h1 { font-weight: 700; }
.sheet-h h3 { font-weight: 700; font-size: 23px; }
.step-card h2 { font-weight: 700; letter-spacing: -0.02em; }
.finish h2 { font-weight: 800; background: none; color: var(--accent); -webkit-text-fill-color: currentColor; letter-spacing: -0.035em; }
.dash h1, .br-head h1 { font-weight: 700; font-size: clamp(30px, 6vw, 44px); line-height: 1.06; letter-spacing: -0.03em; }
.dash h1 .mute { font-size: 0.62em; letter-spacing: -0.02em; margin-bottom: 4px; }
.kpi b, .stat b, .f-tile b { font-weight: 700; letter-spacing: -0.03em; }
.m-card b, .tool, .inv-i span { font-weight: 600; }

/* המסלול: כותרות מיושרות להתחלה, כמו אצל דור */
.f-eyebrow { justify-content: flex-start; font-weight: 500; color: var(--ink2); font-size: 12.5px; }
.f-h1, .f-h2 { text-align: start; font-weight: 700; letter-spacing: -0.03em; line-height: 1.06; }
.f-h1 { font-size: clamp(31px, 8.6vw, 40px); }
.f-h2 { font-size: clamp(29px, 8vw, 36px); margin-bottom: 10px; }
.f-p { text-align: start; color: var(--ink2); font-weight: 300; font-size: 18px; line-height: 1.5; }
.f-brand { text-align: start; margin-top: 10px; }
.f-dots i { background: var(--line); }
.f-dots i.done { background: #e6b89c; }
.f-dots i.cur { background: var(--accent); }
.f-photo { box-shadow: var(--shadow); background: radial-gradient(90% 80% at 50% 35%, #fbf8f3, #eae3d8); }
.f-photo::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(20, 17, 15, 0.13) 1px, transparent 1.2px); background-size: 14px 14px; mask-image: radial-gradient(80% 70% at 50% 45%, transparent 35%, #000 100%); -webkit-mask-image: radial-gradient(80% 70% at 50% 45%, transparent 35%, #000 100%); pointer-events: none; }
.f-photo img { position: absolute; }
.f-tile, .f-tip, .f-tool, .f-part, .m-act, .m-card, .m-empty, .tool, .m-search, .m-cats button { background: var(--card); }
.f-part i { border-color: var(--line); background: var(--card); }

/* החנות */
.m-hero { margin: 6px 2px 16px; }
.m-hero h1 { font-size: clamp(30px, 8.4vw, 44px); line-height: 1.02; letter-spacing: -0.035em; font-weight: 500; }
.m-hero h1 b { display: block; font-weight: 800; color: var(--accent); }
.m-hero .mute { color: var(--ink); }
.m-hero p { margin-top: 10px; color: var(--ink2); font-weight: 300; font-size: 17px; line-height: 1.5; }
.m-sec h4 { font-weight: 700; font-size: 24px; letter-spacing: -0.028em; margin-top: 6px; }
.m-ai.blue { background: var(--accent); }
.m-ai.orange { background: var(--ink); color: var(--paper); }
.m-ai.green { background: var(--warm); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.m-cats button.on { background: var(--ink); color: var(--paper); }
.m-banner { box-shadow: 0 30px 60px -36px rgba(60, 40, 20, 0.55); }
.m-banner h3 { font-weight: 700; }
.b-logo { font-weight: 800; }
.foot { color: var(--ink3); }

/* במת התלת־ממד: קרם חם עם זוהר כתום רך */
#stage { background: radial-gradient(90% 70% at 50% 30%, #fbf8f3 0%, #f4efe8 55%, #eae3d8 100%); }
#stage::before { background: #f0d6c2; opacity: 0.5; }
#stage::after { background: #efe2cf; opacity: 0.6; }
.ring i { border-color: #fbf8f3; background: rgba(217, 105, 47, 0.3); box-shadow: 0 0 0 2px var(--acc-deep), 0 6px 18px rgba(110, 51, 18, 0.3); }
.ring i::after { border-color: var(--accent); }
.step-card { background: rgba(251, 248, 243, 0.8); box-shadow: var(--glass-edge), 0 30px 60px -30px rgba(60, 40, 20, 0.45); }
.finish, .coach-card { background: rgba(251, 248, 243, 0.86); }
.progress i { background: rgba(20, 17, 15, 0.12); }
.pg-grp.cur span { color: var(--acc-deep); }
.chev-d, .controls .round, .play { background: var(--warm); }
.sheet { background: var(--paper); }
.sheet .grab { background: var(--line); }

/* =========================================================
   מצב הטמעה (embed=1): בלי חנות ובלי תפריט, מתאים למסגרת בגודל טלפון
   ========================================================= */
html.embed, html.embed body { background: var(--paper); overscroll-behavior: none; }
html.embed .build-top { padding: 8px 8px 0; }
html.embed .build-top .icon-btn { display: none; }
html.embed .build-top .step-pill { padding: 6px 12px; font-size: 12.5px; display: inline-flex; align-items: center; gap: 7px; }
html.embed .step-pill.auto::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: cur 1.6s ease-in-out infinite; }
html.embed .step-card { inset-inline: 6px; bottom: 6px; border-radius: 24px; padding: 9px 11px 10px; }
html.embed .step-card h2 { font-size: 16.5px; }
html.embed .sc-head { gap: 8px; }
html.embed .sc-head .num { width: 28px; height: 28px; font-size: 14px; }
html.embed .sc-body { font-size: 13.5px !important; }
html.embed .controls { grid-template-columns: 42px 42px 1fr; margin-top: 8px; }
html.embed .controls .round { width: 42px; height: 42px; }
html.embed .controls .btn { height: 42px; font-size: 16px; }
html.embed .step-card .note { font-size: 12.5px; }
html.embed .flow { min-height: 100svh; padding: 14px 12px 12px; }
html.embed .flow-body { justify-content: flex-start; padding-top: 4px; }
html.embed .f-h2 { font-size: 25px; }
html.embed .f-tools { grid-template-columns: repeat(3, 1fr); gap: 7px; }
html.embed .f-tool { border-radius: 18px; padding: 6px 6px 8px; }
html.embed .f-tool b { font-size: 12px; font-weight: 600; line-height: 1.2; }
html.embed .f-tool .badge { display: none; }
html.embed .f-parts { grid-template-columns: repeat(3, 1fr); }
html.embed .f-cta { height: 50px; font-size: 17px; }
html.embed .dash { padding: 14px 12px 20px; }
html.embed .dash h1 { font-size: 26px; }
html.embed .nav, html.embed .dash .embed-off { display: none; }
@media (max-width: 380px) {
  html.embed .sc-head .mini .mini-p:nth-child(n+2) { display: none; }
  html.embed .progress.phased .pg-grp .pg-name { display: none; }
  html.embed .kpi b { font-size: 23px; }
  html.embed .kpi { padding: 11px 12px; }
  html.embed .funnel .bar { grid-template-columns: 56px 1fr 38px; font-size: 12.5px; }
}

/* תיקונים אחרי צילום */
a.icon-btn { color: var(--ink); }
.btn.f-cta, .cta-bar .btn.primary, .controls .btn.primary, .btn.ar-go, .btn.primary.main { background: var(--accent); color: #fff; box-shadow: 0 16px 30px -14px rgba(217, 105, 47, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.28); }
.flow, .market, .dash { overflow-x: clip; }
img.pimg, span.pimg { background: linear-gradient(160deg, #f3ece1, #e0d6c6); }
#stage::before { opacity: 0.3; }
#stage::after { opacity: 0.45; }

/* אייקוני קו בכתום במקום אימוג'י */
.f-tile i, .stat i { display: grid; place-items: center; height: 36px; color: var(--accent); }
.f-tile i svg, .stat i svg { width: 32px; height: 32px; }
.f-tip { display: flex; gap: 10px; align-items: flex-start; }
.f-tip > svg, .note > svg, .insight .big svg, .result .big svg { width: 22px; height: 22px; flex: none; color: var(--acc-deep); }
.note > svg { width: 18px; height: 18px; margin-top: 1px; }
.insight .big, .result .big { display: grid; }
.coach .g span svg { width: 24px; height: 24px; color: var(--acc-deep); }
.m-banner.b1 .m-chip { background: rgba(244, 239, 232, 0.16); }

/* =========================================================
   כתום שקט ויוקרתי: נחושת שרופה במקום כתום זועק. משתמשים בו במשורה
   ========================================================= */
:root { --accent: #d9692f; --accent2: #d9692f; --acc-deep: #b9531f; --accent-soft: #f3e2d5; --grad: #d9692f; }
/* הכפתור הראשי: מעבר גוון עדין, ברק פנימי רך וצל שקט */
.btn.f-cta, .cta-bar .btn.primary, .controls .btn.primary, .btn.ar-go, .btn.primary.main {
  background: linear-gradient(180deg, #de7038 0%, #c95a26 100%); color: #fff; font-weight: 600;
  box-shadow: 0 14px 26px -16px rgba(140, 62, 20, 0.75), 0 2px 5px rgba(140, 62, 20, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.26), inset 0 -1px 0 rgba(110, 45, 10, 0.22);
}
.sc-head .num { background: linear-gradient(180deg, #de7038, #c95a26); box-shadow: 0 6px 12px -8px rgba(140, 62, 20, 0.7); }
/* מונים ותגים קטנים בדיו, לא בכתום. הכתום נשאר למצב פעיל, לסימונים קטנים ולתלת־ממד */
.part-chip em, .inv-i em, .f-part em, .mini-p em, .m-tag { background: var(--ink); color: var(--paper); }
.inset b, .ring b { background: var(--acc-deep); color: #fff; }
.m-ai.blue { background: linear-gradient(180deg, #de7038, #c95a26); }
.f-dots i.done { background: #e6b89c; }
.finish h2, .m-hero h1 b { color: #cf6129; }
.f-tile i, .stat i { color: var(--acc-deep); }
.badge.blue, .msg .cite { color: #8f3f17; }
.badge.demo { color: #8f3f17; box-shadow: inset 0 0 0 1px #d9a98a; }
.note { background: var(--accent-soft); color: #6e3312; }

/* אובדן כרטיס המסך: מכסה בגוון החדר במקום קנבס לבן ריק */
#stage .gl-cover { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity 0.25s ease; background: radial-gradient(90% 70% at 50% 35%, #f3ebdf 0%, #e7dccb 60%, #d9ccb8 100%); }
#stage .gl-cover.on { opacity: 1; pointer-events: auto; }
#stage .gl-cover > div { text-align: center; color: var(--ink, #14110f); display: grid; gap: 6px; justify-items: center; padding: 0 24px; }
#stage .gl-cover i { width: 28px; height: 28px; border-radius: 50%; border: 3px solid rgba(20, 17, 15, 0.12); border-top-color: #d9692f; animation: glspin 0.9s linear infinite; margin-bottom: 6px; }
#stage .gl-cover b { font-size: 17px; font-weight: 700; }
#stage .gl-cover span { font-size: 14px; color: var(--ink2, #5b544d); }
#stage .gl-cover button { margin-top: 10px; min-height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: #d9692f; color: #fff; font: inherit; font-weight: 700; }
#stage .gl-cover button[hidden] { display: none; }
@keyframes glspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #stage .gl-cover i { animation-duration: 2.4s; } }
/* ?debug=1: מדדי הרינדור, לצילום מסך מהטלפון */
.dbg-hud { position: fixed; left: 6px; top: calc(env(safe-area-inset-top, 0px) + 70px); z-index: 9999; margin: 0; padding: 6px 8px; max-width: calc(100vw - 12px); direction: ltr; text-align: left; font: 10.5px/1.35 ui-monospace, Menlo, monospace; color: #e9fbe9; background: rgba(10, 12, 10, 0.78); border-radius: 8px; pointer-events: none; white-space: pre-wrap; }

/* מסך ההכנה: כרטיס כלי הוא כפתור שפותח הדגמה */
button.f-tool { border: 0; font: inherit; color: inherit; cursor: pointer; position: relative; -webkit-tap-highlight-color: transparent; transition: transform .35s var(--spring), box-shadow .25s ease; }
button.f-tool:active { transform: scale(.97); transition-duration: .12s; }
button.f-tool:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.f-try { position: absolute; top: 18px; inset-inline-start: 18px; display: inline-flex; align-items: center; gap: 4px; padding: 5px 10px 5px 9px; border-radius: 99px; background: rgba(20, 17, 15, .78); color: #fff; font-size: 12.5px; font-weight: 600; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.f-try svg { width: 11px; height: 11px; }
.f-hint { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 14px 0 0; color: var(--ink3); font-size: 14px; }
.f-hint svg { width: 12px; height: 12px; color: var(--acc); }
html.embed .f-try, html.embed .f-hint { display: none; }

/* הדגמת כלי: גיליון תחתון */
.tsim { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; }
.tsim-bg { position: absolute; inset: 0; background: rgba(28, 20, 12, .38); opacity: 0; transition: opacity .3s ease; }
.tsim.on .tsim-bg { opacity: 1; }
.tsim-card { position: relative; width: min(100%, 520px); max-height: calc(100dvh - 24px); overflow: auto; background: var(--sheet-bg, #f6f1ea); border-radius: var(--r-sheet, 32px) var(--r-sheet, 32px) 0 0; padding: 6px 18px calc(18px + env(safe-area-inset-bottom, 0px)); box-shadow: 0 -18px 50px -16px rgba(60, 38, 18, .45); transform: translate3d(0, 104%, 0); transition: transform .55s var(--ease-out, cubic-bezier(.16, 1, .3, 1)); }
.tsim.on .tsim-card { transform: none; }
.tsim.out .tsim-card { transform: translate3d(0, 104%, 0); transition: transform .3s var(--ease-drawer, cubic-bezier(.32, .72, 0, 1)); }
.tsim.out .tsim-bg { opacity: 0; }
.tsim-grab { display: block; width: 40px; height: 5px; margin: 4px auto 10px; border-radius: 99px; background: #d9cdbf; }
.tsim-hd { display: flex; align-items: flex-start; gap: 12px; }
.tsim-hd > div { flex: 1; display: grid; gap: 3px; }
.tsim-hd b { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.tsim-hd span { font-size: 14px; color: var(--ink3); }
.tsim-x { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: var(--fill2); color: var(--ink2); cursor: pointer; }
.tsim-x svg { width: 18px; height: 18px; }
.tsim-stage { position: relative; margin: 12px 0 14px; aspect-ratio: 1 / .82; border-radius: 26px; overflow: hidden; touch-action: none; cursor: grab; background: radial-gradient(70% 60% at 50% 42%, #fffaf2 0%, #f1e8db 62%, #e6dacb 100%); box-shadow: inset 0 0 0 1px rgba(60, 40, 20, .06); }
.tsim.dragged .tsim-stage { cursor: grabbing; }
.tsim-stage::after { content: ""; position: absolute; left: 22%; right: 22%; bottom: 13%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(70, 45, 20, .22), rgba(70, 45, 20, 0)); pointer-events: none; }
.tsim-stage canvas { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.tsim.running.k-drill .tsim-stage canvas { animation: tsimBuzz .07s linear infinite; }
@keyframes tsimBuzz { 50% { transform: translate(.4px, -.3px); } }
.tsim-read { position: absolute; z-index: 2; top: 12px; inset-inline-start: 12px; padding: 6px 12px; border-radius: 99px; background: rgba(20, 17, 15, .8); color: #fff; font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tsim-read:empty { display: none; }
.tsim-drag { position: absolute; z-index: 2; bottom: 10px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255, 252, 246, .85); color: var(--ink2); font-size: 13px; white-space: nowrap; transition: opacity .4s ease; pointer-events: none; }
.tsim-drag svg { width: 15px; height: 15px; }
.tsim.dragged .tsim-drag { opacity: 0; }
.tsim-ctl { display: flex; align-items: stretch; gap: 10px; }
.tsim-seg { flex: none; display: flex; padding: 4px; border-radius: 99px; background: var(--fill2); }
.tsim-seg button { min-width: 64px; border: 0; border-radius: 99px; background: none; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; transition: background .2s, color .2s; }
.tsim-seg button[aria-checked="true"] { background: var(--surface-hi, #fff); color: var(--ink); box-shadow: 0 1px 4px rgba(60, 40, 20, .18); }
.tsim-lock { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 0 16px; border: 0; border-radius: 99px; background: var(--fill2); font: inherit; font-size: 14px; font-weight: 600; color: var(--ink2); cursor: pointer; }
.tsim-lock svg { width: 18px; height: 18px; }
.tsim-lock[aria-pressed="true"] { background: var(--ink); color: #fff; }
.tsim-hold { --k: 0; position: relative; flex: 1; min-height: 56px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; overflow: hidden; border: 0; border-radius: 99px; background: var(--cta-bg, #d9692f); color: #fff; font: inherit; font-size: 16.5px; font-weight: 700; box-shadow: var(--cta-sh); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: none; transition: transform .3s var(--spring); }
.tsim-hold i { display: grid; width: 20px; height: 20px; }
.tsim-hold i svg { width: 100%; height: 100%; }
.tsim-hold span, .tsim-hold i { position: relative; z-index: 1; }
.tsim-hold.on { transform: scale(.97); }
.tsim-meter { position: absolute; inset: 0; background: rgba(110, 40, 8, .35); transform-origin: right center; transform: scaleX(var(--k)); }
.tsim-tips { margin: 16px 0 0; padding: 0; list-style: none; counter-reset: t; display: grid; gap: 10px; }
.tsim-tips li { counter-increment: t; display: flex; gap: 10px; font-size: 15px; line-height: 1.45; color: var(--ink2); }
.tsim-tips li::before { content: counter(t); flex: none; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; display: grid; place-items: center; background: var(--acc-tint); color: var(--acc-ink); font-size: 12.5px; font-weight: 700; }
@media (prefers-reduced-motion: reduce) { .tsim-card, .tsim-bg { transition: opacity .2s !important; } .tsim .tsim-card { transform: none; } .tsim.running .tsim-stage canvas { animation: none; } }
img.pimg:not([src]) { visibility: hidden; } /* בלי סמל של תמונה שבורה עד שהתמונה מוכנה */
/* תמונת פתיחה בתוך סצנה (קק"ל): ממלאת את הכרטיס, בלי רשת הנקודות ובלי ריפוד */
:root .f-photo.scene::before { display: none; }
:root .f-photo.scene img { padding: 0; object-fit: cover; object-position: 50% 58%; }
:root .f-photo.scene::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; background: linear-gradient(180deg, rgba(241, 232, 219, 0), rgba(241, 232, 219, .55)); pointer-events: none; }
.tsim-card { overscroll-behavior: contain; } .tsim-card:focus { outline: none; }
.tsim .tsim-card:focus, .tsim .tsim-card:focus-visible { outline: none !important; box-shadow: 0 -18px 50px -16px rgba(60, 38, 18, .45) !important; }

/* דמו בקישור אישי (קק"ל): סימן מים, ומסך השער */
.wm { display: none; }
html.demo-lock .wm { display: block; position: absolute; inset: 0; z-index: 2; pointer-events: none; background-image: var(--wm); background-size: 300px 170px; }
html.demo-lock .bk-pg::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background-image: var(--wm); background-size: 240px 136px; }
.gate { min-height: 100dvh; display: grid; place-items: center; padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px)); background: var(--canvas, #f4efe8); background-image: var(--canvas-img, none); }
.gate-card { width: min(100%, 420px); display: grid; justify-items: center; gap: 12px; text-align: center; padding: 34px 24px 26px; border-radius: 32px; background: var(--surface, #fbf8f3); box-shadow: var(--sh-card, 0 18px 36px -28px rgba(60, 40, 20, .42)); }
.gate-logo .mark { transform: scale(1.15); }
.gate h1 { margin: 8px 0 0; font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.gate p { margin: 0; color: var(--ink2); font-size: 16px; line-height: 1.5; }
.gate-wa { margin-top: 10px; width: 100%; min-height: 54px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.gate-retry { margin-top: 10px; width: 100%; min-height: 54px; font: inherit; font-weight: 700; }
.gate-wa svg { width: 22px; height: 22px; }
.gate small { margin-top: 6px; color: var(--ink3); font-size: 13px; }
/* המסך האחרון אחרי "טאדאם!" (main.js renderThanks): על הבסיס של מסך השער */
.thanks-badge { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--accent, #d9692f); box-shadow: 0 10px 24px -12px rgba(217, 105, 47, .7); animation: thanksPop .5s cubic-bezier(.2, 1.4, .4, 1) both; }
.thanks-badge svg { width: 30px; height: 30px; }
.thanks h1 { text-wrap: balance; }
.thanks p { text-wrap: pretty; }
.thanks .nw { white-space: nowrap; } /* שם המוצר לא נשבר באמצע ("4" לבד בשורה) */
.thanks-again { width: 100%; min-height: 50px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.thanks small { display: inline-flex; align-items: center; gap: 6px; }
.thanks small .mark { transform: scale(.8); }
@keyframes thanksPop { from { transform: scale(.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .thanks-badge { animation: none; } }

/* ---------- קטלוג החלקים (קולמן, שלב ו2): כלים, מלאי לפי אזורים, מסך הפריסה על הרצפה. כל הסלקטורים .ct-* ו-.lo-* ----------
   התמונות שקופות (רינדור מה-CAD עם צל רך), והרקע של המשבצת נותן את האחידות */
.ct-img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 18px; background: radial-gradient(120% 90% at 50% 35%, #ffffff 0%, #f1ece4 100%); box-shadow: inset 0 0 0 1px rgba(60, 40, 20, 0.06); }
.ct-tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.ct-tool { background: var(--card); border-radius: 26px; box-shadow: var(--shadow); padding: 10px 10px 14px; display: grid; gap: 4px; align-content: start; text-align: center; }
.ct-tool .ct-img { margin-bottom: 6px; }
.ct-tool b { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.ct-tool span { font-size: 13px; line-height: 1.35; color: var(--ink2); text-wrap: pretty; }
.ct-note { margin: 16px 2px 0; text-align: center; color: var(--ink3); font-size: 14px; }
.ct-sec { margin-top: 22px; }
.ct-sec-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 2px 8px; }
.ct-sec-h h3 { margin: 0; font-size: 19px; font-weight: 700; letter-spacing: -0.015em; }
.ct-sec-h h3 small { font-size: 14px; font-weight: 600; color: var(--ink3); margin-inline-start: 4px; }
.ct-all { border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--acc-deep); background: rgba(217, 105, 47, 0.1); padding: 7px 13px; border-radius: 99px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.2s, color 0.2s, transform 0.3s var(--spring, ease); }
.ct-all:active { transform: scale(0.95); }
.ct-all.done { color: #1f7a3a; background: rgba(52, 199, 89, 0.14); }
.ct-sub { margin: -2px 2px 10px; font-size: 13.5px; line-height: 1.4; color: var(--ink2); }
.ct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 8px; } /* לפי רוחב העמודה, לא המסך: 3 בטלפון, 4 בעמודה של המחשב */
.ct-item { position: relative; border: 0; font: inherit; color: inherit; text-align: center; background: var(--card); border-radius: 20px; box-shadow: var(--shadow); padding: 5px 5px 8px; display: grid; gap: 1px; align-content: start; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 0.35s var(--spring, ease), box-shadow 0.25s; }
.ct-item:active { transform: scale(0.96); transition-duration: 0.1s; }
.ct-item:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.ct-pic { position: relative; display: block; margin-bottom: 4px; }
.ct-pic .ct-img { border-radius: 15px; }
.ct-code { position: absolute; top: 6px; right: 6px; /* פיזי: לתווית dir=ltr משלה, ו-inline-start שלה היה שמאל */ min-width: 24px; padding: 2px 7px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.35; letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
.ct-code.hw { border-radius: 99px; background: var(--acc-deep); }
.ct-check { position: absolute; top: 6px; left: 6px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); background: rgba(255, 255, 255, 0.9); transition: all 0.3s var(--ease); }
.ct-check::after { content: ""; position: absolute; inset: 4px 5px 6px; border: solid #fff; border-width: 0 0 2.4px 2.4px; transform: rotate(-45deg) scale(0.6); opacity: 0; transition: all 0.3s var(--ease); }
.ct-item.on { box-shadow: 0 0 0 2.5px #34c759, var(--shadow); }
.ct-item.on .ct-check { background: #34c759; border-color: #34c759; }
.ct-item.on .ct-check::after { opacity: 1; transform: rotate(-45deg) scale(1); }
.ct-item.just .ct-check { animation: ct-pop 0.4s var(--spring, ease); }
@keyframes ct-pop { 40% { transform: scale(1.25); } }
.ct-name { font-size: 13px; font-weight: 650; line-height: 1.2; padding: 0 2px; text-wrap: balance; }
.ct-meta { display: flex; justify-content: center; align-items: baseline; gap: 5px; font-size: 12px; color: var(--ink3); }
.ct-meta em { font-style: normal; font-weight: 700; color: var(--ink2); font-variant-numeric: tabular-nums; }
.ct-card { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: center; padding: 4px 2px 8px; }
.ct-card-pic .ct-img { border-radius: 22px; }
.ct-card-h { display: flex; align-items: center; gap: 8px; }
.ct-card-h .ct-code { position: static; font-size: 15px; padding: 3px 9px; }
.ct-card-h b { font-size: 21px; font-weight: 700; letter-spacing: -0.015em; }
.ct-spec { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--ink2); text-align: end; }
.ct-card p { margin: 6px 0 0; font-size: 15px; line-height: 1.4; color: var(--ink2); text-wrap: pretty; }
.ct-facts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ct-facts span { font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 99px; background: rgba(110, 70, 35, 0.08); color: var(--ink2); }
.ct-facts b { color: var(--ink); }

/* מסך הפריסה: המוצר ממלא את המסך, תוויות מעליו, ובתחתית בורר אזורים וכפתור */
.lo-top { pointer-events: none; }
.lo-title { margin-inline: auto; min-width: 0; max-width: calc(100% - 112px); padding: 7px 16px; border-radius: 20px; text-align: center; background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 0.5px rgba(20, 17, 15, 0.08), 0 6px 16px -10px rgba(60, 40, 20, 0.45); }
.lo-title b { display: block; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.lo-title span { display: block; font-size: 12px; color: var(--ink2); }
.lo-top .bb-btn { margin-inline-end: -40px; } /* הכותרת באמצע המסך, לא באמצע מה שנשאר */
.lo-tags { position: fixed; inset: 0; z-index: 15; pointer-events: none; overflow: hidden; }
.lo-tag { position: absolute; top: 0; left: 0; pointer-events: none; display: inline-grid; justify-items: center; max-width: 150px; padding: 4px 10px 5px; border: 0; border-radius: 12px; font: inherit; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent; text-align: center;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 0 0 0.5px rgba(20, 17, 15, 0.1), 0 4px 12px -6px rgba(40, 25, 10, 0.45); will-change: transform; }
.lo-tag .lo-n { font-size: 13px; font-weight: 650; line-height: 1.25; letter-spacing: -0.01em; max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lo-tag em { font-style: normal; font-weight: 700; color: var(--acc-deep); }
.lo-tag small { font-size: 10.5px; line-height: 1.2; color: var(--ink3); font-weight: 500; letter-spacing: 0.01em; white-space: nowrap; }
.lo-tag.hw { background: rgba(255, 255, 255, 0.96); max-width: var(--cw, 104px); padding: 3px 6px 4px; }
.lo-tag.hw .lo-n { font-size: 12px; max-width: calc(var(--cw, 104px) - 12px); }
.lo-tag.hw small { max-width: calc(var(--cw, 104px) - 12px); overflow: hidden; text-overflow: ellipsis; }
.lo-tag.hw small { color: var(--acc-deep); font-weight: 600; }
.lo-tag { opacity: 0; visibility: hidden; transition: opacity 0.18s var(--ease), visibility 0s 0.18s; }
.lo-tag.vis { opacity: 1; visibility: visible; transition: opacity 0.18s var(--ease); }
/* שם האזור מרחוק: כתב שטוח על הרצפה, בלי בועה. מקרוב המדבקה התלת־ממדית מחליפה אותו */
.lo-zname { position: absolute; top: 0; left: 0; pointer-events: none; border: 0; background: none; padding: 2px 4px; font: inherit; font-size: 13.5px; font-weight: 700; letter-spacing: -0.01em; color: #2b241e; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  text-shadow: 0 0 2px rgba(255, 252, 246, 0.95), 0 0 8px rgba(255, 252, 246, 0.9), 0 0 14px rgba(255, 252, 246, 0.7); will-change: transform; opacity: 0; visibility: hidden; transition: opacity 0.2s var(--ease), visibility 0s 0.2s; }
.lo-zname.vis { opacity: 1; visibility: visible; transition: opacity 0.2s var(--ease); }
/* "תצוגה מלאה": מופיע כשהמצלמה לא במבט על כל החדר */
.lo-full { justify-self: start; display: inline-flex; align-items: center; gap: 6px; border: 0; padding: 8px 13px 8px 12px; border-radius: 99px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 0.5px rgba(20, 17, 15, 0.08), 0 6px 16px -10px rgba(60, 40, 20, 0.4);
  opacity: 0; translate: 0 6px; pointer-events: none; transition: opacity 0.22s var(--ease), translate 0.22s var(--ease); }
.lo-full.on { opacity: 1; translate: 0 0; pointer-events: auto; }
.lo-full:active { scale: 0.96; }
.lo-full svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* הכותרת באזור: חצים לאזור הקודם והבא, תיאור, ו"רשימה" */
.lo-top .lo-title { pointer-events: auto; touch-action: pan-y; }
.lo-title.zone { display: flex; align-items: center; gap: 6px; padding: 6px 8px; }
.lo-title.zone > div { min-width: 0; }
.lo-title.zone b { font-size: 16px; }
.lo-title.zone a { color: var(--acc-deep); font-weight: 600; text-decoration: none; }
.lo-arr { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; background: rgba(20, 17, 15, 0.06); font: inherit; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; }
.lo-arr:disabled { opacity: 0.25; cursor: default; }
.lo-next { margin: 0; text-align: center; font-size: 13px; color: var(--ink2); font-weight: 500; }
/* הרשימה של אזור (בגיליון) */
.lo-list { display: grid; gap: 6px; max-height: 58vh; overflow-y: auto; padding: 2px 0 8px; }
.lo-li { display: grid; grid-template-columns: 52px 1fr auto; align-items: center; gap: 12px; border: 0; padding: 6px 8px; border-radius: 14px; background: rgba(20, 17, 15, 0.035); font: inherit; color: var(--ink); text-align: start; cursor: pointer; }
.lo-li .ct-img { width: 52px; border-radius: 12px; }
.lo-li b { display: block; font-size: 15px; font-weight: 650; }
.lo-li small { font-size: 12px; color: var(--ink3); }
.lo-li em { font-style: normal; font-weight: 700; color: var(--ink2); }
.ct-card-name { display: block; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.ct-card-ref { display: block; margin-top: 2px; font-size: 13px; color: var(--ink3); }
.lo-bar { position: fixed; z-index: 20; inset-inline: 0; bottom: 0; padding: 0 12px calc(12px + var(--bottom, 0px)); display: grid; gap: 10px; max-width: 800px; margin: 0 auto; }
.lo-segs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 4px; margin: 0 -4px; border-radius: 99px; background: rgba(255, 255, 255, 0.78); backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%); box-shadow: inset 0 0 0 0.5px rgba(20, 17, 15, 0.08), 0 6px 16px -10px rgba(60, 40, 20, 0.4); }
.lo-segs::-webkit-scrollbar { display: none; }
.lo-seg { flex: none; border: 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink2); background: transparent; padding: 8px 14px; border-radius: 99px; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background 0.25s, color 0.25s; }
.lo-seg.on { background: var(--ink); color: #fff; }
.lo-bar .f-cta { width: 100%; }

/* ז1: הדף לא מוגדל בצביטה או בהקשה כפולה (הזום היחיד הוא של המודל). ראו nozoom.js */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
/* ז1: תוויות הפריסה לא תופסות מגע (גרירה שהתחילה על תווית לא סובבה את המודל: הדפדפן ביטל אותה). ההקשה עליהן נקלטת מהקנבס (layout.js, labelAt) */
