:root {
  --bg: #FBF7F1;
  --surface: #FFFFFF;
  --surface-soft: #F6EEE6;
  --text: #2A1F2D;
  --text-soft: #5E5060;
  --primary: #5B2A4E;       /* שזיף עמוק */
  --primary-hover: #4A1F3F;
  --rose: #C26B7F;          /* ורוד חם */
  --rose-soft: #F4E1E4;
  --rose-text: #9C4259;     /* ורוד לטקסט, ניגודיות מספקת */
  --gold: #B8924A;          /* זהב עדין */
  --gold-soft: #F3E9D6;
  --line: #E6DCCF;
  --focus: #1F6F8B;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 31, 45, .05), 0 8px 24px rgba(42, 31, 45, .06);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", "Assistant", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(1.75rem, 6vw, 2.4rem); font-weight: 800; color: var(--primary); }
h2 { font-size: clamp(1.3rem, 4.6vw, 1.65rem); font-weight: 700; color: var(--primary); }
h3 { font-size: 1.1rem; font-weight: 700; }
h1.as-h2 { font-size: clamp(1.3rem, 4.6vw, 1.65rem); font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 640px; margin: 0 auto; padding: 20px 16px 48px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
}
@media (min-width: 560px) { .card { padding: 32px; } }

.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--text-soft); font-size: .95rem; margin-bottom: 18px; }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover;  border: 2px solid var(--gold-soft); flex: none; }
.lead { font-size: 1.12rem; color: var(--text); }
.muted { color: var(--text-soft); }
.small { font-size: .9rem; }

.points { list-style: none; padding: 0; margin: 0 0 1.4em; }
.points li { position: relative; padding-inline-start: 28px; margin-bottom: 8px; }
.points li::before {
  content: ""; position: absolute; inset-inline-start: 4px; top: .7em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--rose);
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 12px 24px;
  border-radius: 14px; border: 2px solid var(--primary);
  background: var(--primary); color: #fff;
  font: inherit; font-weight: 700; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  transition: background-color .15s ease;
}
.btn:hover { background: var(--primary-hover); border-color: var(--primary-hover); }
.btn.secondary { background: transparent; color: var(--primary); }
.btn.secondary:hover { background: var(--rose-soft); }
.btn.block { width: 100%; }
.btn[aria-busy="true"] { opacity: .75; cursor: progress; }
.linkish { background: none; border: 0; padding: 8px 0; font: inherit; color: var(--primary); text-decoration: underline; cursor: pointer; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

/* Preview banner */
.preview-banner {
  background: #FFF4D6; border-bottom: 1px solid #E8D29A; color: #5A4310;
  padding: 10px 16px; font-size: .92rem; text-align: center;
}
.preview-banner ul { display: inline; padding: 0; margin: 0; list-style: none; }
.preview-banner li { display: inline; }
.preview-banner li + li::before { content: " · "; }
.placeholder {
  border: 2px dashed #E0C98B; background: #FFFBEF; color: #5A4310;
  border-radius: 14px; padding: 18px; text-align: center;
}

/* Quiz */
.progress-label { display: flex; justify-content: space-between; font-size: .95rem; color: var(--text-soft); margin-bottom: 6px; }
.progress { height: 8px; background: var(--surface-soft); border-radius: 99px; overflow: hidden; margin-bottom: 20px; }
.progress > span { display: block; height: 100%; background: var(--rose); border-radius: 99px; transition: width .25s ease; }
.instruction { background: var(--gold-soft); border-radius: 14px; padding: 14px 16px; font-size: .97rem; margin-bottom: 18px; }
.interlude { background: var(--rose-soft); border-radius: 14px; padding: 12px 16px; margin-bottom: 18px; font-size: .97rem; }

fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { padding: 0; width: 100%; }
.q-text { font-size: clamp(1.2rem, 4.8vw, 1.45rem); font-weight: 700; color: var(--text); line-height: 1.45; margin-bottom: 18px; }
.q-text:focus { outline: none; }
.q-text:focus-visible { outline: 3px solid var(--focus); }

.scale { display: grid; gap: 10px; }
.scale label {
  position: relative;
  display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 10px 14px;
  border: 2px solid var(--line); border-radius: 14px; background: var(--surface);
  cursor: pointer; font-size: 1.02rem;
  transition: border-color .15s ease, background-color .15s ease;
}
.scale label:hover { border-color: var(--rose); }
.scale input { position: absolute; inset-inline-start: 0; top: 0; opacity: 0; width: 1px; height: 1px; }
.scale .num {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700;
  background: var(--surface-soft); color: var(--primary);
}
.scale input:checked + label, .scale label:has(input:checked) { border-color: var(--primary); background: var(--rose-soft); }
.scale input:checked + label .num, .scale label:has(input:checked) .num { background: var(--primary); color: #fff; }
.scale label:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }

.nav { display: flex; gap: 12px; margin-top: 22px; }
.nav .btn { flex: 1; }
.nav .btn.secondary { flex: 0 0 auto; }

.error-box { background: #FCEBEC; border: 1px solid #E3A7AF; color: #7A1F2E; border-radius: 12px; padding: 12px 14px; margin: 14px 0; }
.error-box:empty { display: none; }

/* Form */
.field { margin-bottom: 18px; }
.field > label, .field > .label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { display: block; font-weight: 400; color: var(--text-soft); font-size: .9rem; }
input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%; font: inherit; color: var(--text);
  background: #fff; border: 2px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
input:focus-visible, textarea:focus-visible { border-color: var(--focus); }
input[aria-invalid="true"] { border-color: #C0485A; }
textarea { min-height: 110px; resize: vertical; }
.counter { text-align: left; font-size: .85rem; color: var(--text-soft); }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.choice input { margin-top: .45em; width: 18px; height: 18px; accent-color: var(--primary); flex: none; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.consent input { margin-top: .4em; width: 20px; height: 20px; accent-color: var(--primary); flex: none; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* Map */
.result-name { font-size: clamp(1.6rem, 6vw, 2.1rem); color: var(--primary); margin-bottom: .2em; }
.quote { font-size: 1.15rem; color: var(--rose-text); font-weight: 600; margin-bottom: 1em; }
.facet { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.facet h3 { color: var(--primary); margin-bottom: .3em; font-size: 1rem; }
.facet p { margin: 0; }
.step-box { background: var(--gold-soft); border-radius: 14px; padding: 16px; margin-top: 16px; }
.step-box h3 { color: #6A4E17; margin-bottom: .3em; }
.mini-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-top: 14px; background: var(--bg); }
.mini-card h3 { color: var(--primary); margin: 0; }

.meter-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.meter-row { display: grid; gap: 4px; }
.meter-head { display: flex; justify-content: space-between; gap: 10px; font-size: .97rem; }
.meter-head span:last-child { color: var(--text-soft); }
.dots { display: flex; gap: 6px; }
.dots i { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-soft); }
.dots i.on { background: var(--rose); }

.wish { background: var(--rose-soft); border-radius: 14px; padding: 16px; white-space: pre-line; overflow-wrap: anywhere; }

.video-frame { position: relative; aspect-ratio: 16 / 9; background: #1c1419; border-radius: 14px; overflow: hidden; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.session { border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 14px 0; background: var(--bg); }
.session-date { font-weight: 700; font-size: 1.1rem; }
.cal-menu { display: grid; gap: 8px; margin-top: 10px; }
.saved-note { color: #2D6A4F; font-weight: 600; }

.footer { text-align: center; font-size: .88rem; color: var(--text-soft); padding: 8px 16px 32px; }
.footer a { color: var(--text-soft); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

.screen { animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  body { background: #fff; font-size: 12pt; }
  .no-print, .preview-banner, .footer { display: none !important; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
}
