/* ---------- fonts (self-hosted Rubik, variable 400–700) ---------- */
@font-face {
  font-family: "Rubik";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/rubik-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: "Rubik";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url(fonts/rubik-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;
}

/* ---------- tokens ---------- */
:root {
  --navy: #222546;
  --navy-2: #2a2e57;
  --paper: #fbfefe;
  --ink: #222546;
  --muted: #474866;
  --accent: #2d9cca;
  --steel: #29658a;
  --tick-unread: #8a8fa8;
  --tick-read: #53bdeb; /* WhatsApp "seen" blue */
  --light-bg: #fbfefe;
  --light-ink: #222546;
  --radius: 14px;
  --wrap: 1140px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --light-bg: #1a1c36;
    --light-ink: #e9ebf5;
  }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-weight: 400;
  line-height: 1.5;
  color: var(--paper);
  background: var(--navy);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- hero / typewriter ---------- */
.hero {
  padding: 48px 24px;
  text-align: center;
  background:
    radial-gradient(60% 120% at 50% 0%, rgba(45, 156, 202, .18), transparent 70%),
    var(--navy);
}
.prompt {
  margin: 0;
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 600;
  line-height: 1.2;
  min-height: 1.2em;
}
.caret { color: var(--accent); font-weight: 500; }
.cursor {
  display: inline-block;
  width: .08em;
  height: .9em;
  margin-inline-start: .06em;
  vertical-align: -.08em;
  background: currentColor;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ---------- "לא חבל?" band ---------- */
.sigh { background: var(--light-bg); color: var(--light-ink); overflow: hidden; }
.sigh__inner {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 170px;
}
.sigh__text {
  max-width: 30ch;
  margin: 0;
  padding: 36px 0;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.35;
  text-align: center;
  align-self: center;
}
.sigh__text strong { font-weight: 600; color: var(--accent); }
.sigh__guy {
  position: absolute;
  bottom: 0;
  inset-inline-start: 0;
  width: 200px;
  transform-origin: 50% 100%;
}
@media (prefers-reduced-motion: no-preference) {
  .sigh__guy { animation: grumble 4s ease-in-out infinite; }
  @keyframes grumble {
    0%, 80%, 100% { transform: rotate(0); }
    84% { transform: rotate(-2.5deg); }
    88% { transform: rotate(2.5deg); }
    92% { transform: rotate(-1.5deg); }
    96% { transform: rotate(1deg); }
  }
}

/* ---------- manifesto ---------- */
.manifesto { padding: 72px 0; }
.manifesto__grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 56px;
  align-items: center;
}
.headline {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 60px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.01em;
}
.subhead { margin: 8px 0 0; font-size: clamp(22px, 2.6vw, 30px); opacity: .92; }
.declare {
  margin: 40px 0 18px;
  font-size: 26px;
  font-weight: 600;
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.ticks li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  align-items: start;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.5;
}
.tick {
  width: 34px;
  height: 24px;
  margin-top: .2em;
  fill: none;
  stroke: var(--tick-read);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* "seen" animation: ticks start grey and turn blue as they scroll into view */
.js .ticks li .tick { stroke: var(--tick-unread); transition: stroke .35s ease; }
.js .ticks li.seen .tick { stroke: var(--tick-read); }
@media (prefers-reduced-motion: no-preference) {
  .js .ticks li { opacity: 0; transform: translateY(10px); transition: opacity .5s ease, transform .5s ease; }
  .js .ticks li.in { opacity: 1; transform: none; }
}

/* ---------- before / after ---------- */
.compare-card { margin: 0; }
.compare {
  position: relative;
  aspect-ratio: 435 / 575;
  border: 10px solid var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55);
  direction: ltr;
  user-select: none;
  touch-action: pan-y;
}
.compare__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.compare__after { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  width: 3px;
  transform: translateX(-50%);
  background: var(--steel);
  pointer-events: none;
}
.compare__handle::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 34px;
  height: 54px;
  transform: translate(-50%, -50%);
  border: 3px solid var(--paper);
  border-radius: 999px;
  background:
    linear-gradient(var(--paper), var(--paper)) 40% 50% / 2px 18px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 60% 50% / 2px 18px no-repeat,
    var(--steel);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .3);
}
.compare__range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.compare:has(.compare__range:focus-visible) { outline: 3px solid var(--accent); outline-offset: 4px; }
.compare__tag {
  position: absolute;
  bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: rgba(34, 37, 70, .82);
  direction: rtl;
  pointer-events: none;
  transition: opacity .2s ease;
}
.compare__tag--before { right: 10px; }
.compare__tag--after { left: 10px; }
.compare-card figcaption {
  margin-top: 12px;
  text-align: center;
  font-size: 14px;
  opacity: .6;
}

/* ---------- share ---------- */
.share { background: var(--light-bg); color: var(--light-ink); padding: 56px 0; text-align: center; }
.share__title { margin: 0 0 20px; font-size: 26px; font-weight: 600; }
.share__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.share__btn {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.share__btn svg { width: 24px; height: 24px; fill: currentColor; }
.share__btn--copy svg { fill: none; }
.share__btn:hover { transform: translateY(-3px); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .4); }
.share__btn--whatsapp { background: #25d366; }
.share__btn--telegram { background: #2aabee; }
.share__btn--facebook { background: #0866ff; }
.share__btn--x { background: #000; }
.share__btn--copy { background: var(--steel); }
.share__btn--copy.done { background: #25a85a; }
.share__hint { margin: 18px 0 0; font-size: 16px; opacity: .75; }
.share__hint code {
  font: inherit;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(45, 156, 202, .14);
}

/* ---------- footer ---------- */
.footer { padding: 22px 24px; text-align: center; font-size: 14px; }
.footer a { text-decoration: none; opacity: .8; }
.footer a:hover { opacity: 1; text-decoration: underline; }
.footer__sep { margin-inline: 10px; opacity: .5; }

/* ---------- privacy dialog ---------- */
.privacy {
  width: min(600px, calc(100% - 32px));
  max-height: min(80vh, 760px);
  padding: 0;
  border: 0;
  border-radius: var(--radius);
  color: var(--light-ink);
  background: var(--light-bg);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6);
  overflow: hidden;
}
.privacy[open] { display: flex; flex-direction: column; }
.privacy::backdrop { background: rgba(14, 16, 36, .65); backdrop-filter: blur(3px); }
.privacy__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(127, 130, 160, .25);
}
.privacy__head h2 { margin: 0; font-size: 22px; font-weight: 600; }
.privacy__close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  font: inherit;
  font-size: 24px;
  line-height: 1;
  color: inherit;
  background: rgba(127, 130, 160, .15);
  cursor: pointer;
}
.privacy__close:hover { background: rgba(127, 130, 160, .3); }
.privacy__body { padding: 8px 24px 24px; overflow-y: auto; font-size: 16px; line-height: 1.65; }
.privacy__body h3 { margin: 20px 0 4px; font-size: 17px; font-weight: 600; color: var(--accent); }
.privacy__body p { margin: 8px 0; }
.privacy__body a { color: var(--accent); }
.privacy__body code { font-size: .9em; padding: 1px 5px; border-radius: 4px; background: rgba(127, 130, 160, .15); }
.privacy__updated { margin-top: 20px !important; font-size: 14px; opacity: .6; }
@media (prefers-reduced-motion: no-preference) {
  .privacy[open] { animation: pop .2s ease-out; }
  @keyframes pop { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .manifesto { padding: 48px 0; }
  .manifesto__grid { grid-template-columns: 1fr; gap: 40px; }
  .headline, .subhead, .declare { text-align: center; }
  .declare { margin-top: 28px; }
  .compare-card { max-width: 360px; margin-inline: auto; width: 100%; }
}
@media (max-width: 640px) {
  .hero { padding: 32px 16px; }
  .wrap { padding-inline: 16px; }
  .sigh__inner { flex-direction: column; align-items: center; min-height: 0; }
  .sigh__text { padding: 28px 0 12px; }
  .sigh__guy { position: static; width: 150px; }
  .ticks li { grid-template-columns: 26px 1fr; gap: 10px; }
  .tick { width: 26px; height: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .cursor { animation: none; }
}
