/* דף וובינר: מוצאי שבת. לילה כחול-דיו, שלושה כוכבים שנדלקים, ושעון עד ההתחלה.
   הצבעים מהמותג של yonatanfanger.com: נייר, דיו, צהוב שמש */
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-hebrew-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Rubik'; src: url('/fonts/rubik-latin-wght-normal.woff2') format('woff2'); font-weight: 300 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-hebrew-hebrew-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-hebrew-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-hebrew-hebrew-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: 'Plex'; src: url('/fonts/ibm-plex-sans-hebrew-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F; }

:root {
  --night: #14213d;
  --night-deep: #0d1730;
  --paper: #f4f0e6;
  --white: #fffdf8;
  --sun: #ffd23f;
  --sun-soft: #fff3c2;
  --brick: #c7512e;
  --ink-2: #4a5470;
  --line: rgba(20, 33, 61, 0.28);
  --display: 'Rubik', 'Heebo', Arial, sans-serif;
  --sans: 'Plex', 'Assistant', Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--night); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2 { font-family: var(--display); margin: 0; line-height: 1.15; text-wrap: balance; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, 960px); margin-inline: auto; }
.narrow > div { max-width: 560px; }

/* ---------- לילה ---------- */
.night { position: relative; overflow: hidden; color: var(--paper);
  background: linear-gradient(180deg, var(--night-deep) 0%, var(--night) 70%); padding: 28px 0 64px; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.star { position: absolute; width: 14px; height: 14px; background: var(--sun);
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0; animation: light 900ms ease-out forwards; }
.s1 { top: 18%; left: 12%; animation-delay: 300ms; }
.s2 { top: 9%; left: 30%; width: 10px; height: 10px; animation-delay: 900ms; }
.s3 { top: 30%; left: 22%; width: 18px; height: 18px; animation-delay: 1500ms; }
@keyframes light { 0% { opacity: 0; transform: scale(0.4); } 60% { opacity: 1; transform: scale(1.25); } 100% { opacity: 1; transform: scale(1); } }

.hero { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.logo img { display: block; width: 56px; height: 56px; border-radius: 50%; background: var(--paper); object-fit: contain; }
.kicker { color: var(--sun); font-weight: 600; font-size: 16px; margin-top: 18px; }
h1 { font-size: clamp(34px, 7.4vw, 64px); font-weight: 800; letter-spacing: -0.01em; max-width: 16ch; }
.promise { font-size: clamp(18px, 2.4vw, 21px); max-width: 52ch; color: rgba(244, 240, 230, 0.88); }
.when { font-family: var(--display); font-size: 19px; font-weight: 600; border-inline-start: 4px solid var(--sun); padding-inline-start: 12px; }

.clock { margin-top: 8px; }
.clock-label { font-size: 15px; color: rgba(244, 240, 230, 0.7); margin-bottom: 6px; }
.digits { display: flex; gap: clamp(14px, 4vw, 34px); direction: rtl; }
.digits div { display: flex; flex-direction: column; align-items: center; min-width: 2.2ch; }
.digits b { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 11vw, 88px); line-height: 1; font-variant-numeric: tabular-nums; color: var(--white); }
.digits span { font-size: 14px; color: rgba(244, 240, 230, 0.7); margin-top: 4px; }

.cta, .submit { display: inline-flex; align-items: center; justify-content: center; min-height: 54px; padding: 12px 28px;
  font-family: var(--display); font-weight: 700; font-size: 19px; text-decoration: none; border-radius: 12px; cursor: pointer;
  background: var(--sun); color: var(--night); border: 2px solid var(--night); box-shadow: 4px 4px 0 var(--night); }
.night .cta { margin-top: 10px; border-color: var(--sun); box-shadow: 4px 4px 0 rgba(255, 210, 63, 0.35); }
.cta:active, .submit:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--night); }
.submit:disabled { opacity: 0.6; cursor: wait; }

/* ---------- שאלות ---------- */
.band { background: var(--sun); padding: 56px 0; }
.band h2 { font-size: 22px; font-weight: 600; margin-bottom: 18px; }
.questions { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.questions li { font-family: var(--display); font-weight: 700; font-size: clamp(24px, 4.6vw, 40px); line-height: 1.2;
  padding: 14px 0; border-top: 2px solid var(--night); max-width: 26ch; }
.questions li:last-child { border-bottom: 2px solid var(--night); }

@media (min-width: 760px) { .questions li { font-size: clamp(22px, 2.6vw, 30px); } }
.band-close { font-family: var(--display); font-weight: 800; font-size: clamp(22px, 3.6vw, 32px); margin-top: 28px; max-width: 30ch; }

/* ---------- מה תיקח ---------- */
.gains { background: var(--white); padding: 60px 0; }
.gains-intro { font-size: 19px; max-width: 56ch; color: var(--ink-2); margin-bottom: 20px; }
.gains h2 { font-size: clamp(28px, 5vw, 40px); font-weight: 800; margin-bottom: 26px; }
.gain-list { margin: 0; display: grid; gap: 0; }
.gain-list > div { padding: 18px 0; border-top: 2px solid var(--night); display: grid; gap: 6px; }
.gain-list > div:last-child { border-bottom: 2px solid var(--night); }
.gain-list dt { font-family: var(--display); font-weight: 700; font-size: 21px; }
.gain-list dd { margin: 0; color: var(--ink-2); max-width: 60ch; }
.gains-close { font-family: var(--display); font-weight: 600; font-size: 20px; margin: 28px 0 20px; max-width: 40ch; }
@media (min-width: 760px) { .gain-list > div { grid-template-columns: 0.9fr 1.6fr; gap: 24px; align-items: baseline; } }

/* ---------- למי ---------- */
.whom { background: var(--night); color: var(--paper); padding: 56px 0; }
.whom h2 { font-size: clamp(26px, 4.6vw, 36px); font-weight: 800; margin-bottom: 18px; }
.whom p { max-width: 60ch; color: rgba(244, 240, 230, 0.88); }
.whom p + p { margin-top: 12px; }
.whom-line { font-family: var(--display); font-weight: 700; font-size: 21px; color: var(--sun) !important; margin-top: 24px !important; }

/* ---------- סרטון ---------- */
.video-sec { background: var(--night); color: var(--paper); padding: 52px 0; }
.video-sec h2 { font-size: 24px; margin-bottom: 18px; }
.video { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 14px; overflow: hidden; }
.video button { all: unset; cursor: pointer; position: absolute; inset: 0; display: grid; place-items: center; }
.video img, .video iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.video .play { position: relative; width: 76px; height: 76px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 8px rgba(255, 210, 63, 0.3); }
.video .play::after { content: ''; position: absolute; inset: 0; margin: auto; width: 0; height: 0; transform: translateX(4px);
  border-block: 14px solid transparent; border-left: 22px solid var(--night); }

/* ---------- טופס ---------- */
.paper { padding: 60px 0 72px; }
.paper h2 { font-size: clamp(28px, 5vw, 38px); font-weight: 800; }
.sub { color: var(--ink-2); margin: 10px 0 24px; }
form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
.field input { font: inherit; font-weight: 400; font-size: 18px; min-height: 52px; padding: 10px 14px; border-radius: 10px;
  border: 2px solid var(--line); background: var(--white); color: var(--night); width: 100%; }
.field input[dir='ltr'] { text-align: right; }
.field input:focus { outline: none; border-color: var(--night); box-shadow: 0 0 0 4px var(--sun-soft); }
.field input[aria-invalid='true'] { border-color: var(--brick); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.5; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--night); flex: none; }
.check a { font-weight: 600; }
.focus { border: 0; margin: 4px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.focus legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.focus legend small { display: block; font-weight: 400; color: var(--ink-2); font-size: 14px; }
.focus label { position: relative; cursor: pointer; }
.focus input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.focus span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line);
  background: var(--white); font-size: 15px; font-weight: 600; }
.focus input:checked + span { background: var(--night); color: var(--paper); border-color: var(--night); }
.focus input:focus-visible + span { outline: 3px solid var(--sun); outline-offset: 2px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.error { background: #fbe4dc; color: var(--brick); font-weight: 600; padding: 10px 14px; border-radius: 10px; }
.submit { width: 100%; margin-top: 6px; }

#done:focus { outline: none; }
.actions { display: flex; flex-direction: column; gap: 10px; }
.ghost { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 10px 20px; border-radius: 12px;
  border: 2px solid var(--night); background: transparent; font-weight: 600; text-decoration: none; text-align: center; }
.note { margin-top: 16px; color: var(--ink-2); font-size: 15px; }
.share { margin-top: 32px; padding-top: 24px; border-top: 2px solid var(--night); display: flex; flex-direction: column; gap: 10px; }
.share p { font-family: var(--display); font-weight: 700; font-size: 20px; }

.foot { background: var(--night); color: rgba(244, 240, 230, 0.75); padding: 28px 0 36px; font-size: 14px; }
.foot p + p { margin-top: 8px; }
.foot a { margin-inline-end: 16px; }

@media (min-width: 760px) {
  .night { padding: 40px 0 88px; }
  .questions { grid-template-columns: 1fr 1fr; column-gap: 40px; }
  .questions li:nth-last-child(2) { border-bottom: 2px solid var(--night); }
  .actions { flex-direction: row; flex-wrap: wrap; }
  .actions .submit { width: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .star { animation: none; opacity: 1; }
}
