/* ============================================================
   coconetpro — המשרד. אתר שהצפייה בו היא דרך עיניים.

   שלוש שכבות:
   1. #stage  — הקנבס התלת-ממדי + ה-HUD. גובה מסך מלא.
   2. #reader — חלונית הקריאה שנפתחת "מתוך" המסך שנבחר.
   3. #docs   — האתר עצמו כמסמך רגיל, מתחת לסצנה.
                זה מה שגוגל וקוראי מסך מקבלים, וזו גם הנפילה
                הרכה כשאין WebGL. אין כפילות תוכן: הסקציות
                *עוברות* לחלונית ונשלפות בחזרה בסגירה.
   ============================================================ */

:root {
  --coco:     #2A2118;
  --net:      #C43E2F;
  --net-hi:   #E05543;
  --pro:      #A8842C;
  --pro-hi:   #D4A855;
  --espresso: #3A2A1C;
  --cream:    #EFE3CE;
  --flesh:    #FFFDF7;
  --ground:   #EFECE6;
  --ink:      #2A2118;
  --muted:    #6E645A;
  --rule:     #DCD5C8;

  --hud-bg:   rgba(26, 21, 16, .72);
  --hud-line: rgba(244, 237, 224, .18);
  --hud-ink:  #F4EDE0;

  --fh: "Heebo", "Segoe UI", Arial, sans-serif;
  --fl: "Sora", "Heebo", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fh);
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
}

body.in-3d { overflow: hidden; }
body.reading { overflow: hidden; }

.skip {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 999;
  background: var(--flesh); color: var(--ink); padding: .7rem 1.1rem;
  border-radius: 0 0 10px 0; font-weight: 700;
}
.skip:focus { inset-inline-start: 0; }

/* הכותרת האמיתית של הדף. הלוגו על הדלת הוא תמונה בתלת-ממד,
   ובלעדיה לקוראי מסך ולמנועי חיפוש אין כותרת בכלל. */
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; margin: -1px; padding: 0; border: 0;
}

/* ═══════════════ 1. הבמה ═══════════════ */

#stage {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 520px;
  background: #0d0b09;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
#stage.dragging { cursor: grabbing; }
#stage.pointing { cursor: pointer; }

#gl { display: block; width: 100%; height: 100%; }

/* ווינייטה — נותנת לתמונה מסגרת של עין, לא של חלון */
.vignette {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    radial-gradient(120% 96% at 50% 48%, transparent 52%, rgba(8,6,4,.42) 100%);
  mix-blend-mode: multiply;
}

/* עפעפיים — מצמוץ בכניסה ובמעברים */
.lid {
  position: absolute; inset-inline: -4%; height: 62%; z-index: 6;
  background: #080605; pointer-events: none;
  transform: translateY(-104%);
  transition: transform .17s cubic-bezier(.4,0,.6,1);
}
.lid.b { bottom: 0; top: auto; transform: translateY(104%); }
.lid.t { top: 0; }
body.blink .lid.t { transform: translateY(-2%); }
body.blink .lid.b { transform: translateY(2%); }

/* ---------- מסך הפתיחה (הלובי) ---------- */

#gate {
  position: absolute; inset: 0; z-index: 8;
  display: grid; align-items: end; justify-items: center; text-align: center;
  padding: 6vh 1.2rem clamp(2rem, 11vh, 6rem);
  background:
    radial-gradient(115% 78% at 50% 30%,
      rgba(10,8,6,.02) 0%, rgba(10,8,6,.16) 46%, rgba(10,8,6,.62) 78%, rgba(10,8,6,.86) 100%);
  transition: opacity .7s ease, visibility .7s;
}
#gate[hidden] { display: grid; opacity: 0; visibility: hidden; pointer-events: none; }

.gate-in { max-width: 40rem; }

.gate-btn {
  font: 700 1.02rem/1 var(--fh);
  color: #fff; background: var(--net);
  border: 0; border-radius: 999px; padding: 1.05rem 2.4rem;
  cursor: pointer; box-shadow: 0 0 0 0 rgba(224,85,67,.55);
  animation: pulse 2.8s ease-out infinite;
}
.gate-btn:hover { background: var(--net-hi); }
.gate-btn:focus-visible { outline: 3px solid var(--pro-hi); outline-offset: 3px; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(224,85,67,.5); }
  70%  { box-shadow: 0 0 0 22px rgba(224,85,67,0); }
  100% { box-shadow: 0 0 0 0 rgba(224,85,67,0); }
}
.gate-skip {
  display: block; margin: 1.3rem auto 0; background: none; border: 0;
  color: rgba(244,237,224,.6); font: 500 .86rem var(--fh);
  text-decoration: underline; cursor: pointer;
}
.gate-skip:hover { color: var(--flesh); }

/* ---------- HUD ---------- */

.hud {
  position: absolute; inset: 0; z-index: 4; pointer-events: none;
  transition: opacity .5s ease .2s;
}
/* כל עוד השער פתוח אין מה להראות מה-HUD — הוא רק מתחרה בלוגו */
#gate:not([hidden]) ~ .hud { opacity: 0; }
#gate:not([hidden]) ~ .hud > * { pointer-events: none; }
.hud > * { pointer-events: auto; }
.hud [hidden] { display: none !important; }

.hud-top {
  position: absolute; inset-inline: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: .85rem clamp(.8rem, 2.4vw, 1.6rem);
  background: linear-gradient(180deg, rgba(10,8,6,.62), transparent);
}
.hud-brand { display: flex; align-items: center; gap: .6rem; }
.hud-brand svg { display: block; }
.hud-brand .w { width: 122px; height: auto; }
.hud-brand .m { width: 26px; height: 26px; }

.hud-where {
  font: 600 .82rem/1 var(--fh); color: var(--cream);
  background: var(--hud-bg); border: 1px solid var(--hud-line);
  border-radius: 999px; padding: .5rem .95rem;
  backdrop-filter: blur(7px); white-space: nowrap;
}
.hud-where b { color: var(--pro-hi); font-family: var(--fl); }

/* מד התקדמות במסדרון — שני חצים וקו שמראה איפה עומדים.
   התוויות קטנות בכוונה, אבל קבועות: בלעדיהן שני חצים
   אנכיים נקראים כגלילה ולא כהליכה קדימה ואחורה. */
.rail {
  position: absolute; inset-inline-end: clamp(.7rem, 2vw, 1.4rem);
  top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  height: min(44vh, 300px);
}
.rail-tag {
  font: 600 .62rem/1 var(--fh); color: rgba(244,237,224,.72);
  letter-spacing: .02em; text-shadow: 0 1px 3px rgba(8,6,4,.9);
  margin-block: .1rem .25rem; user-select: none;
}
.rail-tag + .rail-line { margin-top: 0; }
.rail-line + .rail-tag { margin-block: .25rem .1rem; }
.rail-line {
  width: 2px; flex: 1; min-height: 70px; background: rgba(244,237,224,.2);
  border-radius: 2px; position: relative;
}
.rail-dot {
  position: absolute; inset-inline-start: 50%; width: 9px; height: 9px;
  margin-inline-start: -4.5px; border-radius: 50%; top: 0;
  background: var(--net-hi); box-shadow: 0 0 12px rgba(224,85,67,.9);
  transition: top .18s linear;
}
.rail-btn {
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer; flex: none;
  background: var(--hud-bg); border: 1px solid rgba(244,237,224,.34);
  color: var(--hud-ink); font: 500 1.05rem/1 var(--fh);
  display: grid; place-items: center; backdrop-filter: blur(7px);
  box-shadow: 0 2px 10px rgba(8,6,4,.35);
  transition: background .15s, border-color .15s, transform .1s;
}
.rail-btn:active:not(:disabled) { transform: scale(.92); }
.rail-btn:hover { background: rgba(196,62,47,.85); border-color: transparent; }
.rail-btn:disabled { opacity: .3; cursor: default; }
.rail-btn:focus-visible { outline: 2px solid var(--pro-hi); outline-offset: 2px; }

/* פס תחתון — סקטורים + מבטים */
.hud-bottom {
  position: absolute; inset-inline: 0; bottom: 0;
  padding: 2.6rem clamp(.7rem, 2.4vw, 1.6rem) clamp(.8rem, 2vw, 1.2rem);
  background: linear-gradient(0deg, rgba(10,8,6,.74), transparent);
  display: flex; flex-direction: column; gap: .6rem; align-items: center;
}
.chips { display: flex; gap: .4rem; flex-wrap: wrap; justify-content: center; }
.chip {
  font: 600 .84rem/1 var(--fh); color: var(--cream); cursor: pointer;
  background: var(--hud-bg); border: 1px solid var(--hud-line);
  border-radius: 999px; padding: .58rem 1rem;
  backdrop-filter: blur(7px); white-space: nowrap;
  display: inline-flex; align-items: center; gap: .45rem;
  transition: background .18s, color .18s, border-color .18s;
}
.chip i { font-family: var(--fl); font-style: normal; font-size: .7rem; color: var(--pro-hi); }
.chip:hover { background: rgba(196,62,47,.9); border-color: transparent; color: #fff; }
.chip:hover i { color: #fff; }
.chip[aria-current="true"] { background: var(--flesh); color: var(--coco); border-color: transparent; }
.chip[aria-current="true"] i { color: var(--net); }
.chip:focus-visible { outline: 2px solid var(--pro-hi); outline-offset: 2px; }

.hud-help {
  font: 500 .74rem/1.5 var(--fh); color: rgba(244,237,224,.62);
  text-align: center; margin: 0;
}
.hud-help kbd {
  font: 600 .72rem var(--fl); background: rgba(244,237,224,.14);
  border: 1px solid rgba(244,237,224,.2); border-radius: 5px;
  padding: .1rem .34rem; margin-inline: .08rem;
}

/* שלט "לחצו כדי לפתוח" שצף ליד המסך הקרוב */
#prompt {
  position: absolute; z-index: 5; transform: translate(-50%, -50%);
  pointer-events: auto; cursor: pointer;
  background: var(--flesh); color: var(--coco);
  border: 0; border-radius: 12px; padding: .6rem .9rem;
  font: 700 .86rem/1.2 var(--fh); text-align: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.45);
  animation: rise .3s ease both;
}
#prompt small { display: block; font: 500 .72rem var(--fh); color: var(--muted); margin-top: .15rem; }
#prompt::after {
  content: ""; position: absolute; inset-inline-start: 50%; bottom: -6px;
  width: 12px; height: 12px; background: var(--flesh);
  transform: translateX(-50%) rotate(45deg);
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, -38%); } }

/* טוסט הקפה — הודעה קצרה אחרי לחיצה על מכונת הקפה */
#coffeeToast {
  position: absolute; z-index: 7; inset-inline: 0; margin-inline: auto;
  bottom: clamp(4.6rem, 10vh, 7rem); width: fit-content; max-width: 90%;
  background: var(--flesh); color: var(--coco);
  font: 700 .95rem/1.4 var(--fh); text-align: center;
  padding: .8rem 1.4rem; border-radius: 999px;
  border: 2px solid var(--pro-hi);
  box-shadow: 0 12px 40px rgba(8,6,4,.45);
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s ease, transform .3s ease;
  pointer-events: none;
}
#coffeeToast.show { opacity: 1; transform: translateY(0); }

/* ═══════════════ 2. חלונית הקריאה ═══════════════ */

#reader {
  position: fixed; inset: 0; z-index: 20;
  display: grid; place-items: center;
  padding: clamp(.6rem, 2.5vw, 2rem);
  background: rgba(8, 6, 4, .62);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .32s ease, visibility .32s;
}
#reader.open { opacity: 1; visibility: visible; }

.reader-card {
  position: relative;
  width: min(880px, 100%);
  max-height: min(86svh, 900px);
  display: flex; flex-direction: column;
  background: var(--flesh);
  border-radius: 14px;
  box-shadow: 0 40px 110px rgba(0,0,0,.6), 0 0 0 8px rgba(28,28,32,.92), 0 0 0 9px rgba(255,255,255,.08);
  transform: scale(.84); opacity: 0;
  transition: transform .38s cubic-bezier(.2,.9,.25,1), opacity .3s ease;
  transform-origin: var(--ox, 50%) var(--oy, 50%);
  overflow: hidden;
}
#reader.open .reader-card { transform: scale(1); opacity: 1; }

.reader-bar {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .95rem; background: #1F1B16; color: var(--cream);
  border-bottom: 1px solid rgba(255,255,255,.08); flex: none;
}
.reader-bar .dots { display: flex; gap: .35rem; }
.reader-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(244,237,224,.25); }
.reader-bar .dots i:first-child { background: var(--net-hi); }
.reader-bar h2 {
  margin: 0; font: 700 .95rem/1 var(--fh); flex: 1;
  display: flex; align-items: center; gap: .5rem;
}
.reader-bar h2 span { font: 700 .72rem var(--fl); color: var(--pro-hi); }
.reader-close {
  border: 0; background: rgba(244,237,224,.12); color: var(--cream);
  width: 30px; height: 30px; border-radius: 8px; cursor: pointer;
  font-size: 1rem; line-height: 1; display: grid; place-items: center;
}
.reader-close:hover { background: var(--net); color: #fff; }
.reader-close:focus-visible { outline: 2px solid var(--pro-hi); outline-offset: 2px; }

.reader-body {
  overflow: auto; overscroll-behavior: contain;
  padding: clamp(1.1rem, 3vw, 2rem);
  scrollbar-width: thin;
}
.reader-body > .sector { margin: 0; padding: 0; border: 0; }

.reader-next {
  flex: none; display: flex; gap: .5rem; justify-content: space-between;
  padding: .7rem .95rem; border-top: 1px solid var(--rule); background: var(--ground);
}
.reader-next button {
  font: 600 .84rem var(--fh); cursor: pointer; color: var(--ink);
  background: var(--flesh); border: 1px solid var(--rule);
  border-radius: 9px; padding: .5rem .9rem;
}
.reader-next button:hover:not(:disabled) { border-color: var(--net); color: var(--net); }
.reader-next button:disabled { opacity: .35; cursor: default; }

/* ═══════════════ 3. המסמך ═══════════════ */

#docs { display: none; }
body.no3d #docs, body.showdocs #docs { display: block; }
body.no3d #stage, body.no3d #reader, body.no3d #backTo3d { display: none; }
body.no3d, body.showdocs { overflow: auto; }

.wrap { width: min(72rem, 100% - 2.4rem); margin-inline: auto; }

.sector { padding-block: clamp(2.4rem, 6vw, 4.4rem); }
#docs .sector + .sector { border-top: 1px solid var(--rule); }

.kick {
  font: 700 .72rem/1 var(--fl); letter-spacing: .2em; text-transform: uppercase;
  color: var(--net); margin: 0 0 .7rem;
}
.sector h2 {
  font: 800 clamp(1.5rem, 3.6vw, 2.25rem)/1.22 var(--fh);
  margin: 0 0 .9rem; letter-spacing: -.01em;
}
.sector h3 { font: 700 1.06rem/1.4 var(--fh); margin: 1.6rem 0 .5rem; }

/* פתיח האודות: משפט אחד שהלוגו יושב בתוכו כמילה.
   הלוגו הוא הגרסה לרקע בהיר — האותיות כהות. */
.brand-line {
  font: 700 clamp(1.15rem, 2.6vw, 1.5rem)/1.6 var(--fh) !important;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .1rem .45rem;
}
.brand-word {
  width: clamp(150px, 26vw, 232px); height: auto;
  display: inline-block; vertical-align: baseline;
  transform: translateY(.06em);
}
.sector p { margin: 0 0 1rem; line-height: 1.78; color: #3A3229; max-width: 62ch; }
.sector p.lede { font-size: 1.08rem; color: var(--ink); }
.sector a { color: var(--net); }
.sector strong { color: var(--ink); }
.sector ul { line-height: 1.8; color: #3A3229; }

.cards { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin: 1.4rem 0; }
.card {
  background: var(--ground); border: 1px solid var(--rule);
  border-radius: 12px; padding: 1.05rem 1.15rem;
}
.card .n { font: 700 .74rem var(--fl); color: var(--pro); letter-spacing: .12em; }
.card h4 { margin: .35rem 0 .5rem; font: 700 1rem/1.35 var(--fh); }
.card p { margin: 0; font-size: .92rem; line-height: 1.7; color: #4A4137; }
.card ul { margin: .6rem 0 0; padding-inline-start: 1.05rem; font-size: .88rem; line-height: 1.75; color: #4A4137; }

.note {
  background: #FBF4E4; border: 1px solid #E7D9B8; border-inline-start: 4px solid var(--pro);
  border-radius: 10px; padding: .85rem 1rem; font-size: .9rem; line-height: 1.7; color: #4A4137;
  margin: 1.2rem 0;
}
.note b { color: var(--ink); }
.note p { margin: 0; font-size: inherit; }

/* ---------- מחשבון השעות ---------- */

.calc-rate {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; background: var(--ground); border: 1px solid var(--rule);
  border-radius: 12px; padding: .9rem 1.05rem; margin: 1.2rem 0;
}
.calc-rate p { margin: 0; font-size: .9rem; max-width: 34ch; }
.calc-rate p b { display: block; font-size: .98rem; margin-bottom: .15rem; }

.step { display: inline-flex; align-items: center; gap: .3rem; }
.step button {
  width: 34px; height: 34px; border-radius: 9px; cursor: pointer;
  border: 1px solid var(--rule); background: var(--flesh); color: var(--ink);
  font: 700 1.05rem/1 var(--fh);
}
.step button:hover:not(:disabled) { border-color: var(--net); color: var(--net); }
.step button:disabled { opacity: .3; cursor: default; }
.step output { min-width: 4.6rem; text-align: center; font: 700 .98rem var(--fl); }

#calcRows { display: grid; gap: .4rem; margin: 1rem 0 1.4rem; }
.crow {
  display: flex; align-items: center; justify-content: space-between; gap: .7rem;
  border: 1px solid var(--rule); border-radius: 10px; padding: .5rem .7rem;
  background: var(--flesh); transition: border-color .15s, background .15s;
}
.crow[data-on="1"] { border-color: var(--net); background: #FDF6F4; }
.crow label { display: flex; align-items: center; gap: .6rem; cursor: pointer; font-size: .92rem; flex: 1; }
.crow input { width: 18px; height: 18px; accent-color: var(--net); flex: none; }
.crow .step button { width: 30px; height: 30px; font-size: .95rem; }
.crow .step output { min-width: 2.6rem; font-size: .88rem; }

.result {
  background: var(--coco); color: var(--cream); border-radius: 14px;
  padding: clamp(1.1rem, 3vw, 1.6rem); margin: 1.4rem 0;
}
.result .big { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.result .big b { font: 800 clamp(2.4rem, 8vw, 3.6rem)/1 var(--fl); color: var(--flesh); }
.result .big span { font-size: 1rem; color: var(--pro-hi); font-weight: 600; }
.result .sub { font-size: .84rem; color: rgba(244,237,224,.6); margin: .35rem 0 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.split div { background: rgba(244,237,224,.07); border-radius: 10px; padding: .75rem .9rem; }
.split b { display: block; font: 700 1.5rem/1 var(--fl); color: var(--flesh); }
.split span { font-size: .78rem; color: rgba(244,237,224,.65); line-height: 1.45; display: block; margin-top: .3rem; }
.money { margin-top: .9rem; border-top: 1px solid rgba(244,237,224,.14); padding-top: .9rem; }
.money b { font: 800 clamp(1.7rem, 5vw, 2.3rem)/1 var(--fl); color: var(--pro-hi); display: block; }
.money span { font-size: .82rem; color: rgba(244,237,224,.65); }

/* ---------- מחשבון התקן: תשלום אחד מול משכורת שרצה ---------- */

/* התאים בזהב הם היחידים שנערכים — אותו זהב של .note, כדי שיהיה
   ברור במבט אחד שהמספרים האלה של המבקר ולא שלנו. */
.roi-field {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  flex-wrap: wrap; background: var(--flesh); border: 1px solid var(--rule);
  border-inline-start: 4px solid var(--pro);
  border-radius: 12px; padding: .9rem 1.05rem; margin: .5rem 0;
}
.roi-field p { margin: 0; font-size: .9rem; max-width: 38ch; }
.roi-field p b { display: block; font-size: .98rem; margin-bottom: .15rem; }

.roi-field .cell {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  background: #FBF4E4; border: 1px solid #E7D9B8; border-radius: 9px;
  padding: 0 .7rem; transition: border-color .15s;
}
.roi-field .cell:focus-within { border-color: var(--pro); }
.roi-field .cell span { font-size: .85rem; color: var(--muted); }
.roi-field .cell input {
  width: 5.4rem; border: 0; background: none; padding: .5rem 0;
  font: 700 1rem var(--fl); color: var(--ink);
  text-align: center; direction: ltr;
}
.roi-field .cell input:focus { outline: none; }
/* החיצים של number מכערים תא צר ואין בהם צורך — יש מקלדת */
.roi-field .cell input::-webkit-outer-spin-button,
.roi-field .cell input::-webkit-inner-spin-button { appearance: none; margin: 0; }
.roi-field .cell input { -moz-appearance: textfield; appearance: textfield; }

/* כשההקמה לא מחזירה את עצמה בתוך התקופה — הסכום מפסיק להיות
   "חיסכון" ומאבד את הזהב. עדיף להראות את זה מאשר להסתיר. */
#roiApp[data-worth="0"] .money b { color: rgba(244,237,224,.72); }

/* ---------- קשר ---------- */

.contact-grid { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); margin: 1.3rem 0; }
.contact-card {
  display: flex; flex-direction: column; gap: .3rem; text-decoration: none;
  background: var(--ground); border: 1px solid var(--rule); border-radius: 12px;
  padding: 1rem 1.1rem; color: var(--ink); transition: border-color .15s, transform .15s;
}
.contact-card:hover { border-color: var(--net); transform: translateY(-2px); }
.contact-card em { font-style: normal; font-size: .76rem; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-family: var(--fl); }
.contact-card b { font: 700 1.05rem var(--fh); color: var(--ink); }
.contact-card b.ltr { font-family: var(--fl); direction: ltr; text-align: right; }

.form { display: grid; gap: .7rem; margin: 1.3rem 0; max-width: 34rem; }
.form label { font-size: .86rem; font-weight: 600; display: grid; gap: .3rem; }
.form input, .form textarea, .form select {
  font: 400 .95rem var(--fh); color: var(--ink); background: var(--flesh);
  border: 1px solid var(--rule); border-radius: 10px; padding: .65rem .8rem; width: 100%;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 2px solid var(--net); outline-offset: 1px; border-color: transparent; }
.form textarea { min-height: 5.5rem; resize: vertical; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  font: 700 .96rem var(--fh); border-radius: 999px; padding: .8rem 1.5rem;
  cursor: pointer; text-decoration: none; border: 1px solid transparent;
}
.btn-primary { background: var(--net); color: #fff; }
.btn-primary:hover { background: var(--net-hi); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--net); color: var(--net); }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; margin: 1.2rem 0; }

/* ---------- סרטון ---------- */
.reel { margin: 1.3rem 0; }
.reel img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--rule); background: #111; }
.reel figcaption { font-size: .84rem; color: var(--muted); margin-top: .55rem; line-height: 1.65; }

.docs-head { background: var(--coco); color: var(--cream); padding: clamp(2rem, 5vw, 3.4rem) 0; }
.docs-head .wrap { display: flex; flex-direction: column; gap: .8rem; align-items: flex-start; }
.docs-head h1 { margin: 0; font: 800 clamp(1.6rem, 4.4vw, 2.5rem)/1.25 var(--fh); color: var(--flesh); }
.docs-head p { margin: 0; max-width: 60ch; line-height: 1.75; color: rgba(244,237,224,.8); }
.docs-head .wordmark { width: 190px; height: auto; }

.docs-foot { background: var(--coco); color: rgba(244,237,224,.7); padding: 2rem 0; font-size: .86rem; }
.docs-foot a { color: var(--pro-hi); }
.docs-foot .wrap { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: space-between; align-items: center; }

.to-docs {
  position: absolute; z-index: 4; bottom: .8rem; inset-inline-start: clamp(.7rem, 2vw, 1.4rem);
  font: 600 .76rem var(--fh); color: rgba(244,237,224,.72);
  background: var(--hud-bg); border: 1px solid var(--hud-line);
  border-radius: 999px; padding: .45rem .85rem; cursor: pointer; backdrop-filter: blur(7px);
}
.to-docs:hover { color: var(--flesh); border-color: var(--pro-hi); }

/* ---------- מסך טעינה ---------- */
#boot {
  position: absolute; inset: 0; z-index: 9; display: grid; place-items: center;
  background: #0d0b09; color: var(--cream); transition: opacity .5s ease;
  font: 500 .9rem var(--fh); text-align: center;
}
/* pointer-events מתבטל מיד, לא כשה-timer מסיר את האלמנט —
   אחרת כישלון של טיימר אחד נועל את כל האתר. */
#boot.gone { opacity: 0; pointer-events: none; }
#boot .bar { width: 190px; height: 3px; background: rgba(244,237,224,.16); border-radius: 3px; margin: .9rem auto 0; overflow: hidden; }
#boot .bar i { display: block; height: 100%; width: 30%; background: var(--net-hi); border-radius: 3px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-120%); } 100% { transform: translateX(420%); } }

/* ---------- מסכים קטנים ---------- */
@media (max-width: 720px) {
  .hud-help { display: none; }
  .rail { inset-inline-end: .5rem; height: min(38vh, 260px); }
  .hud-where { font-size: .74rem; padding: .42rem .7rem; }
  .hud-brand .w { width: 96px; }
  .chip { font-size: .78rem; padding: .5rem .8rem; }
  .chip.look { font-size: .72rem; }
  .split { grid-template-columns: 1fr; }
  .reader-card { max-height: 92svh; }
  .to-docs { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
