/* The client portal, in Tamritz's own look (tamritz.co.il): the teal of the
   site's hero, its yellow pill buttons, Simple CLM for headings and Noto Sans
   Hebrew for text. Designed in the mockup of 28.09.2026. */

@font-face { font-family: SimpleCLM; font-weight: 400; src: url(simpleclm-medium-webfont.woff) format("woff"); }
@font-face { font-family: SimpleCLM; font-weight: 700; src: url(simpleclm-bold-webfont.woff) format("woff"); }

:root {
  --teal: #008E98; --teal-2: #3E888D; --teal-ink: #006B73; --teal-deep: #004F55; --teal-tint: #E0F2F3;
  --yellow: #FACC2E; --yellow-tint: #FFF7DB; --on-yellow: #1F2A2E;
  --ink: #313131; --ink-2: #4A4A4A; --muted: #595959;
  --bg: #F5F5F5; --card: #FFFFFF; --line: #E3E7E4; --line-2: #D5DBD8; --soft: #EEEEEE;
  --lv1: #1F6E47; --lv1-bg: #E4F2EA; --lv2: #8A5000; --lv2-bg: #FBF0DC;
  --lv3: #34509E; --lv3-bg: #E6EBF7; --lv4: #4F5B61; --lv4-bg: #ECEFEE;
  --urgent: #B3261E; --urgent-bg: #FDECEA;
  --head: SimpleCLM, "Noto Sans Hebrew", sans-serif;
}
* { box-sizing: border-box; }
/* A layout class (display:flex) must never beat the hidden attribute — it did,
   twice (HISTORY §66–66). */
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: "Noto Sans Hebrew", "Segoe UI", sans-serif; font-size: 15px; line-height: 1.6; }
a { color: var(--teal-ink); }
a:hover { color: var(--teal-deep); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
h1, h2, h3 { margin: 0; }
h1 { font-family: var(--head); font-weight: 700; font-size: 36px; line-height: 1.2; }
h2 { font-size: 19px; }
p { margin: 0; }

/* header */
.top { display: flex; align-items: stretch; gap: 28px; height: 72px; padding: 0 40px; background: var(--card); border-bottom: 3px solid var(--teal); }
.top .logo { height: 46px; align-self: center; }
.top nav { display: flex; gap: 4px; flex: 1; font-weight: 600; }
.top nav a { display: flex; align-items: center; padding: 0 14px; color: var(--ink-2); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -3px; }
.top nav a[aria-current="page"] { color: var(--teal-ink); border-bottom-color: var(--teal-ink); }
.top .who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.avatar { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%; background: var(--teal-tint); color: var(--teal-ink); font-weight: 700; }
.lang-note { padding: 6px 40px; background: var(--yellow-tint); color: var(--ink-2); font-size: 13px; }
.demo-flag { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 50px; background: var(--yellow-tint); color: var(--lv2); }

/* layout */
.page { max-width: 1360px; margin: 0 auto; padding: 32px 40px 64px; display: flex; flex-direction: column; gap: 22px; }
.cols { display: flex; gap: 24px; align-items: flex-start; }
.cols > .main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cols > aside { width: 400px; flex-shrink: 0; display: flex; flex-direction: column; gap: 16px; }
.hero { background: linear-gradient(180deg, var(--teal) 0%, var(--teal-2) 100%); color: #fff; padding: 26px 40px 30px; }
.hero .inner { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 8px; }
.hero a { color: #fff; }
.hero .sub { color: #EAF6F7; font-size: 14px; }
.lead { color: var(--ink-2); }
.muted { color: var(--muted); font-size: 13.5px; }
.card { background: var(--card); border-radius: 16px; padding: 22px 26px; display: flex; flex-direction: column; gap: 12px; }
.card.accent { border-top: 4px solid var(--teal); }
.grid { display: grid; gap: 12px; }
.grid.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.tile { padding: 16px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.row { display: flex; align-items: center; gap: 14px; padding-top: 12px; border-top: 1px solid var(--soft); }
.row .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bigdate { font-family: var(--head); font-weight: 700; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }

/* controls */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 24px; border: 0; border-radius: 50px; background: var(--yellow); color: var(--on-yellow); font-weight: 700; text-decoration: none; }
.btn:hover { color: var(--on-yellow); filter: brightness(0.97); }
.btn[disabled] { background: var(--lv4-bg); color: var(--muted); cursor: not-allowed; }
.btn.ghost { background: var(--card); border: 1px solid var(--line-2); color: var(--ink); }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 14px; }
.chip { display: inline-flex; align-items: center; padding: 3px 12px; border-radius: 50px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.pill { min-height: 40px; padding: 0 16px; border-radius: 50px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: 14px; }
.pill[aria-pressed="true"] { background: var(--teal-ink); border-color: var(--teal-ink); color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
label.field { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
input[type=text], input[type=email], input[type=tel], input[type=number], select, textarea { min-height: 46px; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; font-weight: 400; color: var(--ink); }
textarea { resize: vertical; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--teal-ink); }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }

.lv-1 { color: var(--lv1); background: var(--lv1-bg); } .lv-2 { color: var(--lv2); background: var(--lv2-bg); }
.lv-3 { color: var(--lv3); background: var(--lv3-bg); } .lv-4 { color: var(--lv4); background: var(--lv4-bg); }
.mark { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; font-weight: 700; }
.ok { color: var(--lv1); background: var(--lv1-bg); } .warn { color: var(--lv2); background: var(--lv2-bg); }
.unk { color: var(--lv4); background: var(--lv4-bg); }
.notice { padding: 14px 16px; border-radius: 12px; background: var(--yellow-tint); }
.error { padding: 14px 16px; border-radius: 12px; background: var(--urgent-bg); color: var(--urgent); font-weight: 600; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.drop { border: 2px dashed #B9C7C3; border-radius: 16px; background: #fff; padding: 36px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.drop.over { border-color: var(--teal); background: var(--teal-tint); }

/* programme cards on the map */
.prog { background: var(--card); border-radius: 14px; padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.prog .head { display: flex; gap: 20px; align-items: center; }
.prog .boxes { display: grid; grid-template-columns: repeat(2, 120px); gap: 8px; flex-shrink: 0; }
.prog .box { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 84px; padding: 6px; border-radius: 10px; background: #F3F5F4; text-align: center; }
.prog .box b { font-size: 16px; line-height: 1.25; }
.prog .depends { font-size: 14px; padding: 8px 12px; background: var(--bg); border-radius: 8px; }
.prog .foot { display: flex; align-items: center; gap: 16px; font-size: 14px; flex-wrap: wrap; }

/* a fact on the profile: its question, the value, the actions */
.fact-row { align-items: flex-start; padding: 14px 0; }
.fact-row .q { width: 210px; flex-shrink: 0; font-weight: 600; color: var(--ink-2); }

/* phone */
.bottom-nav { display: none; }
/* The client's process in one tab (HISTORY §79): a progress bar, the open step under it. */
.flow-bar { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.flow-bar .step { all: unset; box-sizing: border-box; width: 100%; height: 100%; cursor: pointer; display: flex; flex-direction: column; gap: 2px;
  padding: 12px; border-radius: 12px; background: var(--card); border: 2px solid transparent; }
.flow-bar .step:focus-visible { outline: 2px solid var(--teal-ink); outline-offset: 2px; }
.flow-bar .step.done { background: var(--teal-tint); color: var(--teal-ink); }
.flow-bar .step.here { border-color: var(--teal-ink); }
.flow-bar .num { font-size: 12.5px; font-weight: 700; }
.flow-bar .t { font-weight: 700; font-size: 14.5px; }
.flow-bar .n { font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.flow-bar .step.done .n { color: var(--teal-ink); }
.flow-card { gap: 16px; }
.flow-body { display: flex; flex-direction: column; gap: 16px; }
.flow-body h3 { font-size: 16.5px; margin: 8px 0 0; }
.flow-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--soft); flex-wrap: wrap; }
/* The board (HISTORY §117): what waits, the details beside the questions. */
.waits { gap: 4px; }
.waits .wait { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 0; border-top: 1px solid var(--soft); }
.waits .wait .dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--lv2, #8A5000); }
.waits .wait.here .dot { background: var(--teal-ink); }
.two-up { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.two-up > .side-qs { padding: 16px; border-radius: 12px; background: var(--bg); display: flex; flex-direction: column; gap: 4px; }
.flow-bar.compact .step { padding: 8px 10px; }
@media (max-width: 900px) { .two-up { grid-template-columns: 1fr; } }
.qbox { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--soft); }
.help summary { cursor: pointer; color: var(--teal-ink); font-weight: 600; font-size: 14px; }
.help p { margin: 6px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--bg); font-size: 14.5px; }
.ok-line { color: var(--lv1); font-weight: 600; }
/* Why? (HISTORY §100): a question from us, above the open step */
.talk { display: flex; flex-direction: column; gap: 8px; padding-top: 10px; border-top: 1px solid var(--soft); }

/* Client feedback (HISTORY §81): small, closable, never in the way. */
.fb-form { display: flex; flex-direction: column; gap: 12px; }
.fb-row { display: flex; flex-direction: column; gap: 6px; }
.fb-q { font-weight: 600; font-size: 15px; }
.fb-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.fb-head { display: flex; gap: 10px; align-items: baseline; }
.fb-x { border: 0; background: none; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; }
.linkish { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13.5px; padding: 0; }
.pill.small { min-height: 32px; padding: 0 10px; }
.fb-dialog { border: 0; border-radius: 16px; padding: 18px 20px; width: min(520px, calc(100vw - 32px)); box-shadow: 0 12px 32px rgba(0, 60, 66, .25); }
.fb-dialog[open] { display: flex; flex-direction: column; gap: 10px; }
.fb-dialog::backdrop { background: rgba(0, 40, 44, .35); }
.fb-prog { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13.5px; }
.fb-prog:has(.fb-form) { flex-basis: 100%; padding-top: 8px; border-top: 1px solid var(--soft); }
select[multiple] { min-height: 0; padding: 6px; }

@media (max-width: 760px) {
  .top { padding: 0 16px; height: 64px; gap: 12px; }
  .top .logo { height: 40px; }
  .top nav, .top .who .name { display: none; }
  .top .who { margin-inline-start: auto; gap: 8px; }
  .top .who .btn.small { padding: 0 9px; font-size: 13px; }
  /* five pages and the header's buttons fit a phone (HISTORY §117) */
  .top { gap: 8px; } .top .logo { height: 34px; } .top .who { gap: 6px; } .top .who span.avatar { display: none; } /* a signed-in avatar is the way to "החשבון שלי": it stays (HISTORY §131) */
  .lang-note { padding: 6px 16px; }
  .fact-row { flex-wrap: wrap; }
  .fact-row .q { width: 100%; }
  .fact-row .grow { flex-basis: 60%; }
  .page { padding: 16px 16px 150px; gap: 16px; }
  .hero { padding: 20px 16px 24px; }
  h1 { font-size: 28px; }
  .cols { flex-direction: column; }
  .cols > aside { width: 100%; }
  .grid.g2, .grid.g3 { grid-template-columns: 1fr; }
  .grid.g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* a compact bar on a phone (HISTORY §117): number and title, four to a row; "what waits" says the rest */
  .flow-bar { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .flow-bar .step { padding: 6px 8px; } .flow-bar .n { display: none; } .flow-bar .t { font-size: 12.5px; line-height: 1.3; }
  .card { padding: 18px; }
  .prog .head { flex-direction: column; align-items: stretch; }
  .prog .boxes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottom-nav { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; inset: auto 0 0 0; height: 68px; background: #fff; border-top: 1px solid var(--line); z-index: 5; font-size: 12.5px; font-weight: 600; }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--muted); text-decoration: none; }
  .bottom-nav a[aria-current="page"] { color: var(--teal-ink); }
  .report-action { position: fixed; inset: auto 0 68px 0; padding: 10px 16px; background: #fff; border-top: 1px solid var(--line); z-index: 4; }
  .report-action .btn { width: 100%; }
}

/* "כך הבנו אתכם" (HISTORY §91): the company's description, main field and themes */
.field { display: flex; flex-direction: column; gap: 6px; }
.field select { max-width: 360px; min-height: 44px; }
.theme-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.theme-group { border: 1px solid var(--line-2); border-radius: 12px; padding: 8px 12px; margin: 0; }
.theme-group legend { font-weight: 700; font-size: 14px; padding: 0 4px; }
.theme { display: flex; gap: 8px; align-items: baseline; font-size: 14px; padding: 3px 0; }
.theme input { width: auto; }

/* The legal documents, at the foot of every page (tamritz/legal.py) */
.legal-foot { padding: 18px 40px 24px; text-align: center; font-size: 13px; color: var(--muted); }
.legal-foot a { color: var(--muted); }
.legal-doc { line-height: 1.75; }
.legal-doc h1 { font-size: 30px; } .legal-doc h2 { font-size: 20px; margin-top: 18px; } .legal-doc h3 { font-size: 17px; margin-top: 12px; }
.legal-doc p, .legal-doc ul, .legal-doc ol { margin: 6px 0; }
.legal-doc table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 14px; }
.legal-doc th, .legal-doc td { border: 1px solid var(--line, #ddd); padding: 6px 8px; text-align: start; vertical-align: top; }
.legal-doc th { background: var(--soft, #f6f6f6); }
.legal-doc ul, .legal-doc ol { padding-inline-start: 26px; }
.draft-banner { padding: 12px 16px; border-radius: 12px; background: var(--urgent-bg); color: var(--urgent); font-weight: 700; }
@media (max-width: 760px) {
  .legal-foot { padding: 16px 16px 24px; }
  body:has(.bottom-nav) .legal-foot { padding-bottom: 84px; }
}
