/* MBZ Growth Strategy landing — tokens + rhythm from EZTAX / audience app */
@font-face { font-family: 'Heebo'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/heebo-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: 'Heebo'; font-style: normal; font-weight: 300 800; font-display: swap; src: url(fonts/heebo-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --tq: #1ED6D0; --tq-ink: #087370; --tq-soft: #e6fbfa;
  --ink: #0b0b0d; --ink-2: #17181c; --ink-3: #2a2c33;
  --bg: #f5f5f7; --paper: #fff; --line: #e3e5e8; --muted: #6e6e73; --text: #1d1d1f;
  --r: 18px; --pad: 16px; --col: 1180px;
  color-scheme: only light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Heebo', 'Segoe UI', Arial, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
/* Direction follows <html dir> — do not hardcode rtl on body */
a { color: var(--tq-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--tq-ink); outline-offset: 2px; border-radius: 8px; }
h1, h2, h3 { line-height: 1.2; margin: 0; }
p { margin: 0 0 10px; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip {
  position: absolute; top: -60px; inset-inline-end: 8px;
  background: var(--tq); color: var(--ink); padding: 10px 14px; border-radius: 10px;
  z-index: 200; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 8px; }

/* Lang toggle — always visible corner */
.lang-toggle {
  position: fixed; z-index: 150;
  top: max(12px, env(safe-area-inset-top));
  inset-inline-end: max(12px, env(safe-area-inset-right));
  min-width: 44px; min-height: 44px; padding: 0 14px;
  border-radius: 999px; border: 0;
  background: rgba(11,11,13,.78); color: #fff;
  font-weight: 700; font-size: 14px; letter-spacing: .02em;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(0,0,0,.22);
}
.lang-toggle:hover { background: rgba(11,11,13,.92); }
.lang-toggle:focus-visible { outline-color: var(--tq); }

.h1 { font-size: clamp(34px, 6vw, 56px); font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.h2 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.lead { font-size: clamp(17px, 2vw, 21px); line-height: 1.45; color: #424245; max-width: 34em; margin: 12px 0 0; }
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.ap-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 22px; border-radius: 999px;
  background: var(--tq); color: #1d1d1f; font-weight: 700; font-size: 15px;
  text-decoration: none; border: 0; white-space: nowrap;
}
.ap-btn:hover { filter: brightness(1.06); }
.ap-btn.ghost { background: transparent; color: var(--tq-ink); box-shadow: inset 0 0 0 1.5px currentColor; }
.ap-btn.ink { background: var(--ink); color: #fff; }
.ap-btn.ink:hover { background: #24262c; filter: none; }

/* ===== Gate-style hero (no password) ===== */
.hero {
  --gt-tq: #1ED6D0; --gt-ink: #0b0b0d;
  background: var(--gt-ink); color: var(--gt-ink);
}
.hero {
  background: #f5f5f7;
}
.hero-stage {
  /* First screen = stage + intro; cards stay below the fold */
  min-height: 0;
  display: grid; grid-template-rows: minmax(38svh, 42vh) auto;
}
.hero-art {
  position: relative; overflow: hidden; isolation: isolate;
  background: radial-gradient(120% 80% at 50% 0%, #1a1c22 0%, var(--gt-ink) 60%);
}
.hero-flow { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.hero-brand {
  position: absolute; inset-inline: 0; top: max(48px, env(safe-area-inset-top));
  display: flex; justify-content: center; z-index: 1;
}
.hero-brand::before {
  content: ""; position: absolute; width: 340px; height: 220px; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(11,11,13,.92), rgba(11,11,13,0)); z-index: -1;
}
.hero-logo { display: block; width: 168px; height: auto; transform: translateX(2.9%); }
.hero-logo-d { display: none; }

/* Paper panel — turquoise accent only (underline bar) */
.hero-panel {
  position: relative; z-index: 2; background: #f5f5f7;
  padding: 36px 24px calc(40px + env(safe-area-inset-bottom));
}
.hero-panel::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 44px;
  background: #f5f5f7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 44' preserveAspectRatio='none'%3E%3Cpath d='M0 44V30C70 6 150 2 210 16S330 40 390 10V44Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 44' preserveAspectRatio='none'%3E%3Cpath d='M0 44V30C70 6 150 2 210 16S330 40 390 10V44Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
}
.hero-panel-in { max-width: 440px; margin: 0 auto; }
.hero-panel h1 {
  margin: 0 0 12px; font-size: clamp(26px, 5vw, 34px); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.15; color: #1d1d1f;
}
.hero-panel h1::after {
  content: ""; display: block; width: 48px; height: 3px; border-radius: 2px;
  background: var(--tq); margin-top: 12px;
}
.hero-panel .hero-lead {
  margin: 0; font-size: 17px; font-weight: 500; line-height: 1.45; color: #1d1d1f;
}
.hero-panel .btns { margin-top: 22px; }
.hero-panel .ap-btn.ink { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 18px; background: #1d1d1f; color: #fff; }
.hero-panel .ap-btn.ghost {
  color: #1d1d1f; box-shadow: inset 0 0 0 1.5px #1d1d1f; min-height: 52px; border-radius: 18px;
}

@media (prefers-reduced-motion: no-preference) {
  .gt-drift-a { animation: gt-drift 22s ease-in-out infinite alternate; }
  .gt-drift-b { animation: gt-drift 28s ease-in-out infinite alternate-reverse; }
}
@keyframes gt-drift { from { transform: translate3d(-24px, 6px, 0); } to { transform: translate3d(24px, -6px, 0); } }

@media (min-width: 900px) {
  .hero-stage {
    grid-template-rows: none;
    grid-template-columns: 1fr minmax(400px, 40%);
    min-height: calc(100svh - 11rem); /* leave room for intro on first screen */
    min-height: calc(100vh - 11rem);
  }
  .hero-art { min-height: calc(100svh - 11rem); min-height: calc(100vh - 11rem); }
  .hero-brand { top: 64px; }
  .hero-brand::before { width: 520px; height: 320px; }
  .hero-logo-m { display: none; }
  .hero-logo-d { display: block; width: 224px; }
  .hero-panel { order: 2; display: flex; align-items: center; padding: 0 64px; }
  /* Wave into art — physical left edge of panel (panel is on the right in both langs) */
  .hero-panel::before {
    right: auto; left: calc(100% - 1px); top: 0; bottom: 0; width: 56px; height: auto;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 900' preserveAspectRatio='none'%3E%3Cpath d='M0 0H26C52 140 54 300 34 450S2 760 38 900H0Z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 900' preserveAspectRatio='none'%3E%3Cpath d='M0 0H26C52 140 54 300 34 450S2 760 38 900H0Z'/%3E%3C/svg%3E");
    -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
  }
  .hero-panel-in { width: 100%; max-width: 400px; margin: 0; }
  /* LTR: put panel on the left, wave into art on its right edge */
  html[dir="ltr"] .hero-stage { grid-template-columns: minmax(440px, 42%) 1fr; }
  html[dir="ltr"] .hero-panel { order: 0; }
  html[dir="ltr"] .hero-panel::before {
    left: auto; right: calc(100% - 1px);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 900' preserveAspectRatio='none'%3E%3Cpath d='M56 0H30C4 140 2 300 22 450S54 760 18 900H56Z'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 56 900' preserveAspectRatio='none'%3E%3Cpath d='M56 0H30C4 140 2 300 22 450S54 760 18 900H56Z'/%3E%3C/svg%3E");
  }
}


/* Intro under hero — visible on first screen; cards scroll in after */
.hero-services-intro {
  position: relative; z-index: 2;
  background: #f5f5f7;
  padding: 28px var(--pad) 20px;
  max-width: var(--col);
  margin: 0 auto;
  text-align: center;
}
.hero-services-intro .lead { margin-inline: auto; }
.services-cards { padding-top: 28px; }
.services-cards .band-in { padding-top: 0; }
@media (min-width: 900px) {
  .hero-services-intro { padding: 32px 48px 24px; }
  .hero-panel { padding-block: 48px; }
}

/* ===== Lineup value cards ===== */
.band { padding: 56px var(--pad); }
.band-in { max-width: var(--col); margin: 0 auto; }
.band.white { background: #fff; }
.band.grey { background: var(--bg); }
.band.center, .center { text-align: center; }
.band.center .lead, .center .lead { margin-inline: auto; }
.eyebrow { display: block; font-size: 14px; font-weight: 700; color: var(--tq-ink); margin-bottom: 8px; letter-spacing: .01em; }

.lineup-grid { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 28px; }
.lineup-card {
  display: flex; flex-direction: column; align-items: stretch;
  text-decoration: none; color: inherit; height: 100%;
  border-radius: 22px; background: #fff;
}
.lineup-card:focus-visible { outline: 3px solid var(--tq-ink); outline-offset: 6px; border-radius: 26px; }
.ap-photo {
  margin: 0 0 16px; border-radius: 22px; overflow: hidden;
  background: var(--ink); aspect-ratio: 16 / 10;
  box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  position: relative;
}
.ap-photo svg { display: block; width: 100%; height: 100%; }
.lineup-t { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0 0 8px; color: #1d1d1f; text-align: center; }
.lineup-s { font-size: 15px; color: #424245; margin: 0 0 16px; line-height: 1.45; flex: 1 1 auto; text-align: center; padding: 0 8px; }
.lineup-card .ap-btn {
  align-self: center; pointer-events: none; margin-bottom: 8px;
  background: transparent; color: var(--tq-ink); box-shadow: inset 0 0 0 1.5px var(--tq);
}
@media (min-width: 760px) {
  .lineup-grid.three { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ===== מה זה (Apple band) ===== */
.home-about {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 88px 20px 100px;
  background: #fbfbfd; color: #1d1d1f; text-align: center;
}
.home-about .ha-wave {
  position: absolute; left: 0; right: 0; top: 0; height: 28px;
  background: var(--tq); opacity: .14;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 44' preserveAspectRatio='none'%3E%3Cpath d='M0 0V14C70 38 150 42 210 28S330 4 390 34V0Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 390 44' preserveAspectRatio='none'%3E%3Cpath d='M0 0V14C70 38 150 42 210 28S330 4 390 34V0Z'/%3E%3C/svg%3E") 0 0/100% 100% no-repeat;
  z-index: 0; pointer-events: none;
}
.home-about .ha-flow {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none; opacity: .85;
}
.home-about .ha-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.home-about .ha-eyebrow {
  margin: 0 0 12px; font-size: clamp(17px, 2.2vw, 19px); font-weight: 600;
  letter-spacing: -.01em; line-height: 1.2; color: #6e6e73;
}
.home-about .ha-mark {
  margin: 0 0 40px; font-size: clamp(32px, 5.5vw, 52px); font-weight: 700;
  letter-spacing: -.03em; line-height: 1.05;
}
.home-about .ha-ez { color: var(--tq-ink); }
.home-about .ha-s1,
.home-about .ha-s2,
.home-about .ha-s3 {
  margin: 0; margin-top: 0.9em;
  font-size: clamp(22px, 3.8vw, 40px); font-weight: 600;
  letter-spacing: -.01em; line-height: 1.25; color: #1d1d1f; text-wrap: balance;
}
.home-about .ha-s1 { margin-top: 0; }
.home-about .ha-s2,
.home-about .ha-s3 { color: #6e6e73; }
.home-about .ha-brand {
  margin: 56px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: #86868b;
}
.home-about .ha-mbz { color: #6e6e73; font-weight: 600; }
@media (min-width: 900px) {
  .home-about { padding: 120px 48px 140px; }
  .home-about .ha-wave { height: 36px; opacity: .12; }
}
@media (prefers-reduced-motion: reduce) {
  .home-about .ha-flow { opacity: .5; }
  .gt-drift-a, .gt-drift-b { animation: none !important; }
}

/* ===== איך זה עובד — EZTAX snake + fill ball ===== */
.home-how {
  overflow: visible;
  margin: 0 calc(-1 * var(--pad));
  padding: 64px 24px 72px;
  background: #fff;
  text-align: center;
  border-block-start: 1px solid #eceef0;
}
.home-how .how-title {
  margin: 0 0 16px;
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 400;
  letter-spacing: -.02em;
  color: #8a8a8e;
}
.home-how .how-lead {
  margin: 0 auto 40px;
  max-width: 34em;
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.5;
  color: #6e6e73;
}
.home-how .how-stage {
  position: relative;
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  text-align: start;
  overflow: visible;
}
.home-how .how-path-m {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
  transform: translateY(2px);
}
.home-how .how-path-d { display: none; }
.home-how .how-steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 8px 0 160px;
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.home-how .how-step {
  margin: 0;
  max-width: 58%;
  text-align: start;
}
.home-how .how-step[data-how="1"],
.home-how .how-step[data-how="3"] {
  align-self: flex-start;
  margin-inline-end: auto;
  margin-inline-start: 0;
  padding-inline-end: 4px;
}
.home-how .how-step[data-how="3"] {
  margin-bottom: 40px;
  max-width: 52%;
}
.home-how .how-step[data-how="2"] {
  align-self: flex-end;
  margin-inline-start: auto;
  margin-inline-end: 0;
  padding-inline-start: 12px;
  padding-top: 10px;
  margin-top: 8px;
}
.home-how .how-step[data-how="2"] .how-n { margin-top: 6px; }
.home-how .how-n {
  display: block;
  font-size: clamp(36px, 9vw, 48px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--tq);
  margin: 0 0 8px;
  transition: transform .35s ease;
}
@media (max-width: 899px) {
  .home-how .how-step.how-hit .how-n { transform: scale(1.06); }
}
.home-how .how-h {
  margin: 0 0 8px;
  font-size: clamp(20px, 2.6vw, 24px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
  color: #1d1d1f;
}
.home-how .how-p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: #6e6e73;
  max-width: 14em;
}
@keyframes how-n-bounce {
  0% { transform: scale(1); }
  20% { transform: translateY(4px) scaleX(1.04) scaleY(.92); }
  50% { transform: translateY(-8px) scaleX(.96) scaleY(1.04); }
  75% { transform: translateY(2px) scaleX(1.02) scaleY(.98); }
  100% { transform: scale(1); }
}
@media (max-width: 899px) {
  .home-how .how-n.how-n-bounce { animation: how-n-bounce .9s cubic-bezier(.36,.07,.19,.97) both; }
}

/* LTR mobile: undo the RTL flip baked into the SVG <g> */
html[dir="ltr"] .how-path-m { transform: scaleX(-1) translateY(2px); }

/* Desktop how */
@media (min-width: 900px) {
  .home-how { margin: 0; padding: 100px 48px 120px; }
  .home-how .how-title {
    color: #aeaeb2;
    margin-bottom: 20px;
    font-size: clamp(36px, 3.2vw, 44px);
  }
  .home-how .how-lead {
    margin-bottom: 72px;
    font-size: 19px;
    max-width: 38em;
  }
  .home-how .how-stage {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding-top: 48px;
    text-align: start;
    overflow: visible;
  }
  .home-how .how-path-m { display: none; transform: none; }
  .home-how .how-path-d {
    display: block;
    position: absolute;
    left: -8%;
    right: -8%;
    /* Hit y=230 in viewBox 262.7 → map onto digit tops (~padding-top 48px) */
    top: -100px;
    width: 116%;
    height: 180px;
    pointer-events: none;
    z-index: 2;
    overflow: visible;
  }
  .home-how .how-stage { overflow: visible; }
  /* Keep paths measurable: no display:none (breaks getTotalLength in some engines) */
  .home-how .how-path-d path { fill: none; stroke: none; }
  .home-how .how-path-d #how-ball-d { opacity: 0; fill: var(--tq); }

  /* LTR: mirror desktop path so ball enters left → hits 1,2,3 LTR */
  html[dir="ltr"] .how-path-d { transform: scaleX(-1); }

  .home-how .how-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 120px auto auto;
    padding: 0;
    gap: unset;
    column-gap: 48px;
    row-gap: 18px;
    text-align: start;
  }
  .home-how .how-step,
  .home-how .how-step[data-how="1"],
  .home-how .how-step[data-how="2"],
  .home-how .how-step[data-how="3"] {
    display: contents;
    max-width: none;
    margin: 0;
    padding: 0;
    align-self: auto;
  }
  .home-how .how-step[data-how="1"] .how-n { grid-column: 1; grid-row: 1; }
  .home-how .how-step[data-how="1"] .how-h { grid-column: 1; grid-row: 2; }
  .home-how .how-step[data-how="1"] .how-p { grid-column: 1; grid-row: 3; }
  .home-how .how-step[data-how="2"] .how-n { grid-column: 2; grid-row: 1; }
  .home-how .how-step[data-how="2"] .how-h { grid-column: 2; grid-row: 2; }
  .home-how .how-step[data-how="2"] .how-p { grid-column: 2; grid-row: 3; }
  .home-how .how-step[data-how="3"] .how-n { grid-column: 3; grid-row: 1; }
  .home-how .how-step[data-how="3"] .how-h { grid-column: 3; grid-row: 2; }
  .home-how .how-step[data-how="3"] .how-p { grid-column: 3; grid-row: 3; }

  .home-how .how-n {
    box-sizing: border-box;
    align-self: end;
    justify-self: start;
    font-size: clamp(96px, 9vw, 120px);
    height: 120px;
    line-height: 120px;
    margin: 0;
    padding: 0;
    color: #fff;
    -webkit-text-fill-color: #fff;
    -webkit-text-stroke: 2px var(--tq);
    paint-order: stroke fill;
    transform: none !important;
    /* Instant fill on hit - no fade (white fill + shrinking stroke = number vanishes) */
    transition: none;
  }
  .home-how .how-steps .how-n.is-filled,
  .home-how .how-step.how-hit .how-n {
    color: var(--tq);
    -webkit-text-fill-color: var(--tq);
    -webkit-text-stroke: 0;
  }
  .home-how .how-h {
    align-self: start;
    justify-self: stretch;
    font-size: clamp(30px, 3vw, 36px);
    font-weight: 800;
    line-height: 1.25;
    margin: 0;
    min-height: 2.5em;
  }
  .home-how .how-p {
    align-self: start;
    justify-self: stretch;
    max-width: none;
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: #6e6e73;
  }
  .home-how .how-n.how-n-bounce { animation: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  .home-how .how-n.how-n-bounce { animation: none !important; }
  .home-how .how-n { transition: none; }
}

/* ===== Contact CTA ===== */
.contact {
  background: var(--ink); color: #fff; text-align: center;
  padding: 72px var(--pad) 80px;
}
.contact .eyebrow { color: var(--tq); }
.contact .h2 { color: #fff; }
.contact .lead { color: #a1a1a6; margin-inline: auto; }
.contact .btns { justify-content: center; }
.contact .ap-btn.ghost { color: var(--tq); }

/* ===== Footer ===== */
.site-foot {
  background: #fff; border-top: 1px solid #e5e5ea;
  padding: 28px var(--pad) calc(28px + env(safe-area-inset-bottom));
  text-align: center; font-size: 13px; color: #86868b; font-weight: 600;
}
.site-foot a { color: var(--tq-ink); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
