/* STUDY (10.11): the three solar opening screens, live. Tokens = Figma site/* variables per template (25:471).
   Layout responds to its CONTAINER (the style card or the full page), so the same HTML is the card preview and the real site. */
.hero-box { container-type: inline-size; }
.hero, .hero *, .hero *::before, .hero *::after { box-sizing: border-box; }
.hero { --bg: #f4f1ea; --surface: #fff; --line: #e2dccf; --text: #23262b; --muted: #4f545c; --accent: #f2a900; --accent-text: #8a5a00; --on-accent: #1b1f24; --deep: #183f63; --on-deep: #fff;
  position: relative; overflow: hidden; background: var(--bg); color: var(--text); font: 400 15px/1.5 Heebo, system-ui, sans-serif; padding: 24px 120px 96px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; direction: rtl; text-align: right; }
.hero.tpl-calc { --nav-bg: rgba(246,247,248,.96); --bg: #fff; --surface: #f6f7f8; --line: #e3e6ea; --text: #1b1f24; --muted: #4b5563; --accent: #f5b700; --accent-text: #17734a; --deep: #1b1f24; --on-deep-muted: #c7ccd3; }
.hero.tpl-scroll { --nav-bg: rgba(19,48,79,.94); --bg: #0b1f33; --surface: #13304f; --line: #2a4a6b; --text: #fff6e6; --muted: #c9d3de; --accent: #f2a900; --accent-text: #f6c27a; --on-accent: #0b1f33; min-height: 760px; align-content: space-between; }
.h-nav { position: relative; z-index: 2; display: flex; align-items: center; gap: 28px; padding: 6px 24px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--nav-bg, rgba(255,255,255,.94)); }
.h-logo { font-weight: 900; font-size: 20px; white-space: nowrap; } .h-logo-m { display: none; font-weight: 900; font-size: 18px; white-space: nowrap; } .h-nav nav { display: flex; gap: 28px; margin-inline: auto; white-space: nowrap; }
.h-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 14px 24px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 700; font-size: 16px; white-space: nowrap; }
.h-menu { display: none; min-height: 44px; padding: 0 16px; border: 1.5px solid currentColor; border-radius: 999px; align-items: center; font-weight: 700; }
.h-btn.sec { background: transparent; color: var(--text); border: 1.5px solid currentColor; }
.h-copy { position: relative; z-index: 2; display: grid; gap: 20px; } .h-k { margin: 0; font-weight: 600; color: var(--accent-text); }
.h-h { margin: 0; font-weight: 900; font-size: 112px; line-height: .96; letter-spacing: -.02em; } .h-h .ln { display: block; } .h-h .acc { color: var(--accent-text); }
.h-sub { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.55; color: var(--muted); } .h-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
/* הגג (46:473) */
.h-photo { position: relative; margin: 0; height: 520px; border-radius: 28px; overflow: hidden; }
.h-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-photo .cur { display: none; position: absolute; top: -1px; bottom: -1px; width: 32%; z-index: 1; background: var(--bg); will-change: transform; } .h-photo .cur.l { left: -1px; } .h-photo .cur.r { right: -1px; }
.h-photo figcaption { z-index: 2; }
.h-photo figcaption { position: absolute; top: 12px; left: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(10,13,18,.82); color: #fff; font: 500 15px Heebo, sans-serif; }
/* המחשבון (49:602) */
.tpl-calc .h-h { font-size: 84px; } .h-split { display: flex; gap: 64px; align-items: center; } .h-split .h-copy { flex: 1; }
.h-chart { list-style: none; margin: 0; padding: 36px; width: 520px; flex: none; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; display: grid; gap: 22px; }
.h-chart .cap { font-weight: 600; color: var(--muted); }
.h-chart .st { position: relative; display: grid; grid-template-columns: 1fr 44px; grid-template-rows: auto auto; column-gap: 14px; padding: 18px; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.h-chart .st b { font-weight: 800; font-size: 24px; line-height: 1.1; } .h-chart .st small { grid-column: 1; color: var(--muted); font-size: 15px; }
.h-chart .n { grid-column: 2; grid-row: 1 / span 2; align-self: center; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 600 18px "IBM Plex Mono", ui-monospace, monospace; }
.h-chart .st.on { background: var(--deep); color: #fff; } .h-chart .st.on small { color: var(--on-deep-muted); }
.h-chart .est { grid-column: 1 / -1; margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.18); font-size: 16px; }
.h-count { font: 700 34px "IBM Plex Mono", ui-monospace, monospace; color: var(--accent); font-variant-numeric: tabular-nums; }
.h-chart .est i { display: block; font-style: normal; font-size: 13px; color: var(--on-deep-muted); }
/* סיפור גלילה (51:734) */
.h-bg { position: absolute; inset: 0; } .h-bg img { width: 100%; height: 100%; object-fit: cover; }
.h-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(11,31,51,.96), rgba(11,31,51,.78) 62%, rgba(11,31,51,.25)); }
.tpl-scroll .h-h { font-size: 104px; letter-spacing: -.03em; } .tpl-scroll .h-sub { color: var(--text); }
.h-reveal { position: relative; z-index: 2; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.h-reveal li { padding: 18px 20px; border-radius: 18px; background: rgba(19,48,79,.86); border: 1px solid var(--line); display: flex; gap: 12px; align-items: baseline; }
.h-reveal span { color: var(--accent); font: 600 15px "IBM Plex Mono", monospace; } .h-reveal b { font-size: 22px; font-weight: 800; }

/* ---------- motion: one strong component per template (Apex specs 54:820 / 54:955 / 54:1109) ---------- */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-motion="off"]) .hero[data-motion="enter"] .ln { opacity: 0; transform: translateY(42%); }
  /* narrow → wide with transform only (Apex flag 3: no clip-path): two curtains in the page colour slide out */
  html:not([data-motion="off"]) .hero[data-motion="enter"] .h-photo .cur { display: block; }
  html:not([data-motion="off"]) .hero[data-motion="enter"] .h-photo img { transform: scale(1.08); }
  html:not([data-motion="off"]) .hero[data-motion="enter"].play .ln { opacity: 1; transform: none; transition: opacity 520ms cubic-bezier(.22,1,.36,1), transform 520ms cubic-bezier(.22,1,.36,1); }
  html:not([data-motion="off"]) .hero[data-motion="enter"].play .ln + .ln { transition-delay: 70ms; }
  html:not([data-motion="off"]) .hero[data-motion="enter"].play .h-photo .cur { transition: transform 1100ms cubic-bezier(.22,1,.36,1) 280ms; }
  html:not([data-motion="off"]) .hero[data-motion="enter"].play .h-photo .cur.l { transform: translateX(-101%); }
  html:not([data-motion="off"]) .hero[data-motion="enter"].play .h-photo .cur.r { transform: translateX(101%); }
  html:not([data-motion="off"]) .hero[data-motion="enter"].play .h-photo img { transform: scale(1); transition: transform 1400ms cubic-bezier(.22,1,.36,1) 280ms; }
  html:not([data-motion="off"]) .hero[data-motion="step"] .st.on { transform: translateX(-14px); opacity: .4; }
  html:not([data-motion="off"]) .hero[data-motion="step"].play .st.on { transform: none; opacity: 1; transition: transform 600ms cubic-bezier(.22,1,.36,1), opacity 600ms; }
  html:not([data-motion="off"]) .hero[data-motion="scroll"] .h-reveal li { opacity: 0; transform: translateY(24px); }
  html:not([data-motion="off"]) .hero[data-motion="scroll"] .h-reveal li.in { opacity: 1; transform: none; transition: opacity 400ms cubic-bezier(.4,0,.2,1), transform 400ms cubic-bezier(.4,0,.2,1); }
}
/* reduced motion (system or the studio switch): the final state, nothing moves — measurable */
@media (prefers-reduced-motion: reduce) { .hero *, .hero { transition: none !important; animation: none !important; } }
html[data-motion="off"] .hero *, html[data-motion="off"] .hero { transition: none !important; animation: none !important; }

/* phone layout (the card on a phone and the real site at 390 / 320): 46:654, 49:802, 51:878 */
@container (max-width: 899px) {
  .hero { padding: 12px 20px 40px; gap: 22px; font-size: 16px; } .h-nav { padding: 8px 8px 8px 16px; justify-content: space-between; } .h-nav nav { display: none; } .h-menu { display: inline-flex; margin-inline-start: auto; } .h-nav .h-btn { min-height: 44px; padding: 10px 16px; font-size: 16px; } /* contact stays visible (research: always) */
  .h-logo { display: none; } .h-logo-m { display: block; } .h-copy, .h-split > * { min-width: 0; } .h-h, .tpl-calc .h-h, .tpl-scroll .h-h { font-size: 46px; } .h-sub { font-size: 16px; } .h-k { font-size: 16px; }
  .h-ctas { display: grid; } .h-ctas .h-btn { width: 100%; } .h-photo { height: 420px; border-radius: 22px; }
  .h-split { flex-direction: column; align-items: stretch; gap: 28px; } .h-chart { width: 100%; padding: 20px; } .h-chart .st b { font-size: 20px; }
  .h-reveal { grid-template-columns: 1fr; } .h-reveal span, .h-chart .st small, .h-chart .est i, .h-chart .cap, .h-photo figcaption { font-size: 16px; } .tpl-scroll { min-height: 0; } .h-photo figcaption { font-size: 16px; }
}
@container (max-width: 359px) { .h-nav { gap: 8px; padding: 6px 6px 6px 12px; } .h-nav .h-btn { padding: 8px 12px; } .h-menu { padding: 0 12px; } .h-h, .tpl-calc .h-h, .tpl-scroll .h-h { font-size: 38px; } .h-photo { height: 340px; } }
/* round 11: real links for the CTA in page mode, and a visible label on every illustration photo */
a.h-btn { text-decoration: none; }
.h-cap { position: absolute; z-index: 3; bottom: 12px; left: 12px; margin: 0; padding: 6px 10px; border-radius: 10px; background: rgba(10,13,18,.82); color: #fff; font: 500 13px Heebo, sans-serif; }
@container (max-width: 899px) { .h-cap { font-size: 16px; bottom: auto; top: 76px; } }
