/* Public site. Palette "Ink & Saffron" (tokens from pros-app/src/theme/index.ts). Heebo self-hosted (SIL OFL, fonts/OFL.txt).
   No scripts. Light + dark via prefers-color-scheme. Logical properties throughout, so RTL just works. */

@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/heebo-hebrew.woff2) format("woff2");
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: "Heebo";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url(fonts/heebo-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;
  /* values from pros-app/src/theme/index.ts (lightColors) */
  --bg: #F6F5F2;                /* background */
  --surface: #FFFFFF;           /* surface */
  --surface-2: #ECEAE4;         /* surfaceSecondary */
  --text: #1F2430;              /* textPrimary */
  --text-2: #555967;            /* textSecondary */
  --brand: #1F2430;             /* brand: links, text in brand colour */
  --brand-fill: #1F2430;        /* brandFill: buttons, filled surfaces */
  --brand-fill-text: #FFFFFF;   /* brandFillText */
  --brand-soft: #ECEAE4;        /* brandMid */
  --bubble-out: #1F2430;        /* bubbleOutgoing */
  --bubble-out-text: #FFFFFF;   /* bubbleOutgoingText */
  --star: #F5B301;              /* star / highlight: stars and one highlight */
  --highlight-soft: #FDF1DC;    /* warningLight */
  --highlight-text: #3F2A00;    /* highlightText */
  --on-star: #3F2A00;           /* highlightText, on a saffron fill */
  --focus: #1F2430;             /* brand */
  --border: #E6E3DB;            /* border */
  --border-strong: #CFCBC0;     /* borderStrong */
  --shadow: 31 36 48;           /* textPrimary as rgb, for shadows */
  --radius: 16px;
  --wrap: 1080px;
  --doc: 760px;
  --font: "Heebo", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Hebrew", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    /* darkColors */
    --bg: #0B0D12;
    --surface: #151820;
    --surface-2: #1D212B;
    --text: #F1EFEA;
    --text-2: #ABADB6;
    --brand: #F5B301;
    --brand-fill: #F5B301;
    --brand-fill-text: #11141B;
    --brand-soft: #3A3115;      /* brandLight */
    --bubble-out: #353B4C;
    --bubble-out-text: #FFFFFF;
    --highlight-soft: #3A2B12;  /* warningLight */
    --highlight-text: #E8B15C;  /* warning */
    --focus: #F5B301;
    --border: #262B37;
    --border-strong: #363C4A;
    --shadow: 0 0 0;            /* cardShadow */
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  overflow-wrap: break-word;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3 { line-height: 1.2; letter-spacing: -0.015em; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { letter-spacing: 0; }
a { color: var(--brand); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

.ic { width: 24px; height: 24px; flex: none; display: block; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
main:not(.home) > .wrap { max-width: var(--doc); }

.skip {
  position: absolute;
  inset-inline-start: 16px;
  top: -60px;
  background: var(--brand-fill);
  color: var(--brand-fill-text);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 21px; }
.brand-mark { display: block; width: 34px; height: 34px; border-radius: 9px; flex: none; }
.lang {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
}
@media (hover: hover) { .lang:hover { background: var(--brand-soft); } }

main { display: block; padding-block: 32px 56px; }
main.home { padding-block: 0 24px; }

/* ---------------------------------------------------------------- home: hero */
.hero { padding-block: 40px 48px; }
.hero-grid { display: grid; gap: 40px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 14px;
  font-weight: 600;
}
.eyebrow .ic { width: 16px; height: 16px; }
.hero h1 { font-size: clamp(34px, 8.5vw, 54px); font-weight: 800; margin: 0 0 16px; }
.hero h1 .accent { color: var(--brand); text-decoration: underline; text-decoration-color: var(--star); text-decoration-thickness: 0.14em; text-underline-offset: 0.14em; text-decoration-skip-ink: none; }
.hero .lead { font-size: 19px; color: var(--text-2); margin: 0 0 28px; max-width: 34em; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  background: var(--brand-fill);
  color: var(--brand-fill-text);
}
.button--ghost { background: transparent; color: var(--brand); border: 1px solid var(--border-strong); }
@media (hover: hover) {
  .button:hover { filter: brightness(1.08); }
  .button--ghost:hover { background: var(--brand-soft); filter: none; }
}

/* example profile + quote, drawn in HTML */
.demo { margin: 0; position: relative; max-width: 400px; width: 100%; justify-self: center; }
.demo-tag {
  position: absolute;
  top: -12px;
  inset-inline-end: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  font-size: 12px;
  font-weight: 700;
  z-index: 2;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 1px 2px rgb(var(--shadow) / 6%), 0 12px 32px rgb(var(--shadow) / 8%);
}
.profile { padding: 20px; }
.profile-head { display: flex; gap: 14px; align-items: center; }
.avatar {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
  font-size: 22px;
  flex: none;
}
.profile-head h2 { margin: 0; font-size: 19px; letter-spacing: 0; }
.profile-head p { margin: 0; color: var(--text-2); font-size: 15px; }
.rating { display: flex; align-items: center; gap: 6px; margin: 14px 0 12px; font-size: 15px; color: var(--text-2); }
.rating strong { color: var(--text); font-size: 17px; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars .ic { width: 18px; height: 18px; fill: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px;
  font-weight: 600;
}
.chips .ic { width: 16px; height: 16px; color: var(--brand); }

.chat { margin-top: 14px; padding: 16px; display: grid; gap: 10px; }
.bubble { max-width: 85%; padding: 9px 14px; border-radius: 16px; font-size: 15px; margin: 0; }
.bubble--me { justify-self: end; background: var(--bubble-out); color: var(--bubble-out-text); border-end-end-radius: 4px; }
.quote { justify-self: start; width: 85%; border: 1px solid var(--border-strong); border-radius: 14px; padding: 12px 14px; background: var(--bg); }
.quote-label { display: flex; align-items: center; gap: 6px; margin: 0 0 4px; font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: 0.04em; }
[dir="rtl"] .quote-label { text-transform: none; letter-spacing: 0; }
.quote-label .ic { width: 16px; height: 16px; }
/* a direction arrow points the reading way */
[dir="rtl"] .ic-forward { transform: scaleX(-1); }
.quote-title { margin: 0; font-weight: 700; }
.quote-meta { margin: 0 0 10px; color: var(--text-2); font-size: 15px; }
.quote-btn { display: block; text-align: center; padding: 7px; border-radius: 10px; background: var(--brand-fill); color: var(--brand-fill-text); font-weight: 700; font-size: 15px; }

/* ---------------------------------------------------------------- home: sections */
.section { padding-block: 48px; border-top: 1px solid var(--border); }
.section-head { max-width: 40em; margin-bottom: 28px; }
.kicker { margin: 0 0 6px; color: var(--brand); font-weight: 700; font-size: 15px; }
.section h2 { font-size: clamp(26px, 6vw, 36px); font-weight: 800; margin: 0 0 10px; }
.section-head p:last-child { margin: 0; color: var(--text-2); font-size: 18px; }

.features { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.features li {
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 14px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.features .ic-wrap { grid-row: span 2; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.features h3 { margin: 0 0 4px; font-size: 18px; }
.features p { margin: 0; color: var(--text-2); }

.steps { counter-reset: step; display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 20px;
  padding-inline-start: 68px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 18px;
  top: 16px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand-fill);
  color: var(--brand-fill-text);
  font-weight: 800;
}
.steps li:last-child::before { background: var(--star); color: var(--on-star); }
.steps strong { display: block; font-size: 18px; }
.steps span { color: var(--text-2); }

.soon {
  display: grid;
  gap: 16px;
  align-items: center;
  padding: 28px 24px;
  border-radius: 20px;
  background: var(--brand-fill);
  color: var(--brand-fill-text);
}
.soon .ic { width: 40px; height: 40px; }
.soon h2 { margin: 0 0 6px; font-size: clamp(24px, 6vw, 32px); font-weight: 800; }
.soon p { margin: 0; opacity: 0.92; }

@media (min-width: 640px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .soon { grid-template-columns: auto 1fr; padding: 32px; }
}
@media (min-width: 920px) {
  .hero { padding-block: 72px 80px; }
  .hero-grid { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .features--4 { grid-template-columns: repeat(4, 1fr); }
  .features--4 li { display: block; padding: 20px; }
  .features--4 .ic-wrap { margin-bottom: 14px; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 64px 20px 20px; padding-inline-start: 20px; }
  .steps li::before { top: 18px; inset-inline-start: 20px; }
}

/* ---------------------------------------------------------------- documents */
.doc h1 { font-size: clamp(30px, 7vw, 38px); font-weight: 800; margin: 0 0 8px; }
.doc .meta { color: var(--text-2); font-size: 15px; margin: 0 0 24px; }
.doc .lead { font-size: 19px; color: var(--text-2); margin: 0 0 28px; }
.doc h2 { font-size: 23px; margin: 44px 0 10px; scroll-margin-top: 16px; }
.doc h3 { font-size: 18px; margin: 26px 0 6px; }
.doc p, .doc ul, .doc ol { margin: 0 0 14px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin-bottom: 6px; }
.doc strong { font-weight: 700; }

.draft {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin: 16px 0 20px;
  padding: 14px 16px;
  border-radius: 12px;
  background: var(--highlight-soft);
  color: var(--highlight-text);
  border-inline-start: 4px solid var(--star);
}
.draft p { margin: 0; }
.draft strong { color: inherit; }
.ph { background: var(--highlight-soft); color: var(--highlight-text); border-radius: 4px; padding-inline: 2px; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 8px; }
.toc p { margin: 0 0 8px; font-weight: 700; font-size: 15px; color: var(--text-2); }
.toc ol { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 24px; }
.toc li { margin-bottom: 4px; font-size: 15px; break-inside: avoid; }

.note { background: var(--brand-soft); border-radius: 12px; padding: 14px 16px; margin: 0 0 18px; }
.note p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: start; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 560px) {
  /* stack tables on a phone: no sideways scrolling */
  .table-scroll { border: 0; background: none; overflow: visible; }
  .table-scroll thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .table-scroll table, .table-scroll tbody, .table-scroll tr, .table-scroll td { display: block; width: 100%; }
  .table-scroll tr { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; padding: 6px 0; }
  .table-scroll td { border: 0; padding: 4px 14px; }
  .table-scroll td:first-child { font-weight: 700; }
  .table-scroll td[data-label]::before { content: attr(data-label); display: block; font-size: 13px; font-weight: 700; color: var(--text-2); }
}

.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list > li { counter-increment: s; position: relative; padding-inline-start: 42px; margin-bottom: 12px; min-height: 30px; }
.steps-list > li::before {
  content: counter(s);
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--brand-fill);
  color: var(--brand-fill-text);
  font-weight: 800;
  font-size: 15px;
}

/* ---------------------------------------------------------------- footer */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding-block: 28px; font-size: 15px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--border); }
.foot-brand { font-size: 18px; }
.foot-brand .brand-mark { width: 28px; height: 28px; border-radius: 7px; }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0; padding: 0; list-style: none; }
.site-footer nav a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.site-footer nav a[aria-current="page"] { color: var(--brand); }
@media (hover: hover) { .site-footer nav a:hover { color: var(--brand); text-decoration: underline; } }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 16px; color: var(--text-2); }
.foot-bottom p { margin: 0; }

@media print {
  .site-header, .site-footer, .toc, .skip { display: none; }
  body { background: #FFFFFF; color: #000000; }
}
