/* כיוון: נועז ואנרגטי (library/directions/bold-energy.md) + ה-DNA, בצבעי המותג (חומרים/מותג.md).
   ארבעת צבעי הבסיס נערכים מאזור הניהול, וכל השאר נגזר מהם. גם התמונה שהמחולל מייצר לוקחת מכאן את הצבעים. */
:root {
  --ink: #0F0D1A;      /* לילה: רקעים כהים */
  --blue: #6B2F86;     /* סגול: הדגשה במשורה */
  --yellow: #FD902A;   /* כתום: הדגשה ראשית, כפתורים, תווית המכחול */
  --teal: #F7D447;     /* צהוב: ניצוצות */
  --cream: #F6EADC;
  --text: #1B1519;
  --orange-deep: color-mix(in srgb, var(--yellow) 78%, #d0400a);
  --surface: color-mix(in srgb, var(--ink) 88%, #fff);
  --surface-2: color-mix(in srgb, var(--ink) 80%, #fff);
  --line: color-mix(in srgb, var(--cream) 16%, transparent);
  --muted-dark: color-mix(in srgb, var(--cream) 72%, var(--ink));
  --muted: color-mix(in srgb, var(--text) 70%, var(--cream));
  --font-head: 'Noto Sans Hebrew', 'Heebo', sans-serif;
  --font-body: 'Heebo', sans-serif;
  --max: 1180px;
  --shadow-card: 0 30px 70px color-mix(in srgb, var(--ink) 30%, transparent);
  --shadow-pop: 0 18px 40px color-mix(in srgb, var(--ink) 45%, transparent);
  --glow: 0 10px 26px color-mix(in srgb, var(--yellow) 42%, transparent);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - 32px); margin-inline: auto; }
.wrap--narrow { width: min(820px, 100% - 32px); }

/* ---------- טיפוגרפיה (DNA 1) ---------- */
.eyebrow { margin: 0 0 10px; font-size: 15px; font-weight: 700; letter-spacing: .02em; color: var(--orange-deep); }
.eyebrow--light, .hero .eyebrow { color: var(--teal); }
.title {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: clamp(38px, 6.4vw, 76px);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.title--md { font-size: clamp(32px, 4.6vw, 54px); }
.title--light { color: var(--cream); }
.lede { margin: 16px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.65; color: var(--muted); text-wrap: pretty; max-width: 34em; }
.lede--light { color: var(--muted-dark); }
p { text-wrap: pretty; }

/* תווית המכחול: נבנית ב-app.js מאותה צורה שמופיעה בתמונה */
.brush { position: relative; display: inline-block; padding: 0 .28em .06em; margin-top: .06em; color: var(--ink); isolation: isolate; }
.brush > span:not(.brush__bg) { position: relative; z-index: 1; }
.brush__bg { position: absolute; inset: -.08em -.1em -.16em -.12em; z-index: 0; pointer-events: none; }
.brush__bg svg { max-width: none; overflow: visible; }
html:not(.js) .brush, .brush:not(.brush--ready) { background: var(--yellow); border-radius: 999px; }

/* ---------- כפתורים (DNA 3) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 26px; border-radius: 999px; border: 0;
  font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s;
}
.btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.btn--primary {
  color: var(--ink);
  background: linear-gradient(135deg, color-mix(in srgb, var(--yellow) 70%, #fff), var(--yellow) 55%, var(--orange-deep));
  box-shadow: var(--glow);
}
.btn--ghost { color: var(--cream); background: rgb(255 255 255 / .1); border: 2px solid rgb(255 255 255 / .38); }
.btn--sm { min-height: 44px; padding: 8px 20px; font-size: 16px; }
.btn--lg { min-height: 56px; padding: 14px 28px; font-size: 18px; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn--primary:hover { box-shadow: 0 14px 30px color-mix(in srgb, var(--yellow) 50%, transparent); }
  .btn--ghost:hover { background: rgb(255 255 255 / .16); }
}
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, a:focus-visible {
  outline: 3px solid var(--teal); outline-offset: 3px;
}
.btn:disabled { opacity: .6; cursor: progress; transform: none; }

/* ---------- תפריט צף (DNA 5) ---------- */
.nav-wrap { position: fixed; z-index: 50; inset: 12px 12px auto; display: flex; justify-content: center; pointer-events: none; }
.nav {
  pointer-events: auto;
  width: min(var(--max), 100%);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 7px 7px 7px 7px; padding-inline-start: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 82%, transparent);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-pop);
  color: var(--cream);
}
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--font-head); font-weight: 900; font-size: 19px; white-space: nowrap; min-width: 0; }
.nav .btn { white-space: nowrap; }
@media (max-width: 420px) {
  .logo { font-size: 16px; gap: 8px; }
  .logo__mark { width: 32px; height: 32px; }
  .nav .btn--sm { padding-inline: 16px; font-size: 15px; }
}
.logo__mark { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; color: var(--cream); background: color-mix(in srgb, var(--cream) 12%, transparent); }
.logo__mark svg { width: 26px; height: 26px; }
.logo__img { height: 36px; width: auto; }
.logo--has-img .logo__mark { display: none; }

/* ---------- פתיחה + מחולל ---------- */
.hero { position: relative; background: var(--ink); color: var(--cream); padding: 104px 0 110px; isolation: isolate; }
.hero__glow { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.hero__glow::before, .hero__glow::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); }
.hero__glow::before { width: 560px; height: 560px; inset-block-start: -180px; inset-inline-start: -120px; background: color-mix(in srgb, var(--yellow) 34%, transparent); animation: drift 14s ease-in-out infinite alternate; }
.hero__glow::after { width: 520px; height: 520px; inset-block-end: 40px; inset-inline-end: -180px; background: color-mix(in srgb, var(--blue) 55%, transparent); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

.hero__grid { display: grid; gap: 26px; }
.hero__text { text-align: center; }
.hero__text .lede { margin-inline: auto; }
.hero .title { color: var(--cream); }
.hero .lede { color: var(--muted-dark); }

.studio { display: grid; gap: 18px; }
.stage {
  position: relative;
  width: min(100%, 520px);
  margin-inline: auto;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgb(0 0 0 / .45), 0 0 0 1px var(--line);
  background: var(--surface);
  touch-action: pan-y;
}
.stage canvas { width: 100%; height: auto; }
.stage--drag { cursor: grab; }
.stage--dragging { cursor: grabbing; touch-action: none; }
.stage__hint {
  position: absolute; inset-block-end: 12px; inset-inline: 0; margin: 0 auto; width: max-content; max-width: 90%;
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgb(15 13 26 / .78); color: var(--cream); pointer-events: none;
}
.stage__loading { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 700; color: var(--muted-dark); background: var(--surface); }
.stage__loading[hidden] { display: none; }

.panel {
  background: color-mix(in srgb, var(--cream) 6%, var(--ink));
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 6px 18px;
  box-shadow: var(--shadow-card);
}
.field { padding: 16px 0; border-bottom: 1px solid var(--line); }
.field:last-child { border-bottom: 0; }
.field--row { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.field__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.field__label { display: block; font-weight: 700; font-size: 16px; }
.field > .field__label { margin-bottom: 10px; }
.field__note { font-size: 14px; color: var(--muted-dark); }
.field__sub { font-size: 15px; color: var(--muted-dark); }

.week { display: flex; align-items: center; gap: 10px; }
.week__label { flex: 1; margin: 0; text-align: center; font-weight: 700; font-size: 17px; line-height: 1.35; }
.week__label small { display: block; font-weight: 400; font-size: 14px; color: var(--muted-dark); }
.icon-btn {
  width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--cream) 8%, transparent); display: grid; place-items: center; cursor: pointer;
}
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn:disabled { opacity: .35; cursor: default; }

.chips { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 6px; padding-inline-start: 14px;
  border-radius: 999px; font-weight: 500; font-size: 15px;
  background: color-mix(in srgb, var(--yellow) 16%, transparent);
  border: 1.5px solid color-mix(in srgb, var(--yellow) 60%, transparent);
}
.chip button {
  width: 32px; height: 32px; border-radius: 50%; border: 0; background: transparent; cursor: pointer;
  display: grid; place-items: center; color: var(--muted-dark);
}
.chip button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; fill: none; }
.chip button:hover { background: rgb(255 255 255 / .1); color: var(--cream); }

.add-city { position: relative; }
.add-city input, .input {
  width: 100%; min-height: 48px; padding: 10px 16px; border-radius: 16px;
  border: 1.5px solid var(--line); background: color-mix(in srgb, var(--cream) 7%, transparent);
  color: var(--cream); font-size: 16px;
}
.add-city input::placeholder, .input::placeholder { color: var(--muted-dark); opacity: .8; }
.suggest {
  position: absolute; z-index: 10; inset-inline: 0; inset-block-start: calc(100% + 6px);
  list-style: none; margin: 0; padding: 6px; max-height: 260px; overflow: auto;
  border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
}
.suggest li { padding: 10px 14px; border-radius: 12px; cursor: pointer; font-size: 16px; }
.suggest li[aria-selected="true"], .suggest li:hover { background: color-mix(in srgb, var(--yellow) 22%, transparent); }
.suggest .suggest__empty { cursor: default; color: var(--muted-dark); }
.suggest .suggest__empty:hover { background: none; }

.seg { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: color-mix(in srgb, var(--cream) 8%, transparent); border: 1px solid var(--line); }
.seg button { min-height: 40px; padding: 6px 16px; border: 0; border-radius: 999px; background: transparent; cursor: pointer; font-weight: 500; font-size: 15px; white-space: nowrap; }
.seg button[aria-checked="true"] { background: var(--yellow); color: var(--ink); font-weight: 800; box-shadow: var(--glow); }
.seg--sm button { min-height: 36px; padding: 4px 12px; font-size: 14px; }

.swatches { display: flex; gap: 10px; }
.swatch { width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 2px solid var(--line); position: relative; }
.swatch--night { background: radial-gradient(circle at 35% 30%, color-mix(in srgb, var(--yellow) 55%, transparent), transparent 55%), var(--ink); }
.swatch--cream { background: var(--cream); }
.swatch--orange { background: linear-gradient(135deg, var(--yellow), var(--orange-deep)); }
.swatch[aria-checked="true"] { border-color: var(--yellow); box-shadow: 0 0 0 3px color-mix(in srgb, var(--yellow) 35%, transparent); }

.switch { position: relative; display: inline-block; width: 54px; height: 32px; flex: none; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span[aria-hidden] { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--cream) 20%, transparent); transition: background .2s; }
.switch span[aria-hidden]::after { content: ""; position: absolute; inset-block-start: 4px; inset-inline-start: 4px; width: 24px; height: 24px; border-radius: 50%; background: var(--cream); transition: transform .2s; }
.switch input:checked + span { background: var(--yellow); }
.switch input:checked + span::after { transform: translateX(-22px); background: var(--ink); }
.switch input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 3px; }

.upload {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 10px 18px;
  border-radius: 18px; border: 2px dashed color-mix(in srgb, var(--yellow) 55%, transparent);
  font-weight: 700; cursor: pointer; transition: background .2s;
}
.upload:hover { background: color-mix(in srgb, var(--yellow) 10%, transparent); }
.upload svg { width: 22px; height: 22px; fill: none; stroke: var(--yellow); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.logo-tools { display: grid; gap: 14px; margin-top: 14px; }
.logo-tools[hidden] { display: none; }
.range { display: grid; gap: 6px; }
.range input { width: 100%; accent-color: var(--yellow); min-height: 32px; }
.text-btn { justify-self: start; border: 0; background: none; padding: 6px 0; cursor: pointer; color: var(--muted-dark); text-decoration: underline; text-underline-offset: 4px; font-size: 15px; }

.actions { display: grid; gap: 10px; }
.actions .btn { padding-inline: 14px; width: 100%; }
.toast { min-height: 1.6em; margin: 0; text-align: center; font-size: 15px; color: var(--teal); }

.wave { position: absolute; inset-inline: 0; inset-block-end: -1px; width: 100%; height: 60px; color: var(--cream); fill: currentColor; }
.wave--footer { color: var(--ink); }

/* בטלפון: כפתורי הפעולה נשארים בתחתית המסך */
@media (max-width: 899px) {
  .actions {
    position: sticky; inset-block-end: 0; z-index: 30;
    margin-inline: -16px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: linear-gradient(to top, var(--ink) 70%, transparent);
  }
  .studio { gap: 14px; }
}

/* במחשב: התמונה מימין קבועה, ההגדרות לידה */
@media (min-width: 900px) {
  .hero { padding: 128px 0 130px; }
  .hero__grid { gap: 40px; }
  .studio { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); grid-template-areas: "panel stage" "panel actions" "panel toast"; align-items: start; column-gap: 40px; row-gap: 16px; }
  .stage { grid-area: stage; position: sticky; top: 92px; width: 100%; }
  .panel { grid-area: panel; padding: 8px 26px; }
  .actions { grid-area: actions; }
  .toast { grid-area: toast; }
}

/* ---------- איך זה עובד: כרטיסים כהים עם ספרה ענקית ---------- */
.steps { padding: 70px 0 90px; }
.steps .title { color: var(--text); }
.steps__list { list-style: none; margin: 34px 0 0; padding: 0; display: grid; gap: 16px; }
.step {
  position: relative; overflow: hidden;
  padding: 26px 26px 28px; border-radius: 28px;
  background: var(--ink); color: var(--cream);
  box-shadow: var(--shadow-card);
}
.step:nth-child(2) { background: color-mix(in srgb, var(--blue) 70%, var(--ink)); }
.step:nth-child(3) { background: color-mix(in srgb, var(--ink) 92%, var(--yellow)); }
.step__num { display: block; font-family: var(--font-head); font-weight: 900; font-size: 72px; line-height: 1; color: var(--yellow); }
.step h3 { margin: 14px 0 6px; font-family: var(--font-head); font-weight: 900; font-size: 28px; }
.step p { margin: 0; color: var(--muted-dark); }
@media (min-width: 800px) { .steps__list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- תזכורת: רצועה בצבע ההדגשה ---------- */
.remind { background: var(--ink); padding: 76px 0; position: relative; overflow: hidden; isolation: isolate; }
.remind::before { content: ""; position: absolute; z-index: -1; width: 620px; height: 620px; border-radius: 50%; inset-block-start: -260px; inset-inline-end: -200px; background: color-mix(in srgb, var(--yellow) 30%, transparent); filter: blur(70px); }
.remind__grid { display: grid; gap: 30px; align-items: center; }
@media (min-width: 900px) { .remind__grid { grid-template-columns: 1fr 460px; gap: 60px; } }
.lead { display: grid; gap: 14px; padding: 24px; border-radius: 28px; background: var(--cream); color: var(--text); box-shadow: var(--shadow-card); }
.lead__field { display: grid; gap: 6px; font-weight: 700; font-size: 15px; }
.lead__field input, .lead__field select {
  min-height: 50px; padding: 10px 14px; border-radius: 14px; font-weight: 400; font-size: 16px;
  border: 1.5px solid color-mix(in srgb, var(--text) 18%, transparent); background: #fff; color: var(--text);
}
.lead__field input:focus, .lead__field select:focus { border-color: var(--yellow); }
.lead__trap { position: absolute; left: -9999px; }
.lead__msg { margin: 0; min-height: 1.4em; font-size: 15px; color: var(--muted); }
.lead__msg--bad { color: #B3261E; }
.lead__done { margin: 0; padding: 16px; border-radius: 18px; font-weight: 700; text-align: center; background: color-mix(in srgb, var(--yellow) 22%, #fff); }

/* ---------- שאלות ---------- */
.faq { position: relative; padding: 76px 0 130px; }
.faq .title { margin-bottom: 26px; }
.qa { border-radius: 22px; background: #fff; margin-bottom: 12px; box-shadow: 0 10px 30px color-mix(in srgb, var(--ink) 7%, transparent); }
.qa summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 18px; display: flex; justify-content: space-between; gap: 12px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font-family: var(--font-head); font-weight: 900; font-size: 26px; line-height: 1; color: var(--orange-deep); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa p { margin: 0; padding: 0 22px 20px; color: var(--muted); }

/* ---------- כותרת תחתונה ---------- */
.footer { background: var(--ink); color: var(--muted-dark); padding: 26px 0 34px; font-size: 15px; }
.footer__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 20px; }
.footer__name { font-family: var(--font-head); font-weight: 900; font-size: 20px; color: var(--cream); }
.footer a { color: var(--muted-dark); }

/* ---------- חלון קלוד קוד לעצלנים ---------- */
.promo { position: fixed; inset: 0; z-index: 100; display: grid; place-items: end center; }
.promo[hidden] { display: none; }
.promo__backdrop { position: absolute; inset: 0; background: rgb(8 7 14 / .66); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); animation: fadeIn .3s ease; }
.promo__card {
  position: relative; width: min(460px, 100%); margin: 0 auto;
  padding: 110px 26px calc(26px + env(safe-area-inset-bottom)); text-align: center;
  border-radius: 32px 32px 0 0; color: var(--cream);
  background:
    radial-gradient(420px 260px at 50% 0%, color-mix(in srgb, var(--yellow) 30%, transparent), transparent 70%),
    radial-gradient(360px 260px at 0% 100%, color-mix(in srgb, var(--blue) 50%, transparent), transparent 70%),
    var(--ink);
  border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -20px 60px rgb(0 0 0 / .5);
  animation: sheetUp .45s cubic-bezier(.2, .8, .2, 1);
}
.promo__mascot { position: absolute; width: 236px; height: auto; left: 50%; transform: translateX(-50%); top: -92px; filter: drop-shadow(0 18px 26px rgb(0 0 0 / .45)); }
.promo__x {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: color-mix(in srgb, var(--cream) 8%, transparent);
  display: grid; place-items: center; cursor: pointer; color: var(--cream);
}
.promo__x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.promo__eyebrow { margin: 0 0 6px; font-weight: 700; font-size: 16px; color: var(--teal); }
.promo__title { margin: 0; font-family: var(--font-head); font-weight: 900; font-size: 40px; line-height: 1.15; text-wrap: balance; }
.promo__text { margin: 12px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted-dark); }
.promo__want { margin: 12px 0 20px; font-size: 17px; line-height: 1.6; color: var(--cream); }
.promo__want b { color: var(--yellow); font-weight: 800; }
.promo__cta { width: 100%; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes fadeIn { from { opacity: 0; } }
@media (min-width: 640px) {
  .promo { place-items: center; padding: 120px 16px 16px; }
  .promo__card { border-radius: 32px; border-bottom: 1px solid var(--line); padding-bottom: 28px; animation: popIn .4s cubic-bezier(.2, .8, .2, 1); }
}
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* ---------- תנועה (DNA 10) ---------- */
.js .rv { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.js .rv.rv--in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .rv { opacity: 1; transform: none; }
}

/* ---------- אזור הניהול פתוח במחשב ---------- */
@media (min-width: 900px) {
  .adm-open .nav-wrap { left: 600px; }
  .adm-open .studio { grid-template-columns: 1fr; grid-template-areas: "stage" "actions" "toast" "panel"; }
  .adm-open .stage { position: relative; top: 0; max-width: 460px; }
}
