/* =====================================================================
   תורו — Landing redesign · "וקול התור נשמע"
   Cypress green (#2E5A4B) + antique-gold accent (#B08A46) · Frank Ruhl Libre / IBM Plex
   Signature: חוט התור — a glowing green queue thread connecting the steps
   ===================================================================== */

:root {
  /* brand constants — identical across themes */
  --cypress:        #2E5A4B;
  --cypress-hover:  #264C3F;
  --cypress-bright: #58A07B;   /* thread glow — lifts off the dark forest */
  --cypress-mist:   #8FBBA6;
  /* Antique-gold accent — the one warm complement to cypress green.
     (Replaced the old orange "ember" spark, removed per brand decision.) */
  --gold:           #B08A46;   /* accents · badges · premium highlights */
  --gold-soft:      #E8D9B0;   /* soft gold tint for fills/badges */

  --font-display: var(--font-frank), "Frank Ruhl Libre", "Noto Serif Hebrew", serif;
  --font-body:    var(--font-plex), "IBM Plex Sans Hebrew", system-ui, sans-serif;
  --font-digits:  var(--font-plex-mono), ui-monospace, "IBM Plex Mono", monospace;

  --maxw: 1180px;
  --radius: 20px;
  --radius-lg: 30px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --nav-h: 74px;
}

/* anchor targets must clear the fixed nav (--nav-h) when scrolled to via #links */
#features, #how, #pricing { scroll-margin-top: calc(var(--nav-h) + 20px); }

/* ---------- DARK (default) — the forest ---------- */
:root, [data-theme="dark"] {
  --bg:        #0F1A16;   /* hero forest — from brief */
  --bg-deep:   #0B1512;
  --panel:     #14251E;   /* lifted section */
  --panel-2:   #193029;
  --card:      #142420;
  --ink:       #EEF4EF;
  --ink-mid:   #B7C8BF;
  --ink-mut:   #7E948A;
  --line:      rgb(255 255 255 / .09);
  --line-soft: rgb(255 255 255 / .05);
  --cream:     #FBFBF9;
  --thread-base: rgb(88 160 123 / .28);
  --hero-grad:
    radial-gradient(120% 90% at 82% -8%, rgb(46 90 75 / .55), transparent 55%),
    radial-gradient(90% 70% at 8% 4%, rgb(88 160 123 / .16), transparent 52%),
    radial-gradient(140% 120% at 50% 120%, rgb(11 21 18 / .9), transparent 60%);
  --card-shadow: 0 34px 80px -40px rgb(0 0 0 / .8);
  --on-cypress: #FBFBF9;
  color-scheme: dark;
}

/* ---------- LIGHT — סיד / אבן (matches the dashboard) ---------- */
[data-theme="light"] {
  --bg:        #FBFBF9;   /* סיד */
  --bg-deep:   #F2F3EE;
  --panel:     #EDEEE8;   /* אבן */
  --panel-2:   #E4E7DE;
  --card:      #FFFFFF;
  --ink:       #212B26;   /* דיו־ברוש */
  --ink-mid:   #445049;
  --ink-mut:   #57625C;   /* אפר־זית */
  --line:      rgb(33 43 38 / .12);
  --line-soft: rgb(33 43 38 / .07);
  --cream:     #FFFFFF;
  --thread-base: rgb(46 90 75 / .22);
  --hero-grad:
    radial-gradient(120% 90% at 82% -8%, rgb(46 90 75 / .12), transparent 55%),
    radial-gradient(90% 70% at 8% 4%, rgb(88 160 123 / .12), transparent 52%);
  --card-shadow: 0 30px 70px -38px rgb(33 43 38 / .3);
  --on-cypress: #FBFBF9;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--cypress); color: #FBFBF9; }

:focus-visible {
  outline: 3px solid var(--cypress-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 26px; }

/* ---------------- eyebrow ---------------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  color: var(--cypress-mist);
  padding: 7px 15px 7px 13px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: color-mix(in oklab, var(--cypress) 12%, transparent);
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cypress-bright);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--cypress-bright) 26%, transparent),
              0 0 12px var(--cypress-bright);
}

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 16px; line-height: 1;
  padding: 15px 26px; border-radius: 14px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease),
              background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn--lg { padding: 18px 34px; font-size: 17.5px; border-radius: 16px; }

.btn--primary {
  background: var(--cypress); color: var(--on-cypress);
  box-shadow: 0 18px 40px -18px color-mix(in oklab, var(--cypress) 80%, black),
              inset 0 1px 0 rgb(255 255 255 / .14);
}
.btn--primary:hover {
  background: var(--cypress-hover); transform: translateY(-2px);
  box-shadow: 0 26px 54px -18px color-mix(in oklab, var(--cypress) 70%, black),
              inset 0 1px 0 rgb(255 255 255 / .2);
}
.btn--ghost {
  background: transparent; color: var(--ink);
  border-color: color-mix(in oklab, var(--ink) 26%, transparent);
}
.btn--ghost:hover { border-color: var(--cypress-bright); color: var(--cypress-bright); transform: translateY(-2px); }
.btn--subtle {
  background: none; border-color: transparent; color: var(--ink-mid);
  padding-inline: 12px; text-decoration: underline; text-decoration-color: transparent;
  transition: color .25s var(--ease), text-decoration-color .25s var(--ease);
}
.btn--subtle:hover { color: var(--ink); text-decoration-color: currentColor; }
.btn:disabled {
  cursor: not-allowed; opacity: .55; box-shadow: none; transform: none !important;
}
.btn--primary:disabled:hover { background: var(--cypress); transform: none; }

/* ===================== INSTALL STRIP (הורד לנייד) ===================== */
:root { --strip-h: 52px; }
/* While the fixed strip is up, drop the fixed nav below it so they stack.
   +1px accounts for the strip's bottom border, which adds to its height. */
:root.has-install-strip .nav { inset-block-start: calc(var(--strip-h) + 1px); }

.install-strip {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 120;
  background: linear-gradient(90deg, #264C3F, #2E5A4B 46%, #3B6B58);
  color: #fff; border-block-end: 1px solid rgb(255 255 255 / .14);
  box-shadow: 0 12px 34px -16px rgb(0 0 0 / .65);
  /* Slide down on mount: the component adds `.is-in` via rAF after render, so
     the transform transitions from hidden to shown. reduced-motion (below)
     forces the shown state with no animation so it's never stuck off-screen. */
  transform: translateY(-100%);
  transition: transform .45s var(--ease);
}
.install-strip.is-in { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .install-strip { transition: none; transform: translateY(0); }
}
.install-strip__inner {
  max-width: var(--maxw); margin-inline: auto; min-height: var(--strip-h);
  padding-inline: 18px; display: flex; align-items: center; gap: 12px;
}
.install-strip__cta {
  flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 10px;
  background: none; border: none; cursor: pointer; color: #fff;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  text-align: start; padding-block: 8px;
}
.install-strip__cta svg { flex-shrink: 0; }
.install-strip__text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-strip__text b { font-family: var(--font-display); font-weight: 800; }
.install-strip__action {
  margin-inline-start: auto; flex-shrink: 0; white-space: nowrap;
  background: #fff; color: #234438; font-weight: 700; font-size: 13px;
  padding: 7px 15px; border-radius: 999px;
  transition: transform .2s var(--ease), box-shadow .2s;
}
.install-strip__cta:hover .install-strip__action {
  transform: translateY(-1px); box-shadow: 0 8px 18px -8px rgb(0 0 0 / .5);
}
.install-strip__close {
  flex-shrink: 0; width: 44px; height: 44px; display: inline-flex;
  align-items: center; justify-content: center; border-radius: 9px;
  background: rgb(255 255 255 / .12); border: none; color: #fff; cursor: pointer;
  transition: background .2s;
}
.install-strip__close:hover { background: rgb(255 255 255 / .24); }
.install-strip__help {
  max-width: var(--maxw); margin-inline: auto;
  padding: 0 18px 12px; font-family: var(--font-body);
  font-size: 13px; line-height: 1.5; color: rgb(255 255 255 / .92);
}
.install-strip__help b { font-weight: 700; }

@media (max-width: 560px) {
  :root { --strip-h: 50px; }
  .install-strip__cta { font-size: 13.5px; gap: 8px; }
  .install-strip__action { padding: 6px 13px; font-size: 12px; }
}

/* ===================== NAV ===================== */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 100;
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s;
  border-block-end: 1px solid transparent;
}
.nav--solid {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(1.3);
  border-block-end-color: var(--line);
}
.nav__inner {
  max-width: var(--maxw); margin-inline: auto; padding-inline: 26px;
  height: 74px; display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.01em; }
.brand__logo { width: 42px; height: 42px; object-fit: contain; }
.brand__logo--light { display: none; }
[data-theme="light"] .brand__logo--dark { display: none; }
[data-theme="light"] .brand__logo--light { display: block; }
.brand__name { color: var(--ink); }
.brand__sep { width: 1px; height: 20px; background: var(--line); }
.brand__by { font-size: 11px; color: var(--ink-mut); font-family: var(--font-body); font-weight: 500; }
.brand__fogo { width: 26px; height: 26px; border-radius: 7px; object-fit: cover; transition: transform .3s var(--ease); }
.brand:hover .brand__fogo { transform: scale(1.08) rotate(-4deg); }

.nav__links { display: flex; align-items: center; gap: 22px; margin-inline-start: 20px; }
.nav__links a { color: var(--ink-mid); font-weight: 500; font-size: 15px; position: relative; padding-block: 6px; transition: color .25s; }
.nav__links a::after {
  content: ""; position: absolute; inset-block-end: 0; inset-inline-end: 0;
  width: 0; height: 2px; background: var(--cypress-bright); transition: width .3s var(--ease); border-radius: 2px;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__spacer { flex: 1; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav-cta { display: flex; align-items: center; }
.nav-cta .btn { min-height: 44px; padding: 11px 20px; font-size: 15px; border-radius: 12px; }

/* PWA install button in the header — the wrapper anchors the manual-install
   tooltip for browsers with no beforeinstallprompt (iOS Safari, etc). */
.header-install { position: relative; display: inline-flex; }
.header-install__help {
  position: absolute; inset-block-start: calc(100% + 10px); inset-inline-end: 0;
  width: max-content; max-width: 260px;
  padding: 12px 14px; border-radius: 12px;
  background: var(--card); border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
  font-size: 13px; line-height: 1.5; color: var(--ink-mid);
  z-index: 40;
}
.header-install__help b { color: var(--ink); font-weight: 700; }

/* hamburger — hidden on desktop, shown on mobile */
.nav__hamburger {
  display: none;
  min-width: 44px; min-height: 44px; flex-shrink: 0;
  align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line); background: transparent;
  color: var(--ink-mid); cursor: pointer; transition: border-color .25s;
}
.nav__hamburger:hover { border-color: var(--cypress-bright); }
.nav__hamburger svg { width: 20px; height: 20px; }

/* mobile nav drawer */
.nav__mobile-menu {
  display: none;
  position: fixed;
  inset-block-start: 64px;
  inset-inline: 0;
  z-index: 99;
  background: color-mix(in oklab, var(--bg) 96%, transparent);
  backdrop-filter: blur(20px) saturate(1.3);
  border-block-end: 1px solid var(--line);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 12px 40px -16px rgb(0 0 0 / .4);
}
.nav__mobile-menu.is-open { display: flex; }
.nav__mobile-link {
  color: var(--ink-mid); font-weight: 500; font-size: 17px;
  padding: 14px 8px;
  border-block-end: 1px solid var(--line-soft);
  transition: color .2s;
}
.nav__mobile-link:hover { color: var(--ink); }
.nav__mobile-cta { margin-block-start: 12px; text-align: center; }

.theme-toggle {
  position: relative; min-width: 44px; min-height: 44px; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line); background: transparent;
  color: var(--ink-mid); cursor: pointer; transition: transform .25s var(--ease), border-color .25s;
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--cypress-bright); }
.theme-toggle svg { width: 20px; height: 20px; position: absolute; transition: opacity .4s var(--ease), transform .5s var(--ease); }
[data-theme="dark"] .theme-toggle .i-sun  { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle .i-moon { opacity: 0; transform: rotate(50deg) scale(.4); }
[data-theme="light"] .theme-toggle .i-sun  { opacity: 0; transform: rotate(-50deg) scale(.4); }
[data-theme="light"] .theme-toggle .i-moon { opacity: 1; transform: rotate(0) scale(1); }

/* ===================== HERO ===================== */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-block: 128px 72px; overflow: hidden;
  background: var(--hero-grad), var(--bg);
}
.hero__lightfall {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; opacity: .85;
}
.hero__scrim {
  position: absolute; inset: 0; z-index: 0;
  background:
    var(--hero-grad),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 25%, transparent) 0%, color-mix(in oklab, var(--bg) 35%, transparent) 55%, color-mix(in oklab, var(--bg) 65%, transparent) 100%);
}
/* light theme: the shader is graded dark blue/green and doesn't adapt on its
   own — fade it to a faint texture and lean on a near-opaque light scrim
   instead, so light mode actually reads light, not a washed-out dark theme. */
[data-theme="light"] .hero__lightfall { opacity: .42; }
[data-theme="light"] .hero__scrim {
  background:
    var(--hero-grad),
    linear-gradient(180deg, color-mix(in oklab, var(--bg) 28%, transparent) 0%, color-mix(in oklab, var(--bg) 48%, transparent) 55%, var(--bg) 100%);
}
/* faint measure grid, forest depth */
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(120% 90% at 70% 20%, black, transparent 72%);
  opacity: .5;
}
.hero__inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr; gap: 0; align-items: center; width: 100%; }
.hero__copy { max-width: 720px; }
.hero h1 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(40px, 8.2vw, 86px); line-height: 1.02; letter-spacing: -.015em;
  margin-block: 24px 22px; text-wrap: balance; color: var(--ink);
}
.hero h1 .hl {
  color: var(--cypress-bright);
  text-shadow: 0 0 46px color-mix(in oklab, var(--cypress-bright) 55%, transparent);
}
.hero__tagline {
  font-family: var(--font-body); font-weight: 700;
  font-size: clamp(18px, 2.6vw, 23px); color: var(--cypress-bright);
  margin-block: 2px 18px;
}
.hero .lead {
  font-size: clamp(17px, 2.3vw, 21px); color: var(--ink-mid);
  max-width: 560px; line-height: 1.6;
}
.hero .cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-block-start: 34px; }
.hero__proof { display: flex; align-items: center; gap: 10px; margin-block-start: 34px; }
.proof__check {
  display: grid; place-items: center; flex-shrink: 0;
  width: 26px; height: 26px; border-radius: 50%;
  background: color-mix(in oklab, var(--cypress-bright) 18%, transparent);
  color: var(--cypress-bright);
}
.proof__check svg { width: 15px; height: 15px; }
.proof__text { font-size: 14.5px; color: var(--ink-mid); }
.proof__text b { color: var(--ink); font-weight: 700; }

/* hero queue-thread echo — slim vertical thread with 3 beads (decorative) */
.hero__thread { position: absolute; z-index: 1; inset-block: 20% 12%; inset-inline-end: max(30px, 7vw); width: 2px; display: none; }
.hero__thread::before { content: ""; position: absolute; inset: 0; background: linear-gradient(var(--thread-base), var(--cypress-bright), var(--thread-base)); border-radius: 2px; }
.hero__thread i {
  position: absolute; inset-inline-start: 50%; translate: -50% 0;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--cypress-bright); background: var(--bg);
}
.hero__thread i:nth-child(1) { inset-block-start: 4%; }
.hero__thread i:nth-child(2) { inset-block-start: 50%; background: var(--cypress-bright); box-shadow: 0 0 18px var(--cypress-bright); }
.hero__thread i:nth-child(3) { inset-block-end: 4%; }

.scroll-cue {
  position: absolute; inset-block-end: 26px; inset-inline-start: 50%; translate: -50% 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  color: var(--ink-mut); font-size: 12px; font-weight: 500; letter-spacing: .06em;
}
.scroll-cue .mouse { width: 22px; height: 34px; border: 2px solid var(--line); border-radius: 12px; position: relative; }
.scroll-cue .mouse::before {
  content: ""; position: absolute; inset-block-start: 6px; inset-inline-start: 50%; translate: -50% 0;
  width: 3px; height: 7px; border-radius: 2px; background: var(--cypress-bright);
  animation: cue 1.6s var(--ease) infinite;
}
@keyframes cue { 0%,100% { opacity: 0; transform: translate(-50%,0); } 40% { opacity: 1; } 70% { opacity: 0; transform: translate(-50%,9px); } }

/* ===================== SECTION SHELL ===================== */
.section { position: relative; padding-block: clamp(72px, 11vh, 132px); }
.section--panel { background: var(--panel); }
.section__head { max-width: 680px; margin-block-end: 56px; }
.section__head.center { text-align: center; margin-inline: auto; }
.section__head.center .eyebrow { margin-inline: auto; }
.section__head h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.4vw, 52px); line-height: 1.08; letter-spacing: -.01em;
  margin-block: 16px 14px; text-wrap: balance; color: var(--ink);
}
.section__head p { color: var(--ink-mid); font-size: 18px; line-height: 1.6; }

/* ===================== FEATURES — IMAGE HERO ===================== */
/* full-bleed static image + directional scrim, same base pattern as .how:
   absolute media + scrim behind the content, content lifted onto its own layer.
   mascot stands on the left side of the photo pointing right, so on wide
   screens the scrim stays dark/opaque only on the right (where the copy
   sits) and clears up toward the left (where he needs to stay visible). On
   narrow screens there's no room to spare him a clear half, so the scrim
   goes fully dark and the content stacks centered on top instead. */
.features { position: relative; overflow: hidden; flex-shrink: 0; min-height: 620px; display: flex; align-items: center; }
.features .features__bg-image { z-index: 0; object-fit: cover; object-position: left center; }
.features .features__scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgb(10 14 12 / .8) 0%, rgb(10 14 12 / .88) 100%);
}
.features > .wrap { position: relative; z-index: 1; width: 100%; }
.features__content { max-width: 100%; margin-inline: auto; text-align: center; }
.features__content .section__head { max-width: 100%; margin-inline: auto; margin-block-end: 32px; text-align: center; }
.features__content .eyebrow {
  margin-inline: auto;
  color: var(--on-cypress);
  background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .2);
}
.features__content .section__head h2 { color: var(--on-cypress); }
.features__content .section__head p { color: color-mix(in oklab, var(--on-cypress) 78%, transparent); }
@media (min-width: 760px) {
  .features { min-height: 680px; }
  .features .features__scrim {
    background: linear-gradient(to left, rgb(10 14 12 / .88) 0%, rgb(10 14 12 / .55) 32%, transparent 60%);
  }
  .features__content { max-width: 560px; margin-inline: 0 auto; text-align: start; }
  .features__content .section__head { margin-inline: 0; text-align: start; }
  .features__content .eyebrow { margin-inline: 0; }
}

.features-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feature {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius);
  background: rgb(255 255 255 / .08); border: 1px solid rgb(255 255 255 / .16);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  text-align: start; transition: transform .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-3px); border-color: rgb(255 255 255 / .32); }
.feature__icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 22px; color: var(--cypress-bright);
  background: color-mix(in oklab, var(--cypress-bright) 22%, transparent);
  border: 1px solid color-mix(in oklab, var(--cypress-bright) 35%, transparent);
}
.feature__icon svg { width: 21px; height: 21px; }
.feature__body { min-width: 0; }
.feature h3 { font-family: var(--font-display); font-weight: 700; font-size: 16.5px; margin-block-end: 3px; color: var(--on-cypress); }
.feature p { color: color-mix(in oklab, var(--on-cypress) 78%, transparent); font-size: 14px; line-height: 1.5; }

/* ===================== HOW IT WORKS · חוט התור ===================== */
/* full-bleed video hero, same pattern as #features/.hero: absolute video +
   dark scrim behind the content, content lifted onto its own stacking layer */
.how { position: relative; overflow: hidden; min-height: 640px; display: flex; align-items: center; }
.how .how__bg-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.how .how__scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgb(10 14 12 / .12) 0%, rgb(10 14 12 / .18) 55%, rgb(10 14 12 / .32) 100%);
}
.how > .wrap { position: relative; z-index: 1; width: 100%; }
/* raw video footage can't flip for light mode, so this section always reads
   as a dark hero — pin text to the on-dark tokens regardless of theme. the
   scrim is kept light so the footage stays close to source brightness, so
   legibility rests mainly on the text-shadow below rather than a heavy tint —
   important since a playing video's local contrast shifts frame to frame. */
.how .eyebrow {
  color: var(--on-cypress);
  background: rgb(255 255 255 / .18); border-color: rgb(255 255 255 / .28);
}
.how .section__head h2,
.how .section__head p,
.how .step h3,
.how .step p {
  text-shadow: 0 2px 12px rgb(0 0 0 / .6), 0 1px 3px rgb(0 0 0 / .55);
}
.how .section__head h2 { color: var(--on-cypress); }
.how .section__head p { color: color-mix(in oklab, var(--on-cypress) 78%, transparent); }
.how .step h3 { color: var(--on-cypress); }
.how .step p { color: color-mix(in oklab, var(--on-cypress) 75%, transparent); }
.how .step__node {
  background: rgb(10 14 12 / .85);
  box-shadow: 0 0 0 6px rgb(10 14 12 / .85), 0 0 22px -4px color-mix(in oklab, var(--cypress-bright) 60%, transparent);
}
.how__track { position: relative; }
/* the queue thread — the signature. Vertical on mobile. */
.how__thread {
  position: absolute; z-index: 0;
  inset-inline-start: 27px; inset-block: 34px;
  width: 3px; border-radius: 3px;
  background:
    linear-gradient(var(--thread-base), var(--thread-base));
  overflow: visible;
}
.how__thread::before { /* lit portion base */
  content: ""; position: absolute; inset: 0; border-radius: 3px;
  background: linear-gradient(180deg, var(--cypress-bright), color-mix(in oklab, var(--cypress-bright) 40%, transparent));
  opacity: .35;
}
.how__spark { /* the traveling bead — a client moving through the queue */
  position: absolute; inset-inline-start: 50%; translate: -50% -50%; inset-block-start: 0;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--cypress-bright);
  box-shadow: 0 0 0 5px color-mix(in oklab, var(--cypress-bright) 22%, transparent),
              0 0 26px 4px var(--cypress-bright);
  animation: spark-v 6s var(--ease-out) infinite;
}
@keyframes spark-v { 0% { inset-block-start: 3%; } 45% { inset-block-start: 50%; } 90%,100% { inset-block-start: 97%; } }

.steps { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 34px; }
.step { position: relative; padding-inline-start: 76px; }
.step__node {
  position: absolute; inset-inline-start: 0; inset-block-start: 2px;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg); border: 3px solid var(--cypress-bright);
  font-family: var(--font-digits); font-weight: 500; font-size: 18px;
  color: var(--cypress-bright);
  box-shadow: 0 0 0 6px var(--bg), 0 0 22px -4px color-mix(in oklab, var(--cypress-bright) 60%, transparent);
}
.section--panel .step__node { box-shadow: 0 0 0 6px var(--panel), 0 0 22px -4px color-mix(in oklab, var(--cypress-bright) 60%, transparent); }
.step__node svg { width: 24px; height: 24px; }
.step h3 { font-family: var(--font-display); font-weight: 700; font-size: 23px; margin-block: 6px 8px; color: var(--ink); }
.step p { color: var(--ink-mid); font-size: 16.5px; line-height: 1.6; max-width: 460px; }

/* ===================== PRICING + CTA — IMAGE HERO ===================== */
/* same base pattern as .features/.how: full-bleed image + directional scrim,
   mascot kept in frame on the left, content in a framed glass panel on the
   right. Compact — not another full hero — so min-height stays modest. */
.pricing-cta { position: relative; overflow: hidden; flex-shrink: 0; min-height: 560px; display: flex; align-items: center; }
.pricing-cta .pricing-cta__bg-image { z-index: 0; object-fit: cover; object-position: left center; }
.pricing-cta .pricing-cta__scrim {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgb(10 14 12 / .8) 0%, rgb(10 14 12 / .88) 100%);
}
.pricing-cta > .wrap { position: relative; z-index: 1; width: 100%; }
.pricing-cta__panel {
  max-width: 100%; margin-inline: auto; padding: 30px 26px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, color-mix(in oklab, var(--cypress-bright) 20%, rgb(255 255 255 / .08)), rgb(255 255 255 / .05));
  border: 1px solid color-mix(in oklab, #D9A85C 40%, rgb(255 255 255 / .18));
  box-shadow: 0 30px 70px -30px rgb(0 0 0 / .6);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  text-align: center;
}
.pricing-cta__head { margin-block-end: 22px; }
.pricing-cta__head .eyebrow {
  margin-inline: auto;
  color: var(--on-cypress);
  background: rgb(255 255 255 / .14); border-color: rgb(255 255 255 / .24);
}
.pricing-cta__head h2 {
  font-family: var(--font-display); font-weight: 900;
  font-size: clamp(26px, 4vw, 38px); line-height: 1.08; letter-spacing: -.01em;
  margin-block: 14px 8px; color: var(--on-cypress);
  text-shadow: 0 2px 12px rgb(0 0 0 / .5);
}
.pricing-cta__head p { color: color-mix(in oklab, var(--on-cypress) 80%, transparent); font-size: 15.5px; }

.pricing-mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; text-align: start; }
.plan-mini {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 16px 14px 14px; border-radius: 16px;
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .16);
}
.plan-mini--lead {
  background: linear-gradient(160deg, color-mix(in oklab, var(--cypress-bright) 32%, transparent), rgb(255 255 255 / .08));
  border-color: color-mix(in oklab, var(--cypress-bright) 55%, rgb(255 255 255 / .2));
}
.plan-mini--muted { opacity: .8; }
.plan-mini__badge {
  align-self: flex-start; font-size: 10.5px; font-weight: 700; letter-spacing: .02em;
  padding: 4px 10px; border-radius: 100px;
}
.plan-mini__badge--founders { background: var(--gold); color: #241407; }
.plan-mini__badge--muted { background: rgb(255 255 255 / .18); color: var(--on-cypress); }
.plan-mini__top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.plan-mini__name { font-family: var(--font-body); font-weight: 700; font-size: 12.5px; letter-spacing: .04em; text-transform: uppercase; color: var(--on-cypress); }
.plan-mini__price { display: flex; align-items: baseline; gap: 4px; }
.plan-mini__amount { font-family: var(--font-display); font-weight: 900; font-size: 24px; line-height: 1; color: var(--on-cypress); }
.plan-mini__amount .cur { font-size: 14px; }
.plan-mini__amount--was {
  font-size: 14px; font-weight: 700; color: color-mix(in oklab, var(--on-cypress) 55%, transparent);
  text-decoration: line-through; text-decoration-thickness: 2px;
}
.plan-mini__amount--was .cur { font-size: 11px; }
.plan-mini__per { font-size: 11.5px; color: color-mix(in oklab, var(--on-cypress) 70%, transparent); }
.plan-mini__list { list-style: none; display: grid; gap: 6px; margin: 0; }
.plan-mini__list li { display: flex; align-items: flex-start; gap: 7px; font-size: 12.5px; color: color-mix(in oklab, var(--on-cypress) 85%, transparent); }
.plan-mini__list svg { width: 15px; height: 15px; flex-shrink: 0; margin-block-start: 1px; color: var(--cypress-bright); }
.plan-mini .btn { width: 100%; min-height: 44px; margin-block-start: auto; font-size: 13.5px; padding: 9px 14px; }

.pricing-cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; margin-block-start: 24px; }

@media (min-width: 760px) {
  .pricing-cta { min-height: 620px; }
  .pricing-cta .pricing-cta__scrim {
    background: linear-gradient(to left, rgb(10 14 12 / .85) 0%, rgb(10 14 12 / .5) 32%, transparent 60%);
  }
  .pricing-cta__panel { max-width: 560px; margin-inline: 0 auto; text-align: start; }
  .pricing-cta__head .eyebrow { margin-inline: 0; }
}

/* ===================== FOOTER ===================== */
.footer { border-block-start: 1px solid var(--line); padding-block: 46px; background: var(--bg); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; }
.footer p { color: var(--ink-mut); font-size: 14px; }
.footer__links { display: flex; gap: 22px; }
.footer__links a { color: var(--ink-mid); font-size: 14.5px; font-weight: 500; transition: color .25s; min-height: 44px; display: inline-flex; align-items: center; padding-block: 10px; }
.footer__links a:hover { color: var(--cypress-bright); }

/* ===================== REVEAL ===================== */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ===================== RESPONSIVE ===================== */
@media (min-width: 760px) {
  .hero__thread { display: block; }
  .hero__proof { margin-block-start: 40px; }
}

@media (min-width: 980px) {
  /* the mascot visual takes over this side of the hero — the thread
     decoration would otherwise draw a line straight through the photo */
  .hero__thread { display: none; }
  /* HOW: switch the thread to horizontal, steps side-by-side */
  .steps { grid-template-columns: repeat(3, 1fr); gap: 30px; }
  .step { padding-inline-start: 0; padding-block-start: 84px; text-align: center; }
  .step__node { inset-inline-start: 50%; translate: -50% 0; inset-block-start: 0; }
  .step p { margin-inline: auto; }
  .how__thread {
    inset-inline: 12% 12%; inset-block-start: 28px; inset-block-end: auto;
    width: auto; height: 3px;
  }
  .how__spark { animation: spark-h 6s var(--ease-out) infinite; inset-block-start: 50%; }
  /* RTL: travel from right (start) to left (end) */
  @keyframes spark-h { 0% { inset-inline-start: 3%; } 45% { inset-inline-start: 50%; } 90%,100% { inset-inline-start: 97%; } }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }
  .nav__links { display: none; }
  .nav__hamburger { display: inline-flex; }
  .nav__inner { height: 64px; padding-inline: 18px; gap: 10px; }
  /* FIX (audit 2026-07): the nav's solid background is toggled by
     redesign.js on `window.scrollY > 24`, but this landing's pinned scroll
     keeps window.scrollY at 0, so the toggle never fires and the fixed nav
     stays transparent. On mobile that lets scrolling content — section
     headings and the pricing "למייסדים" badge — slide UNDER the bar and get
     obscured by the hamburger. Force the solid, blurred background on mobile
     so content never shows through. Brand-safe: reuses the existing --bg
     blur; the green identity is untouched. */
  .nav {
    background: color-mix(in oklab, var(--bg) 82%, transparent);
    backdrop-filter: blur(18px) saturate(1.3);
    border-block-end-color: var(--line);
  }
  .wrap { padding-inline: 18px; }
  .brand { font-size: 19px; }
  .brand__logo { width: 36px; height: 36px; }
  /* the FOGO co-brand mark is a secondary trust signal — worth the room on
     desktop, but on a 360-390px nav row it just adds noise next to the CTA,
     toggle and hamburger. Drop it; the תורו mark alone still reads fine. */
  .brand__sep, .brand__by, .brand__fogo { display: none; }
}

/* ===================== REDUCED MOTION ===================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .how__spark { inset-block-start: 50%; }
}
