/* Builder studio PROTOTYPE · v2 + v2.1 (approved in Figma 09.11: https://www.figma.com/design/WYYuP8xvh6tQLWFm0p5lME)
   Tokens = "Robit · Core tokens", Dark mode. All text >= 4.5:1 (lowest 5.9:1). Desktop: UI 16px, tags/helpers >= 14px.
   Mobile (<900px): UI text >= 16px. Motion = transform/opacity only; prefers-reduced-motion removes movement, keeps meaning. */
:root {
  --paper: #0B0B0F; --card: #15151C; --sunk: #1E1E27; --stage: #101016; --tint: #2A190D;
  --line: #2B2B36; --strong: #70707F;
  --ink: #F5F5F7; --ink2: #C8C8D2; --muted: #A6A6B4; --tint-ink: #FFD2AE; --acc-text: #FF8A3D;
  --acc: #FF7A1A; --acc-ink: #0D0D12; --gold: #FFC24D; --black: #0D0D12; --black2: #1C1C24;
  --ok: #3DDC97; --ok-dk: #6EE0AD; --ok-bg: #123A2B; --bad: #FF6B5E; --bad-bg: #3A1414; --warn: #FFD66B; --warn-bg: #3A2E0A;
  --r: 22px; --r-sm: 14px;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 12px 30px rgba(0,0,0,.35);
  --ui: "Heebo", "Assistant", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--ui); font-size: 16px; color: var(--ink); background: var(--paper); line-height: 1.5; min-height: 100vh; overflow-x: hidden; }
button, input, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 10px; }
[hidden] { display: none !important; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--acc); color: var(--acc-ink); padding: 10px 14px; border-radius: 10px; z-index: 90; font-weight: 800; }
.skip:focus { top: 8px; }
.robot { border-radius: 50%; filter: drop-shadow(0 0 10px rgba(255, 122, 26, .5)); }
.robot-lg { width: 110px; height: 110px; } .robot-xl { width: 180px; height: 180px; filter: drop-shadow(0 0 40px rgba(255, 122, 26, .55)); }

/* ---------- buttons, chips ---------- */
.pill { min-height: 48px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--strong); background: transparent; color: var(--ink); cursor: pointer; font-weight: 700; font-size: 16px;
  transition: transform .18s cubic-bezier(.22,1,.36,1), background .18s, border-color .18s, box-shadow .2s; }
.pill:hover { border-color: var(--ink2); } .pill:active { transform: scale(.97); }
.pill.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 800; }
.pill.primary:hover { background: #FF8F3D; }
.pill.primary.is-ready { box-shadow: 0 0 0 4px rgba(255,122,26,.2), 0 8px 24px rgba(255,122,26,.45); }
.pill.sm { min-height: 44px; padding: 8px 16px; }
.pill.danger { color: var(--bad); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-opt { position: relative; }
.chip-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-opt span { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--strong); background: var(--sunk); color: var(--ink); font-weight: 500;
  transition: background .18s, border-color .18s, transform .18s cubic-bezier(.22,1,.36,1), box-shadow .2s; }
.chip-opt input:checked + span { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); font-weight: 800; box-shadow: 0 6px 18px rgba(255,122,26,.45); }
.chip-opt input:checked + span::after { content: "✓"; font-weight: 900; }
.chip-opt input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.chip-opt input:active + span { transform: scale(.96); }

/* ---------- info "i" + popover ---------- */
.info { width: 32px; height: 32px; min-width: 32px; border-radius: 50%; border: 1.5px solid var(--strong); background: var(--sunk); color: var(--ink); font-weight: 900; font-size: 15px; cursor: pointer; display: inline-grid; place-items: center; position: relative; padding: 0; }
.info::before { content: ""; position: absolute; inset: -6px; }
.info[aria-expanded="true"] { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.popover { background: var(--card); border: 1.5px solid var(--acc); border-radius: 16px; padding: 14px 16px; box-shadow: 0 14px 36px rgba(0,0,0,.5); width: min(340px, 86vw); font-size: 15px; color: var(--ink2); z-index: 40; }
.popover b { display: block; color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.popover p { margin: 0; } .popover ul { margin: 0; padding-inline-start: 18px; } .popover li + li { margin-top: 4px; }
.qhead { display: flex; align-items: center; gap: 12px; position: relative; }
.qhead .popover { position: absolute; top: calc(100% + 10px); inset-inline-start: 0; }

/* ---------- welcome / finish ---------- */
.welcome, .finish { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; background: radial-gradient(60% 55% at 50% 30%, rgba(255,122,26,.28), transparent 70%), var(--paper); overflow: auto; padding: 24px 16px; }
.welcome-in, .finish-in { text-align: center; display: grid; justify-items: center; gap: 16px; max-width: 760px; position: relative; z-index: 2; }
.welcome h1, .finish h1 { font-size: clamp(34px, 6vw, 64px); line-height: 1.08; margin: 0; font-weight: 800; letter-spacing: -.02em; }
.welcome p, .finish p { margin: 0; color: var(--ink2); font-size: clamp(17px, 2vw, 22px); }
.welcome-steps, .finish-next { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; padding: 0; margin: 4px 0; }
.welcome-steps li, .finish-next li { background: var(--card); border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 700; }
.welcome-cta, .finish-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.welcome p.welcome-note, .finish p.finish-note { font-size: 15px; color: var(--muted); }
.finish-thumb { width: min(560px, 88vw); height: 230px; border-radius: 18px; overflow: hidden; border: 3px solid var(--acc); box-shadow: 0 18px 50px rgba(255,122,26,.35); position: relative; background: #fff; }
.finish-thumb .pv { width: 1280px; transform-origin: top right; position: absolute; top: 0; right: 0; }
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 1; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 6px; border-radius: 2px; }

/* ---------- app chrome ---------- */
.app { padding-bottom: 110px; }
.topbar { position: sticky; top: 8px; z-index: 30; margin: 10px 16px 0; display: flex; align-items: center; gap: 12px; background: var(--black); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px 6px 16px; box-shadow: var(--shadow); }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.brand b { font-size: 20px; font-weight: 800; }
.brand-logo { width: 40px; height: 40px; border-radius: 50%; filter: drop-shadow(0 0 8px rgba(255,122,26,.55)); }
.brand-sub { color: #B9B9C6; font-size: 16px; }
.status { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font-size: 14px; min-width: 0; }
.status .chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: var(--black2); white-space: nowrap; font-weight: 600; }
.status .chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.status .s-saved { color: var(--ok-dk); } .status .s-draft { color: var(--gold); } .status .s-fail { color: #FF8A80; background: var(--bad-bg); }
.status .when { color: #B9B9C6; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo { margin: 10px 16px 0; padding: 14px 16px; border: 2px dashed var(--strong); border-radius: var(--r); background: var(--card); display: grid; gap: 8px; }
.demo-h { margin: 0; font-weight: 800; } .demo-h span { font-weight: 400; color: var(--muted); font-size: 14px; }
.tgl { display: flex; gap: 10px; align-items: center; min-height: 44px; cursor: pointer; }
.tgl input { width: 20px; height: 20px; accent-color: var(--acc); }
.tgl-set { border: 0; padding: 0; margin: 0; } .tgl-set legend { font-weight: 700; padding: 0; }
.demo-row { display: flex; flex-wrap: wrap; gap: 8px; }
.json { white-space: pre-wrap; font-size: 13px; background: var(--paper); border: 1px solid var(--line); padding: 12px; border-radius: 12px; max-height: 280px; overflow: auto; margin: 0; }

.rail { display: flex; gap: 10px; margin: 12px 16px 0; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.rail::-webkit-scrollbar { display: none; }
.st { flex: 1 0 auto; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; font-size: 16px; }
.st .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 800; background: var(--sunk); color: var(--muted); flex: none; transition: transform .4s cubic-bezier(.34,1.56,.64,1); }
.st b { font-size: 16px; }
.st[aria-current="step"] { border: 2px solid var(--acc); background: var(--card); }
.st[aria-current="step"] .n { background: var(--acc); color: var(--acc-ink); }
.st.done .n { color: var(--gold); } .st.done .n span { display: none; } .st.done .n::after { content: "✓"; }
.st.just-done .n { transform: scale(1.18); }
.st[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.progress { position: relative; height: 40px; margin: 4px 16px 0; }
.progress .track { position: absolute; inset-inline: 0; top: 17px; height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.progress .track i { position: absolute; inset: 0; border-radius: 99px; background: linear-gradient(270deg, var(--acc), var(--gold)); transform-origin: right; transform: scaleX(0); transition: transform .55s cubic-bezier(.34,1.56,.64,1); }
.progress .robot-ride { position: absolute; top: 2px; inset-inline-start: 0; width: 36px; height: 36px; transition: transform .55s cubic-bezier(.34,1.56,.64,1); }

.studio { display: grid; gap: 18px; margin: 12px 16px; }
.studio.solo { display: block; max-width: 1240px; margin: 12px auto; padding-inline: 16px; }
.studio.solo .stage { display: none !important; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 22px 18px; min-width: 0; }
.studio.solo .panel { background: transparent; border: 0; padding: 8px 0; }
.panel:focus { outline: none; }
.stage { display: none; }
@media (min-width: 900px) {
  .studio { grid-template-columns: minmax(420px, 480px) 1fr; align-items: start; margin-inline: 28px; }
  .stage { display: block; position: sticky; top: 84px; min-width: 0; order: -1; }
  .panel { padding: 24px 26px 22px; }
  .rail, .topbar, .progress, .demo { margin-inline: 28px; }
  .mini { display: none !important; }
}
.kicker { font-size: 15px; color: var(--muted); margin: 0 0 6px; }
.kicker.acc { color: var(--acc-text); }
h1.q { font-size: clamp(26px, 4vw, 32px); line-height: 1.12; margin: 0; font-weight: 800; letter-spacing: -.01em; }
.studio.solo h1.q { font-size: clamp(32px, 5vw, 56px); }
.sub { margin: 10px 0 18px; color: var(--ink2); font-size: 17px; }
.grp { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.grp > legend, .lbl { font-weight: 700; margin-bottom: 8px; padding: 0; display: block; font-size: 16px; }
.hint { font-size: 14px; color: var(--muted); margin: 6px 0 0; }
.field-err { color: var(--bad); font-size: 15px; margin: 6px 0 0; font-weight: 700; }
.field-err:empty { display: none; }
.search, .inp { width: 100%; min-height: 50px; border: 1px solid var(--strong); border-radius: var(--r-sm); padding: 12px 14px; background: var(--sunk); color: var(--ink); font-size: 16px; }
textarea.inp { min-height: 96px; resize: vertical; }
.story-ta { font-size: 19px; min-height: 120px; border: 2px solid var(--acc); }
.inp::placeholder, .search::placeholder { color: var(--muted); }
.inp[aria-invalid="true"] { border: 2px solid var(--bad); background: var(--bad-bg); }
.inp-row { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.count { font-size: 14px; color: var(--muted); } .count.over { color: var(--bad); font-weight: 800; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--sunk); border-radius: var(--r-sm); padding: 8px 12px; margin: 0 0 14px; }
.tagin { display: flex; gap: 8px; } .tagin .inp { flex: 1; }
.tags-out { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tags-out span { display: inline-flex; align-items: center; gap: 4px; background: var(--sunk); border: 1px solid var(--strong); border-radius: 999px; padding: 4px 6px 4px 14px; }
.tags-out button { min-width: 36px; min-height: 36px; border: 0; background: transparent; cursor: pointer; border-radius: 50%; font-size: 18px; color: var(--muted); }
.gate { border: 1px solid var(--line); background: var(--paper); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.gate .qhead p { margin: 0; font-weight: 700; flex: 1; }
.gate .chips { margin-top: 10px; }
.gate .eff { font-size: 14px; color: var(--tint-ink); margin: 8px 0 0; }
.more { width: 100%; }

/* story (v2.1) */
.voice { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; background: var(--tint); border-radius: 22px; padding: 18px 20px; margin-bottom: 14px; }
.voice h2 { margin: 0; font-size: clamp(20px, 2.6vw, 26px); font-weight: 800; }
.voice p { margin: 2px 0 0; color: var(--tint-ink); }
.mic { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--acc); color: var(--acc-ink); cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 24px rgba(255,122,26,.55); }
.mic svg { width: 40px; height: 40px; }
.mic.stop { width: 84px; height: 84px; box-shadow: 0 0 0 8px rgba(255,107,94,.25), 0 0 34px rgba(255,122,26,.75); }
.mic.stop i { width: 24px; height: 24px; background: var(--acc-ink); border-radius: 6px; }
.lang { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 3px; }
.lang button { min-height: 40px; padding: 4px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--card); color: var(--ink); }
.recbox { display: grid; gap: 14px; justify-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px; margin-bottom: 14px; }
.recbox h2 { margin: 0; font-size: 26px; }
.recbox .timer { color: #FF8A80; background: var(--bad-bg); border-radius: 999px; padding: 4px 12px; font-weight: 800; }
.wave { display: flex; gap: 4px; align-items: center; height: 90px; }
.wave i { width: 5px; border-radius: 3px; background: var(--acc); height: 70%; transform: scaleY(.25); }
.wave i:nth-child(3n) { background: var(--gold); }
.demo-tag { display: inline-block; font-size: 14px; font-weight: 700; color: var(--muted); background: var(--sunk); border-radius: 999px; padding: 4px 12px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 700; margin: 6px 0 12px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 16px; color: var(--muted); }
.examples button { min-height: 44px; border: 1px solid var(--line); background: var(--sunk); color: var(--ink2); border-radius: 999px; padding: 6px 14px; cursor: pointer; font-size: 15px; }
.urlrow { display: grid; gap: 6px; margin-bottom: 8px; }
.brief-quote { display: flex; gap: 12px; align-items: center; justify-content: space-between; background: var(--tint); color: var(--tint-ink); border-radius: 16px; padding: 12px 16px; margin: 0 0 16px; }
.brief-quote q { font-size: 17px; }
.brief { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 900px) { .brief { grid-template-columns: 1fr 1fr; } }
.bcard { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 16px 18px; display: grid; gap: 10px; align-content: start; }
.bcard.editing { border-color: var(--acc); }
.bcard header { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.bcard h2 { margin: 0; font-size: 18px; font-weight: 800; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.src { font-size: 14px; font-weight: 700; border-radius: 999px; padding: 2px 10px; }
.src.sentence { background: var(--acc); color: var(--acc-ink); } .src.site { background: var(--ok); color: var(--acc-ink); } .src.pack { background: var(--sunk); color: var(--ink); border: 1px solid var(--strong); }
.bcard ul { margin: 0; padding-inline-start: 18px; color: var(--ink2); }
.bcard p { margin: 0; color: var(--ink2); }
.bchips { display: flex; flex-wrap: wrap; gap: 8px; } .bchips span { background: var(--sunk); border-radius: 999px; padding: 4px 12px; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 14px; margin: 14px 0; }
.legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-inline-end: 6px; vertical-align: middle; }
.legend .l-s::before { background: var(--acc); } .legend .l-site::before { background: var(--ok); } .legend .l-p::before { background: var(--strong); }
.decision { display: flex; gap: 12px; justify-content: space-between; flex-wrap: wrap; margin-top: 8px; }

/* style cards */
.cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 420px) { .cards { grid-template-columns: 1fr 1fr; } }
.card-opt { position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--card); cursor: pointer; transition: border-color .18s, box-shadow .2s, transform .2s cubic-bezier(.22,1,.36,1); }
.card-opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 2; }
.card-opt img { aspect-ratio: 16/9; height: auto; width: 100%; object-fit: cover; background: #222; }
.card-opt .cb { padding: 10px 12px 12px; display: grid; gap: 6px; }
.card-opt .cb b { font-size: 16px; }
.card-opt .tags { display: flex; gap: 4px; flex-wrap: wrap; }
.card-opt .tags i { font-style: normal; font-size: 14px; background: var(--sunk); border-radius: 999px; padding: 1px 8px; }
.card-opt .tags i.rec { background: var(--gold); color: var(--acc-ink); font-weight: 700; }
.card-opt:has(input:checked) { border: 3px solid var(--acc); box-shadow: 0 8px 22px rgba(255,122,26,.45); }
.card-opt:has(input:checked)::after { content: "נבחר ✓"; position: absolute; top: 8px; inset-inline-start: 8px; background: var(--acc); color: var(--acc-ink); font-size: 14px; font-weight: 800; padding: 2px 10px; border-radius: 999px; }
.card-opt:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (hover: hover) { .card-opt:hover { transform: translateY(-2px); } }

/* assets */
.drop { border: 2px dashed var(--strong); border-radius: var(--r-sm); padding: 14px; display: grid; gap: 8px; justify-items: start; background: var(--sunk); margin-top: 10px; }
.drop.has { border-style: solid; border-color: var(--ok); }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; } .thumbs figure { margin: 0; width: 90px; position: relative; }
.thumbs img { width: 90px; height: 64px; object-fit: cover; border-radius: 8px; background: #fff; }
.thumbs figcaption { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.thumbs button { position: absolute; top: 2px; inset-inline-end: 2px; min-width: 36px; min-height: 36px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; cursor: pointer; }
.notice { font-size: 15px; border-radius: var(--r-sm); padding: 10px 12px; margin: 0 0 14px; }
.notice.warn { background: var(--bad-bg); color: #FFC7C0; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.drop:focus-within label.pill { outline: 3px solid var(--gold); outline-offset: 2px; }

/* review + build (v2.1) */
.sum-row { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.sum-row dt { font-size: 14px; color: var(--muted); } .sum-row dd { margin: 0; font-weight: 700; grid-column: 1; overflow-wrap: anywhere; }
.sum-row button { grid-row: 1 / span 2; grid-column: 2; }
.ladder { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 14px 0; }
.ladder li { border-radius: 999px; padding: 4px 12px; background: var(--sunk); color: var(--muted); font-size: 14px; font-weight: 600; }
.ladder li.on { background: var(--ok-bg); color: var(--ok-dk); } .ladder li.here { background: var(--acc); color: var(--acc-ink); font-weight: 800; }
.build { display: grid; gap: 28px; }
@media (min-width: 900px) { .build { grid-template-columns: 1.25fr 1fr; align-items: start; } .build-site-wrap { order: 2; } }
.build-head { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.draft-tag { display: inline-block; background: var(--gold); color: var(--acc-ink); font-weight: 800; border-radius: 999px; padding: 6px 14px; font-size: 15px; margin-bottom: 8px; }
.ring { position: relative; width: 220px; height: 220px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .bg { stroke: var(--line); } .ring .fg { transition: stroke-dashoffset .5s cubic-bezier(.22,1,.36,1); }
.ring img { position: absolute; width: 110px; height: 110px; inset: 0; margin: auto; top: -18px; }
.ring .pct { position: absolute; bottom: 30px; inset-inline: 0; text-align: center; font-size: 28px; font-weight: 800; }
.timeline { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 4px; }
.timeline li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: start; padding: 10px 0; }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: var(--sunk); color: var(--muted); }
.timeline .done .dot { background: var(--ok); color: var(--acc-ink); } .timeline .now .dot { background: var(--acc); color: var(--acc-ink); box-shadow: 0 0 14px rgba(255,122,26,.55); }
.timeline b { display: block; font-size: 18px; } .timeline small { color: var(--ink2); font-size: 15px; }
.timeline .next b { color: var(--ink2); } .timeline .next small { color: var(--muted); }
.state { border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 800; background: var(--sunk); color: var(--muted); white-space: nowrap; }
.done .state { background: var(--ok-bg); color: var(--ok-dk); } .now .state { background: var(--acc); color: var(--acc-ink); }
.build-site { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #fff; position: relative; height: 640px; }
.build-site .pv { width: 1280px; transform-origin: top right; position: absolute; top: 0; right: 0; }
.build-site .pv > * { transition: opacity .4s; }
.build-site .pv > .pending { opacity: .22; }
.build-note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }

/* stage */
.stage-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; position: relative; }
.stage-bar .popover { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; }
.stamp { font-size: 14px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-inline-start: auto; }
.stamp .sim { background: var(--acc); color: var(--acc-ink); border-radius: 999px; padding: 2px 10px; font-weight: 800; }
.stamp .built { background: var(--ok-bg); color: var(--ok-dk); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.stamp .old { background: var(--warn-bg); color: var(--warn); border-radius: 999px; padding: 2px 10px; font-weight: 700; }
.seg { display: inline-flex; background: var(--sunk); border-radius: 999px; padding: 3px; }
.seg button { min-height: 40px; padding: 4px 16px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); cursor: pointer; font-weight: 700; }
.seg button[aria-checked="true"] { background: var(--card); color: var(--ink); }
.frame-wrap { position: relative; border-radius: 24px; background: var(--stage); border: 1px solid var(--line); padding: 14px; min-height: 440px; overflow: hidden; }
.frame { margin: 0 auto; background: #fff; border-radius: 12px; overflow: hidden; position: relative; }
.frame.phone { border-radius: 30px; border: 8px solid #1B1A22; }
.frame-inner { transform-origin: top right; }
.stale { position: absolute; top: 24px; inset-inline: 0; margin: auto; width: max-content; max-width: 90%; background: var(--warn-bg); color: var(--warn); font-weight: 700; font-size: 15px; padding: 8px 14px; border-radius: 999px; display: flex; gap: 8px; align-items: center; z-index: 3; }
.frame-wrap.is-stale .frame { opacity: .6; }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.building { position: absolute; top: 38%; inset-inline: 0; margin: auto; width: max-content; display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--acc); color: var(--ink); font-weight: 800; padding: 8px 18px 8px 8px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.5); z-index: 4; }
.building img { width: 44px; height: 44px; }
.empty { position: absolute; inset: 14px; display: grid; place-content: center; justify-items: center; text-align: center; color: var(--muted); gap: 6px; }
.empty-h { font-size: 24px; font-weight: 800; color: var(--ink); margin: 6px 0 0; }
.empty p { margin: 0; }
.changed { display: inline-flex; align-items: center; gap: 10px; margin: 12px 0 0; background: var(--tint); color: var(--tint-ink); font-weight: 700; border-radius: 999px; padding: 8px 14px 8px 8px; }
.changed img { width: 24px; height: 24px; }

/* mobile strip */
.mini { margin: 10px 16px 0; background: var(--card); border: 2px solid var(--acc); border-radius: 20px; padding: 10px; position: sticky; top: 74px; z-index: 20; }
.mini-head { display: flex; align-items: center; gap: 10px; }
.mini-thumb { width: 56px; height: 40px; border-radius: 8px; background: #333 center/cover; flex: none; }
.mini-txt { display: grid; flex: 1; min-width: 0; line-height: 1.3; } .mini-txt b { font-size: 16px; }
.mini-txt span { font-size: 16px; color: var(--acc-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mini-view { margin-top: 10px; height: 340px; overflow: auto; border-radius: 14px; background: #fff; position: relative; }
.mini-view .pv { width: 390px; transform-origin: top right; }

/* bottom bar */
.bar { position: fixed; bottom: 0; inset-inline: 0; z-index: 25; display: flex; align-items: center; gap: 10px; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); background: rgba(11,11,15,.95); border-top: 1px solid var(--line); }
.bar #next { margin-inline-start: auto; min-width: 128px; }
.bar-err { color: var(--bad); font-size: 15px; font-weight: 700; flex: 1; min-width: 0; }
.bar-err:empty { display: none; }
@media (min-width: 900px) { .bar { right: 28px; left: auto; bottom: 14px; width: 480px; border: 1px solid var(--line); border-radius: 999px; padding: 10px 12px; }
  .app.solo-mode .bar { right: 50%; transform: translateX(50%); width: min(1188px, calc(100% - 56px)); } }

/* mobile: UI text >= 16px */
@media (max-width: 899px) {
  .hint, .count, .kicker, .status, .status .chip, .stamp, .stamp span, .tags-out span, .examples button, .legend, .src, .card-opt .tags i, .state, .ladder li, .demo-h span, .gate .eff, .timeline small, .demo-tag, .field-err, .sum-row dt, .popover, .draft-tag, .build-note, .card-opt:has(input:checked)::after { font-size: 16px !important; }
  .welcome p.welcome-note, .finish p.finish-note { font-size: 16px; }
  .st .n, .info { font-size: 16px; }
  .brand-sub, .status .when, .dl { display: none; }
  #demoBtn { white-space: nowrap; padding-inline: 14px; } .brand b { font-size: 18px; }
  .topbar { padding: 6px 8px 6px 12px; }
  .st { flex: 0 0 auto; padding: 6px; } .st b { display: none; } .st[aria-current="step"] { padding-inline-end: 16px; } .st[aria-current="step"] b { display: inline; }
  .voice { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .voice .mic { width: 104px; height: 104px; order: -1; }
  .ring { width: 180px; height: 180px; } .ring img { width: 90px; height: 90px; }
  .build-site { height: 420px; }
}

/* ================= simulated client site (pv-*) — the client's own palette, not Robit's ================= */
.pv { background: var(--p-bg); color: var(--p-text); font-family: var(--p-body); position: relative; width: 100%; }
.pv h1, .pv h2, .pv-wordmark { font-family: var(--p-display); }
.pv-nav { position: absolute; z-index: 5; top: 18px; inset-inline: 22px; display: flex; align-items: center; gap: 18px; background: color-mix(in srgb, var(--p-bg) 94%, transparent); color: var(--p-text); border-radius: 999px; padding: 10px 12px 10px 22px; box-shadow: 0 6px 20px rgba(0,0,0,.14); }
.pv-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pv-logo { max-height: 34px; width: auto; }
.pv-wordmark { font-weight: 800; font-size: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 360px; }
.pv-nav nav { display: flex; gap: 18px; font-size: 14px; color: var(--p-muted); margin-inline-start: auto; }
.pv-missing { font-style: normal; font-size: 12px; font-weight: 700; color: #7a1a12; background: #ffe2dd; border: 1px dashed #d0705f; border-radius: 999px; padding: 1px 8px; white-space: nowrap; font-family: var(--ui); }
.pv-btn { display: inline-flex; align-items: center; background: var(--p-accent); color: #141414; font-weight: 800; padding: 13px 24px; border-radius: 999px; font-size: 16px; white-space: nowrap; }
.pv-btn.sm { padding: 9px 18px; font-size: 14px; }
.pv-btn2 { display: inline-flex; padding: 12px 22px; border-radius: 999px; border: 1.5px solid currentColor; font-weight: 600; font-size: 16px; opacity: .92; }
.pv-hero { position: relative; display: grid; gap: 28px; align-items: center; min-height: 560px; overflow: hidden; }
.pv-copy { display: grid; gap: 14px; align-content: center; position: relative; z-index: 2; min-width: 0; padding: 130px 56px 70px; max-width: 820px; }
.pv-eyebrow { margin: 0; font-size: 14px; letter-spacing: .03em; font-weight: 700; color: var(--p-muted); }
.pv-h1 { margin: 0; font-size: 58px; line-height: 1.04; font-weight: 800; letter-spacing: -.02em; display: grid; overflow-wrap: anywhere; }
.pv-line.is-accent { color: var(--p-accent); }
.pv-sub { margin: 0; font-size: 19px; color: var(--p-muted); max-width: 48ch; }
.pv-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.pv-media { margin: 0; position: absolute; inset: 0; z-index: 0; }
.pv-media img { width: 100%; height: 100%; object-fit: cover; }
.pv-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to left, rgba(0,0,0,.68), rgba(0,0,0,.08)); }
.pv-t-photo .pv-copy, .pv-t-render .pv-copy, .pv-t-video .pv-copy { color: #fff; }
.pv-t-photo .pv-eyebrow, .pv-t-photo .pv-sub, .pv-t-render .pv-eyebrow, .pv-t-render .pv-sub, .pv-t-video .pv-eyebrow, .pv-t-video .pv-sub { color: rgba(255,255,255,.92); }
.pv-t-type { background: var(--p-surface); }
.pv-media figcaption { position: absolute; z-index: 2; bottom: 14px; inset-inline-start: 18px; font: 700 12px var(--ui); background: rgba(0,0,0,.66); color: #fff; padding: 4px 12px; border-radius: 999px; }
.pv-media.is-user figcaption { background: #FF7A1A; color: #0D0D12; }
.pv-l-split { grid-template-columns: 1.05fr 1fr; } .pv-l-split .pv-media { position: relative; min-height: 440px; margin: 110px 0 40px 40px; border-radius: 18px; overflow: hidden; } .pv-l-split .pv-media::after { display: none; }
.pv-l-split .pv-copy { color: var(--p-text) !important; } .pv-l-split .pv-sub, .pv-l-split .pv-eyebrow { color: var(--p-muted) !important; }
.pv-l-center .pv-copy { text-align: center; justify-items: center; margin: 0 auto; } .pv-l-center .pv-ctas { justify-content: center; }
.pv-sec { padding: 46px 56px; }
.pv-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.pv-sec h2 { margin: 0; font-size: 30px; font-weight: 800; }
.pv-tag { font: 700 12px var(--ui); background: rgba(0,0,0,.55); color: #fff; border-radius: 999px; padding: 3px 10px; }
.pv-tag.mine { background: #FF7A1A; color: #0D0D12; }
.pv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pv-grid.n1 { grid-template-columns: 1fr; } .pv-grid.n2 { grid-template-columns: 1fr 1fr; } .pv-grid.n4 { grid-template-columns: repeat(4, 1fr); }
.pv-card { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 18px; padding: 20px; display: grid; gap: 8px; overflow-wrap: anywhere; }
.pv-card b { font-size: 18px; } .pv-card span:last-child { color: var(--p-muted); font-size: 15px; }
.pv-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--p-accent) 20%, transparent); color: var(--p-sky); font-size: 20px; }
.pv-trust { background: var(--p-surface); padding-block: 26px; }
.pv-trust ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; }
.pv-trust li { display: flex; gap: 12px; align-items: center; } .pv-trust b { display: block; font-size: 16px; } .pv-trust small { color: var(--p-muted); font-size: 14px; }
.pv-check { width: 34px; height: 34px; border-radius: 50%; background: var(--p-accent); color: #141414; display: grid; place-items: center; font-weight: 900; flex: none; }
.pv-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.pv-steps li { background: var(--p-surface); border: 1px solid var(--p-line); border-radius: 16px; padding: 16px; display: grid; gap: 4px; }
.pv-steps b { font: 800 26px var(--p-display); color: color-mix(in srgb, var(--p-accent) 70%, #000); } .pv-steps span { font-weight: 700; }
.pv-reviews { padding-block: 20px; }
.pv-reviews p { margin: 0; display: flex; align-items: center; gap: 10px; color: var(--p-muted); font-size: 17px; border-top: 1px solid var(--p-line); border-bottom: 1px solid var(--p-line); padding: 14px 0; }
.pv-reviews p span { font: 800 30px var(--p-display); color: var(--p-accent); line-height: 1; }
.pv-form { background: var(--p-text); color: var(--p-bg); display: grid; grid-template-columns: 1fr 1.2fr; gap: 32px; align-items: center; }
.pv-form h2 { color: var(--p-bg); } .pv-form p { margin: 8px 0 0; opacity: .85; }
.pv-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pv-fields span { background: var(--p-bg); color: var(--p-muted); border-radius: 12px; padding: 13px 14px; font-size: 15px; }
.pv-fields .pv-btn { justify-self: start; grid-column: 1 / -1; color: #141414; background: var(--p-accent); }
.pv-foot { background: var(--p-text); color: var(--p-bg); padding: 22px 56px 28px; display: grid; gap: 10px; font-size: 14px; border-top: 1px solid color-mix(in srgb, var(--p-bg) 15%, transparent); }
.pv-foot div { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; } .pv-foot b { font-size: 15px; }
.pv-foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; } .pv-foot ul:empty { display: none; }
.pv-pages { display: flex; gap: 6px 16px; flex-wrap: wrap; opacity: .9; } .pv-pages span { text-decoration: underline; text-underline-offset: 3px; }
.pv-new { position: relative; }
.pv-new::after { content: "חדש"; position: absolute; top: 12px; inset-inline-end: 12px; font: 800 12px var(--ui); background: #FFC24D; color: #0D0D12; padding: 2px 10px; border-radius: 999px; z-index: 4; }
.pv-hit { outline: 3px solid #FF7A1A; outline-offset: 3px; border-radius: 12px; }
.dev-phone .pv-nav { top: 10px; inset-inline: 10px; padding: 8px 8px 8px 14px; } .dev-phone .pv-nav nav { display: none; } .dev-phone .pv-wordmark { font-size: 17px; max-width: 170px; }
.dev-phone .pv-hero { grid-template-columns: 1fr !important; min-height: 600px; } .dev-phone .pv-copy { padding: 300px 20px 40px; } .dev-phone .pv-h1 { font-size: 36px; }
.dev-phone .pv-l-split .pv-media { position: absolute; margin: 0; border-radius: 0; }
.dev-phone .pv-sec { padding: 32px 20px; } .dev-phone .pv-grid, .dev-phone .pv-steps, .dev-phone .pv-fields, .dev-phone .pv-form { grid-template-columns: 1fr !important; }
.dev-phone .pv-trust ul { flex-direction: column; } .dev-phone .pv-foot { padding: 20px; }

/* motion helpers */
.fly-chip { position: fixed; top: 0; left: 0; z-index: 70; pointer-events: none; background: var(--acc); color: var(--acc-ink); font-weight: 800; font-size: 14px; padding: 6px 12px; border-radius: 999px; box-shadow: 0 8px 20px rgba(255,122,26,.45); white-space: nowrap; }
.burst { position: fixed; z-index: 55; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, rgba(255,194,77,.9) 0 35%, rgba(255,122,26,.4) 36% 60%, transparent 62%); }
.shake { animation: shake .32s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
:root { view-transition-name: none; }
::view-transition { pointer-events: none; }
.frame-inner > .pv { view-transition-name: pv-site; }
::view-transition-old(pv-site), ::view-transition-new(pv-site) { animation-duration: .42s; animation-timing-function: cubic-bezier(.22,1,.36,1); }
html.vt-style::view-transition-old(pv-site) { animation: none; }
html.vt-style::view-transition-new(pv-site) { animation: reveal .52s cubic-bezier(.22,1,.36,1) both; }
@keyframes reveal { from { clip-path: circle(0% at 100% 30%); } to { clip-path: circle(150% at 100% 30%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
html[data-motion="off"] *, html[data-motion="off"] *::before, html[data-motion="off"] *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }

/* ---------- 10.11: first draft ($0) + "your site is ready" notice ---------- */
.draft-note { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 auto 10px; max-width: 1280px; padding: 8px 14px; border: 1.5px solid var(--gold); border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-size: 15px; }
.draft-note[hidden] { display: none; }
.draft-note b { color: var(--ink); }
.draft-note #draftNoteTxt { flex: 1 1 260px; }
.draft-note .robot { width: 28px; height: 28px; }
.draft-view { position: fixed; inset: 0; z-index: 80; background: rgba(5,5,8,.82); display: grid; place-items: center; padding: 16px; }
.draft-view[hidden] { display: none; }
.dv-in { width: min(1180px, 100%); height: min(92vh, 1000px); background: var(--card); border: 1px solid var(--line); border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 24px 70px rgba(0,0,0,.6); }
.dv-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 18px 0; }
.dv-head h2 { margin: 0; font-size: 20px; flex: 1 1 auto; }
.dv-head .draft-tag { margin: 0; }
.dv-sub { margin: 6px 18px 12px; color: var(--ink2); font-size: 15px; }
#draftFrame { flex: 1; width: 100%; border: 0; background: #fff; }
.draft-doc { margin: 0; background: var(--p-bg, #fff); }
.draft-banner { position: sticky; top: 0; z-index: 5; margin: 0; padding: 10px 16px; background: #FFC24D; color: #1A1206; font: 600 15px/1.4 Assistant, Heebo, system-ui, sans-serif; text-align: center; }
.draft-site .pv { width: 100%; }
.notice { width: min(760px, 92vw); margin-top: 8px; text-align: right; background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
.notice h2 { margin: 0 0 6px; font-size: 19px; }
.nt-status { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.finish .notice p { font-size: 15px; }
.finish .notice .nt-to { margin: 8px 0 10px; color: var(--ink2); }
.nt-cards { display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; }
.nt-card { background: var(--sunk); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.nt-card h3 { margin: 0 0 6px; font-size: 15px; color: var(--acc-text); }
.finish .notice .nt-sms, .finish .notice .nt-body { white-space: pre-line; color: var(--ink); font-size: 15px; }
.nt-card small { display: block; margin-top: 6px; color: var(--muted); font-size: 14px; }
.nt-link { display: inline-block; padding: 0 8px; border-radius: 999px; background: var(--tint); color: var(--tint-ink); font-weight: 700; }
.finish-in { padding-bottom: 24px; }
@media (max-width: 899px) {
  .draft-note, .finish .notice p, .finish .notice .nt-sms, .finish .notice .nt-body, .dv-sub, .nt-card h3, .nt-card small { font-size: 16px !important; }
  .draft-note { border-radius: 16px; margin: 0 12px 10px; }
  .nt-cards { grid-template-columns: 1fr; }
  .draft-view { padding: 0; } .dv-in { height: 100vh; border-radius: 0; }
}

/* ---------- 10.11 b: real client data, research in the background, "בהכנה" ---------- */
.real-tag { background: #12301F; color: #9BE7B8; }
.research-bg { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; max-width: 1280px; margin: 0 auto 10px; padding: 8px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink2); font-size: 15px; }
.research-bg[hidden] { display: none; }
.research-bg b { color: var(--ink); }
.research-bg ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.research-bg li { padding: 2px 10px; border-radius: 999px; background: var(--sunk); font-size: 14px; }
.research-bg li i { font-style: normal; font-weight: 700; }
.research-bg li.ok i { color: #7CE0A3; } .research-bg li.part i { color: var(--gold); } .research-bg li.now i { color: var(--acc-text); }
.timeline li.prep .dot { background: var(--gold); color: var(--acc-ink); }
.timeline li.prep .state { color: var(--gold); font-weight: 800; }
.preparing #prepEta b { color: var(--ink); }
#startReal { margin-top: 4px; }
@media (max-width: 899px) { .research-bg { margin: 0 12px 10px; } .research-bg, .research-bg li { font-size: 16px !important; } #startReal { white-space: normal; } }

.nt-next { margin-top: 12px; } .nt-next summary { cursor: pointer; font-weight: 700; color: var(--ink); min-height: 44px; display: flex; align-items: center; }
.nt-next .nt-cards { margin-top: 8px; }
.research-bg details { width: 100%; } .research-bg summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; flex-wrap: wrap; gap: 4px; } .research-bg details ul { margin-top: 8px; }
@media (max-width: 899px) { .research-bg summary { min-height: 44px; } }
@media (max-width: 899px) { .solo-mode .draft-note, .solo-mode .research-bg { display: none !important; } }
.pill.primary:disabled { opacity: .6; box-shadow: none; cursor: default; animation: none; }

/* ---------- 10.11 c: one client app — login (01), handoff (03), profile landing (Figma 65:471, approved) ---------- */
.flow-screen { position: fixed; inset: 0; z-index: 70; overflow: auto; background: var(--paper); display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 24px 16px 48px; }
.flow-screen[hidden] { display: none; }
.flow-top { width: min(1344px, 100%); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.flow-top .brand { display: inline-flex; align-items: center; gap: 8px; font-size: 22px; }
.flow-card { width: min(480px, 100%); margin: auto 0; display: grid; gap: 16px; justify-items: start; padding: 40px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); }
.flow-card.wide { width: min(760px, 100%); }
.flow-card .robot { width: 96px; height: 96px; }
.flow-card h1 { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 900; outline: none; }
.flow-card h2 { margin: 6px 0 0; font-size: 18px; }
.flow-card form { display: grid; gap: 8px; width: 100%; }
.flow-card .pill { width: 100%; justify-content: center; }
.flow-card .hint { color: var(--muted); font-size: 14px; margin: 0; }
.lg-bar { width: 100%; height: 8px; border-radius: 999px; background: var(--sunk); overflow: hidden; }
.lg-bar i { display: block; height: 100%; width: 45%; border-radius: 999px; background: var(--acc); }
.lg-bar.go i { width: 100%; transform-origin: right; animation: hoFill 3s linear forwards; }
@keyframes hoFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.ho-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; width: 100%; color: var(--ink2); }
.ho-list li { display: flex; align-items: center; gap: 10px; } .ho-list li span { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; background: var(--sunk); color: var(--ink2); }
.ho-list li.ok span { background: #7CE0A3; color: var(--black); }
.sk { width: 100%; height: 56px; border-radius: 16px; background: var(--sunk); } .sk.big { height: 88px; }
.flow-next { margin: 0; padding: 8px 14px; border-radius: 14px; background: var(--sunk); color: var(--muted); font-size: 14px; }
.pf-strip { margin: 0; padding: 10px 14px; border-radius: 14px; background: var(--tint); color: var(--tint-ink); font-weight: 700; width: 100%; }
.pf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.pf-card { display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: 18px; background: var(--sunk); border: 1px solid var(--line); }
.pf-card #pfResearch ul { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; } .pf-card #pfResearch summary { list-style: none; } .pf-card #pfResearch li { padding: 2px 10px; border-radius: 999px; background: var(--card); font-size: 14px; }
.pf-actions { display: flex; gap: 10px; width: 100%; } .pf-actions .pill { width: auto; flex: 1; }
#toProfile, #langBtn { white-space: nowrap; }
@media (max-width: 899px) {
  .flow-card { padding: 24px; } .flow-card h1 { font-size: 26px; } .flow-card .hint, .flow-next, .pf-card #pfResearch li { font-size: 16px; }
  .pf-grid { grid-template-columns: 1fr; } .pf-actions { flex-direction: column; } .flow-top .demo-tag { max-width: 60%; }
}
@media (prefers-reduced-motion: reduce) { .lg-bar.go i { animation: none; transform: none; } }
html[data-motion="off"] .lg-bar.go i { animation: none; }
.ml { display: none; }
@media (max-width: 899px) { .ml { display: inline; } #langBtn { min-width: 44px; padding: 0 10px; } .topbar { gap: 6px; } #toProfile { padding: 0 12px; } }
@media (max-width: 359px) { .topbar { padding-inline: 8px 10px; } .topbar .pill.sm { padding: 0 9px; } }
.app-head { padding: 8px 20px; border: 1px solid var(--line); border-radius: 999px; background: var(--black); }
.me-chip { padding: 6px 12px; border-radius: 999px; background: var(--sunk); font-weight: 600; font-size: 15px; }
@media (max-width: 899px) { .me-chip { font-size: 16px; max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .app-head { padding: 8px 12px; } }

/* 10.11 · LTR (en): progress and handoff fills start at the reading start; the client site preview keeps its own direction (dir on .pv) */
[dir="ltr"] .progress .track i { transform-origin: left; background: linear-gradient(90deg, var(--acc), var(--gold)); }
[dir="ltr"] .lg-bar.go i { transform-origin: left; }
@media (max-width: 440px) { [dir="ltr"] .topbar .brand b, [dir="ltr"] .topbar .brand-sub { display: none; } }

/* ---------- round 12 · «מי עושה מה» actor tag (Figma 70:481) ---------- */
.actor { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 10px; border-radius: 999px; font: 700 14px/1 Heebo, system-ui, sans-serif; white-space: nowrap; vertical-align: middle; }
.actor .dot { width: 8px; height: 8px; border-radius: 50%; background: #FF7A1A; }
.actor img { width: 16px; height: 16px; border-radius: 50%; }
.actor .ck { font-style: normal; font-weight: 900; }
.actor-you { border: 1px solid #FF7A1A; color: #FF8A3D; background: transparent; }
.actor-machine { border: 1px solid #34343F; color: #C8C8D2; background: #1E1E27; }
.actor-approve { background: #FF7A1A; color: #1A1206; }
.qhead .actor { margin-inline-start: 4px; }
#panel > .qhead { flex-wrap: wrap; row-gap: 8px; } #panel > .qhead .q { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 899px) { #panel > .qhead .actor { order: 3; margin-inline-start: 0; } #panel > .qhead .robot { order: 2; } }
.st-col { flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.st-col .st { align-self: stretch; }
.st-col .actor { font-size: 14px; }
.flow-actor { display: flex; justify-content: center; margin: 4px 0 8px; }
.pf-google { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; padding: 12px 14px; border: 1px dashed #3A3A45; border-radius: 14px; color: #C8C8D2; }
@media (max-width: 899px) { .actor, .st-col .actor { font-size: 16px; } .st-col { flex: 0 0 auto; } }

/* ---------- round 12 · design step for a real client: three Apex styles, desktop + mobile (Figma 74:773 / 74:1018 / 74:1255) ---------- */
.apex-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.apex-card { position: relative; display: grid; gap: 12px; align-content: start; padding: 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); cursor: pointer; transition: border-color 200ms cubic-bezier(.2,.8,.2,1), box-shadow 200ms; }
.apex-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; z-index: 3; }
.apex-card:has(input:checked) { border: 2px solid var(--acc); box-shadow: 0 0 0 4px rgba(255,122,26,.22); }
.apex-card:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.apex-card.off { cursor: not-allowed; } .apex-card.off .apex-pair { opacity: .5; }
.apex-pair { position: relative; display: block; padding-bottom: 22%; pointer-events: none; }
.apex-d { position: relative; display: block; aspect-ratio: 1280 / 800; overflow: hidden; border-radius: 10px; border: 1px solid var(--line); background: #f4f1ea; }
.apex-m { position: absolute; left: 10px; bottom: 0; width: 26%; aspect-ratio: 390 / 800; overflow: hidden; border-radius: 12px; border: 3px solid #0B0B0F; background: #f4f1ea; box-shadow: 0 8px 24px rgba(0,0,0,.5); }
.apex-in { position: absolute; top: 0; right: 0; display: block; transform-origin: top right; }
.apex-in .hero { min-height: 0; }
.apex-cards.settled .hero, .apex-cards.settled .hero * { transition: none !important; }
.apex-lbl { display: flex; justify-content: space-between; color: var(--muted); font-size: 14px; font-weight: 700; } .apex-lbl small { font-size: inherit; }
.apex-meta { display: grid; gap: 6px; } .apex-meta b { font-size: 20px; }
.apex-meta i { justify-self: start; font-style: normal; font-size: 14px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--sunk); color: var(--ink2); }
.apex-meta i.rec { background: #2A190D; color: #FFD2AE; }
.apex-meta small { color: var(--muted); font-size: 14px; line-height: 1.5; } .apex-meta .apex-photo { font-size: 14px; }
@media (max-width: 899px) {
  .apex-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .apex-lbl, .apex-meta i, .apex-meta small, .apex-meta .apex-photo { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .apex-card { transition: none; } }

/* ---------- round 12 · keywords, a short step inside station 1 (Figma 76:774 / 76:889 / 76:991, states 76:1093 / 76:1195) ---------- */
.kw-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.kw { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--sunk); }
.kw.on { border-color: var(--acc); background: #2A190D; }
.kw.off, .kw.blocked { border-style: dashed; }
.kw.blocked { grid-column: 1 / -1; }
.kw-mark { flex: none; font-weight: 900; font-size: 16px; color: var(--acc); width: 16px; text-align: center; } .kw.off .kw-mark, .kw.blocked .kw-mark { color: var(--muted); }
.kw-txt { flex: 1; min-width: 0; display: grid; gap: 2px; } .kw-txt b { font-size: 16px; line-height: 1.4; } .kw-txt small { font-size: 14px; color: var(--muted); }
.kw.off .kw-txt b { text-decoration: line-through; color: var(--muted); } .kw.blocked .kw-txt b { color: var(--muted); } .kw.blocked .kw-txt small { color: var(--acc-text); }
.kw-btn { flex: none; min-height: 44px; } .kw-lock { flex: none; padding: 4px 10px; border-radius: 999px; background: var(--sunk); color: var(--muted); font-size: 14px; font-weight: 700; }
.kw-meta { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.kw-empty { margin-top: 14px; padding: 18px; border: 1px dashed var(--line); border-radius: 16px; display: grid; gap: 8px; justify-items: start; } .kw-empty h2 { margin: 0; font-size: 20px; } .kw-empty p { margin: 0; color: var(--muted); }
@media (max-width: 899px) { .kw-list { grid-template-columns: minmax(0, 1fr); } .kw-txt small, .kw-lock, .kw-meta { font-size: 16px; } .kw { flex-wrap: wrap; } .kw-btn { margin-inline-start: auto; } }

/* ---------- round 12 b · before a big payment (Figma 80:480), brief [חסר] (81:489), missing list (82:504), welcome back (81:664) ---------- */
.pm-top { justify-content: flex-start; }
.pm-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; align-items: start; }
.pm-card { display: grid; gap: 10px; padding: 18px; border-radius: 16px; background: var(--sunk); border: 1px solid var(--line); }
.pm-card h2 { margin: 0; font-size: 18px; line-height: 1.4; } .pm-card .hint, .pm-src { margin: 0; } .pm-src { color: var(--acc-text); font-size: 14px; font-weight: 600; }
.pm-given { margin-top: 14px; } .pm-givenrow { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; } .pm-givenrow b { font-size: 16px; }
.pm-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pm-cur { display: flex; align-items: center; gap: 6px; } .pm-cur i { font-style: normal; color: var(--muted); }
.pm-hyp { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pm-hyp li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 12px; border-radius: 12px; border: 1px dashed var(--line); }
.pm-hyp li.on { border: 1px solid var(--acc); background: #2A190D; } .pm-hyp li span { display: grid; gap: 2px; min-width: 0; } .pm-hyp small { color: var(--muted); font-size: 14px; } .pm-hyp li.on small { color: #6EE0AD; }
.pm-drop { display: grid; justify-items: center; gap: 4px; padding: 16px; border: 1px dashed var(--line); border-radius: 12px; cursor: pointer; text-align: center; min-height: 44px; }
.pm-drop span { font-size: 22px; color: var(--muted); } .pm-drop small { color: #6EE0AD; font-size: 14px; }
.pm-later { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; } .pm-later-btn { border-color: var(--acc); color: var(--acc-text); }
.pm-rule { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; line-height: 1.5; }
.pm-rule.site { background: #10241B; color: #6EE0AD; } .pm-rule.warn { background: #2A190D; color: #FFD2AE; } .pm-rule.brief { background: #141A2A; color: #9DB8FF; }
.pm-count { align-items: center; color: var(--muted); font-size: 14px; } .pm-q { margin-top: 0; }
.bm-card dl { margin: 0; display: grid; gap: 6px; } .bm-row { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; } .bm-row dt { color: var(--muted); font-weight: 700; font-size: 14px; } .bm-row dd { margin: 0; }
.bm-row.miss dd { color: #FFD2AE; font-weight: 700; } .bm-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; } .bm-legend span { padding: 4px 10px; border-radius: 999px; background: var(--sunk); font-size: 14px; font-weight: 700; } .bm-legend .m { background: #2A190D; color: #FFD2AE; }
.missing { display: grid; gap: 10px; margin: 6px 0 18px; } .missing .q2 { margin: 0; font-size: 28px; }
.ms-h { margin: 6px 0 0; font-size: 17px; } .ms-h.bad { color: #FFB4A0; } .ms-h.ok { color: #6EE0AD; }
.ms-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ms { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--sunk); }
.ms.req { border-color: #FF5A3A; background: #2A140F; } .ms.req.done { border-color: #1F4A36; background: #10241B; }
.ms-txt { flex: 1; min-width: 0; display: grid; gap: 3px; } .ms-txt p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; } .ms-txt small { color: var(--muted); font-size: 14px; } .ms-site { color: #6EE0AD !important; } .ms.req .ms-site { color: #FFB4A0 !important; }
.ms-tag { padding: 2px 8px; border-radius: 999px; font-size: 14px; font-weight: 700; background: var(--card); color: var(--muted); } .ms.req .ms-tag { background: #FF5A3A; color: #1A0A06; }
.ms-fix { border-color: var(--acc); color: var(--acc-text); } .ms-form { flex-basis: 100%; display: grid; gap: 8px; } .ms-ok { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.ms-note { margin: 4px 0 0; padding: 10px 12px; border-radius: 12px; font-weight: 600; } .ms-note.bad { background: #2A140F; color: #FFB4A0; } .ms-note.ok { background: #10241B; color: #6EE0AD; }
.wb { display: grid; gap: 14px; } .wb .robot { width: 96px; height: 96px; }
.wb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } .wb-grid section { padding: 18px; border-radius: 16px; border: 1px solid var(--line); background: var(--sunk); }
.wb-done { background: #10241B !important; border-color: #1F4A36 !important; } .wb-grid h2 { margin: 0 0 8px; font-size: 18px; } .wb-done h2 { color: #6EE0AD; } .wb-todo h2 { color: #FFD2AE; }
.wb-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .wb-first { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--acc); border-radius: 12px; background: #2A190D; margin: 0 0 8px; }
.wb-cta { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 899px) { .pm-grid, .pm-row, .wb-grid { grid-template-columns: minmax(0, 1fr); } .bm-row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pm-src, .pm-hyp small, .pm-drop small, .pm-rule, .pm-count, .bm-row dt, .bm-legend span, .ms-txt small, .ms-tag, .ms-note { font-size: 16px; } .wb-cta .pill { width: 100%; } }
/* round 12 b fix: on a phone the transient "טיוטה · שומרים…" chip spilled over "הפרופיל" (status could shrink, its chip could not) */
.status { overflow: hidden; } .status .chip { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
@media (max-width: 359px) {   /* 320: the save state stays visible as a dot (full text for screen readers), "לנסות שוב" as ↻; the robot logo stays, the word "Robit" goes */
  .topbar .brand b { display: none; } .status { flex: none; overflow: visible; gap: 4px; } .status .when { display: none; }
  .status .chip { color: transparent !important; width: 22px; height: 22px; padding: 0; gap: 0; overflow: hidden; display: inline-flex; justify-content: center; }
  .status #retry { font-size: 0 !important; width: 34px; min-height: 34px; padding: 0; justify-content: center; } .status #retry::after { content: "↻"; font-size: 18px; } }
@media (max-width: 899px) { .status #retry { font-size: 0 !important; width: 34px; min-height: 34px; padding: 0; justify-content: center; flex: none; } .status #retry::after { content: "↻"; font-size: 18px; } }
.save-fail { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 16px 0; padding: 10px 14px; border-radius: 14px; background: #2A140F; border: 1px solid #FF5A3A; color: #FFB4A0; }
.save-fail[hidden] { display: none; }
@media (min-width: 900px) { .save-fail { display: none !important; } }   /* desktop: the bar has room for the full chip + "לנסות שוב" */
@media (max-width: 899px) { .save-fail { font-size: 16px; } .status .chip.s-fail { color: transparent !important; width: 22px; height: 22px; padding: 0; gap: 0; overflow: hidden; display: inline-flex; justify-content: center; } .status .when { display: none; } }
@media (max-width: 899px) { .status #retry { display: none !important; } }   /* phones: "לנסות שוב" lives in the strip above the content */
/* the dot keeps the state colour when the chip's (16px, screen-reader) text is visually hidden */
.status .chip.s-saved::before { background: var(--ok-dk); } .status .chip.s-draft::before { background: var(--gold); } .status .chip.s-fail::before { background: #FF8A80; }

/* ---------- round 12 c · solar questions (79:481), offers & subscriptions (84:522), contact path (84:824) ---------- */
.d2-col { display: grid; gap: 16px; align-content: start; }
.d2-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--ink2); font: 700 15px Heebo, sans-serif; cursor: pointer; }
.chip-btn.on { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.chip-btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.d2-reg { border: 1px dashed var(--line); border-radius: 12px; padding: 12px; margin: 0; display: grid; gap: 8px; } .d2-reg legend { padding: 0 6px; font-weight: 700; font-size: 14px; color: var(--ink2); }
.d2-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.d2-brief { margin-top: 16px; padding: 18px; border-radius: 16px; background: var(--sunk); border: 1px solid var(--line); } .d2-brief h2 { margin: 0 0 8px; font-size: 17px; color: #9DB8FF; } .d2-brief ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 6px; color: var(--ink2); }
.d2-skip { display: flex; margin-top: 14px; }
.d2-status { margin: 0; padding: 8px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; } .d2-status.ok { background: #10241B; color: #6EE0AD; } .d2-status.off { background: #2A190D; color: #FFD2AE; }
.d2-check, .d2-switch { display: flex; align-items: center; gap: 10px; min-height: 44px; } .d2-check input, .d2-switch input { width: 20px; height: 20px; accent-color: var(--acc); }
.d2-rule .qhead { justify-content: space-between; } .d2-rule h2 { margin: 0; }
.d2-bad-h { margin: 0; color: #FFB4A0; font-weight: 700; } .d2-ok-h { margin: 0; color: #6EE0AD; font-weight: 700; }
.d2-bad { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .d2-bad li { padding: 8px 12px; border-radius: 10px; background: #2A140F; color: #FFB4A0; }
.d2-ex { display: grid; gap: 6px; justify-items: start; padding: 14px; border-radius: 12px; background: #f4f1ea; color: #23262b; } .d2-ex b { font-size: 17px; } .d2-ex small { color: #4f545c; }
.d2-sub { display: flex; gap: 12px; align-items: center; } .d2-join { padding: 8px 16px; border-radius: 999px; background: #f2a900; color: #1b1f24; font-weight: 700; } .d2-sub u { color: #183f63; font-weight: 700; }
.d2-svcs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.d2-svc { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); } .d2-svc b { flex: 1; min-width: 0; } .d2-svc code { color: var(--muted); font-size: 14px; } .d2-svc .inp { flex: 1; min-width: 0; }
.d2-form-pv { margin-top: 8px; } .d2-rules { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; color: var(--ink2); font-size: 14px; }
@media (max-width: 899px) { .d2-3 { grid-template-columns: minmax(0, 1fr); } .d2-status, .d2-reg legend, .d2-svc code, .d2-rules { font-size: 16px; } .d2-skip .pill { width: 100%; } }
@media (max-width: 899px) { .chip-btn { font-size: 16px; } }

/* round 15 (N15-3 item 1): native radio/checkbox inside a label with the old button classes, same look. The input is transparent and
   covers the label (so a click anywhere on it is a click on the input); the focus ring the button had moves to the label. */
.ctl { position: relative; display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: normal; vertical-align: middle; }
.ctl-in { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.ctl:has(.ctl-in:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }
.lang .lang-opt { min-height: 40px; padding: 4px 14px; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; cursor: pointer; }
.lang .lang-opt.on { background: var(--card); color: var(--ink); }
/* round 15: a date/time field keeps its ring while the keyboard moves between its parts (day, month, hour, the built-in calendar button):
   on the calendar button Chrome stops matching :focus and :focus-visible on the field, only :focus-within still matches */
input.inp[type="datetime-local"]:focus-within, input.inp[type="date"]:focus-within, input.inp[type="time"]:focus-within { outline: 3px solid var(--gold); outline-offset: 2px; }
