:root {
  --bg: #fafaf7;
  --fg: #1c1c1c;
  --muted: #5d5d5d;
  --card: #ffffff;
  --line: #e3e1da;
  --accent: #1f4e8c;
  --accent-fg: #ffffff;
  --c1: #3d6fb6;
  --c2: #d98b2b;
  --c3: #4a9d77;
  --c4: #8a63b5;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #15171a;
    --fg: #ececec;
    --muted: #a5a5a5;
    --card: #1e2126;
    --line: #2d3138;
    --accent: #6ea3ea;
    --accent-fg: #0d1a2b;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Segoe UI", "Arial Hebrew", Arial, system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
}
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px; }
header.hero { padding: 40px 0 24px; text-align: center; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .02em; margin: 0 0 8px; }
h1 { font-size: clamp(28px, 6vw, 42px); line-height: 1.25; margin: 0 0 16px; }
h2 { font-size: 24px; margin: 40px 0 12px; line-height: 1.3; }
.lead { font-size: 20px; color: var(--muted); margin: 0 0 24px; }
.back { display: inline-block; margin: 16px 0 0; color: var(--accent); font-size: 16px; }
.btn {
  display: inline-block;
  background: var(--accent);
  color: var(--accent-fg);
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 20px;
  padding: 14px 36px;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
}
.btn:hover { filter: brightness(1.08); }
.btn.secondary { background: transparent; color: var(--accent); border: 2px solid var(--accent); font-size: 17px; padding: 10px 22px; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px;
  margin: 16px 0;
}
.quote { font-size: 22px; font-weight: 700; text-align: center; margin: 32px 0; line-height: 1.5; }

/* seat bar */
.bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; direction: rtl; margin: 12px 0 6px; }
.bar div { display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 15px; min-width: 0; }
.bar .rest { background: var(--line); color: var(--muted); }
.scale { position: relative; height: 24px; direction: rtl; font-size: 14px; color: var(--muted); }
.scale span { position: absolute; transform: translateX(50%); white-space: nowrap; }
.scale .tick { position: absolute; top: -8px; width: 2px; height: 8px; background: var(--fg); }
.legend { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 16px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-inline-end: 6px; vertical-align: -1px; }
.note { color: var(--muted); font-size: 16px; }

/* audience buttons on the hub page */
.choices { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.choice {
  display: block;
  text-decoration: none;
  color: var(--fg);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 18px 16px;
  line-height: 1.4;
}
.choice:hover { border-color: var(--accent); }
.choice b { display: block; font-size: 19px; margin-bottom: 4px; }
.choice span { color: var(--accent); font-size: 16px; font-weight: 600; }
@media (max-width: 520px) { .choices { grid-template-columns: 1fr; } }

.choice[aria-current="true"] { border-color: var(--accent); }

/* group text opens in a frame below the buttons */
.panel { background: var(--card); border: 2px solid var(--accent); border-radius: 12px; padding: 20px 22px; margin: 16px 0; }
.panel[hidden] { display: none; }
.panel h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; }
.panel p { margin: 0 0 12px; }
.panel p:last-child { margin-bottom: 0; }

.others { list-style: none; padding: 0; margin: 8px 0; }
.others li { margin: 6px 0; }
.others a { color: var(--accent); }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 19px; }
details p { margin: 8px 0 4px; }

.share { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 16px 0; }
.cta { text-align: center; margin: 32px 0; }
footer { border-top: 1px solid var(--line); margin-top: 56px; padding: 20px 0 40px; font-size: 14px; color: var(--muted); text-align: center; }
footer a { color: inherit; }
/* hub: three key ideas */
.hero h1.big { font-size: clamp(30px, 7vw, 48px); }
.hero .sub { font-size: 20px; color: var(--muted); margin: 0 0 28px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 18px 16px; counter-increment: step; line-height: 1.5; }
.steps li::before {
  content: counter(step);
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-fg); font-weight: 700; margin-bottom: 10px;
}
.steps b { display: block; font-size: 20px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 17px; }
@media (max-width: 640px) { .steps { grid-template-columns: 1fr; } }
/* step 4 is the result: full width, highlighted */
.steps li:nth-child(4) { grid-column: 1 / -1; background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.steps li:nth-child(4)::before { background: var(--accent-fg); color: var(--accent); }
.steps li:nth-child(4) span { color: inherit; opacity: .9; }

/* group pages: get / give */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 24px 0; }
.two-col .card { margin: 0; }
.two-col h2 { margin: 0 0 8px; font-size: 21px; }
.two-col ul { margin: 0; padding-inline-start: 20px; }
.two-col li { margin: 6px 0; }
.two-col .get { border-top: 4px solid var(--c3); }
.two-col .give { border-top: 4px solid var(--c2); }
@media (max-width: 640px) { .two-col { grid-template-columns: 1fr; } }
.q { font-weight: 700; margin-bottom: 2px; }
.fullink { text-align: center; margin: 8px 0 0; font-size: 16px; }
.fullink a { color: var(--accent); }

/* share row: compact pills in each service's colour */
.share { gap: 8px; }
.share .btn.secondary {
  border: 0;
  border-radius: 999px;
  padding: 9px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}
#share-wa { background: #128c7e; }
#share-tg { background: #1d8fc8; }
#share-x { background: #111; }
#share-fb { background: #1877f2; }
#share-copy { background: var(--card); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line); }
@media (prefers-color-scheme: dark) {
  #share-x { background: #2e3239; }
}
.share .btn.secondary:hover { filter: brightness(1.12); }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
