/* Swoop public site. Palette B "שכונה ירוקה" - same tokens as src/theme/index.ts in the app.
   No web fonts, no scripts: system font stack, prefers-color-scheme for dark. */

:root {
  color-scheme: light dark;
  --bg: #F2F5F1;
  --surface: #FFFFFF;
  --surface-2: #E6EEE9;
  --text: #17211C;
  --text-2: #55615A;
  --text-3: #6F7A73;
  --brand: #1E5B45;
  --brand-light: #CFE0D6;
  --brand-dark: #174A38;
  --brand-fill: #1E5B45;
  --brand-fill-text: #FFFFFF;
  --highlight: #F4B740;
  --highlight-text: #3F2A00;
  --border: #E2E8E1;
  --radius: 14px;
  --wrap: 760px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Noto Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121815;
    --surface: #1B2420;
    --surface-2: #22302A;
    --text: #ECF1EE;
    --text-2: #A9B4AE;
    --text-3: #8C978F;
    --brand: #7FB89C;
    --brand-light: #1F3A2E;
    --brand-dark: #A8D4BC;
    --border: #2A3630;
  }
}

*, *::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;
}

a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-dark); }
a:focus-visible { outline: 3px solid var(--highlight); outline-offset: 2px; border-radius: 4px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }

.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; color: var(--brand-fill-text); }

/* ---------------------------------------------------------------- header */
.site-header { border-bottom: 1px solid var(--border); background: var(--surface); }
.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: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
}
.brand:hover { color: var(--text); }
.brand img { width: 32px; height: 32px; border-radius: 8px; display: block; }
.lang {
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

/* ---------------------------------------------------------------- legal documents */
main { display: block; padding-block: 32px 48px; }

.doc h1 { font-size: 34px; line-height: 1.2; margin: 0 0 6px; letter-spacing: -0.02em; }
.doc .meta { color: var(--text-3); 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;
  line-height: 1.3;
  margin: 44px 0 10px;
  padding-top: 8px;
  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: 650; }

.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: 650; font-size: 15px; color: var(--text-2); }
.toc ol { margin: 0; padding-inline-start: 22px; columns: 2 220px; column-gap: 24px; }
.toc li { margin-bottom: 4px; font-size: 15px; break-inside: avoid; }

.note {
  background: var(--surface-2);
  border-inline-start: 4px solid var(--brand);
  border-radius: 8px;
  padding: 12px 16px;
  margin: 0 0 16px;
}
.note p:last-child { margin-bottom: 0; }

.table-scroll { overflow-x: auto; margin: 0 0 16px; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  background: var(--surface);
  border-radius: var(--radius);
  overflow: hidden;
}
th, td {
  text-align: start;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}
th { background: var(--surface-2); font-weight: 650; }
.table-scroll table.wide { min-width: 720px; }
.table-scroll { -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
tr:last-child td { border-bottom: 0; }

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

/* ---------------------------------------------------------------- home page */
.hero { padding-block: 24px 8px; }
.hero-mark { width: 72px; height: 72px; border-radius: 18px; display: block; margin-bottom: 20px; }
.hero h1 { font-size: 40px; line-height: 1.12; margin: 0 0 14px; letter-spacing: -0.025em; }
.hero p { font-size: 19px; color: var(--text-2); margin: 0 0 18px; max-width: 34em; }
.badge {
  display: inline-block;
  background: var(--highlight);
  color: var(--highlight-text);
  font-weight: 700;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 999px;
}

.section { margin-top: 48px; }
.section h2 { font-size: 26px; line-height: 1.25; margin: 0 0 16px; letter-spacing: -0.015em; }

.cards { display: grid; gap: 12px; grid-template-columns: 1fr; padding: 0; margin: 0; list-style: none; }
@media (min-width: 620px) { .cards { grid-template-columns: 1fr 1fr; } }
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.card h3 { font-size: 18px; margin: 0 0 6px; }
.card p { margin: 0; color: var(--text-2); font-size: 16px; }
.card .num {
  display: inline-flex;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--brand-light);
  color: var(--brand-dark);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 10px;
}

.plain-list { padding-inline-start: 22px; }
.plain-list li { margin-bottom: 10px; }

/* ---------------------------------------------------------------- footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 24px 32px;
  font-size: 15px;
  color: var(--text-2);
}
.site-footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.site-footer p { margin: 0 0 6px; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .doc h1 { font-size: 29px; }
  .hero h1 { font-size: 32px; }
  .doc h2 { font-size: 21px; }
}

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