/* Hasama — candidate-facing pages (Hebrew, right-to-left, mobile first). */
:root {
  color-scheme: light;
  --bg: #f9f9f7;
  --surface: #ffffff;
  --text: #0b0b0b;
  --text-2: #52514e;
  --muted: #6f6d68;
  --border: rgba(11, 11, 11, 0.12);
  --accent: #2a78d6;
  --accent-hover: #256abf;
  --wash: rgba(42, 120, 214, 0.08);
  --bad: #d03b3b;
  --good: #0ca30c;
  --font: system-ui, -apple-system, "Segoe UI", "Noto Sans Hebrew", Arial, sans-serif;
  /* the three paths: לעבוד (work), לגייס (hire), להרוויח (earn). *-solid carries white text in both themes. */
  --work: #2a78d6; --work-solid: #2a78d6; --work-wash: rgba(42, 120, 214, 0.10);
  --hire: #0b7a5c; --hire-solid: #0b7a5c; --hire-wash: rgba(11, 122, 92, 0.10);
  --earn: #b45309; --earn-solid: #b45309; --earn-wash: rgba(180, 83, 9, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0d0d0d;
    --surface: #1a1a19;
    --text: #f0efec;
    --text-2: #c3c2b7;
    --muted: #9a988f;
    --border: rgba(255, 255, 255, 0.12);
    --accent: #3987e5;
    --accent-hover: #5598e7;
    --wash: rgba(57, 135, 229, 0.14);
    --work: #5598e7; --work-wash: rgba(85, 152, 231, 0.16);
    --hire: #34c39a; --hire-wash: rgba(52, 195, 154, 0.14);
    --earn: #eba352; --earn-wash: rgba(235, 163, 82, 0.14);
  }
}
* { box-sizing: border-box; }
html, body { overflow-x: hidden; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); }
a { color: var(--accent); }
.pub-head { max-width: 720px; margin: 0 auto; padding: 18px 16px 6px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pub-brand { display: flex; align-items: center; gap: 8px; font-weight: 750; font-size: 19px; color: var(--text); text-decoration: none; }
.pub-brand .mark { width: 28px; height: 28px; border-radius: 8px; background: var(--accent); color: #fff; display: grid; place-items: center; font-size: 15px; }
.pub-tag { color: var(--muted); font-size: 14px; }
.pub-main { max-width: 720px; margin: 0 auto; padding: 8px 16px 40px; }
.pub-foot { max-width: 720px; margin: 0 auto; padding: 18px 16px 36px; display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }
.pub-foot a { color: var(--muted); }
h1 { font-size: 26px; line-height: 1.25; margin: 10px 0 12px; }
h2 { font-size: 19px; margin: 22px 0 10px; }
.muted { color: var(--muted); }
.job, .apply, .hero { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 14px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { background: var(--wash); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.job-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.apply h2 { margin-top: 0; }
.quick { display: flex; gap: 10px; flex-wrap: wrap; }
.qbtn { flex: 1 1 140px; text-align: center; padding: 12px 14px; border-radius: 10px; font-weight: 650; text-decoration: none; color: #fff; background: #1a8f62; }
.qbtn.tg { background: #2a78d6; }
.qbtn.fb { background: #5a4bd1; }
.qbtn:hover { filter: brightness(1.08); }
.or { margin: 18px 0 6px; }
.f { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.f label { font-weight: 600; font-size: 15px; }
input[type=text], input[type=tel], input[type=email], textarea { font: inherit; color: var(--text); background: var(--surface); width: 100%; padding: 11px 12px; border: 1px solid var(--border); border-radius: 10px; min-height: 46px; }
input[type=file] { font: inherit; font-size: 15px; }
textarea { resize: vertical; }
input:focus, textarea:focus, a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.f.bad input, .f.bad textarea { border-color: var(--bad); }
.msg, .bad-msg { color: var(--bad); font-size: 14px; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); margin: 6px 0 4px; }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.consent.bad span { color: var(--bad); }
.submit { width: 100%; margin-top: 16px; font: inherit; font-weight: 700; font-size: 17px; padding: 14px; border-radius: 10px; border: 0; background: var(--accent); color: #fff; cursor: pointer; }
.submit:hover { background: var(--accent-hover); }
.submit[disabled] { opacity: 0.6; }
.err-box { background: rgba(208, 59, 59, 0.1); color: var(--bad); padding: 10px 12px; border-radius: 8px; margin-bottom: 12px; }
.hp { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
.hero { text-align: center; padding: 30px 20px; }
.hero p { color: var(--text-2); }
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.job-list a { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; color: var(--text); text-decoration: none; flex-wrap: wrap; }
.job-list a:hover { border-color: var(--accent); }
.job-list span { color: var(--muted); }
.home-hero { padding: 34px 20px 30px; }
.home-hero h1 { font-size: 30px; margin-top: 0; }
.home-hero p { max-width: 540px; margin: 8px auto 0; }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn-main, .btn-alt { flex: 0 1 230px; text-align: center; padding: 12px 20px; border-radius: 10px; font-weight: 650; text-decoration: none; }
.btn-main { background: var(--accent); color: #fff; }
.btn-main:hover { background: var(--accent-hover); }
.btn-alt { background: var(--wash); color: var(--accent); }
.btn-alt:hover { filter: brightness(0.97); }
h2 .count { display: inline-block; min-width: 26px; padding: 0 8px; margin-inline-start: 6px; border-radius: 999px; background: var(--wash); color: var(--accent); font-size: 14px; text-align: center; vertical-align: middle; }
#jobs, #contact { scroll-margin-top: 12px; }
.qbtn.tel, .qbtn.mail { background: var(--surface); color: var(--text); border: 1px solid var(--border); font-weight: 600; overflow-wrap: anywhere; }
.center { text-align: center; }
.check-mark { width: 56px; height: 56px; border-radius: 50%; background: var(--good); margin: 0 auto 10px; position: relative; }
.check-mark::after { content: ""; position: absolute; left: 21px; top: 13px; width: 12px; height: 22px; border: solid #fff; border-width: 0 4px 4px 0; transform: rotate(45deg); }
.hint { font-size: 14px; }

/* Phone-only callback page. */
.callback-hero { max-width: 620px; margin: 36px auto 24px; padding: 40px 34px 32px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: 0 10px 40px rgba(42, 120, 214, 0.06); }
.callback-eyebrow { color: var(--accent); font-size: 15px; font-weight: 650; margin-bottom: 18px; }
.callback-hero h1 { font-size: clamp(36px, 6vw, 52px); line-height: 1.15; letter-spacing: -0.03em; margin: 0 0 20px; }
.callback-intro { font-size: 19px; line-height: 1.65; color: var(--text-2); margin: 0 0 26px; }
.callback-job { padding: 12px 16px; background: var(--wash); border-radius: 12px; font-size: 14px; margin: 0 0 24px; }
.callback-form { max-width: 450px; margin: 0 auto; }
.callback-form .f { text-align: start; gap: 9px; margin-bottom: 0; }
.callback-form .f label { font-size: 16px; }
.callback-form input.callback-phone { font-size: 27px; font-weight: 600; min-height: 72px; padding: 16px 18px; text-align: center; letter-spacing: 0.025em; border-radius: 12px; }
.callback-form .hint { text-align: center; font-size: 13px; }
.callback-submit { min-height: 64px; font-size: 19px; margin-top: 20px; border-radius: 12px; }
.callback-consent { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 16px 0 0; }
.callback-form .err-box { margin: 14px 0 0; text-align: start; }
.callback-thanks { padding-top: 46px; padding-bottom: 46px; }
.callback-thanks .check-mark { margin-bottom: 24px; }
.callback-offer { display: flex; align-items: center; gap: 18px; justify-content: space-between; flex-wrap: wrap; padding: 20px; margin-top: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--wash); }
.callback-offer h2 { margin: 0 0 5px; }
.callback-offer p { margin: 0; color: var(--text-2); font-size: 14px; }
.callback-offer .btn-main { flex: 0 0 auto; }
@media (max-width: 520px) {
  .callback-hero { margin-top: 20px; padding: 30px 20px 26px; border-radius: 18px; }
  .callback-intro { font-size: 17px; }
  .callback-submit { font-size: 17px; }
  .callback-offer .btn-main { flex: 1 1 100%; }
}

/* website chat (templates/public/_chat.html, static/chat.js) */
.chat[hidden], .chat [hidden] { display: none !important; }
.chat { position: fixed; inset-inline-end: 16px; bottom: 16px; z-index: 50; font-size: 15px; }
.chat-fab { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border: 0; border-radius: 999px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18); }
.chat-fab:hover { background: var(--accent-hover); }
.chat.open .chat-fab { display: none; }
.chat-badge { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff; font-size: 12px; line-height: 20px; text-align: center; }
.chat-panel { width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 32px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22); overflow: hidden; }
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; background: var(--accent); color: #fff; }
.chat-head strong { display: block; }
.chat-sub { font-size: 13px; opacity: 0.85; }
.chat-x { border: 0; background: transparent; color: #fff; font-size: 26px; line-height: 1; width: 38px; height: 38px; border-radius: 8px; cursor: pointer; flex: none; }
.chat-x:hover { background: rgba(255, 255, 255, 0.16); }
.chat-thread { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.bubble { max-width: 85%; padding: 8px 12px; border-radius: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }
.bubble.theirs { align-self: flex-start; background: var(--surface); border: 1px solid var(--border); border-start-start-radius: 4px; }
.bubble.mine { align-self: flex-end; background: var(--accent); color: #fff; border-start-end-radius: 4px; }
.bubble.note { align-self: center; background: var(--wash); color: var(--text-2); font-size: 13px; text-align: center; }
.bubble .at { display: block; font-size: 11px; opacity: 0.7; margin-top: 2px; }
.chat-start, .chat-compose { padding: 10px 12px 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.chat input[type=text], .chat input[type=tel], .chat textarea { min-height: 40px; padding: 8px 10px; font-size: 15px; border-radius: 8px; }
.chat-compose { flex-direction: row; flex-wrap: wrap; align-items: flex-end; }
.chat-compose textarea { flex: 1; min-width: 0; resize: none; max-height: 120px; }
.chat-send { padding: 10px 16px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.chat-send:hover { background: var(--accent-hover); }
.chat-send[disabled] { opacity: 0.6; }
.chat-err { color: var(--bad); font-size: 13px; width: 100%; }
.chat-err:empty { display: none; }
.chat .consent { font-size: 12.5px; margin: 0; }
.chat .consent input { width: 18px; height: 18px; }
.has-chat .pub-foot { padding-bottom: 88px; }
@media (max-width: 520px) {
  .chat { inset-inline-end: 12px; bottom: 12px; }
  .chat.open { inset: 0; }
  .chat.open .chat-panel { width: 100%; height: 100%; border-radius: 0; border: 0; }
}


/* Uploaded Hasama identity: 2026-11-07. */
.pub-brand .brand-logo { display: block; width: 36px; height: 36px; flex: 0 0 36px; object-fit: contain; }


/* Referral program (templates/public/refer*.html). */
.nowrap { white-space: nowrap; }
select { font: inherit; color: var(--text); background: var(--surface); width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; min-height: 46px; }
select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
h3 { font-size: 16px; margin: 22px 0 8px; }
.ok-box { background: rgba(12, 163, 12, 0.1); color: var(--text); padding: 12px 14px; border-radius: 10px; margin: 0 0 18px; text-align: start; }
.refer-hero h1 { font-size: clamp(30px, 5.4vw, 44px); }
.refer-hero .callback-intro { margin-bottom: 22px; }
.me-box { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; padding: 14px; margin: 0 0 22px; border-radius: 12px; background: var(--wash); }
.me-box .btn-main { flex: 0 0 auto; }
.refer-steps, .steps { list-style: none; counter-reset: step; padding: 0; margin: 0 0 26px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; text-align: start; }
.refer-steps li, .steps li { counter-increment: step; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 14px 14px 12px; display: flex; flex-direction: column; gap: 4px; }
.refer-steps li::before, .steps li::before { content: counter(step); width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; margin-bottom: 4px; }
.refer-steps strong, .steps strong { font-size: 16px; }
.refer-steps span, .steps span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.refer-form { max-width: 450px; margin: 0 auto; text-align: start; }
.refer-jobs a { align-items: center; }
.refer-jobs .jl-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.refer-jobs .reward { flex: none; background: var(--wash); color: var(--accent); border-radius: 999px; padding: 3px 12px; font-weight: 700; font-size: 14px; }
.terms { margin-top: 26px; color: var(--text-2); font-size: 14px; }
.terms h2 { color: var(--text); }
.terms p { margin: 0 0 8px; }
.refer-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; }
.refer-stats div { background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 8px; }
.refer-stats dt { color: var(--muted); font-size: 13px; }
.refer-stats dd { margin: 2px 0 0; font-size: 24px; font-weight: 750; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 20px; margin-top: 14px; }
.panel h2 { margin-top: 0; }
.panel > .muted { margin-top: -4px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; min-width: 0; font-size: 15px; }
.copy-row .copy-btn { flex: none; border: 0; font: inherit; font-weight: 650; padding: 0 18px; border-radius: 10px; cursor: pointer; }
.share-main { margin-top: 10px; }
.share-jobs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.share-jobs li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; flex-wrap: wrap; }
.share-jobs .sj-text { display: flex; flex-direction: column; min-width: 0; flex: 1 1 200px; }
.share-jobs .sj-text .muted { font-size: 14px; }
.share-jobs .sj-actions { display: flex; gap: 6px; flex: none; }
.sj-wa, .sj-copy { font: inherit; font-size: 14px; font-weight: 650; padding: 8px 12px; border-radius: 9px; border: 0; cursor: pointer; text-decoration: none; }
.sj-wa { background: #1a8f62; color: #fff; }
.sj-copy { background: var(--wash); color: var(--accent); }
.ref-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.ref-list li { border: 1px solid var(--border); border-inline-start: 4px solid var(--accent); border-radius: 10px; padding: 10px 12px; }
.ref-list li.st-good { border-inline-start-color: var(--good); }
.ref-list li.st-muted { border-inline-start-color: var(--border); }
.ref-list li.st-muted p { color: var(--muted); }
.ref-list .rl-head { display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }
.ref-list .rl-head .muted { font-size: 13px; }
.ref-list p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); }
.refer-promo { margin-top: 18px; background: var(--surface); }
@media (max-width: 520px) {
  .refer-steps, .steps, .refer-stats { grid-template-columns: 1fr; }
  .refer-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .refer-stats dd { font-size: 20px; }
  .refer-promo .btn-main, .refer-promo .btn-alt { flex: 1 1 100%; }
}


/* Three separate paths (2026-11-08): לעבוד /work, לגייס /hire, להרוויח /refer. */
.tab-work, .path.work, .path-tag.work, .path-hero.work { --c: var(--work); --c-solid: var(--work-solid); --c-wash: var(--work-wash); }
.tab-hire, .path.hire, .path-tag.hire, .path-hero.hire { --c: var(--hire); --c-solid: var(--hire-solid); --c-wash: var(--hire-wash); }
.tab-earn, .path.earn, .path-tag.earn, .refer-hero, .refer-promo { --c: var(--earn); --c-solid: var(--earn-solid); --c-wash: var(--earn-wash); }
.pub-head { padding-bottom: 10px; }
.pub-tabs { display: flex; gap: 4px; margin-inline-start: auto; padding: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.pub-tabs a { padding: 7px 15px; border-radius: 9px; color: var(--text-2); font-weight: 650; font-size: 15px; text-decoration: none; text-align: center; white-space: nowrap; }
.pub-tabs a:hover { color: var(--text); background: var(--bg); }
.pub-tabs a.on { color: var(--c); background: var(--c-wash); box-shadow: inset 0 0 0 1px var(--c); }
.path-tag { align-self: flex-start; display: inline-block; padding: 2px 12px; border-radius: 999px; background: var(--c-wash); color: var(--c); font-size: 14px; font-weight: 750; }
.home-intro { text-align: center; padding: 18px 4px 2px; }
.home-intro h1 { font-size: clamp(28px, 5vw, 36px); margin: 0 0 6px; }
.home-intro p { color: var(--text-2); max-width: 540px; margin: 4px auto 0; }
.paths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; }
.paths.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.path { display: flex; flex-direction: column; gap: 8px; padding: 18px 16px 16px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--c-solid); border-radius: 14px; color: var(--text); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.path:hover { border-color: var(--c); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.07); }
.path:focus-visible { outline: 2px solid var(--c); outline-offset: 2px; }
.path-title { font-size: 19px; line-height: 1.3; }
.path-text { flex: 1; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.path-go { margin-top: 6px; padding: 11px 14px; border-radius: 10px; background: var(--c-solid); color: #fff; font-weight: 700; text-align: center; }
.path:hover .path-go { filter: brightness(1.08); }
.path-hero { text-align: center; }
.path-hero > .path-tag { margin-bottom: 4px; }
.hero.path-hero h1 { font-size: clamp(28px, 5vw, 36px); margin: 10px 0 8px; }
.callback-hero.path-hero h1 { margin-top: 14px; }
.steps li::before { background: var(--c-solid, var(--accent)); }
.path-hero.hire .steps li::before { background: var(--hire-solid); }
.refer-hero .callback-eyebrow { color: var(--earn); }
.refer-steps li::before { background: var(--earn-solid); }
.refer-promo .path-tag { margin-bottom: 6px; }
.alt-contact { margin: 20px 0 0; color: var(--text-2); font-size: 15px; display: flex; gap: 6px 16px; justify-content: center; flex-wrap: wrap; }
.alt-contact a { font-weight: 650; }
.refer-promo .btn-alt { background: var(--earn-wash); color: var(--earn); }
#hire-form { scroll-margin-top: 16px; }
@media (max-width: 640px) {
  .paths, .paths.two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .refer-steps li, .steps li { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; row-gap: 0; padding: 10px 12px; }
  .refer-steps li::before, .steps li::before { grid-row: span 2; margin: 0; }
}
@media (max-width: 560px) {
  .pub-tabs { margin-inline-start: 0; flex-basis: 100%; }
  .pub-tabs a { flex: 1 1 0; padding: 8px 6px; }
}

/* Worker portal (work.hasama.co.il) and its card on /work. */
.portal-hero h1 { font-size: clamp(30px, 5.4vw, 44px); }
.portal-note { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.remote-work { margin-top: 14px; }
.remote-work .path-go { align-self: flex-start; padding-inline: 22px; }
