/* ===== TOKENS ===== */
:root {
  --bg: #08080a;
  --bg-alt: #0c0c0f;
  --surface: #121216;
  --surface-2: #18181d;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f3f0e9;
  --muted: #9a968e;
  --faint: #66635d;
  --accent: #c6ff3d;
  --accent-rgb: 198, 255, 61;
  --accent-ink: #0b0d04;
  --accent-soft: rgba(var(--accent-rgb), 0.1);
  --accent-glow: rgba(var(--accent-rgb), 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --sans: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --serif: Georgia, "Times New Roman", serif; /* לא בשימוש כרגע — ההדגשות עברו לצבע בלבד */
  --mono: "JetBrains Mono", "Rubik", ui-monospace, monospace;
  --r: 20px;
  --r-lg: 28px;
}

/* ===== BRANDS: Studio (marketing) / App (sites & apps) ===== */
html[data-brand="studio"] { --accent: #ff7a3d; --accent-rgb: 255, 122, 61; --accent-ink: #1c0c03; }
html[data-brand="app"] [data-only="studio"],
html[data-brand="studio"] [data-only="app"] { display: none !important; }
main { transition: opacity 0.22s; }
html.is-switching main { opacity: 0; }

/* ===== BASE ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--sans); font-size: 17px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, p, ul, ol, fieldset, legend { margin: 0; padding: 0; }
fieldset { border: 0; min-width: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
svg { display: block; }
em { font-style: normal; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
section[id] { scroll-margin-top: 90px; }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.skip { position: fixed; top: -60px; inset-inline-start: 16px; z-index: 200; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700; transition: top 0.2s; }
.skip:focus { top: 16px; }

.grain {
  position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.progress { position: fixed; top: 0; inset-inline: 0; height: 2px; z-index: 120; background: var(--accent); transform: scaleX(0); transform-origin: right; }

.cursor {
  position: fixed; top: 0; left: 0; z-index: 130; width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1px solid var(--accent); border-radius: 50%; pointer-events: none; opacity: 0;
  transition: width 0.25s var(--ease), height 0.25s var(--ease), margin 0.25s var(--ease), background 0.25s, opacity 0.3s;
}
.cursor.is-on { opacity: 0.9; }
.cursor.is-hover { width: 62px; height: 62px; margin: -31px 0 0 -31px; background: var(--accent-soft); }
@media (hover: none), (pointer: coarse) { .cursor { display: none; } }

/* ===== TYPE ===== */
.eyebrow { font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.04em; color: var(--accent); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }
.h2 { font-size: clamp(34px, 5.2vw, 68px); font-weight: 900; line-height: 1.04; letter-spacing: -0.025em; }
/* ההדגשה היא צבע בלבד — הגופן והמשקל יורשים מהכותרת, אחרת המילה נראית דקה וזרה לידן. */
.h2 em, .display em, .words em { font-style: normal; color: var(--accent); font-family: "Gveret Levin", var(--sans); letter-spacing: normal; }
.display .line:has(em) { overflow: visible; padding-top: 0.02em; padding-bottom: 0.2em; margin-bottom: -0.14em; }
.display em { display: inline-block; line-height: 1.3; }
.h2:has(em) { padding-block: 0.04em; overflow: visible; }
.h2 em { display: inline-block; line-height: 1.3; }
.h2-xl { font-size: clamp(38px, 6vw, 84px); }
.sub { color: var(--muted); font-size: clamp(16px, 1.5vw, 19px); max-width: 560px; margin-top: 20px; }
.sub a { color: var(--text); border-bottom: 1px solid var(--accent); }
.head { margin-bottom: 64px; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  padding: 16px 30px; border-radius: 999px; border: 1px solid transparent; background: none; font-weight: 800; font-size: 16px; line-height: 1.2;
  transition: background 0.3s, color 0.3s, border-color 0.3s, box-shadow 0.4s var(--ease), transform 0.35s var(--ease);
  will-change: transform;
}
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { box-shadow: 0 0 0 6px var(--accent-soft), 0 18px 50px -12px var(--accent-glow); }
.btn-line { border-color: var(--line-2); color: var(--text); }
.btn-line:hover { border-color: var(--text); background: rgba(255, 255, 255, 0.04); }
.btn-sm { padding: 11px 20px; font-size: 14.5px; }
.btn-block { width: 100%; }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 14px; inset-inline: 0; margin-inline: auto; z-index: 100;
  width: min(1120px, calc(100% - 28px)); height: 60px; padding-inline: 20px 8px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: rgba(14, 14, 17, 0.55); border: 1px solid var(--line); border-radius: 999px;
  -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%);
  transition: background 0.3s, border-color 0.3s;
}
.nav.is-scrolled { background: rgba(12, 12, 15, 0.82); border-color: var(--line-2); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-weight: 700; font-size: 18px; letter-spacing: -0.01em; direction: ltr; }
.logo svg { color: var(--accent); transition: color 0.4s; }
.logo b { font-weight: 400; color: var(--muted); margin-left: 6px; }

.brand-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; direction: ltr; height: 44px; padding: 4px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(8, 8, 10, 0.5); }
.brand-switch button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; padding: 0 16px; border-radius: 999px; font-family: var(--mono); font-size: 13.5px; font-weight: 700; color: var(--muted); transition: color 0.3s; }
.brand-switch button:hover { color: var(--text); }
.brand-switch button[aria-pressed="true"] { color: var(--accent-ink); }
.brand-switch .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--accent); transition: transform 0.45s var(--ease), background 0.4s; }
html[data-brand="app"] .brand-switch .thumb { transform: translateX(100%); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.2s, background 0.2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.06); }
.nav-end { display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; inset-inline: 13px; height: 2px; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 130px 0 70px; overflow: hidden; }
#mesh { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-fade { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 55% at 26% 50%, rgba(var(--accent-rgb), 0.07), transparent 70%), linear-gradient(to bottom, transparent 70%, var(--bg)); }
.hero-inner { position: relative; z-index: 2; }
.kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 16px; margin-bottom: 30px; background: rgba(8, 8, 10, 0.5); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent-glow); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.display { font-size: clamp(46px, 8.4vw, 128px); font-weight: 900; line-height: 1; letter-spacing: -0.035em; }
.line { display: block; overflow: hidden; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.line > span { display: block; }
.js .line > span { transform: translateY(115%); animation: rise 1s var(--ease) forwards; }
.js .line:nth-child(2) > span { animation-delay: 0.1s; }
.js .line:nth-child(3) > span { animation-delay: 0.2s; }
.js .line:nth-child(4) > span { animation-delay: 0.3s; }
@keyframes rise { to { transform: none; } }
.js .kicker, .js .lead, .js .hero-cta, .js .facts { opacity: 0; animation: fadeUp 0.9s var(--ease) forwards; }
.js .lead { animation-delay: 0.45s; }
.js .hero-cta { animation-delay: 0.55s; }
.js .facts { animation-delay: 0.7s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.lead { font-size: clamp(17px, 1.7vw, 21px); color: var(--muted); max-width: 540px; margin-top: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.facts { display: flex; flex-wrap: wrap; gap: 14px 44px; margin-top: 60px; padding-top: 28px; border-top: 1px solid var(--line); max-width: 760px; }
.facts li { display: flex; align-items: center; gap: 14px; max-width: 220px; }
.facts b { font-family: var(--mono); font-size: 34px; font-weight: 700; line-height: 1; color: var(--accent); direction: ltr; }
.facts span { font-size: 14px; line-height: 1.4; color: var(--muted); }

/* ===== MARQUEE ===== */
.marquee { direction: ltr; overflow: hidden; border-block: 1px solid var(--line); padding: 22px 0; background: var(--bg-alt); }
.marquee-track { display: flex; align-items: center; gap: 38px; width: max-content; animation: marquee 34s linear infinite; }
.marquee-track span { font-size: clamp(26px, 3.6vw, 46px); font-weight: 900; letter-spacing: -0.02em; white-space: nowrap; color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 233, 0.5); }
.marquee-track span:nth-of-type(3n + 1) { color: var(--text); -webkit-text-stroke: 0; }
.marquee-track i { font-style: normal; color: var(--accent); font-size: 20px; }
@keyframes marquee { to { transform: translateX(calc(-50% - 19px)); } }

/* ===== BUILD ===== */
.build { position: relative; height: 420vh; }
.build-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; padding-top: 70px; }
.build-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: 60px; align-items: center; }
.steps { margin-top: 34px; display: grid; gap: 4px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 16px; padding: 14px 18px; border-radius: 18px; border: 1px solid transparent; opacity: 0.38; transition: opacity 0.4s, background 0.4s, border-color 0.4s; }
.step.is-active { opacity: 1; background: var(--surface); border-color: var(--line); }
.step-n { font-family: var(--mono); font-size: 14px; font-weight: 700; color: var(--accent); padding-top: 5px; }
.step h3 { font-size: 21px; font-weight: 800; }
.step p { color: var(--muted); font-size: 15.5px; line-height: 1.55; overflow: hidden; max-height: 0; transition: max-height 0.5s var(--ease), margin 0.5s var(--ease); }
.step.is-active p { max-height: 110px; margin-top: 6px; }
.build-bar { position: absolute; bottom: 0; inset-inline: 0; height: 3px; background: var(--line); }
.build-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: right; }

.build-stage { position: relative; display: grid; place-items: center; min-height: 470px; }
.browser { width: 100%; max-width: 620px; background: #17171b; border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; box-shadow: 0 50px 110px -50px #000; transition: max-width 0.8s var(--ease), border-radius 0.8s var(--ease), box-shadow 0.8s, border-color 0.8s; }
.browser-bar { direction: ltr; display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: #34343b; }
.url { flex: 1; min-width: 0; height: 26px; padding: 0 12px; display: flex; align-items: center; background: #0d0d10; border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.url-draft { font-family: var(--sans); direction: rtl; }
.url-live { display: none; color: var(--text); }
.live { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-ink); background: var(--accent); border-radius: 99px; padding: 3px 9px; opacity: 0; transform: scale(0.5); transition: opacity 0.4s, transform 0.5s var(--ease); }
.browser-view { position: relative; height: 384px; background: #0d0d10; overflow: hidden; transition: background 0.7s; }

.mock { height: 100%; padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.w { position: relative; border: 1.5px dashed rgba(255, 255, 255, 0.22); border-radius: 8px; transition: border-color 0.6s, background 0.6s, box-shadow 0.6s, border-radius 0.6s; }
.w > span { opacity: 0; transition: opacity 0.6s 0.1s; }
.w::after { content: attr(data-w); position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.42); transition: opacity 0.3s; }
.m-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.m-logo { padding: 1px 12px; font-size: 17px; font-weight: 900; color: #2a160c; }
.m-links { display: flex; gap: 8px; }
.m-links i { width: 36px; height: 10px; border-radius: 99px; }
.m-navbtn { padding: 4px 13px; font-size: 11px; font-weight: 700; color: #f5ede1; }
.m-hero { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 16px; }
.m-text { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; }
.m-h { align-self: stretch; padding: 4px 6px; font-size: 29px; font-weight: 900; line-height: 1.05; letter-spacing: -0.02em; color: #2a160c; }
.m-p { align-self: stretch; padding: 4px 6px; font-size: 12.5px; line-height: 1.5; color: #6b5546; }
.m-btn { padding: 8px 18px; font-size: 12px; font-weight: 800; color: #fff; }
.m-img { min-height: 90px; }
.m-img > span { position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at 50% 52%, #c9935a 0 11%, #7a4a26 12% 27%, #fffaf2 28% 33%, #eedfc8 34% 46%, transparent 47%), linear-gradient(140deg, #e4cdaa, #d3b48a); }
.m-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.m-cards .w { height: 46px; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #3b2416; white-space: nowrap; overflow: hidden; }

/* בשלב העיצוב השלד המצויר מתחלף בצילום האמיתי — לדסקטופ ולנייד כל אחד עם הגרסה שלו. */
.mock-shot, .mock-shot-mobile {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: center; pointer-events: none;
  opacity: 0; transition: opacity 0.55s var(--ease);
}
.mock { transition: opacity 0.45s var(--ease); }
.browser.is-designed:not(.is-mobile) .mock-shot { opacity: 1; }
.browser.is-designed.is-mobile .mock-shot-mobile { opacity: 1; }
.browser.is-designed .mock { opacity: 0; }
.browser.is-designed .browser-view { background: #f5ede1; }
.browser.is-designed .w { border-color: transparent; }
.browser.is-designed .w > span { opacity: 1; }
.browser.is-designed .w::after { opacity: 0; }
.browser.is-designed .m-links i { background: rgba(59, 36, 22, 0.22); }
.browser.is-designed .m-navbtn { background: #2a160c; border-radius: 99px; }
.browser.is-designed .m-btn { background: #d9532b; border-radius: 99px; box-shadow: 0 8px 18px -8px #d9532b; }
.browser.is-designed .m-img { border-radius: 16px; }
.browser.is-designed .m-cards .w { background: #fff; border-radius: 12px; box-shadow: 0 6px 16px -10px rgba(59, 36, 22, 0.5); }

.browser.is-mobile { max-width: 252px; border-radius: 30px; }
.browser.is-mobile .dots, .browser.is-mobile .m-links { display: none; }
.browser.is-mobile .m-hero { grid-template-columns: 1fr; gap: 10px; }
.browser.is-mobile .m-h { font-size: 24px; }
.browser.is-mobile .m-cards { display: none; }

.browser.is-live { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 40px 130px -30px var(--accent-glow); }
.browser.is-live .url-draft { display: none; }
.browser.is-live .url-live { display: inline; }
.browser.is-live .live { opacity: 1; transform: none; }

.m-toast { position: absolute; bottom: 14px; left: 14px; display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; color: #17120e; border-radius: 14px; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.45); opacity: 0; transform: translateY(26px) scale(0.92); transition: opacity 0.5s 0.35s, transform 0.6s var(--ease) 0.35s; }
.m-toast-avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-style: normal; background: var(--accent-soft); border: 1px solid var(--accent); }
.m-toast-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #3fbf5f; box-shadow: 0 0 0 4px rgba(63, 191, 95, 0.2); margin-inline-start: auto; }
.m-toast b { display: block; font-size: 12.5px; line-height: 1.3; }
.m-toast span { font-size: 11px; color: #8a7f74; }
.browser.is-live .m-toast { opacity: 1; transform: none; }

.chip { position: absolute; z-index: 2; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 16px; font-size: 13px; box-shadow: 0 24px 50px -24px #000; opacity: 0; transition: opacity 0.5s, transform 0.7s var(--ease); pointer-events: none; }
.chip-code { top: 12%; left: 0; direction: ltr; transform: translateX(-30px); }
.chip-code code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 12px; line-height: 1.7; color: var(--text); }
.chip-code u { text-decoration: none; color: var(--accent); }
.chip-ok { bottom: 14%; right: 0; font-weight: 700; transform: translateX(30px); }
.chip-ok span { color: var(--accent); margin-inline-end: 4px; }
.build-stage.is-mobile .chip { opacity: 1; transform: none; }

/* ===== STUDIO: campaign flow inside the same window ===== */
.url-studio { font-family: var(--sans); direction: rtl; }
.adflow { position: absolute; inset: 0; }
.af { position: absolute; inset: 0; padding: 22px 24px; display: flex; flex-direction: column; justify-content: center; gap: 12px; opacity: 0; transform: translateY(18px) scale(0.98); transition: opacity 0.5s, transform 0.6s var(--ease); }
.browser[data-step="0"] .af-0, .browser[data-step="1"] .af-1, .browser[data-step="2"] .af-2, .browser[data-step="3"] .af-3 { opacity: 1; transform: none; }
.af-t { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.af-people { display: grid; gap: 8px; }
.af-people span { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font-size: 13.5px; }
.af-people i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent-soft); border: 1px solid var(--accent); }
.af-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.af-tags b { font-size: 12.5px; font-weight: 500; padding: 6px 12px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); }
.ad { width: min(264px, 100%); margin-inline: auto; background: #fff; color: #17120e; border-radius: 16px; overflow: hidden; box-shadow: 0 24px 50px -24px #000; }
.ad-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.ad-head i { width: 30px; height: 30px; border-radius: 50%; background: #2a160c; display: grid; place-items: center; font-size: 15px; font-style: normal; }
.ad-head b { display: block; font-size: 13px; line-height: 1.25; }
.ad-head span { font-size: 11px; color: #8a7f74; }
.ad-img { height: 132px; background: url("img/ad-cafe.jpg") center/cover; }
.ad-body { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; }
.ad-body b { font-size: 13px; line-height: 1.3; }
.ad-body span { flex: none; font-size: 11.5px; font-weight: 800; color: #fff; background: #d9532b; border-radius: 99px; padding: 6px 12px; }
.ch { direction: ltr; display: grid; grid-template-columns: 86px 1fr; align-items: center; gap: 12px; font-family: var(--mono); font-size: 13px; }
.ch i { position: relative; height: 12px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.ch i::after { content: ""; position: absolute; inset: 0; width: var(--w); border-radius: 99px; background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease) 0.2s; }
.browser[data-step="2"] .ch i::after { transform: none; }
/* תוצאות: רקע חם וזוהר מאחורי הגרף, ונקודות שנדלקות על הקו אחת-אחת כשהוא מצטייר. */
.af-3 { position: relative; }
.af-3::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(55% 55% at 6% 4%, rgba(var(--accent-rgb), 0.18), transparent 70%),
    radial-gradient(55% 55% at 97% 102%, rgba(var(--accent-rgb), 0.14), transparent 70%);
}
.af-chart { width: 100%; height: auto; overflow: visible; position: relative; }
.af-chart .area { fill: var(--accent); opacity: 0; transition: opacity 0.8s 0.6s; }
.af-chart .line { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 460; stroke-dashoffset: 460; transition: stroke-dashoffset 1.4s var(--ease) 0.2s; }
.af-chart .grid { stroke: var(--line); stroke-width: 1; }
.af-chart .dot {
  fill: #fff; opacity: 0; transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  transform: scale(0); transform-box: fill-box; transform-origin: center;
  filter: drop-shadow(0 0 4px var(--accent)) drop-shadow(0 0 10px var(--accent-glow));
}
.browser[data-step="3"] .af-chart .line { stroke-dashoffset: 0; }
.browser[data-step="3"] .af-chart .area { opacity: 0.12; }
.browser[data-step="3"] .af-chart .dot { opacity: 1; transform: scale(1); }
.browser[data-step="3"] .af-chart .dot-1 { transition-delay: 0.3s; }
.browser[data-step="3"] .af-chart .dot-2 { transition-delay: 0.48s; }
.browser[data-step="3"] .af-chart .dot-3 { transition-delay: 0.66s; }
.browser[data-step="3"] .af-chart .dot-4 { transition-delay: 0.84s; }
.browser[data-step="3"] .af-chart .dot-5 { transition-delay: 1.02s; }
.browser[data-step="3"] .af-chart .dot-6 { transition-delay: 1.2s; }
.browser[data-step="3"] .af-chart .dot-7 { transition-delay: 1.38s; }

/* ===== SISTER BRAND BANNER ===== */
.sister { padding: 0 0 110px; }
.sister-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 34px 38px; border: 1px solid var(--line-2); border-radius: var(--r-lg); background: linear-gradient(120deg, var(--accent-soft), transparent 60%), var(--surface); }
.sister h2 { font-size: clamp(24px, 3vw, 36px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.1; }
.sister h2 em { font-style: normal; color: var(--accent); }
.sister p:not(.eyebrow) { color: var(--muted); margin-top: 8px; max-width: 520px; }

/* ===== SECTIONS ===== */
.section { padding: 130px 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }

/* ===== CARDS ===== */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; perspective: 1400px; }
.card {
  --mx: 50%; --my: 0%; --rx: 0deg; --ry: 0deg;
  position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transform-style: preserve-3d;
  transition: transform 0.5s var(--ease), border-color 0.4s;
}
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity 0.4s; background: radial-gradient(420px circle at var(--mx) var(--my), rgba(var(--accent-rgb), 0.13), transparent 60%); }
.card:hover { border-color: rgba(var(--accent-rgb), 0.4); }
.card:hover::before { opacity: 1; }
.card.is-featured { background: linear-gradient(180deg, #17181a, var(--surface)); border-color: var(--line-2); }
.card-top { display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 13px; }
.card-n { color: var(--faint); }
.card-price { color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 4px 12px; font-family: var(--sans); font-weight: 700; }
.card h3 { font-size: 30px; font-weight: 900; letter-spacing: -0.02em; margin-top: 4px; }
.card p { color: var(--muted); font-size: 16px; margin-top: 10px; }
.card ul { margin: 20px 0 26px; display: grid; gap: 9px; padding-top: 20px; border-top: 1px solid var(--line); }
.card li { font-size: 15px; display: flex; gap: 10px; align-items: baseline; }
.card li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); transform: translateY(-2px); }
.card-link { margin-top: auto; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; align-self: flex-start; }
.card-link span { color: var(--accent); transition: transform 0.3s var(--ease); }
.card-link:hover span { transform: translateX(-6px); }

.mini { height: 150px; margin: 20px 0 22px; border-radius: 16px; border: 1px solid var(--line); position: relative; overflow: hidden; display: grid; place-items: center; background: linear-gradient(var(--line) 1px, transparent 1px) 0 0 / 100% 24px, linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 24px 100%, #0d0d10; }
.pg { width: 78px; height: 104px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: 9px; padding: 10px 9px; display: flex; flex-direction: column; gap: 6px; transition: transform 0.6s var(--ease); }
.pg i { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); }
.pg i:nth-child(2) { width: 70%; }
.pg i:nth-child(3) { width: 45%; }
.pg b { margin-top: auto; height: 16px; border-radius: 99px; background: var(--accent); }
.mini-landing .pg b { animation: glow 2.4s ease-in-out infinite; }
@keyframes glow { 50% { box-shadow: 0 0 0 5px var(--accent-soft), 0 0 22px var(--accent-glow); } }
/* דף נחיתה: העמוד מתרומם והתוכן "מתמלא" — השורות מתארכות והכותרת נצבעת. */
.mini-landing .pg { transition: transform 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.mini-landing .pg i { transition: width 0.5s var(--ease), background 0.5s var(--ease); }
.card:hover .mini-landing .pg, .mini-landing:hover .pg {
  transform: translateY(-9px) scale(1.07); box-shadow: 0 22px 34px -18px #000;
}
.card:hover .mini-landing .pg i:nth-child(1), .mini-landing:hover .pg i:nth-child(1) { background: rgba(var(--accent-rgb), 0.8); }
.card:hover .mini-landing .pg i:nth-child(2), .mini-landing:hover .pg i:nth-child(2) { width: 92%; transition-delay: 0.06s; }
.card:hover .mini-landing .pg i:nth-child(3), .mini-landing:hover .pg i:nth-child(3) { width: 68%; transition-delay: 0.12s; }
/* ערימת עמודים שנפרשת בריחוף. --fan גדל עם המסך כדי שהקלפים לא ייחתכו בדסקטופ צר. */
.mini-site { --fan: clamp(48px, 6.2vw, 90px); }
.mini-site .pg {
  position: absolute; width: 82px; height: 106px;
  transition: transform 0.6s var(--ease), opacity 0.45s var(--ease), box-shadow 0.5s var(--ease);
}
.mini-site .pg:nth-child(1) { transform: translateX(28px) rotate(5deg) scale(0.93); opacity: 0.4; }
.mini-site .pg:nth-child(2) { transform: translateX(-28px) rotate(-5deg) scale(0.93); opacity: 0.4; }
.mini-site .pg:nth-child(3) { z-index: 2; }
.pg-thumb { height: 32px; border-radius: 6px; background: linear-gradient(135deg, rgba(var(--accent-rgb), 0.3), var(--surface-2)); }
.mini-site .pg:nth-child(2) .pg-thumb { background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), var(--surface-2)); }
.mini-site .pg b { transition: box-shadow 0.45s var(--ease) 0.15s; }

.card:hover .mini-site .pg:nth-child(1), .mini-site:hover .pg:nth-child(1) {
  transform: translateX(var(--fan)) rotate(12deg) scale(1); opacity: 1;
  box-shadow: 0 16px 28px -16px #000; transition-delay: 0.05s;
}
.card:hover .mini-site .pg:nth-child(2), .mini-site:hover .pg:nth-child(2) {
  transform: translateX(calc(var(--fan) * -1)) rotate(-12deg) scale(1); opacity: 1;
  box-shadow: 0 16px 28px -16px #000; transition-delay: 0.1s;
}
.card:hover .mini-site .pg:nth-child(3), .mini-site:hover .pg:nth-child(3) {
  transform: translateY(-9px) scale(1.07); box-shadow: 0 22px 34px -18px #000;
}
.card:hover .mini-site .pg b, .mini-site:hover .pg b {
  box-shadow: 0 0 0 4px var(--accent-soft), 0 0 20px var(--accent-glow);
}
.mini-shop { grid-template-columns: repeat(2, 46px); gap: 10px; place-content: center; }
.tile { width: 46px; height: 46px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line-2); display: grid; place-items: center; transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease); }
.tile.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 900; font-size: 20px; }
/* חנות: האריחים נפרשים החוצה בהדרגה ואריח התשלום קופץ אחרון. */
.card:hover .mini-shop .tile:nth-child(1), .mini-shop:hover .tile:nth-child(1) { transform: translate(-5px, -7px) rotate(-6deg); }
.card:hover .mini-shop .tile:nth-child(2), .mini-shop:hover .tile:nth-child(2) { transform: translate(5px, -7px) rotate(6deg); transition-delay: 0.05s; }
.card:hover .mini-shop .tile:nth-child(3), .mini-shop:hover .tile:nth-child(3) { transform: translate(-5px, 7px) rotate(6deg); transition-delay: 0.1s; }
.card:hover .mini-shop .tile.is-on, .mini-shop:hover .tile.is-on {
  transform: scale(1.24) rotate(-8deg);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 16px 28px -12px var(--accent-glow);
  transition-delay: 0.15s;
}

.mini-bars { display: flex; align-items: flex-end; justify-content: center; gap: 10px; padding: 26px 0; }
.mini-bars i { width: 20px; border-radius: 6px 6px 2px 2px; background: var(--surface-2); border: 1px solid var(--line-2); transition: height 0.6s var(--ease), box-shadow 0.6s var(--ease); }
.mini-bars i:nth-child(1) { height: 30%; }
.mini-bars i:nth-child(2) { height: 46%; }
.mini-bars i:nth-child(3) { height: 40%; }
.mini-bars i:nth-child(4) { height: 66%; }
.mini-bars i:nth-child(5) { height: 88%; background: var(--accent); border-color: var(--accent); }
/* קמפיינים: העמודות מטפסות כמו גרף חי, אחת אחרי השנייה, והעמודה האחרונה זוהרת. */
.card:hover .mini-bars i:nth-child(1), .mini-bars:hover i:nth-child(1) { height: 42%; }
.card:hover .mini-bars i:nth-child(2), .mini-bars:hover i:nth-child(2) { height: 64%; transition-delay: 0.04s; }
.card:hover .mini-bars i:nth-child(3), .mini-bars:hover i:nth-child(3) { height: 54%; transition-delay: 0.08s; }
.card:hover .mini-bars i:nth-child(4), .mini-bars:hover i:nth-child(4) { height: 84%; transition-delay: 0.12s; }
.card:hover .mini-bars i:nth-child(5), .mini-bars:hover i:nth-child(5) {
  height: 100%; transition-delay: 0.16s;
  box-shadow: 0 0 0 3px var(--accent-soft), 0 10px 22px -10px var(--accent-glow);
}
.mini-social { grid-template-columns: repeat(3, 40px); gap: 8px; place-content: center; }
.mini-social .tile { width: 40px; height: 40px; border-radius: 10px; }
.mini-social .tile.is-on { font-size: 16px; }
/* סושיאל: האריחים מתעוררים בגל קטן, והלב קופץ ופועם אחרון. */
.card:hover .mini-social .tile, .mini-social:hover .tile { transform: translateY(-4px) scale(1.04); }
.card:hover .mini-social .tile:nth-child(2), .mini-social:hover .tile:nth-child(2) { transition-delay: 0.02s; }
.card:hover .mini-social .tile:nth-child(3), .mini-social:hover .tile:nth-child(3) { transition-delay: 0.04s; }
.card:hover .mini-social .tile:nth-child(4), .mini-social:hover .tile:nth-child(4) { transition-delay: 0.06s; }
.card:hover .mini-social .tile:nth-child(5), .mini-social:hover .tile:nth-child(5) { transition-delay: 0.08s; }
.card:hover .mini-social .tile:nth-child(6), .mini-social:hover .tile:nth-child(6) { transition-delay: 0.1s; }
.card:hover .mini-social .tile.is-on, .mini-social:hover .tile.is-on {
  transform: translateY(-4px) scale(1.25);
  box-shadow: 0 0 0 5px var(--accent-soft), 0 14px 26px -12px var(--accent-glow);
  transition-delay: 0.12s;
}
.mini-search { align-content: center; justify-items: center; gap: 9px; }
.mini-search .bar { width: 150px; height: 26px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--surface-2); position: relative; transition: border-color 0.5s var(--ease); }
.mini-search .bar::after { content: ""; position: absolute; top: 8px; left: 10px; width: 9px; height: 9px; border: 2px solid var(--accent); border-radius: 50%; transition: box-shadow 0.5s var(--ease); }
.mini-search i { width: 150px; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.12); transition: width 0.5s var(--ease); }
.mini-search i:nth-of-type(1) { background: var(--accent); }
.mini-search i:nth-of-type(2) { width: 120px; }
.mini-search i:nth-of-type(3) { width: 96px; }
/* קידום: העיגול בשורת החיפוש פועם כמו סריקה, ותוצאות החיפוש מתמלאות אחת-אחת. */
.card:hover .mini-search .bar, .mini-search:hover .bar { border-color: rgba(var(--accent-rgb), 0.5); }
.card:hover .mini-search .bar::after, .mini-search:hover .bar::after { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 14px var(--accent-glow); }
.card:hover .mini-search i:nth-of-type(2), .mini-search:hover i:nth-of-type(2) { width: 140px; transition-delay: 0.05s; }
.card:hover .mini-search i:nth-of-type(3), .mini-search:hover i:nth-of-type(3) { width: 128px; transition-delay: 0.1s; }

/* ===== CALC ===== */
.calc { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.calc-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px; }
.field { margin-bottom: 30px; }
.field > legend, .field > label { display: flex; justify-content: space-between; align-items: baseline; width: 100%; font-weight: 800; font-size: 16px; margin-bottom: 14px; }
output { font-family: var(--mono); font-size: 22px; color: var(--accent); }
.opts { display: flex; flex-wrap: wrap; gap: 8px; }
.opt { flex: 1 1 130px; padding: 14px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 15px; cursor: pointer; transition: border-color 0.25s, color 0.25s, background 0.25s; }
.opt:hover { color: var(--text); border-color: var(--line-2); }
.opt.is-on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; direction: rtl; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); border: 4px solid var(--surface); box-shadow: 0 0 0 1px var(--accent); }
.range-ends { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 12px; color: var(--faint); }
.range-ends span { direction: ltr; unicode-bidi: isolate; }

.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); cursor: pointer; font-size: 15.5px; transition: border-color 0.25s, background 0.25s; }
.check:hover { border-color: var(--line-2); }
.check input { position: absolute; opacity: 0; width: 0; height: 0; }
.check i { flex: none; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; transition: background 0.2s, border-color 0.2s; }
.check i::after { content: ""; width: 9px; height: 5px; border-left: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform 0.25s var(--ease); }
.check input:checked + i { background: var(--accent); border-color: var(--accent); }
.check input:checked + i::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.check input:focus-visible + i { outline: 2px solid var(--accent); outline-offset: 3px; }
.check:has(input:checked) { border-color: rgba(var(--accent-rgb), 0.45); background: var(--accent-soft); }
.check span { flex: 1; }
.check em { font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.calc-sum { position: sticky; top: 96px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 32px; }
.sum-label { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.sum-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-family: var(--mono); font-size: clamp(34px, 4vw, 48px); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; color: var(--accent); margin-top: 8px; direction: ltr; justify-content: flex-end; }
.sum-price i { font-style: normal; color: var(--faint); }
.sum-maint { color: var(--text); font-weight: 700; font-size: 14.5px; margin-top: 6px; }
.sum-list { margin: 22px 0 18px; border-top: 1px solid var(--line); }
.sum-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--muted); }
.sum-list b { color: var(--text); font-weight: 600; white-space: nowrap; direction: ltr; unicode-bidi: isolate; }
.sum-market { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.sum-market b { color: var(--text); white-space: nowrap; display: inline-block; direction: ltr; unicode-bidi: isolate; }
.fine { font-size: 12.5px; line-height: 1.6; color: var(--faint); margin-top: 16px; }

/* ===== MANIFESTO ===== */
.words { font-size: clamp(28px, 4.6vw, 62px); font-weight: 800; line-height: 1.22; letter-spacing: -0.02em; max-width: 1050px; }
.js .words .wd { opacity: 0.14; transition: opacity 0.35s; }
.js .words .wd.is-lit { opacity: 1; }
.words .acc { color: var(--accent); }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 90px; border-top: 1px solid var(--line); }
.principle { padding: 34px 26px 10px; border-inline-start: 1px solid var(--line); }
.principle:first-child { border-inline-start: 0; padding-inline-start: 0; }
.principle svg { width: 30px; height: 30px; fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 20px; }
.principle h3 { font-size: 20px; font-weight: 800; margin-bottom: 8px; }
.principle p { color: var(--muted); font-size: 15.5px; }

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 60px; align-items: start; }
.head-side { margin-bottom: 0; position: sticky; top: 110px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; font-size: clamp(18px, 2vw, 23px); font-weight: 800; transition: color 0.2s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after { content: "+"; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 400; font-size: 22px; line-height: 1; color: var(--accent); transition: transform 0.4s var(--ease), background 0.3s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--accent-soft); }
.faq details p { color: var(--muted); padding: 0 0 28px; max-width: 620px; animation: fadeUp 0.5s var(--ease); }

/* ===== CONTACT ===== */
.contact { overflow: hidden; }
.contact::before { content: ""; position: absolute; inset: auto 0 -40% 0; height: 80%; background: radial-gradient(50% 60% at 50% 100%, rgba(var(--accent-rgb), 0.12), transparent 70%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 60px; align-items: center; }
.contact-links { margin-top: 40px; display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 480px; }
.contact-link { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 19px; font-weight: 500; transition: color 0.25s, padding 0.35s var(--ease); }
.contact-link:hover { color: var(--accent); padding-inline-start: 10px; }
.contact-link small { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.form { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 34px; display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 700; color: var(--muted); }
.form input, .form select, .form textarea { width: 100%; padding: 15px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: 16px; font-weight: 400; resize: vertical; transition: border-color 0.25s, box-shadow 0.25s; }
.form select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 20px 55%, 26px 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.form .is-bad { border-color: #ff6b5e; }
.form-note { font-size: 12.5px; color: var(--faint); text-align: center; }
.form-note a { color: var(--muted); text-decoration: underline; }
.form-status { text-align: center; font-weight: 700; color: var(--accent); }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--line); padding: 56px 0 30px; overflow: hidden; }
.footer-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px 40px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 26px; font-size: 15px; color: var(--muted); }
.footer-links a:hover { color: var(--accent); }
.footer-legal { font-size: 13.5px; color: var(--faint); }
.wordmark { direction: ltr; text-align: center; font-family: var(--mono); font-weight: 700; font-size: clamp(40px, 12vw, 180px); line-height: 0.9; letter-spacing: 0.08em; white-space: nowrap; margin: 50px 0 20px; color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 233, 0.16); user-select: none; transition: color 0.6s, -webkit-text-stroke-color 0.6s; }
.wordmark:hover { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.tagline { direction: ltr; text-align: center; font-size: 13px; letter-spacing: 0.04em; color: var(--muted); margin: 0 0 16px; }
.copy { text-align: center; font-size: 13px; color: var(--faint); }

/* ===== LEGAL PAGES ===== */
.legal-nav { position: relative; inset: auto; margin: 14px auto 0; }
.legal { max-width: 780px; margin-inline: auto; padding: 80px 24px 110px; }
.legal h1 { font-size: clamp(36px, 6vw, 64px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; }
.legal .updated { font-family: var(--mono); font-size: 13px; color: var(--faint); margin: 12px 0 44px; }
.legal h2 { font-size: 21px; font-weight: 800; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 16.5px; line-height: 1.85; }
.legal ul { list-style: disc; padding-inline-start: 22px; display: grid; gap: 6px; }
.legal a { color: var(--accent); text-decoration: underline; }
.legal b { color: var(--text); }
.legal .tag { color: var(--faint); font-size: 14px; }

/* ===== REVEAL ===== */
.js [data-reveal] { opacity: 0; transform: translateY(48px); transition: opacity 0.9s var(--ease) var(--d, 0s), transform 0.9s var(--ease) var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js .card[data-reveal].is-in { transform: rotateX(var(--rx)) rotateY(var(--ry)); }

/* ===== RESPONSIVE ===== */
@media (max-width: 980px) {
  .nav-links { position: absolute; top: 70px; inset-inline: 0; flex-direction: column; gap: 2px; padding: 12px; background: rgba(12, 12, 15, 0.96); border: 1px solid var(--line-2); border-radius: 24px; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity 0.3s, transform 0.4s var(--ease), visibility 0.3s; }
  .nav-links.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav-links a { padding: 14px 18px; font-size: 17px; }
  .burger { display: block; }
  .hero-fade { background: radial-gradient(70% 45% at 50% 40%, rgba(var(--accent-rgb), 0.06), transparent 70%), linear-gradient(to bottom, rgba(8, 8, 10, 0.35), var(--bg) 96%); }
  .build-sticky { align-items: flex-start; padding-top: 92px; }
  .build-grid { grid-template-columns: 1fr; gap: 18px; }
  .build-copy { display: contents; }
  .build-copy .eyebrow { display: none; }
  .build-copy .h2 { order: 1; font-size: clamp(26px, 6.4vw, 40px); }
  .build-stage { order: 2; min-height: 0; }
  .steps { order: 3; margin-top: 0; }
  .step { display: none; padding: 12px 16px; }
  .step.is-active { display: grid; }
  .step.is-active p { max-height: none; }
  .browser-view { height: min(340px, 44svh); }
  .chip { display: none; }
  .cards { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .calc, .faq-grid, .contact-grid { grid-template-columns: 1fr; }
  .calc-sum, .head-side { position: static; }
  .faq-grid { gap: 40px; }
  .principles { grid-template-columns: 1fr 1fr; }
  .principle { padding: 30px 20px 10px; }
  .principle:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .principle:nth-child(n + 3) { border-top: 1px solid var(--line); margin-top: 20px; }
  .section { padding: 90px 0; }
  .head { margin-bottom: 44px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding-inline: 18px; }
  .nav .btn-sm { display: none; }
  html[data-dual] .nav .logo b { display: none; }
  .brand-switch { height: 40px; }
  .brand-switch button { padding: 0 12px; font-size: 12.5px; }
  .sister-inner { padding: 26px 22px; }
  .sister .btn { width: 100%; }
  .hero { padding-top: 120px; }
  .facts { gap: 18px; margin-top: 44px; }
  .facts li { max-width: none; width: 100%; }
  .hero-cta .btn { width: 100%; }
  .calc-form, .calc-sum, .form { padding: 22px; }
  .form-row { grid-template-columns: 1fr; }
  .principles { grid-template-columns: 1fr; }
  .principle, .principle:nth-child(n) { border-inline-start: 0; padding-inline: 0; border-top: 1px solid var(--line); margin-top: 0; }
  .principle:first-child { border-top: 0; }
  .principles { margin-top: 56px; }
  .m-h { font-size: 22px; }
  .m-cards .w { font-size: 9.5px; }
  .contact-link { font-size: 16px; }
}

/* מסכים נמוכים (לפטופים): מכווצים את ההירו כדי שהכפתורים יישארו מעל קו הקיפול. */
@media (min-width: 981px) and (max-height: 800px) {
  .hero { padding: 100px 0 50px; }
  .kicker { margin-bottom: 18px; }
  .display { font-size: clamp(40px, 6.2vw, 80px); }
  .lead { margin-top: 20px; }
  .hero-cta { margin-top: 24px; }
  .facts { margin-top: 36px; padding-top: 20px; }
}

/* ===== ווידג'ט נגישות ===== */
body { zoom: var(--a11y-zoom, 1); }
.a11y { position: fixed; inset-block-end: 18px; left: 18px; z-index: 150; zoom: calc(1 / var(--a11y-zoom, 1)); }
.a11y-btn {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink); border: 0;
  box-shadow: 0 10px 26px -8px rgba(0, 0, 0, 0.8);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.a11y-btn:hover { transform: scale(1.08); box-shadow: 0 14px 30px -8px var(--accent-glow); }
.a11y-panel {
  position: absolute; inset-block-end: 54px; left: 0; width: 248px; padding: 14px;
  display: flex; flex-direction: column; gap: 7px; text-align: right;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 18px;
  box-shadow: 0 26px 60px -20px #000;
}
/* חובה: display:flex על .a11y-panel גובר על חוק ברירת המחדל [hidden]{display:none}
   של הדפדפן, ובלי זה הפאנל לא נסגר לעולם. */
.a11y-panel[hidden] { display: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 3px; }
.a11y-head strong { font-size: 16px; font-weight: 800; }
.a11y-x { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 4px 6px; border-radius: 8px; }
.a11y-x:hover { color: var(--text); background: var(--surface-2); }
.a11y-zoom { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin-bottom: 4px; }
.a11y-zoom button {
  padding: 9px 0; border-radius: 10px; cursor: pointer; font-weight: 800; font-size: 15px;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); font-family: inherit;
}
.a11y-zoom button:hover { border-color: var(--accent); color: var(--accent); }
.a11y-val { font-family: var(--mono); font-size: 13px; color: var(--muted); min-width: 46px; text-align: center; }
.a11y-opt, .a11y-reset, .a11y-link {
  padding: 10px 12px; border-radius: 11px; cursor: pointer; text-align: right; font-size: 14px; font-weight: 600;
  background: var(--surface-2); border: 1px solid transparent; color: var(--text); font-family: inherit;
  transition: border-color 0.25s, background 0.25s, color 0.25s;
}
.a11y-opt:hover, .a11y-reset:hover { border-color: var(--line-2); }
.a11y-opt[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.a11y-reset { background: none; color: var(--muted); font-weight: 500; }
.a11y-link { background: none; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.a11y-link:hover { color: var(--accent); }
.a11y :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

html[data-a11y-contrast="1"] {
  --bg: #000; --bg-alt: #000; --surface: #0a0a0a; --surface-2: #141414;
  --text: #fff; --muted: #ededed; --faint: #d0d0d0;
  --line: rgba(255, 255, 255, 0.45); --line-2: rgba(255, 255, 255, 0.72);
}
/* הפילטר חייב לשבת על html ולא על body: על body הוא יוצר containing block
   ואלמנטים position:fixed (הניווט, כפתור הנגישות) מפסיקים להיות קבועים. */
html[data-a11y-gray="1"] { filter: grayscale(1); }
html[data-a11y-links="1"] a { text-decoration: underline !important; text-underline-offset: 3px; }
html[data-a11y-font="1"] { --sans: Arial, "Segoe UI", sans-serif; --serif: Arial, "Segoe UI", sans-serif; --mono: Arial, monospace; }
html[data-a11y-font="1"] body { letter-spacing: 0.01em; }
html[data-a11y-motion="1"] { scroll-behavior: auto; }
html[data-a11y-motion="1"] *, html[data-a11y-motion="1"] *::before, html[data-a11y-motion="1"] *::after {
  animation: none !important; transition: none !important;
}

@media (max-width: 560px) {
  .a11y { inset-block-end: 14px; left: 14px; }
  .a11y-btn { width: 38px; height: 38px; }
  .a11y-panel { width: min(248px, calc(100vw - 32px)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .words .wd { opacity: 1; }
  /* בלי תנועה הרצועה נחתכת באמצע מילה. במקום זה — שורה סטטית, עטופה וממורכזת. */
  .marquee { padding: 18px 0; }
  .marquee-track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; gap: 8px 26px; }
  .marquee-track span { font-size: clamp(17px, 2.2vw, 24px); }
  .marquee-track > *:nth-child(n + 13) { display: none; } /* העותק הכפול מיותר כשלא זז */
}
