/* Questo Media × עוף טוב — banner review.
   Field is Questo yellow #FFBE0A. Ink is black. Heebo carries Hebrew
   the way Barlow carries Latin on questo.media. The yellow rule under
   a phrase is the site's signature. Of Tov enters at the edges: the
   farm ribbon, the leaf-green ink on captions, the product logo. */

:root {
  --yellow: #ffbe0a;
  --ink: #0a0a0a;
  --paper: #fffdf6;
  --rule: #e4d7a4;
  --dim: #4a5340;
  --faint: #7a806c;
  /* Of Tov */
  --leaf: #004c1d;
  --leaf-soft: #0a6b2c;
  --harvest: #fdc42d;
  --orange: #f78028;
  --lime: #7baf37;
  --farm-red: #e1251b;
  --sky: #00a0df;
}

* { box-sizing: border-box; }

html {
  font-family: "Heebo", "Arial Hebrew", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  direction: rtl;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

::selection {
  background: var(--yellow);
  color: var(--ink);
}

/* ---------- Of Tov ribbon (client only at the edges) ---------- */
.ribbon {
  height: 7px;
  background: linear-gradient(
    110deg,
    var(--leaf) 0 34%,
    var(--lime) 34% 50%,
    var(--harvest) 50% 68%,
    var(--orange) 68% 84%,
    var(--farm-red) 84% 100%
  );
}

/* ---------- cover ---------- */
.cover {
  position: relative;
  min-height: 100dvh;
  background:
    linear-gradient(180deg, rgba(255, 190, 10, 0.94), rgba(255, 190, 10, 0.97)),
    repeating-linear-gradient(
      0deg,
      transparent 0 47px,
      rgba(0, 76, 29, 0.07) 47px 48px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 47px,
      rgba(0, 76, 29, 0.07) 47px 48px
    ),
    var(--yellow);
  padding: 36px 48px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.cover-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.badge {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.22em;
  direction: ltr;
}

.cover-kicker {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  direction: ltr;
}

.cover-client {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cover-client img {
  width: 78px;
  height: auto;
  filter: drop-shadow(0 2px 0 rgba(0, 76, 29, 0.08));
}

.logo-42 {
  height: 52px;
  width: auto;
}

.cover h1 {
  margin: 11vh 0 0;
  font-size: clamp(42px, 7.2vw, 92px);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.03em;
}

.mark {
  position: relative;
  white-space: nowrap;
}
.mark::after {
  content: "";
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0.1em;
  height: 0.12em;
  background: #000;
}

.cover-meta {
  margin-top: auto;
  display: flex;
  gap: 40px;
  border-top: 2px solid #000;
  padding: 22px 0 36px;
}

.cover-meta div { flex: 1; min-width: 0; }
.cover-meta dt {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.cover-meta dd {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.cover-ribbon {
  margin-inline: -48px;
}

/* ---------- interior chrome ---------- */
.runner {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 48px;
  background: rgba(255, 253, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--faint);
}

.runner nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.runner a {
  text-decoration: none;
  padding: 5px 11px;
  border-radius: 999px;
  color: var(--ink);
  letter-spacing: 0;
  font-weight: 700;
  font-size: 13px;
}
.runner a:hover,
.runner a.is-on {
  background: var(--yellow);
}

.runner .r-strip {
  width: 88px;
  height: 5px;
  flex: none;
}

/* ---------- sections ---------- */
.wrap {
  width: min(1240px, calc(100% - 64px));
  margin-inline: auto;
}

section.block {
  padding: 72px 0 24px;
}

h2 {
  margin: 0 0 36px;
  font-size: clamp(28px, 3.4vw, 42px);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.025em;
}
h2 .num {
  display: inline-block;
  margin-inline-end: 12px;
  color: var(--yellow);
  -webkit-text-stroke: 1.2px #000;
  paint-order: stroke fill;
}

/* ---------- pieces: banner + LTR size, no card chrome ---------- */
.piece {
  margin: 0 0 36px;
  width: 100%;
  max-width: calc(var(--w) * 1px);
}
.piece.side,
.piece.on-dark {
  width: calc(var(--w) * 1px);
  max-width: 100%;
  margin-bottom: 0;
}
.piece.side .stage,
.piece.on-dark .stage {
  width: 100%;
  max-width: calc(var(--w) * 1px);
}

.piece figcaption {
  margin-top: 8px;
}

.size {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  font: 500 13px/1.2 "Heebo", sans-serif;
  letter-spacing: 0.04em;
  color: var(--faint);
  cursor: zoom-in;
  unicode-bidi: isolate;
}
.size:hover { color: var(--ink); }
.size.on-dark,
.piece.on-dark .size {
  color: rgba(255, 255, 255, 0.5);
}
.size.on-dark:hover,
.piece.on-dark .size:hover {
  color: #fff;
}

/* Scale stage: reserve the scaled height, draw the iframe at native px. */
.stage {
  container-type: inline-size;
  width: min(100%, calc(var(--w) * 1px));
}
.stage-sizer {
  position: relative;
  aspect-ratio: var(--w) / var(--h);
  overflow: hidden;
  background: #f3f0e4;
}
.stage-inner {
  position: absolute;
  top: 0;
  right: 0;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  transform-origin: top right;
  transform: scale(min(1, calc(100cqi / (var(--w) * 1px))));
}
.stage iframe {
  display: block;
  width: calc(var(--w) * 1px);
  height: calc(var(--h) * 1px);
  border: 0;
  background: #fff;
}



/* ---------- grids ---------- */
.wides {
  display: grid;
  gap: 40px;
}
.wides .stage {
  width: 100%;
  max-width: calc(var(--w) * 1px);
}

.sides {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: flex-start;
  margin-top: 48px;
}

.mobile-flat {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  margin-bottom: 48px;
}

/* ---------- mobile stage + phone frames ---------- */
.mobile-stage {
  position: relative;
  margin-top: 8px;
  padding: 56px 24px 64px;
  background: #0b140e;
  overflow: hidden;
}
.mobile-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 46px,
      rgba(255, 255, 255, 0.03) 46px 58px
    );
  -webkit-mask-image: linear-gradient(90deg, #000 0 16%, transparent 34% 66%, #000 84%);
  mask-image: linear-gradient(90deg, #000 0 16%, transparent 34% 66%, #000 84%);
  pointer-events: none;
}

.phones {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 48px 40px;
}

.phone-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.phone {
  position: relative;
  padding: 12px;
  border-radius: 48px;
  background: #000;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 30px 80px rgba(0, 0, 0, 0.55);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  border-radius: 36px;
  background: #111;
  line-height: 0;
}

.phone iframe {
  display: block;
  border: 0;
  background: #fff;
}

.phone-wrap .size { margin-top: 4px; }

/* ---------- lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(8, 12, 8, 0.86);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  overflow: auto;
}
.lightbox.is-open { display: flex; }

.lightbox-inner {
  position: relative;
  background: #111;
  padding: 18px 18px 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox-bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  color: #fff;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
}

.lightbox button.close {
  appearance: none;
  border: 0;
  background: var(--yellow);
  color: #000;
  font: 700 13px/1 "Heebo", sans-serif;
  padding: 8px 14px;
  cursor: pointer;
}

.lightbox iframe {
  display: block;
  border: 0;
  background: #fff;
}

/* ---------- stamp / footer ---------- */
.stamp {
  border-top: 2px solid #000;
  border-bottom: 2px solid #000;
  padding: 28px 0;
  margin: 72px auto 0;
}

.lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  font-size: 14px;
  font-weight: 700;
}
.lockup img { width: 48px; height: auto; }
.lockup .logo-42-sm { width: 108px; }
.lockup i {
  width: 1px;
  height: 28px;
  background: #000;
  opacity: 0.2;
}

footer.site {
  padding: 28px 0 48px;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}
footer.site .ribbon { margin: 0 0 18px; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .cover { padding: 24px 22px 0; }
  .cover-ribbon { margin-inline: -22px; }
  .cover-meta { flex-direction: column; gap: 18px; }
  .runner { padding: 10px 18px; }
  .wrap { width: calc(100% - 36px); }
  .sides, .mobile-flat { justify-content: center; }
}

@media (max-width: 640px) {
  .cover h1 { margin-top: 48px; }
  .cover-top { flex-wrap: wrap; }
  .badge { width: 56px; height: 56px; font-size: 8px; }
  .stamp { flex-direction: column; align-items: flex-start; }
  .runner {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }
  .runner > span:first-of-type { display: none; }
  .runner nav { justify-content: center; width: 100%; }
  .mobile-stage { padding-inline: 10px; overflow-x: hidden; }
}

/* ---------- desktop-only gate ---------- */
.gate {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 20px;
  padding: 36px 28px 40px;
  background:
    linear-gradient(180deg, rgba(255, 190, 10, 0.94), rgba(255, 190, 10, 0.97)),
    repeating-linear-gradient(0deg, transparent 0 47px, rgba(0, 76, 29, 0.07) 47px 48px),
    repeating-linear-gradient(90deg, transparent 0 47px, rgba(0, 76, 29, 0.07) 47px 48px),
    var(--yellow);
}
.gate h1 {
  margin: 0;
  font-size: clamp(36px, 11vw, 56px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.gate p {
  margin: 0;
  max-width: 22em;
  font-size: 17px;
  line-height: 1.5;
}
.gate .ribbon {
  position: absolute;
  right: 0;
  left: 0;
  bottom: 0;
}

@media (max-width: 1023px) {
  .gate { display: flex; }
  body > :not(.gate) { display: none !important; }
}
html.is-handheld .gate { display: flex; }
html.is-handheld body > :not(.gate) { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
