/* «הסטודיו» · הדף הציבורי (/b, /c/<id>, /privacy) · כיוון עיצובי «ליד הקיר» (DESIGN-DIRECTION.md, 17.10.2026).
   צבעים נמדדו מהפריימים שלה · Frank Ruhl Libre לכותרות, Assistant לגוף · הדגשה אחת · כרטיס = משטח + קו.
   360px ודפדפן אינסטגרם: יעדי-לחיצה ≥ 48px, בלי חלונות קופצים, בלי גלילה אופקית. כל שעה/תאריך/מספר בתוך <bdi>. */
:root {
  --bg: #F4F0EA; --card: #FBF9F6; --field: #FFFFFF; --ink: #221B17; --muted: #6A5E56; --line: #E2DAD0; --field-line: #948678; --pressed: #F1ECE4;
  --accent: #9C4F3C; --accent-strong: #8A4634; --accent-soft: #F4E5DC; --accent-ink: #FFFFFF;
  --sun: #D0B993; --night: #221B17; --on-night: #F4F0EA; --night-muted: #B3A79C;
  --ok: #4F5A26; --ok-soft: #E9ECDA; --warn: #80520F; --warn-soft: #F5EED9; --err: #A2413A; --err-soft: #F6E3E0;
  --font-display: "Frank Ruhl Libre", "Times New Roman", serif;
  --font-body: "Assistant", -apple-system, BlinkMacSystemFont, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  --fs-display: 32px; --lh-display: 38px; --fs-h1: 26px; --lh-h1: 32px; --fs-h2: 21px; --lh-h2: 28px; --fs-time: 24px; --lh-time: 28px;
  --fs-body: 17px; --lh-body: 26px; --fs-btn: 18px; --fs-small: 15px; --lh-small: 22px; --fs-micro: 13px; --lh-micro: 18px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --gutter: 16px;
  --r: 20px; --r-media: 24px; --r-field: 14px; --r-pill: 999px;
  --btn-h: 56px; --btn-h-sm: 44px; --field-h: 56px; --badge-h: 28px; --tap: 48px; --seat-dot: 8px;
  --shadow-sheet: 0 -8px 24px rgb(34 27 23 / .08); --focus-ring: 3px solid #221B17; --ease: cubic-bezier(.2, .7, .2, 1); --dur: 180ms;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fs-body)/var(--lh-body) var(--font-body); overflow-x: hidden; min-height: 100vh; }
[hidden] { display: none !important; }
a { color: var(--accent); }
bdi { unicode-bidi: isolate; }
.wrap { width: 100%; max-width: 520px; margin: 0 auto; padding: 0 var(--gutter); }
main.wrap { padding-top: env(safe-area-inset-top); padding-bottom: var(--s3); min-height: 70vh; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; }
p { margin: 0 0 var(--s3); }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: var(--focus-ring); outline-offset: 2px; }

/* ── המסך הראשון ── */
.namebar { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 10px; min-height: var(--s7); padding: var(--s3) 0; }
.namebar b { font: 700 18px/24px var(--font-display); }
.namebar span { font-size: var(--fs-small); color: var(--muted); }
.media { position: relative; width: 100%; aspect-ratio: 4 / 5; max-height: 30svh; border-radius: var(--r-media); overflow: hidden; background: var(--card); border: 1px solid var(--line); margin: 0; }
.media video, .media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media.small { max-height: 22svh; }
.display { font: 700 var(--fs-display)/var(--lh-display) var(--font-display); margin: var(--s5) 0 var(--s2); }
.display.tight { margin-top: var(--s2); }
.intro { color: var(--muted); margin: 0 0 var(--s5); }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); margin: 0 0 var(--s2); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin: 0 0 var(--s3); }
.section { margin-top: var(--s7); }
.lead { color: var(--muted); }

/* ── כרטיס שיעור (4.1) ── */
.list { display: grid; gap: var(--s3); }
.cls { display: block; min-height: 132px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); color: inherit; text-decoration: none; -webkit-tap-highlight-color: transparent; transition: background var(--dur) var(--ease); }
.cls:active { background: var(--pressed); }
.cls-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.cls-day { font-size: var(--fs-small); font-weight: 600; color: var(--muted); }
.cls-time { font: 700 var(--fs-time)/var(--lh-time) var(--font-display); font-variant-numeric: tabular-nums; }
.cls-title { font: 700 var(--fs-h2)/var(--lh-h2) var(--font-display); margin-top: var(--s1); overflow-wrap: anywhere; }
.cls-meta { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin-top: 2px; overflow-wrap: anywhere; }
.seats { display: flex; align-items: center; flex-wrap: wrap; gap: var(--s2) var(--s3); margin-top: var(--s3); }
.dots { display: inline-flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.dot { width: var(--seat-dot); height: var(--seat-dot); border-radius: 50%; background: var(--ink); }
.dot.free { background: transparent; box-shadow: inset 0 0 0 1.5px var(--field-line); }
.badge { display: inline-flex; align-items: center; gap: 6px; min-height: var(--badge-h); padding: 0 12px; border-radius: var(--r-pill); font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.low { background: var(--accent-soft); color: var(--accent-strong); }
.badge.full { background: var(--card); border: 1px solid var(--line); color: var(--ink); }
.badge.soon { background: var(--warn-soft); color: var(--warn); }
.cls-foot { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin-top: var(--s3); }
.price { font-size: var(--fs-small); color: var(--ink); font-weight: 600; }
.price span { color: var(--muted); font-weight: 400; }
.hint { display: inline-flex; align-items: center; min-height: var(--btn-h-sm); padding: 0 18px; border-radius: var(--r-pill); border: 1.5px solid var(--field-line); background: var(--card); font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.cls.next .btn { margin-top: var(--s4); }
.empty { text-align: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s5) var(--s4); color: var(--muted); }
.empty .btn { margin-top: var(--s3); }

/* ── ניסיון · שלבים · עליי · איפה ── */
.trial { background: var(--warn-soft); border-radius: var(--r); padding: var(--s4); margin-top: var(--s6); }
.trial b { font: 700 var(--fs-h2)/var(--lh-h2) var(--font-display); display: block; }
.trial p { margin: var(--s1) 0 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.night { background: var(--night); color: var(--on-night); border-radius: var(--r); padding: var(--s5) var(--s4); margin-top: var(--s7); }
.night h2 { color: var(--on-night); font-size: var(--fs-h1); line-height: var(--lh-h1); margin-bottom: var(--s3); }
.step { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); align-items: baseline; padding: var(--s3) 0; border-top: 1px solid rgb(244 240 234 / .14); }
.step:first-of-type { border-top: 0; }
.step b { font: 700 40px/1 var(--font-display); color: var(--sun); }
.step p { margin: 0; color: var(--on-night); }
.about { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s4); align-items: start; }
.avatar { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--card); border: 1px solid var(--line); display: block; }
.mono-av { display: flex; align-items: center; justify-content: center; font: 700 30px/1 var(--font-display); color: var(--accent); }
.about p { margin: 0 0 var(--s2); }
.where { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); }
.where b { display: block; }
.where .btn { margin-top: var(--s3); }

/* ── כפתורים (4.3) ── */
.btn { display: flex; align-items: center; justify-content: center; gap: var(--s2); width: 100%; min-height: var(--btn-h); padding: 0 var(--s5); border-radius: var(--r-pill); border: 1.5px solid transparent;
  font: 700 var(--fs-btn)/24px var(--font-body); text-decoration: none; cursor: pointer; text-align: center; -webkit-tap-highlight-color: transparent; transition: background var(--dur) var(--ease); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-primary:active { background: var(--accent-strong); transform: translateY(1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--field-line); }
.btn-ghost:active { background: var(--pressed); }
.btn:disabled { background: var(--line); color: var(--muted); border-color: var(--line); cursor: default; transform: none; }
.btns { display: grid; gap: var(--s3); margin-top: var(--s5); }
.link3 { display: inline-flex; align-items: center; min-height: var(--tap); font: 600 16px/22px var(--font-body); color: var(--muted); text-decoration: underline; background: none; border: 0; padding: 0; cursor: pointer; }
.back { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); text-decoration: none; font: 600 var(--fs-small)/1 var(--font-body); background: none; border: 0; cursor: pointer; padding: 0; margin: var(--s2) 0; }

/* ── טופס השריון (4.4) ── */
.summary { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); margin: 0 0 var(--s2); }
.note { background: var(--warn-soft); color: var(--ink); border-radius: var(--r-field); padding: 10px 14px; font-size: var(--fs-small); line-height: var(--lh-small); margin: var(--s3) 0 0; }
.label { display: block; font: 600 var(--fs-small)/var(--lh-small) var(--font-body); color: var(--ink); margin: var(--s4) 0 6px; }
.input { width: 100%; min-height: var(--field-h); padding: 0 var(--s4); border: 1.5px solid var(--field-line); border-radius: var(--r-field); background: var(--field); color: var(--ink); font: 400 18px/24px var(--font-body); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 0 0 5px var(--accent-soft); }
.input.bad { border-color: var(--err); }
.tel { direction: ltr; text-align: right; }
.tel::placeholder { color: #A0948A; }
.opts { display: grid; gap: var(--s2); margin-top: var(--s4); }
.opt { position: relative; display: flex; align-items: center; gap: var(--s3); min-height: 56px; padding: 10px 14px; background: var(--card); border: 1.5px solid var(--line); border-radius: var(--r-field); cursor: pointer; transition: border-color var(--dur) var(--ease); }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.box { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 1.5px solid var(--field-line); background: var(--field); position: relative; }
.opt.on { border-color: var(--accent); }
.opt input:checked + .box { background: var(--accent); border-color: var(--accent); }
.opt input:checked + .box::after { content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }
.opt input:focus-visible + .box { outline: var(--focus-ring); outline-offset: 2px; }
.opt-text { flex: 1; min-width: 0; font-weight: 600; }
.opt-side { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; }
.opt.on .opt-side { color: var(--accent-strong); font-weight: 600; }
.opt.consent { align-items: flex-start; background: transparent; border-color: transparent; padding: 12px 0 4px; }
.opt.consent .opt-text { font-weight: 400; font-size: var(--fs-small); line-height: var(--lh-small); }
.opt.bad .box { border-color: var(--err); }
.err { color: var(--err); font-size: var(--fs-small); margin: var(--s2) 0 0; }
.ts { margin-top: var(--s2); }
.hp { position: absolute; top: 0; right: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.legal { font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--muted); margin: var(--s4) 0 0; }
.legal a { color: var(--muted); }
.total { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--fs-small); color: var(--muted); margin-bottom: var(--s2); }
.total b { color: var(--ink); font: 700 20px/1 var(--font-display); }
.sticky { position: sticky; bottom: 0; z-index: 5; margin: var(--s4) calc(-1 * var(--gutter)) 0; padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--shadow-sheet); }

/* ── כפתור דביק בדף הבית ── */
.dock { position: fixed; inset: auto 0 0 0; z-index: 10; display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--gutter) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--card); border-top: 1px solid var(--line); box-shadow: var(--shadow-sheet); transform: translateY(110%); transition: transform var(--dur) var(--ease); }
.dock.on { transform: none; }
.dock-text { flex: 1; min-width: 0; font-size: var(--fs-small); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dock .btn { width: auto; min-height: var(--tap); padding: 0 22px; flex: none; }

/* ── אישור (4.5) ── */
.done { padding-top: var(--s5); }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--ok-soft); color: var(--ok); display: flex; align-items: center; justify-content: center; margin-bottom: var(--s4); }
.done-mark svg { width: 28px; height: 28px; }
.done-mark.wait { background: var(--accent-soft); color: var(--accent-strong); font: 700 26px/1 var(--font-display); }
.done .display { margin-top: 0; }
.details { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s1) var(--s4); margin-top: var(--s4); }
.drow { display: grid; grid-template-columns: 60px minmax(0, 1fr); gap: var(--s3); padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: var(--lh-small); }
.drow:first-child { border-top: 0; }
.drow > span:first-child { color: var(--muted); }
.voice { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s5); }
.voice .avatar { width: 48px; height: 48px; flex: none; }
.voice .mono-av { font-size: 22px; }
.voice p { margin: 0; font-size: var(--fs-small); line-height: var(--lh-small); }
.keep { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); }
.keep .row2 { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }

/* ── שלד-טעינה ── */
.skel > div { background: var(--line); opacity: .6; animation: pulse 1.4s ease-in-out infinite; }
.skel-a { height: 24px; width: 50%; margin: 12px 0 12px; border-radius: 8px; }
.skel-b { aspect-ratio: 4 / 5; max-height: 30svh; border-radius: var(--r-media); }
.skel-c { height: 132px; margin-top: 24px; border-radius: var(--r); }
@keyframes pulse { 50% { opacity: .3; } }

.foot { padding: var(--s6) var(--gutter) calc(96px + env(safe-area-inset-bottom)); display: flex; justify-content: center; flex-wrap: wrap; gap: 0 var(--s5); }
.foot a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--muted); font-size: var(--fs-small); }

/* ── מדיניות ── */
.prose { padding-top: var(--s3); }
.prose h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); margin: var(--s5) 0 6px; }
.prose p { font-size: 16px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.where.mine { display: block; margin-top: var(--s3); color: inherit; text-decoration: none; }
.where.mine b { color: var(--ok); }

/* ── מזוהה: «היי שירה 🤍 לשריין לך את שישי 12:30?» (SPEC-STUDENT א׳) ── */
.hello { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.hello-hi { font: 700 var(--fs-h2)/var(--lh-h2) var(--font-display); margin: 0; }
.hello-q { font-size: var(--fs-body); font-weight: 600; margin: 0; }
.hello-meta { font-size: var(--fs-small); line-height: var(--lh-small); color: var(--muted); margin: 0; }
.hello .btn { margin-top: var(--s2); }
.hello .link3, .opts .link3 { justify-self: start; }
.link3.small { font-size: var(--fs-small); min-height: 44px; }
.ok-mark { color: var(--ok); font-weight: 700; }
.cls.mine { min-height: 0; }
.done-inline { display: grid; gap: var(--s3); margin-top: var(--s4); }
/* ההסכמה — משפט מעל הכפתור (לא תיבת-סימון). */
.consent-line { font-size: var(--fs-micro); line-height: var(--lh-micro); color: var(--muted); margin: 0 0 var(--s2); }
.consent-line a { color: var(--muted); }
.done-mark.off { background: var(--err-soft); color: var(--err); font: 700 30px/1 var(--font-body); }
.fixed { display: grid; gap: var(--s2); margin-top: var(--s4); }
.fixed-out { font-size: var(--fs-small); line-height: var(--lh-small); margin: 0; }
.btns .row2 { display: flex; flex-wrap: wrap; gap: 0 var(--s4); }
