/* ===================================================================
   first × שילב — landing / eligibility flow
   Palette & type reproduced from the approved design (oklch, Rubik).
   Real-app layout: sticky top header + swapped screens below.
   =================================================================== */

:root {
  --ink:        oklch(20% 0.01 250);   /* near-black — primary buttons, dots */
  --text:       oklch(24% 0.02 40);    /* headings / body dark */
  --muted:      oklch(48% 0.02 40);    /* secondary text */
  --faint:      oklch(60% 0.02 40);    /* hints / legal */
  --accent:     oklch(48% 0.19 25);    /* shilav red */
  --accent-bg:  oklch(94% 0.06 25);    /* red tint */
  --accent-dk:  oklch(40% 0.19 25);    /* red text on tint */
  --tint:       oklch(90% 0.05 200);   /* teal tint — success/eligible */
  --card:       oklch(99% 0.004 45);   /* app surface */
  --panel:      oklch(97% 0.014 45);   /* soft panel */
  --border:     oklch(85% 0.02 40);
  --border-lt:  oklch(90% 0.01 40);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: var(--card);
  font-family: 'Rubik', system-ui, sans-serif;
  color: var(--text);
  -webkit-text-size-adjust: 100%;
}
a { color: oklch(18% 0.01 250); }
a:hover { color: oklch(0% 0 0); }
input:focus { outline: none; }
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* App shell — a real full-height app column, centered on wide screens */
.app {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--card);
  display: flex;
  flex-direction: column;
}

/* ---- sticky top header (persists across all steps) ---- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  background: oklch(99% 0.004 45 / 0.97); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--border-lt);
  padding: 12px 22px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; cursor: pointer; }
.brand-first  { height: 36px; width: auto; display: block; }
.brand-shilav { height: 34px; width: auto; display: block; }
.topbar-pill {
  font-size: 11px; font-weight: 700; color: var(--text);
  background: var(--tint); padding: 5px 12px; border-radius: 20px;
}

/* ---- screens container ---- */
.screens { flex: 1; display: flex; flex-direction: column; position: relative; }
.screen { display: flex; flex-direction: column; }
.screen[hidden] { display: none; }
.screen.fill { flex: 1; }
.screen.center { align-items: center; justify-content: center; gap: 16px; padding: 40px 32px; text-align: center; }
.screen.pad { padding: 22px; gap: 12px; }
.screen:not([data-step="landing"]):not([hidden]) { animation: fadeUp .35s ease; }

.inline-first { height: 20px; width: auto; vertical-align: middle; }
.inline-first.sm { height: 16px; }

/* ---- hero ---- */
.hero {
  padding: 22px 22px 16px;
  display: flex; flex-direction: column; gap: 14px;
  background: linear-gradient(180deg, var(--tint) 0%, var(--panel) 100%);
}
.eyebrow { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 5px; }

/* ---- hero carousel ---- */
.carousel { position: relative; width: 100%; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; }
.slide {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; background: #fff; opacity: 0; transition: opacity .6s ease;
}
.slide.is-active { opacity: 1; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dot { width: 7px; height: 7px; padding: 0; border: none; border-radius: 50%; background: oklch(88% 0.02 40); cursor: pointer; }
.dot.is-active { background: var(--ink); }

.hero-title { margin: 6px 0 0; font-size: 24px; line-height: 1.3; font-weight: 800; color: var(--text); }
.hero-sub { margin: 0; font-size: 15px; line-height: 1.6; color: var(--muted); }

.price-row { display: flex; align-items: center; gap: 12px; margin-top: 2px; }
.price-badge {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center; line-height: 1;
  font-size: 22px; font-weight: 800;
  direction: ltr; /* keep ₪69.90 in order under RTL */
}
.price-cur, .price-dec { font-size: 13px; vertical-align: top; }
.price-tag {
  font-size: 12px; font-weight: 700; color: var(--accent);
  background: var(--accent-bg); padding: 5px 10px; border-radius: 20px;
  display: flex; align-items: center; gap: 5px;
}

/* ---- steps ---- */
.steps-block { padding: 12px 22px 6px; display: flex; flex-direction: column; gap: 14px; }
.block-title { margin: 0; font-size: 16px; font-weight: 800; color: var(--text); }
.block-title.lg { font-size: 17px; font-weight: 700; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text); }
.step-num {
  flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}

/* ---- check form ---- */
.check-form { padding: 6px 22px 32px; display: flex; flex-direction: column; gap: 12px; }
.divider { height: 1px; background: var(--border-lt); margin-bottom: 6px; }
.muted { color: var(--muted); font-size: 14px; }
.muted.sm { font-size: 13.5px; margin: 0; }
.muted.md { font-size: 15px; font-weight: 600; }

.text-input {
  border: 1.5px solid var(--border); border-radius: 12px; padding: 14px 16px;
  font-size: 16px; font-family: inherit; color: var(--text); background: var(--card); width: 100%;
}
.text-input.sm { border-radius: 10px; padding: 12px 14px; font-size: 15px; border-color: oklch(88% 0.02 40); }
.text-input:focus { border-color: var(--ink); }
select.text-input {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8'><path fill='%23888' d='M1 1l5 5 5-5'/></svg>");
  background-repeat: no-repeat; background-position: left 16px center; padding-left: 40px;
}
select.text-input:invalid { color: var(--faint); }
.field-error { font-size: 13px; color: oklch(53% 0.19 25); font-weight: 600; }

.test-hint {
  font-family: ui-monospace, monospace; font-size: 11px; color: var(--faint);
  background: var(--panel); border: 1px dashed var(--border); border-radius: 10px; padding: 8px 10px; line-height: 1.7;
}
.notice { margin: 0; font-size: 11.5px; font-weight: 700; color: var(--accent); text-align: center; line-height: 1.6; }

/* ---- eligible screen form (kids + branch) ---- */
.eligible-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 4px; }
.form-intro { margin: 4px 0 2px; font-size: 15px; font-weight: 800; color: var(--text); text-align: center; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field-label { font-size: 13.5px; font-weight: 700; color: var(--text); }

/* searchable branch combobox */
.combo { position: relative; }
.combo-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 40;
  background: var(--card); border: 1.5px solid var(--border); border-radius: 12px;
  max-height: 260px; overflow-y: auto;
  box-shadow: 0 14px 34px -12px oklch(24% 0.02 40 / 0.4);
}
.combo-list[hidden] { display: none; }
.combo-opt { padding: 11px 14px; cursor: pointer; border-bottom: 1px solid var(--border-lt); display: flex; gap: 8px; align-items: baseline; }
.combo-opt:last-child { border-bottom: none; }
.combo-opt:hover, .combo-opt.active { background: var(--panel); }
.combo-opt .opt-city { font-size: 14px; font-weight: 700; color: var(--text); }
.combo-opt .opt-name { font-size: 12.5px; color: var(--muted); }
.combo-empty { padding: 16px; text-align: center; color: var(--faint); font-size: 13px; }
.notice.center-text { font-size: 12.5px; }

.legal-block { display: flex; flex-direction: column; gap: 4px; }
.legal { margin: 0; font-size: 10.5px; line-height: 1.6; color: var(--faint); }
.legal-box { background: var(--accent-bg); border-radius: 10px; padding: 10px 12px; }
.legal-strong { margin: 0; font-size: 11px; font-weight: 700; line-height: 1.6; color: var(--accent-dk); }

/* ---- buttons ---- */
.btn {
  border: none; border-radius: 999px; padding: 15px; font-size: 16px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: opacity .15s, transform .05s;
}
.btn:active { transform: scale(.99); }
.btn:disabled { opacity: .5; cursor: default; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { opacity: .92; }
.btn.full { width: 100%; }
.btn-outline {
  border: 1.5px solid var(--border); background: none; border-radius: 10px;
  padding: 10px; font-size: 13.5px; font-weight: 700; color: var(--text); margin-top: 6px;
}

/* ---- status screens ---- */
.spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid oklch(85% 0.06 200); border-top-color: var(--ink);
  animation: spin .8s linear infinite;
}
.status-icon {
  width: 56px; height: 56px; border-radius: 50%; font-size: 28px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}
.status-icon.bad  { background: var(--accent-bg); color: var(--accent); }
.status-icon.good { background: var(--tint); color: var(--ink); }
.status-icon.self-center { align-self: center; width: 52px; height: 52px; font-size: 26px; }
.status-title { margin: 0; font-size: 18px; font-weight: 700; color: var(--text); }
.status-title.lg { font-size: 19px; font-weight: 800; }
.center-text { text-align: center; line-height: 1.6; }

/* ---- payment ---- */
.order-line {
  display: flex; justify-content: space-between; font-size: 14px; color: var(--muted);
  background: var(--panel); border-radius: 12px; padding: 12px 14px;
}
.order-price { font-weight: 700; color: var(--text); }
.pay-box { border: 1.5px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.pay-frame { width: 100%; min-height: 540px; border: none; border-radius: 12px; display: block; }
.pay-secure { font-size: 11.5px; font-weight: 700; color: var(--faint); }
.pay-row { display: flex; gap: 10px; }
.pay-row .cvv { width: 80px; flex: none; }
.pay-row .text-input { flex: 1; }

/* ---- success ---- */
.receipt { border: 1.5px solid var(--border-lt); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.receipt-row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.receipt-row .strong { font-weight: 700; color: var(--text); }
.wa-block { display: flex; flex-direction: column; gap: 6px; }
.wa-label { font-size: 12px; font-weight: 700; color: var(--faint); }
.wa-bubble {
  background: var(--tint); border-radius: 14px 14px 3px 14px; padding: 12px 14px;
  font-size: 13.5px; line-height: 1.6; color: var(--text); align-self: flex-end; max-width: 88%;
}
.branch-link { text-align: center; font-size: 13.5px; font-weight: 700; text-decoration: none; }
.branch-link:hover { text-decoration: underline; }
.kit-img { width: 100%; border-radius: 12px; display: block; }
