/* ============================================================
   Crystal Air Systems — Design System v2
   Light crystal aesthetic, anchored to crystalair.co.il:
   Birzia typeface · teal #08C0B8 → cyan #1FDAD9 · deep petrol bands
   RTL Hebrew · pill buttons · diagonal section cuts
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Brand color — from the live site kit */
  --teal: #08c0b8;
  --cyan: #1fdad9;
  --teal-deep: #0e7c76;      /* links/accents on white — AA */
  --teal-ink: #063a38;       /* text on gradient buttons */
  --petrol: #0f3438;         /* deep bands */
  --petrol-deep: #0b282c;    /* footer */

  --bg: #ffffff;
  --bg-ice: #f4fafc;         /* tinted band */
  --line: #dbebee;
  --line-soft: #e8f3f5;

  --ink: #1c2528;            /* headings */
  --body: #46555b;           /* body text — 7.4:1 on white */
  --mute: #64757c;           /* captions — 4.9:1 on white */

  --grad: linear-gradient(120deg, var(--teal), var(--cyan));

  /* On-petrol colors */
  --on-dark: #f2fbfc;
  --on-dark-soft: #b9d6da;

  /* Type */
  --font: "Birzia", "Heebo", "Arial Hebrew", Arial, sans-serif;

  /* Scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.94rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.19rem, 1.12rem + 0.35vw, 1.4rem);
  --step-2: clamp(1.5rem, 1.36rem + 0.7vw, 1.95rem);
  --step-3: clamp(1.95rem, 1.7rem + 1.25vw, 2.7rem);
  --step-4: clamp(2.5rem, 2.1rem + 2vw, 3.75rem);
  --step-5: clamp(2.55rem, 1.9rem + 3.6vw, 5.1rem);

  /* Space */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 6.5rem;
  --space-7: clamp(6rem, 5rem + 6vw, 10.5rem);

  /* Surfaces */
  --radius: 14px;
  --radius-lg: 22px;
  --pill: 999px;
  --shadow-soft: 0 10px 40px -12px rgba(9, 60, 66, 0.12);
  --shadow-lift: 0 28px 70px -24px rgba(9, 60, 66, 0.28);
  --shadow-teal: 0 16px 44px -14px rgba(8, 192, 184, 0.45);

  --container: 76rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --z-nav: 100;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* No CSS smooth-scroll: frozen rAF in background tabs strands anchor jumps mid-way. */

body {
  font-family: var(--font);
  font-size: var(--step-0);
  line-height: 1.7;
  color: var(--body);
  background: var(--bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--teal); color: #fff; }

h1, h2, h3 {
  font-weight: 900;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

:focus-visible { outline: 2px solid var(--teal-deep); outline-offset: 3px; border-radius: 4px; }

.container { max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.section { padding-block: var(--space-7); position: relative; }

/* Diagonal cut into a dark band that follows a light section */
.cut-top { padding-top: calc(var(--space-7) + clamp(40px, 5vw, 90px)); }
.cut-top::before {
  content: ""; position: absolute; top: -1px; inset-inline: 0;
  height: clamp(40px, 5vw, 90px); pointer-events: none;
  background: var(--bg);
  clip-path: polygon(0 0, 100% 0, 100% 100%);
}
.cut-top--ice::before { background: var(--bg-ice); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Ice grid texture band (light engineering feel) */
.blueprint {
  background-color: var(--bg-ice);
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
}
/* The vignette softens the grid lines only — it must stay BEHIND the
   content, or every element low in the section renders washed out. */
.blueprint > * { position: relative; z-index: 1; }
.blueprint::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(120% 90% at 50% 0%, transparent 40%, var(--bg-ice) 96%);
}

/* ---------- Nav — floating white card ---------- */
.nav {
  position: fixed; inset-inline: clamp(0.6rem, 2vw, 2rem); top: 0.9rem; z-index: var(--z-nav);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: var(--pill);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(219, 235, 238, 0.8);
  transition: box-shadow 0.3s;
}
.nav.is-scrolled { box-shadow: var(--shadow-lift); }
.nav-inner {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0.55rem 1.4rem;
}
.nav-brand { display: flex; align-items: center; }
.nav-brand img { height: 52px; width: auto; }
.nav-links { display: flex; gap: 1.7rem; margin-inline-start: auto; font-size: 0.98rem; font-weight: 400; }
.nav-links a { color: var(--ink); padding-block: 0.4rem; position: relative; transition: color 0.25s; }
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a[aria-current="page"] { color: var(--teal-deep); font-weight: 700; }
.nav-links a[aria-current="page"]::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -2px; height: 2px;
  background: var(--grad); border-radius: 2px;
}
.nav-cta { margin-inline-start: var(--space-2); }

/* Mobile nav */
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; }
.nav-toggle svg { width: 26px; height: 26px; stroke: var(--teal-deep); }
.nav-links .btn-menu-cta { display: none; }
@media (max-width: 900px) {
  .nav .nav-cta { display: none; }
  .nav-toggle { display: flex; margin-inline-start: auto; }
  .nav-brand img { height: 44px; }
  .nav.is-open { border-radius: var(--radius-lg); }
  .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: calc(100% + 0.5rem); inset-inline: 0;
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lift); border: 1px solid var(--line);
    padding: var(--space-2) var(--space-3);
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity 0.35s var(--ease-out), transform 0.35s var(--ease-out), visibility 0s 0.35s;
  }
  .nav.is-open .nav-links { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav-links a { padding-block: 0.85rem; border-bottom: 1px solid var(--line-soft); font-size: 1.05rem; }
  .nav-links a[aria-current="page"]::after { content: none; }
  .nav-links .btn-menu-cta {
    display: inline-flex; margin-block: 0.9rem 0.3rem; border-bottom: none;
    justify-content: center; font-size: 1rem;
  }
  /* hamburger → X morph */
  .nav-toggle .bar { transition: transform 0.3s var(--ease-out), opacity 0.2s; transform-origin: center; }
  .nav.is-open .nav-toggle .bar-1 { transform: translateY(7px) rotate(45deg); }
  .nav.is-open .nav-toggle .bar-2 { opacity: 0; }
  .nav.is-open .nav-toggle .bar-3 { transform: translateY(-7px) rotate(-45deg); }
}

/* ---------- Buttons — brand pills ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  padding: 0.95rem 2rem; border-radius: var(--pill);
  font-weight: 700; font-size: 1rem; line-height: 1.2;
  min-height: 48px;
  transition: transform 0.25s var(--ease-out), box-shadow 0.3s, background 0.25s, color 0.25s, border-color 0.25s;
  touch-action: manipulation;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad); color: var(--teal-ink);
  box-shadow: var(--shadow-teal);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 22px 54px -14px rgba(8, 192, 184, 0.6); }
/* shimmer sweep — background-position based, so it stays clipped to the
   pill even when the button's overflow is visible (.btn-glow) */
.btn-primary::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  background-size: 250% 100%;
  background-position: 130% 0;
  background-repeat: no-repeat;
}
.btn-primary:hover::after { transition: background-position 0.9s var(--ease-out); background-position: -30% 0; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-deep); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
/* ghost on photos / dark bands */
.on-dark .btn-ghost { border-color: rgba(255, 255, 255, 0.65); color: #fff; background: transparent; }
.on-dark .btn-ghost:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.12); }
.btn-lg { padding: 1.15rem 2.5rem; font-size: 1.08rem; }

/* .hero-ctas is shared by the subpage subheroes and the founder section */
.hero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
@media (max-width: 700px) {
  .hero-ctas .btn { width: 100%; }
}

.reveal-line { display: block; overflow: hidden; }
.reveal-line > span { display: block; padding-block-end: 0.1em; margin-block-end: -0.1em; }

/* ---------- Logo marquee ---------- */
.marquee-band { padding-block: var(--space-5); background: var(--bg); }
.marquee-label { text-align: center; color: var(--mute); font-size: 0.98rem; margin-bottom: var(--space-4); max-width: 52ch; margin-inline: auto; }
.marquee { overflow: hidden; position: relative; direction: ltr;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; align-items: center; gap: clamp(3rem, 6vw, 5.5rem); width: max-content; animation: marquee 36s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee img { height: 56px; width: auto; opacity: 0.75; transition: opacity 0.3s, transform 0.3s; }
.marquee img:hover { opacity: 1; transform: scale(1.06); }
@keyframes marquee { to { transform: translateX(calc(-50% - clamp(1.5rem, 3vw, 2.75rem))); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee { mask-image: none; }
  .marquee img[aria-hidden="true"] { display: none; }
}

/* ---------- Numbers ledger ---------- */
.ledger {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lift);
  border: 1px solid var(--line-soft);
}
.ledger-cell { padding: var(--space-4) var(--space-3); border-inline-start: 1px solid var(--line-soft); position: relative; }
.ledger-cell:first-child { border-inline-start: none; }
.ledger-num {
  font-weight: 900; color: var(--ink);
  font-size: var(--step-4); line-height: 1; font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; gap: 0.25rem; white-space: nowrap;
}
.ledger-num .unit { font-weight: 700; font-size: var(--step-1); color: var(--teal-deep); }
.ledger-label { margin-top: 0.7rem; color: var(--mute); font-size: 0.98rem; line-height: 1.5; }
.ledger-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 860px) {
  /* minmax(0,…): .ledger-num is nowrap, so a plain 1fr would take its
     min-content width as the floor and push columns past the container. */
  .ledger { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ledger-cell:nth-child(odd) { border-inline-start: none; }
  .ledger-cell:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .ledger-3 { grid-template-columns: 1fr; }
  .ledger-3 .ledger-cell { border-inline-start: none; }
  .ledger-3 .ledger-cell:nth-child(n+2) { border-top: 1px solid var(--line-soft); }
}
/* Below ~520px two columns can no longer hold a nowrap figure + unit */
@media (max-width: 520px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger-cell { border-inline-start: none; }
  .ledger-cell:nth-child(n+2) { border-top: 1px solid var(--line-soft); }
}

/* ---------- Problem — deep petrol band, diagonal edges ---------- */
.problem {
  background: var(--petrol); color: var(--on-dark-soft);
}
.problem-kicker { color: var(--cyan); font-weight: 700; font-size: var(--step-1); margin-bottom: var(--space-3); }
.problem-text {
  font-weight: 900;
  font-size: var(--step-3); line-height: 1.4; color: #fff;
  max-width: 30ch;
}
.problem-text .w { opacity: 0.38; transition: opacity 0.2s linear; }
.problem-text .w.on { opacity: 1; }
.problem-turn { margin-top: var(--space-4); max-width: 54ch; font-size: var(--step-1); color: var(--on-dark-soft); }
.problem-turn strong { color: var(--cyan); }

/* ---------- Two paths ---------- */
.paths { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-5); }
.path {
  position: relative; border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column; min-height: 470px;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
/* Explicit stack: photo → scrim → text. Both photo and scrim sat at
   z-index -1 before, so the photo painted over the scrim and the white
   copy ended up directly on a bright image. */
.path-media { position: absolute; inset: 0; z-index: 0; }
.path-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.path:hover .path-media img { transform: scale(1.05); }
.path::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(11, 40, 44, 0.97) 22%, rgba(11, 40, 44, 0.78) 52%, rgba(11, 40, 44, 0.25) 85%); }
.path-body { position: relative; z-index: 2; margin-top: auto; padding: var(--space-4); }
.path-aud { color: var(--cyan); font-weight: 700; font-size: 0.95rem; }
.path h3 { font-size: var(--step-3); margin-top: 0.5rem; color: #fff; }
.path p { margin-top: var(--space-2); max-width: 48ch; color: rgba(255, 255, 255, 0.88); }
.path-fits { margin-top: var(--space-2); display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; font-size: 0.92rem; color: rgba(255, 255, 255, 0.75); list-style: none; }
.path-fits li { display: flex; align-items: center; gap: 0.45rem; }
.path-fits svg { width: 14px; height: 14px; stroke: var(--cyan); flex-shrink: 0; }
.path-link { margin-top: var(--space-3); display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--cyan); }
.path-link svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.path:hover .path-link svg { transform: translateX(-5px); }
@media (max-width: 860px) { .paths { grid-template-columns: 1fr; } .path { min-height: 400px; } }

/* ---------- Advantages ledger rows ---------- */
.adv-rows { margin-top: var(--space-5); border-top: 1px solid var(--line); }
.adv-row {
  display: grid; grid-template-columns: 5rem 1fr 1.6fr; gap: var(--space-3);
  padding-block: var(--space-4); padding-inline: var(--space-2); border-bottom: 1px solid var(--line);
  align-items: baseline;
  transition: background 0.3s;
}
.adv-row:hover { background: rgba(8, 192, 184, 0.05); }
.adv-row:hover .adv-idx { color: var(--teal-deep); }
.adv-idx { font-weight: 900; font-size: var(--step-2); color: var(--teal); font-variant-numeric: tabular-nums; transition: color 0.3s; }
.adv-row h3 { font-size: var(--step-2); }
.adv-row p { color: var(--body); max-width: 60ch; }
@media (max-width: 860px) {
  .adv-row { grid-template-columns: 3rem 1fr; }
  .adv-row p { grid-column: 2; }
}

/* ---------- Process ---------- */
.process { background: var(--bg-ice); }
.process-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-5); align-items: start; }
.process-sticky { position: sticky; top: 7rem; }
.process-sticky .lead { margin-top: var(--space-2); color: var(--mute); max-width: 40ch; }
.steps { display: grid; gap: var(--space-3); }
.step {
  border-radius: var(--radius-lg);
  background: #fff; padding: var(--space-4);
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-3); align-items: start;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.step-num {
  font-weight: 900; font-size: var(--step-3); line-height: 1;
  color: var(--teal); font-variant-numeric: tabular-nums; min-width: 2.2ch;
}
.step h3 { font-size: var(--step-1); }
.step p { margin-top: 0.5rem; color: var(--body); font-size: 0.98rem; }
@media (max-width: 860px) { .process-grid { grid-template-columns: 1fr; } .process-sticky { position: static; } }

/* ---------- Projects ---------- */
.projects-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.projects-feature { margin-top: var(--space-5); display: grid; grid-template-columns: 1.35fr 1fr; gap: var(--space-3); }
.proj-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 420px; display: flex; align-items: end;
  isolation: isolate;
  box-shadow: var(--shadow-soft);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s;
}
.proj-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.proj-card img { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease-out); }
.proj-card:hover img { transform: scale(1.06); }
.proj-card::before { content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(to top, rgba(11, 40, 44, 0.92) 8%, rgba(11, 40, 44, 0.4) 45%, transparent 75%); }
.proj-body { position: relative; z-index: 1; padding: var(--space-4); width: 100%; }
.proj-tag { color: var(--cyan); font-size: 0.9rem; font-weight: 700; }
.proj-card h3 { font-size: var(--step-2); margin-top: 0.35rem; color: #fff; }
.proj-spec { margin-top: 0.6rem; display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; list-style: none; }
.proj-spec li { display: flex; align-items: center; gap: 0.4rem; }
.proj-spec li:not(:first-child)::before { content: "·"; color: rgba(255, 255, 255, 0.4); margin-inline-end: 0.7rem; }
.projects-strip { margin-top: var(--space-3); display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); }
.projects-strip .proj-card { min-height: 300px; }
.projects-more { margin-top: var(--space-4); text-align: center; }
@media (max-width: 960px) {
  .projects-feature, .projects-strip { grid-template-columns: 1fr; }
  .proj-card { min-height: 340px; }
}

/* Names index */
.proj-index { margin-top: var(--space-5); columns: 3; gap: var(--space-4); color: var(--mute); font-size: 0.98rem; }
.proj-index li { break-inside: avoid; padding-block: 0.55rem; border-bottom: 1px solid var(--line-soft); list-style: none; }
.proj-index li strong { color: var(--ink); font-weight: 700; }
@media (max-width: 860px) { .proj-index { columns: 1; } }

/* ---------- Testimonials ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-3); margin-top: var(--space-5); }
.quote {
  border-radius: var(--radius-lg); padding: var(--space-4);
  background: #fff; display: flex; flex-direction: column; gap: var(--space-3);
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--line-soft);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s;
}
.quote:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.quote blockquote { font-size: var(--step-1); line-height: 1.6; color: var(--ink); font-weight: 400; flex: 1; }
.quote blockquote::before { content: "״"; color: var(--teal); font-weight: 900; font-size: 1.6em; line-height: 0; margin-inline-end: 0.1em; }
/* cite must be a block: an inline box with a border-top draws the rule
   through the line of text instead of above it. */
.quote figcaption { border-top: 1px solid var(--line-soft); padding-top: var(--space-2); }
.quote cite { display: block; font-style: normal; color: var(--mute); font-size: 0.92rem; }
.quote cite strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: 0.15rem; }
@media (max-width: 960px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); margin-top: var(--space-5); }
.cap {
  background: #fff; padding: var(--space-3); border-radius: var(--radius);
  display: flex; align-items: center; gap: 0.8rem; font-size: 0.98rem; color: var(--ink); font-weight: 400;
  min-height: 86px;
  border: 1px solid var(--line);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s, border-color 0.3s;
}
.cap:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: var(--teal); }
.cap svg {
  width: 44px; height: 44px; padding: 10px; box-sizing: border-box;
  background: var(--bg-ice); border-radius: 12px;
  stroke: var(--teal-deep); flex-shrink: 0;
  transition: background 0.3s;
}
.cap:hover svg { background: rgba(8, 192, 184, 0.14); }
@media (max-width: 960px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* ---------- Founder ---------- */
.founder { display: grid; grid-template-columns: 1.1fr 1fr; gap: var(--space-5); align-items: center; }
.founder-media { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lift); }
.founder-media img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4/3; }
.founder h2 { font-size: var(--step-3); }
.founder .story { margin-top: var(--space-3); display: grid; gap: var(--space-2); max-width: 56ch; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 52rem; margin-inline: auto; margin-top: var(--space-5); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding-block: var(--space-3); font-weight: 700; color: var(--ink); font-size: var(--step-1);
  transition: color 0.25s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--teal-deep); }
.faq summary svg { width: 20px; height: 20px; stroke: var(--teal-deep); flex-shrink: 0; transition: transform 0.3s var(--ease-out); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .a { padding-bottom: var(--space-3); max-width: 62ch; color: var(--body); }

/* ---------- CTA / Form — petrol band ---------- */
.cta { background: var(--petrol); color: var(--on-dark-soft); }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: start; }
.cta h2 { font-size: var(--step-4); max-width: 16ch; color: #fff; }
.cta .lead { margin-top: var(--space-3); max-width: 46ch; font-size: var(--step-1); color: var(--on-dark-soft); }
.cta-direct { margin-top: var(--space-4); display: grid; gap: 0.6rem; color: var(--on-dark-soft); font-size: 0.98rem; }
.cta-direct a { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.cta-direct a:hover { color: var(--cyan); }

.form {
  display: grid; gap: var(--space-2); background: #fff;
  border-radius: var(--radius-lg); padding: var(--space-4);
  box-shadow: var(--shadow-lift);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-2); }
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.field label .req { color: var(--teal-deep); }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); background: var(--bg-ice);
  border: 1px solid var(--line); border-radius: 10px;
  padding: 0.8rem 1rem; min-height: 48px; width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(8, 192, 184, 0.18);
}
.field input::placeholder { color: var(--mute); }
.field .err { display: none; color: #c0392b; font-size: 0.88rem; }
.field.invalid input, .field.invalid select { border-color: #c0392b; }
.field.invalid .err { display: block; }
.form-note { color: var(--mute); font-size: 0.88rem; }
.form-success { display: none; text-align: center; padding: var(--space-5) var(--space-3); }
.form-success.show { display: block; }
.form-success svg { width: 44px; height: 44px; stroke: var(--teal-deep); margin-inline: auto; margin-bottom: var(--space-2); }
.form-success h3 { color: var(--ink); }
.form.done > *:not(.form-success) { display: none; }
@media (max-width: 960px) { .cta-grid { grid-template-columns: 1fr; gap: var(--space-4); } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { background: var(--petrol-deep); color: var(--on-dark-soft); padding-block: var(--space-5) var(--space-4); font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--space-4); }
.footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: var(--space-2); font-weight: 700; }
.footer ul { list-style: none; display: grid; gap: 0.55rem; }
.footer a:hover { color: var(--cyan); }
.footer-brand { display: flex; align-items: center; gap: 0.6rem; color: #fff; font-weight: 700; margin-bottom: var(--space-2); }
.footer-brand img { width: 34px; height: 34px; }
.footer-bottom { margin-top: var(--space-4); padding-top: var(--space-3); border-top: 1px solid rgba(255, 255, 255, 0.12); display: flex; justify-content: space-between; gap: var(--space-2); flex-wrap: wrap; font-size: 0.85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Section headers ---------- */
.sec-head .kicker { color: var(--teal-deep); font-weight: 700; font-size: var(--step-0); margin-bottom: 0.6rem; }
.sec-head h2 { font-size: var(--step-4); max-width: 22ch; }
.sec-head .lead { margin-top: var(--space-2); max-width: 52ch; color: var(--mute); font-size: var(--step-1); }
.problem .sec-head h2, .cta .sec-head h2 { color: #fff; }

/* ---------- Subpage hero ---------- */
.subhero { padding-block: 11rem var(--space-6); position: relative; isolation: isolate;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1px), 0 calc(100% - 1px)); }
.subhero-bg { position: absolute; inset: 0; z-index: -2; }
.subhero-bg img { width: 100%; height: 100%; object-fit: cover; }
.subhero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(10, 56, 62, 0.72), transparent 45%),
    linear-gradient(160deg, rgba(10, 56, 62, 0.82) 25%, rgba(8, 120, 122, 0.6) 60%, rgba(31, 218, 217, 0.3) 100%); }
.subhero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: clamp(50px, 7vw, 110px); z-index: 0;
  background: var(--bg);
  clip-path: polygon(0 100%, 100% 100%, 100% 0);
}
.subhero .container { position: relative; z-index: 1; }
.subhero .crumb { color: var(--cyan); font-weight: 700; font-size: 0.95rem; margin-bottom: var(--space-2); }
.subhero h1 { font-size: var(--step-4); max-width: 24ch; color: #fff; text-shadow: 0 2px 30px rgba(6, 40, 44, 0.35); }
.subhero .lead { margin-top: var(--space-3); max-width: 54ch; font-size: var(--step-1); color: rgba(255, 255, 255, 0.94); }

/* Dark-band helpers for subpage sections reusing .problem */
.problem .sec-head .lead { color: var(--on-dark-soft); }

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 1.4rem; left: 1.4rem; z-index: var(--z-nav);
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(18, 90, 60, 0.35);
  transition: transform 0.25s var(--ease-out);
}
.wa-float:hover { transform: scale(1.1); }
.js .wa-float { opacity: 0; pointer-events: none; visibility: hidden; transform: translateY(12px); transition: opacity 0.4s, transform 0.4s var(--ease-out), visibility 0s 0.4s; }
.js .wa-float.show { opacity: 1; pointer-events: auto; visibility: visible; transform: none; transition-delay: 0s; }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ---------- Anim helpers ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ============================================================
   v3 — Conversion layout: split hero, compare table, timeline,
   sticky mobile CTA. Appended after base system.
   ============================================================ */

/* ---------- Conversion hero ---------- */
.chero {
  position: relative; isolation: isolate;
  background:
    radial-gradient(120% 90% at 85% 0%, rgba(8, 120, 122, 0.55) 0%, transparent 55%),
    linear-gradient(165deg, #0a2e33 15%, var(--petrol) 55%, #0d4a4c 100%);
  padding: 9.5rem 0 0;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1px), 0 calc(100% - 1px));
}
.chero::after {
  content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: clamp(50px, 7vw, 110px);
  background: var(--bg); clip-path: polygon(0 100%, 100% 100%, 100% 0); z-index: 0;
}
.chero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.chero-photo {
  width: 100%; height: 100%; object-fit: cover; object-position: center 25%;
  opacity: 0.16; mix-blend-mode: luminosity;
}
.orb { position: absolute; border-radius: 50%; filter: blur(70px); pointer-events: none; }
.orb-1 { width: 480px; height: 480px; background: rgba(8, 192, 184, 0.35); top: -140px; inset-inline-start: -100px; }
.orb-2 { width: 380px; height: 380px; background: rgba(31, 218, 217, 0.22); bottom: -60px; inset-inline-end: 8%; }

.chero-grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 5rem); align-items: center;
  padding-bottom: clamp(6rem, 9vw, 9rem);
}
.chero-kicker { color: var(--cyan); font-weight: 700; font-size: var(--step-0); margin-bottom: var(--space-3); }
.chero-copy h1 {
  font-size: clamp(2.3rem, 1.7rem + 3vw, 4.3rem);
  color: #fff; max-width: 20ch; letter-spacing: -0.015em;
}
.chero-copy h1 .accent { color: var(--cyan); font-style: normal; }
.chero-sub { margin-top: var(--space-3); max-width: 52ch; font-size: var(--step-1); line-height: 1.65; color: rgba(255, 255, 255, 0.92); }

.chero-points { list-style: none; margin-top: var(--space-4); display: grid; gap: 0.9rem; }
.chero-points li { display: flex; align-items: start; gap: 0.75rem; color: #fff; font-size: 1.05rem; font-weight: 400; }
.chero-points svg {
  width: 26px; height: 26px; padding: 5px; flex-shrink: 0; margin-top: -1px;
  background: rgba(8, 192, 184, 0.2); border: 1px solid rgba(31, 218, 217, 0.5);
  border-radius: 50%; stroke: var(--cyan);
}
.chero-ctas { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-4); }
.chero-clients {
  margin-top: var(--space-4); padding-top: var(--space-3);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  color: rgba(255, 255, 255, 0.75); font-size: 0.95rem;
}
.chero-clients strong { color: #fff; font-weight: 700; }

/* Hero lead-form card */
.chero-form { position: relative; }
.form-hero { position: relative; overflow: visible; }
.form-hero h2 { font-size: var(--step-2); color: var(--ink); }
.form-hero .hl { color: var(--teal-deep); }
.form-lead { color: var(--mute); font-size: 0.95rem; margin-top: -0.4rem; }
.form-stamp {
  position: absolute; top: -44px; inset-inline-end: -30px;
  width: 96px; height: 96px; z-index: 2; pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(6, 40, 44, 0.3));
}
@media (max-width: 960px) {
  .chero-grid { grid-template-columns: 1fr; }
  .chero { padding-top: 7.5rem; }
  .form-stamp { width: 76px; height: 76px; top: -34px; inset-inline-end: -8px; }
}

/* Glowing primary CTA — pulse lives on a pseudo-layer and animates
   opacity only (compositable), never box-shadow itself */
.btn-glow { overflow: visible; }
@media (prefers-reduced-motion: no-preference) {
  .btn-glow::before {
    content: ""; position: absolute; inset: 0; border-radius: inherit;
    box-shadow: 0 16px 54px -8px rgba(31, 218, 217, 0.75);
    opacity: 0; z-index: -1;
    animation: glowFade 2.6s ease-in-out infinite;
  }
  @keyframes glowFade { 50% { opacity: 1; } }
}

/* ---------- Comparison table ---------- */
.compare {
  margin-top: var(--space-5);
  border-radius: var(--radius-lg); overflow: hidden;
  background: #fff; box-shadow: var(--shadow-lift);
  border: 1px solid var(--line-soft);
}
.compare-head, .compare-row {
  display: grid; grid-template-columns: 0.9fr 1.1fr 1.4fr;
}
.compare-head {
  background: var(--petrol); color: var(--on-dark-soft);
  font-weight: 700; font-size: 0.95rem;
}
.compare-head span { padding: 1.1rem 1.4rem; }
.compare-head .us { color: var(--cyan); background: rgba(8, 192, 184, 0.12); }
.compare-row { border-top: 1px solid var(--line-soft); }
.compare-row span { padding: 1.25rem 1.4rem; font-size: 0.98rem; }
.compare-row .what { font-weight: 700; color: var(--ink); }
.compare-row .them { color: var(--mute); }
.compare-row .us {
  background: rgba(8, 192, 184, 0.07); color: var(--ink); font-weight: 400;
  display: flex; align-items: start; gap: 0.6rem;
}
.compare-row .us svg {
  width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px;
  stroke: var(--teal-deep);
}
@media (max-width: 860px) {
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; border-top: 8px solid var(--bg-ice); }
  .compare-head + .compare-row { border-top: none; }
  .compare-row .what { padding-bottom: 0.3rem; font-size: 1.05rem; }
  .compare-row .them { padding-block: 0.3rem; }
  .compare-row .them::before { content: "קבלן רגיל: "; font-weight: 700; color: var(--body); }
  .compare-row .us::before { content: "קריסטל: "; font-weight: 700; color: var(--teal-deep); }
}

/* CTA strip between sections */
.cta-strip {
  margin-top: var(--space-4);
  background: var(--grad); border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  box-shadow: var(--shadow-teal);
}
.cta-strip p { color: var(--teal-ink); font-weight: 700; font-size: var(--step-1); }
.cta-strip .btn { background: var(--petrol); color: #fff; box-shadow: none; }
.cta-strip .btn:hover { background: var(--petrol-deep); transform: translateY(-2px); }

/* ---------- Horizontal process timeline ---------- */
.tline { margin-top: var(--space-6); position: relative; }
.tline-bar {
  position: absolute; top: 26px; height: 3px;
  /* end at step 05's circle center, not the container edge */
  inset-inline: 26px calc(20% - 1.2rem - 26px);
  background: var(--line); border-radius: 3px; overflow: hidden;
}
.tline-fill {
  display: block; height: 100%; width: 100%;
  background: var(--grad);
  transform: scaleX(0); transform-origin: right center;
}
.tline-steps {
  list-style: none; display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--space-3); counter-reset: step;
}
.tline-num {
  display: grid; place-items: center;
  width: 52px; height: 52px; border-radius: 50%;
  background: #fff; border: 2px solid var(--teal);
  color: var(--teal-deep); font-weight: 900; font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  position: relative; z-index: 1;
  box-shadow: 0 0 0 6px var(--bg-ice);
}
.tline-step h3 { font-size: 1.1rem; margin-top: var(--space-2); }
.tline-step p { font-size: 0.92rem; color: var(--body); margin-top: 0.4rem; max-width: 24ch; }
@media (max-width: 960px) {
  .tline-bar { top: 26px; bottom: 26px; inset-inline: 25px auto; width: 3px; height: auto; }
  .tline-fill { transform: scaleY(0); transform-origin: center top; width: 100%; height: 100%; }
  .tline-steps { grid-template-columns: 1fr; gap: var(--space-4); }
  .tline-step { display: grid; grid-template-columns: 52px 1fr; gap: var(--space-2) var(--space-3); align-items: start; }
  .tline-step h3 { margin-top: 0.7rem; grid-column: 2; }
  .tline-step p { grid-column: 2; max-width: none; }
  .tline-num { grid-row: 1 / 3; }
  /* mask the line's tail below the last circle */
  .tline-step:last-child { position: relative; }
  .tline-step:last-child::after {
    content: ""; position: absolute; top: 52px; bottom: -26px;
    inset-inline-start: 24px; width: 5px; background: var(--bg-ice);
  }
}

/* ---------- Sticky mobile CTA bar ---------- */
.sticky-cta { display: none; }
@media (max-width: 700px) {
  .sticky-cta {
    position: fixed; bottom: 0; inset-inline: 0; z-index: var(--z-nav);
    display: flex; gap: 0.6rem; align-items: center;
    padding: 0.65rem 0.9rem calc(0.65rem + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--line);
    box-shadow: 0 -8px 30px rgba(9, 60, 66, 0.12);
  }
  .sticky-cta .btn { flex: 1; }
  .sticky-call {
    width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
    display: grid; place-items: center;
    background: var(--petrol); color: #fff;
  }
  .sticky-call svg { width: 22px; height: 22px; stroke: #fff; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .wa-float { bottom: calc(76px + 1rem + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(var(--space-4) + 40px); }
  .chero-ctas .btn { width: 100%; }
}

/* Founder CTA spacing */
.founder-cta { margin-top: var(--space-4); }
.path-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Video showcase (vertical 9:16, click-to-play with sound) ---------- */
.vshow {
  margin-top: var(--space-5);
  display: grid; grid-template-columns: 1fr minmax(280px, 340px);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.vshow--flip { grid-template-columns: minmax(280px, 340px) 1fr; }
.vshow--flip .vshow-copy { grid-column: 2; grid-row: 1; }
.vshow--flip .vplayer { grid-column: 1; grid-row: 1; }

.vshow-copy .kicker { color: var(--teal-deep); font-weight: 700; margin-bottom: 0.6rem; }
.vshow-copy h3 { font-size: var(--step-3); max-width: 18ch; }
.vshow-copy p { margin-top: var(--space-2); max-width: 46ch; color: var(--body); font-size: var(--step-1); line-height: 1.6; }
.vshow-copy .btn { margin-top: var(--space-3); }
.problem .vshow-copy h3, .problem .vshow-copy p { color: #fff; }
.problem .vshow-copy .kicker { color: var(--cyan); }

.vplayer {
  position: relative; aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg); overflow: hidden;
  background: var(--petrol-deep);
  box-shadow: var(--shadow-lift);
  isolation: isolate;
}
.vplayer video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vplayer-btn {
  position: absolute; inset: 0; z-index: 2;
  display: grid; place-items: center; gap: 0;
  background: linear-gradient(to top, rgba(11, 40, 44, 0.55), rgba(11, 40, 44, 0.12) 55%);
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.vplayer.is-playing .vplayer-btn { opacity: 0; visibility: hidden; }
.vplayer-btn .disc {
  width: 76px; height: 76px; border-radius: 50%;
  background: var(--grad); display: grid; place-items: center;
  box-shadow: var(--shadow-teal);
  transition: transform 0.3s var(--ease-out);
}
.vplayer-btn:hover .disc { transform: scale(1.09); }
.vplayer-btn .disc svg { width: 26px; height: 26px; fill: var(--teal-ink); margin-inline-start: 4px; }
.vplayer-btn .label {
  position: absolute; inset-inline: 0; bottom: 1.1rem;
  color: #fff; font-weight: 700; font-size: 0.95rem; text-align: center;
  text-shadow: 0 2px 12px rgba(6, 40, 44, 0.6);
}
/* pulsing ring — opacity only, compositable */
@media (prefers-reduced-motion: no-preference) {
  .vplayer-btn .disc::before {
    content: ""; position: absolute; width: 76px; height: 76px; border-radius: 50%;
    border: 2px solid var(--cyan); animation: discPulse 2.4s ease-out infinite;
  }
  @keyframes discPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.65); opacity: 0; }
  }
}

@media (max-width: 860px) {
  .vshow, .vshow--flip { grid-template-columns: 1fr; gap: var(--space-4); }
  .vshow--flip .vshow-copy, .vshow--flip .vplayer { grid-column: 1; grid-row: auto; }
  .vplayer { max-width: 340px; margin-inline: auto; width: 100%; }
}

/* Buffering state — the gap between click and first frame on slow links */
.vplayer.is-loading .vplayer-btn .disc svg { opacity: 0; }
.vplayer.is-loading .vplayer-btn .label { opacity: 0; }
.vplayer.is-loading .vplayer-btn .disc::after {
  content: ""; position: absolute; width: 30px; height: 30px;
  border-radius: 50%; border: 3px solid rgba(6, 58, 56, 0.25);
  border-top-color: var(--teal-ink);
  animation: discSpin 0.8s linear infinite;
}
@keyframes discSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .vplayer.is-loading .vplayer-btn .disc::after { animation-duration: 2s; }
}

/* ---------- Mobile tap targets ----------
   Inline links sit at ~18–27px tall; on touch they need ~44px of
   vertical hit area. Padding grows the target without moving the text. */
@media (max-width: 860px) {
  .path-link { padding-block: 0.55rem; }
  .cta-direct a { display: inline-block; padding-block: 0.6rem; }
  .footer ul { gap: 0.1rem; }
  .footer ul a { display: inline-block; padding-block: 0.6rem; }
  .footer-bottom { gap: var(--space-2); }
}
