/* דף ההרשמה לכנס. אותם צבעים כמו האפליקציה, שנדגמו מהכרזה של תרבות בונה מקום. */
:root {
  --bg: #FFFFF0; --sand: #F5EEDF; --ink: #231F20; --muted: #5F5850; --line: #E8DFCD;
  --red: #D04F2F; --red-soft: #FAE4DB; --danger: #A43A45;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
[hidden] { display: none !important; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 17px/1.5 Assistant, 'Segoe UI', Arial, sans-serif;
  -webkit-tap-highlight-color: transparent; text-wrap: pretty;
}
h1, h2, legend { text-wrap: balance; }
a { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 6px; }

/* ───── ראש הדף ───── */
/* כמו הבאנר הרוחבי של הכנס: תיבה אדומה אנכית לצד הלוגו, תאריך ומקום מתחת, והעיר מהעיצוב ממלאת את התחתית */
.hero {
  position: relative; z-index: 2; height: 520px; max-width: 760px; margin: 0 auto;
  background: #FCFCF4 url(assets/reg-city-full.webp) 50% 0 / auto 100% no-repeat;
}
/* כשיש תנועה, העיר נבנית בכניסה (js/hero-city.js), אז לא מראים קודם את התמונה המלאה */
@media (prefers-reduced-motion: no-preference) { .hero { background-image: none; } }
.hero-art svg.base { animation: baseIn .5s ease-out both; }
@keyframes baseIn { from { opacity: 0; } }
/* האיור החי (js/hero-city.js) מחליף את התמונה כשהוא נטען. הלוגו יכול לצאת מגבולות ראש הדף בדרך לבר */
.hero-art { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.hero-art svg.base { display: block; width: 100%; height: 100%; }
.hero-art .hc { position: absolute; display: block; overflow: visible; will-change: transform; }
.hero.live { background: transparent; }
.hero-in { position: relative; }
.hero-in { padding: 26px 16px 0; display: grid; justify-items: center; }
.kicker { margin: 0 0 12px; color: var(--red); font-weight: 800; font-size: 13px; letter-spacing: .35em; margin-inline-end: -.35em; }
.lockup { display: flex; gap: 10px; align-items: stretch; }
.h-title { margin: 0; line-height: 0; }
.hero .title { width: 150px; height: auto; }
.tag {
  margin: 0; background: var(--red); color: var(--bg); font-weight: 400; font-size: 22px; line-height: 1;
  writing-mode: vertical-rl; transform: rotate(180deg); padding: 10px 8px; display: flex; align-items: center; justify-content: center;
}
.meta { display: flex; gap: 10px; align-items: flex-end; margin-top: 8px; }
.date { margin: 0; color: var(--red); font-family: 'Jost', 'Assistant', sans-serif; font-weight: 300; font-size: 42px; line-height: .9; }
.campus { margin: 0; color: var(--red); font-size: 11.5px; line-height: 1.3; text-align: right; }
.campus b { display: block; font-size: 17px; font-weight: 800; }

main { max-width: 560px; margin: 0 auto; padding: 0 16px 32px; }
.stripe { display: flex; height: 6px; border-radius: 3px; overflow: hidden; margin: 14px 0 18px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: #264C8A; } .stripe i:nth-child(2) { background: #3880A6; }
.stripe i:nth-child(3) { background: #D04F2F; } .stripe i:nth-child(4) { background: #A43A45; }
.stripe i:nth-child(5) { background: #55923F; } .stripe i:nth-child(6) { background: #F0A641; }
.stripe i:nth-child(7) { background: #DC8593; } .stripe i:nth-child(8) { background: #2D5C41; }

/* ───── טופס ───── */
.info { display: grid; gap: 8px; margin: 0 0 22px; padding: 14px 16px; background: var(--sand); border-radius: 14px; }
.info dl { display: grid; gap: 8px; margin: 0; }
.info dl div { display: grid; grid-template-columns: 3.2em 1fr; gap: 10px; align-items: baseline; }
.info dt { font-size: 18px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; line-height: 1.2; }
.info .soon { color: var(--muted); font-size: 14px; }
.about { display: grid; gap: 8px; margin: 18px 0 16px; }   /* רווח קטן מתחת לפס הצבעים */
.about p { margin: 0; font-size: 16px; line-height: 1.5; text-align: justify; text-wrap: wrap; }
.info dd { margin: 0; font-size: 15px; line-height: 1.3; }
.info p { margin: 0; font-size: 15px; text-wrap: pretty; }
.group { display: grid; gap: 8px; }
.g-title { font-weight: 600; font-size: 16px; }
.g-title small { color: var(--muted); font-weight: 400; font-size: 14px; margin-inline-start: 4px; }
form { display: grid; gap: 18px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 12px; }
legend { font-size: 20px; font-weight: 800; padding: 0; margin-bottom: 4px; }
label { display: grid; gap: 4px; font-weight: 600; font-size: 16px; }
label small { color: var(--muted); font-weight: 400; font-size: 14px; margin-inline-start: 4px; }
input:not([type=radio]):not([type=checkbox]):not([type=range]), select, textarea {
  font: inherit; font-size: 17px; /* 16px ומעלה: בלי זום אוטומטי באייפון */
  width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: 10px;
  background: #fff; color: var(--ink); font-weight: 400;
}
input[dir=ltr] { text-align: right; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: none; }
input[aria-invalid=true] { border-color: var(--danger); }
textarea { resize: vertical; min-height: 64px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 400; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

/* בחירת סכום: סליידר. בעברית הסכום הנמוך בצד ימין, והפס האדום מתמלא מימין עד הידית */
.price { gap: 8px; }
.p-now { display: flex; align-items: baseline; gap: 10px; }
.p-now b { font-size: 30px; font-weight: 800; color: var(--red); line-height: 1.1; font-variant-numeric: tabular-nums; min-width: 3.4em; white-space: nowrap; }
.p-now span { font-size: 18px; font-weight: 800; white-space: nowrap; }
.price input[type=range] {
  --p: 25%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0;
  background: transparent; cursor: pointer; touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}
.price input[type=range]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 4px;
  background: linear-gradient(to left, var(--red) var(--p), var(--line) var(--p));
}
.price input[type=range]::-moz-range-track { height: 8px; border-radius: 4px; background: var(--line); }
.price input[type=range]::-moz-range-progress { height: 8px; border-radius: 4px; background: var(--red); }
.price input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -9px; border-radius: 50%;
  background: var(--red); border: 3px solid var(--bg); box-shadow: 0 1px 4px rgba(35,31,32,.3);
}
.price input[type=range]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--red); border: 3px solid var(--bg);
}
.price input[type=range]:focus-visible { outline-offset: 4px; }
.p-ends { display: flex; justify-content: space-between; font-size: 15px; font-weight: 700; color: var(--muted); margin-top: -4px; }
.price input[type=range]:disabled { opacity: .35; cursor: default; }
.price .check { margin-top: 4px; }
.other input { max-width: 180px; }
.t-text { margin: 0; font-weight: 400; color: var(--muted); font-size: 15px; min-height: 2.9em; }

.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.privacy { margin: 0; color: var(--muted); font-size: 14px; }
.consent { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.45; text-wrap: pretty; }
.err { margin: 0; color: var(--danger); font-weight: 700; }

button[type=submit], .pay-go {
  font: inherit; font-weight: 800; font-size: 18px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--red); color: var(--bg); padding: 14px 24px; width: 100%;
  transition: transform .12s ease-out, opacity .15s;
  -webkit-user-select: none; user-select: none;
}
button[type=submit]:active, .pay-go:active { transform: scale(.98); }
button[disabled] { opacity: .6; cursor: progress; }

/* ───── אחרי ההרשמה ───── */
#done { display: grid; gap: 10px; padding: 22px 20px; background: var(--sand); border-radius: 16px; }
#done h1 { margin: 0; font-size: 26px; font-weight: 800; line-height: 1.2; }
#done p { margin: 0; }
#done .muted { color: var(--muted); font-size: 15px; }
.appear { animation: appear .3s ease-out both; }
@keyframes appear { from { opacity: 0; transform: translateY(8px); } }

footer { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; padding-bottom: 64px; padding-top: 14px; border-top: 1px solid var(--line); }
footer img { display: block; height: auto; }
footer .small { font-size: 14px; color: var(--muted); }
footer { flex-direction: column; gap: 8px; }
footer .made { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); text-decoration: none; }
footer .made:hover { color: var(--ink); }
footer .made .ram-logo { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); }
footer .made .ram-logo img { width: 14px; height: 14px; }
footer .made .ram-logo svg { display: block; height: 15px; width: auto; overflow: visible; }
footer .made .ram-logo svg * { transform-box: view-box; }


@media (min-width: 700px) {
  .hero { height: 560px; border-radius: 0 0 18px 18px; }
  .hero .title { width: 170px; }
  .about { margin-top: 40px; }   /* בדסקטופ: יותר אוויר בין הבר לטקסט */
}
@media (prefers-reduced-motion: reduce) {
  .appear { animation: none; }
  button[type=submit] { transition: none; }
}

/* Cloudflare Turnstile: בדרך כלל בלתי נראה. כשהוא מופיע, הוא ממורכז מעל כפתור ההרשמה */
.human { display: flex; justify-content: center; }
.human:empty { display: none; }

/* מחיר: פסקת הסבר ושלוש מדרגות. המדרגה של הסכום שנבחר מודגשת */
.p-intro { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink); text-align: justify; text-wrap: wrap; }
.tiers { list-style: none; margin: 2px 0 0; padding: 0; display: grid; gap: 6px; }
.tiers li { display: grid; grid-template-columns: 5.6em 1fr; gap: 8px; align-items: baseline; padding: 8px 10px; border-radius: 10px; font-size: 14.5px; line-height: 1.45; color: var(--muted); transition: background .2s, color .2s; }
.tiers li b { font-weight: 800; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tiers li strong { font-weight: 700; color: var(--ink); }
.tiers li.on { background: var(--red-soft); color: var(--ink); }
.tiers li.on b { color: var(--red); }

/* שותפים: שורת הקרדיט והלוגואים על רקע כהה, כמו בכרזה */
.credits { margin-top: 28px; display: grid; gap: 12px; }
/* שורת הקרדיט אחרי התוכנית, מופרדת בקו דק */
.credit-line { margin: 0 0 22px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.5; text-align: justify; }   /* כמו טקסט הפתיחה, עם קו מעליו */
.credits p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: center; text-wrap: balance; }
.logos { display: grid; gap: 6px; justify-items: center; padding: 4px 0; }
.logos img { display: block; width: 100%; height: auto; }
.logos img:first-child { max-width: 520px; }
.logos img:last-child { max-width: 370px; width: 72%; }
@media (prefers-reduced-motion: reduce) { .tiers li { transition: none; } }

/* התוכנית: שעה ומושב, בלי שמות משתתפים */
.program { margin: 0 0 22px; }
.program h2 { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.program ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.program li { display: grid; grid-template-columns: 3.4em 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.program time { font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; font-size: 16px; }
.program b { display: block; font-size: 16px; line-height: 1.35; }
.program p { margin: 3px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); text-wrap: pretty; }
/* רשימת משתתפים: שם ושיוך לא נשברים באמצע, והנקודה המפרידה נשארת בסוף השורה */
.program p.ppl span { white-space: nowrap; }
.program p.ppl span:not(:last-child)::after { content: ' ·'; }
.program li.break b { color: var(--muted); font-weight: 700; }

/* ───── שני מסכים באותו דף: עמוד הכנס (#home) וההרשמה (#register) ─────
   עובד גם בלי JS (#register:target). ה-JS מוסיף data-view לחזרה מהתשלום ולמעבר עם תנועה */
#register { display: none; }
#register:target, body[data-view="reg"] #register { display: block; }
body:has(#register:target) #home, body:has(#register:target) .hero, body:has(#register:target) .cta-float,
body[data-view="reg"] #home, body[data-view="reg"] .hero, body[data-view="reg"] .cta-float { display: none; }
.view.enter { animation: view-in .28s cubic-bezier(.2,.7,.2,1); }
@keyframes view-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.cta {
  display: block; text-align: center; text-decoration: none; font-weight: 800; font-size: 18px; border-radius: 999px;
  background: var(--red); color: var(--bg); padding: 14px 24px; transition: transform .12s ease-out;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
.cta:active { transform: scale(.98); }
.cta-end { margin: 18px 0 0; }
.cta-float {
  position: fixed; z-index: 40; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%);
  width: min(240px, calc(100% - 170px)); padding: 12px 20px; box-shadow: 0 6px 20px rgba(35,31,32,.25);
  transition: opacity .2s, transform .2s;
}
.cta-float:active { transform: translateX(-50%) scale(.98); }
.cta-float.away { opacity: 0; pointer-events: none; transform: translate(-50%, 12px); }

.reg-top { display: grid; gap: 6px; padding: 18px 0 14px; }
.back { color: var(--red); font-weight: 700; font-size: 15px; text-decoration: none; width: fit-content; }
.reg-title { margin: 0; font-size: 28px; font-weight: 800; line-height: 1.15; outline: none; }
.reg-title small span { display: block; }
.reg-title small { display: block; margin-top: 4px; font-size: 15px; font-weight: 700; color: var(--red); }
@media (prefers-reduced-motion: reduce) { .view.enter { animation: none; } .cta-float { transition: none; } }

/* בר עליון: במסך ההרשמה הוא תמיד מופיע, אז התוכן מתחיל מתחתיו */
/* בדף הכנס הבר קבוע למעלה ושקוף. כשמתחילים לגלול הוא "נדלק" (רקע ותוכן), והלוגו שלו עף מהלוגו הגדול (js/hero-city.js).
   פס הצבעים של הבר מופיע רק כשהפס שבתחתית האיור מגיע אליו, כך שנראה כאילו הפס נעצר למעלה */
.topbar.sticky { background: transparent; transition: background-color .3s ease-out; }
.topbar.sticky.on { background: var(--bg); }
.topbar.sticky .tb-stripe { visibility: hidden; }
.topbar.sticky.stuck .tb-stripe { visibility: visible; }
body[data-view="reg"] .topbar.sticky, body:has(#register:target) .topbar.sticky { position: sticky; transition: none; }
body[data-view="reg"] .hero-stripe, body:has(#register:target) .hero-stripe { display: none; }
.topbar.sticky .tb-logo, .topbar.sticky .tb-mid, .topbar.sticky .tb-mif { opacity: 0; transition: opacity .3s ease-out; }
.topbar.sticky .tb-logo { transition: none; }
.topbar.sticky.on .tb-logo, .topbar.sticky.live .tb-logo, .topbar.sticky.on .tb-mid, .topbar.sticky.on .tb-mif { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .topbar.sticky .tb-mid, .topbar.sticky .tb-mif { transition: none; } }
