:root {
  --bg: #F7F5F0;
  --surface: #FFFFFF;
  --ink: #1F2A26;
  --muted: #55625C;
  --brand: #244F43;
  --brand-ink: #FFFFFF;
  --brand-2: #6F9A7A;
  --sage: #A7B9A0;
  --sage-soft: #E6ECE3;
  --apricot: #DFAD85;
  --apricot-soft: #F6E6D8;
  --line: #E2DED5;
  --todo: #FFF1C2;
  --radius: 18px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10201B;
    --surface: #172B25;
    --ink: #EEF2EF;
    --muted: #A9B7B0;
    --brand: #8FDBB5;
    --brand-ink: #10201B;
    --brand-2: #B9CDB2;
    --sage-soft: #1F362F;
    --apricot-soft: #3A2E25;
    --line: #2A403A;
    --todo: #4A4220;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Arial Hebrew", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }

.wrap { max-width: 920px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--line); }
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 64px; flex-wrap: wrap;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 22px; color: var(--brand);
  text-decoration: none; letter-spacing: -0.01em;
}
.wordmark img { width: 40px; height: auto; }
.w2 { color: var(--brand-2); }
.site-nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--brand); }

/* Hero */
.hero { text-align: center; padding: 48px 0 8px; }
.hero-logo {
  display: block; width: min(300px, 70vw); height: auto; aspect-ratio: 1;
  margin: 0 auto 8px; border-radius: 36px; background: #FAF5ED;
}
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.hero h1 {
  font-size: clamp(40px, 8vw, 64px); line-height: 1.1; margin: 0 0 8px;
  color: var(--brand); letter-spacing: -0.02em;
}
.hero .tagline { font-size: clamp(20px, 3.4vw, 26px); font-weight: 600; margin: 0 0 8px; }
.hero .lead { color: var(--muted); max-width: 560px; margin: 0 auto; }

.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 24px 0 8px; }
.badge {
  display: inline-block; padding: 8px 16px; border-radius: 999px;
  background: var(--sage-soft); color: var(--ink); font-size: 15px; font-weight: 600;
}

/* Sections */
section { padding: 40px 0; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 28px; line-height: 1.25; margin: 0 0 16px; color: var(--brand); }
h3 { font-size: 19px; margin: 0 0 6px; }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px;
}
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .dot {
  width: 12px; height: 12px; border-radius: 50%; display: inline-block;
  margin-inline-end: 8px; background: var(--apricot);
}
.card:nth-child(3n+2) .dot { background: var(--sage); }
.card:nth-child(3n) .dot { background: var(--brand); }

.principles { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.principles li {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 16px;
}

/* Documents (privacy, deletion, support) */
.doc { padding: 40px 0 56px; }
.doc h1 { font-size: clamp(30px, 5vw, 40px); line-height: 1.2; margin: 0 0 8px; color: var(--brand); }
.doc .meta { color: var(--muted); margin: 0 0 24px; font-size: 15px; }
.doc h2 { font-size: 22px; margin: 36px 0 10px; }
.doc ul, .doc ol { padding-inline-start: 22px; }
.doc li { margin: 4px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 8px 0; }
.doc th, .doc td { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.doc th { background: var(--sage-soft); }
.table-scroll { overflow-x: auto; }

.notice {
  background: var(--apricot-soft); border-radius: 14px; padding: 14px 18px; margin: 0 0 24px;
}
.steps { counter-reset: step; list-style: none; padding: 0; }
.steps li {
  counter-increment: step; position: relative; padding-block: 12px; padding-inline: 52px 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin: 8px 0;
}
.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 14px; top: 12px;
  width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
  font-weight: 700; font-size: 14px; display: grid; place-items: center;
}

.button {
  display: inline-block; background: var(--brand); color: var(--brand-ink);
  padding: 12px 22px; border-radius: 14px; font-weight: 700; text-decoration: none;
}

/* Placeholders the owner must fill before publishing */
mark.todo { background: var(--todo); color: inherit; padding: 0 4px; border-radius: 4px; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 15px; }
.site-footer .wrap { display: flex; gap: 12px 24px; flex-wrap: wrap; justify-content: space-between; }
.site-footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

/* Accessibility: skip link and a visible keyboard focus ring */
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 10;
  background: var(--brand); color: var(--brand-ink); padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
a:focus-visible, button:focus-visible, video:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
