/* זרימת הפתיחה: ספלאש, מסכי פתיחה, הרשמה, התחברות */
.screen {
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column;
  padding: calc(12px + env(safe-area-inset-top)) var(--margin) calc(24px + env(safe-area-inset-bottom));
  background: var(--background);
  max-width: 560px; margin: 0 auto;
}
@media (min-width: 700px) { body { background: var(--background); } .screen { padding-top: 40px; } }

/* ---------- כפתורים ---------- */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 54px; padding: 0 24px;
  border-radius: var(--radius-pill);
  font-size: var(--fs-body); font-weight: 700;
  transition: transform .12s ease, background .15s ease;
}
.btn:active { transform: scale(.98); }
.btn--primary { background: var(--smoky-pink); color: #fff; }
.btn--primary:hover { background: var(--smoky-pink-dark); }
.btn--outline { background: var(--surface); border: 1.5px solid var(--line); color: var(--text); }
.link { color: var(--smoky-pink-dark); font-weight: 600; font-size: var(--fs-small); text-decoration: underline; text-underline-offset: 3px; padding: 10px 4px; }
.link--center { display: block; margin: 8px auto 0; }

/* ---------- סרגל עליון ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 48px; }
.topbar__back { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); }

/* ---------- לוגו ---------- */
.logo { font-weight: 800; font-size: 64px; letter-spacing: -2px; color: var(--smoky-pink); direction: ltr; line-height: 1; }
.logo--small { font-size: 36px; margin: 8px 0 12px; align-self: flex-start; }

/* ---------- ספלאש ---------- */
.splash { justify-content: center; align-items: center; background: var(--smoky-pink); max-width: none; cursor: pointer; }
.splash .logo { color: #fff; font-size: 84px; }
.splash__logo { display: flex; flex-direction: column; align-items: center; gap: 12px; animation: rise .7s ease both; }
.splash__tag { color: var(--baby-pink); font-size: var(--fs-body); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* ---------- מסכי פתיחה ---------- */
.intro__art { flex: 1; display: grid; place-items: center; padding: 12px 0; min-height: 260px; }
.intro__art img { width: 100%; max-width: 360px; max-height: 42vh; object-fit: cover; border-radius: var(--radius-l); background: #fff; box-shadow: var(--shadow-card); animation: rise .5s ease both; }
.intro__text { text-align: center; }
.intro__text h1 { font-size: 30px; font-weight: 800; line-height: 1.15; }
.intro__text p { margin-top: 10px; font-size: 18px; color: var(--text-muted); }
.dots { display: flex; justify-content: center; gap: 8px; margin: 24px 0; }
.dots__dot { width: 8px; height: 8px; border-radius: 99px; background: var(--gum-pink); opacity: .5; transition: width .2s; }
.dots__dot.is-on { width: 26px; background: var(--smoky-pink); opacity: 1; }

/* ---------- טפסים ---------- */
.form-screen h1 { font-size: var(--fs-h1); font-weight: 800; margin-top: 8px; }
.lead { color: var(--text-muted); margin-top: 4px; }
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 22px; }
.form .btn--primary { margin-top: 8px; }
.form .link { align-self: flex-start; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field__label { font-weight: 600; font-size: var(--fs-small); }
.field__label em { font-style: normal; color: var(--text-muted); font-weight: 400; }
.field__input {
  font: inherit; font-size: var(--fs-body); min-height: 52px; padding: 0 16px;
  border: 1.5px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--text);
}
.field__input:focus { outline: none; border-color: var(--smoky-pink); box-shadow: 0 0 0 3px var(--baby-pink); }
.field__hint { font-size: var(--fs-tiny); color: var(--text-muted); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--fs-small); line-height: 1.4; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--smoky-pink); flex: none; }
.check a { color: var(--smoky-pink-dark); }

.why { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--baby-pink); color: var(--smoky-pink-dark); }
.why p { color: var(--text); font-size: var(--fs-small); }

.choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.choice legend { font-weight: 600; font-size: var(--fs-small); margin-bottom: 10px; padding: 0; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: block; padding: 10px 20px; border-radius: 99px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 600; cursor: pointer; }
.pill input:checked + span { background: var(--smoky-pink); border-color: var(--smoky-pink); color: #fff; }
.pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--gum-pink); }

/* שלבי הרשמה */
.steps { display: flex; gap: 6px; margin-top: 12px; }
.steps__bar { flex: 1; height: 6px; border-radius: 99px; background: var(--baby-pink); }
.steps__bar.is-on { background: var(--smoky-pink); }
.steps__label { font-size: var(--fs-tiny); color: var(--text-muted); margin-top: 6px; }

.divider { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; color: var(--text-muted); font-size: var(--fs-small); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.socials { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.intro__art--obj img { background: none; box-shadow: none; border-radius: 0; object-fit: contain; }
.legend-hint { font-style: normal; font-weight: 400; color: var(--text-muted); }

/* שדות תאריך ושעה: המספרים משמאל לימין (ספארי הפך אותם), עם אייקון לוח שנה */
.field__input[type="date"], .field__input[type="time"] {
  direction: ltr; text-align: right; font-variant-numeric: tabular-nums;
  -webkit-appearance: none; appearance: none;
  padding-left: 46px;
  background-repeat: no-repeat; background-position: left 14px center; background-size: 20px;
}
.field__input[type="date"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B55472' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4.5' width='18' height='16.5' rx='3'/%3E%3Cpath d='M3 9.5h18M8 2.5v4M16 2.5v4'/%3E%3C/svg%3E"); }
.field__input[type="time"] { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B55472' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.field__input[type="date"]::-webkit-date-and-time-value, .field__input[type="time"]::-webkit-date-and-time-value { text-align: right; }
.field__input[type="date"]::-webkit-calendar-picker-indicator, .field__input[type="time"]::-webkit-calendar-picker-indicator { opacity: 0; position: absolute; left: 0; width: 48px; height: 100%; cursor: pointer; }
.field__input[type="date"], .field__input[type="time"] { position: relative; }
.due-preview { display: flex; align-items: center; gap: 6px; font-size: var(--fs-small); font-weight: 600; color: var(--smoky-pink-dark); min-height: 20px; }
