/* ═══════════════════════════════════════════════════════════════════
   ZINNAWA — Haifa palette, organic geometry, multilingual + RTL
   Sand · Terracotta · Olive · Mediterranean · Stone
   ═══════════════════════════════════════════════════════════════════ */

:root {
  /* Haifa palette */
  --linen: #FAF7F2;
  --sand: #F0E4D0;
  --sand-light: #F5ECDC;
  --terracotta: #C97D5C;
  --terracotta-deep: #A8623F;
  --olive: #6B7B53;
  --olive-deep: #4F5C3D;
  --med-blue: #2E6F8E;
  --med-blue-deep: #1F546E;
  --stone: #2A2520;
  --stone-mid: #514538;
  --stone-soft: #7A6A57;
  --border: #E0D2BB;
  --border-soft: #ECE0CB;

  /* Spacing scale */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;

  /* Type — title=Fraunces, body=Spectral, EN/FR. HE swapped via [lang=he] */
  --font-title: "Fraunces", "Frank Ruhl Libre", Georgia, serif;
  --font-body: "Spectral", "Heebo", Georgia, serif;

  --radius: 14px;
  --shadow-soft: 0 1px 2px rgba(42, 37, 32, .04), 0 8px 30px rgba(42, 37, 32, .06);
  --shadow-lift: 0 2px 4px rgba(42, 37, 32, .06), 0 16px 40px rgba(42, 37, 32, .08);
  --line: 1px solid var(--border);
  --max: 1180px;
}

/* HE uses Hebrew-optimized fonts */
html[lang="he"] {
  --font-title: "Frank Ruhl Libre", "Heebo", "Fraunces", Georgia, serif;
  --font-body: "Heebo", "Frank Ruhl Libre", Georgia, sans-serif;
}

/* ═══ RESET ═══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--stone);
  background: var(--linen);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--terracotta-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--terracotta); }
button { background: none; border: none; cursor: pointer; font: inherit; color: inherit; }
em { font-style: italic; color: var(--terracotta-deep); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--s-5); }

/* ═══ MULTILINGUAL: hide everything except current ═══ */
[data-lang] { display: none; }
html[data-current-lang="en"] [data-lang="en"],
html[data-current-lang="he"] [data-lang="he"],
html[data-current-lang="fr"] [data-lang="fr"] { display: inline; }

/* In block-level containers (like h1, p, div), use revert so child layouts survive */
h1 [data-lang], h2 [data-lang], h3 [data-lang], h4 [data-lang],
p [data-lang], li [data-lang], div [data-lang], span [data-lang],
.diff-stat [data-lang], .organ-tag [data-lang], .organ-desc [data-lang],
.cascade-body [data-lang] { display: none; }

html[data-current-lang="en"] h1 [data-lang="en"],
html[data-current-lang="he"] h1 [data-lang="he"],
html[data-current-lang="fr"] h1 [data-lang="fr"],
html[data-current-lang="en"] h2 [data-lang="en"],
html[data-current-lang="he"] h2 [data-lang="he"],
html[data-current-lang="fr"] h2 [data-lang="fr"],
html[data-current-lang="en"] h3 [data-lang="en"],
html[data-current-lang="he"] h3 [data-lang="he"],
html[data-current-lang="fr"] h3 [data-lang="fr"],
html[data-current-lang="en"] h4 [data-lang="en"],
html[data-current-lang="he"] h4 [data-lang="he"],
html[data-current-lang="fr"] h4 [data-lang="fr"],
html[data-current-lang="en"] p [data-lang="en"],
html[data-current-lang="he"] p [data-lang="he"],
html[data-current-lang="fr"] p [data-lang="fr"],
html[data-current-lang="en"] li [data-lang="en"],
html[data-current-lang="he"] li [data-lang="he"],
html[data-current-lang="fr"] li [data-lang="fr"],
html[data-current-lang="en"] div [data-lang="en"],
html[data-current-lang="he"] div [data-lang="he"],
html[data-current-lang="fr"] div [data-lang="fr"],
html[data-current-lang="en"] span [data-lang="en"],
html[data-current-lang="he"] span [data-lang="he"],
html[data-current-lang="fr"] span [data-lang="fr"] { display: inline; }

/* ═══ NAV ═══ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 247, 242, .92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: var(--line);
}
.nav-inner {
  max-width: var(--max); margin: 0 auto;
  padding: var(--s-4) var(--s-5);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-4);
}
.nav-logo {
  display: inline-flex; align-items: center; gap: var(--s-2);
  color: var(--stone); font-family: var(--font-title);
  font-weight: 600; font-size: 1.2rem; letter-spacing: -.01em;
}
.nav-logo:hover { color: var(--stone); }
.logo-mark {
  display: inline-block;
  font-size: 1.4rem; line-height: 1;
  color: var(--terracotta);
  transform: translateY(-1px);
}
.nav-actions { display: flex; align-items: center; gap: var(--s-4); }
.lang-toggle {
  display: inline-flex;
  border: var(--line);
  border-radius: 999px;
  padding: 3px;
  background: var(--sand-light);
}
.lang-btn {
  padding: 4px 12px;
  font-size: .85rem; font-weight: 500;
  color: var(--stone-soft);
  border-radius: 999px;
  font-family: var(--font-body);
  transition: all .2s ease;
}
.lang-btn[aria-pressed="true"] {
  background: var(--stone);
  color: var(--linen);
}
.lang-btn:hover:not([aria-pressed="true"]) { color: var(--stone); }
.nav-cta {
  padding: 8px 18px;
  background: var(--stone);
  color: var(--linen);
  border-radius: 999px;
  font-size: .9rem;
  font-weight: 500;
  white-space: nowrap;
}
.nav-cta:hover { background: var(--terracotta-deep); color: var(--linen); }

/* ═══ HERO ═══ */
.hero {
  position: relative;
  padding: var(--s-9) 0 var(--s-8);
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 80% 30%, rgba(201, 125, 92, .10), transparent 60%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(46, 111, 142, .08), transparent 70%),
    var(--linen);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
}
@media (min-width: 880px) {
  .hero-inner { grid-template-columns: 1.15fr .85fr; gap: var(--s-9); }
}
.hero-eyebrow {
  display: inline-block;
  font-size: .85rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--olive-deep);
  font-family: var(--font-body); font-weight: 500;
  margin-bottom: var(--s-5);
  padding: 4px 14px;
  background: rgba(107, 123, 83, .08);
  border-radius: 999px;
  border: 1px solid rgba(107, 123, 83, .15);
}
.hero-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(2.2rem, 5.2vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  color: var(--stone);
  max-width: 18ch;
  margin-bottom: var(--s-5);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.hero-title em {
  font-style: italic;
  color: var(--terracotta-deep);
  font-variation-settings: "opsz" 144, "SOFT" 100;
}
.hero-sub {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--stone-mid);
  max-width: 50ch;
  line-height: 1.6;
  margin-bottom: var(--s-6);
}
.hero-cta-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--s-4) var(--s-5);
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: var(--stone);
  color: var(--linen);
  font-family: var(--font-body);
  font-size: 1.02rem; font-weight: 500;
  border-radius: 999px;
  transition: all .25s ease;
  box-shadow: var(--shadow-soft);
}
.btn-primary:hover {
  background: var(--terracotta-deep); color: var(--linen);
  transform: translateY(-1px);
  box-shadow: var(--shadow-lift);
}
.hero-cta-tagline {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--stone-soft);
}

/* Hero art (lenses SVG) */
.hero-art { position: relative; width: 100%; max-width: 380px; margin: 0 auto; opacity: .92; }
.lenses { width: 100%; height: auto; }
.lens-rays line {
  stroke: var(--stone-mid);
  stroke-width: .8;
  opacity: .35;
}
.lens-rays line { animation: rayPulse 4s ease-in-out infinite; }
.lens-rays line:nth-child(1) { animation-delay: 0s; }
.lens-rays line:nth-child(2) { animation-delay: .3s; }
.lens-rays line:nth-child(3) { animation-delay: .6s; }
.lens-rays line:nth-child(4) { animation-delay: .9s; }
.lens-rays line:nth-child(5) { animation-delay: 1.2s; }
.lens-rays line:nth-child(6) { animation-delay: 1.5s; }
.lens-rays line:nth-child(7) { animation-delay: 1.8s; }
@keyframes rayPulse {
  0%, 100% { opacity: .15; }
  50% { opacity: .55; }
}
.lens-pulses circle {
  fill: none; stroke: var(--terracotta); stroke-width: 1; opacity: 0;
  animation: ringPulse 5s ease-out infinite;
}
.lens-pulses circle:nth-child(2) { animation-delay: 1.5s; }
.lens-pulses circle:nth-child(3) { animation-delay: 3s; }
@keyframes ringPulse {
  0% { opacity: 0; r: 60; }
  10% { opacity: .4; }
  100% { opacity: 0; r: 160; }
}
.lens-core { animation: coreBreath 6s ease-in-out infinite; transform-origin: 160px 160px; }
@keyframes coreBreath {
  0%, 100% { opacity: .55; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.08); }
}

/* ═══ SECTIONS ═══ */
section { padding: var(--s-9) 0; }
.section-title {
  font-family: var(--font-title);
  font-weight: 400;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.2;
  letter-spacing: -.015em;
  color: var(--stone);
  text-align: center;
  margin: 0 auto var(--s-5);
  max-width: 26ch;
  font-variation-settings: "opsz" 80;
}
.section-title em { font-style: italic; color: var(--terracotta-deep); }
.section-sub {
  text-align: center;
  font-size: 1.05rem;
  color: var(--stone-mid);
  max-width: 56ch;
  margin: 0 auto var(--s-7);
}

/* ═══ DIFFERENCE — 3 cards ═══ */
.difference {
  background: linear-gradient(180deg, var(--linen) 0%, var(--sand-light) 100%);
}
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  margin-top: var(--s-7);
}
@media (min-width: 760px) { .diff-grid { grid-template-columns: repeat(3, 1fr); } }
.diff-card {
  background: var(--linen);
  border: var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  opacity: 0; transform: translateY(20px);
}
.diff-card.in-view { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s ease; }
.diff-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--terracotta);
}
.diff-art { height: 100px; margin-bottom: var(--s-4); display: flex; align-items: center; }
.diff-art svg { width: 100%; height: 100%; }
.diff-art .atom { fill: var(--olive); }
.diff-art .atom.big { fill: var(--terracotta); }
.diff-art .atom.small { fill: var(--med-blue); }
.diff-art .link { stroke: var(--stone-soft); stroke-width: 1.2; opacity: .5; }
.diff-art .judge-rays line { stroke: var(--olive); stroke-width: 1; opacity: .5; }
.diff-art .judge-core { fill: var(--terracotta); }
.diff-art .judge-pulse { fill: none; stroke: var(--terracotta); stroke-width: 1; opacity: .3; }
.diff-art .msg-bubble { fill: var(--sand); stroke: var(--border); }
.diff-art .msg-line { stroke: var(--stone-soft); stroke-width: 2; stroke-linecap: round; opacity: .4; }
.diff-art .silence-mark { fill: none; stroke: var(--terracotta-deep); stroke-width: 1.5; }
.diff-art .silence-x { stroke: var(--terracotta-deep); stroke-width: 1.5; stroke-linecap: round; }
.diff-h {
  font-family: var(--font-title);
  font-weight: 500; font-style: italic;
  font-size: 1.5rem;
  color: var(--stone);
  margin-bottom: var(--s-3);
}
.diff-card p {
  color: var(--stone-mid);
  font-size: 1rem;
  margin-bottom: var(--s-5);
  line-height: 1.65;
}
.diff-stat {
  font-family: var(--font-body);
  font-size: .85rem;
  letter-spacing: .04em;
  color: var(--olive-deep);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
}

/* ═══ CASCADE ═══ */
.cascade {
  background: var(--sand);
  position: relative;
}
.cascade-track {
  max-width: 720px;
  margin: var(--s-7) auto 0;
  position: relative;
}
.cascade-level {
  display: flex; align-items: flex-start; gap: var(--s-5);
  padding: var(--s-5) var(--s-5);
  background: var(--linen);
  border: var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--s-3);
  opacity: 0; transform: translateY(15px);
  position: relative;
}
.cascade-level.in-view { opacity: 1; transform: translateY(0); transition: opacity .6s ease, transform .6s ease; }
.cascade-level:not(:last-child)::after {
  content: ""; position: absolute;
  bottom: -10px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 14px; background: var(--terracotta);
  opacity: .4;
}
.cascade-num {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--terracotta-deep);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border);
}
.cascade-final .cascade-num {
  background: var(--olive); color: var(--linen); border-color: var(--olive-deep);
}
.cascade-body { flex: 1; }
.cascade-body h4 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.15rem;
  color: var(--stone);
  margin-bottom: 4px;
  font-style: italic;
}
.cascade-body p {
  font-size: .95rem;
  color: var(--stone-mid);
  line-height: 1.5;
}
.cascade-final {
  background: var(--linen);
  border-color: var(--olive);
}
.cascade-foot {
  text-align: center;
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--stone-mid);
  margin-top: var(--s-7);
  max-width: 50ch;
  margin-left: auto; margin-right: auto;
}

/* ═══ ORGANS — Hokmah, Kefal, Catalyst ═══ */
.organs { background: var(--linen); }
.organs-grid {
  display: grid; gap: var(--s-5);
  grid-template-columns: 1fr;
  margin-top: var(--s-7);
}
@media (min-width: 820px) { .organs-grid { grid-template-columns: repeat(3, 1fr); } }
.organ {
  background: var(--linen);
  border: var(--line);
  border-radius: var(--radius);
  padding: var(--s-6);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
  display: flex; flex-direction: column;
  opacity: 0; transform: translateY(15px);
}
.organ.in-view { opacity: 1; transform: translateY(0); transition: opacity .8s ease, transform .8s ease; }
.organ:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.organ-hokmah:hover { border-color: var(--med-blue); }
.organ-kefal:hover { border-color: var(--olive); }
.organ-catalyst:hover { border-color: var(--terracotta); }
.organ-icon {
  width: 64px; height: 64px;
  margin-bottom: var(--s-4);
}
.organ-icon svg { width: 100%; height: 100%; }
.organ-hokmah .organ-icon svg circle { fill: var(--med-blue); }
.organ-hokmah .organ-icon svg line { stroke: var(--med-blue); stroke-width: 1.5; opacity: .55; }
.organ-kefal .organ-icon svg path { fill: var(--olive); stroke: none; }
.organ-kefal .organ-icon svg .check { fill: none; stroke: var(--linen); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.organ-catalyst .organ-icon svg line { stroke: var(--terracotta); stroke-width: 1.5; }
.organ-catalyst .organ-icon svg circle { fill: var(--terracotta); }
.organ h3 {
  font-family: var(--font-title);
  font-weight: 500;
  font-size: 1.6rem;
  color: var(--stone);
  margin-bottom: var(--s-2);
  letter-spacing: -.01em;
}
.organ-tag {
  font-family: var(--font-title);
  font-style: italic;
  color: var(--terracotta-deep);
  font-size: 1.05rem;
  margin-bottom: var(--s-3);
}
.organ-desc {
  color: var(--stone-mid);
  font-size: .98rem;
  line-height: 1.6;
  flex: 1;
  margin-bottom: var(--s-5);
}
.organ-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: var(--s-3);
  border-top: 1px solid var(--border-soft);
  gap: var(--s-3);
  flex-wrap: wrap;
}
.organ-price {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--stone);
}
.organ-link {
  font-size: .9rem;
  font-weight: 500;
  color: var(--terracotta-deep);
}

/* ═══ PRICING ═══ */
.pricing { background: linear-gradient(180deg, var(--linen) 0%, var(--sand-light) 100%); }
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
@media (min-width: 720px) {
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1020px) {
  .pricing-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr 1.4fr;
    align-items: stretch;
  }
}
.plan {
  background: var(--linen);
  border: var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  display: flex; flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.plan:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.plan-solo, .plan-total { background: var(--sand-light); border-color: var(--terracotta); }
.plan-total { background: var(--stone); border-color: var(--stone); color: var(--linen); }
.plan-total .plan-name, .plan-total .plan-price, .plan-total .plan-line { color: var(--linen); }
.plan-name {
  font-family: var(--font-title);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--stone);
  margin-bottom: var(--s-2);
}
.plan-price {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 500;
  color: var(--stone);
  letter-spacing: -.02em;
  margin-bottom: var(--s-3);
  line-height: 1;
}
.plan-currency, .plan-period {
  font-size: .9rem;
  color: var(--stone-soft);
  font-weight: 400;
  letter-spacing: 0;
}
.plan-period { font-style: italic; }
.plan-features {
  list-style: none;
  font-size: .92rem;
  color: var(--stone-mid);
  margin-top: var(--s-3);
}
.plan-features li {
  padding: 6px 0;
  border-top: 1px dashed var(--border-soft);
}
.plan-features li:first-child { border-top: none; }
.plan-line {
  font-size: .95rem;
  color: var(--stone-mid);
  margin-top: var(--s-2);
}
.plan-total .plan-line { color: rgba(250, 247, 242, .8); }
.pricing-foot {
  text-align: center;
  margin-top: var(--s-7);
  font-family: var(--font-title);
  font-style: italic;
  color: var(--stone-soft);
  font-size: 1rem;
}

/* ═══ ORGANISM (technology) ═══ */
.organism { background: var(--stone); color: var(--linen); }
.organism .section-title { color: var(--linen); }
.organism .section-title em { color: var(--terracotta); }
.organism .section-sub { color: rgba(250, 247, 242, .7); }
.org-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
  margin: var(--s-7) auto 0;
  max-width: 1000px;
}
.org-stat {
  text-align: center;
  padding: var(--s-5) var(--s-4);
  border: 1px solid rgba(250, 247, 242, .12);
  border-radius: var(--radius);
  background: rgba(250, 247, 242, .03);
  transition: background .3s ease, border-color .3s ease;
}
.org-stat:hover {
  background: rgba(201, 125, 92, .08);
  border-color: rgba(201, 125, 92, .35);
}
.org-num {
  font-family: var(--font-title);
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--terracotta);
  font-variation-settings: "opsz" 144;
  line-height: 1;
  margin-bottom: var(--s-2);
}
.org-label {
  font-size: .92rem;
  color: rgba(250, 247, 242, .8);
  line-height: 1.5;
}
.org-foot {
  text-align: center;
  max-width: 60ch;
  margin: var(--s-7) auto 0;
  font-family: var(--font-title);
  font-style: italic;
  color: rgba(250, 247, 242, .65);
  line-height: 1.6;
}

/* ═══ FINAL CTA ═══ */
.final-cta {
  text-align: center;
  background: var(--linen);
  padding: var(--s-9) 0;
}
.final-quote {
  font-family: var(--font-title);
  font-style: italic;
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  color: var(--stone);
  max-width: 30ch;
  margin: 0 auto var(--s-6);
  line-height: 1.4;
}
.btn-final { font-size: 1.1rem; padding: 16px 32px; }

/* ═══ FOOTER ═══ */
.foot {
  background: var(--sand);
  color: var(--stone);
  padding: var(--s-7) 0 var(--s-6);
  border-top: var(--line);
}
.foot-inner {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .foot-inner { grid-template-columns: 1fr 1.5fr 1fr; align-items: center; }
}
.foot-brand { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.foot-tag { font-family: var(--font-title); font-style: italic; color: var(--stone-soft); font-size: .95rem; }
.foot-links {
  display: flex; flex-wrap: wrap; gap: var(--s-4) var(--s-5);
  justify-content: center;
}
.foot-links a {
  color: var(--stone-mid);
  font-size: .92rem;
}
.foot-links a:hover { color: var(--terracotta-deep); }
.foot-sig { font-size: .85rem; color: var(--stone-soft); text-align: end; line-height: 1.7; }
.foot-sig a { color: var(--stone-mid); }

/* ═══ RTL SUPPORT (Hebrew & Arabic) ═══ */
html[dir="rtl"] .hero-cta-row,
html[dir="rtl"] .nav-actions { direction: rtl; }
html[dir="rtl"] .cascade-level { text-align: right; }
html[dir="rtl"] .foot-sig { text-align: start; }
html[dir="rtl"] .lang-btn { font-family: var(--font-body); }
/* HE prefers tighter heading line-height */
html[lang="he"] .hero-title { line-height: 1.15; letter-spacing: 0; }
html[lang="he"] .section-title { line-height: 1.3; }
html[lang="he"] em { font-style: normal; font-weight: 700; }

/* ═══ MOBILE TUNE ═══ */
@media (max-width: 640px) {
  .nav-cta { display: none; }
  .nav-inner { padding: var(--s-3) var(--s-4); }
  section { padding: var(--s-7) 0; }
  .container { padding: 0 var(--s-4); }
  .hero { padding: var(--s-7) 0 var(--s-7); }
  .hero-art { max-width: 280px; }
  .hero-cta-row { flex-direction: column; align-items: flex-start; }
  .foot-links { justify-content: flex-start; }
  .foot-sig { text-align: start; }
}

/* ═══ MOTION REDUCTION ═══ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .diff-card, .organ, .cascade-level, .proof-card, .flow-step,
  .stat, .fmt-card, .price-card, .dash-tile {
    opacity: 1 !important; transform: none !important;
  }
}


/* ═══════════════════════════════════════════════════════════════════
   v3 — PROOF SITE
   Phone mockup · Proof cards · Flow · Hood stats · Formats · Pricing · Cockpit
   ═══════════════════════════════════════════════════════════════════ */


/* ═══ Hero phone mockup ═══ */
.phone {
  background: var(--linen);
  border: var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow-lift);
  overflow: hidden;
  font-family: var(--font-body);
  max-width: 360px;
  margin: 0 auto;
}
.phone-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: linear-gradient(180deg, var(--olive-deep), var(--olive));
  color: var(--linen);
  font-size: .9rem;
}
.phone-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--terracotta); color: var(--linen);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 600; font-size: .85rem;
}
.phone-dot::before { content: "Z"; }
.phone-name { flex: 1; font-weight: 500; letter-spacing: .01em; }
.phone-status { color: #6cf08a; font-size: .7rem; }
.phone-feed {
  padding: 14px;
  background:
    radial-gradient(ellipse 80% 80% at 50% 0%, rgba(201, 125, 92, .04), transparent 70%),
    var(--sand-light);
  display: flex; flex-direction: column; gap: 10px;
}
.msg {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: .92rem;
  line-height: 1.45;
  word-wrap: break-word;
  box-shadow: 0 1px 1px rgba(42, 37, 32, .06);
}
.msg-out {
  align-self: flex-end;
  background: #DCF8C6;
  color: var(--stone);
  border-bottom-right-radius: 4px;
}
.msg-in {
  align-self: flex-start;
  background: #FFFFFF;
  color: var(--stone);
  border-bottom-left-radius: 4px;
}
.msg-tiny { font-size: 1.4rem; padding: 4px 12px; }
.msg-csv {
  margin-top: 6px;
  padding: 8px 10px;
  background: rgba(42, 37, 32, .08);
  border-radius: 6px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .72rem; line-height: 1.5;
  color: var(--stone-mid);
}


/* ═══ SECTION 2 : Proof cards ═══ */
.proof { background: linear-gradient(180deg, var(--linen) 0%, var(--sand-light) 100%); }
.proof-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 720px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .proof-grid { grid-template-columns: repeat(3, 1fr); } }
.proof-card {
  background: var(--linen);
  border: var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow-soft);
  transition: transform .25s ease, box-shadow .25s ease;
  opacity: 0;
  transform: translateY(14px);
}
.proof-card.in-view {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s ease, transform .6s ease, box-shadow .25s ease;
}
.proof-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}
.proof-tag {
  display: inline-block;
  font-size: .78rem; letter-spacing: .12em; text-transform: uppercase;
  font-weight: 500; color: var(--terracotta-deep);
  margin-bottom: var(--s-4);
  padding: 4px 10px;
  border: 1px solid rgba(201, 125, 92, .2);
  border-radius: 999px;
  background: rgba(201, 125, 92, .06);
}
.proof-io {
  display: flex; flex-direction: column; gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.proof-row {
  display: flex; flex-direction: column; gap: 4px;
}
.proof-label {
  font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone-soft); font-weight: 600;
}
.proof-val {
  font-size: .98rem; line-height: 1.55; color: var(--stone);
}
.proof-val em { color: var(--terracotta-deep); }
.proof-val b { color: var(--stone); font-weight: 600; }
.proof-out .proof-val {
  padding: 10px 12px;
  background: var(--sand-light);
  border-radius: 8px;
  border-left: 2px solid var(--terracotta);
}
html[dir="rtl"] .proof-out .proof-val {
  border-left: none; border-right: 2px solid var(--terracotta);
}
.proof-mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .9rem;
}
.proof-meta {
  font-size: .82rem; color: var(--stone-soft);
  border-top: 1px dashed var(--border);
  padding-top: var(--s-3);
  letter-spacing: .01em;
}


/* ═══ SECTION 3 : Flow ═══ */
.flow-steps {
  list-style: none;
  display: flex; flex-direction: column;
  gap: var(--s-5);
  max-width: 720px;
  margin: var(--s-7) auto 0;
  padding: 0;
}
.flow-step {
  display: flex; gap: var(--s-5);
  padding: var(--s-5);
  background: var(--linen);
  border: var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateX(-12px);
  transition: opacity .5s ease, transform .5s ease;
}
.flow-step.in-view { opacity: 1; transform: translateX(0); }
html[dir="rtl"] .flow-step { transform: translateX(12px); }
html[dir="rtl"] .flow-step.in-view { transform: translateX(0); }
.flow-num {
  flex: 0 0 48px; height: 48px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--linen);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-title); font-weight: 600; font-size: 1.4rem;
  font-variation-settings: "opsz" 60;
}
.flow-body h3 {
  font-family: var(--font-title);
  font-weight: 500; font-size: 1.25rem;
  color: var(--stone);
  margin-bottom: 4px;
}
.flow-body p { color: var(--stone-mid); font-size: .98rem; line-height: 1.55; }


/* ═══ SECTION 4 : Hood stats ═══ */
.hood { background: var(--linen); }
.hood-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--s-4);
  margin-top: var(--s-7);
}
.stat {
  padding: var(--s-5) var(--s-4);
  background: var(--sand-light);
  border: var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: var(--s-2);
  opacity: 0; transform: translateY(8px);
  transition: opacity .5s ease, transform .5s ease;
}
.stat.in-view { opacity: 1; transform: translateY(0); }
.stat-num {
  font-family: var(--font-title);
  font-weight: 400; font-size: 2.3rem; line-height: 1;
  color: var(--terracotta-deep);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.stat-lbl {
  font-size: .9rem; line-height: 1.45;
  color: var(--stone-mid);
}


/* ═══ SECTION 5 : Three eyes ═══ */
.eyes {
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--linen) 100%);
}
.eyes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 760px) { .eyes-grid { grid-template-columns: repeat(3, 1fr); } }
.eyes .organ {
  background: var(--linen);
  border: var(--line);
  border-radius: var(--radius);
  padding: var(--s-5);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: var(--s-3);
  opacity: 0; transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.eyes .organ.in-view { opacity: 1; transform: translateY(0); }
.organ-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.organ-name {
  font-family: var(--font-title);
  font-weight: 500; font-size: 1.5rem; color: var(--stone);
}
.organ-pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: .82rem; letter-spacing: .04em;
  font-weight: 500;
}
.organ-on {
  background: rgba(108, 240, 138, .14);
  color: #2c8550;
  border: 1px solid rgba(108, 240, 138, .35);
}
.organ-deep {
  background: rgba(46, 111, 142, .12);
  color: var(--med-blue-deep);
  border: 1px solid rgba(46, 111, 142, .25);
}
.organ-desc { color: var(--stone-mid); font-size: .98rem; line-height: 1.55; }
.organ-link {
  font-size: .9rem; font-weight: 500;
  color: var(--terracotta-deep);
  border-bottom: 1px dashed var(--border);
  padding-bottom: 2px;
  align-self: flex-start;
}


/* ═══ SECTION 6 : Formats grid ═══ */
.formats { background: var(--linen); }
.formats-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
  margin-top: var(--s-7);
}
@media (min-width: 600px) { .formats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 920px) { .formats-grid { grid-template-columns: repeat(3, 1fr); } }
.fmt-card {
  display: flex; gap: var(--s-4);
  padding: var(--s-4);
  background: var(--sand-light);
  border: var(--line);
  border-radius: var(--radius);
  align-items: flex-start;
  transition: transform .2s ease;
}
.fmt-card:hover { transform: translateY(-2px); }
.fmt-card.fmt-soon { opacity: .65; }
.fmt-icon { font-size: 1.7rem; line-height: 1; flex: 0 0 auto; }
.fmt-body { flex: 1; font-size: .95rem; color: var(--stone-mid); line-height: 1.5; }
.fmt-body b { color: var(--stone); font-family: var(--font-title); font-weight: 500; font-size: 1.05rem; }
.formats-foot {
  text-align: center;
  margin-top: var(--s-6);
  font-size: .95rem;
  color: var(--stone-soft);
  font-style: italic;
}


/* ═══ SECTION 7 : Pricing ═══ */
.pricing { background: linear-gradient(180deg, var(--linen) 0%, var(--sand-light) 100%); }
.price-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-top: var(--s-7);
}
@media (min-width: 720px) { .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .price-grid { grid-template-columns: repeat(4, 1fr); } }
.price-card {
  background: var(--linen);
  border: var(--line);
  border-radius: var(--radius);
  padding: var(--s-6) var(--s-5);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: var(--s-4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.price-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.price-card-feat {
  background: linear-gradient(160deg, var(--stone) 0%, var(--olive-deep) 100%);
  border: none;
  color: var(--linen);
  box-shadow: 0 12px 32px rgba(42, 37, 32, .25);
}
.price-card h3 {
  font-family: var(--font-title);
  font-weight: 500; font-size: 1.35rem;
  color: var(--stone);
  font-variation-settings: "opsz" 80;
}
.price-card-feat h3 { color: var(--linen); }
.price-val {
  font-family: var(--font-title);
  font-weight: 400; font-size: 2.2rem; line-height: 1;
  color: var(--terracotta-deep);
  font-variation-settings: "opsz" 144, "SOFT" 60;
}
.price-card-feat .price-val { color: var(--linen); }
.price-per {
  font-size: .95rem; font-weight: 400;
  color: var(--stone-soft);
  font-variation-settings: "opsz" 24;
  margin-left: 4px;
}
.price-card-feat .price-per { color: rgba(250, 247, 242, .65); }
.price-list {
  list-style: none; display: flex; flex-direction: column; gap: var(--s-2);
  font-size: .95rem; color: var(--stone-mid);
}
.price-card-feat .price-list { color: rgba(250, 247, 242, .9); }
.price-list li::before {
  content: "✓ ";
  color: var(--olive);
  font-weight: 600;
}
.price-card-feat .price-list li::before { color: #6cf08a; }


/* ═══ SECTION 8 : Cockpit (stylised dashboard) ═══ */
.cockpit { background: var(--linen); }
.dash {
  margin-top: var(--s-7);
  border: var(--line);
  border-radius: var(--radius);
  background: var(--sand-light);
  padding: var(--s-5);
  display: flex; flex-direction: column; gap: var(--s-4);
  box-shadow: var(--shadow-soft);
}
.dash-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 760px) { .dash-row { grid-template-columns: repeat(3, 1fr); } }
.dash-tile {
  padding: var(--s-4);
  background: var(--linen);
  border: var(--line);
  border-radius: 10px;
  display: flex; flex-direction: column; gap: var(--s-3);
  opacity: 0; transform: translateY(6px);
  transition: opacity .4s ease, transform .4s ease;
}
.dash-tile.in-view { opacity: 1; transform: translateY(0); }
.tile-name {
  font-size: .75rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--stone-soft); font-weight: 600;
}
.tile-foot {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: .82rem; color: var(--stone-mid);
}
.tile-foot b { color: var(--stone); font-weight: 600; }
.tile-bars {
  display: flex; gap: 4px; align-items: flex-end;
  height: 38px;
}
.tile-bars .bar {
  flex: 1; min-height: 6px;
  background: var(--olive);
  border-radius: 2px;
  opacity: .85;
}
.tile-bars .b1 { height: 35%; }
.tile-bars .b2 { height: 60%; }
.tile-bars .b3 { height: 85%; }
.tile-bars .b4 { height: 50%; }
.tile-bars .b5 { height: 95%; }
.tile-bars .b6 { height: 70%; }
.tile-bars .b7 { height: 40%; }
.tile-stack {
  display: flex; height: 14px; border-radius: 7px;
  overflow: hidden;
  background: var(--border-soft);
}
.tile-stack .seg { display: block; height: 100%; }
.seg-propose { background: var(--olive); }
.seg-observe { background: var(--med-blue); }
.seg-silence { background: var(--stone-mid); }
.seg-seek    { background: var(--terracotta); }


/* ═══ Footer ═══ */
.footer {
  background: linear-gradient(180deg, var(--sand-light) 0%, var(--sand) 100%);
  padding: var(--s-7) 0;
  border-top: var(--line);
}
.footer-inner {
  display: flex; flex-direction: column; gap: var(--s-3);
  align-items: center;
  text-align: center;
}
.footer-tag {
  font-size: .92rem; color: var(--stone-mid);
  letter-spacing: .02em;
}
.footer-quote {
  font-family: var(--font-title); font-style: italic;
  color: var(--stone);
  font-size: 1.05rem;
}
.footer-links {
  display: flex; flex-wrap: wrap; gap: var(--s-4); justify-content: center;
  margin-top: var(--s-3);
  font-size: .9rem;
}
.footer-links a {
  color: var(--stone-mid);
  border-bottom: 1px dashed transparent;
  padding-bottom: 2px;
}
.footer-links a:hover {
  color: var(--terracotta-deep);
  border-bottom-color: var(--terracotta);
}


/* ═══ HE/RTL adjustments for v3 ═══ */
html[lang="he"] .stat-num,
html[lang="he"] .price-val,
html[lang="he"] .organ-name {
  font-family: var(--font-title);
  font-weight: 600;
}
html[lang="he"] .proof-mono { font-family: var(--font-body); }
html[dir="rtl"] .footer-inner { text-align: center; }
html[dir="rtl"] .price-list li::before { content: "✓ "; margin-left: 4px; }

