@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;500;700;900&family=Assistant:wght@400;500;600;700&display=swap');

:root {
  --ink: #14293D;
  --ink-soft: #3A5165;
  --paper: #F6F7F5;
  --paper-raised: #FFFFFF;
  --line: #DDE3E1;
  --gold: #E1A23B;
  --gold-deep: #B97F22;
  --teal: #2F7A6D;
  --teal-soft: #E4F1EE;
  --red: #C0523F;
  --red-soft: #FBEAE6;
  --radius: 14px;
  --shadow: 0 4px 18px rgba(20, 41, 61, 0.08);
  --shadow-lift: 0 10px 30px rgba(20, 41, 61, 0.14);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Assistant', 'Segoe UI', sans-serif;
  direction: rtl;
  min-height: 100%;
}

h1, h2, h3, .display {
  font-family: 'Heebo', 'Assistant', sans-serif;
  font-weight: 900;
  letter-spacing: -0.01em;
  margin: 0;
}

#app {
  max-width: 640px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
}

.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 10px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-soft);
}
.brand .basket-mark {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--gold) 0%, var(--teal) 100%);
  flex-shrink: 0;
}

.progress-track {
  display: flex;
  gap: 6px;
  padding: 0 20px 16px;
}
.progress-seg {
  height: 6px;
  flex: 1;
  background: var(--line);
  border-radius: 4px;
  overflow: hidden;
}
.progress-seg > div {
  height: 100%;
  width: 0%;
  background: var(--gold);
  transition: width .4s ease;
}
.progress-label {
  padding: 0 20px 8px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

main {
  flex: 1;
  padding: 8px 20px 100px;
  display: flex;
  flex-direction: column;
}

.screen { animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px);} to {opacity: 1; transform: translateY(0);} }

/* --- Intro --- */
.hero-card {
  background: var(--paper-raised);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 34px 26px;
  margin-top: 10px;
}
.hero-eyebrow {
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .04em;
  margin-bottom: 10px;
}
.hero-card h1 { font-size: 28px; line-height: 1.3; margin-bottom: 16px; }
.hero-card p { color: var(--ink-soft); line-height: 1.7; font-size: 15px; margin: 0 0 12px; }
.disclaimer {
  font-size: 12.5px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 16px;
}
.chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chip {
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 15px 22px;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 15.5px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--ink); color: white; }
.btn-primary:hover { box-shadow: var(--shadow-lift); }
.btn-primary:disabled { background: #B9C2C9; cursor: not-allowed; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { box-shadow: 0 8px 20px rgba(225,162,59,.35); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-block { width: 100%; }

.bottom-bar {
  position: sticky;
  bottom: 0;
  background: linear-gradient(to top, var(--paper) 60%, transparent);
  padding: 18px 20px 22px;
  display: flex;
  gap: 10px;
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}
.bottom-bar .btn-back { flex: 0 0 auto; }
.bottom-bar .btn-next { flex: 1; }

/* --- Question screens --- */
.q-title { font-size: 22px; line-height: 1.4; margin-bottom: 22px; }
.field-label { font-weight: 700; font-size: 14px; margin-bottom: 8px; display: block; }

input[type=text], input[type=email], input[type=tel] {
  width: 100%;
  padding: 14px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  font-size: 15px;
  font-family: inherit;
  background: white;
  margin-bottom: 14px;
}
input:focus { outline: 2.5px solid var(--gold); outline-offset: 1px; border-color: var(--gold); }

.option-grid { display: flex; flex-direction: column; gap: 10px; }
.option-btn {
  text-align: right;
  background: white;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 15px 16px;
  font-size: 15px;
  font-family: 'Assistant', sans-serif;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color .15s ease, background .15s ease;
}
.option-btn:hover { border-color: var(--gold); }
.option-btn.selected {
  border-color: var(--teal);
  background: var(--teal-soft);
  color: var(--teal);
}
.option-btn .mark {
  width: 20px; height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  margin-left: 10px;
}
.option-btn.selected .mark { background: var(--teal); border-color: var(--teal); color: white; }

.consent-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 4px;
  font-size: 13.5px;
  color: var(--ink-soft);
  cursor: pointer;
}
.consent-row input { width: 18px; height: 18px; margin-top: 2px; }

/* --- Scale --- */
.scale-row { display: flex; gap: 8px; margin-bottom: 10px; }
.scale-btn {
  flex: 1;
  aspect-ratio: 1;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: white;
  font-family: 'Heebo', sans-serif;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
}
.scale-btn.selected { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.scale-caption { font-size: 13.5px; color: var(--ink-soft); min-height: 20px; }

/* --- Results --- */
.score-card {
  background: linear-gradient(160deg, var(--ink) 0%, #21415C 100%);
  color: white;
  border-radius: 22px;
  padding: 30px 24px;
  text-align: center;
  box-shadow: var(--shadow-lift);
  margin-top: 6px;
}
.score-ring {
  width: 140px; height: 140px;
  margin: 0 auto 14px;
  position: relative;
}
.score-ring svg { transform: rotate(-90deg); }
.score-ring .value {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  flex-direction: column;
}
.score-ring .value .num { font-family: 'Heebo', sans-serif; font-weight: 900; font-size: 34px; }
.score-ring .value .lbl { font-size: 11px; opacity: .8; }
.score-card h2 { font-size: 19px; margin-bottom: 4px; }
.score-card .sub { opacity: .85; font-size: 14px; }

.section-card {
  background: var(--paper-raised);
  border-radius: 16px;
  padding: 20px;
  margin-top: 16px;
  box-shadow: var(--shadow);
}
.section-card h3 { font-size: 15.5px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.basket-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.basket-row:last-child { border-bottom: none; }
.basket-row .name { font-weight: 600; font-size: 14.5px; }
.basket-row .main { font-size: 12px; color: var(--ink-soft); }
.match-pill {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.match-high { background: var(--teal-soft); color: var(--teal); }
.match-mid { background: #FCF0DB; color: var(--gold-deep); }
.match-low { background: var(--red-soft); color: var(--red); }

.strength-item, .gap-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14px;
  padding: 8px 0;
  line-height: 1.5;
}
.strength-item .ic { color: var(--teal); font-weight: 900; }
.gap-item .ic { color: var(--gold-deep); font-weight: 900; }

.cta-block { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; }

/* --- Next-step options --- */
.options-lead { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 6px; line-height: 1.6; }
.plan-card {
  background: var(--paper-raised);
  border: 1.5px solid var(--line);
  border-radius: 18px;
  padding: 22px 20px;
  margin-top: 14px;
  box-shadow: var(--shadow);
}
.plan-card h3 { font-size: 18px; margin-bottom: 8px; }
.plan-card p { color: var(--ink-soft); font-size: 14.5px; line-height: 1.65; margin: 0 0 12px; }
.plan-featured { border: 2px solid var(--gold); box-shadow: var(--shadow-lift); }
.plan-badge {
  display: inline-block;
  background: #FCF0DB;
  color: var(--gold-deep);
  font-size: 12.5px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.plan-list { list-style: none; padding: 0; margin: 0 0 16px; }
.plan-list li { font-size: 14px; padding: 4px 0; display: flex; gap: 8px; }
.plan-list li::before { content: "✓"; color: var(--teal); font-weight: 900; }
.plan-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 10px; }
.plan-choice {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px;
}
.plan-choice strong { font-size: 14.5px; }
.plan-choice .plan-price { margin-bottom: 6px; }
.plan-choice .btn { margin-top: auto; }
.plan-price { font-size: 22px; font-weight: 800; color: var(--ink); margin-bottom: 12px; }
.plan-price .price-note { font-size: 12px; font-weight: 500; color: var(--ink-soft); }
.btn-whatsapp { background: #25D366; color: white; text-decoration: none; }
.btn-whatsapp:hover { box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.plan-steps { border: 2px solid var(--teal); }
.next-step { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.next-step:last-of-type { border-bottom: none; }
.next-step .step-num {
  width: 28px; height: 28px; flex-shrink: 0;
  border-radius: 50%;
  background: var(--teal); color: white;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Heebo', sans-serif; font-weight: 700; font-size: 14px;
}
.next-step.locked { opacity: .5; }
.next-step.locked .step-num { background: #B9C2C9; }
.step-body { flex: 1; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }
.step-body strong { color: var(--ink); display: block; font-size: 15px; }
.step-btn { margin-top: 10px; padding: 10px 18px; font-size: 14px; text-decoration: none; }
.step-missing { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--gold-deep); font-weight: 600; }
.step-done { display: inline-block; margin-top: 8px; font-size: 13px; color: var(--teal); font-weight: 600; }
.step-hint { font-size: 12.5px; color: var(--ink-soft); margin-top: 6px; }

/* multi select chips for evidence/gap */
.multi-hint { font-size: 12.5px; color: var(--ink-soft); margin-bottom: 10px; }

footer.legal {
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-soft);
  padding: 20px 20px 10px;
  line-height: 1.7;
}
footer.legal nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin-top: 8px; }
footer.legal a { color: var(--ink-soft); }
.biz-line { margin-top: 6px; }

/* נגישות: דילוג לתוכן ומיקוד גלוי בכל רכיב */
.skip-link { position: absolute; inset-inline-start: 8px; top: -60px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 1000; font-weight: 700; }
.skip-link:focus { top: 8px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px;
}

.privacy-notice { font-size: 12.5px; color: var(--ink-soft); line-height: 1.6; margin: 14px 0 4px; }
.terms-row { margin: 10px 0 12px; }
.terms-msg { color: #b00020; font-size: 13px; margin: -6px 0 10px; font-weight: 700; }

/* עמודי מדיניות */
.legal-page { max-width: 760px; margin: 0 auto; padding: 24px 20px 40px; line-height: 1.75; }
.legal-page h1 { font-size: 26px; margin: 8px 0 16px; }
.legal-page h2 { font-size: 19px; margin: 24px 0 8px; }
.legal-page ul { padding-inline-start: 22px; }
.legal-page .updated { color: var(--ink-soft); font-size: 13.5px; margin-top: 28px; }

@media (max-width: 420px) {
  .hero-card { padding: 26px 18px; }
  .hero-card h1 { font-size: 24px; }
}
