/* ===== צרות בהייטק — design system ===== */
:root {
  --paper: #FAF6EF;
  --ink: #111111;
  --accent: #FFD43B;
  --border: 2px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --maxw: 1080px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Varela Round', 'Arial Hebrew', sans-serif;
  font-synthesis: weight;
  line-height: 1.6;
  direction: rtl;
}
/* paper grain */
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 999;
  opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
a { color: var(--ink); }

/* header */
header.site {
  border-bottom: var(--border);
  background: var(--paper);
  position: sticky; top: 0; z-index: 50;
}
header.site .wrap {
  display: flex; align-items: center; gap: 18px;
  min-height: 66px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; }
nav.main { display: flex; gap: 4px; flex-wrap: wrap; margin-inline-start: auto; align-items: center; }
nav.main a {
  text-decoration: none; padding: 6px 12px; border: 2px solid transparent; border-radius: 8px;
  font-size: .95rem;
}
nav.main a:hover { border-color: var(--ink); }
nav.main a.active { background: var(--ink); color: var(--paper); }
nav.main a.cta {
  border: var(--border); background: var(--accent); box-shadow: var(--shadow-sm);
  font-weight: 700; margin-inline-start: 6px;
}
nav.main a.cta:hover { transform: translate(-1px, 1px); box-shadow: 3px 3px 0 var(--ink); }

/* blocks */
.block { border: var(--border); box-shadow: var(--shadow); background: #fff; border-radius: 14px; padding: 24px; }
.block.inverted { background: var(--ink); color: var(--paper); }
.block.accent { background: var(--accent); }
.block + .block { margin-top: 24px; }

/* equal-height card grids: pin the CTA row to the bottom */
.grid > .block { display: flex; flex-direction: column; }
.grid > .block .cta-row { margin-top: auto; margin-bottom: 0; padding-top: 10px; }
.card-link { transition: transform .12s, box-shadow .12s; }
.card-link:hover { transform: translate(-3px, 3px); box-shadow: 3px 3px 0 var(--ink); }

/* staggered hero reveal */
.hero-flex > div > * { animation: rise .5s both; }
.hero-flex > div > *:nth-child(2) { animation-delay: .1s; }
.hero-flex > div > *:nth-child(3) { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

section { padding: 44px 0; }
h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.2; margin: 0 0 14px; }
h2 { font-size: 1.5rem; font-weight: 900; margin: 0 0 12px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
p.lead { font-size: 1.2rem; }
.muted { opacity: .72; font-size: .92rem; }

/* buttons */
.btn {
  display: inline-block; border: var(--border); background: #fff; color: var(--ink);
  padding: 10px 22px; border-radius: 10px; font-family: inherit; font-size: 1rem; font-weight: 700;
  text-decoration: none; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .06s;
}
.btn:hover { transform: translate(-2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn:active { transform: translate(-4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.accent { background: var(--accent); }
.btn.small { padding: 5px 12px; font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* grid */
.grid { display: grid; gap: 24px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; } }

/* forms */
label { display: block; font-weight: 700; margin: 16px 0 4px; }
label .req { color: #c00; }
input, select, textarea {
  width: 100%; padding: 10px 12px; border: var(--border); border-radius: 10px;
  background: #fff; font-family: inherit; font-size: 1rem; color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 3px solid var(--accent); outline-offset: 1px; }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; right: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* badges & job cards */
.badge {
  display: inline-block; border: 2px solid var(--ink); border-radius: 999px;
  padding: 1px 12px; font-size: .82rem; background: #fff;
}
.badge.featured { background: var(--accent); font-weight: 700; }
.job-card { position: relative; }
.job-card.featured { background: #FFF7DC; }
.job-card h3 { font-size: 1.25rem; }
.job-meta { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0 12px; }
.job-desc { white-space: pre-line; }

/* calculator */
.stat-row { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 18px; }
.stat {
  flex: 1; min-width: 140px; border: var(--border); border-radius: 12px; background: #fff;
  padding: 14px 18px; text-align: center; box-shadow: var(--shadow-sm);
}
.stat .num { font-size: 1.7rem; font-weight: 900; direction: ltr; }
.stat.median { background: var(--ink); color: var(--paper); }
.stat.median .num { color: var(--accent); }
.bar-chart { margin-top: 20px; }
.bar-line { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.bar-line .lbl { width: 130px; font-size: .88rem; flex-shrink: 0; }
.bar-line .bar {
  height: 26px; background: var(--ink); border-radius: 4px; min-width: 4px;
  width: var(--w, 0%); animation: growbar .6s ease-out both;
}
.bar-line:nth-child(2) .bar { animation-delay: .07s; }
.bar-line:nth-child(3) .bar { animation-delay: .14s; }
.bar-line:nth-child(4) .bar { animation-delay: .21s; }
.bar-line:nth-child(5) .bar { animation-delay: .28s; }
@keyframes growbar { from { width: 0; } to { width: var(--w, 0%); } }
.bar-line .val { font-size: .85rem; direction: ltr; white-space: nowrap; }
table.mini { border-collapse: collapse; width: 100%; margin-top: 10px; }
table.mini th, table.mini td { border: 2px solid var(--ink); padding: 7px 10px; text-align: right; font-size: .92rem; }
table.mini th { background: var(--ink); color: var(--paper); }

/* footer */
footer.site { border-top: var(--border); margin-top: 40px; padding: 30px 0; }
footer.site .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; align-items: center; }
footer.site nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer.site a { text-decoration: none; }
footer.site a:hover { text-decoration: underline; }
footer.site .socials {
  justify-content: center; margin-top: 22px; padding-top: 20px; gap: 10px;
  border-top: 2px dashed var(--ink); display: flex; flex-wrap: wrap;
}
footer.site .socials a {
  border: var(--border); border-radius: 999px; background: #fff;
  padding: 5px 16px; font-size: .88rem; font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink); transition: transform .1s, box-shadow .1s, background .1s;
}
footer.site .socials a:hover {
  text-decoration: none; background: var(--accent);
  transform: translate(-2px, 2px); box-shadow: 1px 1px 0 var(--ink);
}

/* misc */
.notice { border: var(--border); border-radius: 12px; padding: 14px 18px; background: var(--accent); font-weight: 700; }
.error-box { border: var(--border); border-radius: 12px; padding: 14px 18px; background: #FFB4A8; font-weight: 700; }
.center { text-align: center; }
.spot-embed { border: var(--border); border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; background: #fff; line-height: 0; }
.hero-flex { display: flex; gap: 36px; align-items: center; }
.hero-flex .art { flex-shrink: 0; }
.hero-flex .art img { width: 230px; }
@media (max-width: 720px) { .hero-flex { flex-direction: column-reverse; text-align: center; } }
